@getlupa/client 1.15.16 → 1.16.1

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.
@@ -8697,8 +8697,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8697
8697
  });
8698
8698
  const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
8699
8699
  const _hoisted_2$V = { class: "lupa-input-clear" };
8700
- const _hoisted_3$E = { id: "lupa-search-box-input" };
8701
- const _hoisted_4$t = ["value"];
8700
+ const _hoisted_3$C = { id: "lupa-search-box-input" };
8701
+ const _hoisted_4$s = ["value"];
8702
8702
  const _hoisted_5$j = ["aria-label", "placeholder"];
8703
8703
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8704
8704
  const _hoisted_7$7 = [
@@ -8708,7 +8708,7 @@ const _hoisted_8$3 = {
8708
8708
  key: 0,
8709
8709
  class: "lupa-close-label"
8710
8710
  };
8711
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8711
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
8712
8712
  __name: "SearchBoxInput",
8713
8713
  props: {
8714
8714
  options: {},
@@ -8799,13 +8799,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8799
8799
  onClick: clear2
8800
8800
  }, null, 2)
8801
8801
  ]),
8802
- createBaseVNode("div", _hoisted_3$E, [
8802
+ createBaseVNode("div", _hoisted_3$C, [
8803
8803
  createBaseVNode("input", {
8804
8804
  class: "lupa-hint",
8805
8805
  "aria-hidden": "true",
8806
8806
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8807
8807
  disabled: ""
8808
- }, null, 8, _hoisted_4$t),
8808
+ }, null, 8, _hoisted_4$s),
8809
8809
  withDirectives(createBaseVNode("input", mergeProps({
8810
8810
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8811
8811
  }, inputAttributes.value, {
@@ -8838,7 +8838,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8838
8838
  };
8839
8839
  }
8840
8840
  });
8841
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8841
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8842
8842
  __name: "SearchBoxMoreResults",
8843
8843
  props: {
8844
8844
  labels: {},
@@ -8877,7 +8877,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8877
8877
  });
8878
8878
  const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
8879
8879
  const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
8880
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8880
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8881
8881
  __name: "SearchBoxHistoryItem",
8882
8882
  props: {
8883
8883
  item: {},
@@ -8912,7 +8912,7 @@ const _hoisted_1$1f = {
8912
8912
  key: 0,
8913
8913
  class: "lupa-search-box-history-panel"
8914
8914
  };
8915
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8915
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8916
8916
  __name: "SearchBoxHistoryPanel",
8917
8917
  props: {
8918
8918
  options: {}
@@ -8955,7 +8955,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8955
8955
  return (_ctx, _cache) => {
8956
8956
  return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
8957
8957
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8958
- return openBlock(), createBlock(_sfc_main$1r, {
8958
+ return openBlock(), createBlock(_sfc_main$1s, {
8959
8959
  key: item,
8960
8960
  item,
8961
8961
  highlighted: index === highlightIndex.value,
@@ -8972,7 +8972,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8972
8972
  }
8973
8973
  });
8974
8974
  const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
8975
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8975
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8976
8976
  __name: "SearchBoxNoResults",
8977
8977
  props: {
8978
8978
  labels: {}
@@ -9017,12 +9017,12 @@ const _hoisted_2$T = {
9017
9017
  "data-cy": "lupa-suggestion-value",
9018
9018
  class: "lupa-suggestion-value"
9019
9019
  };
9020
- const _hoisted_3$D = {
9020
+ const _hoisted_3$B = {
9021
9021
  key: 2,
9022
9022
  class: "lupa-suggestion-facet",
9023
9023
  "data-cy": "lupa-suggestion-facet"
9024
9024
  };
9025
- const _hoisted_4$s = {
9025
+ const _hoisted_4$r = {
9026
9026
  class: "lupa-suggestion-facet-label",
9027
9027
  "data-cy": "lupa-suggestion-facet-label"
9028
9028
  };
@@ -9030,7 +9030,7 @@ const _hoisted_5$i = {
9030
9030
  class: "lupa-suggestion-facet-value",
9031
9031
  "data-cy": "lupa-suggestion-facet-value"
9032
9032
  };
9033
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9033
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
9034
9034
  __name: "SearchBoxSuggestion",
9035
9035
  props: {
9036
9036
  suggestion: {},
@@ -9067,8 +9067,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9067
9067
  "data-cy": "lupa-suggestion-value",
9068
9068
  innerHTML: _ctx.suggestion.displayHighlight
9069
9069
  }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
9070
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
9071
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
9070
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
9071
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
9072
9072
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
9073
9073
  ])) : createCommentVNode("", true)
9074
9074
  ]);
@@ -9079,7 +9079,7 @@ const _hoisted_1$1c = {
9079
9079
  id: "lupa-search-box-suggestions",
9080
9080
  "data-cy": "lupa-search-box-suggestions"
9081
9081
  };
9082
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9082
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9083
9083
  __name: "SearchBoxSuggestions",
9084
9084
  props: {
9085
9085
  items: {},
@@ -9141,7 +9141,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9141
9141
  return (_ctx, _cache) => {
9142
9142
  return openBlock(), createElementBlock("div", _hoisted_1$1c, [
9143
9143
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9144
- return openBlock(), createBlock(_sfc_main$1o, {
9144
+ return openBlock(), createBlock(_sfc_main$1p, {
9145
9145
  key: getSuggestionKey(item),
9146
9146
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9147
9147
  suggestion: item,
@@ -9169,7 +9169,7 @@ const debounce$1 = (func, timeout) => {
9169
9169
  }, timeout);
9170
9170
  };
9171
9171
  };
9172
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9172
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9173
9173
  __name: "SearchBoxSuggestionsWrapper",
9174
9174
  props: {
9175
9175
  panel: {},
@@ -9211,7 +9211,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9211
9211
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9212
9212
  watch(() => props.panel.limit, getSuggestionsDebounced);
9213
9213
  return (_ctx, _cache) => {
9214
- return openBlock(), createBlock(_sfc_main$1n, {
9214
+ return openBlock(), createBlock(_sfc_main$1o, {
9215
9215
  items: searchResult.value,
9216
9216
  highlight: _ctx.panel.highlight,
9217
9217
  queryKey: _ctx.panel.queryKey,
@@ -18302,7 +18302,7 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
18302
18302
  };
18303
18303
  const _hoisted_1$1b = ["src"];
18304
18304
  const _hoisted_2$S = ["src"];
18305
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18305
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
18306
18306
  __name: "ProductImage",
18307
18307
  props: {
18308
18308
  item: {},
@@ -18457,7 +18457,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18457
18457
  };
18458
18458
  }
18459
18459
  });
18460
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18460
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18461
18461
  __name: "SearchBoxProductImage",
18462
18462
  props: {
18463
18463
  item: {},
@@ -18465,7 +18465,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18465
18465
  },
18466
18466
  setup(__props) {
18467
18467
  return (_ctx, _cache) => {
18468
- return openBlock(), createBlock(_sfc_main$1l, {
18468
+ return openBlock(), createBlock(_sfc_main$1m, {
18469
18469
  item: _ctx.item,
18470
18470
  options: _ctx.options,
18471
18471
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18479,7 +18479,7 @@ const _hoisted_2$R = {
18479
18479
  key: 1,
18480
18480
  class: "lupa-search-box-product-title"
18481
18481
  };
18482
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18482
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18483
18483
  __name: "SearchBoxProductTitle",
18484
18484
  props: {
18485
18485
  item: {},
@@ -18513,7 +18513,7 @@ const _hoisted_2$Q = {
18513
18513
  key: 1,
18514
18514
  class: "lupa-search-box-product-description"
18515
18515
  };
18516
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18516
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18517
18517
  __name: "SearchBoxProductDescription",
18518
18518
  props: {
18519
18519
  item: {},
@@ -18541,7 +18541,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18541
18541
  }
18542
18542
  });
18543
18543
  const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
18544
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18544
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18545
18545
  __name: "SearchBoxProductPrice",
18546
18546
  props: {
18547
18547
  item: {},
@@ -18565,7 +18565,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18565
18565
  };
18566
18566
  }
18567
18567
  });
18568
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18568
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18569
18569
  __name: "SearchBoxProductRegularPrice",
18570
18570
  props: {
18571
18571
  item: {},
@@ -18594,10 +18594,10 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18594
18594
  });
18595
18595
  const _hoisted_1$17 = ["innerHTML"];
18596
18596
  const _hoisted_2$P = { key: 0 };
18597
- const _hoisted_3$C = { key: 1 };
18598
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18597
+ const _hoisted_3$A = { key: 1 };
18598
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18599
18599
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18600
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18600
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18601
18601
  __name: "SearchBoxProductCustom",
18602
18602
  props: {
18603
18603
  item: {},
@@ -18627,8 +18627,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18627
18627
  key: 1,
18628
18628
  class: [className.value, "lupa-search-box-product-custom"]
18629
18629
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18630
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
18631
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18630
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
18631
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18632
18632
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18633
18633
  ]))
18634
18634
  ], 16));
@@ -18636,7 +18636,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18636
18636
  }
18637
18637
  });
18638
18638
  const _hoisted_1$16 = ["innerHTML"];
18639
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18639
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18640
18640
  __name: "SearchBoxProductCustomHtml",
18641
18641
  props: {
18642
18642
  item: {},
@@ -18782,8 +18782,11 @@ const useSearchResultStore = defineStore("searchResult", () => {
18782
18782
  return hasResults.value && ((_a = searchResult.value.offset) != null ? _a : 0) >= totalItems.value;
18783
18783
  }
18784
18784
  );
18785
- const setSidebarState = ({ visible }) => {
18786
- if (visible) {
18785
+ const setSidebarState = ({
18786
+ visible,
18787
+ disableBodyScrolling = true
18788
+ }) => {
18789
+ if (visible && disableBodyScrolling) {
18787
18790
  disableBodyScroll();
18788
18791
  } else {
18789
18792
  enableBodyScroll();
@@ -18897,8 +18900,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
18897
18900
  });
18898
18901
  const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
18899
18902
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
18900
- const _hoisted_3$B = ["onClick", "disabled"];
18901
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18903
+ const _hoisted_3$z = ["onClick", "disabled"];
18904
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18902
18905
  __name: "SearchBoxProductAddToCart",
18903
18906
  props: {
18904
18907
  item: {},
@@ -18940,7 +18943,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18940
18943
  "data-cy": "lupa-add-to-cart",
18941
18944
  type: "button",
18942
18945
  disabled: !inStockValue.value || loading.value
18943
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$B)
18946
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$z)
18944
18947
  ])
18945
18948
  ]);
18946
18949
  };
@@ -18952,17 +18955,17 @@ const _hoisted_1$14 = {
18952
18955
  };
18953
18956
  const __default__$4 = {
18954
18957
  components: {
18955
- SearchBoxProductImage: _sfc_main$1k,
18956
- SearchBoxProductTitle: _sfc_main$1j,
18957
- SearchBoxProductDescription: _sfc_main$1i,
18958
- SearchBoxProductPrice: _sfc_main$1h,
18959
- SearchBoxProductRegularPrice: _sfc_main$1g,
18960
- SearchBoxProductCustom: _sfc_main$1f,
18961
- SearchBoxProductCustomHtml: _sfc_main$1e,
18962
- SearchBoxProductAddToCart: _sfc_main$1d
18958
+ SearchBoxProductImage: _sfc_main$1l,
18959
+ SearchBoxProductTitle: _sfc_main$1k,
18960
+ SearchBoxProductDescription: _sfc_main$1j,
18961
+ SearchBoxProductPrice: _sfc_main$1i,
18962
+ SearchBoxProductRegularPrice: _sfc_main$1h,
18963
+ SearchBoxProductCustom: _sfc_main$1g,
18964
+ SearchBoxProductCustomHtml: _sfc_main$1f,
18965
+ SearchBoxProductAddToCart: _sfc_main$1e
18963
18966
  }
18964
18967
  };
18965
- const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18968
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18966
18969
  __name: "SearchBoxProductElement",
18967
18970
  props: {
18968
18971
  item: {},
@@ -19048,12 +19051,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19048
19051
  }));
19049
19052
  const _hoisted_1$13 = { class: "lupa-badge-title" };
19050
19053
  const _hoisted_2$N = ["src"];
19051
- const _hoisted_3$A = { key: 1 };
19052
- const _hoisted_4$q = {
19054
+ const _hoisted_3$y = { key: 1 };
19055
+ const _hoisted_4$p = {
19053
19056
  key: 0,
19054
19057
  class: "lupa-badge-full-text"
19055
19058
  };
19056
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19059
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
19057
19060
  __name: "SearchResultGeneratedBadge",
19058
19061
  props: {
19059
19062
  options: {},
@@ -19091,15 +19094,15 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19091
19094
  key: 0,
19092
19095
  src: image.value
19093
19096
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
19094
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19097
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19095
19098
  ]),
19096
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19099
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19097
19100
  ], 6);
19098
19101
  };
19099
19102
  }
19100
19103
  });
19101
19104
  const _hoisted_1$12 = { class: "lupa-generated-badges" };
19102
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19105
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19103
19106
  __name: "SearchResultGeneratedBadges",
19104
19107
  props: {
19105
19108
  options: {}
@@ -19127,7 +19130,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19127
19130
  return (_ctx, _cache) => {
19128
19131
  return openBlock(), createElementBlock("div", _hoisted_1$12, [
19129
19132
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19130
- return openBlock(), createBlock(_sfc_main$1b, {
19133
+ return openBlock(), createBlock(_sfc_main$1c, {
19131
19134
  key: badge.id,
19132
19135
  badge,
19133
19136
  options: _ctx.options
@@ -19138,7 +19141,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19138
19141
  }
19139
19142
  });
19140
19143
  const _hoisted_1$11 = ["innerHTML"];
19141
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19144
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19142
19145
  __name: "CustomBadge",
19143
19146
  props: {
19144
19147
  badge: {}
@@ -19164,7 +19167,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19164
19167
  }
19165
19168
  });
19166
19169
  const _hoisted_1$10 = { class: "lupa-text-badges" };
19167
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19170
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19168
19171
  __name: "TextBadge",
19169
19172
  props: {
19170
19173
  badge: {}
@@ -19191,7 +19194,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19191
19194
  });
19192
19195
  const _hoisted_1$$ = { class: "lupa-image-badges" };
19193
19196
  const _hoisted_2$M = ["src"];
19194
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19197
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19195
19198
  __name: "ImageBadge",
19196
19199
  props: {
19197
19200
  badge: {}
@@ -19226,7 +19229,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19226
19229
  };
19227
19230
  }
19228
19231
  });
19229
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19232
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19230
19233
  __name: "DiscountBadge",
19231
19234
  props: {
19232
19235
  badge: {}
@@ -19287,13 +19290,13 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19287
19290
  const _hoisted_1$_ = { id: "lupa-search-results-badges" };
19288
19291
  const __default__$3 = {
19289
19292
  components: {
19290
- CustomBadge: _sfc_main$19,
19291
- TextBadge: _sfc_main$18,
19292
- ImageBadge: _sfc_main$17,
19293
- DiscountBadge: _sfc_main$16
19293
+ CustomBadge: _sfc_main$1a,
19294
+ TextBadge: _sfc_main$19,
19295
+ ImageBadge: _sfc_main$18,
19296
+ DiscountBadge: _sfc_main$17
19294
19297
  }
19295
19298
  };
19296
- const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19299
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19297
19300
  __name: "SearchResultsBadgeWrapper",
19298
19301
  props: {
19299
19302
  position: {},
@@ -19367,7 +19370,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19367
19370
  badge
19368
19371
  }, null, 8, ["badge"]);
19369
19372
  }), 128)),
19370
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
19373
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1b, {
19371
19374
  key: 0,
19372
19375
  options: _ctx.options
19373
19376
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19378,11 +19381,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19378
19381
  }));
19379
19382
  const _hoisted_1$Z = ["href"];
19380
19383
  const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19381
- const _hoisted_3$z = {
19384
+ const _hoisted_3$x = {
19382
19385
  key: 0,
19383
19386
  class: "lupa-search-box-product-add-to-cart-section"
19384
19387
  };
19385
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19388
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19386
19389
  __name: "SearchBoxProduct",
19387
19390
  props: {
19388
19391
  item: {},
@@ -19468,7 +19471,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19468
19471
  style: normalizeStyle(imageStyleOverride.value)
19469
19472
  }, [
19470
19473
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19471
- return openBlock(), createBlock(_sfc_main$1c, {
19474
+ return openBlock(), createBlock(_sfc_main$1d, {
19472
19475
  class: "lupa-search-box-product-element",
19473
19476
  item: _ctx.item,
19474
19477
  element,
@@ -19481,7 +19484,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19481
19484
  createBaseVNode("div", _hoisted_2$L, [
19482
19485
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19483
19486
  var _a;
19484
- return openBlock(), createBlock(_sfc_main$1c, {
19487
+ return openBlock(), createBlock(_sfc_main$1d, {
19485
19488
  key: element.key,
19486
19489
  class: "lupa-search-box-product-element",
19487
19490
  item: _ctx.item,
@@ -19492,7 +19495,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19492
19495
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19493
19496
  name: "badges",
19494
19497
  fn: withCtx(() => [
19495
- createVNode(_sfc_main$15, {
19498
+ createVNode(_sfc_main$16, {
19496
19499
  options: badgeOptions.value,
19497
19500
  position: "card"
19498
19501
  }, null, 8, ["options"])
@@ -19502,8 +19505,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19502
19505
  ]), 1032, ["item", "element", "labels", "link"]);
19503
19506
  }), 128))
19504
19507
  ]),
19505
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
19506
- createVNode(_sfc_main$1c, {
19508
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
19509
+ createVNode(_sfc_main$1d, {
19507
19510
  class: "lupa-search-box-product-element",
19508
19511
  item: _ctx.item,
19509
19512
  element: addToCartElement.value,
@@ -19585,7 +19588,7 @@ const useTrackingStore = defineStore("tracking", () => {
19585
19588
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19586
19589
  });
19587
19590
  const _hoisted_1$Y = { id: "lupa-search-box-products" };
19588
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19591
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19589
19592
  __name: "SearchBoxProducts",
19590
19593
  props: {
19591
19594
  items: {},
@@ -19665,7 +19668,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19665
19668
  itemClicked: handleProductClick
19666
19669
  });
19667
19670
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19668
- return openBlock(), createBlock(_sfc_main$14, {
19671
+ return openBlock(), createBlock(_sfc_main$15, {
19669
19672
  key: index,
19670
19673
  item,
19671
19674
  panelOptions: _ctx.panelOptions,
@@ -19682,7 +19685,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19682
19685
  });
19683
19686
  const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19684
19687
  const _hoisted_2$K = { key: 0 };
19685
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19688
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19686
19689
  __name: "SearchBoxProductsGoToResultsButton",
19687
19690
  props: {
19688
19691
  options: {},
@@ -19792,7 +19795,7 @@ const processExtractionObject = (value = {}) => {
19792
19795
  }
19793
19796
  return parsedObject;
19794
19797
  };
19795
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19798
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19796
19799
  __name: "SearchBoxProductsWrapper",
19797
19800
  props: {
19798
19801
  panel: {},
@@ -19857,7 +19860,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19857
19860
  watch(() => props.panel.limit, getItemsDebounced);
19858
19861
  return (_ctx, _cache) => {
19859
19862
  var _a, _b;
19860
- return openBlock(), createBlock(_sfc_main$13, {
19863
+ return openBlock(), createBlock(_sfc_main$14, {
19861
19864
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19862
19865
  panelOptions: _ctx.panel,
19863
19866
  labels: _ctx.labels,
@@ -19867,7 +19870,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19867
19870
  default: withCtx(() => {
19868
19871
  var _a2;
19869
19872
  return [
19870
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
19873
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$13, {
19871
19874
  key: 0,
19872
19875
  options: _ctx.searchBoxOptions,
19873
19876
  panel: _ctx.panel,
@@ -19888,7 +19891,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19888
19891
  };
19889
19892
  }
19890
19893
  });
19891
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19894
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19892
19895
  __name: "SearchBoxRelatedSourceWrapper",
19893
19896
  props: {
19894
19897
  panel: {},
@@ -19960,7 +19963,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19960
19963
  });
19961
19964
  return (_ctx, _cache) => {
19962
19965
  var _a, _b;
19963
- return openBlock(), createBlock(_sfc_main$13, {
19966
+ return openBlock(), createBlock(_sfc_main$14, {
19964
19967
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19965
19968
  panelOptions: documentPanelOptions.value,
19966
19969
  labels: _ctx.labels,
@@ -19983,11 +19986,11 @@ const _hoisted_1$W = {
19983
19986
  id: "lupa-search-box-panel"
19984
19987
  };
19985
19988
  const _hoisted_2$J = ["data-cy"];
19986
- const _hoisted_3$y = {
19989
+ const _hoisted_3$w = {
19987
19990
  key: 0,
19988
19991
  class: "lupa-panel-title lupa-panel-title-top-results"
19989
19992
  };
19990
- const _hoisted_4$p = {
19993
+ const _hoisted_4$o = {
19991
19994
  key: 1,
19992
19995
  class: "lupa-panel-title"
19993
19996
  };
@@ -19997,12 +20000,12 @@ const _hoisted_5$g = {
19997
20000
  };
19998
20001
  const __default__$2 = {
19999
20002
  components: {
20000
- SearchBoxSuggestionsWrapper: _sfc_main$1m,
20001
- SearchBoxProductsWrapper: _sfc_main$11,
20002
- SearchBoxRelatedSourceWrapper: _sfc_main$10
20003
+ SearchBoxSuggestionsWrapper: _sfc_main$1n,
20004
+ SearchBoxProductsWrapper: _sfc_main$12,
20005
+ SearchBoxRelatedSourceWrapper: _sfc_main$11
20003
20006
  }
20004
20007
  };
20005
- const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
20008
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
20006
20009
  __name: "SearchBoxMainPanel",
20007
20010
  props: {
20008
20011
  options: {},
@@ -20179,8 +20182,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20179
20182
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20180
20183
  "data-cy": "lupa-panel-" + panel.type + "-index"
20181
20184
  }, [
20182
- ((_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),
20183
- ((_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),
20185
+ ((_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),
20186
+ ((_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),
20184
20187
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
20185
20188
  key: 2,
20186
20189
  panel,
@@ -20205,18 +20208,18 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20205
20208
  ], 14, _hoisted_2$J);
20206
20209
  }), 128))
20207
20210
  ], 4),
20208
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
20211
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1q, {
20209
20212
  key: 1,
20210
20213
  labels: labels.value
20211
20214
  }, null, 8, ["labels"])) : createCommentVNode("", true),
20212
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
20215
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1t, {
20213
20216
  key: 2,
20214
20217
  labels: labels.value,
20215
20218
  options: _ctx.options,
20216
20219
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20217
20220
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
20218
20221
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
20219
- createVNode(_sfc_main$1q, {
20222
+ createVNode(_sfc_main$1r, {
20220
20223
  options: _ctx.options.history,
20221
20224
  history: history.value,
20222
20225
  onGoToResults: handleGoToResults,
@@ -20243,7 +20246,7 @@ const unbindSearchTriggers = (triggers = [], event) => {
20243
20246
  };
20244
20247
  const _hoisted_1$V = { id: "lupa-search-box" };
20245
20248
  const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
20246
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20249
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
20247
20250
  __name: "SearchBox",
20248
20251
  props: {
20249
20252
  options: {},
@@ -20513,7 +20516,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20513
20516
  var _a2;
20514
20517
  return openBlock(), createElementBlock("div", _hoisted_1$V, [
20515
20518
  createBaseVNode("div", _hoisted_2$I, [
20516
- createVNode(_sfc_main$1t, {
20519
+ createVNode(_sfc_main$1u, {
20517
20520
  options: inputOptions.value,
20518
20521
  suggestedValue: suggestedValue.value,
20519
20522
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20526,7 +20529,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20526
20529
  onSearch: handleSearch,
20527
20530
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20528
20531
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20529
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
20532
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$10, {
20530
20533
  key: 0,
20531
20534
  options: panelOptions.value,
20532
20535
  inputValue: inputValue.value,
@@ -20623,12 +20626,12 @@ const _hoisted_2$H = {
20623
20626
  key: 0,
20624
20627
  "data-cy": "suggested-search-text-label"
20625
20628
  };
20626
- const _hoisted_3$x = {
20629
+ const _hoisted_3$v = {
20627
20630
  key: 1,
20628
20631
  "data-cy": "did-you-mean-label"
20629
20632
  };
20630
- const _hoisted_4$o = { key: 1 };
20631
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20633
+ const _hoisted_4$n = { key: 1 };
20634
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20632
20635
  __name: "SearchResultsDidYouMean",
20633
20636
  props: {
20634
20637
  labels: {}
@@ -20670,7 +20673,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20670
20673
  ]);
20671
20674
  }), 128))
20672
20675
  ])) : createCommentVNode("", true),
20673
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
20676
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
20674
20677
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20675
20678
  return openBlock(), createElementBlock("span", { key: index }, [
20676
20679
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20678,7 +20681,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20678
20681
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20679
20682
  "data-cy": "did-you-mean-value",
20680
20683
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20681
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20684
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20682
20685
  ]);
20683
20686
  }), 128))
20684
20687
  ])) : createCommentVNode("", true)
@@ -20691,7 +20694,7 @@ const _hoisted_1$T = {
20691
20694
  class: "lupa-search-results-summary"
20692
20695
  };
20693
20696
  const _hoisted_2$G = ["innerHTML"];
20694
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20697
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20695
20698
  __name: "SearchResultsSummary",
20696
20699
  props: {
20697
20700
  label: {},
@@ -20724,13 +20727,13 @@ const _hoisted_1$S = {
20724
20727
  "data-cy": "lupa-result-page-title"
20725
20728
  };
20726
20729
  const _hoisted_2$F = { key: 0 };
20727
- const _hoisted_3$w = {
20730
+ const _hoisted_3$u = {
20728
20731
  key: 1,
20729
20732
  class: "lupa-results-total-count"
20730
20733
  };
20731
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20734
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20732
20735
  const _hoisted_5$f = ["innerHTML"];
20733
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
20736
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20734
20737
  __name: "SearchResultsTitle",
20735
20738
  props: {
20736
20739
  options: {},
@@ -20776,13 +20779,13 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20776
20779
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
20777
20780
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
20778
20781
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20779
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
20782
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
20780
20783
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20781
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20784
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20782
20785
  createTextVNode(")")
20783
20786
  ])) : createCommentVNode("", true)
20784
20787
  ])) : createCommentVNode("", true),
20785
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
20788
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Z, {
20786
20789
  key: 1,
20787
20790
  label: summaryLabel.value
20788
20791
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20795,16 +20798,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20795
20798
  };
20796
20799
  }
20797
20800
  });
20798
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
20799
- const _hoisted_2$E = {
20801
+ const _hoisted_1$R = {
20800
20802
  class: "lupa-current-filter-label",
20801
20803
  "data-cy": "lupa-current-filter-label"
20802
20804
  };
20803
- const _hoisted_3$v = {
20805
+ const _hoisted_2$E = {
20804
20806
  class: "lupa-current-filter-value",
20805
20807
  "data-cy": "lupa-current-filter-value"
20806
20808
  };
20807
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20809
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20808
20810
  __name: "CurrentFilterDisplay",
20809
20811
  props: {
20810
20812
  filter: {}
@@ -20812,18 +20814,23 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20812
20814
  emits: ["remove"],
20813
20815
  setup(__props, { emit: emit2 }) {
20814
20816
  const props = __props;
20817
+ const facetKeyClass = computed(() => {
20818
+ return `lupa-facet-active-filter-${props.filter.key}`;
20819
+ });
20815
20820
  const handleClick = () => {
20816
20821
  emit2("remove", { filter: props.filter });
20817
20822
  };
20818
20823
  return (_ctx, _cache) => {
20819
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
20824
+ return openBlock(), createElementBlock("div", {
20825
+ class: normalizeClass(["lupa-search-result-filter-value", { [facetKeyClass.value]: true }])
20826
+ }, [
20820
20827
  createBaseVNode("div", {
20821
20828
  class: "lupa-current-filter-action",
20822
20829
  onClick: handleClick
20823
20830
  }, "⨉"),
20824
- createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
20825
- createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
20826
- ]);
20831
+ createBaseVNode("div", _hoisted_1$R, toDisplayString(_ctx.filter.label) + ": ", 1),
20832
+ createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.value), 1)
20833
+ ], 2);
20827
20834
  };
20828
20835
  }
20829
20836
  });
@@ -20832,12 +20839,12 @@ const _hoisted_2$D = {
20832
20839
  key: 0,
20833
20840
  class: "lupa-filter-count"
20834
20841
  };
20835
- const _hoisted_3$u = {
20842
+ const _hoisted_3$t = {
20836
20843
  key: 0,
20837
20844
  class: "filter-values"
20838
20845
  };
20839
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
20840
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20846
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
20847
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20841
20848
  __name: "CurrentFilters",
20842
20849
  props: {
20843
20850
  options: {},
@@ -20919,10 +20926,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20919
20926
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20920
20927
  }, null, 2)) : createCommentVNode("", true)
20921
20928
  ]),
20922
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20923
- createBaseVNode("div", _hoisted_4$m, [
20929
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20930
+ createBaseVNode("div", _hoisted_4$l, [
20924
20931
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20925
- return openBlock(), createBlock(_sfc_main$W, {
20932
+ return openBlock(), createBlock(_sfc_main$X, {
20926
20933
  key: filter2.key + "_" + filter2.value,
20927
20934
  filter: filter2,
20928
20935
  onRemove: handleRemove
@@ -20940,7 +20947,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20940
20947
  }
20941
20948
  });
20942
20949
  const _hoisted_1$P = ["href"];
20943
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20950
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20944
20951
  __name: "CategoryFilterItem",
20945
20952
  props: {
20946
20953
  options: {},
@@ -20987,10 +20994,10 @@ const _hoisted_1$O = {
20987
20994
  "data-cy": "lupa-category-filter"
20988
20995
  };
20989
20996
  const _hoisted_2$C = { class: "lupa-category-back" };
20990
- const _hoisted_3$t = ["href"];
20991
- const _hoisted_4$l = ["href"];
20997
+ const _hoisted_3$s = ["href"];
20998
+ const _hoisted_4$k = ["href"];
20992
20999
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20993
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
21000
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20994
21001
  __name: "CategoryFilter",
20995
21002
  props: {
20996
21003
  options: {}
@@ -21085,7 +21092,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21085
21092
  "data-cy": "lupa-category-back",
21086
21093
  href: backUrlLink.value,
21087
21094
  onClick: handleNavigationBack
21088
- }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
21095
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
21089
21096
  ]),
21090
21097
  createBaseVNode("div", {
21091
21098
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -21095,11 +21102,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21095
21102
  href: parentUrlLink.value,
21096
21103
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
21097
21104
  onClick: handleNavigationParent
21098
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
21105
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
21099
21106
  ], 2),
21100
21107
  createBaseVNode("div", _hoisted_5$e, [
21101
21108
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
21102
- return openBlock(), createBlock(_sfc_main$U, {
21109
+ return openBlock(), createBlock(_sfc_main$V, {
21103
21110
  key: getCategoryKey(child),
21104
21111
  item: child,
21105
21112
  options: _ctx.options
@@ -21115,8 +21122,8 @@ const _hoisted_1$N = {
21115
21122
  "data-cy": "lupa-search-result-facet-term-values"
21116
21123
  };
21117
21124
  const _hoisted_2$B = ["placeholder"];
21118
- const _hoisted_3$s = { class: "lupa-terms-list" };
21119
- const _hoisted_4$k = ["onClick"];
21125
+ const _hoisted_3$r = { class: "lupa-terms-list" };
21126
+ const _hoisted_4$j = ["onClick"];
21120
21127
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
21121
21128
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
21122
21129
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -21126,7 +21133,7 @@ const _hoisted_8$2 = {
21126
21133
  };
21127
21134
  const _hoisted_9$2 = { key: 0 };
21128
21135
  const _hoisted_10$1 = { key: 1 };
21129
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
21136
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21130
21137
  __name: "TermFacet",
21131
21138
  props: {
21132
21139
  options: {},
@@ -21207,7 +21214,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
21207
21214
  }, null, 8, _hoisted_2$B)), [
21208
21215
  [vModelText, termFilter.value]
21209
21216
  ]) : createCommentVNode("", true),
21210
- createBaseVNode("div", _hoisted_3$s, [
21217
+ createBaseVNode("div", _hoisted_3$r, [
21211
21218
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
21212
21219
  return openBlock(), createElementBlock("div", {
21213
21220
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -21224,7 +21231,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
21224
21231
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
21225
21232
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
21226
21233
  ])
21227
- ], 10, _hoisted_4$k);
21234
+ ], 10, _hoisted_4$j);
21228
21235
  }), 128))
21229
21236
  ]),
21230
21237
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -22220,11 +22227,11 @@ const _hoisted_2$A = {
22220
22227
  key: 0,
22221
22228
  class: "lupa-stats-facet-summary"
22222
22229
  };
22223
- const _hoisted_3$r = {
22230
+ const _hoisted_3$q = {
22224
22231
  key: 1,
22225
22232
  class: "lupa-stats-facet-summary-input"
22226
22233
  };
22227
- const _hoisted_4$j = {
22234
+ const _hoisted_4$i = {
22228
22235
  key: 0,
22229
22236
  class: "lupa-stats-range-label"
22230
22237
  };
@@ -22243,7 +22250,7 @@ const _hoisted_13 = {
22243
22250
  key: 2,
22244
22251
  class: "lupa-stats-slider-wrapper"
22245
22252
  };
22246
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
22253
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
22247
22254
  __name: "StatsFacet",
22248
22255
  props: {
22249
22256
  options: {},
@@ -22421,9 +22428,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22421
22428
  };
22422
22429
  return (_ctx, _cache) => {
22423
22430
  return openBlock(), createElementBlock("div", _hoisted_1$M, [
22424
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
22431
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22425
22432
  createBaseVNode("div", null, [
22426
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22433
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22427
22434
  createBaseVNode("div", _hoisted_5$c, [
22428
22435
  withDirectives(createBaseVNode("input", {
22429
22436
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22489,8 +22496,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22489
22496
  });
22490
22497
  const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
22491
22498
  const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
22492
- const _hoisted_3$q = { class: "lupa-term-label" };
22493
- const _hoisted_4$i = {
22499
+ const _hoisted_3$p = { class: "lupa-term-label" };
22500
+ const _hoisted_4$h = {
22494
22501
  key: 0,
22495
22502
  class: "lupa-term-count"
22496
22503
  };
@@ -22498,7 +22505,7 @@ const _hoisted_5$b = {
22498
22505
  key: 0,
22499
22506
  class: "lupa-facet-level"
22500
22507
  };
22501
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22508
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22502
22509
  __name: "HierarchyFacetLevel",
22503
22510
  props: {
22504
22511
  options: {},
@@ -22550,8 +22557,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22550
22557
  }, null, 2)
22551
22558
  ]),
22552
22559
  createBaseVNode("div", _hoisted_2$z, [
22553
- createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22554
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22560
+ createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22561
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22555
22562
  ])
22556
22563
  ]),
22557
22564
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
@@ -22575,8 +22582,8 @@ const _hoisted_1$K = {
22575
22582
  "data-cy": "lupa-search-result-facet-term-values"
22576
22583
  };
22577
22584
  const _hoisted_2$y = { key: 0 };
22578
- const _hoisted_3$p = ["placeholder"];
22579
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
22585
+ const _hoisted_3$o = ["placeholder"];
22586
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22580
22587
  __name: "HierarchyFacet",
22581
22588
  props: {
22582
22589
  options: {},
@@ -22638,12 +22645,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22638
22645
  "data-cy": "lupa-term-filter",
22639
22646
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22640
22647
  placeholder: _ctx.options.labels.facetFilter
22641
- }, null, 8, _hoisted_3$p), [
22648
+ }, null, 8, _hoisted_3$o), [
22642
22649
  [vModelText, termFilter.value]
22643
22650
  ])
22644
22651
  ])) : createCommentVNode("", true),
22645
22652
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22646
- return openBlock(), createBlock(_sfc_main$Q, {
22653
+ return openBlock(), createBlock(_sfc_main$R, {
22647
22654
  key: item.title,
22648
22655
  options: _ctx.options,
22649
22656
  item,
@@ -22675,12 +22682,12 @@ const _hoisted_2$x = {
22675
22682
  };
22676
22683
  const __default__$1 = {
22677
22684
  components: {
22678
- TermFacet: _sfc_main$S,
22679
- StatsFacet: _sfc_main$R,
22680
- HierarchyFacet: _sfc_main$P
22685
+ TermFacet: _sfc_main$T,
22686
+ StatsFacet: _sfc_main$S,
22687
+ HierarchyFacet: _sfc_main$Q
22681
22688
  }
22682
22689
  };
22683
- const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22690
+ const _sfc_main$P = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22684
22691
  __name: "FacetDisplay",
22685
22692
  props: {
22686
22693
  options: {},
@@ -22737,6 +22744,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22737
22744
  var _a2;
22738
22745
  return ((_a2 = currentFilterKeys.value) != null ? _a2 : []).join(",");
22739
22746
  });
22747
+ const facetKeyClass = computed(() => {
22748
+ return `lupa-facet-${facet.value.key}`;
22749
+ });
22740
22750
  onMounted(() => {
22741
22751
  var _a2;
22742
22752
  if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
@@ -22788,7 +22798,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22788
22798
  "data-cy": "lupa-search-result-facet-display"
22789
22799
  }, [
22790
22800
  createBaseVNode("div", {
22791
- class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value }]),
22801
+ class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value, [facetKeyClass.value]: true }]),
22792
22802
  "data-cy": "lupa-search-result-facet-label",
22793
22803
  onClick: toggleFacet
22794
22804
  }, [
@@ -22820,7 +22830,7 @@ const _hoisted_2$w = {
22820
22830
  key: 0,
22821
22831
  class: "lupa-facets-title"
22822
22832
  };
22823
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
22833
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22824
22834
  __name: "FacetList",
22825
22835
  props: {
22826
22836
  options: {},
@@ -22861,7 +22871,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22861
22871
  }, [
22862
22872
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22863
22873
  var _a2;
22864
- return openBlock(), createBlock(_sfc_main$O, {
22874
+ return openBlock(), createBlock(_sfc_main$P, {
22865
22875
  key: facet.key,
22866
22876
  facet,
22867
22877
  currentFilters: currentFiltersValue.value,
@@ -22877,7 +22887,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22877
22887
  }
22878
22888
  });
22879
22889
  const _hoisted_1$H = ["onClick"];
22880
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22890
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22881
22891
  __name: "FacetsButton",
22882
22892
  props: {
22883
22893
  options: {}
@@ -22903,7 +22913,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22903
22913
  });
22904
22914
  const _hoisted_1$G = { class: "lupa-search-result-facets" };
22905
22915
  const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
22906
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22916
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22907
22917
  __name: "Facets",
22908
22918
  props: {
22909
22919
  options: {},
@@ -22987,7 +22997,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22987
22997
  };
22988
22998
  return (_ctx, _cache) => {
22989
22999
  return openBlock(), createElementBlock("div", _hoisted_1$G, [
22990
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
23000
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$O, {
22991
23001
  key: 0,
22992
23002
  options: _ctx.options,
22993
23003
  facets: regularFacets.value,
@@ -22998,7 +23008,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22998
23008
  onClear: clear2
22999
23009
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
23000
23010
  createBaseVNode("div", _hoisted_2$v, [
23001
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
23011
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$N, {
23002
23012
  key: 0,
23003
23013
  options: _ctx.options,
23004
23014
  onFilter: filter2
@@ -23009,10 +23019,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
23009
23019
  }
23010
23020
  });
23011
23021
  const _hoisted_1$F = {
23022
+ key: 0,
23012
23023
  id: "lupa-search-result-filters",
23013
23024
  class: "lupa-search-result-filters"
23014
23025
  };
23015
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
23026
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
23016
23027
  __name: "SearchResultsFilters",
23017
23028
  props: {
23018
23029
  options: {},
@@ -23033,6 +23044,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23033
23044
  const showCurrentFilters = computed(() => {
23034
23045
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
23035
23046
  });
23047
+ const visible = computed(() => {
23048
+ var _a;
23049
+ return (_a = props.options.visible) != null ? _a : true;
23050
+ });
23036
23051
  const filter2 = () => {
23037
23052
  emit2("filter");
23038
23053
  };
@@ -23045,24 +23060,24 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23045
23060
  __expose({ fetch: fetch2 });
23046
23061
  return (_ctx, _cache) => {
23047
23062
  var _a;
23048
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
23049
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
23063
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
23064
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$W, {
23050
23065
  key: 0,
23051
23066
  options: _ctx.options.currentFilters,
23052
23067
  expandable: (_a = _ctx.expandable) != null ? _a : false
23053
23068
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
23054
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
23069
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$U, {
23055
23070
  key: 1,
23056
23071
  options: _ctx.options.categories,
23057
23072
  ref_key: "categoryFilters",
23058
23073
  ref: categoryFilters
23059
23074
  }, null, 8, ["options"])) : createCommentVNode("", true),
23060
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23075
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23061
23076
  key: 2,
23062
23077
  options: _ctx.options.facets,
23063
23078
  onFilter: filter2
23064
23079
  }, null, 8, ["options"])) : createCommentVNode("", true)
23065
- ]);
23080
+ ])) : createCommentVNode("", true);
23066
23081
  };
23067
23082
  }
23068
23083
  });
@@ -23071,15 +23086,15 @@ const _hoisted_1$E = {
23071
23086
  class: "lupa-mobile-filter-sidebar"
23072
23087
  };
23073
23088
  const _hoisted_2$u = ["onClick"];
23074
- const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
23075
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
23089
+ const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
23090
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
23076
23091
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
23077
23092
  const _hoisted_6$6 = {
23078
23093
  key: 0,
23079
23094
  class: "lupa-sidebar-filter-count"
23080
23095
  };
23081
23096
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
23082
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
23097
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23083
23098
  __name: "MobileFilterSidebar",
23084
23099
  props: {
23085
23100
  options: {}
@@ -23115,8 +23130,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23115
23130
  class: "lupa-sidebar-close",
23116
23131
  onClick: withModifiers(handleMobileToggle, ["stop"])
23117
23132
  }, null, 8, _hoisted_2$u),
23118
- createBaseVNode("div", _hoisted_3$o, [
23119
- createBaseVNode("div", _hoisted_4$h, [
23133
+ createBaseVNode("div", _hoisted_3$n, [
23134
+ createBaseVNode("div", _hoisted_4$g, [
23120
23135
  createBaseVNode("div", _hoisted_5$a, [
23121
23136
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
23122
23137
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -23127,7 +23142,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23127
23142
  })
23128
23143
  ]),
23129
23144
  createBaseVNode("div", _hoisted_7$4, [
23130
- createVNode(_sfc_main$K, {
23145
+ createVNode(_sfc_main$L, {
23131
23146
  options: _ctx.options,
23132
23147
  expandable: isActiveFiltersExpanded.value,
23133
23148
  onFilter: filter2
@@ -23140,12 +23155,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23140
23155
  });
23141
23156
  const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
23142
23157
  const _hoisted_2$t = ["href", "onClick"];
23143
- const _hoisted_3$n = {
23158
+ const _hoisted_3$m = {
23144
23159
  key: 1,
23145
23160
  class: "lupa-search-results-breadcrumb-text"
23146
23161
  };
23147
- const _hoisted_4$g = { key: 2 };
23148
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
23162
+ const _hoisted_4$f = { key: 2 };
23163
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23149
23164
  __name: "SearchResultsBreadcrumbs",
23150
23165
  props: {
23151
23166
  breadcrumbs: {}
@@ -23172,6 +23187,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23172
23187
  return (_ctx, _cache) => {
23173
23188
  return openBlock(), createElementBlock("div", _hoisted_1$D, [
23174
23189
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
23190
+ var _a;
23175
23191
  return openBlock(), createElementBlock("span", {
23176
23192
  class: "lupa-search-results-breadcrumb",
23177
23193
  key: index
@@ -23181,11 +23197,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23181
23197
  class: "lupa-search-results-breadcrumb-link",
23182
23198
  href: breadcrumb.link,
23183
23199
  onClick: (e2) => {
23184
- var _a;
23185
- return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
23200
+ var _a2;
23201
+ return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
23186
23202
  }
23187
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
23188
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
23203
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
23204
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
23189
23205
  ]);
23190
23206
  }), 128))
23191
23207
  ]);
@@ -23193,35 +23209,41 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23193
23209
  }
23194
23210
  });
23195
23211
  const _hoisted_1$C = {
23212
+ key: 0,
23196
23213
  id: "lupa-search-result-filters",
23197
23214
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23198
23215
  };
23199
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
23216
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23200
23217
  __name: "FiltersTopDropdown",
23201
23218
  props: {
23202
23219
  options: {}
23203
23220
  },
23204
23221
  emits: ["filter"],
23205
23222
  setup(__props, { emit: emit2 }) {
23223
+ const props = __props;
23206
23224
  const filter2 = () => {
23207
23225
  emit2("filter");
23208
23226
  };
23227
+ const visible = computed(() => {
23228
+ var _a;
23229
+ return (_a = props.options.visible) != null ? _a : true;
23230
+ });
23209
23231
  return (_ctx, _cache) => {
23210
23232
  var _a;
23211
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
23212
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23233
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
23234
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23213
23235
  key: 0,
23214
23236
  options: _ctx.options.facets,
23215
23237
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
23216
23238
  clearable: true,
23217
23239
  onFilter: filter2
23218
23240
  }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
23219
- ]);
23241
+ ])) : createCommentVNode("", true);
23220
23242
  };
23221
23243
  }
23222
23244
  });
23223
23245
  const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
23224
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
23246
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23225
23247
  __name: "SearchResultsLayoutSelection",
23226
23248
  setup(__props) {
23227
23249
  const searchResultStore = useSearchResultStore();
@@ -23258,7 +23280,7 @@ const _hoisted_1$A = {
23258
23280
  key: 0,
23259
23281
  class: "lupa-mobile-toggle-filter-count"
23260
23282
  };
23261
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
23283
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23262
23284
  __name: "SearchResultsMobileToggle",
23263
23285
  props: {
23264
23286
  label: {},
@@ -23266,13 +23288,30 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23266
23288
  },
23267
23289
  setup(__props) {
23268
23290
  const searchResultStore = useSearchResultStore();
23269
- const { currentFilterCount } = storeToRefs(searchResultStore);
23291
+ const optionsStore = useOptionsStore();
23292
+ const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
23293
+ const { searchResultOptions } = storeToRefs(optionsStore);
23294
+ const disableMobileBodyScrollLock = computed(
23295
+ () => {
23296
+ var _a, _b, _c;
23297
+ return (_c = (_b = (_a = searchResultOptions.value.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.disableMobileBodyScrollLock) != null ? _c : false;
23298
+ }
23299
+ );
23300
+ const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
23270
23301
  const handleMobileToggle = () => {
23271
- searchResultStore.setSidebarState({ visible: true });
23302
+ searchResultStore.setSidebarState({
23303
+ visible: !isSidebarVisible.value,
23304
+ disableBodyScrolling: !disableMobileBodyScrollLock.value
23305
+ });
23272
23306
  };
23307
+ const hasActiveFilters = computed(() => currentFilterCount.value > 0);
23273
23308
  return (_ctx, _cache) => {
23274
23309
  return openBlock(), createElementBlock("div", {
23275
- class: normalizeClass(["lupa-mobile-toggle", { "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1 }]),
23310
+ class: normalizeClass(["lupa-mobile-toggle", {
23311
+ "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
23312
+ "lupa-mobile-toggle-has-filters": hasActiveFilters.value,
23313
+ "lupa-sidebar-open": isSidebarVisible.value
23314
+ }]),
23276
23315
  onClick: handleMobileToggle
23277
23316
  }, [
23278
23317
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
@@ -23281,6 +23320,26 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23281
23320
  };
23282
23321
  }
23283
23322
  });
23323
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23324
+ __name: "SearchResultsMobileFilterClose",
23325
+ props: {
23326
+ label: {}
23327
+ },
23328
+ setup(__props) {
23329
+ const searchResultStore = useSearchResultStore();
23330
+ const handleMobileToggle = () => {
23331
+ searchResultStore.setSidebarState({
23332
+ visible: false
23333
+ });
23334
+ };
23335
+ return (_ctx, _cache) => {
23336
+ return openBlock(), createElementBlock("div", {
23337
+ class: "lupa-mobile-filter-close-toggle",
23338
+ onClick: handleMobileToggle
23339
+ }, toDisplayString(_ctx.label), 1);
23340
+ };
23341
+ }
23342
+ });
23284
23343
  const _hoisted_1$z = {
23285
23344
  key: 0,
23286
23345
  id: "lupa-search-results-page-select",
@@ -23290,8 +23349,8 @@ const _hoisted_2$s = {
23290
23349
  key: 0,
23291
23350
  class: "lupa-page-number-separator"
23292
23351
  };
23293
- const _hoisted_3$m = ["onClick"];
23294
- const _hoisted_4$f = {
23352
+ const _hoisted_3$l = ["onClick"];
23353
+ const _hoisted_4$e = {
23295
23354
  key: 0,
23296
23355
  class: "lupa-page-number-separator"
23297
23356
  };
@@ -23394,10 +23453,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
23394
23453
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23395
23454
  ]),
23396
23455
  "data-cy": "lupa-page-number"
23397
- }, toDisplayString(page), 11, _hoisted_3$m);
23456
+ }, toDisplayString(page), 11, _hoisted_3$l);
23398
23457
  }), 128)),
23399
23458
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23400
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23459
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23401
23460
  createBaseVNode("div", {
23402
23461
  class: "lupa-page-number lupa-page-number-last",
23403
23462
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23421,8 +23480,8 @@ const _hoisted_1$y = {
23421
23480
  "data-cy": "lupa-search-results-page-size"
23422
23481
  };
23423
23482
  const _hoisted_2$r = { id: "lupa-select" };
23424
- const _hoisted_3$l = { class: "lupa-select-label" };
23425
- const _hoisted_4$e = ["aria-label"];
23483
+ const _hoisted_3$k = { class: "lupa-select-label" };
23484
+ const _hoisted_4$d = ["aria-label"];
23426
23485
  const _hoisted_5$9 = ["value"];
23427
23486
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
23428
23487
  __name: "SearchResultsPageSize",
@@ -23454,7 +23513,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23454
23513
  return (_ctx, _cache) => {
23455
23514
  return openBlock(), createElementBlock("div", _hoisted_1$y, [
23456
23515
  createBaseVNode("div", _hoisted_2$r, [
23457
- createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
23516
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23458
23517
  createBaseVNode("select", {
23459
23518
  class: "lupa-select-dropdown",
23460
23519
  "aria-label": label.value,
@@ -23469,7 +23528,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23469
23528
  value: option
23470
23529
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23471
23530
  }), 128))
23472
- ], 40, _hoisted_4$e)
23531
+ ], 40, _hoisted_4$d)
23473
23532
  ])
23474
23533
  ]);
23475
23534
  };
@@ -23480,8 +23539,8 @@ const _hoisted_1$x = {
23480
23539
  class: "lupa-search-results-sort"
23481
23540
  };
23482
23541
  const _hoisted_2$q = { id: "lupa-select" };
23483
- const _hoisted_3$k = { class: "lupa-select-label" };
23484
- const _hoisted_4$d = ["aria-label"];
23542
+ const _hoisted_3$j = { class: "lupa-select-label" };
23543
+ const _hoisted_4$c = ["aria-label"];
23485
23544
  const _hoisted_5$8 = ["value"];
23486
23545
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
23487
23546
  __name: "SearchResultsSort",
@@ -23534,7 +23593,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23534
23593
  return (_ctx, _cache) => {
23535
23594
  return openBlock(), createElementBlock("div", _hoisted_1$x, [
23536
23595
  createBaseVNode("div", _hoisted_2$q, [
23537
- createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
23596
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23538
23597
  withDirectives(createBaseVNode("select", {
23539
23598
  class: "lupa-select-dropdown",
23540
23599
  "aria-label": _ctx.options.label,
@@ -23549,7 +23608,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23549
23608
  value: option.key
23550
23609
  }, toDisplayString(option.label), 9, _hoisted_5$8);
23551
23610
  }), 128))
23552
- ], 40, _hoisted_4$d), [
23611
+ ], 40, _hoisted_4$c), [
23553
23612
  [vModelSelect, selectedKey.value]
23554
23613
  ])
23555
23614
  ])
@@ -23562,8 +23621,8 @@ const _hoisted_2$p = {
23562
23621
  key: 0,
23563
23622
  class: "lupa-toolbar-right-title"
23564
23623
  };
23565
- const _hoisted_3$j = { key: 2 };
23566
- const _hoisted_4$c = { key: 4 };
23624
+ const _hoisted_3$i = { key: 2 };
23625
+ const _hoisted_4$b = { key: 4 };
23567
23626
  const _hoisted_5$7 = { key: 6 };
23568
23627
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23569
23628
  const _hoisted_7$3 = {
@@ -23588,7 +23647,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23588
23647
  const searchResultStore = useSearchResultStore();
23589
23648
  const optionsStore = useOptionsStore();
23590
23649
  const { page, limit } = storeToRefs(paramStore);
23591
- const { hasAnyFilter, searchResult } = storeToRefs(searchResultStore);
23650
+ const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
23592
23651
  const { currentResolutionPageSizes } = storeToRefs(optionsStore);
23593
23652
  const isBottomLocation = computed(() => {
23594
23653
  return props.paginationLocation === "bottom";
@@ -23605,6 +23664,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23605
23664
  var _a;
23606
23665
  return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.layoutSelector);
23607
23666
  });
23667
+ const showFiltersCloseButton = computed(() => {
23668
+ var _a;
23669
+ return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.filtersCloseButton);
23670
+ });
23608
23671
  const sortOptions = computed(() => {
23609
23672
  var _a, _b;
23610
23673
  if (isBottomLocation.value || !((_a = optionsValue.value.sort) == null ? void 0 : _a.length)) {
@@ -23681,13 +23744,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23681
23744
  }, [
23682
23745
  createBaseVNode("div", _hoisted_1$w, [
23683
23746
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23684
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
23685
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
23747
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23748
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Z, {
23686
23749
  key: 3,
23687
23750
  label: searchSummaryLabel.value,
23688
23751
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23689
23752
  onClear: handleClearAll
23690
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23753
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23691
23754
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
23692
23755
  key: 5,
23693
23756
  options: paginationOptions.value.pageSelect,
@@ -23697,7 +23760,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23697
23760
  ]),
23698
23761
  createBaseVNode("div", _hoisted_6$5, [
23699
23762
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23700
- createVNode(_sfc_main$F, {
23763
+ createVNode(_sfc_main$G, {
23701
23764
  label: optionsValue.value.labels.mobileFilterButton,
23702
23765
  "show-filter-count": showMobileFilterCount.value
23703
23766
  }, null, 8, ["label", "show-filter-count"]),
@@ -23710,7 +23773,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23710
23773
  key: 3,
23711
23774
  options: sortOptions.value,
23712
23775
  callbacks: callbacks.value
23713
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
23776
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
23777
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$F, {
23778
+ key: 5,
23779
+ label: optionsValue.value.labels.mobileFilterCloseButton
23780
+ }, null, 8, ["label"])) : createCommentVNode("", true)
23714
23781
  ])
23715
23782
  ], 2);
23716
23783
  };
@@ -23724,7 +23791,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23724
23791
  },
23725
23792
  setup(__props) {
23726
23793
  return (_ctx, _cache) => {
23727
- return openBlock(), createBlock(_sfc_main$1l, {
23794
+ return openBlock(), createBlock(_sfc_main$1m, {
23728
23795
  item: _ctx.item,
23729
23796
  options: _ctx.options,
23730
23797
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23735,8 +23802,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23735
23802
  });
23736
23803
  const _hoisted_1$v = ["title", "innerHTML"];
23737
23804
  const _hoisted_2$o = ["title"];
23738
- const _hoisted_3$i = ["href", "innerHTML"];
23739
- const _hoisted_4$b = ["title"];
23805
+ const _hoisted_3$h = ["href", "innerHTML"];
23806
+ const _hoisted_4$a = ["title"];
23740
23807
  const _hoisted_5$6 = {
23741
23808
  key: 0,
23742
23809
  class: "lupa-search-results-product-title-text"
@@ -23790,7 +23857,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23790
23857
  class: "lupa-search-results-product-title-text lupa-title-link",
23791
23858
  innerHTML: sanitizedTitle.value,
23792
23859
  onClick: handleNavigation
23793
- }, null, 8, _hoisted_3$i)
23860
+ }, null, 8, _hoisted_3$h)
23794
23861
  ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
23795
23862
  key: 2,
23796
23863
  class: "lupa-search-results-product-title",
@@ -23804,7 +23871,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23804
23871
  class: "lupa-search-results-product-title-text lupa-title-link",
23805
23872
  onClick: handleNavigation
23806
23873
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23807
- ], 12, _hoisted_4$b));
23874
+ ], 12, _hoisted_4$a));
23808
23875
  };
23809
23876
  }
23810
23877
  });
@@ -23846,8 +23913,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23846
23913
  });
23847
23914
  const _hoisted_1$t = { id: "lupa-search-results-rating" };
23848
23915
  const _hoisted_2$n = { class: "lupa-ratings" };
23849
- const _hoisted_3$h = { class: "lupa-ratings-base" };
23850
- const _hoisted_4$a = ["innerHTML"];
23916
+ const _hoisted_3$g = { class: "lupa-ratings-base" };
23917
+ const _hoisted_4$9 = ["innerHTML"];
23851
23918
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23852
23919
  const _hoisted_6$3 = ["innerHTML"];
23853
23920
  const _hoisted_7$2 = ["href"];
@@ -23891,13 +23958,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23891
23958
  return (_ctx, _cache) => {
23892
23959
  return openBlock(), createElementBlock("div", _hoisted_1$t, [
23893
23960
  createBaseVNode("div", _hoisted_2$n, [
23894
- createBaseVNode("div", _hoisted_3$h, [
23961
+ createBaseVNode("div", _hoisted_3$g, [
23895
23962
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23896
23963
  return openBlock(), createElementBlock("div", {
23897
23964
  key: index,
23898
23965
  innerHTML: star,
23899
23966
  class: "lupa-rating lupa-rating-not-highlighted"
23900
- }, null, 8, _hoisted_4$a);
23967
+ }, null, 8, _hoisted_4$9);
23901
23968
  }), 128))
23902
23969
  ]),
23903
23970
  createBaseVNode("div", _hoisted_5$5, [
@@ -23981,7 +24048,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23981
24048
  });
23982
24049
  const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
23983
24050
  const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
23984
- const _hoisted_3$g = ["id", "disabled", "onClick"];
24051
+ const _hoisted_3$f = ["id", "disabled", "onClick"];
23985
24052
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
23986
24053
  __name: "SearchResultsProductAddToCart",
23987
24054
  props: {
@@ -24030,7 +24097,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
24030
24097
  disabled: !inStockValue.value || loading.value
24031
24098
  }, _ctx.dynamicAttributes, {
24032
24099
  onClick: withModifiers(handleClick, ["stop"])
24033
- }), toDisplayString(label.value), 17, _hoisted_3$g)
24100
+ }), toDisplayString(label.value), 17, _hoisted_3$f)
24034
24101
  ])
24035
24102
  ]);
24036
24103
  };
@@ -24038,8 +24105,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
24038
24105
  });
24039
24106
  const _hoisted_1$q = ["innerHTML"];
24040
24107
  const _hoisted_2$l = { key: 0 };
24041
- const _hoisted_3$f = { key: 1 };
24042
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
24108
+ const _hoisted_3$e = { key: 1 };
24109
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
24043
24110
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
24044
24111
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
24045
24112
  __name: "SearchResultsProductCustom",
@@ -24083,8 +24150,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
24083
24150
  key: 1,
24084
24151
  class: className.value
24085
24152
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24086
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
24087
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
24153
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
24154
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
24088
24155
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
24089
24156
  ]))
24090
24157
  ], 16));
@@ -24129,8 +24196,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
24129
24196
  });
24130
24197
  const _hoisted_1$o = { id: "lupa-search-results-rating" };
24131
24198
  const _hoisted_2$k = ["innerHTML"];
24132
- const _hoisted_3$e = { class: "lupa-ratings" };
24133
- const _hoisted_4$8 = ["href"];
24199
+ const _hoisted_3$d = { class: "lupa-ratings" };
24200
+ const _hoisted_4$7 = ["href"];
24134
24201
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
24135
24202
  __name: "SearchResultsProductSingleStarRating",
24136
24203
  props: {
@@ -24164,11 +24231,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
24164
24231
  innerHTML: star.value,
24165
24232
  class: "lupa-rating lupa-rating-highlighted"
24166
24233
  }, null, 8, _hoisted_2$k),
24167
- createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
24234
+ createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
24168
24235
  createBaseVNode("a", {
24169
24236
  href: ratingLink.value,
24170
24237
  class: "lupa-total-ratings"
24171
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
24238
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
24172
24239
  ]);
24173
24240
  };
24174
24241
  }
@@ -24271,11 +24338,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
24271
24338
  }));
24272
24339
  const _hoisted_1$n = ["onMouseup"];
24273
24340
  const _hoisted_2$j = ["href"];
24274
- const _hoisted_3$d = {
24341
+ const _hoisted_3$c = {
24275
24342
  key: 0,
24276
24343
  class: "lupa-out-of-stock"
24277
24344
  };
24278
- const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24345
+ const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
24279
24346
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
24280
24347
  __name: "SearchResultsProductCard",
24281
24348
  props: {
@@ -24284,7 +24351,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24284
24351
  isAdditionalPanel: { type: Boolean },
24285
24352
  clickTrackingSettings: {},
24286
24353
  lupaClickTrackingType: {},
24287
- sourceItemId: {}
24354
+ sourceItemId: {},
24355
+ analyticsMetadata: {}
24288
24356
  },
24289
24357
  setup(__props) {
24290
24358
  const props = __props;
@@ -24395,7 +24463,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24395
24463
  },
24396
24464
  options: { allowEmptySearchQuery: true },
24397
24465
  filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0,
24398
- sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0
24466
+ sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0,
24467
+ metadata: props.analyticsMetadata
24399
24468
  }
24400
24469
  };
24401
24470
  if (isDelayedClickTracking()) {
@@ -24439,7 +24508,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24439
24508
  onClick: handleClick,
24440
24509
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
24441
24510
  }), [
24442
- createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
24511
+ createVNode(_sfc_main$16, { options: badgesOptions.value }, null, 8, ["options"]),
24443
24512
  createBaseVNode("div", {
24444
24513
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24445
24514
  }, [
@@ -24460,14 +24529,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24460
24529
  onProductEvent: handleProductEvent
24461
24530
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24462
24531
  }), 128)),
24463
- createVNode(_sfc_main$15, {
24532
+ createVNode(_sfc_main$16, {
24464
24533
  options: badgesOptions.value,
24465
24534
  position: "image",
24466
24535
  class: "lupa-image-badges"
24467
24536
  }, null, 8, ["options"]),
24468
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24537
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24469
24538
  ], 8, _hoisted_2$j),
24470
- createBaseVNode("div", _hoisted_4$7, [
24539
+ createBaseVNode("div", _hoisted_4$6, [
24471
24540
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24472
24541
  return openBlock(), createBlock(_sfc_main$q, {
24473
24542
  class: "lupa-search-results-product-element",
@@ -24510,11 +24579,11 @@ const _hoisted_1$m = {
24510
24579
  "data-cy": "lupa-search-results-similar-queries"
24511
24580
  };
24512
24581
  const _hoisted_2$i = { class: "lupa-similar-queries-label" };
24513
- const _hoisted_3$c = {
24582
+ const _hoisted_3$b = {
24514
24583
  class: "lupa-similar-query-label",
24515
24584
  "data-cy": "lupa-similar-query-label"
24516
24585
  };
24517
- const _hoisted_4$6 = ["onClick"];
24586
+ const _hoisted_4$5 = ["onClick"];
24518
24587
  const _hoisted_5$3 = ["innerHTML"];
24519
24588
  const _hoisted_6$2 = { key: 0 };
24520
24589
  const _hoisted_7$1 = {
@@ -24550,12 +24619,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24550
24619
  }) => {
24551
24620
  paramsStore.goToResults({ searchText, facet });
24552
24621
  };
24622
+ const getClickMetadata = (similarQuery) => {
24623
+ var _a;
24624
+ const isRegularSimilarQuery = (_a = similarQuery.displayQuery) == null ? void 0 : _a.includes("<del>");
24625
+ return {
24626
+ _lupaEventSource: isRegularSimilarQuery ? "similarQueries" : "similarQueriesAI",
24627
+ _lupaUpdatedQuery: similarQuery.query
24628
+ };
24629
+ };
24553
24630
  return (_ctx, _cache) => {
24554
24631
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
24555
24632
  createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
24556
24633
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24557
24634
  return openBlock(), createElementBlock("div", { key: index }, [
24558
- createBaseVNode("div", _hoisted_3$c, [
24635
+ createBaseVNode("div", _hoisted_3$b, [
24559
24636
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24560
24637
  createBaseVNode("span", {
24561
24638
  id: "lupa-similar-query-text-component",
@@ -24567,7 +24644,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24567
24644
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24568
24645
  }, null, 8, _hoisted_5$3),
24569
24646
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24570
- ], 8, _hoisted_4$6)
24647
+ ], 8, _hoisted_4$5)
24571
24648
  ]),
24572
24649
  createBaseVNode("div", _hoisted_7$1, [
24573
24650
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24575,8 +24652,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24575
24652
  style: normalizeStyle(_ctx.columnSize),
24576
24653
  key: getDocumentKey(index2, product),
24577
24654
  product,
24578
- options: _ctx.productCardOptions
24579
- }, null, 8, ["style", "product", "options"]);
24655
+ options: _ctx.productCardOptions,
24656
+ "analytics-metadata": getClickMetadata(similarQuery)
24657
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24580
24658
  }), 128))
24581
24659
  ])
24582
24660
  ]);
@@ -24745,7 +24823,7 @@ const _hoisted_1$i = {
24745
24823
  "data-cy": "lupa-search-results-similar-results"
24746
24824
  };
24747
24825
  const _hoisted_2$f = { class: "lupa-similar-results-label" };
24748
- const _hoisted_3$b = {
24826
+ const _hoisted_3$a = {
24749
24827
  class: "lupa-products",
24750
24828
  "data-cy": "lupa-products"
24751
24829
  };
@@ -24764,17 +24842,23 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24764
24842
  const getDocumentKey = (index, product) => {
24765
24843
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24766
24844
  };
24845
+ const clickMetadata = computed(() => {
24846
+ return {
24847
+ _lupaEventSource: "similarResults"
24848
+ };
24849
+ });
24767
24850
  return (_ctx, _cache) => {
24768
24851
  return openBlock(), createElementBlock("div", _hoisted_1$i, [
24769
24852
  createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24770
- createBaseVNode("div", _hoisted_3$b, [
24853
+ createBaseVNode("div", _hoisted_3$a, [
24771
24854
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24772
24855
  return openBlock(), createBlock(_sfc_main$p, {
24773
24856
  style: normalizeStyle(_ctx.columnSize),
24774
24857
  key: getDocumentKey(index, product),
24775
24858
  product,
24776
- options: _ctx.productCardOptions
24777
- }, null, 8, ["style", "product", "options"]);
24859
+ options: _ctx.productCardOptions,
24860
+ "analytics-metadata": clickMetadata.value
24861
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24778
24862
  }), 128))
24779
24863
  ])
24780
24864
  ]);
@@ -24885,8 +24969,8 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
24885
24969
  });
24886
24970
  const _hoisted_1$h = { class: "lupa-related-query-item" };
24887
24971
  const _hoisted_2$e = { class: "lupa-related-query-image" };
24888
- const _hoisted_3$a = { class: "lupa-related-query-label" };
24889
- const _hoisted_4$5 = { class: "lupa-related-query-title" };
24972
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
24973
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
24890
24974
  const _hoisted_5$2 = {
24891
24975
  key: 0,
24892
24976
  class: "lupa-related-query-count"
@@ -24984,7 +25068,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24984
25068
  var _a;
24985
25069
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
24986
25070
  createBaseVNode("div", _hoisted_2$e, [
24987
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
25071
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1m, {
24988
25072
  key: 0,
24989
25073
  "wrapper-class": "lupa-related-query-image-wrapper",
24990
25074
  "image-class": "lupa-related-query-image",
@@ -24992,8 +25076,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24992
25076
  options: image.value
24993
25077
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24994
25078
  ]),
24995
- createBaseVNode("div", _hoisted_3$a, [
24996
- createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
25079
+ createBaseVNode("div", _hoisted_3$9, [
25080
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
24997
25081
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24998
25082
  ])
24999
25083
  ]);
@@ -25008,7 +25092,7 @@ const _hoisted_2$d = {
25008
25092
  key: 0,
25009
25093
  class: "lupa-related-queries-title"
25010
25094
  };
25011
- const _hoisted_3$9 = ["onClick"];
25095
+ const _hoisted_3$8 = ["onClick"];
25012
25096
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
25013
25097
  __name: "RelatedQueries",
25014
25098
  props: {
@@ -25113,7 +25197,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
25113
25197
  "existing-items-from-other-queries": allDisplayItems.value,
25114
25198
  onLoaded: (item) => processLoadedItem(query, item)
25115
25199
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
25116
- ], 8, _hoisted_3$9)
25200
+ ], 8, _hoisted_3$8)
25117
25201
  ], 2)), [
25118
25202
  [vShow, querySourceResultMap.value[query.value] !== false]
25119
25203
  ]);
@@ -25155,7 +25239,7 @@ const _hoisted_1$f = {
25155
25239
  class: "lupa-redirection-suggestion"
25156
25240
  };
25157
25241
  const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
25158
- const _hoisted_3$8 = ["href"];
25242
+ const _hoisted_3$7 = ["href"];
25159
25243
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
25160
25244
  __name: "RedirectionSuggestions",
25161
25245
  props: {
@@ -25181,7 +25265,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
25181
25265
  return (_ctx, _cache) => {
25182
25266
  return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
25183
25267
  createBaseVNode("h4", _hoisted_2$c, [
25184
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
25268
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
25185
25269
  ])
25186
25270
  ])) : createCommentVNode("", true);
25187
25271
  };
@@ -25192,12 +25276,12 @@ const _hoisted_2$b = {
25192
25276
  class: "lupa-products",
25193
25277
  "data-cy": "lupa-products"
25194
25278
  };
25195
- const _hoisted_3$7 = {
25279
+ const _hoisted_3$6 = {
25196
25280
  key: 1,
25197
25281
  class: "lupa-empty-results",
25198
25282
  "data-cy": "lupa-no-results-in-page"
25199
25283
  };
25200
- const _hoisted_4$4 = {
25284
+ const _hoisted_4$3 = {
25201
25285
  key: 4,
25202
25286
  class: "lupa-empty-results",
25203
25287
  "data-cy": "lupa-no-results"
@@ -25298,6 +25382,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25298
25382
  var _a, _b;
25299
25383
  return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
25300
25384
  });
25385
+ const clickMetadata = computed(() => {
25386
+ const hasDidYouMean = Boolean(searchResult.value.suggestedSearchText);
25387
+ return hasDidYouMean ? {
25388
+ _lupaEventSource: "didYouMean",
25389
+ _lupaUpdatedQuery: searchResult.value.suggestedSearchText
25390
+ } : void 0;
25391
+ });
25301
25392
  const getProductKeyAction = (index, product) => {
25302
25393
  return getProductKey(`${index}`, product, props.options.idKey);
25303
25394
  };
@@ -25329,7 +25420,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25329
25420
  options: _ctx.options.relatedQueries
25330
25421
  }, null, 8, ["options"])) : createCommentVNode("", true),
25331
25422
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25332
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25423
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
25333
25424
  key: 0,
25334
25425
  options: (_a = _ctx.options.filters) != null ? _a : {}
25335
25426
  }, null, 8, ["options"])) : createCommentVNode("", true),
@@ -25340,7 +25431,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25340
25431
  "pagination-location": "top",
25341
25432
  onFilter: filter2
25342
25433
  }, null, 8, ["options"])) : createCommentVNode("", true),
25343
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
25434
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$W, {
25344
25435
  key: 2,
25345
25436
  class: normalizeClass(currentFiltersClass.value),
25346
25437
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25354,7 +25445,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25354
25445
  options: _ctx.options,
25355
25446
  "pagination-location": "top"
25356
25447
  }, null, 8, ["options"]),
25357
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
25448
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$W, {
25358
25449
  key: 0,
25359
25450
  class: normalizeClass(currentFiltersClass.value),
25360
25451
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25374,11 +25465,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25374
25465
  style: normalizeStyle(columnSize.value),
25375
25466
  key: getProductKeyAction(index, product),
25376
25467
  product,
25377
- options: productCardOptions.value
25378
- }, null, 8, ["style", "product", "options"]);
25468
+ options: productCardOptions.value,
25469
+ "analytics-metadata": clickMetadata.value
25470
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
25379
25471
  }), 128))
25380
25472
  ]),
25381
- unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
25473
+ unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
25382
25474
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
25383
25475
  _ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
25384
25476
  key: 0,
@@ -25396,7 +25488,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25396
25488
  location: "bottom",
25397
25489
  sdkOptions: _ctx.options.options
25398
25490
  }, null, 8, ["options", "sdkOptions"])
25399
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
25491
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25400
25492
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
25401
25493
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
25402
25494
  ])) : createCommentVNode("", true),
@@ -25424,8 +25516,8 @@ const _hoisted_2$a = {
25424
25516
  key: 0,
25425
25517
  class: "lupa-category-back"
25426
25518
  };
25427
- const _hoisted_3$6 = ["href"];
25428
- const _hoisted_4$3 = {
25519
+ const _hoisted_3$5 = ["href"];
25520
+ const _hoisted_4$2 = {
25429
25521
  key: 1,
25430
25522
  class: "lupa-child-category-list"
25431
25523
  };
@@ -25483,11 +25575,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25483
25575
  "data-cy": "lupa-category-back",
25484
25576
  href: backUrlLink.value,
25485
25577
  onClick: handleNavigationBack
25486
- }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25578
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
25487
25579
  ])) : createCommentVNode("", true),
25488
- hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25580
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
25489
25581
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25490
- return openBlock(), createBlock(_sfc_main$U, {
25582
+ return openBlock(), createBlock(_sfc_main$V, {
25491
25583
  key: getCategoryKey(child),
25492
25584
  item: child,
25493
25585
  options: categoryOptions.value
@@ -25508,13 +25600,7 @@ const _hoisted_1$c = {
25508
25600
  key: 0,
25509
25601
  class: "lupa-container-title-summary-mobile"
25510
25602
  };
25511
- const _hoisted_2$9 = {
25512
- key: 4,
25513
- id: "lupa-search-results",
25514
- class: "top-layout-wrapper"
25515
- };
25516
- const _hoisted_3$5 = { class: "search-content" };
25517
- const _hoisted_4$2 = { id: "lupa-search-results" };
25603
+ const _hoisted_2$9 = { class: "search-content" };
25518
25604
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
25519
25605
  __name: "SearchResults",
25520
25606
  props: {
@@ -25540,7 +25626,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25540
25626
  var _a, _b;
25541
25627
  return (_b = (_a = props.initialFilters) != null ? _a : extractedInitialFilters.value) != null ? _b : {};
25542
25628
  });
25543
- const { currentQueryText, hasResults, currentFilterCount } = storeToRefs(searchResultStore);
25629
+ const { currentQueryText, hasResults, currentFilterCount, isMobileSidebarVisible, layout } = storeToRefs(searchResultStore);
25544
25630
  const { searchString, sortParams } = storeToRefs(paramStore);
25545
25631
  const { defaultSearchResultPageSize } = storeToRefs(optionStore);
25546
25632
  const searchResultsFilters = ref(null);
@@ -25556,6 +25642,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25556
25642
  const isTitleResultTopPosition = computed(() => {
25557
25643
  return props.options.searchTitlePosition === "search-results-top";
25558
25644
  });
25645
+ const indicatorClasses = computed(() => {
25646
+ return {
25647
+ "lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
25648
+ "lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
25649
+ "lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
25650
+ };
25651
+ });
25559
25652
  const handlePopState = () => {
25560
25653
  var _a;
25561
25654
  const searchParams = getSearchParams((_a = props.options.ssr) == null ? void 0 : _a.url);
@@ -25729,8 +25822,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25729
25822
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
25730
25823
  }, [
25731
25824
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25732
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25733
- createVNode(_sfc_main$X, {
25825
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25826
+ createVNode(_sfc_main$Y, {
25734
25827
  "show-summary": true,
25735
25828
  options: _ctx.options,
25736
25829
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -25740,26 +25833,30 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25740
25833
  key: 1,
25741
25834
  options: _ctx.options
25742
25835
  }, null, 8, ["options"])) : createCommentVNode("", true),
25743
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
25836
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
25744
25837
  key: 2,
25745
25838
  options: _ctx.options.filters,
25746
25839
  onFilter: handleParamsChange
25747
25840
  }, null, 8, ["options"])) : createCommentVNode("", true),
25748
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
25841
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
25749
25842
  key: 3,
25750
25843
  breadcrumbs: _ctx.options.breadcrumbs
25751
25844
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
25752
- isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
25753
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25845
+ isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
25846
+ key: 4,
25847
+ id: "lupa-search-results",
25848
+ class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
25849
+ }, [
25850
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25754
25851
  key: 0,
25755
25852
  options: (_b = _ctx.options.filters) != null ? _b : {},
25756
25853
  ref_key: "searchResultsFilters",
25757
25854
  ref: searchResultsFilters,
25758
25855
  onFilter: handleParamsChange
25759
25856
  }, null, 8, ["options"])) : createCommentVNode("", true),
25760
- createBaseVNode("div", _hoisted_3$5, [
25761
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25762
- createVNode(_sfc_main$X, {
25857
+ createBaseVNode("div", _hoisted_2$9, [
25858
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25859
+ createVNode(_sfc_main$Y, {
25763
25860
  options: _ctx.options,
25764
25861
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
25765
25862
  }, null, 8, ["options", "is-product-list"]),
@@ -25774,14 +25871,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25774
25871
  _: 3
25775
25872
  }, 8, ["options", "ssr"])
25776
25873
  ])
25777
- ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25778
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25779
- createVNode(_sfc_main$X, {
25874
+ ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25875
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25876
+ createVNode(_sfc_main$Y, {
25780
25877
  options: _ctx.options,
25781
25878
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25782
25879
  }, null, 8, ["options", "is-product-list"]),
25783
- createBaseVNode("div", _hoisted_4$2, [
25784
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25880
+ createBaseVNode("div", {
25881
+ id: "lupa-search-results",
25882
+ class: normalizeClass(indicatorClasses.value)
25883
+ }, [
25884
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25785
25885
  key: 0,
25786
25886
  options: (_e = _ctx.options.filters) != null ? _e : {},
25787
25887
  ref_key: "searchResultsFilters",
@@ -25806,7 +25906,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25806
25906
  key: "0"
25807
25907
  } : void 0
25808
25908
  ]), 1032, ["options", "ssr"])
25809
- ])
25909
+ ], 2)
25810
25910
  ], 64))
25811
25911
  ], 2);
25812
25912
  };
@@ -31415,7 +31515,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31415
31515
  onClick: withModifiers(innerClick, ["stop"])
31416
31516
  }, [
31417
31517
  createBaseVNode("div", _hoisted_2$7, [
31418
- createVNode(_sfc_main$_, {
31518
+ createVNode(_sfc_main$$, {
31419
31519
  options: fullSearchBoxOptions.value,
31420
31520
  "is-search-container": true,
31421
31521
  ref_key: "searchBox",
@@ -32945,7 +33045,7 @@ const _hoisted_4 = {
32945
33045
  key: 0,
32946
33046
  class: "lupasearch-chat-content"
32947
33047
  };
32948
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
33048
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
32949
33049
  __name: "ChatContainer",
32950
33050
  props: {
32951
33051
  options: {}
@@ -38963,7 +39063,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
38963
39063
  };
38964
39064
  __expose({ fetch: fetch2 });
38965
39065
  return (_ctx, _cache) => {
38966
- return openBlock(), createBlock(unref(_sfc_main$_), {
39066
+ return openBlock(), createBlock(unref(_sfc_main$$), {
38967
39067
  options: fullSearchBoxOptions.value,
38968
39068
  ref_key: "searchBox",
38969
39069
  ref: searchBox2
@@ -39518,7 +39618,7 @@ const chat = (options, mountOptions) => {
39518
39618
  const instance = createVue(
39519
39619
  options.displayOptions.containerSelector,
39520
39620
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
39521
- _sfc_main$1u,
39621
+ _sfc_main$1v,
39522
39622
  {
39523
39623
  options
39524
39624
  }