@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.
@@ -8699,8 +8699,8 @@ var __async = (__this, __arguments, generator) => {
8699
8699
  });
8700
8700
  const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
8701
8701
  const _hoisted_2$V = { class: "lupa-input-clear" };
8702
- const _hoisted_3$E = { id: "lupa-search-box-input" };
8703
- const _hoisted_4$t = ["value"];
8702
+ const _hoisted_3$C = { id: "lupa-search-box-input" };
8703
+ const _hoisted_4$s = ["value"];
8704
8704
  const _hoisted_5$j = ["aria-label", "placeholder"];
8705
8705
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8706
8706
  const _hoisted_7$7 = [
@@ -8710,7 +8710,7 @@ var __async = (__this, __arguments, generator) => {
8710
8710
  key: 0,
8711
8711
  class: "lupa-close-label"
8712
8712
  };
8713
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8713
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
8714
8714
  __name: "SearchBoxInput",
8715
8715
  props: {
8716
8716
  options: {},
@@ -8801,13 +8801,13 @@ var __async = (__this, __arguments, generator) => {
8801
8801
  onClick: clear2
8802
8802
  }, null, 2)
8803
8803
  ]),
8804
- createBaseVNode("div", _hoisted_3$E, [
8804
+ createBaseVNode("div", _hoisted_3$C, [
8805
8805
  createBaseVNode("input", {
8806
8806
  class: "lupa-hint",
8807
8807
  "aria-hidden": "true",
8808
8808
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8809
8809
  disabled: ""
8810
- }, null, 8, _hoisted_4$t),
8810
+ }, null, 8, _hoisted_4$s),
8811
8811
  withDirectives(createBaseVNode("input", mergeProps({
8812
8812
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8813
8813
  }, inputAttributes.value, {
@@ -8840,7 +8840,7 @@ var __async = (__this, __arguments, generator) => {
8840
8840
  };
8841
8841
  }
8842
8842
  });
8843
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8843
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8844
8844
  __name: "SearchBoxMoreResults",
8845
8845
  props: {
8846
8846
  labels: {},
@@ -8879,7 +8879,7 @@ var __async = (__this, __arguments, generator) => {
8879
8879
  });
8880
8880
  const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
8881
8881
  const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
8882
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8882
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8883
8883
  __name: "SearchBoxHistoryItem",
8884
8884
  props: {
8885
8885
  item: {},
@@ -8914,7 +8914,7 @@ var __async = (__this, __arguments, generator) => {
8914
8914
  key: 0,
8915
8915
  class: "lupa-search-box-history-panel"
8916
8916
  };
8917
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8917
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8918
8918
  __name: "SearchBoxHistoryPanel",
8919
8919
  props: {
8920
8920
  options: {}
@@ -8957,7 +8957,7 @@ var __async = (__this, __arguments, generator) => {
8957
8957
  return (_ctx, _cache) => {
8958
8958
  return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
8959
8959
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8960
- return openBlock(), createBlock(_sfc_main$1r, {
8960
+ return openBlock(), createBlock(_sfc_main$1s, {
8961
8961
  key: item,
8962
8962
  item,
8963
8963
  highlighted: index === highlightIndex.value,
@@ -8974,7 +8974,7 @@ var __async = (__this, __arguments, generator) => {
8974
8974
  }
8975
8975
  });
8976
8976
  const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
8977
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8977
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8978
8978
  __name: "SearchBoxNoResults",
8979
8979
  props: {
8980
8980
  labels: {}
@@ -9019,12 +9019,12 @@ var __async = (__this, __arguments, generator) => {
9019
9019
  "data-cy": "lupa-suggestion-value",
9020
9020
  class: "lupa-suggestion-value"
9021
9021
  };
9022
- const _hoisted_3$D = {
9022
+ const _hoisted_3$B = {
9023
9023
  key: 2,
9024
9024
  class: "lupa-suggestion-facet",
9025
9025
  "data-cy": "lupa-suggestion-facet"
9026
9026
  };
9027
- const _hoisted_4$s = {
9027
+ const _hoisted_4$r = {
9028
9028
  class: "lupa-suggestion-facet-label",
9029
9029
  "data-cy": "lupa-suggestion-facet-label"
9030
9030
  };
@@ -9032,7 +9032,7 @@ var __async = (__this, __arguments, generator) => {
9032
9032
  class: "lupa-suggestion-facet-value",
9033
9033
  "data-cy": "lupa-suggestion-facet-value"
9034
9034
  };
9035
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9035
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
9036
9036
  __name: "SearchBoxSuggestion",
9037
9037
  props: {
9038
9038
  suggestion: {},
@@ -9069,8 +9069,8 @@ var __async = (__this, __arguments, generator) => {
9069
9069
  "data-cy": "lupa-suggestion-value",
9070
9070
  innerHTML: _ctx.suggestion.displayHighlight
9071
9071
  }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
9072
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
9073
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
9072
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
9073
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
9074
9074
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
9075
9075
  ])) : createCommentVNode("", true)
9076
9076
  ]);
@@ -9081,7 +9081,7 @@ var __async = (__this, __arguments, generator) => {
9081
9081
  id: "lupa-search-box-suggestions",
9082
9082
  "data-cy": "lupa-search-box-suggestions"
9083
9083
  };
9084
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9084
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9085
9085
  __name: "SearchBoxSuggestions",
9086
9086
  props: {
9087
9087
  items: {},
@@ -9143,7 +9143,7 @@ var __async = (__this, __arguments, generator) => {
9143
9143
  return (_ctx, _cache) => {
9144
9144
  return openBlock(), createElementBlock("div", _hoisted_1$1c, [
9145
9145
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9146
- return openBlock(), createBlock(_sfc_main$1o, {
9146
+ return openBlock(), createBlock(_sfc_main$1p, {
9147
9147
  key: getSuggestionKey(item),
9148
9148
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9149
9149
  suggestion: item,
@@ -9171,7 +9171,7 @@ var __async = (__this, __arguments, generator) => {
9171
9171
  }, timeout);
9172
9172
  };
9173
9173
  };
9174
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9174
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9175
9175
  __name: "SearchBoxSuggestionsWrapper",
9176
9176
  props: {
9177
9177
  panel: {},
@@ -9213,7 +9213,7 @@ var __async = (__this, __arguments, generator) => {
9213
9213
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9214
9214
  watch(() => props.panel.limit, getSuggestionsDebounced);
9215
9215
  return (_ctx, _cache) => {
9216
- return openBlock(), createBlock(_sfc_main$1n, {
9216
+ return openBlock(), createBlock(_sfc_main$1o, {
9217
9217
  items: searchResult.value,
9218
9218
  highlight: _ctx.panel.highlight,
9219
9219
  queryKey: _ctx.panel.queryKey,
@@ -18304,7 +18304,7 @@ and ensure you are accounting for this risk.
18304
18304
  };
18305
18305
  const _hoisted_1$1b = ["src"];
18306
18306
  const _hoisted_2$S = ["src"];
18307
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18307
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
18308
18308
  __name: "ProductImage",
18309
18309
  props: {
18310
18310
  item: {},
@@ -18459,7 +18459,7 @@ and ensure you are accounting for this risk.
18459
18459
  };
18460
18460
  }
18461
18461
  });
18462
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18462
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18463
18463
  __name: "SearchBoxProductImage",
18464
18464
  props: {
18465
18465
  item: {},
@@ -18467,7 +18467,7 @@ and ensure you are accounting for this risk.
18467
18467
  },
18468
18468
  setup(__props) {
18469
18469
  return (_ctx, _cache) => {
18470
- return openBlock(), createBlock(_sfc_main$1l, {
18470
+ return openBlock(), createBlock(_sfc_main$1m, {
18471
18471
  item: _ctx.item,
18472
18472
  options: _ctx.options,
18473
18473
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18481,7 +18481,7 @@ and ensure you are accounting for this risk.
18481
18481
  key: 1,
18482
18482
  class: "lupa-search-box-product-title"
18483
18483
  };
18484
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18484
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18485
18485
  __name: "SearchBoxProductTitle",
18486
18486
  props: {
18487
18487
  item: {},
@@ -18515,7 +18515,7 @@ and ensure you are accounting for this risk.
18515
18515
  key: 1,
18516
18516
  class: "lupa-search-box-product-description"
18517
18517
  };
18518
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18518
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18519
18519
  __name: "SearchBoxProductDescription",
18520
18520
  props: {
18521
18521
  item: {},
@@ -18543,7 +18543,7 @@ and ensure you are accounting for this risk.
18543
18543
  }
18544
18544
  });
18545
18545
  const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
18546
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18546
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18547
18547
  __name: "SearchBoxProductPrice",
18548
18548
  props: {
18549
18549
  item: {},
@@ -18567,7 +18567,7 @@ and ensure you are accounting for this risk.
18567
18567
  };
18568
18568
  }
18569
18569
  });
18570
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18570
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18571
18571
  __name: "SearchBoxProductRegularPrice",
18572
18572
  props: {
18573
18573
  item: {},
@@ -18596,10 +18596,10 @@ and ensure you are accounting for this risk.
18596
18596
  });
18597
18597
  const _hoisted_1$17 = ["innerHTML"];
18598
18598
  const _hoisted_2$P = { key: 0 };
18599
- const _hoisted_3$C = { key: 1 };
18600
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18599
+ const _hoisted_3$A = { key: 1 };
18600
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18601
18601
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18602
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18602
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18603
18603
  __name: "SearchBoxProductCustom",
18604
18604
  props: {
18605
18605
  item: {},
@@ -18629,8 +18629,8 @@ and ensure you are accounting for this risk.
18629
18629
  key: 1,
18630
18630
  class: [className.value, "lupa-search-box-product-custom"]
18631
18631
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18632
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
18633
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18632
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
18633
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18634
18634
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18635
18635
  ]))
18636
18636
  ], 16));
@@ -18638,7 +18638,7 @@ and ensure you are accounting for this risk.
18638
18638
  }
18639
18639
  });
18640
18640
  const _hoisted_1$16 = ["innerHTML"];
18641
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18641
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18642
18642
  __name: "SearchBoxProductCustomHtml",
18643
18643
  props: {
18644
18644
  item: {},
@@ -18784,8 +18784,11 @@ and ensure you are accounting for this risk.
18784
18784
  return hasResults.value && ((_a = searchResult.value.offset) != null ? _a : 0) >= totalItems.value;
18785
18785
  }
18786
18786
  );
18787
- const setSidebarState = ({ visible }) => {
18788
- if (visible) {
18787
+ const setSidebarState = ({
18788
+ visible,
18789
+ disableBodyScrolling = true
18790
+ }) => {
18791
+ if (visible && disableBodyScrolling) {
18789
18792
  disableBodyScroll();
18790
18793
  } else {
18791
18794
  enableBodyScroll();
@@ -18899,8 +18902,8 @@ and ensure you are accounting for this risk.
18899
18902
  });
18900
18903
  const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
18901
18904
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
18902
- const _hoisted_3$B = ["onClick", "disabled"];
18903
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18905
+ const _hoisted_3$z = ["onClick", "disabled"];
18906
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18904
18907
  __name: "SearchBoxProductAddToCart",
18905
18908
  props: {
18906
18909
  item: {},
@@ -18942,7 +18945,7 @@ and ensure you are accounting for this risk.
18942
18945
  "data-cy": "lupa-add-to-cart",
18943
18946
  type: "button",
18944
18947
  disabled: !inStockValue.value || loading.value
18945
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$B)
18948
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$z)
18946
18949
  ])
18947
18950
  ]);
18948
18951
  };
@@ -18954,17 +18957,17 @@ and ensure you are accounting for this risk.
18954
18957
  };
18955
18958
  const __default__$4 = {
18956
18959
  components: {
18957
- SearchBoxProductImage: _sfc_main$1k,
18958
- SearchBoxProductTitle: _sfc_main$1j,
18959
- SearchBoxProductDescription: _sfc_main$1i,
18960
- SearchBoxProductPrice: _sfc_main$1h,
18961
- SearchBoxProductRegularPrice: _sfc_main$1g,
18962
- SearchBoxProductCustom: _sfc_main$1f,
18963
- SearchBoxProductCustomHtml: _sfc_main$1e,
18964
- SearchBoxProductAddToCart: _sfc_main$1d
18960
+ SearchBoxProductImage: _sfc_main$1l,
18961
+ SearchBoxProductTitle: _sfc_main$1k,
18962
+ SearchBoxProductDescription: _sfc_main$1j,
18963
+ SearchBoxProductPrice: _sfc_main$1i,
18964
+ SearchBoxProductRegularPrice: _sfc_main$1h,
18965
+ SearchBoxProductCustom: _sfc_main$1g,
18966
+ SearchBoxProductCustomHtml: _sfc_main$1f,
18967
+ SearchBoxProductAddToCart: _sfc_main$1e
18965
18968
  }
18966
18969
  };
18967
- const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18970
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18968
18971
  __name: "SearchBoxProductElement",
18969
18972
  props: {
18970
18973
  item: {},
@@ -19050,12 +19053,12 @@ and ensure you are accounting for this risk.
19050
19053
  }));
19051
19054
  const _hoisted_1$13 = { class: "lupa-badge-title" };
19052
19055
  const _hoisted_2$N = ["src"];
19053
- const _hoisted_3$A = { key: 1 };
19054
- const _hoisted_4$q = {
19056
+ const _hoisted_3$y = { key: 1 };
19057
+ const _hoisted_4$p = {
19055
19058
  key: 0,
19056
19059
  class: "lupa-badge-full-text"
19057
19060
  };
19058
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19061
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
19059
19062
  __name: "SearchResultGeneratedBadge",
19060
19063
  props: {
19061
19064
  options: {},
@@ -19093,15 +19096,15 @@ and ensure you are accounting for this risk.
19093
19096
  key: 0,
19094
19097
  src: image.value
19095
19098
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
19096
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19099
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19097
19100
  ]),
19098
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19101
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19099
19102
  ], 6);
19100
19103
  };
19101
19104
  }
19102
19105
  });
19103
19106
  const _hoisted_1$12 = { class: "lupa-generated-badges" };
19104
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19107
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19105
19108
  __name: "SearchResultGeneratedBadges",
19106
19109
  props: {
19107
19110
  options: {}
@@ -19129,7 +19132,7 @@ and ensure you are accounting for this risk.
19129
19132
  return (_ctx, _cache) => {
19130
19133
  return openBlock(), createElementBlock("div", _hoisted_1$12, [
19131
19134
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19132
- return openBlock(), createBlock(_sfc_main$1b, {
19135
+ return openBlock(), createBlock(_sfc_main$1c, {
19133
19136
  key: badge.id,
19134
19137
  badge,
19135
19138
  options: _ctx.options
@@ -19140,7 +19143,7 @@ and ensure you are accounting for this risk.
19140
19143
  }
19141
19144
  });
19142
19145
  const _hoisted_1$11 = ["innerHTML"];
19143
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19146
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19144
19147
  __name: "CustomBadge",
19145
19148
  props: {
19146
19149
  badge: {}
@@ -19166,7 +19169,7 @@ and ensure you are accounting for this risk.
19166
19169
  }
19167
19170
  });
19168
19171
  const _hoisted_1$10 = { class: "lupa-text-badges" };
19169
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19172
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19170
19173
  __name: "TextBadge",
19171
19174
  props: {
19172
19175
  badge: {}
@@ -19193,7 +19196,7 @@ and ensure you are accounting for this risk.
19193
19196
  });
19194
19197
  const _hoisted_1$$ = { class: "lupa-image-badges" };
19195
19198
  const _hoisted_2$M = ["src"];
19196
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19199
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19197
19200
  __name: "ImageBadge",
19198
19201
  props: {
19199
19202
  badge: {}
@@ -19228,7 +19231,7 @@ and ensure you are accounting for this risk.
19228
19231
  };
19229
19232
  }
19230
19233
  });
19231
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19234
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19232
19235
  __name: "DiscountBadge",
19233
19236
  props: {
19234
19237
  badge: {}
@@ -19289,13 +19292,13 @@ and ensure you are accounting for this risk.
19289
19292
  const _hoisted_1$_ = { id: "lupa-search-results-badges" };
19290
19293
  const __default__$3 = {
19291
19294
  components: {
19292
- CustomBadge: _sfc_main$19,
19293
- TextBadge: _sfc_main$18,
19294
- ImageBadge: _sfc_main$17,
19295
- DiscountBadge: _sfc_main$16
19295
+ CustomBadge: _sfc_main$1a,
19296
+ TextBadge: _sfc_main$19,
19297
+ ImageBadge: _sfc_main$18,
19298
+ DiscountBadge: _sfc_main$17
19296
19299
  }
19297
19300
  };
19298
- const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19301
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19299
19302
  __name: "SearchResultsBadgeWrapper",
19300
19303
  props: {
19301
19304
  position: {},
@@ -19369,7 +19372,7 @@ and ensure you are accounting for this risk.
19369
19372
  badge
19370
19373
  }, null, 8, ["badge"]);
19371
19374
  }), 128)),
19372
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
19375
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1b, {
19373
19376
  key: 0,
19374
19377
  options: _ctx.options
19375
19378
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19380,11 +19383,11 @@ and ensure you are accounting for this risk.
19380
19383
  }));
19381
19384
  const _hoisted_1$Z = ["href"];
19382
19385
  const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19383
- const _hoisted_3$z = {
19386
+ const _hoisted_3$x = {
19384
19387
  key: 0,
19385
19388
  class: "lupa-search-box-product-add-to-cart-section"
19386
19389
  };
19387
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19390
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19388
19391
  __name: "SearchBoxProduct",
19389
19392
  props: {
19390
19393
  item: {},
@@ -19470,7 +19473,7 @@ and ensure you are accounting for this risk.
19470
19473
  style: normalizeStyle(imageStyleOverride.value)
19471
19474
  }, [
19472
19475
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19473
- return openBlock(), createBlock(_sfc_main$1c, {
19476
+ return openBlock(), createBlock(_sfc_main$1d, {
19474
19477
  class: "lupa-search-box-product-element",
19475
19478
  item: _ctx.item,
19476
19479
  element,
@@ -19483,7 +19486,7 @@ and ensure you are accounting for this risk.
19483
19486
  createBaseVNode("div", _hoisted_2$L, [
19484
19487
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19485
19488
  var _a;
19486
- return openBlock(), createBlock(_sfc_main$1c, {
19489
+ return openBlock(), createBlock(_sfc_main$1d, {
19487
19490
  key: element.key,
19488
19491
  class: "lupa-search-box-product-element",
19489
19492
  item: _ctx.item,
@@ -19494,7 +19497,7 @@ and ensure you are accounting for this risk.
19494
19497
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19495
19498
  name: "badges",
19496
19499
  fn: withCtx(() => [
19497
- createVNode(_sfc_main$15, {
19500
+ createVNode(_sfc_main$16, {
19498
19501
  options: badgeOptions.value,
19499
19502
  position: "card"
19500
19503
  }, null, 8, ["options"])
@@ -19504,8 +19507,8 @@ and ensure you are accounting for this risk.
19504
19507
  ]), 1032, ["item", "element", "labels", "link"]);
19505
19508
  }), 128))
19506
19509
  ]),
19507
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
19508
- createVNode(_sfc_main$1c, {
19510
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
19511
+ createVNode(_sfc_main$1d, {
19509
19512
  class: "lupa-search-box-product-element",
19510
19513
  item: _ctx.item,
19511
19514
  element: addToCartElement.value,
@@ -19587,7 +19590,7 @@ and ensure you are accounting for this risk.
19587
19590
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19588
19591
  });
19589
19592
  const _hoisted_1$Y = { id: "lupa-search-box-products" };
19590
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19593
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19591
19594
  __name: "SearchBoxProducts",
19592
19595
  props: {
19593
19596
  items: {},
@@ -19667,7 +19670,7 @@ and ensure you are accounting for this risk.
19667
19670
  itemClicked: handleProductClick
19668
19671
  });
19669
19672
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19670
- return openBlock(), createBlock(_sfc_main$14, {
19673
+ return openBlock(), createBlock(_sfc_main$15, {
19671
19674
  key: index,
19672
19675
  item,
19673
19676
  panelOptions: _ctx.panelOptions,
@@ -19684,7 +19687,7 @@ and ensure you are accounting for this risk.
19684
19687
  });
19685
19688
  const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19686
19689
  const _hoisted_2$K = { key: 0 };
19687
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19690
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19688
19691
  __name: "SearchBoxProductsGoToResultsButton",
19689
19692
  props: {
19690
19693
  options: {},
@@ -19794,7 +19797,7 @@ and ensure you are accounting for this risk.
19794
19797
  }
19795
19798
  return parsedObject;
19796
19799
  };
19797
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19800
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19798
19801
  __name: "SearchBoxProductsWrapper",
19799
19802
  props: {
19800
19803
  panel: {},
@@ -19859,7 +19862,7 @@ and ensure you are accounting for this risk.
19859
19862
  watch(() => props.panel.limit, getItemsDebounced);
19860
19863
  return (_ctx, _cache) => {
19861
19864
  var _a, _b;
19862
- return openBlock(), createBlock(_sfc_main$13, {
19865
+ return openBlock(), createBlock(_sfc_main$14, {
19863
19866
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19864
19867
  panelOptions: _ctx.panel,
19865
19868
  labels: _ctx.labels,
@@ -19869,7 +19872,7 @@ and ensure you are accounting for this risk.
19869
19872
  default: withCtx(() => {
19870
19873
  var _a2;
19871
19874
  return [
19872
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
19875
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$13, {
19873
19876
  key: 0,
19874
19877
  options: _ctx.searchBoxOptions,
19875
19878
  panel: _ctx.panel,
@@ -19890,7 +19893,7 @@ and ensure you are accounting for this risk.
19890
19893
  };
19891
19894
  }
19892
19895
  });
19893
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19896
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19894
19897
  __name: "SearchBoxRelatedSourceWrapper",
19895
19898
  props: {
19896
19899
  panel: {},
@@ -19962,7 +19965,7 @@ and ensure you are accounting for this risk.
19962
19965
  });
19963
19966
  return (_ctx, _cache) => {
19964
19967
  var _a, _b;
19965
- return openBlock(), createBlock(_sfc_main$13, {
19968
+ return openBlock(), createBlock(_sfc_main$14, {
19966
19969
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19967
19970
  panelOptions: documentPanelOptions.value,
19968
19971
  labels: _ctx.labels,
@@ -19985,11 +19988,11 @@ and ensure you are accounting for this risk.
19985
19988
  id: "lupa-search-box-panel"
19986
19989
  };
19987
19990
  const _hoisted_2$J = ["data-cy"];
19988
- const _hoisted_3$y = {
19991
+ const _hoisted_3$w = {
19989
19992
  key: 0,
19990
19993
  class: "lupa-panel-title lupa-panel-title-top-results"
19991
19994
  };
19992
- const _hoisted_4$p = {
19995
+ const _hoisted_4$o = {
19993
19996
  key: 1,
19994
19997
  class: "lupa-panel-title"
19995
19998
  };
@@ -19999,12 +20002,12 @@ and ensure you are accounting for this risk.
19999
20002
  };
20000
20003
  const __default__$2 = {
20001
20004
  components: {
20002
- SearchBoxSuggestionsWrapper: _sfc_main$1m,
20003
- SearchBoxProductsWrapper: _sfc_main$11,
20004
- SearchBoxRelatedSourceWrapper: _sfc_main$10
20005
+ SearchBoxSuggestionsWrapper: _sfc_main$1n,
20006
+ SearchBoxProductsWrapper: _sfc_main$12,
20007
+ SearchBoxRelatedSourceWrapper: _sfc_main$11
20005
20008
  }
20006
20009
  };
20007
- const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
20010
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
20008
20011
  __name: "SearchBoxMainPanel",
20009
20012
  props: {
20010
20013
  options: {},
@@ -20181,8 +20184,8 @@ and ensure you are accounting for this risk.
20181
20184
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20182
20185
  "data-cy": "lupa-panel-" + panel.type + "-index"
20183
20186
  }, [
20184
- ((_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),
20185
- ((_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),
20187
+ ((_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),
20188
+ ((_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),
20186
20189
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
20187
20190
  key: 2,
20188
20191
  panel,
@@ -20207,18 +20210,18 @@ and ensure you are accounting for this risk.
20207
20210
  ], 14, _hoisted_2$J);
20208
20211
  }), 128))
20209
20212
  ], 4),
20210
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
20213
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1q, {
20211
20214
  key: 1,
20212
20215
  labels: labels.value
20213
20216
  }, null, 8, ["labels"])) : createCommentVNode("", true),
20214
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
20217
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1t, {
20215
20218
  key: 2,
20216
20219
  labels: labels.value,
20217
20220
  options: _ctx.options,
20218
20221
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20219
20222
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
20220
20223
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
20221
- createVNode(_sfc_main$1q, {
20224
+ createVNode(_sfc_main$1r, {
20222
20225
  options: _ctx.options.history,
20223
20226
  history: history.value,
20224
20227
  onGoToResults: handleGoToResults,
@@ -20245,7 +20248,7 @@ and ensure you are accounting for this risk.
20245
20248
  };
20246
20249
  const _hoisted_1$V = { id: "lupa-search-box" };
20247
20250
  const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
20248
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20251
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
20249
20252
  __name: "SearchBox",
20250
20253
  props: {
20251
20254
  options: {},
@@ -20515,7 +20518,7 @@ and ensure you are accounting for this risk.
20515
20518
  var _a2;
20516
20519
  return openBlock(), createElementBlock("div", _hoisted_1$V, [
20517
20520
  createBaseVNode("div", _hoisted_2$I, [
20518
- createVNode(_sfc_main$1t, {
20521
+ createVNode(_sfc_main$1u, {
20519
20522
  options: inputOptions.value,
20520
20523
  suggestedValue: suggestedValue.value,
20521
20524
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20528,7 +20531,7 @@ and ensure you are accounting for this risk.
20528
20531
  onSearch: handleSearch,
20529
20532
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20530
20533
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20531
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
20534
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$10, {
20532
20535
  key: 0,
20533
20536
  options: panelOptions.value,
20534
20537
  inputValue: inputValue.value,
@@ -20625,12 +20628,12 @@ and ensure you are accounting for this risk.
20625
20628
  key: 0,
20626
20629
  "data-cy": "suggested-search-text-label"
20627
20630
  };
20628
- const _hoisted_3$x = {
20631
+ const _hoisted_3$v = {
20629
20632
  key: 1,
20630
20633
  "data-cy": "did-you-mean-label"
20631
20634
  };
20632
- const _hoisted_4$o = { key: 1 };
20633
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20635
+ const _hoisted_4$n = { key: 1 };
20636
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20634
20637
  __name: "SearchResultsDidYouMean",
20635
20638
  props: {
20636
20639
  labels: {}
@@ -20672,7 +20675,7 @@ and ensure you are accounting for this risk.
20672
20675
  ]);
20673
20676
  }), 128))
20674
20677
  ])) : createCommentVNode("", true),
20675
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
20678
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
20676
20679
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20677
20680
  return openBlock(), createElementBlock("span", { key: index }, [
20678
20681
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20680,7 +20683,7 @@ and ensure you are accounting for this risk.
20680
20683
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20681
20684
  "data-cy": "did-you-mean-value",
20682
20685
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20683
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20686
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20684
20687
  ]);
20685
20688
  }), 128))
20686
20689
  ])) : createCommentVNode("", true)
@@ -20693,7 +20696,7 @@ and ensure you are accounting for this risk.
20693
20696
  class: "lupa-search-results-summary"
20694
20697
  };
20695
20698
  const _hoisted_2$G = ["innerHTML"];
20696
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20699
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20697
20700
  __name: "SearchResultsSummary",
20698
20701
  props: {
20699
20702
  label: {},
@@ -20726,13 +20729,13 @@ and ensure you are accounting for this risk.
20726
20729
  "data-cy": "lupa-result-page-title"
20727
20730
  };
20728
20731
  const _hoisted_2$F = { key: 0 };
20729
- const _hoisted_3$w = {
20732
+ const _hoisted_3$u = {
20730
20733
  key: 1,
20731
20734
  class: "lupa-results-total-count"
20732
20735
  };
20733
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20736
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20734
20737
  const _hoisted_5$f = ["innerHTML"];
20735
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
20738
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20736
20739
  __name: "SearchResultsTitle",
20737
20740
  props: {
20738
20741
  options: {},
@@ -20778,13 +20781,13 @@ and ensure you are accounting for this risk.
20778
20781
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
20779
20782
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
20780
20783
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20781
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
20784
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
20782
20785
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20783
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20786
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20784
20787
  createTextVNode(")")
20785
20788
  ])) : createCommentVNode("", true)
20786
20789
  ])) : createCommentVNode("", true),
20787
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
20790
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Z, {
20788
20791
  key: 1,
20789
20792
  label: summaryLabel.value
20790
20793
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20797,16 +20800,15 @@ and ensure you are accounting for this risk.
20797
20800
  };
20798
20801
  }
20799
20802
  });
20800
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
20801
- const _hoisted_2$E = {
20803
+ const _hoisted_1$R = {
20802
20804
  class: "lupa-current-filter-label",
20803
20805
  "data-cy": "lupa-current-filter-label"
20804
20806
  };
20805
- const _hoisted_3$v = {
20807
+ const _hoisted_2$E = {
20806
20808
  class: "lupa-current-filter-value",
20807
20809
  "data-cy": "lupa-current-filter-value"
20808
20810
  };
20809
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20811
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20810
20812
  __name: "CurrentFilterDisplay",
20811
20813
  props: {
20812
20814
  filter: {}
@@ -20814,18 +20816,23 @@ and ensure you are accounting for this risk.
20814
20816
  emits: ["remove"],
20815
20817
  setup(__props, { emit: emit2 }) {
20816
20818
  const props = __props;
20819
+ const facetKeyClass = computed(() => {
20820
+ return `lupa-facet-active-filter-${props.filter.key}`;
20821
+ });
20817
20822
  const handleClick = () => {
20818
20823
  emit2("remove", { filter: props.filter });
20819
20824
  };
20820
20825
  return (_ctx, _cache) => {
20821
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
20826
+ return openBlock(), createElementBlock("div", {
20827
+ class: normalizeClass(["lupa-search-result-filter-value", { [facetKeyClass.value]: true }])
20828
+ }, [
20822
20829
  createBaseVNode("div", {
20823
20830
  class: "lupa-current-filter-action",
20824
20831
  onClick: handleClick
20825
20832
  }, "⨉"),
20826
- createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
20827
- createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
20828
- ]);
20833
+ createBaseVNode("div", _hoisted_1$R, toDisplayString(_ctx.filter.label) + ": ", 1),
20834
+ createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.value), 1)
20835
+ ], 2);
20829
20836
  };
20830
20837
  }
20831
20838
  });
@@ -20834,12 +20841,12 @@ and ensure you are accounting for this risk.
20834
20841
  key: 0,
20835
20842
  class: "lupa-filter-count"
20836
20843
  };
20837
- const _hoisted_3$u = {
20844
+ const _hoisted_3$t = {
20838
20845
  key: 0,
20839
20846
  class: "filter-values"
20840
20847
  };
20841
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
20842
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20848
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
20849
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20843
20850
  __name: "CurrentFilters",
20844
20851
  props: {
20845
20852
  options: {},
@@ -20921,10 +20928,10 @@ and ensure you are accounting for this risk.
20921
20928
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20922
20929
  }, null, 2)) : createCommentVNode("", true)
20923
20930
  ]),
20924
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20925
- createBaseVNode("div", _hoisted_4$m, [
20931
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20932
+ createBaseVNode("div", _hoisted_4$l, [
20926
20933
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20927
- return openBlock(), createBlock(_sfc_main$W, {
20934
+ return openBlock(), createBlock(_sfc_main$X, {
20928
20935
  key: filter2.key + "_" + filter2.value,
20929
20936
  filter: filter2,
20930
20937
  onRemove: handleRemove
@@ -20942,7 +20949,7 @@ and ensure you are accounting for this risk.
20942
20949
  }
20943
20950
  });
20944
20951
  const _hoisted_1$P = ["href"];
20945
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20952
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20946
20953
  __name: "CategoryFilterItem",
20947
20954
  props: {
20948
20955
  options: {},
@@ -20989,10 +20996,10 @@ and ensure you are accounting for this risk.
20989
20996
  "data-cy": "lupa-category-filter"
20990
20997
  };
20991
20998
  const _hoisted_2$C = { class: "lupa-category-back" };
20992
- const _hoisted_3$t = ["href"];
20993
- const _hoisted_4$l = ["href"];
20999
+ const _hoisted_3$s = ["href"];
21000
+ const _hoisted_4$k = ["href"];
20994
21001
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20995
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
21002
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20996
21003
  __name: "CategoryFilter",
20997
21004
  props: {
20998
21005
  options: {}
@@ -21087,7 +21094,7 @@ and ensure you are accounting for this risk.
21087
21094
  "data-cy": "lupa-category-back",
21088
21095
  href: backUrlLink.value,
21089
21096
  onClick: handleNavigationBack
21090
- }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
21097
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
21091
21098
  ]),
21092
21099
  createBaseVNode("div", {
21093
21100
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -21097,11 +21104,11 @@ and ensure you are accounting for this risk.
21097
21104
  href: parentUrlLink.value,
21098
21105
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
21099
21106
  onClick: handleNavigationParent
21100
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
21107
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
21101
21108
  ], 2),
21102
21109
  createBaseVNode("div", _hoisted_5$e, [
21103
21110
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
21104
- return openBlock(), createBlock(_sfc_main$U, {
21111
+ return openBlock(), createBlock(_sfc_main$V, {
21105
21112
  key: getCategoryKey(child),
21106
21113
  item: child,
21107
21114
  options: _ctx.options
@@ -21117,8 +21124,8 @@ and ensure you are accounting for this risk.
21117
21124
  "data-cy": "lupa-search-result-facet-term-values"
21118
21125
  };
21119
21126
  const _hoisted_2$B = ["placeholder"];
21120
- const _hoisted_3$s = { class: "lupa-terms-list" };
21121
- const _hoisted_4$k = ["onClick"];
21127
+ const _hoisted_3$r = { class: "lupa-terms-list" };
21128
+ const _hoisted_4$j = ["onClick"];
21122
21129
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
21123
21130
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
21124
21131
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -21128,7 +21135,7 @@ and ensure you are accounting for this risk.
21128
21135
  };
21129
21136
  const _hoisted_9$2 = { key: 0 };
21130
21137
  const _hoisted_10$1 = { key: 1 };
21131
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
21138
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21132
21139
  __name: "TermFacet",
21133
21140
  props: {
21134
21141
  options: {},
@@ -21209,7 +21216,7 @@ and ensure you are accounting for this risk.
21209
21216
  }, null, 8, _hoisted_2$B)), [
21210
21217
  [vModelText, termFilter.value]
21211
21218
  ]) : createCommentVNode("", true),
21212
- createBaseVNode("div", _hoisted_3$s, [
21219
+ createBaseVNode("div", _hoisted_3$r, [
21213
21220
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
21214
21221
  return openBlock(), createElementBlock("div", {
21215
21222
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -21226,7 +21233,7 @@ and ensure you are accounting for this risk.
21226
21233
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
21227
21234
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
21228
21235
  ])
21229
- ], 10, _hoisted_4$k);
21236
+ ], 10, _hoisted_4$j);
21230
21237
  }), 128))
21231
21238
  ]),
21232
21239
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -22222,11 +22229,11 @@ and ensure you are accounting for this risk.
22222
22229
  key: 0,
22223
22230
  class: "lupa-stats-facet-summary"
22224
22231
  };
22225
- const _hoisted_3$r = {
22232
+ const _hoisted_3$q = {
22226
22233
  key: 1,
22227
22234
  class: "lupa-stats-facet-summary-input"
22228
22235
  };
22229
- const _hoisted_4$j = {
22236
+ const _hoisted_4$i = {
22230
22237
  key: 0,
22231
22238
  class: "lupa-stats-range-label"
22232
22239
  };
@@ -22245,7 +22252,7 @@ and ensure you are accounting for this risk.
22245
22252
  key: 2,
22246
22253
  class: "lupa-stats-slider-wrapper"
22247
22254
  };
22248
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
22255
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
22249
22256
  __name: "StatsFacet",
22250
22257
  props: {
22251
22258
  options: {},
@@ -22423,9 +22430,9 @@ and ensure you are accounting for this risk.
22423
22430
  };
22424
22431
  return (_ctx, _cache) => {
22425
22432
  return openBlock(), createElementBlock("div", _hoisted_1$M, [
22426
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
22433
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22427
22434
  createBaseVNode("div", null, [
22428
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22435
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22429
22436
  createBaseVNode("div", _hoisted_5$c, [
22430
22437
  withDirectives(createBaseVNode("input", {
22431
22438
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22491,8 +22498,8 @@ and ensure you are accounting for this risk.
22491
22498
  });
22492
22499
  const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
22493
22500
  const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
22494
- const _hoisted_3$q = { class: "lupa-term-label" };
22495
- const _hoisted_4$i = {
22501
+ const _hoisted_3$p = { class: "lupa-term-label" };
22502
+ const _hoisted_4$h = {
22496
22503
  key: 0,
22497
22504
  class: "lupa-term-count"
22498
22505
  };
@@ -22500,7 +22507,7 @@ and ensure you are accounting for this risk.
22500
22507
  key: 0,
22501
22508
  class: "lupa-facet-level"
22502
22509
  };
22503
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22510
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22504
22511
  __name: "HierarchyFacetLevel",
22505
22512
  props: {
22506
22513
  options: {},
@@ -22552,8 +22559,8 @@ and ensure you are accounting for this risk.
22552
22559
  }, null, 2)
22553
22560
  ]),
22554
22561
  createBaseVNode("div", _hoisted_2$z, [
22555
- createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22556
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22562
+ createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22563
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22557
22564
  ])
22558
22565
  ]),
22559
22566
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
@@ -22577,8 +22584,8 @@ and ensure you are accounting for this risk.
22577
22584
  "data-cy": "lupa-search-result-facet-term-values"
22578
22585
  };
22579
22586
  const _hoisted_2$y = { key: 0 };
22580
- const _hoisted_3$p = ["placeholder"];
22581
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
22587
+ const _hoisted_3$o = ["placeholder"];
22588
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22582
22589
  __name: "HierarchyFacet",
22583
22590
  props: {
22584
22591
  options: {},
@@ -22640,12 +22647,12 @@ and ensure you are accounting for this risk.
22640
22647
  "data-cy": "lupa-term-filter",
22641
22648
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22642
22649
  placeholder: _ctx.options.labels.facetFilter
22643
- }, null, 8, _hoisted_3$p), [
22650
+ }, null, 8, _hoisted_3$o), [
22644
22651
  [vModelText, termFilter.value]
22645
22652
  ])
22646
22653
  ])) : createCommentVNode("", true),
22647
22654
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22648
- return openBlock(), createBlock(_sfc_main$Q, {
22655
+ return openBlock(), createBlock(_sfc_main$R, {
22649
22656
  key: item.title,
22650
22657
  options: _ctx.options,
22651
22658
  item,
@@ -22677,12 +22684,12 @@ and ensure you are accounting for this risk.
22677
22684
  };
22678
22685
  const __default__$1 = {
22679
22686
  components: {
22680
- TermFacet: _sfc_main$S,
22681
- StatsFacet: _sfc_main$R,
22682
- HierarchyFacet: _sfc_main$P
22687
+ TermFacet: _sfc_main$T,
22688
+ StatsFacet: _sfc_main$S,
22689
+ HierarchyFacet: _sfc_main$Q
22683
22690
  }
22684
22691
  };
22685
- const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22692
+ const _sfc_main$P = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22686
22693
  __name: "FacetDisplay",
22687
22694
  props: {
22688
22695
  options: {},
@@ -22739,6 +22746,9 @@ and ensure you are accounting for this risk.
22739
22746
  var _a2;
22740
22747
  return ((_a2 = currentFilterKeys.value) != null ? _a2 : []).join(",");
22741
22748
  });
22749
+ const facetKeyClass = computed(() => {
22750
+ return `lupa-facet-${facet.value.key}`;
22751
+ });
22742
22752
  onMounted(() => {
22743
22753
  var _a2;
22744
22754
  if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
@@ -22790,7 +22800,7 @@ and ensure you are accounting for this risk.
22790
22800
  "data-cy": "lupa-search-result-facet-display"
22791
22801
  }, [
22792
22802
  createBaseVNode("div", {
22793
- class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value }]),
22803
+ class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value, [facetKeyClass.value]: true }]),
22794
22804
  "data-cy": "lupa-search-result-facet-label",
22795
22805
  onClick: toggleFacet
22796
22806
  }, [
@@ -22822,7 +22832,7 @@ and ensure you are accounting for this risk.
22822
22832
  key: 0,
22823
22833
  class: "lupa-facets-title"
22824
22834
  };
22825
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
22835
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22826
22836
  __name: "FacetList",
22827
22837
  props: {
22828
22838
  options: {},
@@ -22863,7 +22873,7 @@ and ensure you are accounting for this risk.
22863
22873
  }, [
22864
22874
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22865
22875
  var _a2;
22866
- return openBlock(), createBlock(_sfc_main$O, {
22876
+ return openBlock(), createBlock(_sfc_main$P, {
22867
22877
  key: facet.key,
22868
22878
  facet,
22869
22879
  currentFilters: currentFiltersValue.value,
@@ -22879,7 +22889,7 @@ and ensure you are accounting for this risk.
22879
22889
  }
22880
22890
  });
22881
22891
  const _hoisted_1$H = ["onClick"];
22882
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22892
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22883
22893
  __name: "FacetsButton",
22884
22894
  props: {
22885
22895
  options: {}
@@ -22905,7 +22915,7 @@ and ensure you are accounting for this risk.
22905
22915
  });
22906
22916
  const _hoisted_1$G = { class: "lupa-search-result-facets" };
22907
22917
  const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
22908
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22918
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22909
22919
  __name: "Facets",
22910
22920
  props: {
22911
22921
  options: {},
@@ -22989,7 +22999,7 @@ and ensure you are accounting for this risk.
22989
22999
  };
22990
23000
  return (_ctx, _cache) => {
22991
23001
  return openBlock(), createElementBlock("div", _hoisted_1$G, [
22992
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
23002
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$O, {
22993
23003
  key: 0,
22994
23004
  options: _ctx.options,
22995
23005
  facets: regularFacets.value,
@@ -23000,7 +23010,7 @@ and ensure you are accounting for this risk.
23000
23010
  onClear: clear2
23001
23011
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
23002
23012
  createBaseVNode("div", _hoisted_2$v, [
23003
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
23013
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$N, {
23004
23014
  key: 0,
23005
23015
  options: _ctx.options,
23006
23016
  onFilter: filter2
@@ -23011,10 +23021,11 @@ and ensure you are accounting for this risk.
23011
23021
  }
23012
23022
  });
23013
23023
  const _hoisted_1$F = {
23024
+ key: 0,
23014
23025
  id: "lupa-search-result-filters",
23015
23026
  class: "lupa-search-result-filters"
23016
23027
  };
23017
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
23028
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
23018
23029
  __name: "SearchResultsFilters",
23019
23030
  props: {
23020
23031
  options: {},
@@ -23035,6 +23046,10 @@ and ensure you are accounting for this risk.
23035
23046
  const showCurrentFilters = computed(() => {
23036
23047
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
23037
23048
  });
23049
+ const visible = computed(() => {
23050
+ var _a;
23051
+ return (_a = props.options.visible) != null ? _a : true;
23052
+ });
23038
23053
  const filter2 = () => {
23039
23054
  emit2("filter");
23040
23055
  };
@@ -23047,24 +23062,24 @@ and ensure you are accounting for this risk.
23047
23062
  __expose({ fetch: fetch2 });
23048
23063
  return (_ctx, _cache) => {
23049
23064
  var _a;
23050
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
23051
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
23065
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
23066
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$W, {
23052
23067
  key: 0,
23053
23068
  options: _ctx.options.currentFilters,
23054
23069
  expandable: (_a = _ctx.expandable) != null ? _a : false
23055
23070
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
23056
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
23071
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$U, {
23057
23072
  key: 1,
23058
23073
  options: _ctx.options.categories,
23059
23074
  ref_key: "categoryFilters",
23060
23075
  ref: categoryFilters
23061
23076
  }, null, 8, ["options"])) : createCommentVNode("", true),
23062
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23077
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23063
23078
  key: 2,
23064
23079
  options: _ctx.options.facets,
23065
23080
  onFilter: filter2
23066
23081
  }, null, 8, ["options"])) : createCommentVNode("", true)
23067
- ]);
23082
+ ])) : createCommentVNode("", true);
23068
23083
  };
23069
23084
  }
23070
23085
  });
@@ -23073,15 +23088,15 @@ and ensure you are accounting for this risk.
23073
23088
  class: "lupa-mobile-filter-sidebar"
23074
23089
  };
23075
23090
  const _hoisted_2$u = ["onClick"];
23076
- const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
23077
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
23091
+ const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
23092
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
23078
23093
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
23079
23094
  const _hoisted_6$6 = {
23080
23095
  key: 0,
23081
23096
  class: "lupa-sidebar-filter-count"
23082
23097
  };
23083
23098
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
23084
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
23099
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23085
23100
  __name: "MobileFilterSidebar",
23086
23101
  props: {
23087
23102
  options: {}
@@ -23117,8 +23132,8 @@ and ensure you are accounting for this risk.
23117
23132
  class: "lupa-sidebar-close",
23118
23133
  onClick: withModifiers(handleMobileToggle, ["stop"])
23119
23134
  }, null, 8, _hoisted_2$u),
23120
- createBaseVNode("div", _hoisted_3$o, [
23121
- createBaseVNode("div", _hoisted_4$h, [
23135
+ createBaseVNode("div", _hoisted_3$n, [
23136
+ createBaseVNode("div", _hoisted_4$g, [
23122
23137
  createBaseVNode("div", _hoisted_5$a, [
23123
23138
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
23124
23139
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -23129,7 +23144,7 @@ and ensure you are accounting for this risk.
23129
23144
  })
23130
23145
  ]),
23131
23146
  createBaseVNode("div", _hoisted_7$4, [
23132
- createVNode(_sfc_main$K, {
23147
+ createVNode(_sfc_main$L, {
23133
23148
  options: _ctx.options,
23134
23149
  expandable: isActiveFiltersExpanded.value,
23135
23150
  onFilter: filter2
@@ -23142,12 +23157,12 @@ and ensure you are accounting for this risk.
23142
23157
  });
23143
23158
  const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
23144
23159
  const _hoisted_2$t = ["href", "onClick"];
23145
- const _hoisted_3$n = {
23160
+ const _hoisted_3$m = {
23146
23161
  key: 1,
23147
23162
  class: "lupa-search-results-breadcrumb-text"
23148
23163
  };
23149
- const _hoisted_4$g = { key: 2 };
23150
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
23164
+ const _hoisted_4$f = { key: 2 };
23165
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23151
23166
  __name: "SearchResultsBreadcrumbs",
23152
23167
  props: {
23153
23168
  breadcrumbs: {}
@@ -23174,6 +23189,7 @@ and ensure you are accounting for this risk.
23174
23189
  return (_ctx, _cache) => {
23175
23190
  return openBlock(), createElementBlock("div", _hoisted_1$D, [
23176
23191
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
23192
+ var _a;
23177
23193
  return openBlock(), createElementBlock("span", {
23178
23194
  class: "lupa-search-results-breadcrumb",
23179
23195
  key: index
@@ -23183,11 +23199,11 @@ and ensure you are accounting for this risk.
23183
23199
  class: "lupa-search-results-breadcrumb-link",
23184
23200
  href: breadcrumb.link,
23185
23201
  onClick: (e2) => {
23186
- var _a;
23187
- return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
23202
+ var _a2;
23203
+ return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
23188
23204
  }
23189
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
23190
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
23205
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
23206
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
23191
23207
  ]);
23192
23208
  }), 128))
23193
23209
  ]);
@@ -23195,35 +23211,41 @@ and ensure you are accounting for this risk.
23195
23211
  }
23196
23212
  });
23197
23213
  const _hoisted_1$C = {
23214
+ key: 0,
23198
23215
  id: "lupa-search-result-filters",
23199
23216
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23200
23217
  };
23201
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
23218
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23202
23219
  __name: "FiltersTopDropdown",
23203
23220
  props: {
23204
23221
  options: {}
23205
23222
  },
23206
23223
  emits: ["filter"],
23207
23224
  setup(__props, { emit: emit2 }) {
23225
+ const props = __props;
23208
23226
  const filter2 = () => {
23209
23227
  emit2("filter");
23210
23228
  };
23229
+ const visible = computed(() => {
23230
+ var _a;
23231
+ return (_a = props.options.visible) != null ? _a : true;
23232
+ });
23211
23233
  return (_ctx, _cache) => {
23212
23234
  var _a;
23213
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
23214
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23235
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
23236
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23215
23237
  key: 0,
23216
23238
  options: _ctx.options.facets,
23217
23239
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
23218
23240
  clearable: true,
23219
23241
  onFilter: filter2
23220
23242
  }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
23221
- ]);
23243
+ ])) : createCommentVNode("", true);
23222
23244
  };
23223
23245
  }
23224
23246
  });
23225
23247
  const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
23226
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
23248
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23227
23249
  __name: "SearchResultsLayoutSelection",
23228
23250
  setup(__props) {
23229
23251
  const searchResultStore = useSearchResultStore();
@@ -23260,7 +23282,7 @@ and ensure you are accounting for this risk.
23260
23282
  key: 0,
23261
23283
  class: "lupa-mobile-toggle-filter-count"
23262
23284
  };
23263
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
23285
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23264
23286
  __name: "SearchResultsMobileToggle",
23265
23287
  props: {
23266
23288
  label: {},
@@ -23268,13 +23290,30 @@ and ensure you are accounting for this risk.
23268
23290
  },
23269
23291
  setup(__props) {
23270
23292
  const searchResultStore = useSearchResultStore();
23271
- const { currentFilterCount } = storeToRefs(searchResultStore);
23293
+ const optionsStore = useOptionsStore();
23294
+ const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
23295
+ const { searchResultOptions } = storeToRefs(optionsStore);
23296
+ const disableMobileBodyScrollLock = computed(
23297
+ () => {
23298
+ var _a, _b, _c;
23299
+ return (_c = (_b = (_a = searchResultOptions.value.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.disableMobileBodyScrollLock) != null ? _c : false;
23300
+ }
23301
+ );
23302
+ const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
23272
23303
  const handleMobileToggle = () => {
23273
- searchResultStore.setSidebarState({ visible: true });
23304
+ searchResultStore.setSidebarState({
23305
+ visible: !isSidebarVisible.value,
23306
+ disableBodyScrolling: !disableMobileBodyScrollLock.value
23307
+ });
23274
23308
  };
23309
+ const hasActiveFilters = computed(() => currentFilterCount.value > 0);
23275
23310
  return (_ctx, _cache) => {
23276
23311
  return openBlock(), createElementBlock("div", {
23277
- class: normalizeClass(["lupa-mobile-toggle", { "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1 }]),
23312
+ class: normalizeClass(["lupa-mobile-toggle", {
23313
+ "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
23314
+ "lupa-mobile-toggle-has-filters": hasActiveFilters.value,
23315
+ "lupa-sidebar-open": isSidebarVisible.value
23316
+ }]),
23278
23317
  onClick: handleMobileToggle
23279
23318
  }, [
23280
23319
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
@@ -23283,6 +23322,26 @@ and ensure you are accounting for this risk.
23283
23322
  };
23284
23323
  }
23285
23324
  });
23325
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23326
+ __name: "SearchResultsMobileFilterClose",
23327
+ props: {
23328
+ label: {}
23329
+ },
23330
+ setup(__props) {
23331
+ const searchResultStore = useSearchResultStore();
23332
+ const handleMobileToggle = () => {
23333
+ searchResultStore.setSidebarState({
23334
+ visible: false
23335
+ });
23336
+ };
23337
+ return (_ctx, _cache) => {
23338
+ return openBlock(), createElementBlock("div", {
23339
+ class: "lupa-mobile-filter-close-toggle",
23340
+ onClick: handleMobileToggle
23341
+ }, toDisplayString(_ctx.label), 1);
23342
+ };
23343
+ }
23344
+ });
23286
23345
  const _hoisted_1$z = {
23287
23346
  key: 0,
23288
23347
  id: "lupa-search-results-page-select",
@@ -23292,8 +23351,8 @@ and ensure you are accounting for this risk.
23292
23351
  key: 0,
23293
23352
  class: "lupa-page-number-separator"
23294
23353
  };
23295
- const _hoisted_3$m = ["onClick"];
23296
- const _hoisted_4$f = {
23354
+ const _hoisted_3$l = ["onClick"];
23355
+ const _hoisted_4$e = {
23297
23356
  key: 0,
23298
23357
  class: "lupa-page-number-separator"
23299
23358
  };
@@ -23396,10 +23455,10 @@ and ensure you are accounting for this risk.
23396
23455
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23397
23456
  ]),
23398
23457
  "data-cy": "lupa-page-number"
23399
- }, toDisplayString(page), 11, _hoisted_3$m);
23458
+ }, toDisplayString(page), 11, _hoisted_3$l);
23400
23459
  }), 128)),
23401
23460
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23402
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23461
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23403
23462
  createBaseVNode("div", {
23404
23463
  class: "lupa-page-number lupa-page-number-last",
23405
23464
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23423,8 +23482,8 @@ and ensure you are accounting for this risk.
23423
23482
  "data-cy": "lupa-search-results-page-size"
23424
23483
  };
23425
23484
  const _hoisted_2$r = { id: "lupa-select" };
23426
- const _hoisted_3$l = { class: "lupa-select-label" };
23427
- const _hoisted_4$e = ["aria-label"];
23485
+ const _hoisted_3$k = { class: "lupa-select-label" };
23486
+ const _hoisted_4$d = ["aria-label"];
23428
23487
  const _hoisted_5$9 = ["value"];
23429
23488
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
23430
23489
  __name: "SearchResultsPageSize",
@@ -23456,7 +23515,7 @@ and ensure you are accounting for this risk.
23456
23515
  return (_ctx, _cache) => {
23457
23516
  return openBlock(), createElementBlock("div", _hoisted_1$y, [
23458
23517
  createBaseVNode("div", _hoisted_2$r, [
23459
- createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
23518
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23460
23519
  createBaseVNode("select", {
23461
23520
  class: "lupa-select-dropdown",
23462
23521
  "aria-label": label.value,
@@ -23471,7 +23530,7 @@ and ensure you are accounting for this risk.
23471
23530
  value: option
23472
23531
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23473
23532
  }), 128))
23474
- ], 40, _hoisted_4$e)
23533
+ ], 40, _hoisted_4$d)
23475
23534
  ])
23476
23535
  ]);
23477
23536
  };
@@ -23482,8 +23541,8 @@ and ensure you are accounting for this risk.
23482
23541
  class: "lupa-search-results-sort"
23483
23542
  };
23484
23543
  const _hoisted_2$q = { id: "lupa-select" };
23485
- const _hoisted_3$k = { class: "lupa-select-label" };
23486
- const _hoisted_4$d = ["aria-label"];
23544
+ const _hoisted_3$j = { class: "lupa-select-label" };
23545
+ const _hoisted_4$c = ["aria-label"];
23487
23546
  const _hoisted_5$8 = ["value"];
23488
23547
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
23489
23548
  __name: "SearchResultsSort",
@@ -23536,7 +23595,7 @@ and ensure you are accounting for this risk.
23536
23595
  return (_ctx, _cache) => {
23537
23596
  return openBlock(), createElementBlock("div", _hoisted_1$x, [
23538
23597
  createBaseVNode("div", _hoisted_2$q, [
23539
- createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
23598
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23540
23599
  withDirectives(createBaseVNode("select", {
23541
23600
  class: "lupa-select-dropdown",
23542
23601
  "aria-label": _ctx.options.label,
@@ -23551,7 +23610,7 @@ and ensure you are accounting for this risk.
23551
23610
  value: option.key
23552
23611
  }, toDisplayString(option.label), 9, _hoisted_5$8);
23553
23612
  }), 128))
23554
- ], 40, _hoisted_4$d), [
23613
+ ], 40, _hoisted_4$c), [
23555
23614
  [vModelSelect, selectedKey.value]
23556
23615
  ])
23557
23616
  ])
@@ -23564,8 +23623,8 @@ and ensure you are accounting for this risk.
23564
23623
  key: 0,
23565
23624
  class: "lupa-toolbar-right-title"
23566
23625
  };
23567
- const _hoisted_3$j = { key: 2 };
23568
- const _hoisted_4$c = { key: 4 };
23626
+ const _hoisted_3$i = { key: 2 };
23627
+ const _hoisted_4$b = { key: 4 };
23569
23628
  const _hoisted_5$7 = { key: 6 };
23570
23629
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23571
23630
  const _hoisted_7$3 = {
@@ -23590,7 +23649,7 @@ and ensure you are accounting for this risk.
23590
23649
  const searchResultStore = useSearchResultStore();
23591
23650
  const optionsStore = useOptionsStore();
23592
23651
  const { page, limit } = storeToRefs(paramStore);
23593
- const { hasAnyFilter, searchResult } = storeToRefs(searchResultStore);
23652
+ const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
23594
23653
  const { currentResolutionPageSizes } = storeToRefs(optionsStore);
23595
23654
  const isBottomLocation = computed(() => {
23596
23655
  return props.paginationLocation === "bottom";
@@ -23607,6 +23666,10 @@ and ensure you are accounting for this risk.
23607
23666
  var _a;
23608
23667
  return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.layoutSelector);
23609
23668
  });
23669
+ const showFiltersCloseButton = computed(() => {
23670
+ var _a;
23671
+ return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.filtersCloseButton);
23672
+ });
23610
23673
  const sortOptions = computed(() => {
23611
23674
  var _a, _b;
23612
23675
  if (isBottomLocation.value || !((_a = optionsValue.value.sort) == null ? void 0 : _a.length)) {
@@ -23683,13 +23746,13 @@ and ensure you are accounting for this risk.
23683
23746
  }, [
23684
23747
  createBaseVNode("div", _hoisted_1$w, [
23685
23748
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23686
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
23687
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
23749
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23750
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Z, {
23688
23751
  key: 3,
23689
23752
  label: searchSummaryLabel.value,
23690
23753
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23691
23754
  onClear: handleClearAll
23692
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23755
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23693
23756
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
23694
23757
  key: 5,
23695
23758
  options: paginationOptions.value.pageSelect,
@@ -23699,7 +23762,7 @@ and ensure you are accounting for this risk.
23699
23762
  ]),
23700
23763
  createBaseVNode("div", _hoisted_6$5, [
23701
23764
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23702
- createVNode(_sfc_main$F, {
23765
+ createVNode(_sfc_main$G, {
23703
23766
  label: optionsValue.value.labels.mobileFilterButton,
23704
23767
  "show-filter-count": showMobileFilterCount.value
23705
23768
  }, null, 8, ["label", "show-filter-count"]),
@@ -23712,7 +23775,11 @@ and ensure you are accounting for this risk.
23712
23775
  key: 3,
23713
23776
  options: sortOptions.value,
23714
23777
  callbacks: callbacks.value
23715
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
23778
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
23779
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$F, {
23780
+ key: 5,
23781
+ label: optionsValue.value.labels.mobileFilterCloseButton
23782
+ }, null, 8, ["label"])) : createCommentVNode("", true)
23716
23783
  ])
23717
23784
  ], 2);
23718
23785
  };
@@ -23726,7 +23793,7 @@ and ensure you are accounting for this risk.
23726
23793
  },
23727
23794
  setup(__props) {
23728
23795
  return (_ctx, _cache) => {
23729
- return openBlock(), createBlock(_sfc_main$1l, {
23796
+ return openBlock(), createBlock(_sfc_main$1m, {
23730
23797
  item: _ctx.item,
23731
23798
  options: _ctx.options,
23732
23799
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23737,8 +23804,8 @@ and ensure you are accounting for this risk.
23737
23804
  });
23738
23805
  const _hoisted_1$v = ["title", "innerHTML"];
23739
23806
  const _hoisted_2$o = ["title"];
23740
- const _hoisted_3$i = ["href", "innerHTML"];
23741
- const _hoisted_4$b = ["title"];
23807
+ const _hoisted_3$h = ["href", "innerHTML"];
23808
+ const _hoisted_4$a = ["title"];
23742
23809
  const _hoisted_5$6 = {
23743
23810
  key: 0,
23744
23811
  class: "lupa-search-results-product-title-text"
@@ -23792,7 +23859,7 @@ and ensure you are accounting for this risk.
23792
23859
  class: "lupa-search-results-product-title-text lupa-title-link",
23793
23860
  innerHTML: sanitizedTitle.value,
23794
23861
  onClick: handleNavigation
23795
- }, null, 8, _hoisted_3$i)
23862
+ }, null, 8, _hoisted_3$h)
23796
23863
  ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
23797
23864
  key: 2,
23798
23865
  class: "lupa-search-results-product-title",
@@ -23806,7 +23873,7 @@ and ensure you are accounting for this risk.
23806
23873
  class: "lupa-search-results-product-title-text lupa-title-link",
23807
23874
  onClick: handleNavigation
23808
23875
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23809
- ], 12, _hoisted_4$b));
23876
+ ], 12, _hoisted_4$a));
23810
23877
  };
23811
23878
  }
23812
23879
  });
@@ -23848,8 +23915,8 @@ and ensure you are accounting for this risk.
23848
23915
  });
23849
23916
  const _hoisted_1$t = { id: "lupa-search-results-rating" };
23850
23917
  const _hoisted_2$n = { class: "lupa-ratings" };
23851
- const _hoisted_3$h = { class: "lupa-ratings-base" };
23852
- const _hoisted_4$a = ["innerHTML"];
23918
+ const _hoisted_3$g = { class: "lupa-ratings-base" };
23919
+ const _hoisted_4$9 = ["innerHTML"];
23853
23920
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23854
23921
  const _hoisted_6$3 = ["innerHTML"];
23855
23922
  const _hoisted_7$2 = ["href"];
@@ -23893,13 +23960,13 @@ and ensure you are accounting for this risk.
23893
23960
  return (_ctx, _cache) => {
23894
23961
  return openBlock(), createElementBlock("div", _hoisted_1$t, [
23895
23962
  createBaseVNode("div", _hoisted_2$n, [
23896
- createBaseVNode("div", _hoisted_3$h, [
23963
+ createBaseVNode("div", _hoisted_3$g, [
23897
23964
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23898
23965
  return openBlock(), createElementBlock("div", {
23899
23966
  key: index,
23900
23967
  innerHTML: star,
23901
23968
  class: "lupa-rating lupa-rating-not-highlighted"
23902
- }, null, 8, _hoisted_4$a);
23969
+ }, null, 8, _hoisted_4$9);
23903
23970
  }), 128))
23904
23971
  ]),
23905
23972
  createBaseVNode("div", _hoisted_5$5, [
@@ -23983,7 +24050,7 @@ and ensure you are accounting for this risk.
23983
24050
  });
23984
24051
  const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
23985
24052
  const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
23986
- const _hoisted_3$g = ["id", "disabled", "onClick"];
24053
+ const _hoisted_3$f = ["id", "disabled", "onClick"];
23987
24054
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
23988
24055
  __name: "SearchResultsProductAddToCart",
23989
24056
  props: {
@@ -24032,7 +24099,7 @@ and ensure you are accounting for this risk.
24032
24099
  disabled: !inStockValue.value || loading.value
24033
24100
  }, _ctx.dynamicAttributes, {
24034
24101
  onClick: withModifiers(handleClick, ["stop"])
24035
- }), toDisplayString(label.value), 17, _hoisted_3$g)
24102
+ }), toDisplayString(label.value), 17, _hoisted_3$f)
24036
24103
  ])
24037
24104
  ]);
24038
24105
  };
@@ -24040,8 +24107,8 @@ and ensure you are accounting for this risk.
24040
24107
  });
24041
24108
  const _hoisted_1$q = ["innerHTML"];
24042
24109
  const _hoisted_2$l = { key: 0 };
24043
- const _hoisted_3$f = { key: 1 };
24044
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
24110
+ const _hoisted_3$e = { key: 1 };
24111
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
24045
24112
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
24046
24113
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
24047
24114
  __name: "SearchResultsProductCustom",
@@ -24085,8 +24152,8 @@ and ensure you are accounting for this risk.
24085
24152
  key: 1,
24086
24153
  class: className.value
24087
24154
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24088
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
24089
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
24155
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
24156
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
24090
24157
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
24091
24158
  ]))
24092
24159
  ], 16));
@@ -24131,8 +24198,8 @@ and ensure you are accounting for this risk.
24131
24198
  });
24132
24199
  const _hoisted_1$o = { id: "lupa-search-results-rating" };
24133
24200
  const _hoisted_2$k = ["innerHTML"];
24134
- const _hoisted_3$e = { class: "lupa-ratings" };
24135
- const _hoisted_4$8 = ["href"];
24201
+ const _hoisted_3$d = { class: "lupa-ratings" };
24202
+ const _hoisted_4$7 = ["href"];
24136
24203
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
24137
24204
  __name: "SearchResultsProductSingleStarRating",
24138
24205
  props: {
@@ -24166,11 +24233,11 @@ and ensure you are accounting for this risk.
24166
24233
  innerHTML: star.value,
24167
24234
  class: "lupa-rating lupa-rating-highlighted"
24168
24235
  }, null, 8, _hoisted_2$k),
24169
- createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
24236
+ createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
24170
24237
  createBaseVNode("a", {
24171
24238
  href: ratingLink.value,
24172
24239
  class: "lupa-total-ratings"
24173
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
24240
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
24174
24241
  ]);
24175
24242
  };
24176
24243
  }
@@ -24273,11 +24340,11 @@ and ensure you are accounting for this risk.
24273
24340
  }));
24274
24341
  const _hoisted_1$n = ["onMouseup"];
24275
24342
  const _hoisted_2$j = ["href"];
24276
- const _hoisted_3$d = {
24343
+ const _hoisted_3$c = {
24277
24344
  key: 0,
24278
24345
  class: "lupa-out-of-stock"
24279
24346
  };
24280
- const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24347
+ const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
24281
24348
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
24282
24349
  __name: "SearchResultsProductCard",
24283
24350
  props: {
@@ -24286,7 +24353,8 @@ and ensure you are accounting for this risk.
24286
24353
  isAdditionalPanel: { type: Boolean },
24287
24354
  clickTrackingSettings: {},
24288
24355
  lupaClickTrackingType: {},
24289
- sourceItemId: {}
24356
+ sourceItemId: {},
24357
+ analyticsMetadata: {}
24290
24358
  },
24291
24359
  setup(__props) {
24292
24360
  const props = __props;
@@ -24397,7 +24465,8 @@ and ensure you are accounting for this risk.
24397
24465
  },
24398
24466
  options: { allowEmptySearchQuery: true },
24399
24467
  filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0,
24400
- sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0
24468
+ sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0,
24469
+ metadata: props.analyticsMetadata
24401
24470
  }
24402
24471
  };
24403
24472
  if (isDelayedClickTracking()) {
@@ -24441,7 +24510,7 @@ and ensure you are accounting for this risk.
24441
24510
  onClick: handleClick,
24442
24511
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
24443
24512
  }), [
24444
- createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
24513
+ createVNode(_sfc_main$16, { options: badgesOptions.value }, null, 8, ["options"]),
24445
24514
  createBaseVNode("div", {
24446
24515
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24447
24516
  }, [
@@ -24462,14 +24531,14 @@ and ensure you are accounting for this risk.
24462
24531
  onProductEvent: handleProductEvent
24463
24532
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24464
24533
  }), 128)),
24465
- createVNode(_sfc_main$15, {
24534
+ createVNode(_sfc_main$16, {
24466
24535
  options: badgesOptions.value,
24467
24536
  position: "image",
24468
24537
  class: "lupa-image-badges"
24469
24538
  }, null, 8, ["options"]),
24470
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24539
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24471
24540
  ], 8, _hoisted_2$j),
24472
- createBaseVNode("div", _hoisted_4$7, [
24541
+ createBaseVNode("div", _hoisted_4$6, [
24473
24542
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24474
24543
  return openBlock(), createBlock(_sfc_main$q, {
24475
24544
  class: "lupa-search-results-product-element",
@@ -24512,11 +24581,11 @@ and ensure you are accounting for this risk.
24512
24581
  "data-cy": "lupa-search-results-similar-queries"
24513
24582
  };
24514
24583
  const _hoisted_2$i = { class: "lupa-similar-queries-label" };
24515
- const _hoisted_3$c = {
24584
+ const _hoisted_3$b = {
24516
24585
  class: "lupa-similar-query-label",
24517
24586
  "data-cy": "lupa-similar-query-label"
24518
24587
  };
24519
- const _hoisted_4$6 = ["onClick"];
24588
+ const _hoisted_4$5 = ["onClick"];
24520
24589
  const _hoisted_5$3 = ["innerHTML"];
24521
24590
  const _hoisted_6$2 = { key: 0 };
24522
24591
  const _hoisted_7$1 = {
@@ -24552,12 +24621,20 @@ and ensure you are accounting for this risk.
24552
24621
  }) => {
24553
24622
  paramsStore.goToResults({ searchText, facet });
24554
24623
  };
24624
+ const getClickMetadata = (similarQuery) => {
24625
+ var _a;
24626
+ const isRegularSimilarQuery = (_a = similarQuery.displayQuery) == null ? void 0 : _a.includes("<del>");
24627
+ return {
24628
+ _lupaEventSource: isRegularSimilarQuery ? "similarQueries" : "similarQueriesAI",
24629
+ _lupaUpdatedQuery: similarQuery.query
24630
+ };
24631
+ };
24555
24632
  return (_ctx, _cache) => {
24556
24633
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
24557
24634
  createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
24558
24635
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24559
24636
  return openBlock(), createElementBlock("div", { key: index }, [
24560
- createBaseVNode("div", _hoisted_3$c, [
24637
+ createBaseVNode("div", _hoisted_3$b, [
24561
24638
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24562
24639
  createBaseVNode("span", {
24563
24640
  id: "lupa-similar-query-text-component",
@@ -24569,7 +24646,7 @@ and ensure you are accounting for this risk.
24569
24646
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24570
24647
  }, null, 8, _hoisted_5$3),
24571
24648
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24572
- ], 8, _hoisted_4$6)
24649
+ ], 8, _hoisted_4$5)
24573
24650
  ]),
24574
24651
  createBaseVNode("div", _hoisted_7$1, [
24575
24652
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24577,8 +24654,9 @@ and ensure you are accounting for this risk.
24577
24654
  style: normalizeStyle(_ctx.columnSize),
24578
24655
  key: getDocumentKey(index2, product),
24579
24656
  product,
24580
- options: _ctx.productCardOptions
24581
- }, null, 8, ["style", "product", "options"]);
24657
+ options: _ctx.productCardOptions,
24658
+ "analytics-metadata": getClickMetadata(similarQuery)
24659
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24582
24660
  }), 128))
24583
24661
  ])
24584
24662
  ]);
@@ -24747,7 +24825,7 @@ and ensure you are accounting for this risk.
24747
24825
  "data-cy": "lupa-search-results-similar-results"
24748
24826
  };
24749
24827
  const _hoisted_2$f = { class: "lupa-similar-results-label" };
24750
- const _hoisted_3$b = {
24828
+ const _hoisted_3$a = {
24751
24829
  class: "lupa-products",
24752
24830
  "data-cy": "lupa-products"
24753
24831
  };
@@ -24766,17 +24844,23 @@ and ensure you are accounting for this risk.
24766
24844
  const getDocumentKey = (index, product) => {
24767
24845
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24768
24846
  };
24847
+ const clickMetadata = computed(() => {
24848
+ return {
24849
+ _lupaEventSource: "similarResults"
24850
+ };
24851
+ });
24769
24852
  return (_ctx, _cache) => {
24770
24853
  return openBlock(), createElementBlock("div", _hoisted_1$i, [
24771
24854
  createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24772
- createBaseVNode("div", _hoisted_3$b, [
24855
+ createBaseVNode("div", _hoisted_3$a, [
24773
24856
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24774
24857
  return openBlock(), createBlock(_sfc_main$p, {
24775
24858
  style: normalizeStyle(_ctx.columnSize),
24776
24859
  key: getDocumentKey(index, product),
24777
24860
  product,
24778
- options: _ctx.productCardOptions
24779
- }, null, 8, ["style", "product", "options"]);
24861
+ options: _ctx.productCardOptions,
24862
+ "analytics-metadata": clickMetadata.value
24863
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24780
24864
  }), 128))
24781
24865
  ])
24782
24866
  ]);
@@ -24887,8 +24971,8 @@ and ensure you are accounting for this risk.
24887
24971
  });
24888
24972
  const _hoisted_1$h = { class: "lupa-related-query-item" };
24889
24973
  const _hoisted_2$e = { class: "lupa-related-query-image" };
24890
- const _hoisted_3$a = { class: "lupa-related-query-label" };
24891
- const _hoisted_4$5 = { class: "lupa-related-query-title" };
24974
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
24975
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
24892
24976
  const _hoisted_5$2 = {
24893
24977
  key: 0,
24894
24978
  class: "lupa-related-query-count"
@@ -24986,7 +25070,7 @@ and ensure you are accounting for this risk.
24986
25070
  var _a;
24987
25071
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
24988
25072
  createBaseVNode("div", _hoisted_2$e, [
24989
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
25073
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1m, {
24990
25074
  key: 0,
24991
25075
  "wrapper-class": "lupa-related-query-image-wrapper",
24992
25076
  "image-class": "lupa-related-query-image",
@@ -24994,8 +25078,8 @@ and ensure you are accounting for this risk.
24994
25078
  options: image.value
24995
25079
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24996
25080
  ]),
24997
- createBaseVNode("div", _hoisted_3$a, [
24998
- createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
25081
+ createBaseVNode("div", _hoisted_3$9, [
25082
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
24999
25083
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
25000
25084
  ])
25001
25085
  ]);
@@ -25010,7 +25094,7 @@ and ensure you are accounting for this risk.
25010
25094
  key: 0,
25011
25095
  class: "lupa-related-queries-title"
25012
25096
  };
25013
- const _hoisted_3$9 = ["onClick"];
25097
+ const _hoisted_3$8 = ["onClick"];
25014
25098
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
25015
25099
  __name: "RelatedQueries",
25016
25100
  props: {
@@ -25115,7 +25199,7 @@ and ensure you are accounting for this risk.
25115
25199
  "existing-items-from-other-queries": allDisplayItems.value,
25116
25200
  onLoaded: (item) => processLoadedItem(query, item)
25117
25201
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
25118
- ], 8, _hoisted_3$9)
25202
+ ], 8, _hoisted_3$8)
25119
25203
  ], 2)), [
25120
25204
  [vShow, querySourceResultMap.value[query.value] !== false]
25121
25205
  ]);
@@ -25157,7 +25241,7 @@ and ensure you are accounting for this risk.
25157
25241
  class: "lupa-redirection-suggestion"
25158
25242
  };
25159
25243
  const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
25160
- const _hoisted_3$8 = ["href"];
25244
+ const _hoisted_3$7 = ["href"];
25161
25245
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
25162
25246
  __name: "RedirectionSuggestions",
25163
25247
  props: {
@@ -25183,7 +25267,7 @@ and ensure you are accounting for this risk.
25183
25267
  return (_ctx, _cache) => {
25184
25268
  return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
25185
25269
  createBaseVNode("h4", _hoisted_2$c, [
25186
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
25270
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
25187
25271
  ])
25188
25272
  ])) : createCommentVNode("", true);
25189
25273
  };
@@ -25194,12 +25278,12 @@ and ensure you are accounting for this risk.
25194
25278
  class: "lupa-products",
25195
25279
  "data-cy": "lupa-products"
25196
25280
  };
25197
- const _hoisted_3$7 = {
25281
+ const _hoisted_3$6 = {
25198
25282
  key: 1,
25199
25283
  class: "lupa-empty-results",
25200
25284
  "data-cy": "lupa-no-results-in-page"
25201
25285
  };
25202
- const _hoisted_4$4 = {
25286
+ const _hoisted_4$3 = {
25203
25287
  key: 4,
25204
25288
  class: "lupa-empty-results",
25205
25289
  "data-cy": "lupa-no-results"
@@ -25300,6 +25384,13 @@ and ensure you are accounting for this risk.
25300
25384
  var _a, _b;
25301
25385
  return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
25302
25386
  });
25387
+ const clickMetadata = computed(() => {
25388
+ const hasDidYouMean = Boolean(searchResult.value.suggestedSearchText);
25389
+ return hasDidYouMean ? {
25390
+ _lupaEventSource: "didYouMean",
25391
+ _lupaUpdatedQuery: searchResult.value.suggestedSearchText
25392
+ } : void 0;
25393
+ });
25303
25394
  const getProductKeyAction = (index, product) => {
25304
25395
  return getProductKey(`${index}`, product, props.options.idKey);
25305
25396
  };
@@ -25331,7 +25422,7 @@ and ensure you are accounting for this risk.
25331
25422
  options: _ctx.options.relatedQueries
25332
25423
  }, null, 8, ["options"])) : createCommentVNode("", true),
25333
25424
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25334
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25425
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
25335
25426
  key: 0,
25336
25427
  options: (_a = _ctx.options.filters) != null ? _a : {}
25337
25428
  }, null, 8, ["options"])) : createCommentVNode("", true),
@@ -25342,7 +25433,7 @@ and ensure you are accounting for this risk.
25342
25433
  "pagination-location": "top",
25343
25434
  onFilter: filter2
25344
25435
  }, null, 8, ["options"])) : createCommentVNode("", true),
25345
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
25436
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$W, {
25346
25437
  key: 2,
25347
25438
  class: normalizeClass(currentFiltersClass.value),
25348
25439
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25356,7 +25447,7 @@ and ensure you are accounting for this risk.
25356
25447
  options: _ctx.options,
25357
25448
  "pagination-location": "top"
25358
25449
  }, null, 8, ["options"]),
25359
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
25450
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$W, {
25360
25451
  key: 0,
25361
25452
  class: normalizeClass(currentFiltersClass.value),
25362
25453
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25376,11 +25467,12 @@ and ensure you are accounting for this risk.
25376
25467
  style: normalizeStyle(columnSize.value),
25377
25468
  key: getProductKeyAction(index, product),
25378
25469
  product,
25379
- options: productCardOptions.value
25380
- }, null, 8, ["style", "product", "options"]);
25470
+ options: productCardOptions.value,
25471
+ "analytics-metadata": clickMetadata.value
25472
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
25381
25473
  }), 128))
25382
25474
  ]),
25383
- unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
25475
+ unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
25384
25476
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
25385
25477
  _ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
25386
25478
  key: 0,
@@ -25398,7 +25490,7 @@ and ensure you are accounting for this risk.
25398
25490
  location: "bottom",
25399
25491
  sdkOptions: _ctx.options.options
25400
25492
  }, null, 8, ["options", "sdkOptions"])
25401
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
25493
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25402
25494
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
25403
25495
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
25404
25496
  ])) : createCommentVNode("", true),
@@ -25426,8 +25518,8 @@ and ensure you are accounting for this risk.
25426
25518
  key: 0,
25427
25519
  class: "lupa-category-back"
25428
25520
  };
25429
- const _hoisted_3$6 = ["href"];
25430
- const _hoisted_4$3 = {
25521
+ const _hoisted_3$5 = ["href"];
25522
+ const _hoisted_4$2 = {
25431
25523
  key: 1,
25432
25524
  class: "lupa-child-category-list"
25433
25525
  };
@@ -25485,11 +25577,11 @@ and ensure you are accounting for this risk.
25485
25577
  "data-cy": "lupa-category-back",
25486
25578
  href: backUrlLink.value,
25487
25579
  onClick: handleNavigationBack
25488
- }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25580
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
25489
25581
  ])) : createCommentVNode("", true),
25490
- hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25582
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
25491
25583
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25492
- return openBlock(), createBlock(_sfc_main$U, {
25584
+ return openBlock(), createBlock(_sfc_main$V, {
25493
25585
  key: getCategoryKey(child),
25494
25586
  item: child,
25495
25587
  options: categoryOptions.value
@@ -25510,13 +25602,7 @@ and ensure you are accounting for this risk.
25510
25602
  key: 0,
25511
25603
  class: "lupa-container-title-summary-mobile"
25512
25604
  };
25513
- const _hoisted_2$9 = {
25514
- key: 4,
25515
- id: "lupa-search-results",
25516
- class: "top-layout-wrapper"
25517
- };
25518
- const _hoisted_3$5 = { class: "search-content" };
25519
- const _hoisted_4$2 = { id: "lupa-search-results" };
25605
+ const _hoisted_2$9 = { class: "search-content" };
25520
25606
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
25521
25607
  __name: "SearchResults",
25522
25608
  props: {
@@ -25542,7 +25628,7 @@ and ensure you are accounting for this risk.
25542
25628
  var _a, _b;
25543
25629
  return (_b = (_a = props.initialFilters) != null ? _a : extractedInitialFilters.value) != null ? _b : {};
25544
25630
  });
25545
- const { currentQueryText, hasResults, currentFilterCount } = storeToRefs(searchResultStore);
25631
+ const { currentQueryText, hasResults, currentFilterCount, isMobileSidebarVisible, layout } = storeToRefs(searchResultStore);
25546
25632
  const { searchString, sortParams } = storeToRefs(paramStore);
25547
25633
  const { defaultSearchResultPageSize } = storeToRefs(optionStore);
25548
25634
  const searchResultsFilters = ref(null);
@@ -25558,6 +25644,13 @@ and ensure you are accounting for this risk.
25558
25644
  const isTitleResultTopPosition = computed(() => {
25559
25645
  return props.options.searchTitlePosition === "search-results-top";
25560
25646
  });
25647
+ const indicatorClasses = computed(() => {
25648
+ return {
25649
+ "lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
25650
+ "lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
25651
+ "lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
25652
+ };
25653
+ });
25561
25654
  const handlePopState = () => {
25562
25655
  var _a;
25563
25656
  const searchParams = getSearchParams((_a = props.options.ssr) == null ? void 0 : _a.url);
@@ -25731,8 +25824,8 @@ and ensure you are accounting for this risk.
25731
25824
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
25732
25825
  }, [
25733
25826
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25734
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25735
- createVNode(_sfc_main$X, {
25827
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25828
+ createVNode(_sfc_main$Y, {
25736
25829
  "show-summary": true,
25737
25830
  options: _ctx.options,
25738
25831
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -25742,26 +25835,30 @@ and ensure you are accounting for this risk.
25742
25835
  key: 1,
25743
25836
  options: _ctx.options
25744
25837
  }, null, 8, ["options"])) : createCommentVNode("", true),
25745
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
25838
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
25746
25839
  key: 2,
25747
25840
  options: _ctx.options.filters,
25748
25841
  onFilter: handleParamsChange
25749
25842
  }, null, 8, ["options"])) : createCommentVNode("", true),
25750
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
25843
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
25751
25844
  key: 3,
25752
25845
  breadcrumbs: _ctx.options.breadcrumbs
25753
25846
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
25754
- isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
25755
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25847
+ isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
25848
+ key: 4,
25849
+ id: "lupa-search-results",
25850
+ class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
25851
+ }, [
25852
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25756
25853
  key: 0,
25757
25854
  options: (_b = _ctx.options.filters) != null ? _b : {},
25758
25855
  ref_key: "searchResultsFilters",
25759
25856
  ref: searchResultsFilters,
25760
25857
  onFilter: handleParamsChange
25761
25858
  }, null, 8, ["options"])) : createCommentVNode("", true),
25762
- createBaseVNode("div", _hoisted_3$5, [
25763
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25764
- createVNode(_sfc_main$X, {
25859
+ createBaseVNode("div", _hoisted_2$9, [
25860
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25861
+ createVNode(_sfc_main$Y, {
25765
25862
  options: _ctx.options,
25766
25863
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
25767
25864
  }, null, 8, ["options", "is-product-list"]),
@@ -25776,14 +25873,17 @@ and ensure you are accounting for this risk.
25776
25873
  _: 3
25777
25874
  }, 8, ["options", "ssr"])
25778
25875
  ])
25779
- ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25780
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25781
- createVNode(_sfc_main$X, {
25876
+ ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25877
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25878
+ createVNode(_sfc_main$Y, {
25782
25879
  options: _ctx.options,
25783
25880
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25784
25881
  }, null, 8, ["options", "is-product-list"]),
25785
- createBaseVNode("div", _hoisted_4$2, [
25786
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25882
+ createBaseVNode("div", {
25883
+ id: "lupa-search-results",
25884
+ class: normalizeClass(indicatorClasses.value)
25885
+ }, [
25886
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25787
25887
  key: 0,
25788
25888
  options: (_e = _ctx.options.filters) != null ? _e : {},
25789
25889
  ref_key: "searchResultsFilters",
@@ -25808,7 +25908,7 @@ and ensure you are accounting for this risk.
25808
25908
  key: "0"
25809
25909
  } : void 0
25810
25910
  ]), 1032, ["options", "ssr"])
25811
- ])
25911
+ ], 2)
25812
25912
  ], 64))
25813
25913
  ], 2);
25814
25914
  };
@@ -31417,7 +31517,7 @@ and ensure you are accounting for this risk.
31417
31517
  onClick: withModifiers(innerClick, ["stop"])
31418
31518
  }, [
31419
31519
  createBaseVNode("div", _hoisted_2$7, [
31420
- createVNode(_sfc_main$_, {
31520
+ createVNode(_sfc_main$$, {
31421
31521
  options: fullSearchBoxOptions.value,
31422
31522
  "is-search-container": true,
31423
31523
  ref_key: "searchBox",
@@ -32947,7 +33047,7 @@ and ensure you are accounting for this risk.
32947
33047
  key: 0,
32948
33048
  class: "lupasearch-chat-content"
32949
33049
  };
32950
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
33050
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
32951
33051
  __name: "ChatContainer",
32952
33052
  props: {
32953
33053
  options: {}
@@ -38965,7 +39065,7 @@ and ensure you are accounting for this risk.
38965
39065
  };
38966
39066
  __expose({ fetch: fetch2 });
38967
39067
  return (_ctx, _cache) => {
38968
- return openBlock(), createBlock(unref(_sfc_main$_), {
39068
+ return openBlock(), createBlock(unref(_sfc_main$$), {
38969
39069
  options: fullSearchBoxOptions.value,
38970
39070
  ref_key: "searchBox",
38971
39071
  ref: searchBox2
@@ -39520,7 +39620,7 @@ and ensure you are accounting for this risk.
39520
39620
  const instance = createVue(
39521
39621
  options.displayOptions.containerSelector,
39522
39622
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
39523
- _sfc_main$1u,
39623
+ _sfc_main$1v,
39524
39624
  {
39525
39625
  options
39526
39626
  }