@getlupa/client 1.15.14 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7351,6 +7351,7 @@ const useOptionsStore = defineStore("options", () => {
7351
7351
  );
7352
7352
  const trackingOptions = ref({});
7353
7353
  const searchResultInitialFilters = ref({});
7354
+ const productRecommendationOptions = ref({});
7354
7355
  const screenStore = useScreenStore();
7355
7356
  const envOptions = computed(
7356
7357
  () => {
@@ -7411,6 +7412,11 @@ const useOptionsStore = defineStore("options", () => {
7411
7412
  const setInitialFilters = ({ initialFilters: initialFilters2 }) => {
7412
7413
  searchResultInitialFilters.value = initialFilters2;
7413
7414
  };
7415
+ const setProductRecommendationOptions = ({
7416
+ options
7417
+ }) => {
7418
+ productRecommendationOptions.value = options;
7419
+ };
7414
7420
  const getQueryParamName = (param) => {
7415
7421
  var _a;
7416
7422
  const nameMap = searchBoxOptions.value.queryParameterNames;
@@ -7427,10 +7433,12 @@ const useOptionsStore = defineStore("options", () => {
7427
7433
  searchResultsRoutingBehavior,
7428
7434
  defaultSearchResultPageSize,
7429
7435
  currentResolutionPageSizes,
7436
+ productRecommendationOptions,
7430
7437
  setSearchBoxOptions,
7431
7438
  setTrackingOptions,
7432
7439
  setSearchResultOptions,
7433
7440
  setInitialFilters,
7441
+ setProductRecommendationOptions,
7434
7442
  getQueryParamName
7435
7443
  };
7436
7444
  });
@@ -7518,7 +7526,7 @@ const getUserKey = () => {
7518
7526
  return void 0;
7519
7527
  }
7520
7528
  };
7521
- const initTracking = (options) => {
7529
+ const initTracking$1 = (options) => {
7522
7530
  initBaseTracking(Boolean(options.trackBase));
7523
7531
  if (options.trackSession) {
7524
7532
  initSessionTracking();
@@ -7560,7 +7568,9 @@ const trackLupaEvent = (queryKey, data = {}, options) => {
7560
7568
  name: data.type,
7561
7569
  userId: getUserKey(),
7562
7570
  sessionId: getSessionKey(),
7563
- filters: data.filters
7571
+ filters: data.filters,
7572
+ metadata: data.metadata,
7573
+ sourceItemId: data.sourceItemId
7564
7574
  };
7565
7575
  LupaSearchSdk.track(queryKey, eventData, options);
7566
7576
  };
@@ -8687,8 +8697,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8687
8697
  });
8688
8698
  const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
8689
8699
  const _hoisted_2$V = { class: "lupa-input-clear" };
8690
- const _hoisted_3$E = { id: "lupa-search-box-input" };
8691
- const _hoisted_4$t = ["value"];
8700
+ const _hoisted_3$C = { id: "lupa-search-box-input" };
8701
+ const _hoisted_4$s = ["value"];
8692
8702
  const _hoisted_5$j = ["aria-label", "placeholder"];
8693
8703
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8694
8704
  const _hoisted_7$7 = [
@@ -8698,7 +8708,7 @@ const _hoisted_8$3 = {
8698
8708
  key: 0,
8699
8709
  class: "lupa-close-label"
8700
8710
  };
8701
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8711
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
8702
8712
  __name: "SearchBoxInput",
8703
8713
  props: {
8704
8714
  options: {},
@@ -8789,13 +8799,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8789
8799
  onClick: clear2
8790
8800
  }, null, 2)
8791
8801
  ]),
8792
- createBaseVNode("div", _hoisted_3$E, [
8802
+ createBaseVNode("div", _hoisted_3$C, [
8793
8803
  createBaseVNode("input", {
8794
8804
  class: "lupa-hint",
8795
8805
  "aria-hidden": "true",
8796
8806
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8797
8807
  disabled: ""
8798
- }, null, 8, _hoisted_4$t),
8808
+ }, null, 8, _hoisted_4$s),
8799
8809
  withDirectives(createBaseVNode("input", mergeProps({
8800
8810
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8801
8811
  }, inputAttributes.value, {
@@ -8828,7 +8838,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8828
8838
  };
8829
8839
  }
8830
8840
  });
8831
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8841
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8832
8842
  __name: "SearchBoxMoreResults",
8833
8843
  props: {
8834
8844
  labels: {},
@@ -8867,7 +8877,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8867
8877
  });
8868
8878
  const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
8869
8879
  const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
8870
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8880
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8871
8881
  __name: "SearchBoxHistoryItem",
8872
8882
  props: {
8873
8883
  item: {},
@@ -8902,7 +8912,7 @@ const _hoisted_1$1f = {
8902
8912
  key: 0,
8903
8913
  class: "lupa-search-box-history-panel"
8904
8914
  };
8905
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8915
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8906
8916
  __name: "SearchBoxHistoryPanel",
8907
8917
  props: {
8908
8918
  options: {}
@@ -8945,7 +8955,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8945
8955
  return (_ctx, _cache) => {
8946
8956
  return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
8947
8957
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8948
- return openBlock(), createBlock(_sfc_main$1r, {
8958
+ return openBlock(), createBlock(_sfc_main$1s, {
8949
8959
  key: item,
8950
8960
  item,
8951
8961
  highlighted: index === highlightIndex.value,
@@ -8962,7 +8972,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8962
8972
  }
8963
8973
  });
8964
8974
  const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
8965
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8975
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8966
8976
  __name: "SearchBoxNoResults",
8967
8977
  props: {
8968
8978
  labels: {}
@@ -9007,12 +9017,12 @@ const _hoisted_2$T = {
9007
9017
  "data-cy": "lupa-suggestion-value",
9008
9018
  class: "lupa-suggestion-value"
9009
9019
  };
9010
- const _hoisted_3$D = {
9020
+ const _hoisted_3$B = {
9011
9021
  key: 2,
9012
9022
  class: "lupa-suggestion-facet",
9013
9023
  "data-cy": "lupa-suggestion-facet"
9014
9024
  };
9015
- const _hoisted_4$s = {
9025
+ const _hoisted_4$r = {
9016
9026
  class: "lupa-suggestion-facet-label",
9017
9027
  "data-cy": "lupa-suggestion-facet-label"
9018
9028
  };
@@ -9020,7 +9030,7 @@ const _hoisted_5$i = {
9020
9030
  class: "lupa-suggestion-facet-value",
9021
9031
  "data-cy": "lupa-suggestion-facet-value"
9022
9032
  };
9023
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9033
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
9024
9034
  __name: "SearchBoxSuggestion",
9025
9035
  props: {
9026
9036
  suggestion: {},
@@ -9057,8 +9067,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9057
9067
  "data-cy": "lupa-suggestion-value",
9058
9068
  innerHTML: _ctx.suggestion.displayHighlight
9059
9069
  }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
9060
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
9061
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
9070
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
9071
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
9062
9072
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
9063
9073
  ])) : createCommentVNode("", true)
9064
9074
  ]);
@@ -9069,7 +9079,7 @@ const _hoisted_1$1c = {
9069
9079
  id: "lupa-search-box-suggestions",
9070
9080
  "data-cy": "lupa-search-box-suggestions"
9071
9081
  };
9072
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9082
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
9073
9083
  __name: "SearchBoxSuggestions",
9074
9084
  props: {
9075
9085
  items: {},
@@ -9131,7 +9141,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9131
9141
  return (_ctx, _cache) => {
9132
9142
  return openBlock(), createElementBlock("div", _hoisted_1$1c, [
9133
9143
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9134
- return openBlock(), createBlock(_sfc_main$1o, {
9144
+ return openBlock(), createBlock(_sfc_main$1p, {
9135
9145
  key: getSuggestionKey(item),
9136
9146
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9137
9147
  suggestion: item,
@@ -9159,7 +9169,7 @@ const debounce$1 = (func, timeout) => {
9159
9169
  }, timeout);
9160
9170
  };
9161
9171
  };
9162
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9172
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9163
9173
  __name: "SearchBoxSuggestionsWrapper",
9164
9174
  props: {
9165
9175
  panel: {},
@@ -9201,7 +9211,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9201
9211
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9202
9212
  watch(() => props.panel.limit, getSuggestionsDebounced);
9203
9213
  return (_ctx, _cache) => {
9204
- return openBlock(), createBlock(_sfc_main$1n, {
9214
+ return openBlock(), createBlock(_sfc_main$1o, {
9205
9215
  items: searchResult.value,
9206
9216
  highlight: _ctx.panel.highlight,
9207
9217
  queryKey: _ctx.panel.queryKey,
@@ -18292,7 +18302,7 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
18292
18302
  };
18293
18303
  const _hoisted_1$1b = ["src"];
18294
18304
  const _hoisted_2$S = ["src"];
18295
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18305
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
18296
18306
  __name: "ProductImage",
18297
18307
  props: {
18298
18308
  item: {},
@@ -18447,7 +18457,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18447
18457
  };
18448
18458
  }
18449
18459
  });
18450
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18460
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18451
18461
  __name: "SearchBoxProductImage",
18452
18462
  props: {
18453
18463
  item: {},
@@ -18455,7 +18465,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18455
18465
  },
18456
18466
  setup(__props) {
18457
18467
  return (_ctx, _cache) => {
18458
- return openBlock(), createBlock(_sfc_main$1l, {
18468
+ return openBlock(), createBlock(_sfc_main$1m, {
18459
18469
  item: _ctx.item,
18460
18470
  options: _ctx.options,
18461
18471
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18469,7 +18479,7 @@ const _hoisted_2$R = {
18469
18479
  key: 1,
18470
18480
  class: "lupa-search-box-product-title"
18471
18481
  };
18472
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18482
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18473
18483
  __name: "SearchBoxProductTitle",
18474
18484
  props: {
18475
18485
  item: {},
@@ -18503,7 +18513,7 @@ const _hoisted_2$Q = {
18503
18513
  key: 1,
18504
18514
  class: "lupa-search-box-product-description"
18505
18515
  };
18506
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18516
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18507
18517
  __name: "SearchBoxProductDescription",
18508
18518
  props: {
18509
18519
  item: {},
@@ -18531,7 +18541,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18531
18541
  }
18532
18542
  });
18533
18543
  const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
18534
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18544
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18535
18545
  __name: "SearchBoxProductPrice",
18536
18546
  props: {
18537
18547
  item: {},
@@ -18555,7 +18565,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18555
18565
  };
18556
18566
  }
18557
18567
  });
18558
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18568
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18559
18569
  __name: "SearchBoxProductRegularPrice",
18560
18570
  props: {
18561
18571
  item: {},
@@ -18584,10 +18594,10 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18584
18594
  });
18585
18595
  const _hoisted_1$17 = ["innerHTML"];
18586
18596
  const _hoisted_2$P = { key: 0 };
18587
- const _hoisted_3$C = { key: 1 };
18588
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18597
+ const _hoisted_3$A = { key: 1 };
18598
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18589
18599
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18590
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18600
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18591
18601
  __name: "SearchBoxProductCustom",
18592
18602
  props: {
18593
18603
  item: {},
@@ -18617,8 +18627,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18617
18627
  key: 1,
18618
18628
  class: [className.value, "lupa-search-box-product-custom"]
18619
18629
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18620
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
18621
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18630
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
18631
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18622
18632
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18623
18633
  ]))
18624
18634
  ], 16));
@@ -18626,7 +18636,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18626
18636
  }
18627
18637
  });
18628
18638
  const _hoisted_1$16 = ["innerHTML"];
18629
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18639
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18630
18640
  __name: "SearchBoxProductCustomHtml",
18631
18641
  props: {
18632
18642
  item: {},
@@ -18772,8 +18782,11 @@ const useSearchResultStore = defineStore("searchResult", () => {
18772
18782
  return hasResults.value && ((_a = searchResult.value.offset) != null ? _a : 0) >= totalItems.value;
18773
18783
  }
18774
18784
  );
18775
- const setSidebarState = ({ visible }) => {
18776
- if (visible) {
18785
+ const setSidebarState = ({
18786
+ visible,
18787
+ disableBodyScrolling = true
18788
+ }) => {
18789
+ if (visible && disableBodyScrolling) {
18777
18790
  disableBodyScroll();
18778
18791
  } else {
18779
18792
  enableBodyScroll();
@@ -18887,8 +18900,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
18887
18900
  });
18888
18901
  const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
18889
18902
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
18890
- const _hoisted_3$B = ["onClick", "disabled"];
18891
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18903
+ const _hoisted_3$z = ["onClick", "disabled"];
18904
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18892
18905
  __name: "SearchBoxProductAddToCart",
18893
18906
  props: {
18894
18907
  item: {},
@@ -18930,7 +18943,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18930
18943
  "data-cy": "lupa-add-to-cart",
18931
18944
  type: "button",
18932
18945
  disabled: !inStockValue.value || loading.value
18933
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$B)
18946
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$z)
18934
18947
  ])
18935
18948
  ]);
18936
18949
  };
@@ -18942,17 +18955,17 @@ const _hoisted_1$14 = {
18942
18955
  };
18943
18956
  const __default__$4 = {
18944
18957
  components: {
18945
- SearchBoxProductImage: _sfc_main$1k,
18946
- SearchBoxProductTitle: _sfc_main$1j,
18947
- SearchBoxProductDescription: _sfc_main$1i,
18948
- SearchBoxProductPrice: _sfc_main$1h,
18949
- SearchBoxProductRegularPrice: _sfc_main$1g,
18950
- SearchBoxProductCustom: _sfc_main$1f,
18951
- SearchBoxProductCustomHtml: _sfc_main$1e,
18952
- SearchBoxProductAddToCart: _sfc_main$1d
18958
+ SearchBoxProductImage: _sfc_main$1l,
18959
+ SearchBoxProductTitle: _sfc_main$1k,
18960
+ SearchBoxProductDescription: _sfc_main$1j,
18961
+ SearchBoxProductPrice: _sfc_main$1i,
18962
+ SearchBoxProductRegularPrice: _sfc_main$1h,
18963
+ SearchBoxProductCustom: _sfc_main$1g,
18964
+ SearchBoxProductCustomHtml: _sfc_main$1f,
18965
+ SearchBoxProductAddToCart: _sfc_main$1e
18953
18966
  }
18954
18967
  };
18955
- const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18968
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18956
18969
  __name: "SearchBoxProductElement",
18957
18970
  props: {
18958
18971
  item: {},
@@ -19038,12 +19051,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19038
19051
  }));
19039
19052
  const _hoisted_1$13 = { class: "lupa-badge-title" };
19040
19053
  const _hoisted_2$N = ["src"];
19041
- const _hoisted_3$A = { key: 1 };
19042
- const _hoisted_4$q = {
19054
+ const _hoisted_3$y = { key: 1 };
19055
+ const _hoisted_4$p = {
19043
19056
  key: 0,
19044
19057
  class: "lupa-badge-full-text"
19045
19058
  };
19046
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19059
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
19047
19060
  __name: "SearchResultGeneratedBadge",
19048
19061
  props: {
19049
19062
  options: {},
@@ -19081,15 +19094,15 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19081
19094
  key: 0,
19082
19095
  src: image.value
19083
19096
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
19084
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19097
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19085
19098
  ]),
19086
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19099
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19087
19100
  ], 6);
19088
19101
  };
19089
19102
  }
19090
19103
  });
19091
19104
  const _hoisted_1$12 = { class: "lupa-generated-badges" };
19092
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19105
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19093
19106
  __name: "SearchResultGeneratedBadges",
19094
19107
  props: {
19095
19108
  options: {}
@@ -19117,7 +19130,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19117
19130
  return (_ctx, _cache) => {
19118
19131
  return openBlock(), createElementBlock("div", _hoisted_1$12, [
19119
19132
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19120
- return openBlock(), createBlock(_sfc_main$1b, {
19133
+ return openBlock(), createBlock(_sfc_main$1c, {
19121
19134
  key: badge.id,
19122
19135
  badge,
19123
19136
  options: _ctx.options
@@ -19128,7 +19141,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19128
19141
  }
19129
19142
  });
19130
19143
  const _hoisted_1$11 = ["innerHTML"];
19131
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19144
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19132
19145
  __name: "CustomBadge",
19133
19146
  props: {
19134
19147
  badge: {}
@@ -19154,7 +19167,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19154
19167
  }
19155
19168
  });
19156
19169
  const _hoisted_1$10 = { class: "lupa-text-badges" };
19157
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19170
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19158
19171
  __name: "TextBadge",
19159
19172
  props: {
19160
19173
  badge: {}
@@ -19181,7 +19194,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19181
19194
  });
19182
19195
  const _hoisted_1$$ = { class: "lupa-image-badges" };
19183
19196
  const _hoisted_2$M = ["src"];
19184
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19197
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19185
19198
  __name: "ImageBadge",
19186
19199
  props: {
19187
19200
  badge: {}
@@ -19216,7 +19229,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19216
19229
  };
19217
19230
  }
19218
19231
  });
19219
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19232
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19220
19233
  __name: "DiscountBadge",
19221
19234
  props: {
19222
19235
  badge: {}
@@ -19277,13 +19290,13 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19277
19290
  const _hoisted_1$_ = { id: "lupa-search-results-badges" };
19278
19291
  const __default__$3 = {
19279
19292
  components: {
19280
- CustomBadge: _sfc_main$19,
19281
- TextBadge: _sfc_main$18,
19282
- ImageBadge: _sfc_main$17,
19283
- DiscountBadge: _sfc_main$16
19293
+ CustomBadge: _sfc_main$1a,
19294
+ TextBadge: _sfc_main$19,
19295
+ ImageBadge: _sfc_main$18,
19296
+ DiscountBadge: _sfc_main$17
19284
19297
  }
19285
19298
  };
19286
- const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19299
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19287
19300
  __name: "SearchResultsBadgeWrapper",
19288
19301
  props: {
19289
19302
  position: {},
@@ -19357,7 +19370,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19357
19370
  badge
19358
19371
  }, null, 8, ["badge"]);
19359
19372
  }), 128)),
19360
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
19373
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1b, {
19361
19374
  key: 0,
19362
19375
  options: _ctx.options
19363
19376
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19368,11 +19381,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19368
19381
  }));
19369
19382
  const _hoisted_1$Z = ["href"];
19370
19383
  const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19371
- const _hoisted_3$z = {
19384
+ const _hoisted_3$x = {
19372
19385
  key: 0,
19373
19386
  class: "lupa-search-box-product-add-to-cart-section"
19374
19387
  };
19375
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19388
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19376
19389
  __name: "SearchBoxProduct",
19377
19390
  props: {
19378
19391
  item: {},
@@ -19458,7 +19471,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19458
19471
  style: normalizeStyle(imageStyleOverride.value)
19459
19472
  }, [
19460
19473
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19461
- return openBlock(), createBlock(_sfc_main$1c, {
19474
+ return openBlock(), createBlock(_sfc_main$1d, {
19462
19475
  class: "lupa-search-box-product-element",
19463
19476
  item: _ctx.item,
19464
19477
  element,
@@ -19471,7 +19484,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19471
19484
  createBaseVNode("div", _hoisted_2$L, [
19472
19485
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19473
19486
  var _a;
19474
- return openBlock(), createBlock(_sfc_main$1c, {
19487
+ return openBlock(), createBlock(_sfc_main$1d, {
19475
19488
  key: element.key,
19476
19489
  class: "lupa-search-box-product-element",
19477
19490
  item: _ctx.item,
@@ -19482,7 +19495,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19482
19495
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19483
19496
  name: "badges",
19484
19497
  fn: withCtx(() => [
19485
- createVNode(_sfc_main$15, {
19498
+ createVNode(_sfc_main$16, {
19486
19499
  options: badgeOptions.value,
19487
19500
  position: "card"
19488
19501
  }, null, 8, ["options"])
@@ -19492,8 +19505,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19492
19505
  ]), 1032, ["item", "element", "labels", "link"]);
19493
19506
  }), 128))
19494
19507
  ]),
19495
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
19496
- createVNode(_sfc_main$1c, {
19508
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
19509
+ createVNode(_sfc_main$1d, {
19497
19510
  class: "lupa-search-box-product-element",
19498
19511
  item: _ctx.item,
19499
19512
  element: addToCartElement.value,
@@ -19575,7 +19588,7 @@ const useTrackingStore = defineStore("tracking", () => {
19575
19588
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19576
19589
  });
19577
19590
  const _hoisted_1$Y = { id: "lupa-search-box-products" };
19578
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19591
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19579
19592
  __name: "SearchBoxProducts",
19580
19593
  props: {
19581
19594
  items: {},
@@ -19655,7 +19668,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19655
19668
  itemClicked: handleProductClick
19656
19669
  });
19657
19670
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19658
- return openBlock(), createBlock(_sfc_main$14, {
19671
+ return openBlock(), createBlock(_sfc_main$15, {
19659
19672
  key: index,
19660
19673
  item,
19661
19674
  panelOptions: _ctx.panelOptions,
@@ -19672,7 +19685,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19672
19685
  });
19673
19686
  const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19674
19687
  const _hoisted_2$K = { key: 0 };
19675
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19688
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19676
19689
  __name: "SearchBoxProductsGoToResultsButton",
19677
19690
  props: {
19678
19691
  options: {},
@@ -19782,7 +19795,7 @@ const processExtractionObject = (value = {}) => {
19782
19795
  }
19783
19796
  return parsedObject;
19784
19797
  };
19785
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19798
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19786
19799
  __name: "SearchBoxProductsWrapper",
19787
19800
  props: {
19788
19801
  panel: {},
@@ -19847,7 +19860,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19847
19860
  watch(() => props.panel.limit, getItemsDebounced);
19848
19861
  return (_ctx, _cache) => {
19849
19862
  var _a, _b;
19850
- return openBlock(), createBlock(_sfc_main$13, {
19863
+ return openBlock(), createBlock(_sfc_main$14, {
19851
19864
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19852
19865
  panelOptions: _ctx.panel,
19853
19866
  labels: _ctx.labels,
@@ -19857,7 +19870,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19857
19870
  default: withCtx(() => {
19858
19871
  var _a2;
19859
19872
  return [
19860
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
19873
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$13, {
19861
19874
  key: 0,
19862
19875
  options: _ctx.searchBoxOptions,
19863
19876
  panel: _ctx.panel,
@@ -19878,7 +19891,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19878
19891
  };
19879
19892
  }
19880
19893
  });
19881
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19894
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19882
19895
  __name: "SearchBoxRelatedSourceWrapper",
19883
19896
  props: {
19884
19897
  panel: {},
@@ -19950,7 +19963,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19950
19963
  });
19951
19964
  return (_ctx, _cache) => {
19952
19965
  var _a, _b;
19953
- return openBlock(), createBlock(_sfc_main$13, {
19966
+ return openBlock(), createBlock(_sfc_main$14, {
19954
19967
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19955
19968
  panelOptions: documentPanelOptions.value,
19956
19969
  labels: _ctx.labels,
@@ -19973,11 +19986,11 @@ const _hoisted_1$W = {
19973
19986
  id: "lupa-search-box-panel"
19974
19987
  };
19975
19988
  const _hoisted_2$J = ["data-cy"];
19976
- const _hoisted_3$y = {
19989
+ const _hoisted_3$w = {
19977
19990
  key: 0,
19978
19991
  class: "lupa-panel-title lupa-panel-title-top-results"
19979
19992
  };
19980
- const _hoisted_4$p = {
19993
+ const _hoisted_4$o = {
19981
19994
  key: 1,
19982
19995
  class: "lupa-panel-title"
19983
19996
  };
@@ -19987,12 +20000,12 @@ const _hoisted_5$g = {
19987
20000
  };
19988
20001
  const __default__$2 = {
19989
20002
  components: {
19990
- SearchBoxSuggestionsWrapper: _sfc_main$1m,
19991
- SearchBoxProductsWrapper: _sfc_main$11,
19992
- SearchBoxRelatedSourceWrapper: _sfc_main$10
20003
+ SearchBoxSuggestionsWrapper: _sfc_main$1n,
20004
+ SearchBoxProductsWrapper: _sfc_main$12,
20005
+ SearchBoxRelatedSourceWrapper: _sfc_main$11
19993
20006
  }
19994
20007
  };
19995
- const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
20008
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19996
20009
  __name: "SearchBoxMainPanel",
19997
20010
  props: {
19998
20011
  options: {},
@@ -20169,8 +20182,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20169
20182
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20170
20183
  "data-cy": "lupa-panel-" + panel.type + "-index"
20171
20184
  }, [
20172
- ((_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),
20173
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
20185
+ ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20186
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
20174
20187
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
20175
20188
  key: 2,
20176
20189
  panel,
@@ -20195,18 +20208,18 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20195
20208
  ], 14, _hoisted_2$J);
20196
20209
  }), 128))
20197
20210
  ], 4),
20198
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
20211
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1q, {
20199
20212
  key: 1,
20200
20213
  labels: labels.value
20201
20214
  }, null, 8, ["labels"])) : createCommentVNode("", true),
20202
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
20215
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1t, {
20203
20216
  key: 2,
20204
20217
  labels: labels.value,
20205
20218
  options: _ctx.options,
20206
20219
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20207
20220
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
20208
20221
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
20209
- createVNode(_sfc_main$1q, {
20222
+ createVNode(_sfc_main$1r, {
20210
20223
  options: _ctx.options.history,
20211
20224
  history: history.value,
20212
20225
  onGoToResults: handleGoToResults,
@@ -20233,7 +20246,7 @@ const unbindSearchTriggers = (triggers = [], event) => {
20233
20246
  };
20234
20247
  const _hoisted_1$V = { id: "lupa-search-box" };
20235
20248
  const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
20236
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20249
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
20237
20250
  __name: "SearchBox",
20238
20251
  props: {
20239
20252
  options: {},
@@ -20503,7 +20516,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20503
20516
  var _a2;
20504
20517
  return openBlock(), createElementBlock("div", _hoisted_1$V, [
20505
20518
  createBaseVNode("div", _hoisted_2$I, [
20506
- createVNode(_sfc_main$1t, {
20519
+ createVNode(_sfc_main$1u, {
20507
20520
  options: inputOptions.value,
20508
20521
  suggestedValue: suggestedValue.value,
20509
20522
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20516,7 +20529,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20516
20529
  onSearch: handleSearch,
20517
20530
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20518
20531
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20519
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
20532
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$10, {
20520
20533
  key: 0,
20521
20534
  options: panelOptions.value,
20522
20535
  inputValue: inputValue.value,
@@ -20613,12 +20626,12 @@ const _hoisted_2$H = {
20613
20626
  key: 0,
20614
20627
  "data-cy": "suggested-search-text-label"
20615
20628
  };
20616
- const _hoisted_3$x = {
20629
+ const _hoisted_3$v = {
20617
20630
  key: 1,
20618
20631
  "data-cy": "did-you-mean-label"
20619
20632
  };
20620
- const _hoisted_4$o = { key: 1 };
20621
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20633
+ const _hoisted_4$n = { key: 1 };
20634
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20622
20635
  __name: "SearchResultsDidYouMean",
20623
20636
  props: {
20624
20637
  labels: {}
@@ -20660,7 +20673,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20660
20673
  ]);
20661
20674
  }), 128))
20662
20675
  ])) : createCommentVNode("", true),
20663
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
20676
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
20664
20677
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20665
20678
  return openBlock(), createElementBlock("span", { key: index }, [
20666
20679
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20668,7 +20681,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20668
20681
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20669
20682
  "data-cy": "did-you-mean-value",
20670
20683
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20671
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20684
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20672
20685
  ]);
20673
20686
  }), 128))
20674
20687
  ])) : createCommentVNode("", true)
@@ -20681,7 +20694,7 @@ const _hoisted_1$T = {
20681
20694
  class: "lupa-search-results-summary"
20682
20695
  };
20683
20696
  const _hoisted_2$G = ["innerHTML"];
20684
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20697
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20685
20698
  __name: "SearchResultsSummary",
20686
20699
  props: {
20687
20700
  label: {},
@@ -20714,13 +20727,13 @@ const _hoisted_1$S = {
20714
20727
  "data-cy": "lupa-result-page-title"
20715
20728
  };
20716
20729
  const _hoisted_2$F = { key: 0 };
20717
- const _hoisted_3$w = {
20730
+ const _hoisted_3$u = {
20718
20731
  key: 1,
20719
20732
  class: "lupa-results-total-count"
20720
20733
  };
20721
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20734
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20722
20735
  const _hoisted_5$f = ["innerHTML"];
20723
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
20736
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20724
20737
  __name: "SearchResultsTitle",
20725
20738
  props: {
20726
20739
  options: {},
@@ -20766,13 +20779,13 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20766
20779
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
20767
20780
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
20768
20781
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20769
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
20782
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
20770
20783
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20771
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20784
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20772
20785
  createTextVNode(")")
20773
20786
  ])) : createCommentVNode("", true)
20774
20787
  ])) : createCommentVNode("", true),
20775
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
20788
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Z, {
20776
20789
  key: 1,
20777
20790
  label: summaryLabel.value
20778
20791
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20785,16 +20798,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20785
20798
  };
20786
20799
  }
20787
20800
  });
20788
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
20789
- const _hoisted_2$E = {
20801
+ const _hoisted_1$R = {
20790
20802
  class: "lupa-current-filter-label",
20791
20803
  "data-cy": "lupa-current-filter-label"
20792
20804
  };
20793
- const _hoisted_3$v = {
20805
+ const _hoisted_2$E = {
20794
20806
  class: "lupa-current-filter-value",
20795
20807
  "data-cy": "lupa-current-filter-value"
20796
20808
  };
20797
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20809
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20798
20810
  __name: "CurrentFilterDisplay",
20799
20811
  props: {
20800
20812
  filter: {}
@@ -20802,18 +20814,23 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20802
20814
  emits: ["remove"],
20803
20815
  setup(__props, { emit: emit2 }) {
20804
20816
  const props = __props;
20817
+ const facetKeyClass = computed(() => {
20818
+ return `lupa-facet-active-filter-${props.filter.key}`;
20819
+ });
20805
20820
  const handleClick = () => {
20806
20821
  emit2("remove", { filter: props.filter });
20807
20822
  };
20808
20823
  return (_ctx, _cache) => {
20809
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
20824
+ return openBlock(), createElementBlock("div", {
20825
+ class: normalizeClass(["lupa-search-result-filter-value", { [facetKeyClass.value]: true }])
20826
+ }, [
20810
20827
  createBaseVNode("div", {
20811
20828
  class: "lupa-current-filter-action",
20812
20829
  onClick: handleClick
20813
20830
  }, "⨉"),
20814
- createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
20815
- createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
20816
- ]);
20831
+ createBaseVNode("div", _hoisted_1$R, toDisplayString(_ctx.filter.label) + ": ", 1),
20832
+ createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.value), 1)
20833
+ ], 2);
20817
20834
  };
20818
20835
  }
20819
20836
  });
@@ -20822,12 +20839,12 @@ const _hoisted_2$D = {
20822
20839
  key: 0,
20823
20840
  class: "lupa-filter-count"
20824
20841
  };
20825
- const _hoisted_3$u = {
20842
+ const _hoisted_3$t = {
20826
20843
  key: 0,
20827
20844
  class: "filter-values"
20828
20845
  };
20829
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
20830
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20846
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
20847
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20831
20848
  __name: "CurrentFilters",
20832
20849
  props: {
20833
20850
  options: {},
@@ -20909,10 +20926,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20909
20926
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20910
20927
  }, null, 2)) : createCommentVNode("", true)
20911
20928
  ]),
20912
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20913
- createBaseVNode("div", _hoisted_4$m, [
20929
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20930
+ createBaseVNode("div", _hoisted_4$l, [
20914
20931
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20915
- return openBlock(), createBlock(_sfc_main$W, {
20932
+ return openBlock(), createBlock(_sfc_main$X, {
20916
20933
  key: filter2.key + "_" + filter2.value,
20917
20934
  filter: filter2,
20918
20935
  onRemove: handleRemove
@@ -20930,7 +20947,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20930
20947
  }
20931
20948
  });
20932
20949
  const _hoisted_1$P = ["href"];
20933
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20950
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20934
20951
  __name: "CategoryFilterItem",
20935
20952
  props: {
20936
20953
  options: {},
@@ -20977,10 +20994,10 @@ const _hoisted_1$O = {
20977
20994
  "data-cy": "lupa-category-filter"
20978
20995
  };
20979
20996
  const _hoisted_2$C = { class: "lupa-category-back" };
20980
- const _hoisted_3$t = ["href"];
20981
- const _hoisted_4$l = ["href"];
20997
+ const _hoisted_3$s = ["href"];
20998
+ const _hoisted_4$k = ["href"];
20982
20999
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20983
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
21000
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20984
21001
  __name: "CategoryFilter",
20985
21002
  props: {
20986
21003
  options: {}
@@ -21075,7 +21092,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21075
21092
  "data-cy": "lupa-category-back",
21076
21093
  href: backUrlLink.value,
21077
21094
  onClick: handleNavigationBack
21078
- }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
21095
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
21079
21096
  ]),
21080
21097
  createBaseVNode("div", {
21081
21098
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -21085,11 +21102,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21085
21102
  href: parentUrlLink.value,
21086
21103
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
21087
21104
  onClick: handleNavigationParent
21088
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
21105
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
21089
21106
  ], 2),
21090
21107
  createBaseVNode("div", _hoisted_5$e, [
21091
21108
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
21092
- return openBlock(), createBlock(_sfc_main$U, {
21109
+ return openBlock(), createBlock(_sfc_main$V, {
21093
21110
  key: getCategoryKey(child),
21094
21111
  item: child,
21095
21112
  options: _ctx.options
@@ -21105,8 +21122,8 @@ const _hoisted_1$N = {
21105
21122
  "data-cy": "lupa-search-result-facet-term-values"
21106
21123
  };
21107
21124
  const _hoisted_2$B = ["placeholder"];
21108
- const _hoisted_3$s = { class: "lupa-terms-list" };
21109
- const _hoisted_4$k = ["onClick"];
21125
+ const _hoisted_3$r = { class: "lupa-terms-list" };
21126
+ const _hoisted_4$j = ["onClick"];
21110
21127
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
21111
21128
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
21112
21129
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -21116,7 +21133,7 @@ const _hoisted_8$2 = {
21116
21133
  };
21117
21134
  const _hoisted_9$2 = { key: 0 };
21118
21135
  const _hoisted_10$1 = { key: 1 };
21119
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
21136
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
21120
21137
  __name: "TermFacet",
21121
21138
  props: {
21122
21139
  options: {},
@@ -21197,7 +21214,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
21197
21214
  }, null, 8, _hoisted_2$B)), [
21198
21215
  [vModelText, termFilter.value]
21199
21216
  ]) : createCommentVNode("", true),
21200
- createBaseVNode("div", _hoisted_3$s, [
21217
+ createBaseVNode("div", _hoisted_3$r, [
21201
21218
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
21202
21219
  return openBlock(), createElementBlock("div", {
21203
21220
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -21214,7 +21231,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
21214
21231
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
21215
21232
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
21216
21233
  ])
21217
- ], 10, _hoisted_4$k);
21234
+ ], 10, _hoisted_4$j);
21218
21235
  }), 128))
21219
21236
  ]),
21220
21237
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -22210,11 +22227,11 @@ const _hoisted_2$A = {
22210
22227
  key: 0,
22211
22228
  class: "lupa-stats-facet-summary"
22212
22229
  };
22213
- const _hoisted_3$r = {
22230
+ const _hoisted_3$q = {
22214
22231
  key: 1,
22215
22232
  class: "lupa-stats-facet-summary-input"
22216
22233
  };
22217
- const _hoisted_4$j = {
22234
+ const _hoisted_4$i = {
22218
22235
  key: 0,
22219
22236
  class: "lupa-stats-range-label"
22220
22237
  };
@@ -22233,7 +22250,7 @@ const _hoisted_13 = {
22233
22250
  key: 2,
22234
22251
  class: "lupa-stats-slider-wrapper"
22235
22252
  };
22236
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
22253
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
22237
22254
  __name: "StatsFacet",
22238
22255
  props: {
22239
22256
  options: {},
@@ -22411,9 +22428,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22411
22428
  };
22412
22429
  return (_ctx, _cache) => {
22413
22430
  return openBlock(), createElementBlock("div", _hoisted_1$M, [
22414
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
22431
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22415
22432
  createBaseVNode("div", null, [
22416
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22433
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22417
22434
  createBaseVNode("div", _hoisted_5$c, [
22418
22435
  withDirectives(createBaseVNode("input", {
22419
22436
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22479,8 +22496,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22479
22496
  });
22480
22497
  const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
22481
22498
  const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
22482
- const _hoisted_3$q = { class: "lupa-term-label" };
22483
- const _hoisted_4$i = {
22499
+ const _hoisted_3$p = { class: "lupa-term-label" };
22500
+ const _hoisted_4$h = {
22484
22501
  key: 0,
22485
22502
  class: "lupa-term-count"
22486
22503
  };
@@ -22488,7 +22505,7 @@ const _hoisted_5$b = {
22488
22505
  key: 0,
22489
22506
  class: "lupa-facet-level"
22490
22507
  };
22491
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22508
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22492
22509
  __name: "HierarchyFacetLevel",
22493
22510
  props: {
22494
22511
  options: {},
@@ -22540,8 +22557,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22540
22557
  }, null, 2)
22541
22558
  ]),
22542
22559
  createBaseVNode("div", _hoisted_2$z, [
22543
- createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22544
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22560
+ createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22561
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22545
22562
  ])
22546
22563
  ]),
22547
22564
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
@@ -22565,8 +22582,8 @@ const _hoisted_1$K = {
22565
22582
  "data-cy": "lupa-search-result-facet-term-values"
22566
22583
  };
22567
22584
  const _hoisted_2$y = { key: 0 };
22568
- const _hoisted_3$p = ["placeholder"];
22569
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
22585
+ const _hoisted_3$o = ["placeholder"];
22586
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22570
22587
  __name: "HierarchyFacet",
22571
22588
  props: {
22572
22589
  options: {},
@@ -22628,12 +22645,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22628
22645
  "data-cy": "lupa-term-filter",
22629
22646
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22630
22647
  placeholder: _ctx.options.labels.facetFilter
22631
- }, null, 8, _hoisted_3$p), [
22648
+ }, null, 8, _hoisted_3$o), [
22632
22649
  [vModelText, termFilter.value]
22633
22650
  ])
22634
22651
  ])) : createCommentVNode("", true),
22635
22652
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22636
- return openBlock(), createBlock(_sfc_main$Q, {
22653
+ return openBlock(), createBlock(_sfc_main$R, {
22637
22654
  key: item.title,
22638
22655
  options: _ctx.options,
22639
22656
  item,
@@ -22665,12 +22682,12 @@ const _hoisted_2$x = {
22665
22682
  };
22666
22683
  const __default__$1 = {
22667
22684
  components: {
22668
- TermFacet: _sfc_main$S,
22669
- StatsFacet: _sfc_main$R,
22670
- HierarchyFacet: _sfc_main$P
22685
+ TermFacet: _sfc_main$T,
22686
+ StatsFacet: _sfc_main$S,
22687
+ HierarchyFacet: _sfc_main$Q
22671
22688
  }
22672
22689
  };
22673
- const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22690
+ const _sfc_main$P = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22674
22691
  __name: "FacetDisplay",
22675
22692
  props: {
22676
22693
  options: {},
@@ -22727,6 +22744,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22727
22744
  var _a2;
22728
22745
  return ((_a2 = currentFilterKeys.value) != null ? _a2 : []).join(",");
22729
22746
  });
22747
+ const facetKeyClass = computed(() => {
22748
+ return `lupa-facet-${facet.value.key}`;
22749
+ });
22730
22750
  onMounted(() => {
22731
22751
  var _a2;
22732
22752
  if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
@@ -22778,7 +22798,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22778
22798
  "data-cy": "lupa-search-result-facet-display"
22779
22799
  }, [
22780
22800
  createBaseVNode("div", {
22781
- class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value }]),
22801
+ class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value, [facetKeyClass.value]: true }]),
22782
22802
  "data-cy": "lupa-search-result-facet-label",
22783
22803
  onClick: toggleFacet
22784
22804
  }, [
@@ -22810,7 +22830,7 @@ const _hoisted_2$w = {
22810
22830
  key: 0,
22811
22831
  class: "lupa-facets-title"
22812
22832
  };
22813
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
22833
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22814
22834
  __name: "FacetList",
22815
22835
  props: {
22816
22836
  options: {},
@@ -22851,7 +22871,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22851
22871
  }, [
22852
22872
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22853
22873
  var _a2;
22854
- return openBlock(), createBlock(_sfc_main$O, {
22874
+ return openBlock(), createBlock(_sfc_main$P, {
22855
22875
  key: facet.key,
22856
22876
  facet,
22857
22877
  currentFilters: currentFiltersValue.value,
@@ -22867,7 +22887,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22867
22887
  }
22868
22888
  });
22869
22889
  const _hoisted_1$H = ["onClick"];
22870
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22890
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22871
22891
  __name: "FacetsButton",
22872
22892
  props: {
22873
22893
  options: {}
@@ -22893,7 +22913,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22893
22913
  });
22894
22914
  const _hoisted_1$G = { class: "lupa-search-result-facets" };
22895
22915
  const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
22896
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22916
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22897
22917
  __name: "Facets",
22898
22918
  props: {
22899
22919
  options: {},
@@ -22977,7 +22997,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22977
22997
  };
22978
22998
  return (_ctx, _cache) => {
22979
22999
  return openBlock(), createElementBlock("div", _hoisted_1$G, [
22980
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
23000
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$O, {
22981
23001
  key: 0,
22982
23002
  options: _ctx.options,
22983
23003
  facets: regularFacets.value,
@@ -22988,7 +23008,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22988
23008
  onClear: clear2
22989
23009
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22990
23010
  createBaseVNode("div", _hoisted_2$v, [
22991
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
23011
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$N, {
22992
23012
  key: 0,
22993
23013
  options: _ctx.options,
22994
23014
  onFilter: filter2
@@ -23002,7 +23022,7 @@ const _hoisted_1$F = {
23002
23022
  id: "lupa-search-result-filters",
23003
23023
  class: "lupa-search-result-filters"
23004
23024
  };
23005
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
23025
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
23006
23026
  __name: "SearchResultsFilters",
23007
23027
  props: {
23008
23028
  options: {},
@@ -23036,18 +23056,18 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23036
23056
  return (_ctx, _cache) => {
23037
23057
  var _a;
23038
23058
  return openBlock(), createElementBlock("div", _hoisted_1$F, [
23039
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
23059
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$W, {
23040
23060
  key: 0,
23041
23061
  options: _ctx.options.currentFilters,
23042
23062
  expandable: (_a = _ctx.expandable) != null ? _a : false
23043
23063
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
23044
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
23064
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$U, {
23045
23065
  key: 1,
23046
23066
  options: _ctx.options.categories,
23047
23067
  ref_key: "categoryFilters",
23048
23068
  ref: categoryFilters
23049
23069
  }, null, 8, ["options"])) : createCommentVNode("", true),
23050
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23070
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23051
23071
  key: 2,
23052
23072
  options: _ctx.options.facets,
23053
23073
  onFilter: filter2
@@ -23061,15 +23081,15 @@ const _hoisted_1$E = {
23061
23081
  class: "lupa-mobile-filter-sidebar"
23062
23082
  };
23063
23083
  const _hoisted_2$u = ["onClick"];
23064
- const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
23065
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
23084
+ const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
23085
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
23066
23086
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
23067
23087
  const _hoisted_6$6 = {
23068
23088
  key: 0,
23069
23089
  class: "lupa-sidebar-filter-count"
23070
23090
  };
23071
23091
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
23072
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
23092
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
23073
23093
  __name: "MobileFilterSidebar",
23074
23094
  props: {
23075
23095
  options: {}
@@ -23105,8 +23125,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23105
23125
  class: "lupa-sidebar-close",
23106
23126
  onClick: withModifiers(handleMobileToggle, ["stop"])
23107
23127
  }, null, 8, _hoisted_2$u),
23108
- createBaseVNode("div", _hoisted_3$o, [
23109
- createBaseVNode("div", _hoisted_4$h, [
23128
+ createBaseVNode("div", _hoisted_3$n, [
23129
+ createBaseVNode("div", _hoisted_4$g, [
23110
23130
  createBaseVNode("div", _hoisted_5$a, [
23111
23131
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
23112
23132
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -23117,7 +23137,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23117
23137
  })
23118
23138
  ]),
23119
23139
  createBaseVNode("div", _hoisted_7$4, [
23120
- createVNode(_sfc_main$K, {
23140
+ createVNode(_sfc_main$L, {
23121
23141
  options: _ctx.options,
23122
23142
  expandable: isActiveFiltersExpanded.value,
23123
23143
  onFilter: filter2
@@ -23130,12 +23150,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23130
23150
  });
23131
23151
  const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
23132
23152
  const _hoisted_2$t = ["href", "onClick"];
23133
- const _hoisted_3$n = {
23153
+ const _hoisted_3$m = {
23134
23154
  key: 1,
23135
23155
  class: "lupa-search-results-breadcrumb-text"
23136
23156
  };
23137
- const _hoisted_4$g = { key: 2 };
23138
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
23157
+ const _hoisted_4$f = { key: 2 };
23158
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
23139
23159
  __name: "SearchResultsBreadcrumbs",
23140
23160
  props: {
23141
23161
  breadcrumbs: {}
@@ -23174,8 +23194,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23174
23194
  var _a;
23175
23195
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
23176
23196
  }
23177
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
23178
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
23197
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
23198
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
23179
23199
  ]);
23180
23200
  }), 128))
23181
23201
  ]);
@@ -23186,7 +23206,7 @@ const _hoisted_1$C = {
23186
23206
  id: "lupa-search-result-filters",
23187
23207
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23188
23208
  };
23189
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
23209
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23190
23210
  __name: "FiltersTopDropdown",
23191
23211
  props: {
23192
23212
  options: {}
@@ -23199,7 +23219,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23199
23219
  return (_ctx, _cache) => {
23200
23220
  var _a;
23201
23221
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
23202
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23222
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
23203
23223
  key: 0,
23204
23224
  options: _ctx.options.facets,
23205
23225
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -23211,7 +23231,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23211
23231
  }
23212
23232
  });
23213
23233
  const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
23214
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
23234
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23215
23235
  __name: "SearchResultsLayoutSelection",
23216
23236
  setup(__props) {
23217
23237
  const searchResultStore = useSearchResultStore();
@@ -23248,7 +23268,7 @@ const _hoisted_1$A = {
23248
23268
  key: 0,
23249
23269
  class: "lupa-mobile-toggle-filter-count"
23250
23270
  };
23251
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
23271
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23252
23272
  __name: "SearchResultsMobileToggle",
23253
23273
  props: {
23254
23274
  label: {},
@@ -23256,13 +23276,28 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23256
23276
  },
23257
23277
  setup(__props) {
23258
23278
  const searchResultStore = useSearchResultStore();
23279
+ const optionsStore = useOptionsStore();
23259
23280
  const { currentFilterCount } = storeToRefs(searchResultStore);
23281
+ const { searchResultOptions } = storeToRefs(optionsStore);
23282
+ const disableMobileBodyScrollLock = computed(
23283
+ () => {
23284
+ var _a, _b, _c;
23285
+ return (_c = (_b = (_a = searchResultOptions.value.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.disableMobileBodyScrollLock) != null ? _c : false;
23286
+ }
23287
+ );
23260
23288
  const handleMobileToggle = () => {
23261
- searchResultStore.setSidebarState({ visible: true });
23289
+ searchResultStore.setSidebarState({
23290
+ visible: true,
23291
+ disableBodyScrolling: !disableMobileBodyScrollLock.value
23292
+ });
23262
23293
  };
23294
+ const hasActiveFilters = computed(() => currentFilterCount.value > 0);
23263
23295
  return (_ctx, _cache) => {
23264
23296
  return openBlock(), createElementBlock("div", {
23265
- class: normalizeClass(["lupa-mobile-toggle", { "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1 }]),
23297
+ class: normalizeClass(["lupa-mobile-toggle", {
23298
+ "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
23299
+ "lupa-mobile-toggle-has-filters": hasActiveFilters.value
23300
+ }]),
23266
23301
  onClick: handleMobileToggle
23267
23302
  }, [
23268
23303
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
@@ -23271,6 +23306,26 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23271
23306
  };
23272
23307
  }
23273
23308
  });
23309
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23310
+ __name: "SearchResultsMobileFilterClose",
23311
+ props: {
23312
+ label: {}
23313
+ },
23314
+ setup(__props) {
23315
+ const searchResultStore = useSearchResultStore();
23316
+ const handleMobileToggle = () => {
23317
+ searchResultStore.setSidebarState({
23318
+ visible: false
23319
+ });
23320
+ };
23321
+ return (_ctx, _cache) => {
23322
+ return openBlock(), createElementBlock("div", {
23323
+ class: "lupa-mobile-filter-close-toggle",
23324
+ onClick: handleMobileToggle
23325
+ }, toDisplayString(_ctx.label), 1);
23326
+ };
23327
+ }
23328
+ });
23274
23329
  const _hoisted_1$z = {
23275
23330
  key: 0,
23276
23331
  id: "lupa-search-results-page-select",
@@ -23280,8 +23335,8 @@ const _hoisted_2$s = {
23280
23335
  key: 0,
23281
23336
  class: "lupa-page-number-separator"
23282
23337
  };
23283
- const _hoisted_3$m = ["onClick"];
23284
- const _hoisted_4$f = {
23338
+ const _hoisted_3$l = ["onClick"];
23339
+ const _hoisted_4$e = {
23285
23340
  key: 0,
23286
23341
  class: "lupa-page-number-separator"
23287
23342
  };
@@ -23384,10 +23439,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
23384
23439
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23385
23440
  ]),
23386
23441
  "data-cy": "lupa-page-number"
23387
- }, toDisplayString(page), 11, _hoisted_3$m);
23442
+ }, toDisplayString(page), 11, _hoisted_3$l);
23388
23443
  }), 128)),
23389
23444
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23390
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23445
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23391
23446
  createBaseVNode("div", {
23392
23447
  class: "lupa-page-number lupa-page-number-last",
23393
23448
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23411,8 +23466,8 @@ const _hoisted_1$y = {
23411
23466
  "data-cy": "lupa-search-results-page-size"
23412
23467
  };
23413
23468
  const _hoisted_2$r = { id: "lupa-select" };
23414
- const _hoisted_3$l = { class: "lupa-select-label" };
23415
- const _hoisted_4$e = ["aria-label"];
23469
+ const _hoisted_3$k = { class: "lupa-select-label" };
23470
+ const _hoisted_4$d = ["aria-label"];
23416
23471
  const _hoisted_5$9 = ["value"];
23417
23472
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
23418
23473
  __name: "SearchResultsPageSize",
@@ -23444,7 +23499,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23444
23499
  return (_ctx, _cache) => {
23445
23500
  return openBlock(), createElementBlock("div", _hoisted_1$y, [
23446
23501
  createBaseVNode("div", _hoisted_2$r, [
23447
- createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
23502
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23448
23503
  createBaseVNode("select", {
23449
23504
  class: "lupa-select-dropdown",
23450
23505
  "aria-label": label.value,
@@ -23459,7 +23514,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23459
23514
  value: option
23460
23515
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23461
23516
  }), 128))
23462
- ], 40, _hoisted_4$e)
23517
+ ], 40, _hoisted_4$d)
23463
23518
  ])
23464
23519
  ]);
23465
23520
  };
@@ -23470,8 +23525,8 @@ const _hoisted_1$x = {
23470
23525
  class: "lupa-search-results-sort"
23471
23526
  };
23472
23527
  const _hoisted_2$q = { id: "lupa-select" };
23473
- const _hoisted_3$k = { class: "lupa-select-label" };
23474
- const _hoisted_4$d = ["aria-label"];
23528
+ const _hoisted_3$j = { class: "lupa-select-label" };
23529
+ const _hoisted_4$c = ["aria-label"];
23475
23530
  const _hoisted_5$8 = ["value"];
23476
23531
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
23477
23532
  __name: "SearchResultsSort",
@@ -23524,7 +23579,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23524
23579
  return (_ctx, _cache) => {
23525
23580
  return openBlock(), createElementBlock("div", _hoisted_1$x, [
23526
23581
  createBaseVNode("div", _hoisted_2$q, [
23527
- createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
23582
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23528
23583
  withDirectives(createBaseVNode("select", {
23529
23584
  class: "lupa-select-dropdown",
23530
23585
  "aria-label": _ctx.options.label,
@@ -23539,7 +23594,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23539
23594
  value: option.key
23540
23595
  }, toDisplayString(option.label), 9, _hoisted_5$8);
23541
23596
  }), 128))
23542
- ], 40, _hoisted_4$d), [
23597
+ ], 40, _hoisted_4$c), [
23543
23598
  [vModelSelect, selectedKey.value]
23544
23599
  ])
23545
23600
  ])
@@ -23552,8 +23607,8 @@ const _hoisted_2$p = {
23552
23607
  key: 0,
23553
23608
  class: "lupa-toolbar-right-title"
23554
23609
  };
23555
- const _hoisted_3$j = { key: 2 };
23556
- const _hoisted_4$c = { key: 4 };
23610
+ const _hoisted_3$i = { key: 2 };
23611
+ const _hoisted_4$b = { key: 4 };
23557
23612
  const _hoisted_5$7 = { key: 6 };
23558
23613
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23559
23614
  const _hoisted_7$3 = {
@@ -23578,7 +23633,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23578
23633
  const searchResultStore = useSearchResultStore();
23579
23634
  const optionsStore = useOptionsStore();
23580
23635
  const { page, limit } = storeToRefs(paramStore);
23581
- const { hasAnyFilter, searchResult } = storeToRefs(searchResultStore);
23636
+ const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
23582
23637
  const { currentResolutionPageSizes } = storeToRefs(optionsStore);
23583
23638
  const isBottomLocation = computed(() => {
23584
23639
  return props.paginationLocation === "bottom";
@@ -23595,6 +23650,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23595
23650
  var _a;
23596
23651
  return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.layoutSelector);
23597
23652
  });
23653
+ const showFiltersCloseButton = computed(() => {
23654
+ var _a;
23655
+ return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.filtersCloseButton);
23656
+ });
23598
23657
  const sortOptions = computed(() => {
23599
23658
  var _a, _b;
23600
23659
  if (isBottomLocation.value || !((_a = optionsValue.value.sort) == null ? void 0 : _a.length)) {
@@ -23671,13 +23730,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23671
23730
  }, [
23672
23731
  createBaseVNode("div", _hoisted_1$w, [
23673
23732
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23674
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
23675
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
23733
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23734
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Z, {
23676
23735
  key: 3,
23677
23736
  label: searchSummaryLabel.value,
23678
23737
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23679
23738
  onClear: handleClearAll
23680
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23739
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23681
23740
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
23682
23741
  key: 5,
23683
23742
  options: paginationOptions.value.pageSelect,
@@ -23687,7 +23746,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23687
23746
  ]),
23688
23747
  createBaseVNode("div", _hoisted_6$5, [
23689
23748
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23690
- createVNode(_sfc_main$F, {
23749
+ createVNode(_sfc_main$G, {
23691
23750
  label: optionsValue.value.labels.mobileFilterButton,
23692
23751
  "show-filter-count": showMobileFilterCount.value
23693
23752
  }, null, 8, ["label", "show-filter-count"]),
@@ -23700,7 +23759,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23700
23759
  key: 3,
23701
23760
  options: sortOptions.value,
23702
23761
  callbacks: callbacks.value
23703
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
23762
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
23763
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$F, {
23764
+ key: 5,
23765
+ label: optionsValue.value.labels.mobileFilterCloseButton
23766
+ }, null, 8, ["label"])) : createCommentVNode("", true)
23704
23767
  ])
23705
23768
  ], 2);
23706
23769
  };
@@ -23714,7 +23777,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23714
23777
  },
23715
23778
  setup(__props) {
23716
23779
  return (_ctx, _cache) => {
23717
- return openBlock(), createBlock(_sfc_main$1l, {
23780
+ return openBlock(), createBlock(_sfc_main$1m, {
23718
23781
  item: _ctx.item,
23719
23782
  options: _ctx.options,
23720
23783
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23725,8 +23788,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23725
23788
  });
23726
23789
  const _hoisted_1$v = ["title", "innerHTML"];
23727
23790
  const _hoisted_2$o = ["title"];
23728
- const _hoisted_3$i = ["href", "innerHTML"];
23729
- const _hoisted_4$b = ["title"];
23791
+ const _hoisted_3$h = ["href", "innerHTML"];
23792
+ const _hoisted_4$a = ["title"];
23730
23793
  const _hoisted_5$6 = {
23731
23794
  key: 0,
23732
23795
  class: "lupa-search-results-product-title-text"
@@ -23780,7 +23843,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23780
23843
  class: "lupa-search-results-product-title-text lupa-title-link",
23781
23844
  innerHTML: sanitizedTitle.value,
23782
23845
  onClick: handleNavigation
23783
- }, null, 8, _hoisted_3$i)
23846
+ }, null, 8, _hoisted_3$h)
23784
23847
  ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
23785
23848
  key: 2,
23786
23849
  class: "lupa-search-results-product-title",
@@ -23794,7 +23857,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23794
23857
  class: "lupa-search-results-product-title-text lupa-title-link",
23795
23858
  onClick: handleNavigation
23796
23859
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23797
- ], 12, _hoisted_4$b));
23860
+ ], 12, _hoisted_4$a));
23798
23861
  };
23799
23862
  }
23800
23863
  });
@@ -23836,8 +23899,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23836
23899
  });
23837
23900
  const _hoisted_1$t = { id: "lupa-search-results-rating" };
23838
23901
  const _hoisted_2$n = { class: "lupa-ratings" };
23839
- const _hoisted_3$h = { class: "lupa-ratings-base" };
23840
- const _hoisted_4$a = ["innerHTML"];
23902
+ const _hoisted_3$g = { class: "lupa-ratings-base" };
23903
+ const _hoisted_4$9 = ["innerHTML"];
23841
23904
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23842
23905
  const _hoisted_6$3 = ["innerHTML"];
23843
23906
  const _hoisted_7$2 = ["href"];
@@ -23881,13 +23944,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23881
23944
  return (_ctx, _cache) => {
23882
23945
  return openBlock(), createElementBlock("div", _hoisted_1$t, [
23883
23946
  createBaseVNode("div", _hoisted_2$n, [
23884
- createBaseVNode("div", _hoisted_3$h, [
23947
+ createBaseVNode("div", _hoisted_3$g, [
23885
23948
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23886
23949
  return openBlock(), createElementBlock("div", {
23887
23950
  key: index,
23888
23951
  innerHTML: star,
23889
23952
  class: "lupa-rating lupa-rating-not-highlighted"
23890
- }, null, 8, _hoisted_4$a);
23953
+ }, null, 8, _hoisted_4$9);
23891
23954
  }), 128))
23892
23955
  ]),
23893
23956
  createBaseVNode("div", _hoisted_5$5, [
@@ -23971,7 +24034,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23971
24034
  });
23972
24035
  const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
23973
24036
  const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
23974
- const _hoisted_3$g = ["id", "disabled", "onClick"];
24037
+ const _hoisted_3$f = ["id", "disabled", "onClick"];
23975
24038
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
23976
24039
  __name: "SearchResultsProductAddToCart",
23977
24040
  props: {
@@ -24020,7 +24083,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
24020
24083
  disabled: !inStockValue.value || loading.value
24021
24084
  }, _ctx.dynamicAttributes, {
24022
24085
  onClick: withModifiers(handleClick, ["stop"])
24023
- }), toDisplayString(label.value), 17, _hoisted_3$g)
24086
+ }), toDisplayString(label.value), 17, _hoisted_3$f)
24024
24087
  ])
24025
24088
  ]);
24026
24089
  };
@@ -24028,8 +24091,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
24028
24091
  });
24029
24092
  const _hoisted_1$q = ["innerHTML"];
24030
24093
  const _hoisted_2$l = { key: 0 };
24031
- const _hoisted_3$f = { key: 1 };
24032
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
24094
+ const _hoisted_3$e = { key: 1 };
24095
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
24033
24096
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
24034
24097
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
24035
24098
  __name: "SearchResultsProductCustom",
@@ -24073,8 +24136,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
24073
24136
  key: 1,
24074
24137
  class: className.value
24075
24138
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24076
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
24077
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
24139
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
24140
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
24078
24141
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
24079
24142
  ]))
24080
24143
  ], 16));
@@ -24119,8 +24182,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
24119
24182
  });
24120
24183
  const _hoisted_1$o = { id: "lupa-search-results-rating" };
24121
24184
  const _hoisted_2$k = ["innerHTML"];
24122
- const _hoisted_3$e = { class: "lupa-ratings" };
24123
- const _hoisted_4$8 = ["href"];
24185
+ const _hoisted_3$d = { class: "lupa-ratings" };
24186
+ const _hoisted_4$7 = ["href"];
24124
24187
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
24125
24188
  __name: "SearchResultsProductSingleStarRating",
24126
24189
  props: {
@@ -24154,11 +24217,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
24154
24217
  innerHTML: star.value,
24155
24218
  class: "lupa-rating lupa-rating-highlighted"
24156
24219
  }, null, 8, _hoisted_2$k),
24157
- createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
24220
+ createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
24158
24221
  createBaseVNode("a", {
24159
24222
  href: ratingLink.value,
24160
24223
  class: "lupa-total-ratings"
24161
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
24224
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
24162
24225
  ]);
24163
24226
  };
24164
24227
  }
@@ -24261,11 +24324,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
24261
24324
  }));
24262
24325
  const _hoisted_1$n = ["onMouseup"];
24263
24326
  const _hoisted_2$j = ["href"];
24264
- const _hoisted_3$d = {
24327
+ const _hoisted_3$c = {
24265
24328
  key: 0,
24266
24329
  class: "lupa-out-of-stock"
24267
24330
  };
24268
- const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24331
+ const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
24269
24332
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
24270
24333
  __name: "SearchResultsProductCard",
24271
24334
  props: {
@@ -24273,7 +24336,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24273
24336
  options: {},
24274
24337
  isAdditionalPanel: { type: Boolean },
24275
24338
  clickTrackingSettings: {},
24276
- lupaClickTrackingType: {}
24339
+ lupaClickTrackingType: {},
24340
+ sourceItemId: {},
24341
+ analyticsMetadata: {}
24277
24342
  },
24278
24343
  setup(__props) {
24279
24344
  const props = __props;
@@ -24286,7 +24351,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24286
24351
  const paramsStore = useParamsStore();
24287
24352
  const trackingStore = useTrackingStore();
24288
24353
  const { layout } = storeToRefs(searchResultStore);
24289
- const { searchResultsRoutingBehavior, searchResultOptions, trackingOptions } = storeToRefs(optionsStore);
24354
+ const { searchResultsRoutingBehavior, searchResultOptions, productRecommendationOptions } = storeToRefs(optionsStore);
24290
24355
  const { query } = storeToRefs(paramsStore);
24291
24356
  const isInStock = ref(true);
24292
24357
  const listLayoutClass = computed(() => {
@@ -24383,7 +24448,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24383
24448
  itemId: id.value
24384
24449
  },
24385
24450
  options: { allowEmptySearchQuery: true },
24386
- filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0
24451
+ filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0,
24452
+ sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0,
24453
+ metadata: props.analyticsMetadata
24387
24454
  }
24388
24455
  };
24389
24456
  if (isDelayedClickTracking()) {
@@ -24427,7 +24494,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24427
24494
  onClick: handleClick,
24428
24495
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
24429
24496
  }), [
24430
- createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
24497
+ createVNode(_sfc_main$16, { options: badgesOptions.value }, null, 8, ["options"]),
24431
24498
  createBaseVNode("div", {
24432
24499
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24433
24500
  }, [
@@ -24448,14 +24515,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24448
24515
  onProductEvent: handleProductEvent
24449
24516
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24450
24517
  }), 128)),
24451
- createVNode(_sfc_main$15, {
24518
+ createVNode(_sfc_main$16, {
24452
24519
  options: badgesOptions.value,
24453
24520
  position: "image",
24454
24521
  class: "lupa-image-badges"
24455
24522
  }, null, 8, ["options"]),
24456
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24523
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24457
24524
  ], 8, _hoisted_2$j),
24458
- createBaseVNode("div", _hoisted_4$7, [
24525
+ createBaseVNode("div", _hoisted_4$6, [
24459
24526
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24460
24527
  return openBlock(), createBlock(_sfc_main$q, {
24461
24528
  class: "lupa-search-results-product-element",
@@ -24498,11 +24565,11 @@ const _hoisted_1$m = {
24498
24565
  "data-cy": "lupa-search-results-similar-queries"
24499
24566
  };
24500
24567
  const _hoisted_2$i = { class: "lupa-similar-queries-label" };
24501
- const _hoisted_3$c = {
24568
+ const _hoisted_3$b = {
24502
24569
  class: "lupa-similar-query-label",
24503
24570
  "data-cy": "lupa-similar-query-label"
24504
24571
  };
24505
- const _hoisted_4$6 = ["onClick"];
24572
+ const _hoisted_4$5 = ["onClick"];
24506
24573
  const _hoisted_5$3 = ["innerHTML"];
24507
24574
  const _hoisted_6$2 = { key: 0 };
24508
24575
  const _hoisted_7$1 = {
@@ -24538,12 +24605,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24538
24605
  }) => {
24539
24606
  paramsStore.goToResults({ searchText, facet });
24540
24607
  };
24608
+ const getClickMetadata = (similarQuery) => {
24609
+ var _a;
24610
+ const isRegularSimilarQuery = (_a = similarQuery.displayQuery) == null ? void 0 : _a.includes("<del>");
24611
+ return {
24612
+ _lupaEventSource: isRegularSimilarQuery ? "similarQueries" : "similarQueriesAI",
24613
+ _lupaUpdatedQuery: similarQuery.query
24614
+ };
24615
+ };
24541
24616
  return (_ctx, _cache) => {
24542
24617
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
24543
24618
  createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
24544
24619
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24545
24620
  return openBlock(), createElementBlock("div", { key: index }, [
24546
- createBaseVNode("div", _hoisted_3$c, [
24621
+ createBaseVNode("div", _hoisted_3$b, [
24547
24622
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24548
24623
  createBaseVNode("span", {
24549
24624
  id: "lupa-similar-query-text-component",
@@ -24555,7 +24630,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24555
24630
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24556
24631
  }, null, 8, _hoisted_5$3),
24557
24632
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24558
- ], 8, _hoisted_4$6)
24633
+ ], 8, _hoisted_4$5)
24559
24634
  ]),
24560
24635
  createBaseVNode("div", _hoisted_7$1, [
24561
24636
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24563,8 +24638,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24563
24638
  style: normalizeStyle(_ctx.columnSize),
24564
24639
  key: getDocumentKey(index2, product),
24565
24640
  product,
24566
- options: _ctx.productCardOptions
24567
- }, null, 8, ["style", "product", "options"]);
24641
+ options: _ctx.productCardOptions,
24642
+ "analytics-metadata": getClickMetadata(similarQuery)
24643
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24568
24644
  }), 128))
24569
24645
  ])
24570
24646
  ]);
@@ -24733,7 +24809,7 @@ const _hoisted_1$i = {
24733
24809
  "data-cy": "lupa-search-results-similar-results"
24734
24810
  };
24735
24811
  const _hoisted_2$f = { class: "lupa-similar-results-label" };
24736
- const _hoisted_3$b = {
24812
+ const _hoisted_3$a = {
24737
24813
  class: "lupa-products",
24738
24814
  "data-cy": "lupa-products"
24739
24815
  };
@@ -24752,17 +24828,23 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24752
24828
  const getDocumentKey = (index, product) => {
24753
24829
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24754
24830
  };
24831
+ const clickMetadata = computed(() => {
24832
+ return {
24833
+ _lupaEventSource: "similarResults"
24834
+ };
24835
+ });
24755
24836
  return (_ctx, _cache) => {
24756
24837
  return openBlock(), createElementBlock("div", _hoisted_1$i, [
24757
24838
  createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24758
- createBaseVNode("div", _hoisted_3$b, [
24839
+ createBaseVNode("div", _hoisted_3$a, [
24759
24840
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24760
24841
  return openBlock(), createBlock(_sfc_main$p, {
24761
24842
  style: normalizeStyle(_ctx.columnSize),
24762
24843
  key: getDocumentKey(index, product),
24763
24844
  product,
24764
- options: _ctx.productCardOptions
24765
- }, null, 8, ["style", "product", "options"]);
24845
+ options: _ctx.productCardOptions,
24846
+ "analytics-metadata": clickMetadata.value
24847
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
24766
24848
  }), 128))
24767
24849
  ])
24768
24850
  ]);
@@ -24873,8 +24955,8 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
24873
24955
  });
24874
24956
  const _hoisted_1$h = { class: "lupa-related-query-item" };
24875
24957
  const _hoisted_2$e = { class: "lupa-related-query-image" };
24876
- const _hoisted_3$a = { class: "lupa-related-query-label" };
24877
- const _hoisted_4$5 = { class: "lupa-related-query-title" };
24958
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
24959
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
24878
24960
  const _hoisted_5$2 = {
24879
24961
  key: 0,
24880
24962
  class: "lupa-related-query-count"
@@ -24972,7 +25054,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24972
25054
  var _a;
24973
25055
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
24974
25056
  createBaseVNode("div", _hoisted_2$e, [
24975
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
25057
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1m, {
24976
25058
  key: 0,
24977
25059
  "wrapper-class": "lupa-related-query-image-wrapper",
24978
25060
  "image-class": "lupa-related-query-image",
@@ -24980,8 +25062,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24980
25062
  options: image.value
24981
25063
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24982
25064
  ]),
24983
- createBaseVNode("div", _hoisted_3$a, [
24984
- createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
25065
+ createBaseVNode("div", _hoisted_3$9, [
25066
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
24985
25067
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24986
25068
  ])
24987
25069
  ]);
@@ -24996,7 +25078,7 @@ const _hoisted_2$d = {
24996
25078
  key: 0,
24997
25079
  class: "lupa-related-queries-title"
24998
25080
  };
24999
- const _hoisted_3$9 = ["onClick"];
25081
+ const _hoisted_3$8 = ["onClick"];
25000
25082
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
25001
25083
  __name: "RelatedQueries",
25002
25084
  props: {
@@ -25101,7 +25183,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
25101
25183
  "existing-items-from-other-queries": allDisplayItems.value,
25102
25184
  onLoaded: (item) => processLoadedItem(query, item)
25103
25185
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
25104
- ], 8, _hoisted_3$9)
25186
+ ], 8, _hoisted_3$8)
25105
25187
  ], 2)), [
25106
25188
  [vShow, querySourceResultMap.value[query.value] !== false]
25107
25189
  ]);
@@ -25143,7 +25225,7 @@ const _hoisted_1$f = {
25143
25225
  class: "lupa-redirection-suggestion"
25144
25226
  };
25145
25227
  const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
25146
- const _hoisted_3$8 = ["href"];
25228
+ const _hoisted_3$7 = ["href"];
25147
25229
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
25148
25230
  __name: "RedirectionSuggestions",
25149
25231
  props: {
@@ -25169,7 +25251,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
25169
25251
  return (_ctx, _cache) => {
25170
25252
  return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
25171
25253
  createBaseVNode("h4", _hoisted_2$c, [
25172
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
25254
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
25173
25255
  ])
25174
25256
  ])) : createCommentVNode("", true);
25175
25257
  };
@@ -25180,12 +25262,12 @@ const _hoisted_2$b = {
25180
25262
  class: "lupa-products",
25181
25263
  "data-cy": "lupa-products"
25182
25264
  };
25183
- const _hoisted_3$7 = {
25265
+ const _hoisted_3$6 = {
25184
25266
  key: 1,
25185
25267
  class: "lupa-empty-results",
25186
25268
  "data-cy": "lupa-no-results-in-page"
25187
25269
  };
25188
- const _hoisted_4$4 = {
25270
+ const _hoisted_4$3 = {
25189
25271
  key: 4,
25190
25272
  class: "lupa-empty-results",
25191
25273
  "data-cy": "lupa-no-results"
@@ -25286,6 +25368,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25286
25368
  var _a, _b;
25287
25369
  return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
25288
25370
  });
25371
+ const clickMetadata = computed(() => {
25372
+ const hasDidYouMean = Boolean(searchResult.value.suggestedSearchText);
25373
+ return hasDidYouMean ? {
25374
+ _lupaEventSource: "didYouMean",
25375
+ _lupaUpdatedQuery: searchResult.value.suggestedSearchText
25376
+ } : void 0;
25377
+ });
25289
25378
  const getProductKeyAction = (index, product) => {
25290
25379
  return getProductKey(`${index}`, product, props.options.idKey);
25291
25380
  };
@@ -25317,7 +25406,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25317
25406
  options: _ctx.options.relatedQueries
25318
25407
  }, null, 8, ["options"])) : createCommentVNode("", true),
25319
25408
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25320
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25409
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
25321
25410
  key: 0,
25322
25411
  options: (_a = _ctx.options.filters) != null ? _a : {}
25323
25412
  }, null, 8, ["options"])) : createCommentVNode("", true),
@@ -25328,7 +25417,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25328
25417
  "pagination-location": "top",
25329
25418
  onFilter: filter2
25330
25419
  }, null, 8, ["options"])) : createCommentVNode("", true),
25331
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
25420
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$W, {
25332
25421
  key: 2,
25333
25422
  class: normalizeClass(currentFiltersClass.value),
25334
25423
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25342,7 +25431,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25342
25431
  options: _ctx.options,
25343
25432
  "pagination-location": "top"
25344
25433
  }, null, 8, ["options"]),
25345
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
25434
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$W, {
25346
25435
  key: 0,
25347
25436
  class: normalizeClass(currentFiltersClass.value),
25348
25437
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -25362,11 +25451,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25362
25451
  style: normalizeStyle(columnSize.value),
25363
25452
  key: getProductKeyAction(index, product),
25364
25453
  product,
25365
- options: productCardOptions.value
25366
- }, null, 8, ["style", "product", "options"]);
25454
+ options: productCardOptions.value,
25455
+ "analytics-metadata": clickMetadata.value
25456
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
25367
25457
  }), 128))
25368
25458
  ]),
25369
- unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
25459
+ unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
25370
25460
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
25371
25461
  _ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
25372
25462
  key: 0,
@@ -25384,7 +25474,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25384
25474
  location: "bottom",
25385
25475
  sdkOptions: _ctx.options.options
25386
25476
  }, null, 8, ["options", "sdkOptions"])
25387
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
25477
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25388
25478
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
25389
25479
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
25390
25480
  ])) : createCommentVNode("", true),
@@ -25412,8 +25502,8 @@ const _hoisted_2$a = {
25412
25502
  key: 0,
25413
25503
  class: "lupa-category-back"
25414
25504
  };
25415
- const _hoisted_3$6 = ["href"];
25416
- const _hoisted_4$3 = {
25505
+ const _hoisted_3$5 = ["href"];
25506
+ const _hoisted_4$2 = {
25417
25507
  key: 1,
25418
25508
  class: "lupa-child-category-list"
25419
25509
  };
@@ -25471,11 +25561,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25471
25561
  "data-cy": "lupa-category-back",
25472
25562
  href: backUrlLink.value,
25473
25563
  onClick: handleNavigationBack
25474
- }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25564
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
25475
25565
  ])) : createCommentVNode("", true),
25476
- hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25566
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
25477
25567
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25478
- return openBlock(), createBlock(_sfc_main$U, {
25568
+ return openBlock(), createBlock(_sfc_main$V, {
25479
25569
  key: getCategoryKey(child),
25480
25570
  item: child,
25481
25571
  options: categoryOptions.value
@@ -25496,13 +25586,7 @@ const _hoisted_1$c = {
25496
25586
  key: 0,
25497
25587
  class: "lupa-container-title-summary-mobile"
25498
25588
  };
25499
- const _hoisted_2$9 = {
25500
- key: 4,
25501
- id: "lupa-search-results",
25502
- class: "top-layout-wrapper"
25503
- };
25504
- const _hoisted_3$5 = { class: "search-content" };
25505
- const _hoisted_4$2 = { id: "lupa-search-results" };
25589
+ const _hoisted_2$9 = { class: "search-content" };
25506
25590
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
25507
25591
  __name: "SearchResults",
25508
25592
  props: {
@@ -25528,7 +25612,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25528
25612
  var _a, _b;
25529
25613
  return (_b = (_a = props.initialFilters) != null ? _a : extractedInitialFilters.value) != null ? _b : {};
25530
25614
  });
25531
- const { currentQueryText, hasResults, currentFilterCount } = storeToRefs(searchResultStore);
25615
+ const { currentQueryText, hasResults, currentFilterCount, isMobileSidebarVisible, layout } = storeToRefs(searchResultStore);
25532
25616
  const { searchString, sortParams } = storeToRefs(paramStore);
25533
25617
  const { defaultSearchResultPageSize } = storeToRefs(optionStore);
25534
25618
  const searchResultsFilters = ref(null);
@@ -25544,6 +25628,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25544
25628
  const isTitleResultTopPosition = computed(() => {
25545
25629
  return props.options.searchTitlePosition === "search-results-top";
25546
25630
  });
25631
+ const indicatorClasses = computed(() => {
25632
+ return {
25633
+ "lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
25634
+ "lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
25635
+ "lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
25636
+ };
25637
+ });
25547
25638
  const handlePopState = () => {
25548
25639
  var _a;
25549
25640
  const searchParams = getSearchParams((_a = props.options.ssr) == null ? void 0 : _a.url);
@@ -25717,8 +25808,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25717
25808
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
25718
25809
  }, [
25719
25810
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25720
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25721
- createVNode(_sfc_main$X, {
25811
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25812
+ createVNode(_sfc_main$Y, {
25722
25813
  "show-summary": true,
25723
25814
  options: _ctx.options,
25724
25815
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -25728,26 +25819,30 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25728
25819
  key: 1,
25729
25820
  options: _ctx.options
25730
25821
  }, null, 8, ["options"])) : createCommentVNode("", true),
25731
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
25822
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
25732
25823
  key: 2,
25733
25824
  options: _ctx.options.filters,
25734
25825
  onFilter: handleParamsChange
25735
25826
  }, null, 8, ["options"])) : createCommentVNode("", true),
25736
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
25827
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
25737
25828
  key: 3,
25738
25829
  breadcrumbs: _ctx.options.breadcrumbs
25739
25830
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
25740
- isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
25741
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25831
+ isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
25832
+ key: 4,
25833
+ id: "lupa-search-results",
25834
+ class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
25835
+ }, [
25836
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25742
25837
  key: 0,
25743
25838
  options: (_b = _ctx.options.filters) != null ? _b : {},
25744
25839
  ref_key: "searchResultsFilters",
25745
25840
  ref: searchResultsFilters,
25746
25841
  onFilter: handleParamsChange
25747
25842
  }, null, 8, ["options"])) : createCommentVNode("", true),
25748
- createBaseVNode("div", _hoisted_3$5, [
25749
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25750
- createVNode(_sfc_main$X, {
25843
+ createBaseVNode("div", _hoisted_2$9, [
25844
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25845
+ createVNode(_sfc_main$Y, {
25751
25846
  options: _ctx.options,
25752
25847
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
25753
25848
  }, null, 8, ["options", "is-product-list"]),
@@ -25762,14 +25857,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25762
25857
  _: 3
25763
25858
  }, 8, ["options", "ssr"])
25764
25859
  ])
25765
- ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25766
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25767
- createVNode(_sfc_main$X, {
25860
+ ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25861
+ createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25862
+ createVNode(_sfc_main$Y, {
25768
25863
  options: _ctx.options,
25769
25864
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25770
25865
  }, null, 8, ["options", "is-product-list"]),
25771
- createBaseVNode("div", _hoisted_4$2, [
25772
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25866
+ createBaseVNode("div", {
25867
+ id: "lupa-search-results",
25868
+ class: normalizeClass(indicatorClasses.value)
25869
+ }, [
25870
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
25773
25871
  key: 0,
25774
25872
  options: (_e = _ctx.options.filters) != null ? _e : {},
25775
25873
  ref_key: "searchResultsFilters",
@@ -25794,7 +25892,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25794
25892
  key: "0"
25795
25893
  } : void 0
25796
25894
  ]), 1032, ["options", "ssr"])
25797
- ])
25895
+ ], 2)
25798
25896
  ], 64))
25799
25897
  ], 2);
25800
25898
  };
@@ -31403,7 +31501,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31403
31501
  onClick: withModifiers(innerClick, ["stop"])
31404
31502
  }, [
31405
31503
  createBaseVNode("div", _hoisted_2$7, [
31406
- createVNode(_sfc_main$_, {
31504
+ createVNode(_sfc_main$$, {
31407
31505
  options: fullSearchBoxOptions.value,
31408
31506
  "is-search-container": true,
31409
31507
  ref_key: "searchBox",
@@ -32192,6 +32290,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32192
32290
  optionsStore.setSearchResultOptions({
32193
32291
  options: props.options
32194
32292
  });
32293
+ optionsStore.setProductRecommendationOptions({
32294
+ options: props.options
32295
+ });
32195
32296
  if (props.options.lazyLoad) {
32196
32297
  initIntersectionObserver();
32197
32298
  } else {
@@ -32296,8 +32397,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32296
32397
  createVNode(_sfc_main$p, {
32297
32398
  product,
32298
32399
  options: _ctx.options,
32299
- "click-tracking-settings": clickTrackingSettings.value
32300
- }, null, 8, ["product", "options", "click-tracking-settings"])
32400
+ "click-tracking-settings": clickTrackingSettings.value,
32401
+ "lupa-click-tracking-type": `recommendedItemClick`,
32402
+ "source-item-id": itemId.value
32403
+ }, null, 8, ["product", "options", "click-tracking-settings", "source-item-id"])
32301
32404
  ]),
32302
32405
  _: 2
32303
32406
  }, 1024);
@@ -32311,8 +32414,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32311
32414
  key: getProductKeyAction(index, product),
32312
32415
  product,
32313
32416
  options: _ctx.options,
32314
- "lupa-click-tracking-type": `recommendedItemClick`
32315
- }, null, 8, ["style", "product", "options"]);
32417
+ "lupa-click-tracking-type": `recommendedItemClick`,
32418
+ "source-item-id": itemId.value
32419
+ }, null, 8, ["style", "product", "options", "source-item-id"]);
32316
32420
  }), 128))
32317
32421
  ]))
32318
32422
  ])) : createCommentVNode("", true)
@@ -32927,7 +33031,7 @@ const _hoisted_4 = {
32927
33031
  key: 0,
32928
33032
  class: "lupasearch-chat-content"
32929
33033
  };
32930
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
33034
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
32931
33035
  __name: "ChatContainer",
32932
33036
  props: {
32933
33037
  options: {}
@@ -33050,7 +33154,7 @@ const initPinia = () => {
33050
33154
  const setupTracking = (options) => {
33051
33155
  const pinia = initPinia();
33052
33156
  const store = useOptionsStore(pinia);
33053
- initTracking(options);
33157
+ initTracking$1(options);
33054
33158
  store.setTrackingOptions({ options });
33055
33159
  };
33056
33160
  const displayDiscountedPriceSection = (doc2, options) => {
@@ -38945,7 +39049,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
38945
39049
  };
38946
39050
  __expose({ fetch: fetch2 });
38947
39051
  return (_ctx, _cache) => {
38948
- return openBlock(), createBlock(unref(_sfc_main$_), {
39052
+ return openBlock(), createBlock(unref(_sfc_main$$), {
38949
39053
  options: fullSearchBoxOptions.value,
38950
39054
  ref_key: "searchBox",
38951
39055
  ref: searchBox2
@@ -39500,7 +39604,7 @@ const chat = (options, mountOptions) => {
39500
39604
  const instance = createVue(
39501
39605
  options.displayOptions.containerSelector,
39502
39606
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
39503
- _sfc_main$1u,
39607
+ _sfc_main$1v,
39504
39608
  {
39505
39609
  options
39506
39610
  }
@@ -39925,6 +40029,16 @@ const mountChat = (configuration, options, fetch2 = true, remount = false) => __
39925
40029
  { fetch: fetch2, allowedMountUrls }
39926
40030
  );
39927
40031
  });
40032
+ const initTracking = (configuration) => __async(exports, null, function* () {
40033
+ let trackingOptions = { trackBase: false };
40034
+ if (configuration.tracking) {
40035
+ const resolvedConfiguration = JSON.parse(configuration.tracking);
40036
+ if (resolvedConfiguration.trackBase) {
40037
+ trackingOptions = resolvedConfiguration;
40038
+ }
40039
+ }
40040
+ setupTracking(trackingOptions);
40041
+ });
39928
40042
  const mount = (_0, ..._1) => __async(exports, [_0, ..._1], function* (configuration, options = { environment: "production" }, optionOverrides = {}, fetch2 = true, remount = false) {
39929
40043
  yield applyStyles(configuration);
39930
40044
  const mountPromises = [
@@ -39935,6 +40049,7 @@ const mount = (_0, ..._1) => __async(exports, [_0, ..._1], function* (configurat
39935
40049
  mountChat(configuration, options, fetch2, remount)
39936
40050
  ];
39937
40051
  yield Promise.all(mountPromises);
40052
+ initTracking(configuration);
39938
40053
  });
39939
40054
  const init$1 = (_0, ..._1) => __async(exports, [_0, ..._1], function* (configurationKey, options = { environment: "production" }, optionOverrides = {}) {
39940
40055
  var _a;