@appbaseio/reactivesearch-vue 3.0.0-rc.7.1 → 3.0.0-rc.8

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.
@@ -21,10 +21,10 @@ import { F as Flex } from './Flex-25792bc3.js';
21
21
  import { recordAISessionUsefulness } from '@appbaseio/reactivecore/lib/actions/analytics';
22
22
  import ReactiveBase from './ReactiveBase.js';
23
23
  import hotkeys from 'hotkeys-js';
24
- import xss from 'xss';
25
24
  import { Remarkable } from 'remarkable';
26
- import { I as IconWrapper, C as CancelSvg, a as IconGroup, B as ButtonIconWrapper, D as Downshift, b as InputWrapper } from './DropDown-bede2a41.js';
27
- import { n as noSuggestions, T as TextArea, I as Input, s as suggestionsContainer, a as suggestions, b as searchboxSuggestions } from './Input-4376ac1f.js';
25
+ import xss from 'xss';
26
+ import { I as IconWrapper, C as CancelSvg, a as IconGroup, B as ButtonIconWrapper, D as Downshift, b as InputWrapper } from './DropDown-8075451b.js';
27
+ import { n as noSuggestions, T as TextArea, I as Input, s as suggestionsContainer, A as Actions$1, a as suggestions, b as searchboxSuggestions } from './Input-4cd74b38.js';
28
28
  import { C as Container } from './Container-d00219f7.js';
29
29
  import Highlight from 'vue-highlight-words';
30
30
  import { fetchAIResponse, createAISession } from '@appbaseio/reactivecore/lib/actions/query';
@@ -49,7 +49,11 @@ import ResultList from './ResultList.js';
49
49
  import StateProvider from './StateProvider.js';
50
50
 
51
51
  var _templateObject;
52
- var InputGroup = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\n\t", "\n};\n"])), function (props) {
52
+ var InputGroup = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n \tdisplay: flex;\n\talign-items: stretch;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\n\t", "\n\t", "\n\t};\n"])), function (_ref) {
53
+ var theme = _ref.theme,
54
+ searchBox = _ref.searchBox;
55
+ return searchBox && "background-color: " + (theme.colors.backgroundColor || '#fafafa') + ";\n\t\tcolor: " + (theme.colors.textColor || '#fff') + ";\n\n\t\t&:focus-within {\n\t\t\tbackground-color: " + (theme.colors.backgroundColor || '#fff') + ";\n\t\t}";
56
+ }, function (props) {
53
57
  return props.isOpen && 'box-shadow: rgb(0 0 0 / 20%) 0px 0px 15px;';
54
58
  });
55
59
  InputGroup.defaultProps = {
@@ -781,8 +785,11 @@ var _templateObject$4, _templateObject2;
781
785
  var TagsContainer = styled('div')(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"])));
782
786
  var TagItem = styled('span')(_templateObject2 || (_templateObject2 = _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"])));
783
787
 
784
- var _templateObject$5, _templateObject2$1, _templateObject3;
785
- var skeletonAnimation = keyframes(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n"])));
788
+ var _templateObject$5;
789
+ var AutosuggestFooterContainer = styled('div')(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tcolor: #8792a2;\n\tbackground: #f7fafc;\n\tpadding: 10px;\n\theight: 40px;\n"])));
790
+
791
+ var _templateObject$6, _templateObject2$1, _templateObject3;
792
+ var skeletonAnimation = keyframes(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n"])));
786
793
  var SkeletonLoader = styled('div')(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 10px;\n"])));
787
794
  var SkeletonLine = styled('div')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: 20px;\n\tbackground: linear-gradient(\n\t\t90deg,\n\t\trgba(220, 220, 220, 0.5) 25%,\n\t\trgba(240, 240, 240, 0.9) 50%,\n\t\trgba(220, 220, 220, 0.5) 75%\n\t);\n\tbackground-size: 200% 100%;\n\tanimation: ", " 1.5s infinite;\n"])), skeletonAnimation);
788
795
  var HorizontalSkeletonLoader = defineComponent({
@@ -796,8 +803,8 @@ var HorizontalSkeletonLoader = defineComponent({
796
803
  }
797
804
  });
798
805
 
799
- var _templateObject$6, _templateObject2$2, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
800
- var Chatbox = styled('div')(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\tmargin: 0 auto;\n\tpadding: 10px;\n\tbackground-color: #fafafa;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\tmargin-bottom: 20px;\n\tbackground-color: ", ";\n"])), function (props) {
806
+ var _templateObject$7, _templateObject2$2, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
807
+ var Chatbox = styled('div')(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\tmargin: 0 auto;\n\tpadding: 10px;\n\tbackground-color: #fafafa;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\tmargin-bottom: 20px;\n\tbackground-color: ", ";\n"])), function (props) {
801
808
  return props.theme && props.theme.colors ? props.theme.colors.backgroundColor : '#fff';
802
809
  });
803
810
  var ChatContainer = styled('div')(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\tposition: relative;\n\t.--ai-answer-error-container {\n\t\ttext-align: center;\n\t\tposition: absolute;\n\t\tbottom: 0px;\n\t\t", ";\n\t\tz-index: 1;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\twidth: 100%;\n\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tpadding: 10px;\n\t\t\tbackground-color: ", ";\n\t\t\tbox-shadow: 0 -5px 5px -2px\n\t\t\t\t", ";\n\n\t\t\tspan {\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\n\t\t\tbutton {\n\t\t\t}\n\t\t}\n\t}\n\n\t", ";\n"])), function (props) {
@@ -872,8 +879,8 @@ var MessageInput = styled(TextArea)(_templateObject9 || (_templateObject9 = _tag
872
879
  var SendButton = styled(Button)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n\tborder: none;\n\tcolor: #ffffff;\n\tcursor: pointer;\n\tfont-size: 16px;\n\tmargin-left: 8px;\n\toutline: none;\n\tpadding: 10px;\n\ttext-align: center;\n\n\t&:disabled {\n\t\tcursor: not-allowed;\n\t}\n"])));
873
880
  var AIFeedbackContainer = styled('div')(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n\t.--feedback-svgs-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: flex-end;\n\t\tgap: 5px;\n\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\ttransition: all ease-in 0.1s;\n\t\t\t&.selected {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t\tcursor: default;\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t}\n\t\t}\n\t}\n\n\t.--feedback-input-wrapper {\n\t\tdisplay: flex;\n\t\tgap: 7px;\n\t}\n"])));
874
881
 
875
- var _templateObject$7, _templateObject2$3, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
876
- var fadeInFromBottom = keyframes(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
882
+ var _templateObject$8, _templateObject2$3, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
883
+ var fadeInFromBottom = keyframes(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
877
884
  var fadeInFromTop = keyframes(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(-20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
878
885
  var SearchBoxAISection = styled('div')(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n\tpadding: 10px;\n\tborder-radius: 4px;\n\tmin-height: 200px;\n\tpadding-top: 20px;\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\t.--ai-answer-error-container {\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tgap: 10px;\n\t\t}\n\t}\n"])), function (_ref) {
879
886
  var themePreset = _ref.themePreset,
@@ -1069,9 +1076,6 @@ var AIFeedback = defineComponent({
1069
1076
  }
1070
1077
  });
1071
1078
 
1072
- var _templateObject$8;
1073
- var AutosuggestFooterContainer = styled('div')(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tcolor: #8792a2;\n\tbackground: #f7fafc;\n\tpadding: 10px;\n\theight: 40px;\n"])));
1074
-
1075
1079
  var _excluded = ["_source"];
1076
1080
  function _isSlot(s) {
1077
1081
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
@@ -1108,8 +1112,7 @@ var SearchBox = defineComponent({
1108
1112
  showAIScreen: false,
1109
1113
  showAIScreenFooter: false,
1110
1114
  showFeedbackComponent: false,
1111
- feedbackState: null,
1112
- prefilledAIAnswer: ''
1115
+ feedbackState: null
1113
1116
  };
1114
1117
  this.internalComponent = props.componentId + "__internal";
1115
1118
  return this.__state;
@@ -1151,22 +1154,11 @@ var SearchBox = defineComponent({
1151
1154
  stats: function stats() {
1152
1155
  return getResultStats(this);
1153
1156
  },
1154
- mergedAIAnswer: function mergedAIAnswer() {
1155
- return this.prefilledAIAnswer || this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text;
1156
- },
1157
1157
  parsedSuggestions: function parsedSuggestions() {
1158
1158
  var suggestionsArray = [];
1159
1159
  if (Array.isArray(this.suggestions) && this.suggestions.length) {
1160
1160
  suggestionsArray = [].concat(withClickIds(this.suggestions));
1161
1161
  }
1162
- suggestionsArray = suggestionsArray.map(function (s) {
1163
- if (s.sectionId) {
1164
- return s;
1165
- }
1166
- return _extends({}, s, {
1167
- sectionId: s._suggestion_type
1168
- });
1169
- });
1170
1162
  var sectionsAccumulated = [];
1171
1163
  var sectionisedSuggestions = suggestionsArray.reduce(function (acc, d, currentIndex) {
1172
1164
  if (sectionsAccumulated.includes(d.sectionId)) return acc;
@@ -1212,11 +1204,6 @@ var SearchBox = defineComponent({
1212
1204
  enableQuerySuggestions: VueTypes.bool.def(false),
1213
1205
  enablePopularSuggestions: VueTypes.bool.def(false),
1214
1206
  enableRecentSuggestions: VueTypes.bool.def(false),
1215
- enableFAQSuggestions: VueTypes.bool.def(false),
1216
- FAQSuggestionsConfig: VueTypes.shape({
1217
- sectionLabel: VueTypes.string,
1218
- size: VueTypes.number
1219
- }),
1220
1207
  fieldWeights: types.fieldWeights,
1221
1208
  filterLabel: types.string,
1222
1209
  fuzziness: types.fuzziness,
@@ -1453,7 +1440,7 @@ var SearchBox = defineComponent({
1453
1440
  resultStats: this.stats,
1454
1441
  AIData: {
1455
1442
  question: this.AIResponse && this.AIResponse.response && this.AIResponse.response.question,
1456
- answer: this.mergedAIAnswerc,
1443
+ answer: this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text,
1457
1444
  documentIds: this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds || [],
1458
1445
  showAIScreen: this.showAIScreen,
1459
1446
  sources: this.getAISourceObjects(),
@@ -1484,7 +1471,7 @@ var SearchBox = defineComponent({
1484
1471
  this.onValueSelectedHandler(currentValue, causes.SEARCH_ICON_CLICK);
1485
1472
  }
1486
1473
  },
1487
- setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, categoryValue, shouldExecuteQuery) {
1474
+ setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, categoryValue) {
1488
1475
  var _this2 = this;
1489
1476
  if (isDefaultValue === void 0) {
1490
1477
  isDefaultValue = false;
@@ -1498,9 +1485,6 @@ var SearchBox = defineComponent({
1498
1485
  if (categoryValue === void 0) {
1499
1486
  categoryValue = undefined;
1500
1487
  }
1501
- if (shouldExecuteQuery === void 0) {
1502
- shouldExecuteQuery = true;
1503
- }
1504
1488
  var performUpdate = function performUpdate() {
1505
1489
  if (_this2.$options.isTagsMode && isEqual(value, _this2.selectedTags)) {
1506
1490
  return;
@@ -1536,18 +1520,17 @@ var SearchBox = defineComponent({
1536
1520
  }
1537
1521
  if (typeof _this2.currentValue === 'string') _this2.triggerDefaultQuery(_this2.currentValue, props.enableAI ? {
1538
1522
  enableAI: true
1539
- } : {}, shouldExecuteQuery);
1523
+ } : {});
1540
1524
  } // in case of strict selection only SUGGESTION_SELECT should be able
1541
1525
  // to set the query otherwise the value should reset
1542
1526
  if (props.strictSelection) {
1543
1527
  if (cause === causes.SUGGESTION_SELECT || (_this2.$options.isTagsMode ? _this2.selectedTags.length === 0 : value === '')) {
1544
- _this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
1528
+ _this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue);
1545
1529
  } else {
1546
1530
  _this2.setValue('', true);
1547
1531
  }
1548
1532
  } else if (props.value === undefined || cause === causes.SUGGESTION_SELECT || cause === causes.CLEAR_VALUE) {
1549
- _this2.showAIScreen = false;
1550
- _this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
1533
+ _this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue);
1551
1534
  }
1552
1535
  } else {
1553
1536
  // debounce for handling text while typing
@@ -1558,13 +1541,10 @@ var SearchBox = defineComponent({
1558
1541
  };
1559
1542
  checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
1560
1543
  },
1561
- triggerDefaultQuery: function triggerDefaultQuery(paramValue, meta, shouldExecuteQuery) {
1544
+ triggerDefaultQuery: function triggerDefaultQuery(paramValue, meta) {
1562
1545
  if (meta === void 0) {
1563
1546
  meta = {};
1564
1547
  }
1565
- if (shouldExecuteQuery === void 0) {
1566
- shouldExecuteQuery = true;
1567
- }
1568
1548
  if (!this.$props.autosuggest) {
1569
1549
  return;
1570
1550
  }
@@ -1585,15 +1565,12 @@ var SearchBox = defineComponent({
1585
1565
  value: value,
1586
1566
  componentType: componentTypes.searchBox,
1587
1567
  meta: meta
1588
- }, shouldExecuteQuery);
1568
+ });
1589
1569
  },
1590
- triggerCustomQuery: function triggerCustomQuery(paramValue, categoryValue, shouldExecuteQuery) {
1570
+ triggerCustomQuery: function triggerCustomQuery(paramValue, categoryValue) {
1591
1571
  if (categoryValue === void 0) {
1592
1572
  categoryValue = undefined;
1593
1573
  }
1594
- if (shouldExecuteQuery === void 0) {
1595
- shouldExecuteQuery = true;
1596
- }
1597
1574
  var _this$$props = this.$props,
1598
1575
  customQuery = _this$$props.customQuery,
1599
1576
  filterLabel = _this$$props.filterLabel,
@@ -1622,7 +1599,7 @@ var SearchBox = defineComponent({
1622
1599
  URLParams: URLParams,
1623
1600
  componentType: componentTypes.searchBox,
1624
1601
  category: categoryValue
1625
- }, shouldExecuteQuery);
1602
+ });
1626
1603
  },
1627
1604
  handleFocus: function handleFocus(event) {
1628
1605
  if (this.$props.autosuggest) {
@@ -1757,14 +1734,6 @@ var SearchBox = defineComponent({
1757
1734
  },
1758
1735
  onSuggestionSelected: function onSuggestionSelected(suggestion) {
1759
1736
  var _this4 = this;
1760
- // handle when FAQ suggestion is clicked
1761
- if (suggestion && suggestion._suggestion_type === suggestionTypes.FAQ) {
1762
- this.prefilledAIAnswer = suggestion._answer;
1763
- this.setValue(suggestion.value, true, this.$props, causes.SUGGESTION_SELECT, true, false, suggestion._category, false);
1764
- this.isOpen = true;
1765
- this.showAIScreen = true;
1766
- return;
1767
- }
1768
1737
  if (!this.$props.enableAI) this.isOpen = false;else {
1769
1738
  this.showAIScreen = true;
1770
1739
  }
@@ -1976,61 +1945,67 @@ var SearchBox = defineComponent({
1976
1945
  }
1977
1946
  return '/';
1978
1947
  },
1979
- renderIcons: function renderIcons() {
1948
+ renderLeftIcons: function renderLeftIcons() {
1980
1949
  var _this7 = this;
1981
- var _slot3, _slot4, _slot5, _slot6;
1950
+ var _slot3;
1982
1951
  var _this$$props3 = this.$props,
1983
1952
  iconPosition = _this$$props3.iconPosition,
1984
- showClear = _this$$props3.showClear,
1985
- innerClass = _this$$props3.innerClass,
1986
- getMicInstance = _this$$props3.getMicInstance,
1987
- showVoiceSearch = _this$$props3.showVoiceSearch,
1988
- showIcon = _this$$props3.showIcon,
1989
- showFocusShortcutsIcon = _this$$props3.showFocusShortcutsIcon;
1953
+ showIcon = _this$$props3.showIcon;
1954
+ return createVNode("div", null, [createVNode(IconGroup, {
1955
+ "groupPosition": "left"
1956
+ }, {
1957
+ "default": function _default() {
1958
+ return [iconPosition === 'left' && showIcon && createVNode(IconWrapper, {
1959
+ "onClick": _this7.handleSearchIconClick
1960
+ }, _isSlot(_slot3 = _this7.renderIcon()) ? _slot3 : {
1961
+ "default": function _default() {
1962
+ return [_slot3];
1963
+ }
1964
+ })];
1965
+ }
1966
+ })]);
1967
+ },
1968
+ renderRightIcons: function renderRightIcons() {
1969
+ var _this8 = this;
1970
+ var _slot4, _slot5, _slot6;
1971
+ var _this$$props4 = this.$props,
1972
+ iconPosition = _this$$props4.iconPosition,
1973
+ showClear = _this$$props4.showClear,
1974
+ innerClass = _this$$props4.innerClass,
1975
+ getMicInstance = _this$$props4.getMicInstance,
1976
+ showVoiceSearch = _this$$props4.showVoiceSearch,
1977
+ showIcon = _this$$props4.showIcon,
1978
+ showFocusShortcutsIcon = _this$$props4.showFocusShortcutsIcon;
1990
1979
  var renderMic = this.$slots.renderMic || this.$props.renderMic;
1991
1980
  var currentValue = this.$data.currentValue;
1992
1981
  return createVNode("div", null, [createVNode(IconGroup, {
1993
- "groupPosition": "right",
1994
- "positionType": "absolute"
1982
+ "groupPosition": "right"
1995
1983
  }, {
1996
1984
  "default": function _default() {
1997
1985
  return [currentValue && showClear && createVNode(IconWrapper, {
1998
- "onClick": _this7.clearValue,
1986
+ "onClick": _this8.clearValue,
1999
1987
  "showIcon": showIcon,
2000
1988
  "isClearIcon": true
2001
- }, _isSlot(_slot3 = _this7.renderCancelIcon()) ? _slot3 : {
1989
+ }, _isSlot(_slot4 = _this8.renderCancelIcon()) ? _slot4 : {
2002
1990
  "default": function _default() {
2003
- return [_slot3];
1991
+ return [_slot4];
2004
1992
  }
2005
1993
  }), showFocusShortcutsIcon && createVNode(ButtonIconWrapper, {
2006
1994
  "onClick": function onClick(e) {
2007
- return _this7.focusSearchBox(e);
1995
+ return _this8.focusSearchBox(e);
2008
1996
  }
2009
- }, _isSlot(_slot4 = _this7.renderShortcut()) ? _slot4 : {
1997
+ }, _isSlot(_slot5 = _this8.renderShortcut()) ? _slot5 : {
2010
1998
  "default": function _default() {
2011
- return [_slot4];
1999
+ return [_slot5];
2012
2000
  }
2013
2001
  }), showVoiceSearch && createVNode(Mic, {
2014
2002
  "getInstance": getMicInstance,
2015
2003
  "render": renderMic,
2016
- "handleResult": _this7.handleVoiceResults,
2004
+ "handleResult": _this8.handleVoiceResults,
2017
2005
  "className": getClassName$1(innerClass, 'mic') || null
2018
2006
  }, null), iconPosition === 'right' && showIcon && createVNode(IconWrapper, {
2019
- "onClick": _this7.handleSearchIconClick
2020
- }, _isSlot(_slot5 = _this7.renderIcon()) ? _slot5 : {
2021
- "default": function _default() {
2022
- return [_slot5];
2023
- }
2024
- })];
2025
- }
2026
- }), createVNode(IconGroup, {
2027
- "groupPosition": "left",
2028
- "positionType": "absolute"
2029
- }, {
2030
- "default": function _default() {
2031
- return [iconPosition === 'left' && showIcon && createVNode(IconWrapper, {
2032
- "onClick": _this7.handleSearchIconClick
2033
- }, _isSlot(_slot6 = _this7.renderIcon()) ? _slot6 : {
2007
+ "onClick": _this8.handleSearchIconClick
2008
+ }, _isSlot(_slot6 = _this8.renderIcon()) ? _slot6 : {
2034
2009
  "default": function _default() {
2035
2010
  return [_slot6];
2036
2011
  }
@@ -2049,7 +2024,7 @@ var SearchBox = defineComponent({
2049
2024
  (_this$$refs3 = this.$refs) == null ? void 0 : (_this$$refs3$this$$pr = _this$$refs3[this.$props.innerRef]) == null ? void 0 : _this$$refs3$this$$pr.focus(); // eslint-disable-line
2050
2025
  },
2051
2026
  listenForFocusShortcuts: function listenForFocusShortcuts() {
2052
- var _this8 = this;
2027
+ var _this9 = this;
2053
2028
  var _this$$props$focusSho = this.$props.focusShortcuts,
2054
2029
  focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
2055
2030
  if (isEmpty(focusShortcuts)) {
@@ -2064,7 +2039,7 @@ var SearchBox = defineComponent({
2064
2039
  function (event, handler) {
2065
2040
  // Prevent the default refresh event under WINDOWS system
2066
2041
  event.preventDefault();
2067
- _this8.focusSearchBox(event);
2042
+ _this9.focusSearchBox(event);
2068
2043
  });
2069
2044
 
2070
2045
  // if one of modifier keys are used, they are handled below
@@ -2074,7 +2049,7 @@ var SearchBox = defineComponent({
2074
2049
  for (var index = 0; index < modifierKeys.length; index += 1) {
2075
2050
  var element = modifierKeys[index];
2076
2051
  if (hotkeys[element]) {
2077
- _this8.focusSearchBox(event);
2052
+ _this9.focusSearchBox(event);
2078
2053
  break;
2079
2054
  }
2080
2055
  }
@@ -2087,10 +2062,10 @@ var SearchBox = defineComponent({
2087
2062
  this.triggerDefaultQuery(value);
2088
2063
  },
2089
2064
  renderActionIcon: function renderActionIcon(suggestion) {
2090
- var _this9 = this;
2065
+ var _this10 = this;
2091
2066
  var handleAutoFillClick = function handleAutoFillClick(e) {
2092
2067
  e.stopPropagation();
2093
- _this9.onAutofillClick(suggestion);
2068
+ _this10.onAutofillClick(suggestion);
2094
2069
  };
2095
2070
  if (suggestion._suggestion_type === suggestionTypes.Featured) {
2096
2071
  if (suggestion.action === featuredSuggestionsActionTypes.FUNCTION) {
@@ -2113,7 +2088,7 @@ var SearchBox = defineComponent({
2113
2088
  return null;
2114
2089
  },
2115
2090
  renderTag: function renderTag(item) {
2116
- var _this10 = this;
2091
+ var _this11 = this;
2117
2092
  var innerClass = this.$props.innerClass;
2118
2093
  return createVNode(TagItem, {
2119
2094
  "class": getClassName$1(innerClass, 'selected-tag') || ''
@@ -2124,7 +2099,7 @@ var SearchBox = defineComponent({
2124
2099
  "aria-label": "delete-tag",
2125
2100
  "class": "close-icon",
2126
2101
  "onClick": function onClick() {
2127
- return _this10.clearTag(item);
2102
+ return _this11.clearTag(item);
2128
2103
  }
2129
2104
  }, [createVNode(CancelSvg, null, null)])];
2130
2105
  }
@@ -2147,7 +2122,7 @@ var SearchBox = defineComponent({
2147
2122
  }
2148
2123
  },
2149
2124
  renderTags: function renderTags() {
2150
- var _this11 = this;
2125
+ var _this12 = this;
2151
2126
  if (!Array.isArray(this.selectedTags)) {
2152
2127
  return null;
2153
2128
  }
@@ -2161,16 +2136,16 @@ var SearchBox = defineComponent({
2161
2136
  }) : createVNode(TagsContainer, null, {
2162
2137
  "default": function _default() {
2163
2138
  return [tagsList.map(function (item) {
2164
- return _this11.renderTag(item);
2139
+ return _this12.renderTag(item);
2165
2140
  }), shouldRenderClearAllTag && createVNode(TagItem, {
2166
- "class": getClassName$1(_this11.$props.innerClass, 'selected-tag') || ''
2141
+ "class": getClassName$1(_this12.$props.innerClass, 'selected-tag') || ''
2167
2142
  }, {
2168
2143
  "default": function _default() {
2169
2144
  return [createVNode("span", null, [createTextVNode("Clear All")]), createVNode("span", {
2170
2145
  "role": "img",
2171
2146
  "aria-label": "delete-tag",
2172
2147
  "class": "close-icon",
2173
- "onClick": _this11.clearAllTags
2148
+ "onClick": _this12.clearAllTags
2174
2149
  }, [createVNode(CancelSvg, null, null)])];
2175
2150
  }
2176
2151
  })];
@@ -2218,7 +2193,7 @@ var SearchBox = defineComponent({
2218
2193
  },
2219
2194
  renderAIScreenFooter: function renderAIScreenFooter() {
2220
2195
  var _slot7;
2221
- var _this12 = this;
2196
+ var _this13 = this;
2222
2197
  var _this$$props$AIUIConf2 = this.$props.AIUIConfig,
2223
2198
  AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
2224
2199
  var _ref6 = AIUIConfig || {},
@@ -2232,9 +2207,9 @@ var SearchBox = defineComponent({
2232
2207
  "themePreset": this.$props.themePreset
2233
2208
  }, {
2234
2209
  "default": function _default() {
2235
- return [createTextVNode("Summary generated using the following sources:"), ' ', createVNode(SourceTags, null, _isSlot(_slot7 = _this12.getAISourceObjects().map(function (el) {
2210
+ return [createTextVNode("Summary generated using the following sources:"), ' ', createVNode(SourceTags, null, _isSlot(_slot7 = _this13.getAISourceObjects().map(function (el) {
2236
2211
  return createVNode(Button, {
2237
- "class": "--ai-source-tag " + (getClassName$1(_this12.$props.innerClass, 'ai-source-tag') || ''),
2212
+ "class": "--ai-source-tag " + (getClassName$1(_this13.$props.innerClass, 'ai-source-tag') || ''),
2238
2213
  "title": el[sourceDocumentLabel],
2239
2214
  "info": true,
2240
2215
  "onClick": function onClick() {
@@ -2254,12 +2229,12 @@ var SearchBox = defineComponent({
2254
2229
  }) : null;
2255
2230
  },
2256
2231
  renderAIScreen: function renderAIScreen() {
2257
- var _this13 = this;
2232
+ var _this14 = this;
2258
2233
  var customAIRenderer = this.$props.renderAIAnswer || this.$slots.renderAIAnswer;
2259
2234
  if (customAIRenderer) {
2260
2235
  return customAIRenderer({
2261
2236
  question: this.AIResponse && this.AIResponse.response && this.AIResponse.response.question,
2262
- answer: this.mergedAIAnswer,
2237
+ answer: this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text,
2263
2238
  documentIds: this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds || [],
2264
2239
  loading: this.isAIResponseLoading || this.isLoading,
2265
2240
  sources: this.getAISourceObjects(),
@@ -2270,7 +2245,7 @@ var SearchBox = defineComponent({
2270
2245
  return this.renderAIScreenLoader();
2271
2246
  }
2272
2247
  return createVNode("div", null, [createVNode(Answer, {
2273
- "innerHTML": md.render(this.mergedAIAnswer)
2248
+ "innerHTML": md.render(this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text)
2274
2249
  }, null), this.renderAIScreenFooter(), this.showFeedbackComponent && createVNode("div", {
2275
2250
  "class": "" + (getClassName$1(this.$props.innerClass, 'ai-feedback') || '')
2276
2251
  }, [createVNode(AIFeedback, {
@@ -2278,11 +2253,11 @@ var SearchBox = defineComponent({
2278
2253
  "hideUI": this.isAIResponseLoading || this.isLoading || !this.sessionIdFromStore,
2279
2254
  "key": this.sessionIdFromStore,
2280
2255
  "onFeedbackSubmit": function onFeedbackSubmit(useful, reason) {
2281
- _this13.feedbackState = {
2256
+ _this14.feedbackState = {
2282
2257
  isRecorded: true,
2283
2258
  feedbackType: useful ? 'positive' : 'negative'
2284
2259
  };
2285
- _this13.recordAISessionUsefulness(_this13.sessionIdFromStore, {
2260
+ _this14.recordAISessionUsefulness(_this14.sessionIdFromStore, {
2286
2261
  useful: useful,
2287
2262
  reason: reason
2288
2263
  });
@@ -2317,22 +2292,22 @@ var SearchBox = defineComponent({
2317
2292
  });
2318
2293
  },
2319
2294
  renderAskButtonElement: function renderAskButtonElement() {
2320
- var _this14 = this;
2321
- var _this$$props4 = this.$props,
2322
- AIUIConfig = _this$$props4.AIUIConfig,
2323
- innerClass = _this$$props4.innerClass;
2295
+ var _this15 = this;
2296
+ var _this$$props5 = this.$props,
2297
+ AIUIConfig = _this$$props5.AIUIConfig,
2298
+ innerClass = _this$$props5.innerClass;
2324
2299
  var _ref7 = AIUIConfig || {},
2325
2300
  askButton = _ref7.askButton;
2326
2301
  var renderAskButton = this.$slots.renderAskButton;
2327
2302
  if (askButton) {
2328
2303
  var getEnterButtonMarkup = function getEnterButtonMarkup() {
2329
2304
  if (renderAskButton) {
2330
- return renderAskButton(_this14.askButtonOnClick);
2305
+ return renderAskButton(_this15.askButtonOnClick);
2331
2306
  }
2332
2307
  return createVNode(Button, {
2333
2308
  "class": "enter-btn " + getClassName$1(innerClass, 'ask-button'),
2334
2309
  "info": true,
2335
- "onClick": _this14.askButtonOnClick
2310
+ "onClick": _this15.askButtonOnClick
2336
2311
  }, {
2337
2312
  "default": function _default() {
2338
2313
  return [createTextVNode("Ask")];
@@ -2347,7 +2322,7 @@ var SearchBox = defineComponent({
2347
2322
  }
2348
2323
  },
2349
2324
  render: function render() {
2350
- var _this15 = this;
2325
+ var _this16 = this;
2351
2326
  var expandSuggestionsContainer = this.$props.expandSuggestionsContainer;
2352
2327
  var _this$$slots = this.$slots,
2353
2328
  recentSearchesIcon = _this$$slots.recentSearchesIcon,
@@ -2358,17 +2333,17 @@ var SearchBox = defineComponent({
2358
2333
  "class": this.$props.className
2359
2334
  }, {
2360
2335
  "default": function _default() {
2361
- return [_this15.$props.title && createVNode(Title, {
2362
- "class": getClassName$1(_this15.$props.innerClass, 'title') || ''
2336
+ return [_this16.$props.title && createVNode(Title, {
2337
+ "class": getClassName$1(_this16.$props.innerClass, 'title') || ''
2363
2338
  }, {
2364
2339
  "default": function _default() {
2365
- return [_this15.$props.title];
2340
+ return [_this16.$props.title];
2366
2341
  }
2367
- }), _this15.$props.autosuggest ? createVNode(Downshift, {
2368
- "id": _this15.$props.componentId + "-downshift",
2369
- "handleChange": _this15.onSuggestionSelected,
2370
- "handleMouseup": _this15.handleStateChange,
2371
- "isOpen": _this15.$data.isOpen
2342
+ }), _this16.$props.autosuggest ? createVNode(Downshift, {
2343
+ "id": _this16.$props.componentId + "-downshift",
2344
+ "handleChange": _this16.onSuggestionSelected,
2345
+ "handleMouseup": _this16.handleStateChange,
2346
+ "isOpen": _this16.$data.isOpen
2372
2347
  }, {
2373
2348
  "default": function _default(_ref8) {
2374
2349
  var getInputEvents = _ref8.getInputEvents,
@@ -2424,21 +2399,21 @@ var SearchBox = defineComponent({
2424
2399
  }
2425
2400
  };
2426
2401
  var indexOffset = 0;
2427
- return createVNode("div", null, [_this15.hasCustomRenderer && _this15.getComponent({
2402
+ return createVNode("div", null, [_this16.hasCustomRenderer && _this16.getComponent({
2428
2403
  isOpen: isOpen,
2429
2404
  getItemProps: getItemProps,
2430
2405
  getItemEvents: getItemEvents,
2431
2406
  highlightedIndex: highlightedIndex
2432
- }), _this15.renderErrorComponent(), !_this15.hasCustomRenderer && isOpen && hasSuggestions ? createVNode("ul", {
2433
- "class": suggestions(_this15.themePreset, _this15.theme) + " " + getClassName$1(_this15.$props.innerClass, 'list') + " " + searchboxSuggestions(_this15.themePreset, _this15.theme) + "\n\t\t\t\t\t\t\t\t\t\t\t\t\t",
2407
+ }), _this16.renderErrorComponent(), !_this16.hasCustomRenderer && isOpen && hasSuggestions ? createVNode("ul", {
2408
+ "class": suggestions(_this16.themePreset, _this16.theme) + " " + getClassName$1(_this16.$props.innerClass, 'list') + " " + searchboxSuggestions(_this16.themePreset, _this16.theme) + "\n\t\t\t\t\t\t\t\t\t\t\t\t\t",
2434
2409
  "ref": _dropdownULRef
2435
- }, [_this15.showAIScreen && createVNode(SearchBoxAISection, {
2436
- "themePreset": _this15.$props.themePreset
2410
+ }, [_this16.showAIScreen && createVNode(SearchBoxAISection, {
2411
+ "themePreset": _this16.$props.themePreset
2437
2412
  }, {
2438
2413
  "default": function _default() {
2439
- return [_this15.renderAIScreen(), ' ', _this15.renderErrorComponent(true)];
2414
+ return [_this16.renderAIScreen(), ' ', _this16.renderErrorComponent(true)];
2440
2415
  }
2441
- }), !_this15.showAIScreen && _this15.parsedSuggestions.map(function (item, itemIndex) {
2416
+ }), !_this16.showAIScreen && _this16.parsedSuggestions.map(function (item, itemIndex) {
2442
2417
  var index = indexOffset + itemIndex;
2443
2418
  if (Array.isArray(item)) {
2444
2419
  var sectionHtml = xss(item[0].sectionLabel);
@@ -2446,7 +2421,7 @@ var SearchBox = defineComponent({
2446
2421
  return createVNode("div", {
2447
2422
  "class": "section-container"
2448
2423
  }, [sectionHtml ? createVNode("div", {
2449
- "class": "section-header " + getClassName$1(_this15.$props.innerClass, 'section-label'),
2424
+ "class": "section-header " + getClassName$1(_this16.$props.innerClass, 'section-label'),
2450
2425
  "key": "" + item[0].sectionId,
2451
2426
  "innerHTML": sectionHtml
2452
2427
  }, null) : null, createVNode("ul", {
@@ -2465,7 +2440,7 @@ var SearchBox = defineComponent({
2465
2440
  justifyContent: 'flex-start',
2466
2441
  alignItems: 'center'
2467
2442
  },
2468
- "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$1(_this15.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$1(_this15.$props.innerClass, 'suggestion-item'))
2443
+ "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$1(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$1(_this16.$props.innerClass, 'suggestion-item'))
2469
2444
  }), [renderItem(sectionItem)]) : createVNode("li", mergeProps(getItemProps({
2470
2445
  item: sectionItem
2471
2446
  }), _transformOn(getItemEvents({
@@ -2476,115 +2451,132 @@ var SearchBox = defineComponent({
2476
2451
  justifyContent: 'flex-start',
2477
2452
  alignItems: 'center'
2478
2453
  },
2479
- "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$1(_this15.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$1(_this15.$props.innerClass, 'suggestion-item'))
2454
+ "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$1(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$1(_this16.$props.innerClass, 'suggestion-item'))
2480
2455
  }), [createVNode("div", {
2481
2456
  "style": {
2482
2457
  padding: '0 10px 0 0',
2483
2458
  display: 'flex'
2484
2459
  }
2485
2460
  }, [createVNode(CustomSvg, {
2486
- "key": sectionItem._suggestion_type + "-" + sectionIndex,
2487
- "className": getClassName$1(_this15.$props.innerClass, sectionItem._suggestion_type + "-search-icon") || null,
2461
+ "className": getClassName$1(_this16.$props.innerClass, sectionItem._suggestion_type + "-search-icon") || null,
2488
2462
  "icon": getIcon(sectionItem._suggestion_type, sectionItem, suggestionsHaveIcon),
2489
2463
  "type": sectionItem._suggestion_type + "-search-icon"
2490
2464
  }, null)]), createVNode(SuggestionItem, {
2491
- "currentValue": _this15.currentValue,
2465
+ "currentValue": _this16.currentValue,
2492
2466
  "suggestion": sectionItem
2493
- }, null), _this15.renderActionIcon(sectionItem)]);
2467
+ }, null), _this16.renderActionIcon(sectionItem)]);
2494
2468
  })])]);
2495
2469
  }
2496
2470
  return createVNode("div", null, [createTextVNode("No suggestions")]);
2497
- }), _this15.$props.showSuggestionsFooter ? _this15.suggestionsFooter() : null]) : _this15.renderNoSuggestions(_this15.normalizedSuggestions)]);
2471
+ }), _this16.$props.showSuggestionsFooter ? _this16.suggestionsFooter() : null]) : _this16.renderNoSuggestions(_this16.normalizedSuggestions)]);
2498
2472
  };
2499
2473
  return createVNode("div", {
2500
2474
  "class": suggestionsContainer
2501
2475
  }, [createVNode(InputGroup, {
2476
+ "searchBox": true,
2502
2477
  "ref": _inputGroupRef
2503
2478
  }, {
2504
2479
  "default": function _default() {
2505
- return [_this15.renderInputAddonBefore(), createVNode(InputWrapper, null, {
2480
+ return [createVNode(Actions$1, null, {
2481
+ "default": function _default() {
2482
+ return [_this16.renderInputAddonBefore(), _this16.renderLeftIcons()];
2483
+ }
2484
+ }), createVNode(InputWrapper, null, {
2506
2485
  "default": function _default() {
2507
2486
  return [createVNode(TextArea, mergeProps(_transformOn(getInputEvents({
2508
- onInput: _this15.onInputChange,
2487
+ onInput: _this16.onInputChange,
2509
2488
  onBlur: function onBlur(e) {
2510
- _this15.$emit('blur', e, _this15.triggerQuery);
2489
+ _this16.$emit('blur', e, _this16.triggerQuery);
2511
2490
  },
2512
- onFocus: _this15.handleFocus,
2491
+ onFocus: _this16.handleFocus,
2513
2492
  onKeyPress: function onKeyPress(e) {
2514
- _this15.$emit('keyPress', e, _this15.triggerQuery);
2515
- _this15.$emit('key-press', e, _this15.triggerQuery);
2493
+ _this16.$emit('keyPress', e, _this16.triggerQuery);
2494
+ _this16.$emit('key-press', e, _this16.triggerQuery);
2516
2495
  },
2517
2496
  onKeyDown: function onKeyDown(e) {
2518
- return _this15.handleKeyDown(e, highlightedIndex);
2497
+ return _this16.handleKeyDown(e, highlightedIndex);
2519
2498
  },
2520
2499
  onKeyUp: function onKeyUp(e) {
2521
- _this15.$emit('keyUp', e, _this15.triggerQuery);
2522
- _this15.$emit('key-up', e, _this15.triggerQuery);
2500
+ _this16.$emit('keyUp', e, _this16.triggerQuery);
2501
+ _this16.$emit('key-up', e, _this16.triggerQuery);
2523
2502
  },
2524
2503
  onClick: function onClick() {
2525
2504
  setHighlightedIndex(null);
2526
2505
  }
2527
2506
  })), {
2528
- "id": _this15.$props.componentId + "-input",
2529
- "showIcon": _this15.$props.showIcon,
2530
- "showClear": _this15.$props.showClear,
2531
- "iconPosition": _this15.$props.iconPosition,
2532
- "ref": _this15.$props.innerRef,
2533
- "class": getClassName$1(_this15.$props.innerClass, 'input'),
2534
- "placeholder": _this15.$props.placeholder,
2535
- "autoFocus": _this15.$props.autoFocus,
2536
- "showFocusShortcutsIcon": _this15.$props.showFocusShortcutsIcon,
2537
- "showVoiceSearch": _this15.$props.showVoiceSearch,
2538
- "searchBox": true
2507
+ "id": _this16.$props.componentId + "-input",
2508
+ "showIcon": _this16.$props.showIcon,
2509
+ "showClear": _this16.$props.showClear,
2510
+ "iconPosition": _this16.$props.iconPosition,
2511
+ "ref": _this16.$props.innerRef,
2512
+ "class": getClassName$1(_this16.$props.innerClass, 'input'),
2513
+ "placeholder": _this16.$props.placeholder,
2514
+ "autoFocus": _this16.$props.autoFocus,
2515
+ "searchBox": true,
2516
+ "showFocusShortcutsIcon": _this16.$props.showFocusShortcutsIcon,
2517
+ "showVoiceSearch": _this16.$props.showVoiceSearch
2539
2518
  }, getInputProps({
2540
- value: _this15.$data.currentValue === null ? '' : _this15.$data.currentValue
2519
+ value: _this16.$data.currentValue === null ? '' : _this16.$data.currentValue
2541
2520
  }), {
2542
- "themePreset": _this15.themePreset,
2521
+ "themePreset": _this16.themePreset,
2543
2522
  "autocomplete": "off"
2544
- }), null), _this15.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()];
2523
+ }), null), !expandSuggestionsContainer && renderSuggestionsDropdown()];
2524
+ }
2525
+ }), createVNode(Actions$1, null, {
2526
+ "default": function _default() {
2527
+ return [_this16.renderRightIcons(), _this16.renderInputAddonAfter(), _this16.renderAskButtonElement(), _this16.renderEnterButtonElement()];
2545
2528
  }
2546
- }), _this15.renderInputAddonAfter(), _this15.renderAskButtonElement(), _this15.renderEnterButtonElement()];
2529
+ })];
2547
2530
  }
2548
- }), expandSuggestionsContainer && renderSuggestionsDropdown(), _this15.renderTags()]);
2531
+ }), expandSuggestionsContainer && renderSuggestionsDropdown(), _this16.renderTags()]);
2549
2532
  }
2550
2533
  }) : createVNode("div", {
2551
2534
  "class": suggestionsContainer
2552
2535
  }, [createVNode(InputGroup, {
2536
+ "searchBox": true,
2553
2537
  "ref": _inputGroupRef
2554
2538
  }, {
2555
2539
  "default": function _default() {
2556
- return [_this15.renderInputAddonBefore(), createVNode(InputWrapper, null, {
2540
+ return [createVNode(Actions$1, null, {
2541
+ "default": function _default() {
2542
+ return [_this16.renderInputAddonBefore(), _this16.renderLeftIcons()];
2543
+ }
2544
+ }), createVNode(InputWrapper, null, {
2557
2545
  "default": function _default() {
2558
2546
  return [createVNode(TextArea, mergeProps(_transformOn({
2559
2547
  blur: function blur(e) {
2560
- _this15.$emit('blur', e, _this15.triggerQuery);
2548
+ _this16.$emit('blur', e, _this16.triggerQuery);
2561
2549
  },
2562
2550
  keypress: function keypress(e) {
2563
- _this15.$emit('keyPress', e, _this15.triggerQuery);
2564
- _this15.$emit('key-press', e, _this15.triggerQuery);
2551
+ _this16.$emit('keyPress', e, _this16.triggerQuery);
2552
+ _this16.$emit('key-press', e, _this16.triggerQuery);
2565
2553
  },
2566
- input: _this15.onInputChange,
2554
+ input: _this16.onInputChange,
2567
2555
  focus: function focus(e) {
2568
- _this15.$emit('focus', e, _this15.triggerQuery);
2556
+ _this16.$emit('focus', e, _this16.triggerQuery);
2569
2557
  },
2570
- keydown: _this15.handleKeyDown,
2558
+ keydown: _this16.handleKeyDown,
2571
2559
  keyup: function keyup(e) {
2572
- _this15.$emit('keyUp', e, _this15.triggerQuery);
2573
- _this15.$emit('key-up', e, _this15.triggerQuery);
2560
+ _this16.$emit('keyUp', e, _this16.triggerQuery);
2561
+ _this16.$emit('key-up', e, _this16.triggerQuery);
2574
2562
  }
2575
2563
  }), {
2576
- "class": getClassName$1(_this15.$props.innerClass, 'input') || '',
2577
- "placeholder": _this15.$props.placeholder,
2578
- "autofocus": _this15.$props.autoFocus,
2579
- "value": _this15.$data.currentValue ? _this15.$data.currentValue : '',
2580
- "iconPosition": _this15.$props.iconPosition,
2581
- "showIcon": _this15.$props.showIcon,
2582
- "showClear": _this15.$props.showClear,
2583
- "ref": _this15.$props.innerRef,
2584
- "themePreset": _this15.themePreset
2585
- }), null), _this15.renderIcons()];
2564
+ "class": getClassName$1(_this16.$props.innerClass, 'input') || '',
2565
+ "placeholder": _this16.$props.placeholder,
2566
+ "autofocus": _this16.$props.autoFocus,
2567
+ "value": _this16.$data.currentValue ? _this16.$data.currentValue : '',
2568
+ "iconPosition": _this16.$props.iconPosition,
2569
+ "showIcon": _this16.$props.showIcon,
2570
+ "showClear": _this16.$props.showClear,
2571
+ "ref": _this16.$props.innerRef,
2572
+ "themePreset": _this16.themePreset
2573
+ }), null)];
2574
+ }
2575
+ }), createVNode(Actions$1, null, {
2576
+ "default": function _default() {
2577
+ return [_this16.renderRightIcons(), _this16.renderInputAddonAfter(), _this16.renderEnterButtonElement()];
2586
2578
  }
2587
- }), _this15.renderInputAddonAfter(), _this15.renderEnterButtonElement()];
2579
+ })];
2588
2580
  }
2589
2581
  })])];
2590
2582
  }