@seekora-ai/ui-sdk-vue 0.2.15 → 0.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ const _hoisted_1$c = {
8
8
  style: { display: 'inline-flex', alignItems: 'center', gap: '2px' }
9
9
  };
10
10
  const _hoisted_2$a = { style: { display: 'inline-flex', alignItems: 'center', gap: '2px' } };
11
- const _hoisted_3$7 = {
11
+ const _hoisted_3$5 = {
12
12
  class: "seekora-rating-numeric",
13
13
  style: { fontWeight: 600, color: 'var(--seekora-text-primary, #111827)' }
14
14
  };
@@ -222,7 +222,7 @@ var script$i = /*@__PURE__*/ vue.defineComponent({
222
222
  : (__props.variant === 'inline')
223
223
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
224
224
  vue.createCommentVNode(" Inline "),
225
- vue.createElementVNode("span", _hoisted_3$7, vue.toDisplayString(clampedRating.value.toFixed(1)), 1 /* TEXT */),
225
+ vue.createElementVNode("span", _hoisted_3$5, vue.toDisplayString(clampedRating.value.toFixed(1)), 1 /* TEXT */),
226
226
  vue.createElementVNode("div", _hoisted_4$4, [
227
227
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.maxRating, (i) => {
228
228
  return (vue.openBlock(), vue.createBlock(vue.unref(StarIcon), {
@@ -579,12 +579,11 @@ const useQuerySuggestions = ({ client, query, enabled = true, debounceMs = 300,
579
579
  };
580
580
 
581
581
  const _hoisted_1$b = ["value", "placeholder"];
582
- const _hoisted_2$9 = { key: 0 };
583
- const _hoisted_3$6 = ["onClick", "onMouseenter"];
582
+ const _hoisted_2$9 = ["onClick", "onMouseenter"];
584
583
  var script$g = /*@__PURE__*/ vue.defineComponent({
585
584
  __name: 'SearchBar',
586
585
  props: {
587
- placeholder: { type: String, required: false, default: 'Search...' },
586
+ placeholder: { type: String, required: false, default: 'Powered by Seekora' },
588
587
  showSuggestions: { type: Boolean, required: false, default: true },
589
588
  debounceMs: { type: Number, required: false, default: 300 },
590
589
  minQueryLength: { type: Number, required: false, default: 1 },
@@ -708,7 +707,7 @@ var script$g = /*@__PURE__*/ vue.defineComponent({
708
707
  };
709
708
  const searchBarTheme = vue.computed(() => ({}));
710
709
  const showSuggestionsList = vue.computed(() => isFocused.value && props.showSuggestions && localQuery.value.length >= props.minQueryLength);
711
- const isLoading = vue.computed(() => suggestionsLoading.value || searchLoading.value);
710
+ vue.computed(() => suggestionsLoading.value || searchLoading.value);
712
711
  // Get processing time from results
713
712
  const processingTime = vue.computed(() => {
714
713
  return results.value?.processingTimeMS
@@ -749,11 +748,6 @@ var script$g = /*@__PURE__*/ vue.defineComponent({
749
748
  overflowY: 'auto',
750
749
  zIndex: 1000,
751
750
  }));
752
- const loadingStyle = vue.computed(() => ({
753
- padding: theme.value.spacing.medium,
754
- textAlign: 'center',
755
- color: theme.value.colors.text,
756
- }));
757
751
  const emptyStyle = vue.computed(() => ({
758
752
  padding: theme.value.spacing.medium,
759
753
  textAlign: 'center',
@@ -808,40 +802,32 @@ var script$g = /*@__PURE__*/ vue.defineComponent({
808
802
  class: vue.normalizeClass(searchBarTheme.value.suggestionsContainer),
809
803
  style: vue.normalizeStyle(suggestionsStyle.value)
810
804
  }, [
811
- (isLoading.value)
812
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
813
- vue.renderSlot(_ctx.$slots, "loading", { loading: isLoading.value }, () => [
814
- vue.createElementVNode("div", {
815
- style: vue.normalizeStyle(loadingStyle.value)
816
- }, " Loading suggestions... ", 4 /* STYLE */)
817
- ])
818
- ]))
819
- : (displayedSuggestions.value.length > 0)
820
- ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(displayedSuggestions.value, (suggestion, index) => {
821
- return (vue.openBlock(), vue.createElementBlock("div", {
822
- key: index,
823
- class: vue.normalizeClass([
824
- searchBarTheme.value.suggestionItem,
825
- index === selectedIndex.value && searchBarTheme.value.suggestionItemActive
826
- ]),
827
- onClick: ($event) => (handleSuggestionSelect(suggestion.query)),
828
- onMouseenter: ($event) => (selectedIndex.value = index),
829
- style: vue.normalizeStyle(getSuggestionStyle(index))
830
- }, [
831
- vue.renderSlot(_ctx.$slots, "suggestion", {
832
- suggestion: suggestion.query,
833
- index: index
834
- }, () => [
835
- vue.createElementVNode("div", null, vue.toDisplayString(suggestion.query), 1 /* TEXT */)
836
- ])
837
- ], 46 /* CLASS, STYLE, PROPS, NEED_HYDRATION */, _hoisted_3$6));
838
- }), 128 /* KEYED_FRAGMENT */))
839
- : (localQuery.value.length >= __props.minQueryLength)
840
- ? (vue.openBlock(), vue.createElementBlock("div", {
841
- key: 2,
842
- style: vue.normalizeStyle(emptyStyle.value)
843
- }, " No suggestions found ", 4 /* STYLE */))
844
- : vue.createCommentVNode("v-if", true)
805
+ (displayedSuggestions.value.length > 0)
806
+ ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(displayedSuggestions.value, (suggestion, index) => {
807
+ return (vue.openBlock(), vue.createElementBlock("div", {
808
+ key: index,
809
+ class: vue.normalizeClass([
810
+ searchBarTheme.value.suggestionItem,
811
+ index === selectedIndex.value && searchBarTheme.value.suggestionItemActive
812
+ ]),
813
+ onClick: ($event) => (handleSuggestionSelect(suggestion.query)),
814
+ onMouseenter: ($event) => (selectedIndex.value = index),
815
+ style: vue.normalizeStyle(getSuggestionStyle(index))
816
+ }, [
817
+ vue.renderSlot(_ctx.$slots, "suggestion", {
818
+ suggestion: suggestion.query,
819
+ index: index
820
+ }, () => [
821
+ vue.createElementVNode("div", null, vue.toDisplayString(suggestion.query), 1 /* TEXT */)
822
+ ])
823
+ ], 46 /* CLASS, STYLE, PROPS, NEED_HYDRATION */, _hoisted_2$9));
824
+ }), 128 /* KEYED_FRAGMENT */))
825
+ : (localQuery.value.length >= __props.minQueryLength)
826
+ ? (vue.openBlock(), vue.createElementBlock("div", {
827
+ key: 1,
828
+ style: vue.normalizeStyle(emptyStyle.value)
829
+ }, " No suggestions found ", 4 /* STYLE */))
830
+ : vue.createCommentVNode("v-if", true)
845
831
  ], 6 /* CLASS, STYLE */))
846
832
  : vue.createCommentVNode("v-if", true)
847
833
  ], 6 /* CLASS, STYLE */));
@@ -853,7 +839,7 @@ script$g.__file = "src/components/SearchBar.vue";
853
839
 
854
840
  const _hoisted_1$a = ["onClick"];
855
841
  const _hoisted_2$8 = { key: 0 };
856
- const _hoisted_3$5 = ["src", "alt"];
842
+ const _hoisted_3$4 = ["src", "alt"];
857
843
  const _hoisted_4$3 = ["src", "alt"];
858
844
  var script$f = /*@__PURE__*/ vue.defineComponent({
859
845
  __name: 'SearchResults',
@@ -865,7 +851,6 @@ var script$f = /*@__PURE__*/ vue.defineComponent({
865
851
  fieldMapping: { type: null, required: false },
866
852
  renderResult: { type: Function, required: false },
867
853
  renderEmpty: { type: Function, required: false },
868
- renderLoading: { type: Function, required: false },
869
854
  renderError: { type: Function, required: false },
870
855
  onResultClick: { type: Function, required: false },
871
856
  className: { type: String, required: false },
@@ -882,7 +867,7 @@ var script$f = /*@__PURE__*/ vue.defineComponent({
882
867
  const { results: stateResults, loading: stateLoading, error: stateError } = useSearchState();
883
868
  // Use props if provided, otherwise use state from state manager
884
869
  const results = vue.computed(() => props.results !== undefined ? props.results : stateResults.value);
885
- const loading = vue.computed(() => props.loading !== undefined ? props.loading : stateLoading.value);
870
+ vue.computed(() => props.loading !== undefined ? props.loading : stateLoading.value);
886
871
  const error = vue.computed(() => props.error !== undefined ? props.error : stateError.value);
887
872
  const searchResultsTheme = vue.computed(() => ({}));
888
873
  const viewModeCapitalized = vue.computed(() => {
@@ -973,11 +958,6 @@ var script$f = /*@__PURE__*/ vue.defineComponent({
973
958
  }
974
959
  return baseStyle;
975
960
  });
976
- const loadingStyle = vue.computed(() => ({
977
- padding: theme.value.spacing.large,
978
- textAlign: 'center',
979
- color: theme.value.colors.text,
980
- }));
981
961
  const errorStyle = vue.computed(() => ({
982
962
  padding: theme.value.spacing.large,
983
963
  textAlign: 'center',
@@ -1085,157 +1065,142 @@ var script$f = /*@__PURE__*/ vue.defineComponent({
1085
1065
  float: 'left',
1086
1066
  }));
1087
1067
  return (_ctx, _cache) => {
1088
- return (loading.value)
1068
+ return (error.value)
1089
1069
  ? (vue.openBlock(), vue.createElementBlock("div", {
1090
1070
  key: 0,
1091
1071
  class: vue.normalizeClass([searchResultsTheme.value.container, __props.className]),
1092
1072
  style: vue.normalizeStyle(containerStyle.value)
1093
1073
  }, [
1094
- vue.renderSlot(_ctx.$slots, "loading", { loading: loading.value }, () => [
1095
- (!__props.renderLoading)
1074
+ vue.renderSlot(_ctx.$slots, "error", { error: error.value }, () => [
1075
+ (!__props.renderError)
1096
1076
  ? (vue.openBlock(), vue.createElementBlock("div", {
1097
1077
  key: 0,
1098
- style: vue.normalizeStyle(loadingStyle.value)
1099
- }, "Loading results...", 4 /* STYLE */))
1078
+ style: vue.normalizeStyle(errorStyle.value)
1079
+ }, " Error: " + vue.toDisplayString(error.value.message), 5 /* TEXT, STYLE */))
1100
1080
  : vue.createCommentVNode("v-if", true)
1101
1081
  ])
1102
1082
  ], 6 /* CLASS, STYLE */))
1103
- : (error.value)
1083
+ : (displayedResults.value.length === 0)
1104
1084
  ? (vue.openBlock(), vue.createElementBlock("div", {
1105
1085
  key: 1,
1106
1086
  class: vue.normalizeClass([searchResultsTheme.value.container, __props.className]),
1107
1087
  style: vue.normalizeStyle(containerStyle.value)
1108
1088
  }, [
1109
- vue.renderSlot(_ctx.$slots, "error", { error: error.value }, () => [
1110
- (!__props.renderError)
1089
+ vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1090
+ (!__props.renderEmpty)
1111
1091
  ? (vue.openBlock(), vue.createElementBlock("div", {
1112
1092
  key: 0,
1113
- style: vue.normalizeStyle(errorStyle.value)
1114
- }, " Error: " + vue.toDisplayString(error.value.message), 5 /* TEXT, STYLE */))
1093
+ style: vue.normalizeStyle(emptyStyle.value)
1094
+ }, "No results found", 4 /* STYLE */))
1115
1095
  : vue.createCommentVNode("v-if", true)
1116
1096
  ])
1117
1097
  ], 6 /* CLASS, STYLE */))
1118
- : (displayedResults.value.length === 0)
1119
- ? (vue.openBlock(), vue.createElementBlock("div", {
1120
- key: 2,
1121
- class: vue.normalizeClass([searchResultsTheme.value.container, __props.className]),
1122
- style: vue.normalizeStyle(containerStyle.value)
1123
- }, [
1124
- vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1125
- (!__props.renderEmpty)
1126
- ? (vue.openBlock(), vue.createElementBlock("div", {
1127
- key: 0,
1128
- style: vue.normalizeStyle(emptyStyle.value)
1129
- }, "No results found", 4 /* STYLE */))
1130
- : vue.createCommentVNode("v-if", true)
1131
- ])
1132
- ], 6 /* CLASS, STYLE */))
1133
- : (vue.openBlock(), vue.createElementBlock("div", {
1134
- key: 3,
1135
- class: vue.normalizeClass([
1136
- searchResultsTheme.value.container,
1137
- searchResultsTheme.value[`container${viewModeCapitalized.value}`],
1138
- __props.className
1139
- ]),
1140
- style: vue.normalizeStyle(containerStyle.value)
1098
+ : (vue.openBlock(), vue.createElementBlock("div", {
1099
+ key: 2,
1100
+ class: vue.normalizeClass([
1101
+ searchResultsTheme.value.container,
1102
+ searchResultsTheme.value[`container${viewModeCapitalized.value}`],
1103
+ __props.className
1104
+ ]),
1105
+ style: vue.normalizeStyle(containerStyle.value)
1106
+ }, [
1107
+ vue.createElementVNode("div", {
1108
+ style: vue.normalizeStyle(resultsListStyle.value)
1141
1109
  }, [
1142
- vue.createElementVNode("div", {
1143
- style: vue.normalizeStyle(resultsListStyle.value)
1144
- }, [
1145
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayedResults.value, (result, index) => {
1146
- return (vue.openBlock(), vue.createElementBlock("div", {
1147
- key: getResultId(result, index),
1148
- class: vue.normalizeClass([
1149
- searchResultsTheme.value.resultItem,
1150
- searchResultsTheme.value[`resultItem${viewModeCapitalized.value}`]
1151
- ]),
1152
- style: vue.normalizeStyle(getResultStyle()),
1153
- onClick: ($event) => (handleResultClick(result, index))
1154
- }, [
1155
- vue.renderSlot(_ctx.$slots, "result", {
1156
- result: result,
1157
- index: index,
1158
- extractedFields: extractFields(result)
1159
- }, () => [
1160
- (!__props.renderResult)
1161
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
1162
- (__props.viewMode === 'card' || __props.viewMode === 'grid')
1163
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
1164
- (getResultImage(result))
1165
- ? (vue.openBlock(), vue.createElementBlock("div", {
1166
- key: 0,
1167
- style: vue.normalizeStyle(imageContainerStyle.value)
1168
- }, [
1169
- vue.createElementVNode("img", {
1170
- src: getResultImage(result),
1171
- alt: getResultTitle(result),
1172
- style: vue.normalizeStyle(imageStyle.value)
1173
- }, null, 12 /* STYLE, PROPS */, _hoisted_3$5)
1174
- ], 4 /* STYLE */))
1175
- : vue.createCommentVNode("v-if", true),
1176
- vue.createElementVNode("div", {
1177
- style: vue.normalizeStyle(cardContentStyle.value)
1110
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayedResults.value, (result, index) => {
1111
+ return (vue.openBlock(), vue.createElementBlock("div", {
1112
+ key: getResultId(result, index),
1113
+ class: vue.normalizeClass([
1114
+ searchResultsTheme.value.resultItem,
1115
+ searchResultsTheme.value[`resultItem${viewModeCapitalized.value}`]
1116
+ ]),
1117
+ style: vue.normalizeStyle(getResultStyle()),
1118
+ onClick: ($event) => (handleResultClick(result, index))
1119
+ }, [
1120
+ vue.renderSlot(_ctx.$slots, "result", {
1121
+ result: result,
1122
+ index: index,
1123
+ extractedFields: extractFields(result)
1124
+ }, () => [
1125
+ (!__props.renderResult)
1126
+ ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
1127
+ (__props.viewMode === 'card' || __props.viewMode === 'grid')
1128
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
1129
+ (getResultImage(result))
1130
+ ? (vue.openBlock(), vue.createElementBlock("div", {
1131
+ key: 0,
1132
+ style: vue.normalizeStyle(imageContainerStyle.value)
1178
1133
  }, [
1179
- (getResultTitle(result))
1180
- ? (vue.openBlock(), vue.createElementBlock("h3", {
1181
- key: 0,
1182
- style: vue.normalizeStyle(titleStyle.value)
1183
- }, vue.toDisplayString(getResultTitle(result)), 5 /* TEXT, STYLE */))
1184
- : vue.createCommentVNode("v-if", true),
1185
- (getResultDescription(result))
1186
- ? (vue.openBlock(), vue.createElementBlock("p", {
1187
- key: 1,
1188
- style: vue.normalizeStyle(descriptionStyle.value)
1189
- }, vue.toDisplayString(getResultDescription(result)), 5 /* TEXT, STYLE */))
1190
- : vue.createCommentVNode("v-if", true),
1191
- (getResultPrice(result))
1192
- ? (vue.openBlock(), vue.createElementBlock("div", {
1193
- key: 2,
1194
- style: vue.normalizeStyle(priceStyle.value)
1195
- }, vue.toDisplayString(getResultPrice(result)), 5 /* TEXT, STYLE */))
1196
- : vue.createCommentVNode("v-if", true)
1197
- ], 4 /* STYLE */)
1198
- ]))
1199
- : (vue.openBlock(), vue.createElementBlock("div", {
1200
- key: 1,
1201
- style: vue.normalizeStyle(listContentStyle.value)
1202
- }, [
1203
- (getResultImage(result))
1204
- ? (vue.openBlock(), vue.createElementBlock("img", {
1205
- key: 0,
1134
+ vue.createElementVNode("img", {
1206
1135
  src: getResultImage(result),
1207
1136
  alt: getResultTitle(result),
1208
- style: vue.normalizeStyle(listImageStyle.value)
1209
- }, null, 12 /* STYLE, PROPS */, _hoisted_4$3))
1137
+ style: vue.normalizeStyle(imageStyle.value)
1138
+ }, null, 12 /* STYLE, PROPS */, _hoisted_3$4)
1139
+ ], 4 /* STYLE */))
1140
+ : vue.createCommentVNode("v-if", true),
1141
+ vue.createElementVNode("div", {
1142
+ style: vue.normalizeStyle(cardContentStyle.value)
1143
+ }, [
1144
+ (getResultTitle(result))
1145
+ ? (vue.openBlock(), vue.createElementBlock("h3", {
1146
+ key: 0,
1147
+ style: vue.normalizeStyle(titleStyle.value)
1148
+ }, vue.toDisplayString(getResultTitle(result)), 5 /* TEXT, STYLE */))
1210
1149
  : vue.createCommentVNode("v-if", true),
1211
- vue.createElementVNode("div", null, [
1212
- (getResultTitle(result))
1213
- ? (vue.openBlock(), vue.createElementBlock("h3", {
1214
- key: 0,
1215
- style: vue.normalizeStyle(titleStyle.value)
1216
- }, vue.toDisplayString(getResultTitle(result)), 5 /* TEXT, STYLE */))
1217
- : vue.createCommentVNode("v-if", true),
1218
- (getResultDescription(result))
1219
- ? (vue.openBlock(), vue.createElementBlock("p", {
1220
- key: 1,
1221
- style: vue.normalizeStyle(descriptionStyle.value)
1222
- }, vue.toDisplayString(getResultDescription(result)), 5 /* TEXT, STYLE */))
1223
- : vue.createCommentVNode("v-if", true),
1224
- (getResultPrice(result))
1225
- ? (vue.openBlock(), vue.createElementBlock("div", {
1226
- key: 2,
1227
- style: vue.normalizeStyle(priceStyle.value)
1228
- }, vue.toDisplayString(getResultPrice(result)), 5 /* TEXT, STYLE */))
1229
- : vue.createCommentVNode("v-if", true)
1230
- ])
1231
- ], 4 /* STYLE */))
1232
- ], 64 /* STABLE_FRAGMENT */))
1233
- : vue.createCommentVNode("v-if", true)
1234
- ])
1235
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_1$a));
1236
- }), 128 /* KEYED_FRAGMENT */))
1237
- ], 4 /* STYLE */)
1238
- ], 6 /* CLASS, STYLE */));
1150
+ (getResultDescription(result))
1151
+ ? (vue.openBlock(), vue.createElementBlock("p", {
1152
+ key: 1,
1153
+ style: vue.normalizeStyle(descriptionStyle.value)
1154
+ }, vue.toDisplayString(getResultDescription(result)), 5 /* TEXT, STYLE */))
1155
+ : vue.createCommentVNode("v-if", true),
1156
+ (getResultPrice(result))
1157
+ ? (vue.openBlock(), vue.createElementBlock("div", {
1158
+ key: 2,
1159
+ style: vue.normalizeStyle(priceStyle.value)
1160
+ }, vue.toDisplayString(getResultPrice(result)), 5 /* TEXT, STYLE */))
1161
+ : vue.createCommentVNode("v-if", true)
1162
+ ], 4 /* STYLE */)
1163
+ ]))
1164
+ : (vue.openBlock(), vue.createElementBlock("div", {
1165
+ key: 1,
1166
+ style: vue.normalizeStyle(listContentStyle.value)
1167
+ }, [
1168
+ (getResultImage(result))
1169
+ ? (vue.openBlock(), vue.createElementBlock("img", {
1170
+ key: 0,
1171
+ src: getResultImage(result),
1172
+ alt: getResultTitle(result),
1173
+ style: vue.normalizeStyle(listImageStyle.value)
1174
+ }, null, 12 /* STYLE, PROPS */, _hoisted_4$3))
1175
+ : vue.createCommentVNode("v-if", true),
1176
+ vue.createElementVNode("div", null, [
1177
+ (getResultTitle(result))
1178
+ ? (vue.openBlock(), vue.createElementBlock("h3", {
1179
+ key: 0,
1180
+ style: vue.normalizeStyle(titleStyle.value)
1181
+ }, vue.toDisplayString(getResultTitle(result)), 5 /* TEXT, STYLE */))
1182
+ : vue.createCommentVNode("v-if", true),
1183
+ (getResultDescription(result))
1184
+ ? (vue.openBlock(), vue.createElementBlock("p", {
1185
+ key: 1,
1186
+ style: vue.normalizeStyle(descriptionStyle.value)
1187
+ }, vue.toDisplayString(getResultDescription(result)), 5 /* TEXT, STYLE */))
1188
+ : vue.createCommentVNode("v-if", true),
1189
+ (getResultPrice(result))
1190
+ ? (vue.openBlock(), vue.createElementBlock("div", {
1191
+ key: 2,
1192
+ style: vue.normalizeStyle(priceStyle.value)
1193
+ }, vue.toDisplayString(getResultPrice(result)), 5 /* TEXT, STYLE */))
1194
+ : vue.createCommentVNode("v-if", true)
1195
+ ])
1196
+ ], 4 /* STYLE */))
1197
+ ], 64 /* STABLE_FRAGMENT */))
1198
+ : vue.createCommentVNode("v-if", true)
1199
+ ])
1200
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_1$a));
1201
+ }), 128 /* KEYED_FRAGMENT */))
1202
+ ], 4 /* STYLE */)
1203
+ ], 6 /* CLASS, STYLE */));
1239
1204
  };
1240
1205
  }
1241
1206
  });
@@ -1243,8 +1208,7 @@ var script$f = /*@__PURE__*/ vue.defineComponent({
1243
1208
  script$f.__file = "src/components/SearchResults.vue";
1244
1209
 
1245
1210
  const _hoisted_1$9 = { key: 1 };
1246
- const _hoisted_2$7 = { key: 2 };
1247
- const _hoisted_3$4 = ["onClick", "onMouseenter"];
1211
+ const _hoisted_2$7 = ["onClick", "onMouseenter"];
1248
1212
  var script$e = /*@__PURE__*/ vue.defineComponent({
1249
1213
  __name: 'QuerySuggestions',
1250
1214
  props: {
@@ -1254,7 +1218,6 @@ var script$e = /*@__PURE__*/ vue.defineComponent({
1254
1218
  minQueryLength: { type: Number, required: false, default: 2 },
1255
1219
  onSuggestionClick: { type: Function, required: false },
1256
1220
  renderSuggestion: { type: Function, required: false },
1257
- renderLoading: { type: Function, required: false },
1258
1221
  renderEmpty: { type: Function, required: false },
1259
1222
  showTitle: { type: Boolean, required: false, default: false },
1260
1223
  title: { type: String, required: false, default: 'Suggestions' },
@@ -1285,11 +1248,6 @@ var script$e = /*@__PURE__*/ vue.defineComponent({
1285
1248
  marginBottom: theme.value.spacing.medium,
1286
1249
  color: theme.value.colors.text,
1287
1250
  }));
1288
- const loadingStyle = vue.computed(() => ({
1289
- padding: theme.value.spacing.medium,
1290
- textAlign: 'center',
1291
- color: theme.value.colors.text,
1292
- }));
1293
1251
  const emptyStyle = vue.computed(() => ({
1294
1252
  padding: theme.value.spacing.medium,
1295
1253
  textAlign: 'center',
@@ -1330,59 +1288,48 @@ var script$e = /*@__PURE__*/ vue.defineComponent({
1330
1288
  style: vue.normalizeStyle(titleStyle.value)
1331
1289
  }, vue.toDisplayString(__props.title), 7 /* TEXT, CLASS, STYLE */))
1332
1290
  : vue.createCommentVNode("v-if", true),
1333
- (vue.unref(loading))
1291
+ (vue.unref(error) || displayedSuggestions.value.length === 0)
1334
1292
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
1335
- vue.renderSlot(_ctx.$slots, "loading", { loading: vue.unref(loading) }, () => [
1336
- (!__props.renderLoading)
1293
+ vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1294
+ (!__props.renderEmpty)
1337
1295
  ? (vue.openBlock(), vue.createElementBlock("div", {
1338
1296
  key: 0,
1339
- style: vue.normalizeStyle(loadingStyle.value)
1340
- }, " Loading suggestions... ", 4 /* STYLE */))
1297
+ style: vue.normalizeStyle(emptyStyle.value)
1298
+ }, " No suggestions available ", 4 /* STYLE */))
1341
1299
  : vue.createCommentVNode("v-if", true)
1342
1300
  ])
1343
1301
  ]))
1344
- : (vue.unref(error) || displayedSuggestions.value.length === 0)
1345
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, [
1346
- vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1347
- (!__props.renderEmpty)
1348
- ? (vue.openBlock(), vue.createElementBlock("div", {
1349
- key: 0,
1350
- style: vue.normalizeStyle(emptyStyle.value)
1351
- }, " No suggestions available ", 4 /* STYLE */))
1352
- : vue.createCommentVNode("v-if", true)
1353
- ])
1354
- ]))
1355
- : (vue.openBlock(), vue.createElementBlock("div", {
1356
- key: 3,
1357
- class: vue.normalizeClass(querySuggestionsTheme.value.suggestionsList)
1358
- }, [
1359
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayedSuggestions.value, (suggestion, index) => {
1360
- return (vue.openBlock(), vue.createElementBlock("div", {
1361
- key: index,
1362
- class: vue.normalizeClass([
1363
- querySuggestionsTheme.value.suggestionItem,
1364
- index === selectedIndex.value && querySuggestionsTheme.value.suggestionItemActive
1365
- ]),
1366
- style: vue.normalizeStyle(getSuggestionStyle(index)),
1367
- onClick: ($event) => (handleSuggestionClick(suggestion)),
1368
- onMouseenter: ($event) => (selectedIndex.value = index),
1369
- onMouseleave: _cache[0] || (_cache[0] = ($event) => (selectedIndex.value = -1))
1370
- }, [
1371
- vue.renderSlot(_ctx.$slots, "suggestion", {
1372
- suggestion: suggestion,
1373
- index: index
1374
- }, () => [
1375
- vue.createElementVNode("span", null, vue.toDisplayString(suggestion.query), 1 /* TEXT */),
1376
- (suggestion.count !== undefined)
1377
- ? (vue.openBlock(), vue.createElementBlock("span", {
1378
- key: 0,
1379
- style: vue.normalizeStyle(countStyle.value)
1380
- }, " (" + vue.toDisplayString(suggestion.count) + ") ", 5 /* TEXT, STYLE */))
1381
- : vue.createCommentVNode("v-if", true)
1382
- ])
1383
- ], 46 /* CLASS, STYLE, PROPS, NEED_HYDRATION */, _hoisted_3$4));
1384
- }), 128 /* KEYED_FRAGMENT */))
1385
- ], 2 /* CLASS */))
1302
+ : (vue.openBlock(), vue.createElementBlock("div", {
1303
+ key: 2,
1304
+ class: vue.normalizeClass(querySuggestionsTheme.value.suggestionsList)
1305
+ }, [
1306
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayedSuggestions.value, (suggestion, index) => {
1307
+ return (vue.openBlock(), vue.createElementBlock("div", {
1308
+ key: index,
1309
+ class: vue.normalizeClass([
1310
+ querySuggestionsTheme.value.suggestionItem,
1311
+ index === selectedIndex.value && querySuggestionsTheme.value.suggestionItemActive
1312
+ ]),
1313
+ style: vue.normalizeStyle(getSuggestionStyle(index)),
1314
+ onClick: ($event) => (handleSuggestionClick(suggestion)),
1315
+ onMouseenter: ($event) => (selectedIndex.value = index),
1316
+ onMouseleave: _cache[0] || (_cache[0] = ($event) => (selectedIndex.value = -1))
1317
+ }, [
1318
+ vue.renderSlot(_ctx.$slots, "suggestion", {
1319
+ suggestion: suggestion,
1320
+ index: index
1321
+ }, () => [
1322
+ vue.createElementVNode("span", null, vue.toDisplayString(suggestion.query), 1 /* TEXT */),
1323
+ (suggestion.count !== undefined)
1324
+ ? (vue.openBlock(), vue.createElementBlock("span", {
1325
+ key: 0,
1326
+ style: vue.normalizeStyle(countStyle.value)
1327
+ }, " (" + vue.toDisplayString(suggestion.count) + ") ", 5 /* TEXT, STYLE */))
1328
+ : vue.createCommentVNode("v-if", true)
1329
+ ])
1330
+ ], 46 /* CLASS, STYLE, PROPS, NEED_HYDRATION */, _hoisted_2$7));
1331
+ }), 128 /* KEYED_FRAGMENT */))
1332
+ ], 2 /* CLASS */))
1386
1333
  ], 6 /* CLASS, STYLE */))
1387
1334
  : vue.createCommentVNode("v-if", true);
1388
1335
  };
@@ -1441,7 +1388,7 @@ var script$d = /*@__PURE__*/ vue.defineComponent({
1441
1388
  fontSize: theme.value.typography.fontSize.medium,
1442
1389
  }));
1443
1390
  return (_ctx, _cache) => {
1444
- return (__props.loading)
1391
+ return (hasResults.value)
1445
1392
  ? (vue.openBlock(), vue.createElementBlock("div", {
1446
1393
  key: 0,
1447
1394
  class: vue.normalizeClass([statsTheme.value.container, __props.className]),
@@ -1449,26 +1396,16 @@ var script$d = /*@__PURE__*/ vue.defineComponent({
1449
1396
  }, [
1450
1397
  vue.createElementVNode("span", {
1451
1398
  style: vue.normalizeStyle(textStyle.value)
1452
- }, "Loading...", 4 /* STYLE */)
1453
- ], 6 /* CLASS, STYLE */))
1454
- : (hasResults.value)
1455
- ? (vue.openBlock(), vue.createElementBlock("div", {
1456
- key: 1,
1457
- class: vue.normalizeClass([statsTheme.value.container, __props.className]),
1458
- style: vue.normalizeStyle(containerStyle.value)
1459
1399
  }, [
1460
- vue.createElementVNode("span", {
1461
- style: vue.normalizeStyle(textStyle.value)
1462
- }, [
1463
- vue.createTextVNode(vue.toDisplayString(resultsText.value) + " ", 1 /* TEXT */),
1464
- (__props.showProcessingTime && processingTime.value !== undefined)
1465
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
1466
- vue.createTextVNode(vue.toDisplayString(processingTimeText.value), 1 /* TEXT */)
1467
- ], 64 /* STABLE_FRAGMENT */))
1468
- : vue.createCommentVNode("v-if", true)
1469
- ], 4 /* STYLE */)
1470
- ], 6 /* CLASS, STYLE */))
1471
- : vue.createCommentVNode("v-if", true);
1400
+ vue.createTextVNode(vue.toDisplayString(resultsText.value) + " ", 1 /* TEXT */),
1401
+ (__props.showProcessingTime && processingTime.value !== undefined)
1402
+ ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
1403
+ vue.createTextVNode(vue.toDisplayString(processingTimeText.value), 1 /* TEXT */)
1404
+ ], 64 /* STABLE_FRAGMENT */))
1405
+ : vue.createCommentVNode("v-if", true)
1406
+ ], 4 /* STYLE */)
1407
+ ], 6 /* CLASS, STYLE */))
1408
+ : vue.createCommentVNode("v-if", true);
1472
1409
  };
1473
1410
  }
1474
1411
  });
@@ -2544,7 +2481,6 @@ var script$5 = /*@__PURE__*/ vue.defineComponent({
2544
2481
  scrollThreshold: { type: Number, required: false, default: 0.1 },
2545
2482
  fieldMapping: { type: null, required: false },
2546
2483
  showMoreLabel: { type: String, required: false, default: 'Show more' },
2547
- loadingLabel: { type: String, required: false, default: 'Loading...' },
2548
2484
  onHitClick: { type: Function, required: false },
2549
2485
  className: { type: String, required: false },
2550
2486
  style: { type: Object, required: false },
@@ -2695,11 +2631,6 @@ var script$5 = /*@__PURE__*/ vue.defineComponent({
2695
2631
  fontWeight: theme.value.typography.fontWeight?.bold || 700,
2696
2632
  color: theme.value.colors.primary,
2697
2633
  }));
2698
- const loadingStyle = vue.computed(() => ({
2699
- padding: theme.value.spacing.medium,
2700
- textAlign: 'center',
2701
- color: theme.value.colors.textSecondary,
2702
- }));
2703
2634
  const emptyStyle = vue.computed(() => ({
2704
2635
  padding: theme.value.spacing.large,
2705
2636
  textAlign: 'center',
@@ -2726,115 +2657,90 @@ var script$5 = /*@__PURE__*/ vue.defineComponent({
2726
2657
  class: vue.normalizeClass([infiniteHitsTheme.value.root, __props.className]),
2727
2658
  style: vue.normalizeStyle(__props.style)
2728
2659
  }, [
2729
- vue.createCommentVNode(" Initial loading "),
2730
- (vue.unref(loading) && accumulatedHits.value.length === 0)
2731
- ? vue.renderSlot(_ctx.$slots, "loading", {
2732
- key: 0,
2733
- loading: vue.unref(loading)
2734
- }, () => [
2660
+ vue.createCommentVNode(" Empty state "),
2661
+ (accumulatedHits.value.length === 0)
2662
+ ? vue.renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
2735
2663
  vue.createElementVNode("div", {
2736
- class: vue.normalizeClass(infiniteHitsTheme.value.loading),
2737
- style: vue.normalizeStyle(loadingStyle.value)
2738
- }, vue.toDisplayString(__props.loadingLabel), 7 /* TEXT, CLASS, STYLE */)
2664
+ class: vue.normalizeClass(infiniteHitsTheme.value.empty),
2665
+ style: vue.normalizeStyle(emptyStyle.value)
2666
+ }, " No results found ", 6 /* CLASS, STYLE */)
2739
2667
  ])
2740
- : (!vue.unref(loading) && accumulatedHits.value.length === 0)
2741
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
2742
- vue.createCommentVNode(" Empty state "),
2743
- vue.renderSlot(_ctx.$slots, "empty", {}, () => [
2744
- vue.createElementVNode("div", {
2745
- class: vue.normalizeClass(infiniteHitsTheme.value.empty),
2746
- style: vue.normalizeStyle(emptyStyle.value)
2747
- }, " No results found ", 6 /* CLASS, STYLE */)
2748
- ])
2749
- ], 64 /* STABLE_FRAGMENT */))
2750
- : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
2751
- vue.createCommentVNode(" Hits list "),
2752
- vue.createElementVNode("div", {
2753
- class: vue.normalizeClass(infiniteHitsTheme.value.list)
2754
- }, [
2755
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(accumulatedHits.value, (hit, index) => {
2756
- return vue.renderSlot(_ctx.$slots, "hit", {
2757
- key: hit.id || index,
2758
- hit: hit,
2759
- index: index
2760
- }, () => [
2761
- vue.createElementVNode("div", {
2762
- class: vue.normalizeClass(infiniteHitsTheme.value.item),
2763
- style: vue.normalizeStyle(hitStyle.value),
2764
- onClick: ($event) => (handleHitClick(hit, index)),
2765
- role: __props.onHitClick ? 'button' : undefined,
2766
- tabindex: __props.onHitClick ? 0 : undefined
2767
- }, [
2768
- (getHitImage(hit))
2769
- ? (vue.openBlock(), vue.createElementBlock("img", {
2770
- key: 0,
2771
- src: getHitImage(hit),
2772
- alt: getHitTitle(hit),
2773
- style: vue.normalizeStyle(imageStyle.value)
2774
- }, null, 12 /* STYLE, PROPS */, _hoisted_2$1))
2775
- : vue.createCommentVNode("v-if", true),
2776
- vue.createElementVNode("div", _hoisted_3$1, [
2777
- vue.createElementVNode("h3", {
2778
- style: vue.normalizeStyle(titleStyle.value)
2779
- }, vue.toDisplayString(getHitTitle(hit)), 5 /* TEXT, STYLE */),
2780
- (getHitDescription(hit))
2781
- ? (vue.openBlock(), vue.createElementBlock("p", {
2782
- key: 0,
2783
- style: vue.normalizeStyle(descriptionStyle.value)
2784
- }, vue.toDisplayString(getHitDescription(hit)), 5 /* TEXT, STYLE */))
2785
- : vue.createCommentVNode("v-if", true),
2786
- (getHitPrice(hit))
2787
- ? (vue.openBlock(), vue.createElementBlock("span", {
2788
- key: 1,
2789
- style: vue.normalizeStyle(priceStyle.value)
2790
- }, " $" + vue.toDisplayString(formatPrice(getHitPrice(hit))), 5 /* TEXT, STYLE */))
2791
- : vue.createCommentVNode("v-if", true)
2792
- ])
2793
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_1$1)
2794
- ]);
2795
- }), 128 /* KEYED_FRAGMENT */))
2796
- ], 2 /* CLASS */),
2797
- vue.createCommentVNode(" Show More button "),
2798
- (__props.showMoreButton && !__props.useInfiniteScroll && !isLastPage.value)
2799
- ? vue.renderSlot(_ctx.$slots, "showMore", {
2800
- key: 0,
2801
- isLoading: isLoadingMore.value,
2802
- isLastPage: isLastPage.value,
2803
- onClick: handleShowMore
2804
- }, () => [
2805
- vue.createElementVNode("button", {
2806
- type: "button",
2807
- onClick: handleShowMore,
2808
- disabled: isLoadingMore.value,
2809
- class: vue.normalizeClass([infiniteHitsTheme.value.loadMore, isLoadingMore.value && infiniteHitsTheme.value.loadMoreDisabled]),
2810
- style: vue.normalizeStyle(showMoreButtonStyle.value)
2811
- }, vue.toDisplayString(isLoadingMore.value ? __props.loadingLabel : __props.showMoreLabel), 15 /* TEXT, CLASS, STYLE, PROPS */, _hoisted_4$1)
2812
- ])
2813
- : vue.createCommentVNode("v-if", true),
2814
- vue.createCommentVNode(" Loading more indicator "),
2815
- (isLoadingMore.value)
2816
- ? vue.renderSlot(_ctx.$slots, "loading", {
2817
- key: 1,
2818
- loading: true
2668
+ : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
2669
+ vue.createCommentVNode(" Hits list "),
2670
+ vue.createElementVNode("div", {
2671
+ class: vue.normalizeClass(infiniteHitsTheme.value.list)
2672
+ }, [
2673
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(accumulatedHits.value, (hit, index) => {
2674
+ return vue.renderSlot(_ctx.$slots, "hit", {
2675
+ key: hit.id || index,
2676
+ hit: hit,
2677
+ index: index
2819
2678
  }, () => [
2820
2679
  vue.createElementVNode("div", {
2821
- class: vue.normalizeClass(infiniteHitsTheme.value.loading),
2822
- style: vue.normalizeStyle(loadingStyle.value)
2823
- }, vue.toDisplayString(__props.loadingLabel), 7 /* TEXT, CLASS, STYLE */)
2824
- ])
2825
- : vue.createCommentVNode("v-if", true),
2826
- vue.createCommentVNode(" Infinite scroll sentinel "),
2827
- (__props.useInfiniteScroll && !isLastPage.value)
2828
- ? (vue.openBlock(), vue.createElementBlock("div", {
2829
- key: 2,
2830
- ref_key: "sentinelRef",
2831
- ref: sentinelRef,
2832
- class: vue.normalizeClass(infiniteHitsTheme.value.sentinel),
2833
- style: { "height": "1px", "visibility": "hidden" },
2834
- "aria-hidden": "true"
2835
- }, null, 2 /* CLASS */))
2836
- : vue.createCommentVNode("v-if", true)
2837
- ], 64 /* STABLE_FRAGMENT */))
2680
+ class: vue.normalizeClass(infiniteHitsTheme.value.item),
2681
+ style: vue.normalizeStyle(hitStyle.value),
2682
+ onClick: ($event) => (handleHitClick(hit, index)),
2683
+ role: __props.onHitClick ? 'button' : undefined,
2684
+ tabindex: __props.onHitClick ? 0 : undefined
2685
+ }, [
2686
+ (getHitImage(hit))
2687
+ ? (vue.openBlock(), vue.createElementBlock("img", {
2688
+ key: 0,
2689
+ src: getHitImage(hit),
2690
+ alt: getHitTitle(hit),
2691
+ style: vue.normalizeStyle(imageStyle.value)
2692
+ }, null, 12 /* STYLE, PROPS */, _hoisted_2$1))
2693
+ : vue.createCommentVNode("v-if", true),
2694
+ vue.createElementVNode("div", _hoisted_3$1, [
2695
+ vue.createElementVNode("h3", {
2696
+ style: vue.normalizeStyle(titleStyle.value)
2697
+ }, vue.toDisplayString(getHitTitle(hit)), 5 /* TEXT, STYLE */),
2698
+ (getHitDescription(hit))
2699
+ ? (vue.openBlock(), vue.createElementBlock("p", {
2700
+ key: 0,
2701
+ style: vue.normalizeStyle(descriptionStyle.value)
2702
+ }, vue.toDisplayString(getHitDescription(hit)), 5 /* TEXT, STYLE */))
2703
+ : vue.createCommentVNode("v-if", true),
2704
+ (getHitPrice(hit))
2705
+ ? (vue.openBlock(), vue.createElementBlock("span", {
2706
+ key: 1,
2707
+ style: vue.normalizeStyle(priceStyle.value)
2708
+ }, " $" + vue.toDisplayString(formatPrice(getHitPrice(hit))), 5 /* TEXT, STYLE */))
2709
+ : vue.createCommentVNode("v-if", true)
2710
+ ])
2711
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_1$1)
2712
+ ]);
2713
+ }), 128 /* KEYED_FRAGMENT */))
2714
+ ], 2 /* CLASS */),
2715
+ vue.createCommentVNode(" Show More button "),
2716
+ (__props.showMoreButton && !__props.useInfiniteScroll && !isLastPage.value)
2717
+ ? vue.renderSlot(_ctx.$slots, "showMore", {
2718
+ key: 0,
2719
+ isLoading: isLoadingMore.value,
2720
+ isLastPage: isLastPage.value,
2721
+ onClick: handleShowMore
2722
+ }, () => [
2723
+ vue.createElementVNode("button", {
2724
+ type: "button",
2725
+ onClick: handleShowMore,
2726
+ disabled: isLoadingMore.value,
2727
+ class: vue.normalizeClass([infiniteHitsTheme.value.loadMore, isLoadingMore.value && infiniteHitsTheme.value.loadMoreDisabled]),
2728
+ style: vue.normalizeStyle(showMoreButtonStyle.value)
2729
+ }, vue.toDisplayString(__props.showMoreLabel), 15 /* TEXT, CLASS, STYLE, PROPS */, _hoisted_4$1)
2730
+ ])
2731
+ : vue.createCommentVNode("v-if", true),
2732
+ vue.createCommentVNode(" Infinite scroll sentinel "),
2733
+ (__props.useInfiniteScroll && !isLastPage.value)
2734
+ ? (vue.openBlock(), vue.createElementBlock("div", {
2735
+ key: 1,
2736
+ ref_key: "sentinelRef",
2737
+ ref: sentinelRef,
2738
+ class: vue.normalizeClass(infiniteHitsTheme.value.sentinel),
2739
+ style: { "height": "1px", "visibility": "hidden" },
2740
+ "aria-hidden": "true"
2741
+ }, null, 2 /* CLASS */))
2742
+ : vue.createCommentVNode("v-if", true)
2743
+ ], 64 /* STABLE_FRAGMENT */))
2838
2744
  ], 6 /* CLASS, STYLE */));
2839
2745
  };
2840
2746
  }
@@ -3266,7 +3172,7 @@ var script$1 = /*@__PURE__*/ vue.defineComponent({
3266
3172
  __name: 'SearchBarWithSuggestions',
3267
3173
  props: {
3268
3174
  variant: { type: String, required: false, default: 'classic' },
3269
- placeholder: { type: String, required: false, default: 'Search...' },
3175
+ placeholder: { type: String, required: false, default: 'Powered by Seekora' },
3270
3176
  initialQuery: { type: String, required: false, default: '' },
3271
3177
  value: { type: String, required: false },
3272
3178
  showClearButton: { type: Boolean, required: false, default: true },
@@ -3548,11 +3454,6 @@ var script$1 = /*@__PURE__*/ vue.defineComponent({
3548
3454
  color: theme.value.colors.primary,
3549
3455
  fontWeight: theme.value.typography.fontWeight?.bold || 700,
3550
3456
  }));
3551
- const loadingStyle = vue.computed(() => ({
3552
- padding: theme.value.spacing.medium,
3553
- textAlign: 'center',
3554
- color: theme.value.colors.textSecondary,
3555
- }));
3556
3457
  const emptyStyle = vue.computed(() => ({
3557
3458
  padding: theme.value.spacing.medium,
3558
3459
  textAlign: 'center',
@@ -3704,17 +3605,10 @@ var script$1 = /*@__PURE__*/ vue.defineComponent({
3704
3605
  }), 128 /* KEYED_FRAGMENT */))
3705
3606
  ]))
3706
3607
  : vue.createCommentVNode("v-if", true),
3707
- vue.createCommentVNode(" Loading state "),
3708
- (vue.unref(loading))
3709
- ? (vue.openBlock(), vue.createElementBlock("div", {
3710
- key: 3,
3711
- style: vue.normalizeStyle(loadingStyle.value)
3712
- }, "Loading...", 4 /* STYLE */))
3713
- : vue.createCommentVNode("v-if", true),
3714
3608
  vue.createCommentVNode(" Empty state "),
3715
- (!vue.unref(loading) && vue.unref(suggestions).length === 0 && query.value.length >= __props.minQueryLength)
3609
+ (vue.unref(suggestions).length === 0 && query.value.length >= __props.minQueryLength)
3716
3610
  ? (vue.openBlock(), vue.createElementBlock("div", {
3717
- key: 4,
3611
+ key: 3,
3718
3612
  style: vue.normalizeStyle(emptyStyle.value)
3719
3613
  }, " No suggestions found ", 4 /* STYLE */))
3720
3614
  : vue.createCommentVNode("v-if", true)