@getlupa/client 1.4.2 → 1.5.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.
@@ -6664,7 +6664,8 @@ const DEFAULT_OPTIONS_RESULTS$1 = {
6664
6664
  noResultsSuggestion: "No results found for this query: {1}",
6665
6665
  didYouMean: "Did you mean to search: {1}",
6666
6666
  similarQuery: "Search results for phrase {1}",
6667
- similarQueries: "Similar queries:"
6667
+ similarQueries: "Similar queries:",
6668
+ similarResultsLabel: "Related to your query:"
6668
6669
  },
6669
6670
  grid: {
6670
6671
  columns: {
@@ -7674,16 +7675,16 @@ const useSearchBoxStore = defineStore("searchBox", () => {
7674
7675
  resetHighlightIndex
7675
7676
  };
7676
7677
  });
7677
- const _hoisted_1$1b = { id: "lupa-search-box-input-container" };
7678
- const _hoisted_2$O = { class: "lupa-input-clear" };
7679
- const _hoisted_3$A = { id: "lupa-search-box-input" };
7678
+ const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
7679
+ const _hoisted_2$P = { class: "lupa-input-clear" };
7680
+ const _hoisted_3$B = { id: "lupa-search-box-input" };
7680
7681
  const _hoisted_4$q = ["value"];
7681
7682
  const _hoisted_5$f = ["placeholder"];
7682
- const _hoisted_6$8 = {
7683
+ const _hoisted_6$9 = {
7683
7684
  key: 0,
7684
7685
  class: "lupa-close-label"
7685
7686
  };
7686
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
7687
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
7687
7688
  __name: "SearchBoxInput",
7688
7689
  props: {
7689
7690
  options: {},
@@ -7760,14 +7761,14 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
7760
7761
  };
7761
7762
  __expose({ focus });
7762
7763
  return (_ctx, _cache) => {
7763
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
7764
- createBaseVNode("div", _hoisted_2$O, [
7764
+ return openBlock(), createElementBlock("div", _hoisted_1$1c, [
7765
+ createBaseVNode("div", _hoisted_2$P, [
7765
7766
  createBaseVNode("div", {
7766
7767
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
7767
7768
  onClick: clear2
7768
7769
  }, null, 2)
7769
7770
  ]),
7770
- createBaseVNode("div", _hoisted_3$A, [
7771
+ createBaseVNode("div", _hoisted_3$B, [
7771
7772
  createBaseVNode("input", {
7772
7773
  class: "lupa-hint",
7773
7774
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
@@ -7794,13 +7795,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
7794
7795
  class: "lupa-close-search-container",
7795
7796
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
7796
7797
  }, [
7797
- labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
7798
+ labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
7798
7799
  ])) : createCommentVNode("", true)
7799
7800
  ]);
7800
7801
  };
7801
7802
  }
7802
7803
  });
7803
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7804
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
7804
7805
  __name: "SearchBoxMoreResults",
7805
7806
  props: {
7806
7807
  labels: {},
@@ -7832,9 +7833,9 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7832
7833
  };
7833
7834
  }
7834
7835
  });
7835
- const _hoisted_1$1a = { class: "lupa-search-box-history-item" };
7836
- const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
7837
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7836
+ const _hoisted_1$1b = { class: "lupa-search-box-history-item" };
7837
+ const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
7838
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7838
7839
  __name: "SearchBoxHistoryItem",
7839
7840
  props: {
7840
7841
  item: {},
@@ -7850,8 +7851,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7850
7851
  emit2("click", { query: props.item });
7851
7852
  };
7852
7853
  return (_ctx, _cache) => {
7853
- return openBlock(), createElementBlock("div", _hoisted_1$1a, [
7854
- createBaseVNode("div", _hoisted_2$N, [
7854
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
7855
+ createBaseVNode("div", _hoisted_2$O, [
7855
7856
  createBaseVNode("div", {
7856
7857
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
7857
7858
  onClick: click2
@@ -7865,11 +7866,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7865
7866
  };
7866
7867
  }
7867
7868
  });
7868
- const _hoisted_1$19 = {
7869
+ const _hoisted_1$1a = {
7869
7870
  key: 0,
7870
7871
  class: "lupa-search-box-history-panel"
7871
7872
  };
7872
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7873
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7873
7874
  __name: "SearchBoxHistoryPanel",
7874
7875
  props: {
7875
7876
  options: {}
@@ -7910,9 +7911,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7910
7911
  }
7911
7912
  };
7912
7913
  return (_ctx, _cache) => {
7913
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$19, [
7914
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1a, [
7914
7915
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
7915
- return openBlock(), createBlock(_sfc_main$1h, {
7916
+ return openBlock(), createBlock(_sfc_main$1i, {
7916
7917
  key: item,
7917
7918
  item,
7918
7919
  highlighted: index === highlightIndex.value,
@@ -7928,25 +7929,25 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7928
7929
  };
7929
7930
  }
7930
7931
  });
7931
- const _hoisted_1$18 = { class: "lupa-search-box-no-results" };
7932
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7932
+ const _hoisted_1$19 = { class: "lupa-search-box-no-results" };
7933
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7933
7934
  __name: "SearchBoxNoResults",
7934
7935
  props: {
7935
7936
  labels: {}
7936
7937
  },
7937
7938
  setup(__props) {
7938
7939
  return (_ctx, _cache) => {
7939
- return openBlock(), createElementBlock("p", _hoisted_1$18, toDisplayString(_ctx.labels.noResults), 1);
7940
+ return openBlock(), createElementBlock("p", _hoisted_1$19, toDisplayString(_ctx.labels.noResults), 1);
7940
7941
  };
7941
7942
  }
7942
7943
  });
7943
- const _hoisted_1$17 = ["innerHTML"];
7944
- const _hoisted_2$M = {
7944
+ const _hoisted_1$18 = ["innerHTML"];
7945
+ const _hoisted_2$N = {
7945
7946
  key: 1,
7946
7947
  "data-cy": "lupa-suggestion-value",
7947
7948
  class: "lupa-suggestion-value"
7948
7949
  };
7949
- const _hoisted_3$z = {
7950
+ const _hoisted_3$A = {
7950
7951
  key: 2,
7951
7952
  class: "lupa-suggestion-facet",
7952
7953
  "data-cy": "lupa-suggestion-facet"
@@ -7959,7 +7960,7 @@ const _hoisted_5$e = {
7959
7960
  class: "lupa-suggestion-facet-value",
7960
7961
  "data-cy": "lupa-suggestion-facet-value"
7961
7962
  };
7962
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7963
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7963
7964
  __name: "SearchBoxSuggestion",
7964
7965
  props: {
7965
7966
  suggestion: {},
@@ -7995,8 +7996,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7995
7996
  class: "lupa-suggestion-value",
7996
7997
  "data-cy": "lupa-suggestion-value",
7997
7998
  innerHTML: _ctx.suggestion.displayHighlight
7998
- }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
7999
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
7999
+ }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8000
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8000
8001
  createBaseVNode("span", _hoisted_4$p, toDisplayString(facetLabel.value), 1),
8001
8002
  createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
8002
8003
  ])) : createCommentVNode("", true)
@@ -8004,11 +8005,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8004
8005
  };
8005
8006
  }
8006
8007
  });
8007
- const _hoisted_1$16 = {
8008
+ const _hoisted_1$17 = {
8008
8009
  id: "lupa-search-box-suggestions",
8009
8010
  "data-cy": "lupa-search-box-suggestions"
8010
8011
  };
8011
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
8012
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8012
8013
  __name: "SearchBoxSuggestions",
8013
8014
  props: {
8014
8015
  items: {},
@@ -8068,9 +8069,9 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
8068
8069
  });
8069
8070
  });
8070
8071
  return (_ctx, _cache) => {
8071
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
8072
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [
8072
8073
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8073
- return openBlock(), createBlock(_sfc_main$1e, {
8074
+ return openBlock(), createBlock(_sfc_main$1f, {
8074
8075
  key: getSuggestionKey(item),
8075
8076
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8076
8077
  suggestion: item,
@@ -8098,7 +8099,7 @@ const debounce$1 = (func, timeout) => {
8098
8099
  }, timeout);
8099
8100
  };
8100
8101
  };
8101
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8102
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
8102
8103
  __name: "SearchBoxSuggestionsWrapper",
8103
8104
  props: {
8104
8105
  panel: {},
@@ -8139,7 +8140,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8139
8140
  };
8140
8141
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8141
8142
  return (_ctx, _cache) => {
8142
- return openBlock(), createBlock(_sfc_main$1d, {
8143
+ return openBlock(), createBlock(_sfc_main$1e, {
8143
8144
  items: searchResult.value,
8144
8145
  highlight: _ctx.panel.highlight,
8145
8146
  queryKey: _ctx.panel.queryKey,
@@ -8217,8 +8218,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
8217
8218
  });
8218
8219
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
8219
8220
  });
8220
- const _hoisted_1$15 = ["src"];
8221
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8221
+ const _hoisted_1$16 = ["src"];
8222
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8222
8223
  __name: "ProductImage",
8223
8224
  props: {
8224
8225
  item: {},
@@ -8266,12 +8267,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8266
8267
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
8267
8268
  src: finalUrl.value,
8268
8269
  onError: replaceWithPlaceholder
8269
- }, null, 42, _hoisted_1$15)
8270
+ }, null, 42, _hoisted_1$16)
8270
8271
  ], 2);
8271
8272
  };
8272
8273
  }
8273
8274
  });
8274
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8275
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8275
8276
  __name: "SearchBoxProductImage",
8276
8277
  props: {
8277
8278
  item: {},
@@ -8279,7 +8280,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8279
8280
  },
8280
8281
  setup(__props) {
8281
8282
  return (_ctx, _cache) => {
8282
- return openBlock(), createBlock(_sfc_main$1b, {
8283
+ return openBlock(), createBlock(_sfc_main$1c, {
8283
8284
  item: _ctx.item,
8284
8285
  options: _ctx.options,
8285
8286
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -8288,12 +8289,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8288
8289
  };
8289
8290
  }
8290
8291
  });
8291
- const _hoisted_1$14 = ["innerHTML"];
8292
- const _hoisted_2$L = {
8292
+ const _hoisted_1$15 = ["innerHTML"];
8293
+ const _hoisted_2$M = {
8293
8294
  key: 1,
8294
8295
  class: "lupa-search-box-product-title"
8295
8296
  };
8296
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8297
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8297
8298
  __name: "SearchBoxProductTitle",
8298
8299
  props: {
8299
8300
  item: {},
@@ -8313,18 +8314,18 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8313
8314
  key: 0,
8314
8315
  class: "lupa-search-box-product-title",
8315
8316
  innerHTML: title.value
8316
- }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
8317
+ }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
8317
8318
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8318
8319
  ]));
8319
8320
  };
8320
8321
  }
8321
8322
  });
8322
- const _hoisted_1$13 = ["innerHTML"];
8323
- const _hoisted_2$K = {
8323
+ const _hoisted_1$14 = ["innerHTML"];
8324
+ const _hoisted_2$L = {
8324
8325
  key: 1,
8325
8326
  class: "lupa-search-box-product-description"
8326
8327
  };
8327
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8328
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8328
8329
  __name: "SearchBoxProductDescription",
8329
8330
  props: {
8330
8331
  item: {},
@@ -8344,12 +8345,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8344
8345
  key: 0,
8345
8346
  class: "lupa-search-box-product-description",
8346
8347
  innerHTML: description.value
8347
- }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
8348
+ }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
8348
8349
  };
8349
8350
  }
8350
8351
  });
8351
- const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
8352
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8352
+ const _hoisted_1$13 = { class: "lupa-search-box-product-price" };
8353
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8353
8354
  __name: "SearchBoxProductPrice",
8354
8355
  props: {
8355
8356
  item: {},
@@ -8367,14 +8368,14 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8367
8368
  );
8368
8369
  });
8369
8370
  return (_ctx, _cache) => {
8370
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
8371
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
8371
8372
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8372
8373
  ]);
8373
8374
  };
8374
8375
  }
8375
8376
  });
8376
- const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
8377
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8377
+ const _hoisted_1$12 = { class: "lupa-search-box-product-regular-price" };
8378
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8378
8379
  __name: "SearchBoxProductRegularPrice",
8379
8380
  props: {
8380
8381
  item: {},
@@ -8392,16 +8393,16 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8392
8393
  );
8393
8394
  });
8394
8395
  return (_ctx, _cache) => {
8395
- return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
8396
+ return openBlock(), createElementBlock("div", _hoisted_1$12, toDisplayString(price.value), 1);
8396
8397
  };
8397
8398
  }
8398
8399
  });
8399
- const _hoisted_1$10 = ["innerHTML"];
8400
- const _hoisted_2$J = { key: 0 };
8401
- const _hoisted_3$y = { key: 1 };
8400
+ const _hoisted_1$11 = ["innerHTML"];
8401
+ const _hoisted_2$K = { key: 0 };
8402
+ const _hoisted_3$z = { key: 1 };
8402
8403
  const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
8403
8404
  const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8404
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8405
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8405
8406
  __name: "SearchBoxProductCustom",
8406
8407
  props: {
8407
8408
  item: {},
@@ -8427,11 +8428,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8427
8428
  key: 0,
8428
8429
  class: [className.value, "lupa-search-box-product-custom"],
8429
8430
  innerHTML: text.value
8430
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
8431
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11)) : (openBlock(), createElementBlock("div", mergeProps({
8431
8432
  key: 1,
8432
8433
  class: [className.value, "lupa-search-box-product-custom"]
8433
8434
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8434
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
8435
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
8435
8436
  createBaseVNode("div", _hoisted_4$o, toDisplayString(label.value), 1),
8436
8437
  createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8437
8438
  ]))
@@ -8439,8 +8440,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8439
8440
  };
8440
8441
  }
8441
8442
  });
8442
- const _hoisted_1$$ = ["innerHTML"];
8443
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8443
+ const _hoisted_1$10 = ["innerHTML"];
8444
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8444
8445
  __name: "SearchBoxProductCustomHtml",
8445
8446
  props: {
8446
8447
  item: {},
@@ -8460,7 +8461,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8460
8461
  return openBlock(), createElementBlock("div", mergeProps({
8461
8462
  class: className.value,
8462
8463
  innerHTML: text.value
8463
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
8464
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10);
8464
8465
  };
8465
8466
  }
8466
8467
  });
@@ -8655,10 +8656,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
8655
8656
  setLoading
8656
8657
  };
8657
8658
  });
8658
- const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
8659
- const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
8660
- const _hoisted_3$x = ["onClick", "disabled"];
8661
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8659
+ const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
8660
+ const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
8661
+ const _hoisted_3$y = ["onClick", "disabled"];
8662
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8662
8663
  __name: "SearchBoxProductAddToCart",
8663
8664
  props: {
8664
8665
  item: {},
@@ -8685,15 +8686,15 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8685
8686
  loading.value = false;
8686
8687
  });
8687
8688
  return (_ctx, _cache) => {
8688
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
8689
- createBaseVNode("div", _hoisted_2$I, [
8689
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
8690
+ createBaseVNode("div", _hoisted_2$J, [
8690
8691
  createBaseVNode("button", {
8691
8692
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
8692
8693
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
8693
8694
  "data-cy": "lupa-add-to-cart",
8694
8695
  type: "button",
8695
8696
  disabled: !inStockValue.value || loading.value
8696
- }, toDisplayString(label.value), 11, _hoisted_3$x)
8697
+ }, toDisplayString(label.value), 11, _hoisted_3$y)
8697
8698
  ])
8698
8699
  ]);
8699
8700
  };
@@ -8701,17 +8702,17 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8701
8702
  });
8702
8703
  const __default__$4 = {
8703
8704
  components: {
8704
- SearchBoxProductImage: _sfc_main$1a,
8705
- SearchBoxProductTitle: _sfc_main$19,
8706
- SearchBoxProductDescription: _sfc_main$18,
8707
- SearchBoxProductPrice: _sfc_main$17,
8708
- SearchBoxProductRegularPrice: _sfc_main$16,
8709
- SearchBoxProductCustom: _sfc_main$15,
8710
- SearchBoxProductCustomHtml: _sfc_main$14,
8711
- SearchBoxProductAddToCart: _sfc_main$13
8705
+ SearchBoxProductImage: _sfc_main$1b,
8706
+ SearchBoxProductTitle: _sfc_main$1a,
8707
+ SearchBoxProductDescription: _sfc_main$19,
8708
+ SearchBoxProductPrice: _sfc_main$18,
8709
+ SearchBoxProductRegularPrice: _sfc_main$17,
8710
+ SearchBoxProductCustom: _sfc_main$16,
8711
+ SearchBoxProductCustomHtml: _sfc_main$15,
8712
+ SearchBoxProductAddToCart: _sfc_main$14
8712
8713
  }
8713
8714
  };
8714
- const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8715
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8715
8716
  __name: "SearchBoxProductElement",
8716
8717
  props: {
8717
8718
  item: {},
@@ -8825,14 +8826,14 @@ const useTrackingStore = defineStore("tracking", () => {
8825
8826
  };
8826
8827
  return { trackSearch, trackResults, trackEvent };
8827
8828
  });
8828
- const _hoisted_1$Z = ["href"];
8829
- const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
8830
- const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
8829
+ const _hoisted_1$_ = ["href"];
8830
+ const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
8831
+ const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
8831
8832
  const _hoisted_4$n = {
8832
8833
  key: 0,
8833
8834
  class: "lupa-search-box-product-add-to-cart-section"
8834
8835
  };
8835
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8836
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8836
8837
  __name: "SearchBoxProduct",
8837
8838
  props: {
8838
8839
  item: {},
@@ -8925,9 +8926,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8925
8926
  href: link.value,
8926
8927
  onClick: handleClick
8927
8928
  }, [
8928
- createBaseVNode("div", _hoisted_2$H, [
8929
+ createBaseVNode("div", _hoisted_2$I, [
8929
8930
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8930
- return openBlock(), createBlock(_sfc_main$12, {
8931
+ return openBlock(), createBlock(_sfc_main$13, {
8931
8932
  class: "lupa-search-box-product-element",
8932
8933
  item: _ctx.item,
8933
8934
  element,
@@ -8937,9 +8938,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8937
8938
  }, null, 8, ["item", "element", "labels", "link"]);
8938
8939
  }), 128))
8939
8940
  ]),
8940
- createBaseVNode("div", _hoisted_3$w, [
8941
+ createBaseVNode("div", _hoisted_3$x, [
8941
8942
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8942
- return openBlock(), createBlock(_sfc_main$12, {
8943
+ return openBlock(), createBlock(_sfc_main$13, {
8943
8944
  class: "lupa-search-box-product-element",
8944
8945
  item: _ctx.item,
8945
8946
  element,
@@ -8950,7 +8951,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8950
8951
  }), 128))
8951
8952
  ]),
8952
8953
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
8953
- createVNode(_sfc_main$12, {
8954
+ createVNode(_sfc_main$13, {
8954
8955
  class: "lupa-search-box-product-element",
8955
8956
  item: _ctx.item,
8956
8957
  element: addToCartElement.value,
@@ -8959,12 +8960,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8959
8960
  isInStock: isInStock.value
8960
8961
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
8961
8962
  ])) : createCommentVNode("", true)
8962
- ], 10, _hoisted_1$Z);
8963
+ ], 10, _hoisted_1$_);
8963
8964
  };
8964
8965
  }
8965
8966
  });
8966
- const _hoisted_1$Y = { id: "lupa-search-box-products" };
8967
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8967
+ const _hoisted_1$Z = { id: "lupa-search-box-products" };
8968
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8968
8969
  __name: "SearchBoxProducts",
8969
8970
  props: {
8970
8971
  items: {},
@@ -8984,7 +8985,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8984
8985
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
8985
8986
  });
8986
8987
  return (_ctx, _cache) => {
8987
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
8988
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
8988
8989
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
8989
8990
  return renderSlot(_ctx.$slots, "productCard", {
8990
8991
  key: index,
@@ -8996,7 +8997,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8996
8997
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
8997
8998
  });
8998
8999
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
8999
- return openBlock(), createBlock(_sfc_main$11, {
9000
+ return openBlock(), createBlock(_sfc_main$12, {
9000
9001
  key: index,
9001
9002
  item,
9002
9003
  panelOptions: _ctx.panelOptions,
@@ -9010,7 +9011,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9010
9011
  };
9011
9012
  }
9012
9013
  });
9013
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9014
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9014
9015
  __name: "SearchBoxProductsWrapper",
9015
9016
  props: {
9016
9017
  panel: {},
@@ -9062,7 +9063,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9062
9063
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9063
9064
  return (_ctx, _cache) => {
9064
9065
  var _a, _b;
9065
- return openBlock(), createBlock(_sfc_main$10, {
9066
+ return openBlock(), createBlock(_sfc_main$11, {
9066
9067
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9067
9068
  panelOptions: _ctx.panel,
9068
9069
  labels: _ctx.labels,
@@ -9080,22 +9081,22 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9080
9081
  };
9081
9082
  }
9082
9083
  });
9083
- const _hoisted_1$X = {
9084
+ const _hoisted_1$Y = {
9084
9085
  key: 0,
9085
9086
  id: "lupa-search-box-panel"
9086
9087
  };
9087
- const _hoisted_2$G = ["data-cy"];
9088
- const _hoisted_3$v = {
9088
+ const _hoisted_2$H = ["data-cy"];
9089
+ const _hoisted_3$w = {
9089
9090
  key: 1,
9090
9091
  id: "lupa-search-box-panel"
9091
9092
  };
9092
9093
  const __default__$3 = {
9093
9094
  components: {
9094
- SearchBoxSuggestionsWrapper: _sfc_main$1c,
9095
- SearchBoxProductsWrapper: _sfc_main$$
9095
+ SearchBoxSuggestionsWrapper: _sfc_main$1d,
9096
+ SearchBoxProductsWrapper: _sfc_main$10
9096
9097
  }
9097
9098
  };
9098
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9099
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9099
9100
  __name: "SearchBoxMainPanel",
9100
9101
  props: {
9101
9102
  options: {},
@@ -9215,7 +9216,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9215
9216
  ref_key: "panelContainer",
9216
9217
  ref: panelContainer
9217
9218
  }, [
9218
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
9219
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
9219
9220
  createBaseVNode("div", {
9220
9221
  class: "lupa-main-panel",
9221
9222
  style: normalizeStyle(expandOnSinglePanel.value ? { display: "block" } : {}),
@@ -9249,21 +9250,21 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9249
9250
  key: "0"
9250
9251
  } : void 0
9251
9252
  ]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
9252
- ], 10, _hoisted_2$G);
9253
+ ], 10, _hoisted_2$H);
9253
9254
  }), 128))
9254
9255
  ], 4),
9255
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1f, {
9256
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1g, {
9256
9257
  key: 0,
9257
9258
  labels: labels.value
9258
9259
  }, null, 8, ["labels"])) : createCommentVNode("", true),
9259
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1i, {
9260
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1j, {
9260
9261
  key: 1,
9261
9262
  labels: labels.value,
9262
9263
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9263
9264
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9264
9265
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
9265
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
9266
- createVNode(_sfc_main$1g, {
9266
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
9267
+ createVNode(_sfc_main$1h, {
9267
9268
  options: _ctx.options.history,
9268
9269
  history: history.value,
9269
9270
  onGoToResults: handleGoToResults,
@@ -9288,9 +9289,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
9288
9289
  const elements = getElements(triggers);
9289
9290
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9290
9291
  };
9291
- const _hoisted_1$W = { id: "lupa-search-box" };
9292
- const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
9293
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9292
+ const _hoisted_1$X = { id: "lupa-search-box" };
9293
+ const _hoisted_2$G = { class: "lupa-search-box-wrapper" };
9294
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9294
9295
  __name: "SearchBox",
9295
9296
  props: {
9296
9297
  options: {},
@@ -9526,9 +9527,9 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9526
9527
  };
9527
9528
  return (_ctx, _cache) => {
9528
9529
  var _a2;
9529
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
9530
- createBaseVNode("div", _hoisted_2$F, [
9531
- createVNode(_sfc_main$1j, {
9530
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9531
+ createBaseVNode("div", _hoisted_2$G, [
9532
+ createVNode(_sfc_main$1k, {
9532
9533
  options: inputOptions.value,
9533
9534
  suggestedValue: suggestedValue.value,
9534
9535
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -9539,7 +9540,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9539
9540
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9540
9541
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9541
9542
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9542
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
9543
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
9543
9544
  key: 0,
9544
9545
  options: panelOptions.value,
9545
9546
  inputValue: inputValue.value,
@@ -9626,20 +9627,20 @@ const getSearchParams = (url, params, baseUrl) => {
9626
9627
  }
9627
9628
  return searchParams;
9628
9629
  };
9629
- const _hoisted_1$V = {
9630
+ const _hoisted_1$W = {
9630
9631
  key: 0,
9631
9632
  id: "lupa-search-results-did-you-mean"
9632
9633
  };
9633
- const _hoisted_2$E = {
9634
+ const _hoisted_2$F = {
9634
9635
  key: 0,
9635
9636
  "data-cy": "suggested-search-text-label"
9636
9637
  };
9637
- const _hoisted_3$u = {
9638
+ const _hoisted_3$v = {
9638
9639
  key: 1,
9639
9640
  "data-cy": "did-you-mean-label"
9640
9641
  };
9641
9642
  const _hoisted_4$m = { key: 1 };
9642
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9643
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9643
9644
  __name: "SearchResultsDidYouMean",
9644
9645
  props: {
9645
9646
  labels: {}
@@ -9671,8 +9672,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9671
9672
  paramStore.goToResults({ searchText, facet });
9672
9673
  };
9673
9674
  return (_ctx, _cache) => {
9674
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
9675
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
9675
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
9676
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
9676
9677
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
9677
9678
  return openBlock(), createElementBlock("span", { key: index }, [
9678
9679
  createBaseVNode("span", {
@@ -9681,7 +9682,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9681
9682
  ]);
9682
9683
  }), 128))
9683
9684
  ])) : createCommentVNode("", true),
9684
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
9685
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
9685
9686
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
9686
9687
  return openBlock(), createElementBlock("span", { key: index }, [
9687
9688
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -9697,12 +9698,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9697
9698
  };
9698
9699
  }
9699
9700
  });
9700
- const _hoisted_1$U = {
9701
+ const _hoisted_1$V = {
9701
9702
  key: 0,
9702
9703
  class: "lupa-search-results-summary"
9703
9704
  };
9704
- const _hoisted_2$D = ["innerHTML"];
9705
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
9705
+ const _hoisted_2$E = ["innerHTML"];
9706
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9706
9707
  __name: "SearchResultsSummary",
9707
9708
  props: {
9708
9709
  label: {},
@@ -9717,8 +9718,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9717
9718
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
9718
9719
  });
9719
9720
  return (_ctx, _cache) => {
9720
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
9721
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
9721
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
9722
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$E),
9722
9723
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
9723
9724
  key: 0,
9724
9725
  class: "lupa-filter-clear",
@@ -9729,18 +9730,18 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9729
9730
  };
9730
9731
  }
9731
9732
  });
9732
- const _hoisted_1$T = {
9733
+ const _hoisted_1$U = {
9733
9734
  key: 0,
9734
9735
  class: "lupa-result-page-title",
9735
9736
  "data-cy": "lupa-result-page-title"
9736
9737
  };
9737
- const _hoisted_2$C = { key: 0 };
9738
- const _hoisted_3$t = {
9738
+ const _hoisted_2$D = { key: 0 };
9739
+ const _hoisted_3$u = {
9739
9740
  key: 1,
9740
9741
  class: "lupa-results-total-count"
9741
9742
  };
9742
9743
  const _hoisted_4$l = ["innerHTML"];
9743
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
9744
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9744
9745
  __name: "SearchResultsTitle",
9745
9746
  props: {
9746
9747
  options: {},
@@ -9775,12 +9776,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9775
9776
  });
9776
9777
  return (_ctx, _cache) => {
9777
9778
  return openBlock(), createElementBlock("div", null, [
9778
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
9779
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$U, [
9779
9780
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
9780
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9781
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9781
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9782
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9782
9783
  ])) : createCommentVNode("", true),
9783
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
9784
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
9784
9785
  key: 1,
9785
9786
  label: summaryLabel.value
9786
9787
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -9793,16 +9794,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9793
9794
  };
9794
9795
  }
9795
9796
  });
9796
- const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
9797
- const _hoisted_2$B = {
9797
+ const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
9798
+ const _hoisted_2$C = {
9798
9799
  class: "lupa-current-filter-label",
9799
9800
  "data-cy": "lupa-current-filter-label"
9800
9801
  };
9801
- const _hoisted_3$s = {
9802
+ const _hoisted_3$t = {
9802
9803
  class: "lupa-current-filter-value",
9803
9804
  "data-cy": "lupa-current-filter-value"
9804
9805
  };
9805
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
9806
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9806
9807
  __name: "CurrentFilterDisplay",
9807
9808
  props: {
9808
9809
  filter: {}
@@ -9814,28 +9815,28 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9814
9815
  emit2("remove", { filter: props.filter });
9815
9816
  };
9816
9817
  return (_ctx, _cache) => {
9817
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
9818
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
9818
9819
  createBaseVNode("div", {
9819
9820
  class: "lupa-current-filter-action",
9820
9821
  onClick: handleClick
9821
9822
  }, "⨉"),
9822
- createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
9823
- createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
9823
+ createBaseVNode("div", _hoisted_2$C, toDisplayString(_ctx.filter.label) + ": ", 1),
9824
+ createBaseVNode("div", _hoisted_3$t, toDisplayString(_ctx.filter.value), 1)
9824
9825
  ]);
9825
9826
  };
9826
9827
  }
9827
9828
  });
9828
- const _hoisted_1$R = { class: "lupa-filter-title-text" };
9829
- const _hoisted_2$A = {
9829
+ const _hoisted_1$S = { class: "lupa-filter-title-text" };
9830
+ const _hoisted_2$B = {
9830
9831
  key: 0,
9831
9832
  class: "lupa-filter-count"
9832
9833
  };
9833
- const _hoisted_3$r = {
9834
+ const _hoisted_3$s = {
9834
9835
  key: 0,
9835
9836
  class: "filter-values"
9836
9837
  };
9837
9838
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
9838
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
9839
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9839
9840
  __name: "CurrentFilters",
9840
9841
  props: {
9841
9842
  options: {},
@@ -9890,19 +9891,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9890
9891
  class: "lupa-current-filter-title",
9891
9892
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
9892
9893
  }, [
9893
- createBaseVNode("div", _hoisted_1$R, [
9894
+ createBaseVNode("div", _hoisted_1$S, [
9894
9895
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
9895
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9896
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$B, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9896
9897
  ]),
9897
9898
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
9898
9899
  key: 0,
9899
9900
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
9900
9901
  }, null, 2)) : createCommentVNode("", true)
9901
9902
  ]),
9902
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
9903
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
9903
9904
  createBaseVNode("div", _hoisted_4$k, [
9904
9905
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
9905
- return openBlock(), createBlock(_sfc_main$V, {
9906
+ return openBlock(), createBlock(_sfc_main$W, {
9906
9907
  key: filter.key + "_" + filter.value,
9907
9908
  filter,
9908
9909
  onRemove: handleRemove
@@ -9919,8 +9920,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9919
9920
  };
9920
9921
  }
9921
9922
  });
9922
- const _hoisted_1$Q = ["href"];
9923
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
9923
+ const _hoisted_1$R = ["href"];
9924
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9924
9925
  __name: "CategoryFilterItem",
9925
9926
  props: {
9926
9927
  options: {},
@@ -9957,20 +9958,20 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9957
9958
  "data-cy": "lupa-child-category-item",
9958
9959
  href: urlLink.value,
9959
9960
  onClick: handleNavigation
9960
- }, toDisplayString(title.value), 9, _hoisted_1$Q)
9961
+ }, toDisplayString(title.value), 9, _hoisted_1$R)
9961
9962
  ], 2);
9962
9963
  };
9963
9964
  }
9964
9965
  });
9965
- const _hoisted_1$P = {
9966
+ const _hoisted_1$Q = {
9966
9967
  class: "lupa-category-filter",
9967
9968
  "data-cy": "lupa-category-filter"
9968
9969
  };
9969
- const _hoisted_2$z = { class: "lupa-category-back" };
9970
- const _hoisted_3$q = ["href"];
9970
+ const _hoisted_2$A = { class: "lupa-category-back" };
9971
+ const _hoisted_3$r = ["href"];
9971
9972
  const _hoisted_4$j = ["href"];
9972
9973
  const _hoisted_5$c = { class: "lupa-child-category-list" };
9973
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9974
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9974
9975
  __name: "CategoryFilter",
9975
9976
  props: {
9976
9977
  options: {}
@@ -10056,14 +10057,14 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10056
10057
  };
10057
10058
  __expose({ fetch: fetch2 });
10058
10059
  return (_ctx, _cache) => {
10059
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
10060
- createBaseVNode("div", _hoisted_2$z, [
10060
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
10061
+ createBaseVNode("div", _hoisted_2$A, [
10061
10062
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10062
10063
  key: 0,
10063
10064
  "data-cy": "lupa-category-back",
10064
10065
  href: backUrlLink.value,
10065
10066
  onClick: handleNavigationBack
10066
- }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
10067
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$r)) : createCommentVNode("", true)
10067
10068
  ]),
10068
10069
  createBaseVNode("div", {
10069
10070
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -10077,7 +10078,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10077
10078
  ], 2),
10078
10079
  createBaseVNode("div", _hoisted_5$c, [
10079
10080
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10080
- return openBlock(), createBlock(_sfc_main$T, {
10081
+ return openBlock(), createBlock(_sfc_main$U, {
10081
10082
  key: getCategoryKey(child),
10082
10083
  item: child,
10083
10084
  options: _ctx.options
@@ -10088,15 +10089,15 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10088
10089
  };
10089
10090
  }
10090
10091
  });
10091
- const _hoisted_1$O = {
10092
+ const _hoisted_1$P = {
10092
10093
  class: "lupa-search-result-facet-term-values",
10093
10094
  "data-cy": "lupa-search-result-facet-term-values"
10094
10095
  };
10095
- const _hoisted_2$y = ["placeholder"];
10096
- const _hoisted_3$p = { class: "lupa-terms-list" };
10096
+ const _hoisted_2$z = ["placeholder"];
10097
+ const _hoisted_3$q = { class: "lupa-terms-list" };
10097
10098
  const _hoisted_4$i = ["onClick"];
10098
10099
  const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
10099
- const _hoisted_6$7 = { class: "lupa-term-checkbox-label" };
10100
+ const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
10100
10101
  const _hoisted_7$6 = { class: "lupa-term-label" };
10101
10102
  const _hoisted_8$1 = {
10102
10103
  key: 0,
@@ -10104,7 +10105,7 @@ const _hoisted_8$1 = {
10104
10105
  };
10105
10106
  const _hoisted_9$1 = { key: 0 };
10106
10107
  const _hoisted_10$1 = { key: 1 };
10107
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
10108
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10108
10109
  __name: "TermFacet",
10109
10110
  props: {
10110
10111
  options: {},
@@ -10173,17 +10174,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10173
10174
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10174
10175
  };
10175
10176
  return (_ctx, _cache) => {
10176
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
10177
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
10177
10178
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10178
10179
  key: 0,
10179
10180
  class: "lupa-term-filter",
10180
10181
  "data-cy": "lupa-term-filter",
10181
10182
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10182
10183
  placeholder: _ctx.options.labels.facetFilter
10183
- }, null, 8, _hoisted_2$y)), [
10184
+ }, null, 8, _hoisted_2$z)), [
10184
10185
  [vModelText, termFilter.value]
10185
10186
  ]) : createCommentVNode("", true),
10186
- createBaseVNode("div", _hoisted_3$p, [
10187
+ createBaseVNode("div", _hoisted_3$q, [
10187
10188
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
10188
10189
  return openBlock(), createElementBlock("div", {
10189
10190
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -10196,7 +10197,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10196
10197
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
10197
10198
  }, null, 2)
10198
10199
  ]),
10199
- createBaseVNode("div", _hoisted_6$7, [
10200
+ createBaseVNode("div", _hoisted_6$8, [
10200
10201
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
10201
10202
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10202
10203
  ])
@@ -11191,12 +11192,12 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
11191
11192
  m.render = function(e, t, r, i, n, o) {
11192
11193
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11193
11194
  }, m.__file = "src/Slider.vue";
11194
- const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
11195
- const _hoisted_2$x = {
11195
+ const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
11196
+ const _hoisted_2$y = {
11196
11197
  key: 0,
11197
11198
  class: "lupa-stats-facet-summary"
11198
11199
  };
11199
- const _hoisted_3$o = {
11200
+ const _hoisted_3$p = {
11200
11201
  key: 1,
11201
11202
  class: "lupa-stats-facet-summary-input"
11202
11203
  };
@@ -11205,7 +11206,7 @@ const _hoisted_4$h = {
11205
11206
  class: "lupa-stats-range-label"
11206
11207
  };
11207
11208
  const _hoisted_5$a = { class: "lupa-stats-from" };
11208
- const _hoisted_6$6 = ["max", "min", "pattern"];
11209
+ const _hoisted_6$7 = ["max", "min", "pattern"];
11209
11210
  const _hoisted_7$5 = { key: 0 };
11210
11211
  const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11211
11212
  const _hoisted_9 = {
@@ -11219,7 +11220,7 @@ const _hoisted_13 = {
11219
11220
  key: 2,
11220
11221
  class: "lupa-stats-slider-wrapper"
11221
11222
  };
11222
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11223
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11223
11224
  __name: "StatsFacet",
11224
11225
  props: {
11225
11226
  options: {},
@@ -11367,8 +11368,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11367
11368
  innerSliderRange.value = value;
11368
11369
  };
11369
11370
  return (_ctx, _cache) => {
11370
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
11371
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
11371
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
11372
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
11372
11373
  createBaseVNode("div", null, [
11373
11374
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11374
11375
  createBaseVNode("div", _hoisted_5$a, [
@@ -11379,7 +11380,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11379
11380
  max: facetMax.value,
11380
11381
  min: facetMin.value,
11381
11382
  pattern: sliderInputFormat.value
11382
- }, null, 8, _hoisted_6$6), [
11383
+ }, null, 8, _hoisted_6$7), [
11383
11384
  [
11384
11385
  vModelText,
11385
11386
  fromValue.value,
@@ -11431,9 +11432,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11431
11432
  };
11432
11433
  }
11433
11434
  });
11434
- const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
11435
- const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
11436
- const _hoisted_3$n = { class: "lupa-term-label" };
11435
+ const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
11436
+ const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
11437
+ const _hoisted_3$o = { class: "lupa-term-label" };
11437
11438
  const _hoisted_4$g = {
11438
11439
  key: 0,
11439
11440
  class: "lupa-term-count"
@@ -11442,7 +11443,7 @@ const _hoisted_5$9 = {
11442
11443
  key: 0,
11443
11444
  class: "lupa-facet-level"
11444
11445
  };
11445
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11446
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11446
11447
  __name: "HierarchyFacetLevel",
11447
11448
  props: {
11448
11449
  options: {},
@@ -11488,13 +11489,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11488
11489
  "data-cy": "lupa-facet-term",
11489
11490
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11490
11491
  }, [
11491
- createBaseVNode("div", _hoisted_1$M, [
11492
+ createBaseVNode("div", _hoisted_1$N, [
11492
11493
  createBaseVNode("span", {
11493
11494
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11494
11495
  }, null, 2)
11495
11496
  ]),
11496
- createBaseVNode("div", _hoisted_2$w, [
11497
- createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11497
+ createBaseVNode("div", _hoisted_2$x, [
11498
+ createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11498
11499
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11499
11500
  ])
11500
11501
  ]),
@@ -11514,13 +11515,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11514
11515
  };
11515
11516
  }
11516
11517
  });
11517
- const _hoisted_1$L = {
11518
+ const _hoisted_1$M = {
11518
11519
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11519
11520
  "data-cy": "lupa-search-result-facet-term-values"
11520
11521
  };
11521
- const _hoisted_2$v = { key: 0 };
11522
- const _hoisted_3$m = ["placeholder"];
11523
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11522
+ const _hoisted_2$w = { key: 0 };
11523
+ const _hoisted_3$n = ["placeholder"];
11524
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11524
11525
  __name: "HierarchyFacet",
11525
11526
  props: {
11526
11527
  options: {},
@@ -11570,19 +11571,19 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11570
11571
  showAll.value = true;
11571
11572
  };
11572
11573
  return (_ctx, _cache) => {
11573
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
11574
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11574
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
11575
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
11575
11576
  withDirectives(createBaseVNode("input", {
11576
11577
  class: "lupa-term-filter",
11577
11578
  "data-cy": "lupa-term-filter",
11578
11579
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
11579
11580
  placeholder: _ctx.options.labels.facetFilter
11580
- }, null, 8, _hoisted_3$m), [
11581
+ }, null, 8, _hoisted_3$n), [
11581
11582
  [vModelText, termFilter.value]
11582
11583
  ])
11583
11584
  ])) : createCommentVNode("", true),
11584
11585
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11585
- return openBlock(), createBlock(_sfc_main$P, {
11586
+ return openBlock(), createBlock(_sfc_main$Q, {
11586
11587
  key: item.title,
11587
11588
  options: _ctx.options,
11588
11589
  item,
@@ -11602,20 +11603,20 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11602
11603
  };
11603
11604
  }
11604
11605
  });
11605
- const _hoisted_1$K = { class: "lupa-facet-label-text" };
11606
- const _hoisted_2$u = {
11606
+ const _hoisted_1$L = { class: "lupa-facet-label-text" };
11607
+ const _hoisted_2$v = {
11607
11608
  key: 0,
11608
11609
  class: "lupa-facet-content",
11609
11610
  "data-cy": "lupa-facet-content"
11610
11611
  };
11611
11612
  const __default__$2 = {
11612
11613
  components: {
11613
- TermFacet: _sfc_main$R,
11614
- StatsFacet: _sfc_main$Q,
11615
- HierarchyFacet: _sfc_main$O
11614
+ TermFacet: _sfc_main$S,
11615
+ StatsFacet: _sfc_main$R,
11616
+ HierarchyFacet: _sfc_main$P
11616
11617
  }
11617
11618
  };
11618
- const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11619
+ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11619
11620
  __name: "FacetDisplay",
11620
11621
  props: {
11621
11622
  options: {},
@@ -11726,12 +11727,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
11726
11727
  "data-cy": "lupa-search-result-facet-label",
11727
11728
  onClick: toggleFacet
11728
11729
  }, [
11729
- createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
11730
+ createBaseVNode("div", _hoisted_1$L, toDisplayString(facet.value.label), 1),
11730
11731
  createBaseVNode("div", {
11731
11732
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
11732
11733
  }, null, 2)
11733
11734
  ], 2),
11734
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11735
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11735
11736
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
11736
11737
  facet: facet.value,
11737
11738
  currentFilters: currentFilters.value[facet.value.key],
@@ -11749,12 +11750,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
11749
11750
  };
11750
11751
  }
11751
11752
  }));
11752
- const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
11753
- const _hoisted_2$t = {
11753
+ const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
11754
+ const _hoisted_2$u = {
11754
11755
  key: 0,
11755
11756
  class: "lupa-facets-title"
11756
11757
  };
11757
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
11758
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11758
11759
  __name: "FacetList",
11759
11760
  props: {
11760
11761
  options: {},
@@ -11788,14 +11789,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11788
11789
  };
11789
11790
  return (_ctx, _cache) => {
11790
11791
  var _a;
11791
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
11792
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11792
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
11793
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$u, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11793
11794
  createBaseVNode("div", {
11794
11795
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
11795
11796
  }, [
11796
11797
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
11797
11798
  var _a2;
11798
- return openBlock(), createBlock(_sfc_main$N, {
11799
+ return openBlock(), createBlock(_sfc_main$O, {
11799
11800
  key: facet.key,
11800
11801
  facet,
11801
11802
  currentFilters: currentFiltersValue.value,
@@ -11810,8 +11811,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11810
11811
  };
11811
11812
  }
11812
11813
  });
11813
- const _hoisted_1$I = { class: "lupa-search-result-facets" };
11814
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
11814
+ const _hoisted_1$J = { class: "lupa-search-result-facets" };
11815
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11815
11816
  __name: "Facets",
11816
11817
  props: {
11817
11818
  options: {},
@@ -11857,8 +11858,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11857
11858
  paramStore.removeParameters({ paramsToRemove: [param] });
11858
11859
  };
11859
11860
  return (_ctx, _cache) => {
11860
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
11861
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
11861
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
11862
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
11862
11863
  key: 0,
11863
11864
  options: _ctx.options,
11864
11865
  facets: regularFacets.value,
@@ -11872,11 +11873,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11872
11873
  };
11873
11874
  }
11874
11875
  });
11875
- const _hoisted_1$H = {
11876
+ const _hoisted_1$I = {
11876
11877
  id: "lupa-search-result-filters",
11877
11878
  class: "lupa-search-result-filters"
11878
11879
  };
11879
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
11880
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11880
11881
  __name: "SearchResultsFilters",
11881
11882
  props: {
11882
11883
  options: {},
@@ -11905,19 +11906,19 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11905
11906
  __expose({ fetch: fetch2 });
11906
11907
  return (_ctx, _cache) => {
11907
11908
  var _a;
11908
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
11909
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
11909
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
11910
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
11910
11911
  key: 0,
11911
11912
  options: _ctx.options.currentFilters,
11912
11913
  expandable: (_a = _ctx.expandable) != null ? _a : false
11913
11914
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
11914
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
11915
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
11915
11916
  key: 1,
11916
11917
  options: _ctx.options.categories,
11917
11918
  ref_key: "categoryFilters",
11918
11919
  ref: categoryFilters
11919
11920
  }, null, 8, ["options"])) : createCommentVNode("", true),
11920
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
11921
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
11921
11922
  key: 2,
11922
11923
  options: _ctx.options.facets
11923
11924
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -11925,20 +11926,20 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11925
11926
  };
11926
11927
  }
11927
11928
  });
11928
- const _hoisted_1$G = {
11929
+ const _hoisted_1$H = {
11929
11930
  key: 0,
11930
11931
  class: "lupa-mobile-filter-sidebar"
11931
11932
  };
11932
- const _hoisted_2$s = ["onClick"];
11933
- const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
11933
+ const _hoisted_2$t = ["onClick"];
11934
+ const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
11934
11935
  const _hoisted_4$f = { class: "lupa-sidebar-top" };
11935
11936
  const _hoisted_5$8 = { class: "lupa-sidebar-title" };
11936
- const _hoisted_6$5 = {
11937
+ const _hoisted_6$6 = {
11937
11938
  key: 0,
11938
11939
  class: "lupa-sidebar-filter-count"
11939
11940
  };
11940
11941
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
11941
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
11942
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11942
11943
  __name: "MobileFilterSidebar",
11943
11944
  props: {
11944
11945
  options: {}
@@ -11964,16 +11965,16 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11964
11965
  searchResultStore.setSidebarState({ visible: false });
11965
11966
  };
11966
11967
  return (_ctx, _cache) => {
11967
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
11968
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
11968
11969
  createBaseVNode("div", {
11969
11970
  class: "lupa-sidebar-close",
11970
11971
  onClick: withModifiers(handleMobileToggle, ["stop"])
11971
- }, null, 8, _hoisted_2$s),
11972
- createBaseVNode("div", _hoisted_3$l, [
11972
+ }, null, 8, _hoisted_2$t),
11973
+ createBaseVNode("div", _hoisted_3$m, [
11973
11974
  createBaseVNode("div", _hoisted_4$f, [
11974
11975
  createBaseVNode("div", _hoisted_5$8, [
11975
11976
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
11976
- isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$5, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
11977
+ isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
11977
11978
  ]),
11978
11979
  createBaseVNode("div", {
11979
11980
  class: "lupa-filter-toggle-mobile",
@@ -11981,7 +11982,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11981
11982
  })
11982
11983
  ]),
11983
11984
  createBaseVNode("div", _hoisted_7$4, [
11984
- createVNode(_sfc_main$K, {
11985
+ createVNode(_sfc_main$L, {
11985
11986
  options: _ctx.options,
11986
11987
  expandable: isActiveFiltersExpanded.value
11987
11988
  }, null, 8, ["options", "expandable"])
@@ -11991,14 +11992,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11991
11992
  };
11992
11993
  }
11993
11994
  });
11994
- const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
11995
- const _hoisted_2$r = ["href", "onClick"];
11996
- const _hoisted_3$k = {
11995
+ const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
11996
+ const _hoisted_2$s = ["href", "onClick"];
11997
+ const _hoisted_3$l = {
11997
11998
  key: 1,
11998
11999
  class: "lupa-search-results-breadcrumb-text"
11999
12000
  };
12000
12001
  const _hoisted_4$e = { key: 2 };
12001
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
12002
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
12002
12003
  __name: "SearchResultsBreadcrumbs",
12003
12004
  props: {
12004
12005
  breadcrumbs: {}
@@ -12023,7 +12024,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
12023
12024
  handleRoutingEvent(link, event, hasEventRouting.value);
12024
12025
  };
12025
12026
  return (_ctx, _cache) => {
12026
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
12027
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
12027
12028
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
12028
12029
  return openBlock(), createElementBlock("span", {
12029
12030
  class: "lupa-search-results-breadcrumb",
@@ -12037,7 +12038,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
12037
12038
  var _a;
12038
12039
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
12039
12040
  }
12040
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
12041
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
12041
12042
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12042
12043
  ]);
12043
12044
  }), 128))
@@ -12045,11 +12046,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
12045
12046
  };
12046
12047
  }
12047
12048
  });
12048
- const _hoisted_1$E = {
12049
+ const _hoisted_1$F = {
12049
12050
  id: "lupa-search-result-filters",
12050
12051
  class: "lupa-search-result-filters"
12051
12052
  };
12052
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
12053
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
12053
12054
  __name: "FiltersTopDropdown",
12054
12055
  props: {
12055
12056
  options: {}
@@ -12057,8 +12058,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12057
12058
  setup(__props) {
12058
12059
  return (_ctx, _cache) => {
12059
12060
  var _a;
12060
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
12061
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
12061
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
12062
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
12062
12063
  key: 0,
12063
12064
  options: _ctx.options.facets,
12064
12065
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12068,8 +12069,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12068
12069
  };
12069
12070
  }
12070
12071
  });
12071
- const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
12072
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
12072
+ const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
12073
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12073
12074
  __name: "SearchResultsLayoutSelection",
12074
12075
  setup(__props) {
12075
12076
  const searchResultStore = useSearchResultStore();
@@ -12080,7 +12081,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12080
12081
  searchResultStore.setLayout(layout2);
12081
12082
  };
12082
12083
  return (_ctx, _cache) => {
12083
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
12084
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
12084
12085
  createBaseVNode("div", {
12085
12086
  class: normalizeClass([
12086
12087
  "lupa-layout-selection-grid",
@@ -12102,11 +12103,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12102
12103
  };
12103
12104
  }
12104
12105
  });
12105
- const _hoisted_1$C = {
12106
+ const _hoisted_1$D = {
12106
12107
  key: 0,
12107
12108
  class: "lupa-mobile-toggle-filter-count"
12108
12109
  };
12109
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
12110
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12110
12111
  __name: "SearchResultsMobileToggle",
12111
12112
  props: {
12112
12113
  label: {},
@@ -12124,26 +12125,26 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12124
12125
  onClick: handleMobileToggle
12125
12126
  }, [
12126
12127
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12127
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12128
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12128
12129
  ], 2);
12129
12130
  };
12130
12131
  }
12131
12132
  });
12132
- const _hoisted_1$B = {
12133
+ const _hoisted_1$C = {
12133
12134
  key: 0,
12134
12135
  id: "lupa-search-results-page-select",
12135
12136
  "data-cy": "lupa-search-results-page-select"
12136
12137
  };
12137
- const _hoisted_2$q = {
12138
+ const _hoisted_2$r = {
12138
12139
  key: 0,
12139
12140
  class: "lupa-page-number-separator"
12140
12141
  };
12141
- const _hoisted_3$j = ["onClick"];
12142
+ const _hoisted_3$k = ["onClick"];
12142
12143
  const _hoisted_4$d = {
12143
12144
  key: 0,
12144
12145
  class: "lupa-page-number-separator"
12145
12146
  };
12146
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
12147
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12147
12148
  __name: "SearchResultsPageSelect",
12148
12149
  props: {
12149
12150
  lastPageLabel: {},
@@ -12205,7 +12206,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12205
12206
  }
12206
12207
  };
12207
12208
  return (_ctx, _cache) => {
12208
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
12209
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
12209
12210
  showBack.value ? (openBlock(), createElementBlock("div", {
12210
12211
  key: 0,
12211
12212
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12216,7 +12217,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12216
12217
  class: "lupa-page-number lupa-page-number-first",
12217
12218
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12218
12219
  }, " 1 "),
12219
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
12220
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
12220
12221
  ], 64)) : createCommentVNode("", true),
12221
12222
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12222
12223
  return openBlock(), createElementBlock("div", {
@@ -12227,7 +12228,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12227
12228
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
12228
12229
  ]),
12229
12230
  "data-cy": "lupa-page-number"
12230
- }, toDisplayString(page), 11, _hoisted_3$j);
12231
+ }, toDisplayString(page), 11, _hoisted_3$k);
12231
12232
  }), 128)),
12232
12233
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
12233
12234
  showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
@@ -12249,13 +12250,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12249
12250
  };
12250
12251
  }
12251
12252
  });
12252
- const _hoisted_1$A = {
12253
+ const _hoisted_1$B = {
12253
12254
  id: "lupa-search-results-page-size",
12254
12255
  "data-cy": "lupa-search-results-page-size"
12255
12256
  };
12256
- const _hoisted_2$p = { id: "lupa-select" };
12257
- const _hoisted_3$i = { class: "lupa-select-label" };
12258
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
12257
+ const _hoisted_2$q = { id: "lupa-select" };
12258
+ const _hoisted_3$j = { class: "lupa-select-label" };
12259
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12259
12260
  __name: "SearchResultsPageSize",
12260
12261
  props: {
12261
12262
  label: {},
@@ -12272,9 +12273,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12272
12273
  });
12273
12274
  };
12274
12275
  return (_ctx, _cache) => {
12275
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
12276
- createBaseVNode("div", _hoisted_2$p, [
12277
- createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
12276
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
12277
+ createBaseVNode("div", _hoisted_2$q, [
12278
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
12278
12279
  createBaseVNode("select", {
12279
12280
  class: "lupa-select-dropdown",
12280
12281
  "data-cy": "lupa-page-size-select-dropdown",
@@ -12291,14 +12292,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12291
12292
  };
12292
12293
  }
12293
12294
  });
12294
- const _hoisted_1$z = {
12295
+ const _hoisted_1$A = {
12295
12296
  id: "lupa-search-results-sort",
12296
12297
  class: "lupa-search-results-sort"
12297
12298
  };
12298
- const _hoisted_2$o = { id: "lupa-select" };
12299
- const _hoisted_3$h = { class: "lupa-select-label" };
12299
+ const _hoisted_2$p = { id: "lupa-select" };
12300
+ const _hoisted_3$i = { class: "lupa-select-label" };
12300
12301
  const _hoisted_4$c = ["value"];
12301
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
12302
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12302
12303
  __name: "SearchResultsSort",
12303
12304
  props: {
12304
12305
  options: {},
@@ -12345,9 +12346,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12345
12346
  previousKey.value = selectedKey.value;
12346
12347
  };
12347
12348
  return (_ctx, _cache) => {
12348
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
12349
- createBaseVNode("div", _hoisted_2$o, [
12350
- createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
12349
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
12350
+ createBaseVNode("div", _hoisted_2$p, [
12351
+ createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
12351
12352
  withDirectives(createBaseVNode("select", {
12352
12353
  class: "lupa-select-dropdown",
12353
12354
  "data-cy": "lupa-sort-select-dropdown",
@@ -12369,14 +12370,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12369
12370
  };
12370
12371
  }
12371
12372
  });
12372
- const _hoisted_1$y = { class: "lupa-toolbar-left" };
12373
- const _hoisted_2$n = { key: 1 };
12374
- const _hoisted_3$g = { key: 3 };
12373
+ const _hoisted_1$z = { class: "lupa-toolbar-left" };
12374
+ const _hoisted_2$o = { key: 1 };
12375
+ const _hoisted_3$h = { key: 3 };
12375
12376
  const _hoisted_4$b = { key: 5 };
12376
12377
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
12377
- const _hoisted_6$4 = { key: 1 };
12378
+ const _hoisted_6$5 = { key: 1 };
12378
12379
  const _hoisted_7$3 = { key: 3 };
12379
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
12380
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12380
12381
  __name: "SearchResultsToolbar",
12381
12382
  props: {
12382
12383
  options: {},
@@ -12475,15 +12476,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12475
12476
  id: "lupa-search-results-toolbar",
12476
12477
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12477
12478
  }, [
12478
- createBaseVNode("div", _hoisted_1$y, [
12479
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
12480
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
12479
+ createBaseVNode("div", _hoisted_1$z, [
12480
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$o)),
12481
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
12481
12482
  key: 2,
12482
12483
  label: searchSummaryLabel.value,
12483
12484
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12484
12485
  onClear: handleClearAll
12485
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
12486
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
12486
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$h)),
12487
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
12487
12488
  key: 4,
12488
12489
  options: paginationOptions.value.pageSelect,
12489
12490
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -12491,16 +12492,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12491
12492
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
12492
12493
  ]),
12493
12494
  createBaseVNode("div", _hoisted_5$7, [
12494
- createVNode(_sfc_main$F, {
12495
+ createVNode(_sfc_main$G, {
12495
12496
  label: optionsValue.value.labels.mobileFilterButton,
12496
12497
  "show-filter-count": showMobileFilterCount.value
12497
12498
  }, null, 8, ["label", "show-filter-count"]),
12498
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
12499
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
12499
12500
  key: 0,
12500
12501
  options: paginationOptions.value.pageSize,
12501
12502
  label: paginationOptions.value.labels.pageSize
12502
- }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
12503
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
12503
+ }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
12504
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
12504
12505
  key: 2,
12505
12506
  options: sortOptions.value,
12506
12507
  callbacks: callbacks.value
@@ -12510,14 +12511,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12510
12511
  };
12511
12512
  }
12512
12513
  });
12513
- const _hoisted_1$x = { class: "lupa-badge-title" };
12514
- const _hoisted_2$m = ["src"];
12515
- const _hoisted_3$f = { key: 1 };
12514
+ const _hoisted_1$y = { class: "lupa-badge-title" };
12515
+ const _hoisted_2$n = ["src"];
12516
+ const _hoisted_3$g = { key: 1 };
12516
12517
  const _hoisted_4$a = {
12517
12518
  key: 0,
12518
12519
  class: "lupa-badge-full-text"
12519
12520
  };
12520
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12521
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12521
12522
  __name: "SearchResultGeneratedBadge",
12522
12523
  props: {
12523
12524
  options: {},
@@ -12550,20 +12551,20 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12550
12551
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12551
12552
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12552
12553
  }, [
12553
- createBaseVNode("span", _hoisted_1$x, [
12554
+ createBaseVNode("span", _hoisted_1$y, [
12554
12555
  image.value ? (openBlock(), createElementBlock("img", {
12555
12556
  key: 0,
12556
12557
  src: image.value
12557
- }, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
12558
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12558
+ }, null, 8, _hoisted_2$n)) : createCommentVNode("", true),
12559
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12559
12560
  ]),
12560
12561
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
12561
12562
  ], 6);
12562
12563
  };
12563
12564
  }
12564
12565
  });
12565
- const _hoisted_1$w = { class: "lupa-generated-badges" };
12566
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
12566
+ const _hoisted_1$x = { class: "lupa-generated-badges" };
12567
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12567
12568
  __name: "SearchResultGeneratedBadges",
12568
12569
  props: {
12569
12570
  options: {}
@@ -12589,9 +12590,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12589
12590
  })).filter((b) => Boolean(b.id));
12590
12591
  });
12591
12592
  return (_ctx, _cache) => {
12592
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
12593
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
12593
12594
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
12594
- return openBlock(), createBlock(_sfc_main$A, {
12595
+ return openBlock(), createBlock(_sfc_main$B, {
12595
12596
  key: badge.id,
12596
12597
  badge,
12597
12598
  options: _ctx.options
@@ -12601,8 +12602,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12601
12602
  };
12602
12603
  }
12603
12604
  });
12604
- const _hoisted_1$v = ["innerHTML"];
12605
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12605
+ const _hoisted_1$w = ["innerHTML"];
12606
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12606
12607
  __name: "CustomBadge",
12607
12608
  props: {
12608
12609
  badge: {}
@@ -12621,12 +12622,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12621
12622
  return openBlock(), createElementBlock("div", {
12622
12623
  class: normalizeClass(className.value),
12623
12624
  innerHTML: text.value
12624
- }, null, 10, _hoisted_1$v);
12625
+ }, null, 10, _hoisted_1$w);
12625
12626
  };
12626
12627
  }
12627
12628
  });
12628
- const _hoisted_1$u = { class: "lupa-text-badges" };
12629
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
12629
+ const _hoisted_1$v = { class: "lupa-text-badges" };
12630
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12630
12631
  __name: "TextBadge",
12631
12632
  props: {
12632
12633
  badge: {}
@@ -12641,7 +12642,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12641
12642
  return badges.value.slice(0, props.badge.maxItems);
12642
12643
  });
12643
12644
  return (_ctx, _cache) => {
12644
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
12645
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
12645
12646
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12646
12647
  return openBlock(), createElementBlock("div", {
12647
12648
  class: "lupa-badge lupa-text-badge",
@@ -12652,9 +12653,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12652
12653
  };
12653
12654
  }
12654
12655
  });
12655
- const _hoisted_1$t = { class: "lupa-image-badges" };
12656
- const _hoisted_2$l = ["src"];
12657
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
12656
+ const _hoisted_1$u = { class: "lupa-image-badges" };
12657
+ const _hoisted_2$m = ["src"];
12658
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12658
12659
  __name: "ImageBadge",
12659
12660
  props: {
12660
12661
  badge: {}
@@ -12674,7 +12675,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12674
12675
  return `${props.badge.rootImageUrl}${src}`;
12675
12676
  };
12676
12677
  return (_ctx, _cache) => {
12677
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
12678
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
12678
12679
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12679
12680
  return openBlock(), createElementBlock("div", {
12680
12681
  class: "lupa-badge lupa-image-badge",
@@ -12682,22 +12683,22 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12682
12683
  }, [
12683
12684
  createBaseVNode("img", {
12684
12685
  src: getImageUrl(item)
12685
- }, null, 8, _hoisted_2$l)
12686
+ }, null, 8, _hoisted_2$m)
12686
12687
  ]);
12687
12688
  }), 128))
12688
12689
  ]);
12689
12690
  };
12690
12691
  }
12691
12692
  });
12692
- const _hoisted_1$s = { id: "lupa-search-results-badges" };
12693
+ const _hoisted_1$t = { id: "lupa-search-results-badges" };
12693
12694
  const __default__$1 = {
12694
12695
  components: {
12695
- CustomBadge: _sfc_main$y,
12696
- TextBadge: _sfc_main$x,
12697
- ImageBadge: _sfc_main$w
12696
+ CustomBadge: _sfc_main$z,
12697
+ TextBadge: _sfc_main$y,
12698
+ ImageBadge: _sfc_main$x
12698
12699
  }
12699
12700
  };
12700
- const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12701
+ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12701
12702
  __name: "SearchResultsBadgeWrapper",
12702
12703
  props: {
12703
12704
  position: {},
@@ -12743,7 +12744,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12743
12744
  }
12744
12745
  };
12745
12746
  return (_ctx, _cache) => {
12746
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
12747
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
12747
12748
  createBaseVNode("div", {
12748
12749
  id: "lupa-badges",
12749
12750
  class: normalizeClass(anchorPosition.value)
@@ -12754,7 +12755,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12754
12755
  badge
12755
12756
  }, null, 8, ["badge"]);
12756
12757
  }), 128)),
12757
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
12758
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$A, {
12758
12759
  key: 0,
12759
12760
  options: _ctx.options
12760
12761
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12763,7 +12764,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12763
12764
  };
12764
12765
  }
12765
12766
  }));
12766
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
12767
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12767
12768
  __name: "SearchResultsProductImage",
12768
12769
  props: {
12769
12770
  item: {},
@@ -12771,7 +12772,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12771
12772
  },
12772
12773
  setup(__props) {
12773
12774
  return (_ctx, _cache) => {
12774
- return openBlock(), createBlock(_sfc_main$1b, {
12775
+ return openBlock(), createBlock(_sfc_main$1c, {
12775
12776
  item: _ctx.item,
12776
12777
  options: _ctx.options,
12777
12778
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -12780,14 +12781,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12780
12781
  };
12781
12782
  }
12782
12783
  });
12783
- const _hoisted_1$r = ["innerHTML"];
12784
- const _hoisted_2$k = ["title"];
12785
- const _hoisted_3$e = {
12784
+ const _hoisted_1$s = ["innerHTML"];
12785
+ const _hoisted_2$l = ["title"];
12786
+ const _hoisted_3$f = {
12786
12787
  key: 0,
12787
12788
  class: "lupa-search-results-product-title-text"
12788
12789
  };
12789
12790
  const _hoisted_4$9 = ["href"];
12790
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
12791
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12791
12792
  __name: "SearchResultsProductTitle",
12792
12793
  props: {
12793
12794
  item: {},
@@ -12820,25 +12821,25 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12820
12821
  class: "lupa-search-results-product-title",
12821
12822
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12822
12823
  innerHTML: title.value
12823
- }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
12824
+ }, null, 12, _hoisted_1$s)) : (openBlock(), createElementBlock("div", {
12824
12825
  key: 1,
12825
12826
  class: "lupa-search-results-product-title",
12826
12827
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12827
12828
  title: title.value
12828
12829
  }, [
12829
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(title.value), 1)) : createCommentVNode("", true),
12830
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
12830
12831
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
12831
12832
  key: 1,
12832
12833
  href: _ctx.link,
12833
12834
  class: "lupa-search-results-product-title-text lupa-title-link",
12834
12835
  onClick: handleNavigation
12835
12836
  }, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
12836
- ], 12, _hoisted_2$k));
12837
+ ], 12, _hoisted_2$l));
12837
12838
  };
12838
12839
  }
12839
12840
  });
12840
- const _hoisted_1$q = ["innerHTML"];
12841
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
12841
+ const _hoisted_1$r = ["innerHTML"];
12842
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12842
12843
  __name: "SearchResultsProductDescription",
12843
12844
  props: {
12844
12845
  item: {},
@@ -12862,7 +12863,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12862
12863
  class: "lupa-search-results-product-description",
12863
12864
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12864
12865
  innerHTML: description.value
12865
- }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12866
+ }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
12866
12867
  key: 1,
12867
12868
  class: "lupa-search-results-product-description",
12868
12869
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -12870,15 +12871,15 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12870
12871
  };
12871
12872
  }
12872
12873
  });
12873
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
12874
- const _hoisted_2$j = { class: "lupa-ratings" };
12875
- const _hoisted_3$d = { class: "lupa-ratings-base" };
12874
+ const _hoisted_1$q = { id: "lupa-search-results-rating" };
12875
+ const _hoisted_2$k = { class: "lupa-ratings" };
12876
+ const _hoisted_3$e = { class: "lupa-ratings-base" };
12876
12877
  const _hoisted_4$8 = ["innerHTML"];
12877
12878
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
12878
- const _hoisted_6$3 = ["innerHTML"];
12879
+ const _hoisted_6$4 = ["innerHTML"];
12879
12880
  const _hoisted_7$2 = ["href"];
12880
12881
  const STAR_COUNT = 5;
12881
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12882
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12882
12883
  __name: "SearchResultsProductRating",
12883
12884
  props: {
12884
12885
  item: {},
@@ -12909,9 +12910,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12909
12910
  return generateLink(props.options.links.ratingDetails, props.item);
12910
12911
  });
12911
12912
  return (_ctx, _cache) => {
12912
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
12913
- createBaseVNode("div", _hoisted_2$j, [
12914
- createBaseVNode("div", _hoisted_3$d, [
12913
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
12914
+ createBaseVNode("div", _hoisted_2$k, [
12915
+ createBaseVNode("div", _hoisted_3$e, [
12915
12916
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
12916
12917
  return openBlock(), createElementBlock("div", {
12917
12918
  key: index,
@@ -12930,7 +12931,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12930
12931
  key: index,
12931
12932
  innerHTML: star,
12932
12933
  class: "lupa-rating lupa-rating-highlighted"
12933
- }, null, 8, _hoisted_6$3);
12934
+ }, null, 8, _hoisted_6$4);
12934
12935
  }), 128))
12935
12936
  ], 4)
12936
12937
  ])
@@ -12943,11 +12944,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12943
12944
  };
12944
12945
  }
12945
12946
  });
12946
- const _hoisted_1$o = {
12947
+ const _hoisted_1$p = {
12947
12948
  class: "lupa-search-results-product-regular-price",
12948
12949
  "data-cy": "lupa-search-results-product-regular-price"
12949
12950
  };
12950
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12951
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12951
12952
  __name: "SearchResultsProductRegularPrice",
12952
12953
  props: {
12953
12954
  item: {},
@@ -12965,15 +12966,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12965
12966
  );
12966
12967
  });
12967
12968
  return (_ctx, _cache) => {
12968
- return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
12969
+ return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
12969
12970
  };
12970
12971
  }
12971
12972
  });
12972
- const _hoisted_1$n = {
12973
+ const _hoisted_1$o = {
12973
12974
  class: "lupa-search-results-product-price",
12974
12975
  "data-cy": "lupa-search-results-product-price"
12975
12976
  };
12976
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
12977
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12977
12978
  __name: "SearchResultsProductPrice",
12978
12979
  props: {
12979
12980
  item: {},
@@ -12991,16 +12992,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12991
12992
  );
12992
12993
  });
12993
12994
  return (_ctx, _cache) => {
12994
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
12995
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
12995
12996
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
12996
12997
  ]);
12997
12998
  };
12998
12999
  }
12999
13000
  });
13000
- const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
13001
- const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
13002
- const _hoisted_3$c = ["onClick", "disabled"];
13003
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
13001
+ const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
13002
+ const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
13003
+ const _hoisted_3$d = ["onClick", "disabled"];
13004
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
13004
13005
  __name: "SearchResultsProductAddToCart",
13005
13006
  props: {
13006
13007
  item: {},
@@ -13027,25 +13028,25 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
13027
13028
  loading.value = false;
13028
13029
  });
13029
13030
  return (_ctx, _cache) => {
13030
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
13031
- createBaseVNode("div", _hoisted_2$i, [
13031
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
13032
+ createBaseVNode("div", _hoisted_2$j, [
13032
13033
  createBaseVNode("button", {
13033
13034
  onClick: withModifiers(handleClick, ["stop"]),
13034
13035
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
13035
13036
  "data-cy": "lupa-add-to-cart",
13036
13037
  disabled: !inStockValue.value || loading.value
13037
- }, toDisplayString(label.value), 11, _hoisted_3$c)
13038
+ }, toDisplayString(label.value), 11, _hoisted_3$d)
13038
13039
  ])
13039
13040
  ]);
13040
13041
  };
13041
13042
  }
13042
13043
  });
13043
- const _hoisted_1$l = ["innerHTML"];
13044
- const _hoisted_2$h = { key: 0 };
13045
- const _hoisted_3$b = { key: 1 };
13044
+ const _hoisted_1$m = ["innerHTML"];
13045
+ const _hoisted_2$i = { key: 0 };
13046
+ const _hoisted_3$c = { key: 1 };
13046
13047
  const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
13047
13048
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
13048
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
13049
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
13049
13050
  __name: "SearchResultsProductCustom",
13050
13051
  props: {
13051
13052
  item: {},
@@ -13083,11 +13084,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13083
13084
  key: 0,
13084
13085
  class: className.value,
13085
13086
  innerHTML: text.value
13086
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
13087
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m)) : (openBlock(), createElementBlock("div", mergeProps({
13087
13088
  key: 1,
13088
13089
  class: className.value
13089
13090
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
13090
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
13091
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
13091
13092
  createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
13092
13093
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
13093
13094
  ]))
@@ -13095,8 +13096,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13095
13096
  };
13096
13097
  }
13097
13098
  });
13098
- const _hoisted_1$k = ["innerHTML"];
13099
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
13099
+ const _hoisted_1$l = ["innerHTML"];
13100
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13100
13101
  __name: "SearchResultsProductCustomHtmlElement",
13101
13102
  props: {
13102
13103
  item: {},
@@ -13120,15 +13121,15 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13120
13121
  return openBlock(), createElementBlock("div", mergeProps({
13121
13122
  class: className.value,
13122
13123
  innerHTML: text.value
13123
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
13124
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
13124
13125
  };
13125
13126
  }
13126
13127
  });
13127
- const _hoisted_1$j = { id: "lupa-search-results-rating" };
13128
- const _hoisted_2$g = ["innerHTML"];
13129
- const _hoisted_3$a = { class: "lupa-ratings" };
13128
+ const _hoisted_1$k = { id: "lupa-search-results-rating" };
13129
+ const _hoisted_2$h = ["innerHTML"];
13130
+ const _hoisted_3$b = { class: "lupa-ratings" };
13130
13131
  const _hoisted_4$6 = ["href"];
13131
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
13132
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13132
13133
  __name: "SearchResultsProductSingleStarRating",
13133
13134
  props: {
13134
13135
  item: {},
@@ -13156,12 +13157,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13156
13157
  return RATING_STAR_HTML;
13157
13158
  });
13158
13159
  return (_ctx, _cache) => {
13159
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
13160
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
13160
13161
  createBaseVNode("div", {
13161
13162
  innerHTML: star.value,
13162
13163
  class: "lupa-rating lupa-rating-highlighted"
13163
- }, null, 8, _hoisted_2$g),
13164
- createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
13164
+ }, null, 8, _hoisted_2$h),
13165
+ createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
13165
13166
  createBaseVNode("a", {
13166
13167
  href: ratingLink.value,
13167
13168
  class: "lupa-total-ratings"
@@ -13172,19 +13173,19 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13172
13173
  });
13173
13174
  const __default__ = {
13174
13175
  components: {
13175
- SearchResultsProductImage: _sfc_main$u,
13176
- SearchResultsProductTitle: _sfc_main$t,
13177
- SearchResultsProductDescription: _sfc_main$s,
13178
- SearchResultsProductRating: _sfc_main$r,
13179
- SearchResultsProductRegularPrice: _sfc_main$q,
13180
- SearchResultsProductPrice: _sfc_main$p,
13181
- SearchResultsProductAddToCart: _sfc_main$o,
13182
- SearchResultsProductCustom: _sfc_main$n,
13183
- SearchResultsProductCustomHtmlElement: _sfc_main$m,
13184
- SearchResultsProductSingleStarRating: _sfc_main$l
13185
- }
13186
- };
13187
- const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13176
+ SearchResultsProductImage: _sfc_main$v,
13177
+ SearchResultsProductTitle: _sfc_main$u,
13178
+ SearchResultsProductDescription: _sfc_main$t,
13179
+ SearchResultsProductRating: _sfc_main$s,
13180
+ SearchResultsProductRegularPrice: _sfc_main$r,
13181
+ SearchResultsProductPrice: _sfc_main$q,
13182
+ SearchResultsProductAddToCart: _sfc_main$p,
13183
+ SearchResultsProductCustom: _sfc_main$o,
13184
+ SearchResultsProductCustomHtmlElement: _sfc_main$n,
13185
+ SearchResultsProductSingleStarRating: _sfc_main$m
13186
+ }
13187
+ };
13188
+ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13188
13189
  __name: "SearchResultsProductCardElement",
13189
13190
  props: {
13190
13191
  item: {},
@@ -13254,13 +13255,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
13254
13255
  };
13255
13256
  }
13256
13257
  }));
13257
- const _hoisted_1$i = ["href"];
13258
- const _hoisted_2$f = {
13258
+ const _hoisted_1$j = ["href"];
13259
+ const _hoisted_2$g = {
13259
13260
  key: 0,
13260
13261
  class: "lupa-out-of-stock"
13261
13262
  };
13262
- const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
13263
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
13263
+ const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
13264
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
13264
13265
  __name: "SearchResultsProductCard",
13265
13266
  props: {
13266
13267
  product: {},
@@ -13405,7 +13406,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13405
13406
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
13406
13407
  onClick: handleClick
13407
13408
  }, [
13408
- createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
13409
+ createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
13409
13410
  createBaseVNode("div", {
13410
13411
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13411
13412
  }, [
@@ -13415,7 +13416,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13415
13416
  onClick: handleNavigation
13416
13417
  }, [
13417
13418
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
13418
- return openBlock(), createBlock(_sfc_main$k, {
13419
+ return openBlock(), createBlock(_sfc_main$l, {
13419
13420
  class: "lupa-search-results-product-element",
13420
13421
  item: _ctx.product,
13421
13422
  element,
@@ -13425,16 +13426,16 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13425
13426
  link: link.value
13426
13427
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13427
13428
  }), 128)),
13428
- createVNode(_sfc_main$v, {
13429
+ createVNode(_sfc_main$w, {
13429
13430
  options: badgesOptions.value,
13430
13431
  position: "image",
13431
13432
  class: "lupa-image-badges"
13432
13433
  }, null, 8, ["options"]),
13433
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13434
- ], 8, _hoisted_1$i),
13435
- createBaseVNode("div", _hoisted_3$9, [
13434
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13435
+ ], 8, _hoisted_1$j),
13436
+ createBaseVNode("div", _hoisted_3$a, [
13436
13437
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
13437
- return openBlock(), createBlock(_sfc_main$k, {
13438
+ return openBlock(), createBlock(_sfc_main$l, {
13438
13439
  class: "lupa-search-results-product-element",
13439
13440
  item: _ctx.product,
13440
13441
  element,
@@ -13452,7 +13453,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13452
13453
  class: normalizeClass("lupa-element-group-" + group)
13453
13454
  }, [
13454
13455
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
13455
- return openBlock(), createBlock(_sfc_main$k, {
13456
+ return openBlock(), createBlock(_sfc_main$l, {
13456
13457
  class: "lupa-search-results-product-element",
13457
13458
  item: _ctx.product,
13458
13459
  element,
@@ -13470,23 +13471,23 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13470
13471
  };
13471
13472
  }
13472
13473
  });
13473
- const _hoisted_1$h = {
13474
+ const _hoisted_1$i = {
13474
13475
  id: "lupa-search-results-similar-queries",
13475
13476
  "data-cy": "lupa-search-results-similar-queries"
13476
13477
  };
13477
- const _hoisted_2$e = { class: "lupa-similar-queries-label" };
13478
- const _hoisted_3$8 = {
13478
+ const _hoisted_2$f = { class: "lupa-similar-queries-label" };
13479
+ const _hoisted_3$9 = {
13479
13480
  class: "lupa-similar-query-label",
13480
13481
  "data-cy": "lupa-similar-query-label"
13481
13482
  };
13482
13483
  const _hoisted_4$5 = ["onClick"];
13483
13484
  const _hoisted_5$4 = ["innerHTML"];
13484
- const _hoisted_6$2 = { key: 0 };
13485
+ const _hoisted_6$3 = { key: 0 };
13485
13486
  const _hoisted_7$1 = {
13486
13487
  class: "lupa-products",
13487
13488
  "data-cy": "lupa-products"
13488
13489
  };
13489
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
13490
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13490
13491
  __name: "SearchResultsSimilarQueries",
13491
13492
  props: {
13492
13493
  labels: {},
@@ -13516,11 +13517,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13516
13517
  paramsStore.goToResults({ searchText, facet });
13517
13518
  };
13518
13519
  return (_ctx, _cache) => {
13519
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
13520
- createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
13520
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
13521
+ createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
13521
13522
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
13522
13523
  return openBlock(), createElementBlock("div", { key: index }, [
13523
- createBaseVNode("div", _hoisted_3$8, [
13524
+ createBaseVNode("div", _hoisted_3$9, [
13524
13525
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
13525
13526
  createBaseVNode("span", {
13526
13527
  id: "lupa-similar-query-text-component",
@@ -13531,12 +13532,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13531
13532
  createBaseVNode("span", {
13532
13533
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
13533
13534
  }, null, 8, _hoisted_5$4),
13534
- similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
13535
+ similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
13535
13536
  ], 8, _hoisted_4$5)
13536
13537
  ]),
13537
13538
  createBaseVNode("div", _hoisted_7$1, [
13538
13539
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
13539
- return openBlock(), createBlock(_sfc_main$j, {
13540
+ return openBlock(), createBlock(_sfc_main$k, {
13540
13541
  style: normalizeStyle(_ctx.columnSize),
13541
13542
  key: getDocumentKey(index2, product),
13542
13543
  product,
@@ -13550,15 +13551,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13550
13551
  };
13551
13552
  }
13552
13553
  });
13553
- const _hoisted_1$g = {
13554
+ const _hoisted_1$h = {
13554
13555
  key: 0,
13555
13556
  class: "lupa-results-additional-panel"
13556
13557
  };
13557
- const _hoisted_2$d = {
13558
+ const _hoisted_2$e = {
13558
13559
  class: "lupa-results-additional-panel-items",
13559
13560
  "data-cy": "lupa-results-additional-panel-items"
13560
13561
  };
13561
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
13562
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13562
13563
  __name: "AdditionalPanel",
13563
13564
  props: {
13564
13565
  panel: {},
@@ -13630,10 +13631,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13630
13631
  handleQueryChange();
13631
13632
  });
13632
13633
  return (_ctx, _cache) => {
13633
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
13634
- createBaseVNode("div", _hoisted_2$d, [
13634
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
13635
+ createBaseVNode("div", _hoisted_2$e, [
13635
13636
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
13636
- return openBlock(), createBlock(_sfc_main$j, {
13637
+ return openBlock(), createBlock(_sfc_main$k, {
13637
13638
  key: index,
13638
13639
  product: item,
13639
13640
  options: _ctx.panel,
@@ -13651,11 +13652,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13651
13652
  };
13652
13653
  }
13653
13654
  });
13654
- const _hoisted_1$f = {
13655
+ const _hoisted_1$g = {
13655
13656
  key: 0,
13656
13657
  class: "lupa-results-additional-panels"
13657
13658
  };
13658
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
13659
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13659
13660
  __name: "AdditionalPanels",
13660
13661
  props: {
13661
13662
  options: {},
@@ -13672,9 +13673,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13672
13673
  return locationPanels.value.length > 0;
13673
13674
  });
13674
13675
  return (_ctx, _cache) => {
13675
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13676
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
13676
13677
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
13677
- return openBlock(), createBlock(_sfc_main$h, {
13678
+ return openBlock(), createBlock(_sfc_main$i, {
13678
13679
  key: panel.queryKey,
13679
13680
  panel,
13680
13681
  options: _ctx.sdkOptions
@@ -13691,19 +13692,60 @@ const _export_sfc = (sfc, props) => {
13691
13692
  }
13692
13693
  return target;
13693
13694
  };
13694
- const _sfc_main$f = {};
13695
- const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
13696
- const _hoisted_2$c = { class: "lupa-spinner" };
13695
+ const _sfc_main$g = {};
13696
+ const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
13697
+ const _hoisted_2$d = { class: "lupa-spinner" };
13697
13698
  function _sfc_render(_ctx, _cache) {
13698
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
13699
- createBaseVNode("div", _hoisted_2$c, [
13699
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
13700
+ createBaseVNode("div", _hoisted_2$d, [
13700
13701
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
13701
13702
  return createBaseVNode("div", { key: x });
13702
13703
  }), 64))
13703
13704
  ])
13704
13705
  ]);
13705
13706
  }
13706
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
13707
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
13708
+ const _hoisted_1$e = {
13709
+ id: "lupa-search-results-similar-results",
13710
+ "data-cy": "lupa-search-results-similar-results"
13711
+ };
13712
+ const _hoisted_2$c = { class: "lupa-similar-results-label" };
13713
+ const _hoisted_3$8 = {
13714
+ class: "lupa-products",
13715
+ "data-cy": "lupa-products"
13716
+ };
13717
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
13718
+ __name: "SearchResultsSimilarResults",
13719
+ props: {
13720
+ columnSize: {},
13721
+ labels: {},
13722
+ productCardOptions: {}
13723
+ },
13724
+ setup(__props) {
13725
+ const props = __props;
13726
+ const searchResultStore = useSearchResultStore();
13727
+ const { searchResult } = storeToRefs(searchResultStore);
13728
+ const similarResults = computed(() => searchResult.value.similarResults);
13729
+ const getDocumentKey = (index, product) => {
13730
+ return getProductKey(`${index}`, product, props.productCardOptions.idKey);
13731
+ };
13732
+ return (_ctx, _cache) => {
13733
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
13734
+ createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
13735
+ createBaseVNode("div", _hoisted_3$8, [
13736
+ (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
13737
+ return openBlock(), createBlock(_sfc_main$k, {
13738
+ style: normalizeStyle(_ctx.columnSize),
13739
+ key: getDocumentKey(index, product),
13740
+ product,
13741
+ options: _ctx.productCardOptions
13742
+ }, null, 8, ["style", "product", "options"]);
13743
+ }), 128))
13744
+ ])
13745
+ ]);
13746
+ };
13747
+ }
13748
+ });
13707
13749
  const _hoisted_1$d = { id: "lupa-search-results-products" };
13708
13750
  const _hoisted_2$b = {
13709
13751
  class: "lupa-products",
@@ -13720,6 +13762,7 @@ const _hoisted_4$4 = {
13720
13762
  "data-cy": "lupa-no-results"
13721
13763
  };
13722
13764
  const _hoisted_5$3 = { key: 4 };
13765
+ const _hoisted_6$2 = { key: 5 };
13723
13766
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
13724
13767
  __name: "SearchResultsProducts",
13725
13768
  props: {
@@ -13757,6 +13800,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13757
13800
  const similarQueriesLabels = computed(() => {
13758
13801
  return props.options.labels;
13759
13802
  });
13803
+ const similarResultsLabels = computed(() => {
13804
+ return props.options.labels;
13805
+ });
13760
13806
  const showTopFilters = computed(() => {
13761
13807
  var _a, _b, _c;
13762
13808
  return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.style) == null ? void 0 : _c.type) === "top-dropdown";
@@ -13799,7 +13845,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13799
13845
  });
13800
13846
  const hasSimilarQueries = computed(() => {
13801
13847
  var _a;
13802
- return (_a = searchResult.value.similarQueries) == null ? void 0 : _a.length;
13848
+ return Boolean((_a = searchResult.value.similarQueries) == null ? void 0 : _a.length);
13849
+ });
13850
+ const hasSimilarResults = computed(() => {
13851
+ var _a, _b;
13852
+ return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
13803
13853
  });
13804
13854
  const getProductKeyAction = (index, product) => {
13805
13855
  return getProductKey(`${index}`, product, props.options.idKey);
@@ -13817,17 +13867,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13817
13867
  class: "lupa-loader"
13818
13868
  })) : createCommentVNode("", true),
13819
13869
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13820
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
13870
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
13821
13871
  key: 0,
13822
13872
  options: (_a = _ctx.options.filters) != null ? _a : {}
13823
13873
  }, null, 8, ["options"])) : createCommentVNode("", true),
13824
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
13874
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
13825
13875
  key: 1,
13826
13876
  class: "lupa-toolbar-mobile",
13827
13877
  options: _ctx.options,
13828
13878
  "pagination-location": "top"
13829
13879
  }, null, 8, ["options"])) : createCommentVNode("", true),
13830
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
13880
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$V, {
13831
13881
  key: 2,
13832
13882
  class: normalizeClass(currentFiltersClass.value),
13833
13883
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -13835,13 +13885,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13835
13885
  expandable: !desktopFiltersExpanded.value
13836
13886
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
13837
13887
  ], 64)) : createCommentVNode("", true),
13838
- createVNode(_sfc_main$g, {
13888
+ createVNode(_sfc_main$h, {
13839
13889
  options: _ctx.options,
13840
13890
  location: "top",
13841
13891
  sdkOptions: _ctx.options.options
13842
13892
  }, null, 8, ["options", "sdkOptions"]),
13843
13893
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13844
- createVNode(_sfc_main$B, {
13894
+ createVNode(_sfc_main$C, {
13845
13895
  class: "lupa-toolbar-top",
13846
13896
  options: _ctx.options,
13847
13897
  "pagination-location": "top"
@@ -13855,7 +13905,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13855
13905
  options: productCardOptions.value
13856
13906
  });
13857
13907
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
13858
- return openBlock(), createBlock(_sfc_main$j, {
13908
+ return openBlock(), createBlock(_sfc_main$k, {
13859
13909
  style: normalizeStyle(columnSize.value),
13860
13910
  key: getProductKeyAction(index, product),
13861
13911
  product,
@@ -13871,12 +13921,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13871
13921
  onClick: goToFirstPage
13872
13922
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
13873
13923
  ])) : createCommentVNode("", true),
13874
- createVNode(_sfc_main$B, {
13924
+ createVNode(_sfc_main$C, {
13875
13925
  class: "lupa-toolbar-bottom",
13876
13926
  options: _ctx.options,
13877
13927
  "pagination-location": "bottom"
13878
13928
  }, null, 8, ["options"]),
13879
- createVNode(_sfc_main$g, {
13929
+ createVNode(_sfc_main$h, {
13880
13930
  options: _ctx.options,
13881
13931
  location: "bottom",
13882
13932
  sdkOptions: _ctx.options.options
@@ -13886,12 +13936,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13886
13936
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
13887
13937
  ])) : createCommentVNode("", true),
13888
13938
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
13889
- createVNode(_sfc_main$i, {
13939
+ createVNode(_sfc_main$j, {
13890
13940
  labels: similarQueriesLabels.value,
13891
13941
  columnSize: columnSize.value,
13892
13942
  productCardOptions: productCardOptions.value
13893
13943
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
13894
13944
  ])) : createCommentVNode("", true),
13945
+ hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
13946
+ createVNode(_sfc_main$f, {
13947
+ labels: similarResultsLabels.value,
13948
+ columnSize: columnSize.value,
13949
+ productCardOptions: productCardOptions.value
13950
+ }, null, 8, ["labels", "columnSize", "productCardOptions"])
13951
+ ])) : createCommentVNode("", true),
13895
13952
  renderSlot(_ctx.$slots, "append")
13896
13953
  ]);
13897
13954
  };
@@ -13943,7 +14000,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13943
14000
  onClick: handleNavigationBack
13944
14001
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
13945
14002
  ])) : createCommentVNode("", true),
13946
- createVNode(_sfc_main$B, {
14003
+ createVNode(_sfc_main$C, {
13947
14004
  class: "lupa-toolbar-mobile",
13948
14005
  "pagination-location": "top",
13949
14006
  options: _ctx.options
@@ -14161,8 +14218,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14161
14218
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14162
14219
  }, [
14163
14220
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
14164
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14165
- createVNode(_sfc_main$W, {
14221
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14222
+ createVNode(_sfc_main$X, {
14166
14223
  "show-summary": true,
14167
14224
  options: _ctx.options,
14168
14225
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -14172,24 +14229,24 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14172
14229
  key: 1,
14173
14230
  options: _ctx.options
14174
14231
  }, null, 8, ["options"])) : createCommentVNode("", true),
14175
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
14232
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
14176
14233
  key: 2,
14177
14234
  options: _ctx.options.filters
14178
14235
  }, null, 8, ["options"])) : createCommentVNode("", true),
14179
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
14236
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
14180
14237
  key: 3,
14181
14238
  breadcrumbs: _ctx.options.breadcrumbs
14182
14239
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14183
14240
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
14184
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14241
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14185
14242
  key: 0,
14186
14243
  options: (_b = _ctx.options.filters) != null ? _b : {},
14187
14244
  ref_key: "searchResultsFilters",
14188
14245
  ref: searchResultsFilters
14189
14246
  }, null, 8, ["options"])) : createCommentVNode("", true),
14190
14247
  createBaseVNode("div", _hoisted_3$5, [
14191
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14192
- createVNode(_sfc_main$W, {
14248
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14249
+ createVNode(_sfc_main$X, {
14193
14250
  options: _ctx.options,
14194
14251
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14195
14252
  }, null, 8, ["options", "is-product-list"]),
@@ -14204,13 +14261,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14204
14261
  }, 8, ["options", "ssr"])
14205
14262
  ])
14206
14263
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14207
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14208
- createVNode(_sfc_main$W, {
14264
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14265
+ createVNode(_sfc_main$X, {
14209
14266
  options: _ctx.options,
14210
14267
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14211
14268
  }, null, 8, ["options", "is-product-list"]),
14212
14269
  createBaseVNode("div", _hoisted_4$3, [
14213
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14270
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14214
14271
  key: 0,
14215
14272
  options: (_e = _ctx.options.filters) != null ? _e : {},
14216
14273
  ref_key: "searchResultsFilters",
@@ -19838,7 +19895,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
19838
19895
  onClick: withModifiers(innerClick, ["stop"])
19839
19896
  }, [
19840
19897
  createBaseVNode("div", _hoisted_2$7, [
19841
- createVNode(_sfc_main$Z, {
19898
+ createVNode(_sfc_main$_, {
19842
19899
  options: fullSearchBoxOptions.value,
19843
19900
  "is-search-container": true,
19844
19901
  ref_key: "searchBox",
@@ -20659,7 +20716,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
20659
20716
  key: getProductKeyAction(index, product)
20660
20717
  }, {
20661
20718
  default: withCtx(() => [
20662
- createVNode(_sfc_main$j, {
20719
+ createVNode(_sfc_main$k, {
20663
20720
  product,
20664
20721
  options: _ctx.options,
20665
20722
  "click-tracking-settings": clickTrackingSettings.value
@@ -20767,11 +20824,12 @@ const getApiUrl = (environment, customBaseUrl) => {
20767
20824
  }
20768
20825
  return Env[environment] || Env["production"];
20769
20826
  };
20770
- const suggestSearchChatPhrases = (options, request) => __async(void 0, null, function* () {
20827
+ const suggestSearchChatPhrases = (options, request, chatSettings) => __async(void 0, null, function* () {
20771
20828
  var _a, _b, _c;
20772
20829
  const { environment, customBaseUrl } = options;
20830
+ const model = (chatSettings == null ? void 0 : chatSettings.model) ? `?model=${chatSettings.model}` : ``;
20773
20831
  try {
20774
- const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20832
+ const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat${model}`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20775
20833
  body: JSON.stringify(request),
20776
20834
  headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20777
20835
  }));
@@ -20787,14 +20845,18 @@ const suggestSearchChatPhrases = (options, request) => __async(void 0, null, fun
20787
20845
  return { success: false, errors: [e] };
20788
20846
  }
20789
20847
  });
20790
- const suggestPhraseAlternatives = (_0, _1) => __async(void 0, [_0, _1], function* (options, { phrases }) {
20848
+ const suggestPhraseAlternatives = (_0, _1, _2) => __async(void 0, [_0, _1, _2], function* (options, { phrases }, chatSettings) {
20791
20849
  var _a, _b, _c;
20792
20850
  const { environment, customBaseUrl } = options;
20851
+ const model = (chatSettings == null ? void 0 : chatSettings.model) ? `?model=${chatSettings.model}` : ``;
20793
20852
  try {
20794
- const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/phraseAlternatives`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20795
- body: JSON.stringify({ phrases }),
20796
- headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20797
- }));
20853
+ const res = yield fetch(
20854
+ `${getApiUrl(environment, customBaseUrl)}chat/phraseAlternatives${model}`,
20855
+ __spreadProps2(__spreadValues2({}, defaultConfig), {
20856
+ body: JSON.stringify({ phrases }),
20857
+ headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20858
+ })
20859
+ );
20798
20860
  if (res.status < 400) {
20799
20861
  const data = yield res.json();
20800
20862
  return __spreadProps2(__spreadValues2({}, data), { success: true });
@@ -20807,11 +20869,12 @@ const suggestPhraseAlternatives = (_0, _1) => __async(void 0, [_0, _1], function
20807
20869
  return { success: false, errors: [e] };
20808
20870
  }
20809
20871
  });
20810
- const suggestSimplifiedPhrases = (_0, _1) => __async(void 0, [_0, _1], function* (options, { phrases }) {
20872
+ const suggestSimplifiedPhrases = (_0, _1, _2) => __async(void 0, [_0, _1, _2], function* (options, { phrases }, chatSettings) {
20811
20873
  var _a, _b, _c;
20812
20874
  const { environment, customBaseUrl } = options;
20875
+ const model = (chatSettings == null ? void 0 : chatSettings.model) ? `?model=${chatSettings.model}` : ``;
20813
20876
  try {
20814
- const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/simplify`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20877
+ const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/simplify${model}`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20815
20878
  body: JSON.stringify({ phrases }),
20816
20879
  headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20817
20880
  }));
@@ -20827,15 +20890,16 @@ const suggestSimplifiedPhrases = (_0, _1) => __async(void 0, [_0, _1], function*
20827
20890
  return { success: false, errors: [e] };
20828
20891
  }
20829
20892
  });
20830
- const suggestBestProductMatches = (_0, _1) => __async(void 0, [_0, _1], function* (options, {
20893
+ const suggestBestProductMatches = (_0, _1, _2) => __async(void 0, [_0, _1, _2], function* (options, {
20831
20894
  initialQuery,
20832
20895
  productStrings,
20833
20896
  messageHistory
20834
- }) {
20897
+ }, chatSettings) {
20835
20898
  var _a, _b, _c;
20836
20899
  const { environment, customBaseUrl } = options;
20900
+ const model = (chatSettings == null ? void 0 : chatSettings.model) ? `?model=${chatSettings.model}` : ``;
20837
20901
  try {
20838
- const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/bestProducts`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20902
+ const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/bestProducts${model}`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20839
20903
  body: JSON.stringify({ initialQuery, messageHistory, productStrings }),
20840
20904
  headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20841
20905
  }));
@@ -20872,9 +20936,10 @@ const prepareChatHistory = (chatLog) => {
20872
20936
  }
20873
20937
  return history;
20874
20938
  };
20875
- const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
20939
+ const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived, chatSettings) => {
20876
20940
  var _a;
20877
- fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20941
+ const model = (chatSettings == null ? void 0 : chatSettings.model) ? `?model=${chatSettings.model}` : ``;
20942
+ fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text${model}`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20878
20943
  body: JSON.stringify({ initialQuery, messageHistory }),
20879
20944
  headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20880
20945
  })).then((response) => {
@@ -20915,7 +20980,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20915
20980
  return (_ctx, _cache) => {
20916
20981
  return openBlock(), createElementBlock("section", _hoisted_1$5, [
20917
20982
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
20918
- return openBlock(), createBlock(_sfc_main$j, {
20983
+ return openBlock(), createBlock(_sfc_main$k, {
20919
20984
  class: "lupa-chat-product-card",
20920
20985
  key: getProductKeyAction(index, product),
20921
20986
  product,
@@ -21014,9 +21079,13 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
21014
21079
  return result.items;
21015
21080
  });
21016
21081
  const getPhraseAlternatives = () => __async(this, null, function* () {
21017
- const { phrases } = yield ChatService.suggestPhraseAlternatives(props.options.sdkOptions, {
21018
- phrases: [props.phrase]
21019
- });
21082
+ const { phrases } = yield ChatService.suggestPhraseAlternatives(
21083
+ props.options.sdkOptions,
21084
+ {
21085
+ phrases: [props.phrase]
21086
+ },
21087
+ props.options.chatSettings
21088
+ );
21020
21089
  return phrases != null ? phrases : [];
21021
21090
  });
21022
21091
  return (_ctx, _cache) => {
@@ -21081,11 +21150,15 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
21081
21150
  return (_b = (_a2 = result[titleKey.value]) == null ? void 0 : _a2.toString()) != null ? _b : "";
21082
21151
  }
21083
21152
  );
21084
- const { products } = yield ChatService.suggestBestProductMatches(props.options.sdkOptions, {
21085
- initialQuery: props.entry.userInput,
21086
- productStrings: productResultStrings,
21087
- messageHistory: (_a = props.history) != null ? _a : []
21088
- });
21153
+ const { products } = yield ChatService.suggestBestProductMatches(
21154
+ props.options.sdkOptions,
21155
+ {
21156
+ initialQuery: props.entry.userInput,
21157
+ productStrings: productResultStrings,
21158
+ messageHistory: (_a = props.history) != null ? _a : []
21159
+ },
21160
+ props.options.chatSettings
21161
+ );
21089
21162
  bestMatches.value = products;
21090
21163
  emit2("loaded", products);
21091
21164
  } finally {
@@ -21158,7 +21231,8 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21158
21231
  initialQuery: props.content,
21159
21232
  messageHistory: (_a = props.history) != null ? _a : []
21160
21233
  },
21161
- processChunk
21234
+ processChunk,
21235
+ props.options.chatSettings
21162
21236
  );
21163
21237
  });
21164
21238
  return (_ctx, _cache) => {
@@ -21222,7 +21296,7 @@ const _hoisted_4 = {
21222
21296
  class: "lupa-chat-spinner-main"
21223
21297
  };
21224
21298
  const _hoisted_5 = { class: "lupasearch-chat-input" };
21225
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
21299
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
21226
21300
  __name: "ChatContainer",
21227
21301
  props: {
21228
21302
  options: {}
@@ -21255,7 +21329,8 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
21255
21329
  };
21256
21330
  const { phrases, success } = yield ChatService.suggestSearchChatPhrases(
21257
21331
  props.options.sdkOptions,
21258
- request
21332
+ request,
21333
+ props.options.chatSettings
21259
21334
  );
21260
21335
  if (!success || !phrases.length) {
21261
21336
  error.value = "Something went wrong";
@@ -26862,7 +26937,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26862
26937
  };
26863
26938
  __expose({ fetch: fetch2 });
26864
26939
  return (_ctx, _cache) => {
26865
- return openBlock(), createBlock(unref(_sfc_main$Z), {
26940
+ return openBlock(), createBlock(unref(_sfc_main$_), {
26866
26941
  options: fullSearchBoxOptions.value,
26867
26942
  ref_key: "searchBox",
26868
26943
  ref: searchBox2
@@ -27337,7 +27412,7 @@ const chat = (options, mountOptions) => {
27337
27412
  }
27338
27413
  return;
27339
27414
  }
27340
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1k, {
27415
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1l, {
27341
27416
  options
27342
27417
  });
27343
27418
  if (!instance) {