@getlupa/client 1.15.16 → 1.16.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.
@@ -8695,8 +8695,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8695
8695
  });
8696
8696
  const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
8697
8697
  const _hoisted_2$V = { class: "lupa-input-clear" };
8698
- const _hoisted_3$E = { id: "lupa-search-box-input" };
8699
- const _hoisted_4$t = ["value"];
8698
+ const _hoisted_3$C = { id: "lupa-search-box-input" };
8699
+ const _hoisted_4$s = ["value"];
8700
8700
  const _hoisted_5$j = ["aria-label", "placeholder"];
8701
8701
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8702
8702
  const _hoisted_7$7 = [
@@ -8706,7 +8706,7 @@ const _hoisted_8$3 = {
8706
8706
  key: 0,
8707
8707
  class: "lupa-close-label"
8708
8708
  };
8709
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8709
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
8710
8710
  __name: "SearchBoxInput",
8711
8711
  props: {
8712
8712
  options: {},
@@ -8797,13 +8797,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8797
8797
  onClick: clear2
8798
8798
  }, null, 2)
8799
8799
  ]),
8800
- createBaseVNode("div", _hoisted_3$E, [
8800
+ createBaseVNode("div", _hoisted_3$C, [
8801
8801
  createBaseVNode("input", {
8802
8802
  class: "lupa-hint",
8803
8803
  "aria-hidden": "true",
8804
8804
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8805
8805
  disabled: ""
8806
- }, null, 8, _hoisted_4$t),
8806
+ }, null, 8, _hoisted_4$s),
8807
8807
  withDirectives(createBaseVNode("input", mergeProps({
8808
8808
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8809
8809
  }, inputAttributes.value, {
@@ -8836,7 +8836,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8836
8836
  };
8837
8837
  }
8838
8838
  });
8839
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8839
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8840
8840
  __name: "SearchBoxMoreResults",
8841
8841
  props: {
8842
8842
  labels: {},
@@ -8875,7 +8875,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8875
8875
  });
8876
8876
  const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
8877
8877
  const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
8878
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8878
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8879
8879
  __name: "SearchBoxHistoryItem",
8880
8880
  props: {
8881
8881
  item: {},
@@ -8910,7 +8910,7 @@ const _hoisted_1$1f = {
8910
8910
  key: 0,
8911
8911
  class: "lupa-search-box-history-panel"
8912
8912
  };
8913
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8913
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8914
8914
  __name: "SearchBoxHistoryPanel",
8915
8915
  props: {
8916
8916
  options: {}
@@ -8953,7 +8953,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8953
8953
  return (_ctx, _cache) => {
8954
8954
  return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
8955
8955
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8956
- return openBlock(), createBlock(_sfc_main$1r, {
8956
+ return openBlock(), createBlock(_sfc_main$1s, {
8957
8957
  key: item,
8958
8958
  item,
8959
8959
  highlighted: index === highlightIndex.value,
@@ -8970,7 +8970,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8970
8970
  }
8971
8971
  });
8972
8972
  const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
8973
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8973
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8974
8974
  __name: "SearchBoxNoResults",
8975
8975
  props: {
8976
8976
  labels: {}
@@ -9015,12 +9015,12 @@ const _hoisted_2$T = {
9015
9015
  "data-cy": "lupa-suggestion-value",
9016
9016
  class: "lupa-suggestion-value"
9017
9017
  };
9018
- const _hoisted_3$D = {
9018
+ const _hoisted_3$B = {
9019
9019
  key: 2,
9020
9020
  class: "lupa-suggestion-facet",
9021
9021
  "data-cy": "lupa-suggestion-facet"
9022
9022
  };
9023
- const _hoisted_4$s = {
9023
+ const _hoisted_4$r = {
9024
9024
  class: "lupa-suggestion-facet-label",
9025
9025
  "data-cy": "lupa-suggestion-facet-label"
9026
9026
  };
@@ -9028,7 +9028,7 @@ const _hoisted_5$i = {
9028
9028
  class: "lupa-suggestion-facet-value",
9029
9029
  "data-cy": "lupa-suggestion-facet-value"
9030
9030
  };
9031
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9031
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
9032
9032
  __name: "SearchBoxSuggestion",
9033
9033
  props: {
9034
9034
  suggestion: {},
@@ -9065,8 +9065,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9065
9065
  "data-cy": "lupa-suggestion-value",
9066
9066
  innerHTML: _ctx.suggestion.displayHighlight
9067
9067
  }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
9068
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
9069
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
9068
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
9069
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
9070
9070
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
9071
9071
  ])) : createCommentVNode("", true)
9072
9072
  ]);
@@ -9077,7 +9077,7 @@ const _hoisted_1$1c = {
9077
9077
  id: "lupa-search-box-suggestions",
9078
9078
  "data-cy": "lupa-search-box-suggestions"
9079
9079
  };
9080
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9080
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9081
9081
  __name: "SearchBoxSuggestions",
9082
9082
  props: {
9083
9083
  items: {},
@@ -9139,7 +9139,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9139
9139
  return (_ctx, _cache) => {
9140
9140
  return openBlock(), createElementBlock("div", _hoisted_1$1c, [
9141
9141
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9142
- return openBlock(), createBlock(_sfc_main$1o, {
9142
+ return openBlock(), createBlock(_sfc_main$1p, {
9143
9143
  key: getSuggestionKey(item),
9144
9144
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9145
9145
  suggestion: item,
@@ -9167,7 +9167,7 @@ const debounce$1 = (func, timeout) => {
9167
9167
  }, timeout);
9168
9168
  };
9169
9169
  };
9170
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9170
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9171
9171
  __name: "SearchBoxSuggestionsWrapper",
9172
9172
  props: {
9173
9173
  panel: {},
@@ -9209,7 +9209,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9209
9209
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9210
9210
  watch(() => props.panel.limit, getSuggestionsDebounced);
9211
9211
  return (_ctx, _cache) => {
9212
- return openBlock(), createBlock(_sfc_main$1n, {
9212
+ return openBlock(), createBlock(_sfc_main$1o, {
9213
9213
  items: searchResult.value,
9214
9214
  highlight: _ctx.panel.highlight,
9215
9215
  queryKey: _ctx.panel.queryKey,
@@ -18300,7 +18300,7 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
18300
18300
  };
18301
18301
  const _hoisted_1$1b = ["src"];
18302
18302
  const _hoisted_2$S = ["src"];
18303
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18303
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
18304
18304
  __name: "ProductImage",
18305
18305
  props: {
18306
18306
  item: {},
@@ -18455,7 +18455,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18455
18455
  };
18456
18456
  }
18457
18457
  });
18458
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18458
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18459
18459
  __name: "SearchBoxProductImage",
18460
18460
  props: {
18461
18461
  item: {},
@@ -18463,7 +18463,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18463
18463
  },
18464
18464
  setup(__props) {
18465
18465
  return (_ctx, _cache) => {
18466
- return openBlock(), createBlock(_sfc_main$1l, {
18466
+ return openBlock(), createBlock(_sfc_main$1m, {
18467
18467
  item: _ctx.item,
18468
18468
  options: _ctx.options,
18469
18469
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18477,7 +18477,7 @@ const _hoisted_2$R = {
18477
18477
  key: 1,
18478
18478
  class: "lupa-search-box-product-title"
18479
18479
  };
18480
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18480
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18481
18481
  __name: "SearchBoxProductTitle",
18482
18482
  props: {
18483
18483
  item: {},
@@ -18511,7 +18511,7 @@ const _hoisted_2$Q = {
18511
18511
  key: 1,
18512
18512
  class: "lupa-search-box-product-description"
18513
18513
  };
18514
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18514
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18515
18515
  __name: "SearchBoxProductDescription",
18516
18516
  props: {
18517
18517
  item: {},
@@ -18539,7 +18539,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18539
18539
  }
18540
18540
  });
18541
18541
  const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
18542
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18542
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18543
18543
  __name: "SearchBoxProductPrice",
18544
18544
  props: {
18545
18545
  item: {},
@@ -18563,7 +18563,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18563
18563
  };
18564
18564
  }
18565
18565
  });
18566
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18566
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18567
18567
  __name: "SearchBoxProductRegularPrice",
18568
18568
  props: {
18569
18569
  item: {},
@@ -18592,10 +18592,10 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18592
18592
  });
18593
18593
  const _hoisted_1$17 = ["innerHTML"];
18594
18594
  const _hoisted_2$P = { key: 0 };
18595
- const _hoisted_3$C = { key: 1 };
18596
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18595
+ const _hoisted_3$A = { key: 1 };
18596
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18597
18597
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18598
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18598
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18599
18599
  __name: "SearchBoxProductCustom",
18600
18600
  props: {
18601
18601
  item: {},
@@ -18625,8 +18625,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18625
18625
  key: 1,
18626
18626
  class: [className.value, "lupa-search-box-product-custom"]
18627
18627
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18628
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
18629
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18628
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
18629
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18630
18630
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18631
18631
  ]))
18632
18632
  ], 16));
@@ -18634,7 +18634,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18634
18634
  }
18635
18635
  });
18636
18636
  const _hoisted_1$16 = ["innerHTML"];
18637
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18637
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18638
18638
  __name: "SearchBoxProductCustomHtml",
18639
18639
  props: {
18640
18640
  item: {},
@@ -18780,8 +18780,11 @@ const useSearchResultStore = defineStore("searchResult", () => {
18780
18780
  return hasResults.value && ((_a = searchResult.value.offset) != null ? _a : 0) >= totalItems.value;
18781
18781
  }
18782
18782
  );
18783
- const setSidebarState = ({ visible }) => {
18784
- if (visible) {
18783
+ const setSidebarState = ({
18784
+ visible,
18785
+ disableBodyScrolling = true
18786
+ }) => {
18787
+ if (visible && disableBodyScrolling) {
18785
18788
  disableBodyScroll();
18786
18789
  } else {
18787
18790
  enableBodyScroll();
@@ -18895,8 +18898,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
18895
18898
  });
18896
18899
  const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
18897
18900
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
18898
- const _hoisted_3$B = ["onClick", "disabled"];
18899
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18901
+ const _hoisted_3$z = ["onClick", "disabled"];
18902
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18900
18903
  __name: "SearchBoxProductAddToCart",
18901
18904
  props: {
18902
18905
  item: {},
@@ -18938,7 +18941,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18938
18941
  "data-cy": "lupa-add-to-cart",
18939
18942
  type: "button",
18940
18943
  disabled: !inStockValue.value || loading.value
18941
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$B)
18944
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$z)
18942
18945
  ])
18943
18946
  ]);
18944
18947
  };
@@ -18950,17 +18953,17 @@ const _hoisted_1$14 = {
18950
18953
  };
18951
18954
  const __default__$4 = {
18952
18955
  components: {
18953
- SearchBoxProductImage: _sfc_main$1k,
18954
- SearchBoxProductTitle: _sfc_main$1j,
18955
- SearchBoxProductDescription: _sfc_main$1i,
18956
- SearchBoxProductPrice: _sfc_main$1h,
18957
- SearchBoxProductRegularPrice: _sfc_main$1g,
18958
- SearchBoxProductCustom: _sfc_main$1f,
18959
- SearchBoxProductCustomHtml: _sfc_main$1e,
18960
- SearchBoxProductAddToCart: _sfc_main$1d
18956
+ SearchBoxProductImage: _sfc_main$1l,
18957
+ SearchBoxProductTitle: _sfc_main$1k,
18958
+ SearchBoxProductDescription: _sfc_main$1j,
18959
+ SearchBoxProductPrice: _sfc_main$1i,
18960
+ SearchBoxProductRegularPrice: _sfc_main$1h,
18961
+ SearchBoxProductCustom: _sfc_main$1g,
18962
+ SearchBoxProductCustomHtml: _sfc_main$1f,
18963
+ SearchBoxProductAddToCart: _sfc_main$1e
18961
18964
  }
18962
18965
  };
18963
- const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18966
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18964
18967
  __name: "SearchBoxProductElement",
18965
18968
  props: {
18966
18969
  item: {},
@@ -19046,12 +19049,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19046
19049
  }));
19047
19050
  const _hoisted_1$13 = { class: "lupa-badge-title" };
19048
19051
  const _hoisted_2$N = ["src"];
19049
- const _hoisted_3$A = { key: 1 };
19050
- const _hoisted_4$q = {
19052
+ const _hoisted_3$y = { key: 1 };
19053
+ const _hoisted_4$p = {
19051
19054
  key: 0,
19052
19055
  class: "lupa-badge-full-text"
19053
19056
  };
19054
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19057
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
19055
19058
  __name: "SearchResultGeneratedBadge",
19056
19059
  props: {
19057
19060
  options: {},
@@ -19089,15 +19092,15 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19089
19092
  key: 0,
19090
19093
  src: image.value
19091
19094
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
19092
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19095
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19093
19096
  ]),
19094
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19097
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19095
19098
  ], 6);
19096
19099
  };
19097
19100
  }
19098
19101
  });
19099
19102
  const _hoisted_1$12 = { class: "lupa-generated-badges" };
19100
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19103
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19101
19104
  __name: "SearchResultGeneratedBadges",
19102
19105
  props: {
19103
19106
  options: {}
@@ -19125,7 +19128,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19125
19128
  return (_ctx, _cache) => {
19126
19129
  return openBlock(), createElementBlock("div", _hoisted_1$12, [
19127
19130
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19128
- return openBlock(), createBlock(_sfc_main$1b, {
19131
+ return openBlock(), createBlock(_sfc_main$1c, {
19129
19132
  key: badge.id,
19130
19133
  badge,
19131
19134
  options: _ctx.options
@@ -19136,7 +19139,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19136
19139
  }
19137
19140
  });
19138
19141
  const _hoisted_1$11 = ["innerHTML"];
19139
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19142
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19140
19143
  __name: "CustomBadge",
19141
19144
  props: {
19142
19145
  badge: {}
@@ -19162,7 +19165,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19162
19165
  }
19163
19166
  });
19164
19167
  const _hoisted_1$10 = { class: "lupa-text-badges" };
19165
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19168
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19166
19169
  __name: "TextBadge",
19167
19170
  props: {
19168
19171
  badge: {}
@@ -19189,7 +19192,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19189
19192
  });
19190
19193
  const _hoisted_1$$ = { class: "lupa-image-badges" };
19191
19194
  const _hoisted_2$M = ["src"];
19192
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19195
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19193
19196
  __name: "ImageBadge",
19194
19197
  props: {
19195
19198
  badge: {}
@@ -19224,7 +19227,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19224
19227
  };
19225
19228
  }
19226
19229
  });
19227
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19230
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19228
19231
  __name: "DiscountBadge",
19229
19232
  props: {
19230
19233
  badge: {}
@@ -19285,13 +19288,13 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19285
19288
  const _hoisted_1$_ = { id: "lupa-search-results-badges" };
19286
19289
  const __default__$3 = {
19287
19290
  components: {
19288
- CustomBadge: _sfc_main$19,
19289
- TextBadge: _sfc_main$18,
19290
- ImageBadge: _sfc_main$17,
19291
- DiscountBadge: _sfc_main$16
19291
+ CustomBadge: _sfc_main$1a,
19292
+ TextBadge: _sfc_main$19,
19293
+ ImageBadge: _sfc_main$18,
19294
+ DiscountBadge: _sfc_main$17
19292
19295
  }
19293
19296
  };
19294
- const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19297
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19295
19298
  __name: "SearchResultsBadgeWrapper",
19296
19299
  props: {
19297
19300
  position: {},
@@ -19365,7 +19368,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19365
19368
  badge
19366
19369
  }, null, 8, ["badge"]);
19367
19370
  }), 128)),
19368
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
19371
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1b, {
19369
19372
  key: 0,
19370
19373
  options: _ctx.options
19371
19374
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19376,11 +19379,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19376
19379
  }));
19377
19380
  const _hoisted_1$Z = ["href"];
19378
19381
  const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19379
- const _hoisted_3$z = {
19382
+ const _hoisted_3$x = {
19380
19383
  key: 0,
19381
19384
  class: "lupa-search-box-product-add-to-cart-section"
19382
19385
  };
19383
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19386
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19384
19387
  __name: "SearchBoxProduct",
19385
19388
  props: {
19386
19389
  item: {},
@@ -19466,7 +19469,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19466
19469
  style: normalizeStyle(imageStyleOverride.value)
19467
19470
  }, [
19468
19471
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19469
- return openBlock(), createBlock(_sfc_main$1c, {
19472
+ return openBlock(), createBlock(_sfc_main$1d, {
19470
19473
  class: "lupa-search-box-product-element",
19471
19474
  item: _ctx.item,
19472
19475
  element,
@@ -19479,7 +19482,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19479
19482
  createBaseVNode("div", _hoisted_2$L, [
19480
19483
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19481
19484
  var _a;
19482
- return openBlock(), createBlock(_sfc_main$1c, {
19485
+ return openBlock(), createBlock(_sfc_main$1d, {
19483
19486
  key: element.key,
19484
19487
  class: "lupa-search-box-product-element",
19485
19488
  item: _ctx.item,
@@ -19490,7 +19493,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19490
19493
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19491
19494
  name: "badges",
19492
19495
  fn: withCtx(() => [
19493
- createVNode(_sfc_main$15, {
19496
+ createVNode(_sfc_main$16, {
19494
19497
  options: badgeOptions.value,
19495
19498
  position: "card"
19496
19499
  }, null, 8, ["options"])
@@ -19500,8 +19503,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19500
19503
  ]), 1032, ["item", "element", "labels", "link"]);
19501
19504
  }), 128))
19502
19505
  ]),
19503
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
19504
- createVNode(_sfc_main$1c, {
19506
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
19507
+ createVNode(_sfc_main$1d, {
19505
19508
  class: "lupa-search-box-product-element",
19506
19509
  item: _ctx.item,
19507
19510
  element: addToCartElement.value,
@@ -19583,7 +19586,7 @@ const useTrackingStore = defineStore("tracking", () => {
19583
19586
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19584
19587
  });
19585
19588
  const _hoisted_1$Y = { id: "lupa-search-box-products" };
19586
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19589
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19587
19590
  __name: "SearchBoxProducts",
19588
19591
  props: {
19589
19592
  items: {},
@@ -19663,7 +19666,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19663
19666
  itemClicked: handleProductClick
19664
19667
  });
19665
19668
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19666
- return openBlock(), createBlock(_sfc_main$14, {
19669
+ return openBlock(), createBlock(_sfc_main$15, {
19667
19670
  key: index,
19668
19671
  item,
19669
19672
  panelOptions: _ctx.panelOptions,
@@ -19680,7 +19683,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19680
19683
  });
19681
19684
  const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19682
19685
  const _hoisted_2$K = { key: 0 };
19683
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19686
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19684
19687
  __name: "SearchBoxProductsGoToResultsButton",
19685
19688
  props: {
19686
19689
  options: {},
@@ -19790,7 +19793,7 @@ const processExtractionObject = (value = {}) => {
19790
19793
  }
19791
19794
  return parsedObject;
19792
19795
  };
19793
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19796
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19794
19797
  __name: "SearchBoxProductsWrapper",
19795
19798
  props: {
19796
19799
  panel: {},
@@ -19855,7 +19858,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19855
19858
  watch(() => props.panel.limit, getItemsDebounced);
19856
19859
  return (_ctx, _cache) => {
19857
19860
  var _a, _b;
19858
- return openBlock(), createBlock(_sfc_main$13, {
19861
+ return openBlock(), createBlock(_sfc_main$14, {
19859
19862
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19860
19863
  panelOptions: _ctx.panel,
19861
19864
  labels: _ctx.labels,
@@ -19865,7 +19868,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19865
19868
  default: withCtx(() => {
19866
19869
  var _a2;
19867
19870
  return [
19868
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
19871
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$13, {
19869
19872
  key: 0,
19870
19873
  options: _ctx.searchBoxOptions,
19871
19874
  panel: _ctx.panel,
@@ -19886,7 +19889,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19886
19889
  };
19887
19890
  }
19888
19891
  });
19889
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19892
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19890
19893
  __name: "SearchBoxRelatedSourceWrapper",
19891
19894
  props: {
19892
19895
  panel: {},
@@ -19958,7 +19961,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19958
19961
  });
19959
19962
  return (_ctx, _cache) => {
19960
19963
  var _a, _b;
19961
- return openBlock(), createBlock(_sfc_main$13, {
19964
+ return openBlock(), createBlock(_sfc_main$14, {
19962
19965
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19963
19966
  panelOptions: documentPanelOptions.value,
19964
19967
  labels: _ctx.labels,
@@ -19981,11 +19984,11 @@ const _hoisted_1$W = {
19981
19984
  id: "lupa-search-box-panel"
19982
19985
  };
19983
19986
  const _hoisted_2$J = ["data-cy"];
19984
- const _hoisted_3$y = {
19987
+ const _hoisted_3$w = {
19985
19988
  key: 0,
19986
19989
  class: "lupa-panel-title lupa-panel-title-top-results"
19987
19990
  };
19988
- const _hoisted_4$p = {
19991
+ const _hoisted_4$o = {
19989
19992
  key: 1,
19990
19993
  class: "lupa-panel-title"
19991
19994
  };
@@ -19995,12 +19998,12 @@ const _hoisted_5$g = {
19995
19998
  };
19996
19999
  const __default__$2 = {
19997
20000
  components: {
19998
- SearchBoxSuggestionsWrapper: _sfc_main$1m,
19999
- SearchBoxProductsWrapper: _sfc_main$11,
20000
- SearchBoxRelatedSourceWrapper: _sfc_main$10
20001
+ SearchBoxSuggestionsWrapper: _sfc_main$1n,
20002
+ SearchBoxProductsWrapper: _sfc_main$12,
20003
+ SearchBoxRelatedSourceWrapper: _sfc_main$11
20001
20004
  }
20002
20005
  };
20003
- const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
20006
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
20004
20007
  __name: "SearchBoxMainPanel",
20005
20008
  props: {
20006
20009
  options: {},
@@ -20177,8 +20180,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20177
20180
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20178
20181
  "data-cy": "lupa-panel-" + panel.type + "-index"
20179
20182
  }, [
20180
- ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20181
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
20183
+ ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20184
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
20182
20185
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
20183
20186
  key: 2,
20184
20187
  panel,
@@ -20203,18 +20206,18 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20203
20206
  ], 14, _hoisted_2$J);
20204
20207
  }), 128))
20205
20208
  ], 4),
20206
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
20209
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1q, {
20207
20210
  key: 1,
20208
20211
  labels: labels.value
20209
20212
  }, null, 8, ["labels"])) : createCommentVNode("", true),
20210
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
20213
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1t, {
20211
20214
  key: 2,
20212
20215
  labels: labels.value,
20213
20216
  options: _ctx.options,
20214
20217
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20215
20218
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
20216
20219
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
20217
- createVNode(_sfc_main$1q, {
20220
+ createVNode(_sfc_main$1r, {
20218
20221
  options: _ctx.options.history,
20219
20222
  history: history.value,
20220
20223
  onGoToResults: handleGoToResults,
@@ -20241,7 +20244,7 @@ const unbindSearchTriggers = (triggers = [], event) => {
20241
20244
  };
20242
20245
  const _hoisted_1$V = { id: "lupa-search-box" };
20243
20246
  const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
20244
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20247
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
20245
20248
  __name: "SearchBox",
20246
20249
  props: {
20247
20250
  options: {},
@@ -20511,7 +20514,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20511
20514
  var _a2;
20512
20515
  return openBlock(), createElementBlock("div", _hoisted_1$V, [
20513
20516
  createBaseVNode("div", _hoisted_2$I, [
20514
- createVNode(_sfc_main$1t, {
20517
+ createVNode(_sfc_main$1u, {
20515
20518
  options: inputOptions.value,
20516
20519
  suggestedValue: suggestedValue.value,
20517
20520
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20524,7 +20527,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20524
20527
  onSearch: handleSearch,
20525
20528
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20526
20529
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20527
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
20530
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$10, {
20528
20531
  key: 0,
20529
20532
  options: panelOptions.value,
20530
20533
  inputValue: inputValue.value,
@@ -20621,12 +20624,12 @@ const _hoisted_2$H = {
20621
20624
  key: 0,
20622
20625
  "data-cy": "suggested-search-text-label"
20623
20626
  };
20624
- const _hoisted_3$x = {
20627
+ const _hoisted_3$v = {
20625
20628
  key: 1,
20626
20629
  "data-cy": "did-you-mean-label"
20627
20630
  };
20628
- const _hoisted_4$o = { key: 1 };
20629
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20631
+ const _hoisted_4$n = { key: 1 };
20632
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20630
20633
  __name: "SearchResultsDidYouMean",
20631
20634
  props: {
20632
20635
  labels: {}
@@ -20668,7 +20671,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20668
20671
  ]);
20669
20672
  }), 128))
20670
20673
  ])) : createCommentVNode("", true),
20671
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
20674
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
20672
20675
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20673
20676
  return openBlock(), createElementBlock("span", { key: index }, [
20674
20677
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20676,7 +20679,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20676
20679
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20677
20680
  "data-cy": "did-you-mean-value",
20678
20681
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20679
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20682
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20680
20683
  ]);
20681
20684
  }), 128))
20682
20685
  ])) : createCommentVNode("", true)
@@ -20689,7 +20692,7 @@ const _hoisted_1$T = {
20689
20692
  class: "lupa-search-results-summary"
20690
20693
  };
20691
20694
  const _hoisted_2$G = ["innerHTML"];
20692
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20695
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20693
20696
  __name: "SearchResultsSummary",
20694
20697
  props: {
20695
20698
  label: {},
@@ -20722,13 +20725,13 @@ const _hoisted_1$S = {
20722
20725
  "data-cy": "lupa-result-page-title"
20723
20726
  };
20724
20727
  const _hoisted_2$F = { key: 0 };
20725
- const _hoisted_3$w = {
20728
+ const _hoisted_3$u = {
20726
20729
  key: 1,
20727
20730
  class: "lupa-results-total-count"
20728
20731
  };
20729
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20732
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20730
20733
  const _hoisted_5$f = ["innerHTML"];
20731
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
20734
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20732
20735
  __name: "SearchResultsTitle",
20733
20736
  props: {
20734
20737
  options: {},
@@ -20774,13 +20777,13 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20774
20777
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
20775
20778
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
20776
20779
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20777
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
20780
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
20778
20781
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20779
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20782
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20780
20783
  createTextVNode(")")
20781
20784
  ])) : createCommentVNode("", true)
20782
20785
  ])) : createCommentVNode("", true),
20783
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
20786
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Z, {
20784
20787
  key: 1,
20785
20788
  label: summaryLabel.value
20786
20789
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20793,16 +20796,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20793
20796
  };
20794
20797
  }
20795
20798
  });
20796
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
20797
- const _hoisted_2$E = {
20799
+ const _hoisted_1$R = {
20798
20800
  class: "lupa-current-filter-label",
20799
20801
  "data-cy": "lupa-current-filter-label"
20800
20802
  };
20801
- const _hoisted_3$v = {
20803
+ const _hoisted_2$E = {
20802
20804
  class: "lupa-current-filter-value",
20803
20805
  "data-cy": "lupa-current-filter-value"
20804
20806
  };
20805
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20807
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20806
20808
  __name: "CurrentFilterDisplay",
20807
20809
  props: {
20808
20810
  filter: {}
@@ -20810,18 +20812,23 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20810
20812
  emits: ["remove"],
20811
20813
  setup(__props, { emit: emit2 }) {
20812
20814
  const props = __props;
20815
+ const facetKeyClass = computed(() => {
20816
+ return `lupa-facet-active-filter-${props.filter.key}`;
20817
+ });
20813
20818
  const handleClick = () => {
20814
20819
  emit2("remove", { filter: props.filter });
20815
20820
  };
20816
20821
  return (_ctx, _cache) => {
20817
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
20822
+ return openBlock(), createElementBlock("div", {
20823
+ class: normalizeClass(["lupa-search-result-filter-value", { [facetKeyClass.value]: true }])
20824
+ }, [
20818
20825
  createBaseVNode("div", {
20819
20826
  class: "lupa-current-filter-action",
20820
20827
  onClick: handleClick
20821
20828
  }, "⨉"),
20822
- createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
20823
- createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
20824
- ]);
20829
+ createBaseVNode("div", _hoisted_1$R, toDisplayString(_ctx.filter.label) + ": ", 1),
20830
+ createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.value), 1)
20831
+ ], 2);
20825
20832
  };
20826
20833
  }
20827
20834
  });
@@ -20830,12 +20837,12 @@ const _hoisted_2$D = {
20830
20837
  key: 0,
20831
20838
  class: "lupa-filter-count"
20832
20839
  };
20833
- const _hoisted_3$u = {
20840
+ const _hoisted_3$t = {
20834
20841
  key: 0,
20835
20842
  class: "filter-values"
20836
20843
  };
20837
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
20838
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20844
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
20845
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20839
20846
  __name: "CurrentFilters",
20840
20847
  props: {
20841
20848
  options: {},
@@ -20917,10 +20924,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20917
20924
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20918
20925
  }, null, 2)) : createCommentVNode("", true)
20919
20926
  ]),
20920
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20921
- createBaseVNode("div", _hoisted_4$m, [
20927
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20928
+ createBaseVNode("div", _hoisted_4$l, [
20922
20929
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20923
- return openBlock(), createBlock(_sfc_main$W, {
20930
+ return openBlock(), createBlock(_sfc_main$X, {
20924
20931
  key: filter2.key + "_" + filter2.value,
20925
20932
  filter: filter2,
20926
20933
  onRemove: handleRemove
@@ -20938,7 +20945,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20938
20945
  }
20939
20946
  });
20940
20947
  const _hoisted_1$P = ["href"];
20941
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20948
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20942
20949
  __name: "CategoryFilterItem",
20943
20950
  props: {
20944
20951
  options: {},
@@ -20985,10 +20992,10 @@ const _hoisted_1$O = {
20985
20992
  "data-cy": "lupa-category-filter"
20986
20993
  };
20987
20994
  const _hoisted_2$C = { class: "lupa-category-back" };
20988
- const _hoisted_3$t = ["href"];
20989
- const _hoisted_4$l = ["href"];
20995
+ const _hoisted_3$s = ["href"];
20996
+ const _hoisted_4$k = ["href"];
20990
20997
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20991
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
20998
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20992
20999
  __name: "CategoryFilter",
20993
21000
  props: {
20994
21001
  options: {}
@@ -21083,7 +21090,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21083
21090
  "data-cy": "lupa-category-back",
21084
21091
  href: backUrlLink.value,
21085
21092
  onClick: handleNavigationBack
21086
- }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
21093
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
21087
21094
  ]),
21088
21095
  createBaseVNode("div", {
21089
21096
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -21093,11 +21100,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21093
21100
  href: parentUrlLink.value,
21094
21101
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
21095
21102
  onClick: handleNavigationParent
21096
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
21103
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
21097
21104
  ], 2),
21098
21105
  createBaseVNode("div", _hoisted_5$e, [
21099
21106
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
21100
- return openBlock(), createBlock(_sfc_main$U, {
21107
+ return openBlock(), createBlock(_sfc_main$V, {
21101
21108
  key: getCategoryKey(child),
21102
21109
  item: child,
21103
21110
  options: _ctx.options
@@ -21113,8 +21120,8 @@ const _hoisted_1$N = {
21113
21120
  "data-cy": "lupa-search-result-facet-term-values"
21114
21121
  };
21115
21122
  const _hoisted_2$B = ["placeholder"];
21116
- const _hoisted_3$s = { class: "lupa-terms-list" };
21117
- const _hoisted_4$k = ["onClick"];
21123
+ const _hoisted_3$r = { class: "lupa-terms-list" };
21124
+ const _hoisted_4$j = ["onClick"];
21118
21125
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
21119
21126
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
21120
21127
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -21124,7 +21131,7 @@ const _hoisted_8$2 = {
21124
21131
  };
21125
21132
  const _hoisted_9$2 = { key: 0 };
21126
21133
  const _hoisted_10$1 = { key: 1 };
21127
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
21134
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21128
21135
  __name: "TermFacet",
21129
21136
  props: {
21130
21137
  options: {},
@@ -21205,7 +21212,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
21205
21212
  }, null, 8, _hoisted_2$B)), [
21206
21213
  [vModelText, termFilter.value]
21207
21214
  ]) : createCommentVNode("", true),
21208
- createBaseVNode("div", _hoisted_3$s, [
21215
+ createBaseVNode("div", _hoisted_3$r, [
21209
21216
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
21210
21217
  return openBlock(), createElementBlock("div", {
21211
21218
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -21222,7 +21229,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
21222
21229
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
21223
21230
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
21224
21231
  ])
21225
- ], 10, _hoisted_4$k);
21232
+ ], 10, _hoisted_4$j);
21226
21233
  }), 128))
21227
21234
  ]),
21228
21235
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -22218,11 +22225,11 @@ const _hoisted_2$A = {
22218
22225
  key: 0,
22219
22226
  class: "lupa-stats-facet-summary"
22220
22227
  };
22221
- const _hoisted_3$r = {
22228
+ const _hoisted_3$q = {
22222
22229
  key: 1,
22223
22230
  class: "lupa-stats-facet-summary-input"
22224
22231
  };
22225
- const _hoisted_4$j = {
22232
+ const _hoisted_4$i = {
22226
22233
  key: 0,
22227
22234
  class: "lupa-stats-range-label"
22228
22235
  };
@@ -22241,7 +22248,7 @@ const _hoisted_13 = {
22241
22248
  key: 2,
22242
22249
  class: "lupa-stats-slider-wrapper"
22243
22250
  };
22244
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
22251
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
22245
22252
  __name: "StatsFacet",
22246
22253
  props: {
22247
22254
  options: {},
@@ -22419,9 +22426,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22419
22426
  };
22420
22427
  return (_ctx, _cache) => {
22421
22428
  return openBlock(), createElementBlock("div", _hoisted_1$M, [
22422
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
22429
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22423
22430
  createBaseVNode("div", null, [
22424
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22431
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22425
22432
  createBaseVNode("div", _hoisted_5$c, [
22426
22433
  withDirectives(createBaseVNode("input", {
22427
22434
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22487,8 +22494,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22487
22494
  });
22488
22495
  const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
22489
22496
  const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
22490
- const _hoisted_3$q = { class: "lupa-term-label" };
22491
- const _hoisted_4$i = {
22497
+ const _hoisted_3$p = { class: "lupa-term-label" };
22498
+ const _hoisted_4$h = {
22492
22499
  key: 0,
22493
22500
  class: "lupa-term-count"
22494
22501
  };
@@ -22496,7 +22503,7 @@ const _hoisted_5$b = {
22496
22503
  key: 0,
22497
22504
  class: "lupa-facet-level"
22498
22505
  };
22499
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22506
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22500
22507
  __name: "HierarchyFacetLevel",
22501
22508
  props: {
22502
22509
  options: {},
@@ -22548,8 +22555,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22548
22555
  }, null, 2)
22549
22556
  ]),
22550
22557
  createBaseVNode("div", _hoisted_2$z, [
22551
- createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22552
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22558
+ createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22559
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22553
22560
  ])
22554
22561
  ]),
22555
22562
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
@@ -22573,8 +22580,8 @@ const _hoisted_1$K = {
22573
22580
  "data-cy": "lupa-search-result-facet-term-values"
22574
22581
  };
22575
22582
  const _hoisted_2$y = { key: 0 };
22576
- const _hoisted_3$p = ["placeholder"];
22577
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
22583
+ const _hoisted_3$o = ["placeholder"];
22584
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22578
22585
  __name: "HierarchyFacet",
22579
22586
  props: {
22580
22587
  options: {},
@@ -22636,12 +22643,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22636
22643
  "data-cy": "lupa-term-filter",
22637
22644
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22638
22645
  placeholder: _ctx.options.labels.facetFilter
22639
- }, null, 8, _hoisted_3$p), [
22646
+ }, null, 8, _hoisted_3$o), [
22640
22647
  [vModelText, termFilter.value]
22641
22648
  ])
22642
22649
  ])) : createCommentVNode("", true),
22643
22650
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22644
- return openBlock(), createBlock(_sfc_main$Q, {
22651
+ return openBlock(), createBlock(_sfc_main$R, {
22645
22652
  key: item.title,
22646
22653
  options: _ctx.options,
22647
22654
  item,
@@ -22673,12 +22680,12 @@ const _hoisted_2$x = {
22673
22680
  };
22674
22681
  const __default__$1 = {
22675
22682
  components: {
22676
- TermFacet: _sfc_main$S,
22677
- StatsFacet: _sfc_main$R,
22678
- HierarchyFacet: _sfc_main$P
22683
+ TermFacet: _sfc_main$T,
22684
+ StatsFacet: _sfc_main$S,
22685
+ HierarchyFacet: _sfc_main$Q
22679
22686
  }
22680
22687
  };
22681
- const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22688
+ const _sfc_main$P = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22682
22689
  __name: "FacetDisplay",
22683
22690
  props: {
22684
22691
  options: {},
@@ -22735,6 +22742,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22735
22742
  var _a2;
22736
22743
  return ((_a2 = currentFilterKeys.value) != null ? _a2 : []).join(",");
22737
22744
  });
22745
+ const facetKeyClass = computed(() => {
22746
+ return `lupa-facet-${facet.value.key}`;
22747
+ });
22738
22748
  onMounted(() => {
22739
22749
  var _a2;
22740
22750
  if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
@@ -22786,7 +22796,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22786
22796
  "data-cy": "lupa-search-result-facet-display"
22787
22797
  }, [
22788
22798
  createBaseVNode("div", {
22789
- class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value }]),
22799
+ class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value, [facetKeyClass.value]: true }]),
22790
22800
  "data-cy": "lupa-search-result-facet-label",
22791
22801
  onClick: toggleFacet
22792
22802
  }, [
@@ -22818,7 +22828,7 @@ const _hoisted_2$w = {
22818
22828
  key: 0,
22819
22829
  class: "lupa-facets-title"
22820
22830
  };
22821
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
22831
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22822
22832
  __name: "FacetList",
22823
22833
  props: {
22824
22834
  options: {},
@@ -22859,7 +22869,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22859
22869
  }, [
22860
22870
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22861
22871
  var _a2;
22862
- return openBlock(), createBlock(_sfc_main$O, {
22872
+ return openBlock(), createBlock(_sfc_main$P, {
22863
22873
  key: facet.key,
22864
22874
  facet,
22865
22875
  currentFilters: currentFiltersValue.value,
@@ -22875,7 +22885,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22875
22885
  }
22876
22886
  });
22877
22887
  const _hoisted_1$H = ["onClick"];
22878
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22888
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22879
22889
  __name: "FacetsButton",
22880
22890
  props: {
22881
22891
  options: {}
@@ -22901,7 +22911,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22901
22911
  });
22902
22912
  const _hoisted_1$G = { class: "lupa-search-result-facets" };
22903
22913
  const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
22904
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22914
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22905
22915
  __name: "Facets",
22906
22916
  props: {
22907
22917
  options: {},
@@ -22985,7 +22995,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22985
22995
  };
22986
22996
  return (_ctx, _cache) => {
22987
22997
  return openBlock(), createElementBlock("div", _hoisted_1$G, [
22988
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
22998
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$O, {
22989
22999
  key: 0,
22990
23000
  options: _ctx.options,
22991
23001
  facets: regularFacets.value,
@@ -22996,7 +23006,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22996
23006
  onClear: clear2
22997
23007
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22998
23008
  createBaseVNode("div", _hoisted_2$v, [
22999
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
23009
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$N, {
23000
23010
  key: 0,
23001
23011
  options: _ctx.options,
23002
23012
  onFilter: filter2
@@ -23010,7 +23020,7 @@ const _hoisted_1$F = {
23010
23020
  id: "lupa-search-result-filters",
23011
23021
  class: "lupa-search-result-filters"
23012
23022
  };
23013
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
23023
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
23014
23024
  __name: "SearchResultsFilters",
23015
23025
  props: {
23016
23026
  options: {},
@@ -23044,18 +23054,18 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23044
23054
  return (_ctx, _cache) => {
23045
23055
  var _a;
23046
23056
  return openBlock(), createElementBlock("div", _hoisted_1$F, [
23047
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
23057
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$W, {
23048
23058
  key: 0,
23049
23059
  options: _ctx.options.currentFilters,
23050
23060
  expandable: (_a = _ctx.expandable) != null ? _a : false
23051
23061
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
23052
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
23062
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$U, {
23053
23063
  key: 1,
23054
23064
  options: _ctx.options.categories,
23055
23065
  ref_key: "categoryFilters",
23056
23066
  ref: categoryFilters
23057
23067
  }, null, 8, ["options"])) : createCommentVNode("", true),
23058
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23068
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23059
23069
  key: 2,
23060
23070
  options: _ctx.options.facets,
23061
23071
  onFilter: filter2
@@ -23069,15 +23079,15 @@ const _hoisted_1$E = {
23069
23079
  class: "lupa-mobile-filter-sidebar"
23070
23080
  };
23071
23081
  const _hoisted_2$u = ["onClick"];
23072
- const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
23073
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
23082
+ const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
23083
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
23074
23084
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
23075
23085
  const _hoisted_6$6 = {
23076
23086
  key: 0,
23077
23087
  class: "lupa-sidebar-filter-count"
23078
23088
  };
23079
23089
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
23080
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
23090
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23081
23091
  __name: "MobileFilterSidebar",
23082
23092
  props: {
23083
23093
  options: {}
@@ -23113,8 +23123,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23113
23123
  class: "lupa-sidebar-close",
23114
23124
  onClick: withModifiers(handleMobileToggle, ["stop"])
23115
23125
  }, null, 8, _hoisted_2$u),
23116
- createBaseVNode("div", _hoisted_3$o, [
23117
- createBaseVNode("div", _hoisted_4$h, [
23126
+ createBaseVNode("div", _hoisted_3$n, [
23127
+ createBaseVNode("div", _hoisted_4$g, [
23118
23128
  createBaseVNode("div", _hoisted_5$a, [
23119
23129
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
23120
23130
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -23125,7 +23135,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23125
23135
  })
23126
23136
  ]),
23127
23137
  createBaseVNode("div", _hoisted_7$4, [
23128
- createVNode(_sfc_main$K, {
23138
+ createVNode(_sfc_main$L, {
23129
23139
  options: _ctx.options,
23130
23140
  expandable: isActiveFiltersExpanded.value,
23131
23141
  onFilter: filter2
@@ -23138,12 +23148,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23138
23148
  });
23139
23149
  const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
23140
23150
  const _hoisted_2$t = ["href", "onClick"];
23141
- const _hoisted_3$n = {
23151
+ const _hoisted_3$m = {
23142
23152
  key: 1,
23143
23153
  class: "lupa-search-results-breadcrumb-text"
23144
23154
  };
23145
- const _hoisted_4$g = { key: 2 };
23146
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
23155
+ const _hoisted_4$f = { key: 2 };
23156
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23147
23157
  __name: "SearchResultsBreadcrumbs",
23148
23158
  props: {
23149
23159
  breadcrumbs: {}
@@ -23182,8 +23192,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23182
23192
  var _a;
23183
23193
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
23184
23194
  }
23185
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
23186
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
23195
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
23196
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
23187
23197
  ]);
23188
23198
  }), 128))
23189
23199
  ]);
@@ -23194,7 +23204,7 @@ const _hoisted_1$C = {
23194
23204
  id: "lupa-search-result-filters",
23195
23205
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23196
23206
  };
23197
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
23207
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23198
23208
  __name: "FiltersTopDropdown",
23199
23209
  props: {
23200
23210
  options: {}
@@ -23207,7 +23217,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23207
23217
  return (_ctx, _cache) => {
23208
23218
  var _a;
23209
23219
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
23210
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23220
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23211
23221
  key: 0,
23212
23222
  options: _ctx.options.facets,
23213
23223
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -23219,7 +23229,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23219
23229
  }
23220
23230
  });
23221
23231
  const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
23222
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
23232
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23223
23233
  __name: "SearchResultsLayoutSelection",
23224
23234
  setup(__props) {
23225
23235
  const searchResultStore = useSearchResultStore();
@@ -23256,7 +23266,7 @@ const _hoisted_1$A = {
23256
23266
  key: 0,
23257
23267
  class: "lupa-mobile-toggle-filter-count"
23258
23268
  };
23259
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
23269
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23260
23270
  __name: "SearchResultsMobileToggle",
23261
23271
  props: {
23262
23272
  label: {},
@@ -23264,13 +23274,28 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23264
23274
  },
23265
23275
  setup(__props) {
23266
23276
  const searchResultStore = useSearchResultStore();
23277
+ const optionsStore = useOptionsStore();
23267
23278
  const { currentFilterCount } = storeToRefs(searchResultStore);
23279
+ const { searchResultOptions } = storeToRefs(optionsStore);
23280
+ const disableMobileBodyScrollLock = computed(
23281
+ () => {
23282
+ var _a, _b, _c;
23283
+ return (_c = (_b = (_a = searchResultOptions.value.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.disableMobileBodyScrollLock) != null ? _c : false;
23284
+ }
23285
+ );
23268
23286
  const handleMobileToggle = () => {
23269
- searchResultStore.setSidebarState({ visible: true });
23287
+ searchResultStore.setSidebarState({
23288
+ visible: true,
23289
+ disableBodyScrolling: !disableMobileBodyScrollLock.value
23290
+ });
23270
23291
  };
23292
+ const hasActiveFilters = computed(() => currentFilterCount.value > 0);
23271
23293
  return (_ctx, _cache) => {
23272
23294
  return openBlock(), createElementBlock("div", {
23273
- class: normalizeClass(["lupa-mobile-toggle", { "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1 }]),
23295
+ class: normalizeClass(["lupa-mobile-toggle", {
23296
+ "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
23297
+ "lupa-mobile-toggle-has-filters": hasActiveFilters.value
23298
+ }]),
23274
23299
  onClick: handleMobileToggle
23275
23300
  }, [
23276
23301
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
@@ -23279,6 +23304,26 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23279
23304
  };
23280
23305
  }
23281
23306
  });
23307
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23308
+ __name: "SearchResultsMobileFilterClose",
23309
+ props: {
23310
+ label: {}
23311
+ },
23312
+ setup(__props) {
23313
+ const searchResultStore = useSearchResultStore();
23314
+ const handleMobileToggle = () => {
23315
+ searchResultStore.setSidebarState({
23316
+ visible: false
23317
+ });
23318
+ };
23319
+ return (_ctx, _cache) => {
23320
+ return openBlock(), createElementBlock("div", {
23321
+ class: "lupa-mobile-filter-close-toggle",
23322
+ onClick: handleMobileToggle
23323
+ }, toDisplayString(_ctx.label), 1);
23324
+ };
23325
+ }
23326
+ });
23282
23327
  const _hoisted_1$z = {
23283
23328
  key: 0,
23284
23329
  id: "lupa-search-results-page-select",
@@ -23288,8 +23333,8 @@ const _hoisted_2$s = {
23288
23333
  key: 0,
23289
23334
  class: "lupa-page-number-separator"
23290
23335
  };
23291
- const _hoisted_3$m = ["onClick"];
23292
- const _hoisted_4$f = {
23336
+ const _hoisted_3$l = ["onClick"];
23337
+ const _hoisted_4$e = {
23293
23338
  key: 0,
23294
23339
  class: "lupa-page-number-separator"
23295
23340
  };
@@ -23392,10 +23437,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
23392
23437
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23393
23438
  ]),
23394
23439
  "data-cy": "lupa-page-number"
23395
- }, toDisplayString(page), 11, _hoisted_3$m);
23440
+ }, toDisplayString(page), 11, _hoisted_3$l);
23396
23441
  }), 128)),
23397
23442
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23398
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23443
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23399
23444
  createBaseVNode("div", {
23400
23445
  class: "lupa-page-number lupa-page-number-last",
23401
23446
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23419,8 +23464,8 @@ const _hoisted_1$y = {
23419
23464
  "data-cy": "lupa-search-results-page-size"
23420
23465
  };
23421
23466
  const _hoisted_2$r = { id: "lupa-select" };
23422
- const _hoisted_3$l = { class: "lupa-select-label" };
23423
- const _hoisted_4$e = ["aria-label"];
23467
+ const _hoisted_3$k = { class: "lupa-select-label" };
23468
+ const _hoisted_4$d = ["aria-label"];
23424
23469
  const _hoisted_5$9 = ["value"];
23425
23470
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
23426
23471
  __name: "SearchResultsPageSize",
@@ -23452,7 +23497,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23452
23497
  return (_ctx, _cache) => {
23453
23498
  return openBlock(), createElementBlock("div", _hoisted_1$y, [
23454
23499
  createBaseVNode("div", _hoisted_2$r, [
23455
- createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
23500
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23456
23501
  createBaseVNode("select", {
23457
23502
  class: "lupa-select-dropdown",
23458
23503
  "aria-label": label.value,
@@ -23467,7 +23512,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23467
23512
  value: option
23468
23513
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23469
23514
  }), 128))
23470
- ], 40, _hoisted_4$e)
23515
+ ], 40, _hoisted_4$d)
23471
23516
  ])
23472
23517
  ]);
23473
23518
  };
@@ -23478,8 +23523,8 @@ const _hoisted_1$x = {
23478
23523
  class: "lupa-search-results-sort"
23479
23524
  };
23480
23525
  const _hoisted_2$q = { id: "lupa-select" };
23481
- const _hoisted_3$k = { class: "lupa-select-label" };
23482
- const _hoisted_4$d = ["aria-label"];
23526
+ const _hoisted_3$j = { class: "lupa-select-label" };
23527
+ const _hoisted_4$c = ["aria-label"];
23483
23528
  const _hoisted_5$8 = ["value"];
23484
23529
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
23485
23530
  __name: "SearchResultsSort",
@@ -23532,7 +23577,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23532
23577
  return (_ctx, _cache) => {
23533
23578
  return openBlock(), createElementBlock("div", _hoisted_1$x, [
23534
23579
  createBaseVNode("div", _hoisted_2$q, [
23535
- createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
23580
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23536
23581
  withDirectives(createBaseVNode("select", {
23537
23582
  class: "lupa-select-dropdown",
23538
23583
  "aria-label": _ctx.options.label,
@@ -23547,7 +23592,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23547
23592
  value: option.key
23548
23593
  }, toDisplayString(option.label), 9, _hoisted_5$8);
23549
23594
  }), 128))
23550
- ], 40, _hoisted_4$d), [
23595
+ ], 40, _hoisted_4$c), [
23551
23596
  [vModelSelect, selectedKey.value]
23552
23597
  ])
23553
23598
  ])
@@ -23560,8 +23605,8 @@ const _hoisted_2$p = {
23560
23605
  key: 0,
23561
23606
  class: "lupa-toolbar-right-title"
23562
23607
  };
23563
- const _hoisted_3$j = { key: 2 };
23564
- const _hoisted_4$c = { key: 4 };
23608
+ const _hoisted_3$i = { key: 2 };
23609
+ const _hoisted_4$b = { key: 4 };
23565
23610
  const _hoisted_5$7 = { key: 6 };
23566
23611
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23567
23612
  const _hoisted_7$3 = {
@@ -23586,7 +23631,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23586
23631
  const searchResultStore = useSearchResultStore();
23587
23632
  const optionsStore = useOptionsStore();
23588
23633
  const { page, limit } = storeToRefs(paramStore);
23589
- const { hasAnyFilter, searchResult } = storeToRefs(searchResultStore);
23634
+ const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
23590
23635
  const { currentResolutionPageSizes } = storeToRefs(optionsStore);
23591
23636
  const isBottomLocation = computed(() => {
23592
23637
  return props.paginationLocation === "bottom";
@@ -23603,6 +23648,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23603
23648
  var _a;
23604
23649
  return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.layoutSelector);
23605
23650
  });
23651
+ const showFiltersCloseButton = computed(() => {
23652
+ var _a;
23653
+ return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.filtersCloseButton);
23654
+ });
23606
23655
  const sortOptions = computed(() => {
23607
23656
  var _a, _b;
23608
23657
  if (isBottomLocation.value || !((_a = optionsValue.value.sort) == null ? void 0 : _a.length)) {
@@ -23679,13 +23728,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23679
23728
  }, [
23680
23729
  createBaseVNode("div", _hoisted_1$w, [
23681
23730
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23682
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
23683
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
23731
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23732
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Z, {
23684
23733
  key: 3,
23685
23734
  label: searchSummaryLabel.value,
23686
23735
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23687
23736
  onClear: handleClearAll
23688
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23737
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23689
23738
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
23690
23739
  key: 5,
23691
23740
  options: paginationOptions.value.pageSelect,
@@ -23695,7 +23744,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23695
23744
  ]),
23696
23745
  createBaseVNode("div", _hoisted_6$5, [
23697
23746
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23698
- createVNode(_sfc_main$F, {
23747
+ createVNode(_sfc_main$G, {
23699
23748
  label: optionsValue.value.labels.mobileFilterButton,
23700
23749
  "show-filter-count": showMobileFilterCount.value
23701
23750
  }, null, 8, ["label", "show-filter-count"]),
@@ -23708,7 +23757,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23708
23757
  key: 3,
23709
23758
  options: sortOptions.value,
23710
23759
  callbacks: callbacks.value
23711
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
23760
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
23761
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$F, {
23762
+ key: 5,
23763
+ label: optionsValue.value.labels.mobileFilterCloseButton
23764
+ }, null, 8, ["label"])) : createCommentVNode("", true)
23712
23765
  ])
23713
23766
  ], 2);
23714
23767
  };
@@ -23722,7 +23775,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23722
23775
  },
23723
23776
  setup(__props) {
23724
23777
  return (_ctx, _cache) => {
23725
- return openBlock(), createBlock(_sfc_main$1l, {
23778
+ return openBlock(), createBlock(_sfc_main$1m, {
23726
23779
  item: _ctx.item,
23727
23780
  options: _ctx.options,
23728
23781
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23733,8 +23786,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23733
23786
  });
23734
23787
  const _hoisted_1$v = ["title", "innerHTML"];
23735
23788
  const _hoisted_2$o = ["title"];
23736
- const _hoisted_3$i = ["href", "innerHTML"];
23737
- const _hoisted_4$b = ["title"];
23789
+ const _hoisted_3$h = ["href", "innerHTML"];
23790
+ const _hoisted_4$a = ["title"];
23738
23791
  const _hoisted_5$6 = {
23739
23792
  key: 0,
23740
23793
  class: "lupa-search-results-product-title-text"
@@ -23788,7 +23841,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23788
23841
  class: "lupa-search-results-product-title-text lupa-title-link",
23789
23842
  innerHTML: sanitizedTitle.value,
23790
23843
  onClick: handleNavigation
23791
- }, null, 8, _hoisted_3$i)
23844
+ }, null, 8, _hoisted_3$h)
23792
23845
  ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
23793
23846
  key: 2,
23794
23847
  class: "lupa-search-results-product-title",
@@ -23802,7 +23855,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23802
23855
  class: "lupa-search-results-product-title-text lupa-title-link",
23803
23856
  onClick: handleNavigation
23804
23857
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23805
- ], 12, _hoisted_4$b));
23858
+ ], 12, _hoisted_4$a));
23806
23859
  };
23807
23860
  }
23808
23861
  });
@@ -23844,8 +23897,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23844
23897
  });
23845
23898
  const _hoisted_1$t = { id: "lupa-search-results-rating" };
23846
23899
  const _hoisted_2$n = { class: "lupa-ratings" };
23847
- const _hoisted_3$h = { class: "lupa-ratings-base" };
23848
- const _hoisted_4$a = ["innerHTML"];
23900
+ const _hoisted_3$g = { class: "lupa-ratings-base" };
23901
+ const _hoisted_4$9 = ["innerHTML"];
23849
23902
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23850
23903
  const _hoisted_6$3 = ["innerHTML"];
23851
23904
  const _hoisted_7$2 = ["href"];
@@ -23889,13 +23942,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23889
23942
  return (_ctx, _cache) => {
23890
23943
  return openBlock(), createElementBlock("div", _hoisted_1$t, [
23891
23944
  createBaseVNode("div", _hoisted_2$n, [
23892
- createBaseVNode("div", _hoisted_3$h, [
23945
+ createBaseVNode("div", _hoisted_3$g, [
23893
23946
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23894
23947
  return openBlock(), createElementBlock("div", {
23895
23948
  key: index,
23896
23949
  innerHTML: star,
23897
23950
  class: "lupa-rating lupa-rating-not-highlighted"
23898
- }, null, 8, _hoisted_4$a);
23951
+ }, null, 8, _hoisted_4$9);
23899
23952
  }), 128))
23900
23953
  ]),
23901
23954
  createBaseVNode("div", _hoisted_5$5, [
@@ -23979,7 +24032,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23979
24032
  });
23980
24033
  const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
23981
24034
  const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
23982
- const _hoisted_3$g = ["id", "disabled", "onClick"];
24035
+ const _hoisted_3$f = ["id", "disabled", "onClick"];
23983
24036
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
23984
24037
  __name: "SearchResultsProductAddToCart",
23985
24038
  props: {
@@ -24028,7 +24081,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
24028
24081
  disabled: !inStockValue.value || loading.value
24029
24082
  }, _ctx.dynamicAttributes, {
24030
24083
  onClick: withModifiers(handleClick, ["stop"])
24031
- }), toDisplayString(label.value), 17, _hoisted_3$g)
24084
+ }), toDisplayString(label.value), 17, _hoisted_3$f)
24032
24085
  ])
24033
24086
  ]);
24034
24087
  };
@@ -24036,8 +24089,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
24036
24089
  });
24037
24090
  const _hoisted_1$q = ["innerHTML"];
24038
24091
  const _hoisted_2$l = { key: 0 };
24039
- const _hoisted_3$f = { key: 1 };
24040
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
24092
+ const _hoisted_3$e = { key: 1 };
24093
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
24041
24094
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
24042
24095
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
24043
24096
  __name: "SearchResultsProductCustom",
@@ -24081,8 +24134,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
24081
24134
  key: 1,
24082
24135
  class: className.value
24083
24136
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24084
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
24085
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
24137
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
24138
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
24086
24139
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
24087
24140
  ]))
24088
24141
  ], 16));
@@ -24127,8 +24180,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
24127
24180
  });
24128
24181
  const _hoisted_1$o = { id: "lupa-search-results-rating" };
24129
24182
  const _hoisted_2$k = ["innerHTML"];
24130
- const _hoisted_3$e = { class: "lupa-ratings" };
24131
- const _hoisted_4$8 = ["href"];
24183
+ const _hoisted_3$d = { class: "lupa-ratings" };
24184
+ const _hoisted_4$7 = ["href"];
24132
24185
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
24133
24186
  __name: "SearchResultsProductSingleStarRating",
24134
24187
  props: {
@@ -24162,11 +24215,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
24162
24215
  innerHTML: star.value,
24163
24216
  class: "lupa-rating lupa-rating-highlighted"
24164
24217
  }, null, 8, _hoisted_2$k),
24165
- createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
24218
+ createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
24166
24219
  createBaseVNode("a", {
24167
24220
  href: ratingLink.value,
24168
24221
  class: "lupa-total-ratings"
24169
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
24222
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
24170
24223
  ]);
24171
24224
  };
24172
24225
  }
@@ -24269,11 +24322,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
24269
24322
  }));
24270
24323
  const _hoisted_1$n = ["onMouseup"];
24271
24324
  const _hoisted_2$j = ["href"];
24272
- const _hoisted_3$d = {
24325
+ const _hoisted_3$c = {
24273
24326
  key: 0,
24274
24327
  class: "lupa-out-of-stock"
24275
24328
  };
24276
- const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24329
+ const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
24277
24330
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
24278
24331
  __name: "SearchResultsProductCard",
24279
24332
  props: {
@@ -24282,7 +24335,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24282
24335
  isAdditionalPanel: { type: Boolean },
24283
24336
  clickTrackingSettings: {},
24284
24337
  lupaClickTrackingType: {},
24285
- sourceItemId: {}
24338
+ sourceItemId: {},
24339
+ analyticsMetadata: {}
24286
24340
  },
24287
24341
  setup(__props) {
24288
24342
  const props = __props;
@@ -24393,7 +24447,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24393
24447
  },
24394
24448
  options: { allowEmptySearchQuery: true },
24395
24449
  filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0,
24396
- sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0
24450
+ sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0,
24451
+ metadata: props.analyticsMetadata
24397
24452
  }
24398
24453
  };
24399
24454
  if (isDelayedClickTracking()) {
@@ -24437,7 +24492,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24437
24492
  onClick: handleClick,
24438
24493
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
24439
24494
  }), [
24440
- createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
24495
+ createVNode(_sfc_main$16, { options: badgesOptions.value }, null, 8, ["options"]),
24441
24496
  createBaseVNode("div", {
24442
24497
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24443
24498
  }, [
@@ -24458,14 +24513,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24458
24513
  onProductEvent: handleProductEvent
24459
24514
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24460
24515
  }), 128)),
24461
- createVNode(_sfc_main$15, {
24516
+ createVNode(_sfc_main$16, {
24462
24517
  options: badgesOptions.value,
24463
24518
  position: "image",
24464
24519
  class: "lupa-image-badges"
24465
24520
  }, null, 8, ["options"]),
24466
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24521
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24467
24522
  ], 8, _hoisted_2$j),
24468
- createBaseVNode("div", _hoisted_4$7, [
24523
+ createBaseVNode("div", _hoisted_4$6, [
24469
24524
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24470
24525
  return openBlock(), createBlock(_sfc_main$q, {
24471
24526
  class: "lupa-search-results-product-element",
@@ -24508,11 +24563,11 @@ const _hoisted_1$m = {
24508
24563
  "data-cy": "lupa-search-results-similar-queries"
24509
24564
  };
24510
24565
  const _hoisted_2$i = { class: "lupa-similar-queries-label" };
24511
- const _hoisted_3$c = {
24566
+ const _hoisted_3$b = {
24512
24567
  class: "lupa-similar-query-label",
24513
24568
  "data-cy": "lupa-similar-query-label"
24514
24569
  };
24515
- const _hoisted_4$6 = ["onClick"];
24570
+ const _hoisted_4$5 = ["onClick"];
24516
24571
  const _hoisted_5$3 = ["innerHTML"];
24517
24572
  const _hoisted_6$2 = { key: 0 };
24518
24573
  const _hoisted_7$1 = {
@@ -24548,12 +24603,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24548
24603
  }) => {
24549
24604
  paramsStore.goToResults({ searchText, facet });
24550
24605
  };
24606
+ const getClickMetadata = (similarQuery) => {
24607
+ var _a;
24608
+ const isRegularSimilarQuery = (_a = similarQuery.displayQuery) == null ? void 0 : _a.includes("<del>");
24609
+ return {
24610
+ _lupaEventSource: isRegularSimilarQuery ? "similarQueries" : "similarQueriesAI",
24611
+ _lupaUpdatedQuery: similarQuery.query
24612
+ };
24613
+ };
24551
24614
  return (_ctx, _cache) => {
24552
24615
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
24553
24616
  createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
24554
24617
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24555
24618
  return openBlock(), createElementBlock("div", { key: index }, [
24556
- createBaseVNode("div", _hoisted_3$c, [
24619
+ createBaseVNode("div", _hoisted_3$b, [
24557
24620
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24558
24621
  createBaseVNode("span", {
24559
24622
  id: "lupa-similar-query-text-component",
@@ -24565,7 +24628,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24565
24628
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24566
24629
  }, null, 8, _hoisted_5$3),
24567
24630
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24568
- ], 8, _hoisted_4$6)
24631
+ ], 8, _hoisted_4$5)
24569
24632
  ]),
24570
24633
  createBaseVNode("div", _hoisted_7$1, [
24571
24634
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24573,8 +24636,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24573
24636
  style: normalizeStyle(_ctx.columnSize),
24574
24637
  key: getDocumentKey(index2, product),
24575
24638
  product,
24576
- options: _ctx.productCardOptions
24577
- }, null, 8, ["style", "product", "options"]);
24639
+ options: _ctx.productCardOptions,
24640
+ "analytics-metadata": getClickMetadata(similarQuery)
24641
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24578
24642
  }), 128))
24579
24643
  ])
24580
24644
  ]);
@@ -24743,7 +24807,7 @@ const _hoisted_1$i = {
24743
24807
  "data-cy": "lupa-search-results-similar-results"
24744
24808
  };
24745
24809
  const _hoisted_2$f = { class: "lupa-similar-results-label" };
24746
- const _hoisted_3$b = {
24810
+ const _hoisted_3$a = {
24747
24811
  class: "lupa-products",
24748
24812
  "data-cy": "lupa-products"
24749
24813
  };
@@ -24762,17 +24826,23 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24762
24826
  const getDocumentKey = (index, product) => {
24763
24827
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24764
24828
  };
24829
+ const clickMetadata = computed(() => {
24830
+ return {
24831
+ _lupaEventSource: "similarResults"
24832
+ };
24833
+ });
24765
24834
  return (_ctx, _cache) => {
24766
24835
  return openBlock(), createElementBlock("div", _hoisted_1$i, [
24767
24836
  createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24768
- createBaseVNode("div", _hoisted_3$b, [
24837
+ createBaseVNode("div", _hoisted_3$a, [
24769
24838
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24770
24839
  return openBlock(), createBlock(_sfc_main$p, {
24771
24840
  style: normalizeStyle(_ctx.columnSize),
24772
24841
  key: getDocumentKey(index, product),
24773
24842
  product,
24774
- options: _ctx.productCardOptions
24775
- }, null, 8, ["style", "product", "options"]);
24843
+ options: _ctx.productCardOptions,
24844
+ "analytics-metadata": clickMetadata.value
24845
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24776
24846
  }), 128))
24777
24847
  ])
24778
24848
  ]);
@@ -24883,8 +24953,8 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
24883
24953
  });
24884
24954
  const _hoisted_1$h = { class: "lupa-related-query-item" };
24885
24955
  const _hoisted_2$e = { class: "lupa-related-query-image" };
24886
- const _hoisted_3$a = { class: "lupa-related-query-label" };
24887
- const _hoisted_4$5 = { class: "lupa-related-query-title" };
24956
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
24957
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
24888
24958
  const _hoisted_5$2 = {
24889
24959
  key: 0,
24890
24960
  class: "lupa-related-query-count"
@@ -24982,7 +25052,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24982
25052
  var _a;
24983
25053
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
24984
25054
  createBaseVNode("div", _hoisted_2$e, [
24985
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
25055
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1m, {
24986
25056
  key: 0,
24987
25057
  "wrapper-class": "lupa-related-query-image-wrapper",
24988
25058
  "image-class": "lupa-related-query-image",
@@ -24990,8 +25060,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24990
25060
  options: image.value
24991
25061
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24992
25062
  ]),
24993
- createBaseVNode("div", _hoisted_3$a, [
24994
- createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
25063
+ createBaseVNode("div", _hoisted_3$9, [
25064
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
24995
25065
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24996
25066
  ])
24997
25067
  ]);
@@ -25006,7 +25076,7 @@ const _hoisted_2$d = {
25006
25076
  key: 0,
25007
25077
  class: "lupa-related-queries-title"
25008
25078
  };
25009
- const _hoisted_3$9 = ["onClick"];
25079
+ const _hoisted_3$8 = ["onClick"];
25010
25080
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
25011
25081
  __name: "RelatedQueries",
25012
25082
  props: {
@@ -25111,7 +25181,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
25111
25181
  "existing-items-from-other-queries": allDisplayItems.value,
25112
25182
  onLoaded: (item) => processLoadedItem(query, item)
25113
25183
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
25114
- ], 8, _hoisted_3$9)
25184
+ ], 8, _hoisted_3$8)
25115
25185
  ], 2)), [
25116
25186
  [vShow, querySourceResultMap.value[query.value] !== false]
25117
25187
  ]);
@@ -25153,7 +25223,7 @@ const _hoisted_1$f = {
25153
25223
  class: "lupa-redirection-suggestion"
25154
25224
  };
25155
25225
  const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
25156
- const _hoisted_3$8 = ["href"];
25226
+ const _hoisted_3$7 = ["href"];
25157
25227
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
25158
25228
  __name: "RedirectionSuggestions",
25159
25229
  props: {
@@ -25179,7 +25249,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
25179
25249
  return (_ctx, _cache) => {
25180
25250
  return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
25181
25251
  createBaseVNode("h4", _hoisted_2$c, [
25182
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
25252
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
25183
25253
  ])
25184
25254
  ])) : createCommentVNode("", true);
25185
25255
  };
@@ -25190,12 +25260,12 @@ const _hoisted_2$b = {
25190
25260
  class: "lupa-products",
25191
25261
  "data-cy": "lupa-products"
25192
25262
  };
25193
- const _hoisted_3$7 = {
25263
+ const _hoisted_3$6 = {
25194
25264
  key: 1,
25195
25265
  class: "lupa-empty-results",
25196
25266
  "data-cy": "lupa-no-results-in-page"
25197
25267
  };
25198
- const _hoisted_4$4 = {
25268
+ const _hoisted_4$3 = {
25199
25269
  key: 4,
25200
25270
  class: "lupa-empty-results",
25201
25271
  "data-cy": "lupa-no-results"
@@ -25296,6 +25366,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25296
25366
  var _a, _b;
25297
25367
  return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
25298
25368
  });
25369
+ const clickMetadata = computed(() => {
25370
+ const hasDidYouMean = Boolean(searchResult.value.suggestedSearchText);
25371
+ return hasDidYouMean ? {
25372
+ _lupaEventSource: "didYouMean",
25373
+ _lupaUpdatedQuery: searchResult.value.suggestedSearchText
25374
+ } : void 0;
25375
+ });
25299
25376
  const getProductKeyAction = (index, product) => {
25300
25377
  return getProductKey(`${index}`, product, props.options.idKey);
25301
25378
  };
@@ -25327,7 +25404,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25327
25404
  options: _ctx.options.relatedQueries
25328
25405
  }, null, 8, ["options"])) : createCommentVNode("", true),
25329
25406
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25330
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25407
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
25331
25408
  key: 0,
25332
25409
  options: (_a = _ctx.options.filters) != null ? _a : {}
25333
25410
  }, null, 8, ["options"])) : createCommentVNode("", true),
@@ -25338,7 +25415,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25338
25415
  "pagination-location": "top",
25339
25416
  onFilter: filter2
25340
25417
  }, null, 8, ["options"])) : createCommentVNode("", true),
25341
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
25418
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$W, {
25342
25419
  key: 2,
25343
25420
  class: normalizeClass(currentFiltersClass.value),
25344
25421
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25352,7 +25429,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25352
25429
  options: _ctx.options,
25353
25430
  "pagination-location": "top"
25354
25431
  }, null, 8, ["options"]),
25355
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
25432
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$W, {
25356
25433
  key: 0,
25357
25434
  class: normalizeClass(currentFiltersClass.value),
25358
25435
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25372,11 +25449,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25372
25449
  style: normalizeStyle(columnSize.value),
25373
25450
  key: getProductKeyAction(index, product),
25374
25451
  product,
25375
- options: productCardOptions.value
25376
- }, null, 8, ["style", "product", "options"]);
25452
+ options: productCardOptions.value,
25453
+ "analytics-metadata": clickMetadata.value
25454
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
25377
25455
  }), 128))
25378
25456
  ]),
25379
- unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
25457
+ unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
25380
25458
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
25381
25459
  _ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
25382
25460
  key: 0,
@@ -25394,7 +25472,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25394
25472
  location: "bottom",
25395
25473
  sdkOptions: _ctx.options.options
25396
25474
  }, null, 8, ["options", "sdkOptions"])
25397
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
25475
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25398
25476
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
25399
25477
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
25400
25478
  ])) : createCommentVNode("", true),
@@ -25422,8 +25500,8 @@ const _hoisted_2$a = {
25422
25500
  key: 0,
25423
25501
  class: "lupa-category-back"
25424
25502
  };
25425
- const _hoisted_3$6 = ["href"];
25426
- const _hoisted_4$3 = {
25503
+ const _hoisted_3$5 = ["href"];
25504
+ const _hoisted_4$2 = {
25427
25505
  key: 1,
25428
25506
  class: "lupa-child-category-list"
25429
25507
  };
@@ -25481,11 +25559,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25481
25559
  "data-cy": "lupa-category-back",
25482
25560
  href: backUrlLink.value,
25483
25561
  onClick: handleNavigationBack
25484
- }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25562
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
25485
25563
  ])) : createCommentVNode("", true),
25486
- hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25564
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
25487
25565
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25488
- return openBlock(), createBlock(_sfc_main$U, {
25566
+ return openBlock(), createBlock(_sfc_main$V, {
25489
25567
  key: getCategoryKey(child),
25490
25568
  item: child,
25491
25569
  options: categoryOptions.value
@@ -25506,13 +25584,7 @@ const _hoisted_1$c = {
25506
25584
  key: 0,
25507
25585
  class: "lupa-container-title-summary-mobile"
25508
25586
  };
25509
- const _hoisted_2$9 = {
25510
- key: 4,
25511
- id: "lupa-search-results",
25512
- class: "top-layout-wrapper"
25513
- };
25514
- const _hoisted_3$5 = { class: "search-content" };
25515
- const _hoisted_4$2 = { id: "lupa-search-results" };
25587
+ const _hoisted_2$9 = { class: "search-content" };
25516
25588
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
25517
25589
  __name: "SearchResults",
25518
25590
  props: {
@@ -25538,7 +25610,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25538
25610
  var _a, _b;
25539
25611
  return (_b = (_a = props.initialFilters) != null ? _a : extractedInitialFilters.value) != null ? _b : {};
25540
25612
  });
25541
- const { currentQueryText, hasResults, currentFilterCount } = storeToRefs(searchResultStore);
25613
+ const { currentQueryText, hasResults, currentFilterCount, isMobileSidebarVisible, layout } = storeToRefs(searchResultStore);
25542
25614
  const { searchString, sortParams } = storeToRefs(paramStore);
25543
25615
  const { defaultSearchResultPageSize } = storeToRefs(optionStore);
25544
25616
  const searchResultsFilters = ref(null);
@@ -25554,6 +25626,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25554
25626
  const isTitleResultTopPosition = computed(() => {
25555
25627
  return props.options.searchTitlePosition === "search-results-top";
25556
25628
  });
25629
+ const indicatorClasses = computed(() => {
25630
+ return {
25631
+ "lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
25632
+ "lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
25633
+ "lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
25634
+ };
25635
+ });
25557
25636
  const handlePopState = () => {
25558
25637
  var _a;
25559
25638
  const searchParams = getSearchParams((_a = props.options.ssr) == null ? void 0 : _a.url);
@@ -25727,8 +25806,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25727
25806
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
25728
25807
  }, [
25729
25808
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25730
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25731
- createVNode(_sfc_main$X, {
25809
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25810
+ createVNode(_sfc_main$Y, {
25732
25811
  "show-summary": true,
25733
25812
  options: _ctx.options,
25734
25813
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -25738,26 +25817,30 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25738
25817
  key: 1,
25739
25818
  options: _ctx.options
25740
25819
  }, null, 8, ["options"])) : createCommentVNode("", true),
25741
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
25820
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
25742
25821
  key: 2,
25743
25822
  options: _ctx.options.filters,
25744
25823
  onFilter: handleParamsChange
25745
25824
  }, null, 8, ["options"])) : createCommentVNode("", true),
25746
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
25825
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
25747
25826
  key: 3,
25748
25827
  breadcrumbs: _ctx.options.breadcrumbs
25749
25828
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
25750
- isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
25751
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25829
+ isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
25830
+ key: 4,
25831
+ id: "lupa-search-results",
25832
+ class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
25833
+ }, [
25834
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25752
25835
  key: 0,
25753
25836
  options: (_b = _ctx.options.filters) != null ? _b : {},
25754
25837
  ref_key: "searchResultsFilters",
25755
25838
  ref: searchResultsFilters,
25756
25839
  onFilter: handleParamsChange
25757
25840
  }, null, 8, ["options"])) : createCommentVNode("", true),
25758
- createBaseVNode("div", _hoisted_3$5, [
25759
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25760
- createVNode(_sfc_main$X, {
25841
+ createBaseVNode("div", _hoisted_2$9, [
25842
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25843
+ createVNode(_sfc_main$Y, {
25761
25844
  options: _ctx.options,
25762
25845
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
25763
25846
  }, null, 8, ["options", "is-product-list"]),
@@ -25772,14 +25855,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25772
25855
  _: 3
25773
25856
  }, 8, ["options", "ssr"])
25774
25857
  ])
25775
- ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25776
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25777
- createVNode(_sfc_main$X, {
25858
+ ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25859
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25860
+ createVNode(_sfc_main$Y, {
25778
25861
  options: _ctx.options,
25779
25862
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25780
25863
  }, null, 8, ["options", "is-product-list"]),
25781
- createBaseVNode("div", _hoisted_4$2, [
25782
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25864
+ createBaseVNode("div", {
25865
+ id: "lupa-search-results",
25866
+ class: normalizeClass(indicatorClasses.value)
25867
+ }, [
25868
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25783
25869
  key: 0,
25784
25870
  options: (_e = _ctx.options.filters) != null ? _e : {},
25785
25871
  ref_key: "searchResultsFilters",
@@ -25804,7 +25890,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25804
25890
  key: "0"
25805
25891
  } : void 0
25806
25892
  ]), 1032, ["options", "ssr"])
25807
- ])
25893
+ ], 2)
25808
25894
  ], 64))
25809
25895
  ], 2);
25810
25896
  };
@@ -31413,7 +31499,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31413
31499
  onClick: withModifiers(innerClick, ["stop"])
31414
31500
  }, [
31415
31501
  createBaseVNode("div", _hoisted_2$7, [
31416
- createVNode(_sfc_main$_, {
31502
+ createVNode(_sfc_main$$, {
31417
31503
  options: fullSearchBoxOptions.value,
31418
31504
  "is-search-container": true,
31419
31505
  ref_key: "searchBox",
@@ -32943,7 +33029,7 @@ const _hoisted_4 = {
32943
33029
  key: 0,
32944
33030
  class: "lupasearch-chat-content"
32945
33031
  };
32946
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
33032
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
32947
33033
  __name: "ChatContainer",
32948
33034
  props: {
32949
33035
  options: {}
@@ -38961,7 +39047,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
38961
39047
  };
38962
39048
  __expose({ fetch: fetch2 });
38963
39049
  return (_ctx, _cache) => {
38964
- return openBlock(), createBlock(unref(_sfc_main$_), {
39050
+ return openBlock(), createBlock(unref(_sfc_main$$), {
38965
39051
  options: fullSearchBoxOptions.value,
38966
39052
  ref_key: "searchBox",
38967
39053
  ref: searchBox2
@@ -39516,7 +39602,7 @@ const chat = (options, mountOptions) => {
39516
39602
  const instance = createVue(
39517
39603
  options.displayOptions.containerSelector,
39518
39604
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
39519
- _sfc_main$1u,
39605
+ _sfc_main$1v,
39520
39606
  {
39521
39607
  options
39522
39608
  }