@getlupa/client 1.22.3 → 1.23.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.
@@ -18061,8 +18061,18 @@ var __async = (__this, __arguments, generator) => {
18061
18061
  );
18062
18062
  const trackingOptions = ref({});
18063
18063
  const searchResultInitialFilters = ref({});
18064
+ const expandedFacetsInner = ref([]);
18064
18065
  const productRecommendationOptions = ref({});
18065
18066
  const screenStore = useScreenStore();
18067
+ const expandedFacets = computed({
18068
+ get: () => {
18069
+ var _a25, _b25, _c, _d, _e;
18070
+ return ((_a25 = expandedFacetsInner.value) == null ? void 0 : _a25.length) ? expandedFacetsInner.value : (_e = (_d = (_c = (_b25 = searchResultOptions.value) == null ? void 0 : _b25.filters) == null ? void 0 : _c.facets) == null ? void 0 : _d.expand) != null ? _e : [];
18071
+ },
18072
+ set: (value) => {
18073
+ expandedFacetsInner.value = value;
18074
+ }
18075
+ });
18066
18076
  const envOptions = computed(
18067
18077
  () => {
18068
18078
  var _a25;
@@ -18162,6 +18172,7 @@ var __async = (__this, __arguments, generator) => {
18162
18172
  currentResolutionPageSizes,
18163
18173
  productRecommendationOptions,
18164
18174
  ariaLabels,
18175
+ expandedFacets,
18165
18176
  setSearchBoxOptions,
18166
18177
  setTrackingOptions,
18167
18178
  setSearchResultOptions,
@@ -19580,7 +19591,7 @@ var __async = (__this, __arguments, generator) => {
19580
19591
  }
19581
19592
  return Env[environment] || Env["production"];
19582
19593
  };
19583
- const _sfc_main$1A = /* @__PURE__ */ defineComponent({
19594
+ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
19584
19595
  __name: "VoiceSearchProgressCircle",
19585
19596
  props: {
19586
19597
  isRecording: { type: Boolean },
@@ -19793,15 +19804,15 @@ var __async = (__this, __arguments, generator) => {
19793
19804
  closeSocket
19794
19805
  };
19795
19806
  }
19796
- const _hoisted_1$1l = {
19807
+ const _hoisted_1$1o = {
19797
19808
  key: 0,
19798
19809
  class: "lupa-dialog-overlay"
19799
19810
  };
19800
- const _hoisted_2$W = { class: "lupa-dialog-content" };
19801
- const _hoisted_3$E = { class: "lupa-listening-text" };
19802
- const _hoisted_4$u = { class: "lupa-mic-button-wrapper" };
19803
- const _hoisted_5$l = ["aria-label"];
19804
- const _sfc_main$1z = /* @__PURE__ */ defineComponent({
19811
+ const _hoisted_2$Y = { class: "lupa-dialog-content" };
19812
+ const _hoisted_3$G = { class: "lupa-listening-text" };
19813
+ const _hoisted_4$w = { class: "lupa-mic-button-wrapper" };
19814
+ const _hoisted_5$m = ["aria-label"];
19815
+ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
19805
19816
  __name: "VoiceSearchDialog",
19806
19817
  props: {
19807
19818
  isOpen: { type: Boolean },
@@ -19906,21 +19917,21 @@ var __async = (__this, __arguments, generator) => {
19906
19917
  return (_ctx, _cache) => {
19907
19918
  var _a25, _b25;
19908
19919
  return openBlock(), createElementBlock("div", null, [
19909
- props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
19920
+ props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1o, [
19910
19921
  createBaseVNode("button", {
19911
19922
  class: "lupa-dialog-box-close-button",
19912
19923
  onClick: _cache[0] || (_cache[0] = () => emit2("close"))
19913
19924
  }),
19914
- createBaseVNode("div", _hoisted_2$W, [
19915
- createBaseVNode("p", _hoisted_3$E, toDisplayString(description.value), 1),
19916
- createBaseVNode("div", _hoisted_4$u, [
19925
+ createBaseVNode("div", _hoisted_2$Y, [
19926
+ createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
19927
+ createBaseVNode("div", _hoisted_4$w, [
19917
19928
  createBaseVNode("button", {
19918
19929
  class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
19919
19930
  onClick: handleRecordingButtonClick,
19920
19931
  "aria-controls": "voice-search-microphone",
19921
19932
  "aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
19922
- }, null, 10, _hoisted_5$l),
19923
- createVNode(_sfc_main$1A, {
19933
+ }, null, 10, _hoisted_5$m),
19934
+ createVNode(_sfc_main$1G, {
19924
19935
  ref_key: "voiceSearchProgressBar",
19925
19936
  ref: voiceSearchProgressBar,
19926
19937
  class: "lupa-progress-circle",
@@ -19935,18 +19946,18 @@ var __async = (__this, __arguments, generator) => {
19935
19946
  };
19936
19947
  }
19937
19948
  });
19938
- const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
19939
- const _hoisted_2$V = { class: "lupa-input-clear" };
19940
- const _hoisted_3$D = { id: "lupa-search-box-input" };
19941
- const _hoisted_4$t = ["value"];
19942
- const _hoisted_5$k = ["aria-label", "placeholder"];
19943
- const _hoisted_6$8 = {
19949
+ const _hoisted_1$1n = { id: "lupa-search-box-input-container" };
19950
+ const _hoisted_2$X = { class: "lupa-input-clear" };
19951
+ const _hoisted_3$F = { id: "lupa-search-box-input" };
19952
+ const _hoisted_4$v = ["value"];
19953
+ const _hoisted_5$l = ["aria-label", "placeholder"];
19954
+ const _hoisted_6$7 = {
19944
19955
  key: 0,
19945
19956
  class: "lupa-close-label"
19946
19957
  };
19947
19958
  const _hoisted_7$5 = { key: 1 };
19948
19959
  const _hoisted_8$3 = ["aria-label"];
19949
- const _sfc_main$1y = /* @__PURE__ */ defineComponent({
19960
+ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
19950
19961
  __name: "SearchBoxInput",
19951
19962
  props: {
19952
19963
  options: {},
@@ -20078,20 +20089,20 @@ var __async = (__this, __arguments, generator) => {
20078
20089
  };
20079
20090
  __expose({ focus });
20080
20091
  return (_ctx, _cache) => {
20081
- return openBlock(), createElementBlock("div", _hoisted_1$1k, [
20082
- createBaseVNode("div", _hoisted_2$V, [
20092
+ return openBlock(), createElementBlock("div", _hoisted_1$1n, [
20093
+ createBaseVNode("div", _hoisted_2$X, [
20083
20094
  createBaseVNode("div", {
20084
20095
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
20085
20096
  onClick: clear
20086
20097
  }, null, 2)
20087
20098
  ]),
20088
- createBaseVNode("div", _hoisted_3$D, [
20099
+ createBaseVNode("div", _hoisted_3$F, [
20089
20100
  createBaseVNode("input", {
20090
20101
  class: "lupa-hint",
20091
20102
  "aria-hidden": "true",
20092
20103
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
20093
20104
  disabled: ""
20094
- }, null, 8, _hoisted_4$t),
20105
+ }, null, 8, _hoisted_4$v),
20095
20106
  withDirectives(createBaseVNode("input", mergeProps({
20096
20107
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
20097
20108
  }, inputAttributes.value, {
@@ -20105,7 +20116,7 @@ var __async = (__this, __arguments, generator) => {
20105
20116
  placeholder: labels.value.placeholder,
20106
20117
  onInput: handleInput,
20107
20118
  onFocus: handleFocus
20108
- }), null, 16, _hoisted_5$k), [
20119
+ }), null, 16, _hoisted_5$l), [
20109
20120
  [vModelText, inputValue.value]
20110
20121
  ]),
20111
20122
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -20120,7 +20131,7 @@ var __async = (__this, __arguments, generator) => {
20120
20131
  class: "lupa-close-search-container",
20121
20132
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
20122
20133
  }, [
20123
- labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
20134
+ labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
20124
20135
  ])) : createCommentVNode("", true),
20125
20136
  isVoiceSearchEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
20126
20137
  createBaseVNode("button", {
@@ -20131,7 +20142,7 @@ var __async = (__this, __arguments, generator) => {
20131
20142
  "aria-label": voiceSearchAriaLabel.value
20132
20143
  }, null, 8, _hoisted_8$3)
20133
20144
  ])) : createCommentVNode("", true),
20134
- isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1z, {
20145
+ isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1F, {
20135
20146
  key: 2,
20136
20147
  ref_key: "voiceDialogOverlay",
20137
20148
  ref: voiceDialogOverlay,
@@ -20145,7 +20156,7 @@ var __async = (__this, __arguments, generator) => {
20145
20156
  };
20146
20157
  }
20147
20158
  });
20148
- const _sfc_main$1x = /* @__PURE__ */ defineComponent({
20159
+ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20149
20160
  __name: "SearchBoxMoreResults",
20150
20161
  props: {
20151
20162
  labels: {},
@@ -20183,9 +20194,9 @@ var __async = (__this, __arguments, generator) => {
20183
20194
  };
20184
20195
  }
20185
20196
  });
20186
- const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
20187
- const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
20188
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
20197
+ const _hoisted_1$1m = { class: "lupa-search-box-history-item" };
20198
+ const _hoisted_2$W = { class: "lupa-search-box-history-item-content" };
20199
+ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20189
20200
  __name: "SearchBoxHistoryItem",
20190
20201
  props: {
20191
20202
  item: {},
@@ -20202,8 +20213,8 @@ var __async = (__this, __arguments, generator) => {
20202
20213
  emit2("click", { query: props.item });
20203
20214
  };
20204
20215
  return (_ctx, _cache) => {
20205
- return openBlock(), createElementBlock("div", _hoisted_1$1j, [
20206
- createBaseVNode("div", _hoisted_2$U, [
20216
+ return openBlock(), createElementBlock("div", _hoisted_1$1m, [
20217
+ createBaseVNode("div", _hoisted_2$W, [
20207
20218
  createBaseVNode("div", {
20208
20219
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
20209
20220
  onClick: click2
@@ -20217,11 +20228,11 @@ var __async = (__this, __arguments, generator) => {
20217
20228
  };
20218
20229
  }
20219
20230
  });
20220
- const _hoisted_1$1i = {
20231
+ const _hoisted_1$1l = {
20221
20232
  key: 0,
20222
20233
  class: "lupa-search-box-history-panel"
20223
20234
  };
20224
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
20235
+ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20225
20236
  __name: "SearchBoxHistoryPanel",
20226
20237
  props: {
20227
20238
  options: {}
@@ -20272,9 +20283,9 @@ var __async = (__this, __arguments, generator) => {
20272
20283
  }
20273
20284
  };
20274
20285
  return (_ctx, _cache) => {
20275
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
20286
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
20276
20287
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
20277
- return openBlock(), createBlock(_sfc_main$1w, {
20288
+ return openBlock(), createBlock(_sfc_main$1C, {
20278
20289
  key: item,
20279
20290
  item,
20280
20291
  highlighted: index === highlightIndex.value,
@@ -20290,15 +20301,15 @@ var __async = (__this, __arguments, generator) => {
20290
20301
  };
20291
20302
  }
20292
20303
  });
20293
- const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
20294
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
20304
+ const _hoisted_1$1k = { class: "lupa-search-box-no-results" };
20305
+ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
20295
20306
  __name: "SearchBoxNoResults",
20296
20307
  props: {
20297
20308
  labels: {}
20298
20309
  },
20299
20310
  setup(__props) {
20300
20311
  return (_ctx, _cache) => {
20301
- return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
20312
+ return openBlock(), createElementBlock("p", _hoisted_1$1k, toDisplayString(_ctx.labels.noResults), 1);
20302
20313
  };
20303
20314
  }
20304
20315
  });
@@ -20330,26 +20341,26 @@ var __async = (__this, __arguments, generator) => {
20330
20341
  }
20331
20342
  return gridTemplate.join(" ");
20332
20343
  };
20333
- const _hoisted_1$1g = ["innerHTML"];
20334
- const _hoisted_2$T = {
20344
+ const _hoisted_1$1j = ["innerHTML"];
20345
+ const _hoisted_2$V = {
20335
20346
  key: 1,
20336
20347
  "data-cy": "lupa-suggestion-value",
20337
20348
  class: "lupa-suggestion-value"
20338
20349
  };
20339
- const _hoisted_3$C = {
20350
+ const _hoisted_3$E = {
20340
20351
  key: 2,
20341
20352
  class: "lupa-suggestion-facet",
20342
20353
  "data-cy": "lupa-suggestion-facet"
20343
20354
  };
20344
- const _hoisted_4$s = {
20355
+ const _hoisted_4$u = {
20345
20356
  class: "lupa-suggestion-facet-label",
20346
20357
  "data-cy": "lupa-suggestion-facet-label"
20347
20358
  };
20348
- const _hoisted_5$j = {
20359
+ const _hoisted_5$k = {
20349
20360
  class: "lupa-suggestion-facet-value",
20350
20361
  "data-cy": "lupa-suggestion-facet-value"
20351
20362
  };
20352
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
20363
+ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
20353
20364
  __name: "SearchBoxSuggestion",
20354
20365
  props: {
20355
20366
  suggestion: {},
@@ -20386,20 +20397,20 @@ var __async = (__this, __arguments, generator) => {
20386
20397
  class: "lupa-suggestion-value",
20387
20398
  "data-cy": "lupa-suggestion-value",
20388
20399
  innerHTML: _ctx.suggestion.displayHighlight
20389
- }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
20390
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
20391
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
20392
- createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
20400
+ }, null, 8, _hoisted_1$1j)) : (openBlock(), createElementBlock("div", _hoisted_2$V, toDisplayString(_ctx.suggestion.display), 1)),
20401
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
20402
+ createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
20403
+ createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
20393
20404
  ])) : createCommentVNode("", true)
20394
20405
  ]);
20395
20406
  };
20396
20407
  }
20397
20408
  });
20398
- const _hoisted_1$1f = {
20409
+ const _hoisted_1$1i = {
20399
20410
  id: "lupa-search-box-suggestions",
20400
20411
  "data-cy": "lupa-search-box-suggestions"
20401
20412
  };
20402
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
20413
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
20403
20414
  __name: "SearchBoxSuggestions",
20404
20415
  props: {
20405
20416
  items: {},
@@ -20466,9 +20477,9 @@ var __async = (__this, __arguments, generator) => {
20466
20477
  });
20467
20478
  });
20468
20479
  return (_ctx, _cache) => {
20469
- return openBlock(), createElementBlock("div", _hoisted_1$1f, [
20480
+ return openBlock(), createElementBlock("div", _hoisted_1$1i, [
20470
20481
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
20471
- return openBlock(), createBlock(_sfc_main$1t, {
20482
+ return openBlock(), createBlock(_sfc_main$1z, {
20472
20483
  key: getSuggestionKey(item),
20473
20484
  class: normalizeClass([
20474
20485
  "lupa-suggestion",
@@ -20500,7 +20511,7 @@ var __async = (__this, __arguments, generator) => {
20500
20511
  }, timeout);
20501
20512
  };
20502
20513
  };
20503
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
20514
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
20504
20515
  __name: "SearchBoxSuggestionsWrapper",
20505
20516
  props: {
20506
20517
  panel: {},
@@ -20543,7 +20554,7 @@ var __async = (__this, __arguments, generator) => {
20543
20554
  const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
20544
20555
  watch(() => props.panel.limit, getSuggestionsDebounced);
20545
20556
  return (_ctx, _cache) => {
20546
- return openBlock(), createBlock(_sfc_main$1s, {
20557
+ return openBlock(), createBlock(_sfc_main$1y, {
20547
20558
  items: searchResult.value,
20548
20559
  highlight: _ctx.panel.highlight,
20549
20560
  queryKey: _ctx.panel.queryKey,
@@ -29825,9 +29836,9 @@ and ensure you are accounting for this risk.
29825
29836
  targetImage.src = placeholder;
29826
29837
  }
29827
29838
  };
29828
- const _hoisted_1$1e = ["src"];
29829
- const _hoisted_2$S = ["src"];
29830
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
29839
+ const _hoisted_1$1h = ["src"];
29840
+ const _hoisted_2$U = ["src"];
29841
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
29831
29842
  __name: "ProductImage",
29832
29843
  props: {
29833
29844
  item: {},
@@ -29969,7 +29980,7 @@ and ensure you are accounting for this risk.
29969
29980
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
29970
29981
  onError: replaceWithPlaceholder,
29971
29982
  key: finalUrl.value
29972
- }), null, 16, _hoisted_1$1e))
29983
+ }), null, 16, _hoisted_1$1h))
29973
29984
  ]),
29974
29985
  _: 1
29975
29986
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -29977,12 +29988,12 @@ and ensure you are accounting for this risk.
29977
29988
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
29978
29989
  style: styleOverride.value,
29979
29990
  src: finalMainImageUrl.value
29980
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
29991
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$U))
29981
29992
  ], 38);
29982
29993
  };
29983
29994
  }
29984
29995
  });
29985
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
29996
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
29986
29997
  __name: "SearchBoxProductImage",
29987
29998
  props: {
29988
29999
  item: {},
@@ -29990,7 +30001,7 @@ and ensure you are accounting for this risk.
29990
30001
  },
29991
30002
  setup(__props) {
29992
30003
  return (_ctx, _cache) => {
29993
- return openBlock(), createBlock(_sfc_main$1q, {
30004
+ return openBlock(), createBlock(_sfc_main$1w, {
29994
30005
  item: _ctx.item,
29995
30006
  options: _ctx.options,
29996
30007
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -29999,12 +30010,12 @@ and ensure you are accounting for this risk.
29999
30010
  };
30000
30011
  }
30001
30012
  });
30002
- const _hoisted_1$1d = ["innerHTML"];
30003
- const _hoisted_2$R = {
30013
+ const _hoisted_1$1g = ["innerHTML"];
30014
+ const _hoisted_2$T = {
30004
30015
  key: 1,
30005
30016
  class: "lupa-search-box-product-title"
30006
30017
  };
30007
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30018
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30008
30019
  __name: "SearchBoxProductTitle",
30009
30020
  props: {
30010
30021
  item: {},
@@ -30027,18 +30038,18 @@ and ensure you are accounting for this risk.
30027
30038
  key: 0,
30028
30039
  class: "lupa-search-box-product-title",
30029
30040
  innerHTML: sanitizedTitle.value
30030
- }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
30041
+ }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, [
30031
30042
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
30032
30043
  ]));
30033
30044
  };
30034
30045
  }
30035
30046
  });
30036
- const _hoisted_1$1c = ["innerHTML"];
30037
- const _hoisted_2$Q = {
30047
+ const _hoisted_1$1f = ["innerHTML"];
30048
+ const _hoisted_2$S = {
30038
30049
  key: 1,
30039
30050
  class: "lupa-search-box-product-description"
30040
30051
  };
30041
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
30052
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30042
30053
  __name: "SearchBoxProductDescription",
30043
30054
  props: {
30044
30055
  item: {},
@@ -30061,12 +30072,12 @@ and ensure you are accounting for this risk.
30061
30072
  key: 0,
30062
30073
  class: "lupa-search-box-product-description",
30063
30074
  innerHTML: sanitizedDescription.value
30064
- }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
30075
+ }, null, 8, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(description.value), 1));
30065
30076
  };
30066
30077
  }
30067
30078
  });
30068
- const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
30069
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
30079
+ const _hoisted_1$1e = { class: "lupa-search-box-product-price" };
30080
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30070
30081
  __name: "SearchBoxProductPrice",
30071
30082
  props: {
30072
30083
  item: {},
@@ -30088,13 +30099,13 @@ and ensure you are accounting for this risk.
30088
30099
  );
30089
30100
  });
30090
30101
  return (_ctx, _cache) => {
30091
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
30102
+ return openBlock(), createElementBlock("div", _hoisted_1$1e, [
30092
30103
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
30093
30104
  ]);
30094
30105
  };
30095
30106
  }
30096
30107
  });
30097
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
30108
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
30098
30109
  __name: "SearchBoxProductRegularPrice",
30099
30110
  props: {
30100
30111
  item: {},
@@ -30125,12 +30136,12 @@ and ensure you are accounting for this risk.
30125
30136
  };
30126
30137
  }
30127
30138
  });
30128
- const _hoisted_1$1a = ["innerHTML"];
30129
- const _hoisted_2$P = { key: 0 };
30130
- const _hoisted_3$B = { key: 1 };
30131
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
30132
- const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
30133
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
30139
+ const _hoisted_1$1d = ["innerHTML"];
30140
+ const _hoisted_2$R = { key: 0 };
30141
+ const _hoisted_3$D = { key: 1 };
30142
+ const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
30143
+ const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
30144
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30134
30145
  __name: "SearchBoxProductCustom",
30135
30146
  props: {
30136
30147
  item: {},
@@ -30156,20 +30167,20 @@ and ensure you are accounting for this risk.
30156
30167
  key: 0,
30157
30168
  class: [className.value, "lupa-search-box-product-custom"],
30158
30169
  innerHTML: text.value
30159
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
30170
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", mergeProps({
30160
30171
  key: 1,
30161
30172
  class: [className.value, "lupa-search-box-product-custom"]
30162
30173
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
30163
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
30164
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
30165
- createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
30174
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30175
+ createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
30176
+ createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
30166
30177
  ]))
30167
30178
  ], 16));
30168
30179
  };
30169
30180
  }
30170
30181
  });
30171
- const _hoisted_1$19 = ["innerHTML"];
30172
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
30182
+ const _hoisted_1$1c = ["innerHTML"];
30183
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30173
30184
  __name: "SearchBoxProductCustomHtml",
30174
30185
  props: {
30175
30186
  item: {},
@@ -30194,7 +30205,7 @@ and ensure you are accounting for this risk.
30194
30205
  return openBlock(), createElementBlock("div", mergeProps({
30195
30206
  class: className.value,
30196
30207
  innerHTML: text.value
30197
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$19);
30208
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1c);
30198
30209
  };
30199
30210
  }
30200
30211
  });
@@ -30252,7 +30263,9 @@ and ensure you are accounting for this risk.
30252
30263
  const loadingFacets = ref(false);
30253
30264
  const loadingRefiners = ref(false);
30254
30265
  const loadingRelatedQueries = ref(false);
30255
- const isMobileSidebarVisible = ref(false);
30266
+ const isFilterSidebarVisible = ref(false);
30267
+ const isSidebarClosing = ref(false);
30268
+ const isSortingSidebarVisible = ref(false);
30256
30269
  const relatedCategoryChildren = ref([]);
30257
30270
  const lastRequestId = ref("");
30258
30271
  const searchRequestResults = ref({});
@@ -30334,16 +30347,36 @@ and ensure you are accounting for this risk.
30334
30347
  return hasResults.value && ((_a25 = searchResult.value.offset) != null ? _a25 : 0) >= totalItems.value;
30335
30348
  }
30336
30349
  );
30350
+ const toggleSidebarState = ({
30351
+ visible,
30352
+ sidebar = "filter"
30353
+ }) => {
30354
+ if (sidebar === "sorting") {
30355
+ isSortingSidebarVisible.value = visible;
30356
+ return;
30357
+ }
30358
+ isFilterSidebarVisible.value = visible;
30359
+ };
30337
30360
  const setSidebarState = ({
30338
30361
  visible,
30339
- disableBodyScrolling = true
30362
+ disableBodyScrolling = true,
30363
+ sidebar = "filter"
30340
30364
  }) => {
30365
+ var _a25, _b25, _c, _d;
30341
30366
  if (visible && disableBodyScrolling) {
30342
30367
  disableBodyScroll();
30343
30368
  } else {
30344
30369
  enableBodyScroll();
30345
30370
  }
30346
- isMobileSidebarVisible.value = visible;
30371
+ if (visible || !((_d = (_c = (_b25 = (_a25 = searchResultOptions == null ? void 0 : searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.drawer) == null ? void 0 : _d.sidebarCloseDelay)) {
30372
+ toggleSidebarState({ visible, sidebar });
30373
+ } else {
30374
+ isSidebarClosing.value = true;
30375
+ setTimeout(() => {
30376
+ toggleSidebarState({ visible, sidebar });
30377
+ isSidebarClosing.value = false;
30378
+ }, searchResultOptions.value.filters.facets.style.drawer.sidebarCloseDelay);
30379
+ }
30347
30380
  };
30348
30381
  const queryFacet = (_0) => __async2(null, [_0], function* ({ queryKey, facetKey }) {
30349
30382
  var _a25, _b25, _c, _d;
@@ -30445,13 +30478,28 @@ and ensure you are accounting for this risk.
30445
30478
  const setRelatedCategoryChildren = (children) => {
30446
30479
  relatedCategoryChildren.value = [...children];
30447
30480
  };
30481
+ const preconfiguredRelatedQueryKeys = computed(() => {
30482
+ var _a25, _b25, _c, _d, _e;
30483
+ return (_e = (_d = (_c = (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.relatedQueries) == null ? void 0 : _b25.source) == null ? void 0 : _c.queries) == null ? void 0 : _d.map((q) => q.facetKey)) != null ? _e : [];
30484
+ });
30485
+ const relatedQueryFacetKeys = computed(() => {
30486
+ var _a25, _b25, _c;
30487
+ const keysFromRelatedResults = (_c = (_b25 = (_a25 = relatedQueriesResult.value) == null ? void 0 : _a25.relatedQueries) == null ? void 0 : _b25.map((rq) => rq.facetKey)) != null ? _c : [];
30488
+ return Array.from(/* @__PURE__ */ new Set([...preconfiguredRelatedQueryKeys.value, ...keysFromRelatedResults]));
30489
+ });
30448
30490
  const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(null, null, function* () {
30449
- var _a25, _b25;
30491
+ var _a25, _b25, _c;
30450
30492
  loadingRelatedQueries.value = true;
30451
30493
  const context = getLupaTrackingContext();
30452
30494
  const searchText = (_b25 = (_a25 = result2.suggestedSearchText) != null ? _a25 : result2.searchText) != null ? _b25 : "";
30495
+ const publicQueryFiltersWithoutRelatedKeys = __spreadValues2({}, (_c = publicQuery.filters) != null ? _c : {});
30496
+ relatedQueryFacetKeys.value.forEach((facetKey) => {
30497
+ delete publicQueryFiltersWithoutRelatedKeys[facetKey];
30498
+ });
30499
+ const hasRemainingFilters = Object.keys(publicQueryFiltersWithoutRelatedKeys != null ? publicQueryFiltersWithoutRelatedKeys : {}).length > 0;
30453
30500
  const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
30454
- searchText
30501
+ searchText,
30502
+ filters: hasRemainingFilters ? publicQueryFiltersWithoutRelatedKeys : void 0
30455
30503
  }), context), {
30456
30504
  modifiers: { facets: false, refiners: true }
30457
30505
  });
@@ -30467,7 +30515,9 @@ and ensure you are accounting for this risk.
30467
30515
  });
30468
30516
  });
30469
30517
  return {
30470
- isMobileSidebarVisible,
30518
+ isFilterSidebarVisible,
30519
+ isSortingSidebarVisible,
30520
+ isSidebarClosing,
30471
30521
  searchResult,
30472
30522
  columnCount,
30473
30523
  addToCartAmount,
@@ -30493,6 +30543,7 @@ and ensure you are accounting for this risk.
30493
30543
  relatedQueriesResult,
30494
30544
  relatedQueriesApiEnabled,
30495
30545
  lastResultsSource,
30546
+ relatedQueryFacetKeys,
30496
30547
  setSidebarState,
30497
30548
  queryFacet,
30498
30549
  setLastRequestId,
@@ -30509,12 +30560,12 @@ and ensure you are accounting for this risk.
30509
30560
  setRelatedQueriesApiEnabled
30510
30561
  };
30511
30562
  });
30512
- const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
30513
- const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
30514
- const _hoisted_3$A = ["disabled"];
30515
- const _hoisted_4$q = ["href"];
30516
- const _hoisted_5$h = ["disabled"];
30517
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
30563
+ const _hoisted_1$1b = { class: "lupa-search-box-add-to-cart-wrapper" };
30564
+ const _hoisted_2$Q = { class: "lupa-search-box-product-addtocart" };
30565
+ const _hoisted_3$C = ["disabled"];
30566
+ const _hoisted_4$s = ["href"];
30567
+ const _hoisted_5$i = ["disabled"];
30568
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30518
30569
  __name: "SearchBoxProductAddToCart",
30519
30570
  props: {
30520
30571
  item: {},
@@ -30560,45 +30611,45 @@ and ensure you are accounting for this risk.
30560
30611
  return Boolean(props.link && props.options.link);
30561
30612
  });
30562
30613
  return (_ctx, _cache) => {
30563
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
30564
- createBaseVNode("div", _hoisted_2$O, [
30614
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
30615
+ createBaseVNode("div", _hoisted_2$Q, [
30565
30616
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
30566
30617
  key: 0,
30567
30618
  class: addToCartButtonClass.value,
30568
30619
  "data-cy": "lupa-add-to-cart",
30569
30620
  disabled: !inStockValue.value || loading.value
30570
30621
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
30571
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$q)
30572
- ], 16, _hoisted_3$A)) : (openBlock(), createElementBlock("button", mergeProps({
30622
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
30623
+ ], 16, _hoisted_3$C)) : (openBlock(), createElementBlock("button", mergeProps({
30573
30624
  key: 1,
30574
30625
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
30575
30626
  class: addToCartButtonClass.value,
30576
30627
  "data-cy": "lupa-add-to-cart",
30577
30628
  type: "button",
30578
30629
  disabled: !inStockValue.value || loading.value
30579
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$h))
30630
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
30580
30631
  ])
30581
30632
  ]);
30582
30633
  };
30583
30634
  }
30584
30635
  });
30585
- const _hoisted_1$17 = {
30636
+ const _hoisted_1$1a = {
30586
30637
  key: 1,
30587
30638
  class: "lupa-search-box-element-badge-wrapper"
30588
30639
  };
30589
30640
  const __default__$4 = {
30590
30641
  components: {
30591
- SearchBoxProductImage: _sfc_main$1p,
30592
- SearchBoxProductTitle: _sfc_main$1o,
30593
- SearchBoxProductDescription: _sfc_main$1n,
30594
- SearchBoxProductPrice: _sfc_main$1m,
30595
- SearchBoxProductRegularPrice: _sfc_main$1l,
30596
- SearchBoxProductCustom: _sfc_main$1k,
30597
- SearchBoxProductCustomHtml: _sfc_main$1j,
30598
- SearchBoxProductAddToCart: _sfc_main$1i
30642
+ SearchBoxProductImage: _sfc_main$1v,
30643
+ SearchBoxProductTitle: _sfc_main$1u,
30644
+ SearchBoxProductDescription: _sfc_main$1t,
30645
+ SearchBoxProductPrice: _sfc_main$1s,
30646
+ SearchBoxProductRegularPrice: _sfc_main$1r,
30647
+ SearchBoxProductCustom: _sfc_main$1q,
30648
+ SearchBoxProductCustomHtml: _sfc_main$1p,
30649
+ SearchBoxProductAddToCart: _sfc_main$1o
30599
30650
  }
30600
30651
  };
30601
- const _sfc_main$1h = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30652
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30602
30653
  __name: "SearchBoxProductElement",
30603
30654
  props: {
30604
30655
  item: {},
@@ -30670,7 +30721,7 @@ and ensure you are accounting for this risk.
30670
30721
  "dynamic-attributes": dynamicAttributes.value,
30671
30722
  link: _ctx.link
30672
30723
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
30673
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
30724
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1a, [
30674
30725
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
30675
30726
  key: 0,
30676
30727
  item: enhancedItem.value,
@@ -30685,14 +30736,14 @@ and ensure you are accounting for this risk.
30685
30736
  };
30686
30737
  }
30687
30738
  }));
30688
- const _hoisted_1$16 = { class: "lupa-badge-title" };
30689
- const _hoisted_2$N = ["src"];
30690
- const _hoisted_3$z = { key: 1 };
30691
- const _hoisted_4$p = {
30739
+ const _hoisted_1$19 = { class: "lupa-badge-title" };
30740
+ const _hoisted_2$P = ["src"];
30741
+ const _hoisted_3$B = { key: 1 };
30742
+ const _hoisted_4$r = {
30692
30743
  key: 0,
30693
30744
  class: "lupa-badge-full-text"
30694
30745
  };
30695
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
30746
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
30696
30747
  __name: "SearchResultGeneratedBadge",
30697
30748
  props: {
30698
30749
  options: {},
@@ -30725,20 +30776,20 @@ and ensure you are accounting for this risk.
30725
30776
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
30726
30777
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
30727
30778
  }, [
30728
- createBaseVNode("span", _hoisted_1$16, [
30779
+ createBaseVNode("span", _hoisted_1$19, [
30729
30780
  image.value ? (openBlock(), createElementBlock("img", {
30730
30781
  key: 0,
30731
30782
  src: image.value
30732
- }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
30733
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
30783
+ }, null, 8, _hoisted_2$P)) : createCommentVNode("", true),
30784
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
30734
30785
  ]),
30735
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
30786
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
30736
30787
  ], 6);
30737
30788
  };
30738
30789
  }
30739
30790
  });
30740
- const _hoisted_1$15 = { class: "lupa-generated-badges" };
30741
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
30791
+ const _hoisted_1$18 = { class: "lupa-generated-badges" };
30792
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
30742
30793
  __name: "SearchResultGeneratedBadges",
30743
30794
  props: {
30744
30795
  options: {}
@@ -30764,9 +30815,9 @@ and ensure you are accounting for this risk.
30764
30815
  })).filter((b) => Boolean(b.id));
30765
30816
  });
30766
30817
  return (_ctx, _cache) => {
30767
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
30818
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
30768
30819
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
30769
- return openBlock(), createBlock(_sfc_main$1g, {
30820
+ return openBlock(), createBlock(_sfc_main$1m, {
30770
30821
  key: badge.id,
30771
30822
  badge,
30772
30823
  options: _ctx.options
@@ -30776,8 +30827,8 @@ and ensure you are accounting for this risk.
30776
30827
  };
30777
30828
  }
30778
30829
  });
30779
- const _hoisted_1$14 = ["innerHTML"];
30780
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
30830
+ const _hoisted_1$17 = ["innerHTML"];
30831
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
30781
30832
  __name: "CustomBadge",
30782
30833
  props: {
30783
30834
  badge: {}
@@ -30798,12 +30849,12 @@ and ensure you are accounting for this risk.
30798
30849
  return openBlock(), createElementBlock("div", {
30799
30850
  class: normalizeClass(className.value),
30800
30851
  innerHTML: text.value
30801
- }, null, 10, _hoisted_1$14);
30852
+ }, null, 10, _hoisted_1$17);
30802
30853
  };
30803
30854
  }
30804
30855
  });
30805
- const _hoisted_1$13 = { class: "lupa-text-badges" };
30806
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
30856
+ const _hoisted_1$16 = { class: "lupa-text-badges" };
30857
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
30807
30858
  __name: "TextBadge",
30808
30859
  props: {
30809
30860
  badge: {}
@@ -30817,7 +30868,7 @@ and ensure you are accounting for this risk.
30817
30868
  return badges.value.slice(0, props.badge.maxItems);
30818
30869
  });
30819
30870
  return (_ctx, _cache) => {
30820
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
30871
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
30821
30872
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
30822
30873
  return openBlock(), createElementBlock("div", {
30823
30874
  class: "lupa-badge lupa-text-badge",
@@ -30828,9 +30879,9 @@ and ensure you are accounting for this risk.
30828
30879
  };
30829
30880
  }
30830
30881
  });
30831
- const _hoisted_1$12 = { class: "lupa-image-badges" };
30832
- const _hoisted_2$M = ["src"];
30833
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
30882
+ const _hoisted_1$15 = { class: "lupa-image-badges" };
30883
+ const _hoisted_2$O = ["src"];
30884
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
30834
30885
  __name: "ImageBadge",
30835
30886
  props: {
30836
30887
  badge: {}
@@ -30850,7 +30901,7 @@ and ensure you are accounting for this risk.
30850
30901
  return `${props.badge.rootImageUrl}${src}`;
30851
30902
  };
30852
30903
  return (_ctx, _cache) => {
30853
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
30904
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
30854
30905
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
30855
30906
  return openBlock(), createElementBlock("div", {
30856
30907
  class: "lupa-badge lupa-image-badge",
@@ -30858,14 +30909,14 @@ and ensure you are accounting for this risk.
30858
30909
  }, [
30859
30910
  createBaseVNode("img", {
30860
30911
  src: getImageUrl(item)
30861
- }, null, 8, _hoisted_2$M)
30912
+ }, null, 8, _hoisted_2$O)
30862
30913
  ]);
30863
30914
  }), 128))
30864
30915
  ]);
30865
30916
  };
30866
30917
  }
30867
30918
  });
30868
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
30919
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
30869
30920
  __name: "DiscountBadge",
30870
30921
  props: {
30871
30922
  badge: {}
@@ -30927,16 +30978,16 @@ and ensure you are accounting for this risk.
30927
30978
  };
30928
30979
  }
30929
30980
  });
30930
- const _hoisted_1$11 = { id: "lupa-search-results-badges" };
30981
+ const _hoisted_1$14 = { id: "lupa-search-results-badges" };
30931
30982
  const __default__$3 = {
30932
30983
  components: {
30933
- CustomBadge: _sfc_main$1e,
30934
- TextBadge: _sfc_main$1d,
30935
- ImageBadge: _sfc_main$1c,
30936
- DiscountBadge: _sfc_main$1b
30984
+ CustomBadge: _sfc_main$1k,
30985
+ TextBadge: _sfc_main$1j,
30986
+ ImageBadge: _sfc_main$1i,
30987
+ DiscountBadge: _sfc_main$1h
30937
30988
  }
30938
30989
  };
30939
- const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
30990
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
30940
30991
  __name: "SearchResultsBadgeWrapper",
30941
30992
  props: {
30942
30993
  position: {},
@@ -30999,7 +31050,7 @@ and ensure you are accounting for this risk.
30999
31050
  }
31000
31051
  };
31001
31052
  return (_ctx, _cache) => {
31002
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
31053
+ return openBlock(), createElementBlock("div", _hoisted_1$14, [
31003
31054
  createBaseVNode("div", {
31004
31055
  id: "lupa-badges",
31005
31056
  class: normalizeClass(anchorPosition.value)
@@ -31010,7 +31061,7 @@ and ensure you are accounting for this risk.
31010
31061
  badge
31011
31062
  }, null, 8, ["badge"]);
31012
31063
  }), 128)),
31013
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1f, {
31064
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1l, {
31014
31065
  key: 0,
31015
31066
  options: _ctx.options
31016
31067
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -31019,13 +31070,13 @@ and ensure you are accounting for this risk.
31019
31070
  };
31020
31071
  }
31021
31072
  }));
31022
- const _hoisted_1$10 = ["href"];
31023
- const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
31024
- const _hoisted_3$y = {
31073
+ const _hoisted_1$13 = ["href"];
31074
+ const _hoisted_2$N = { class: "lupa-search-box-product-details-section" };
31075
+ const _hoisted_3$A = {
31025
31076
  key: 0,
31026
31077
  class: "lupa-search-box-product-add-to-cart-section"
31027
31078
  };
31028
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
31079
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31029
31080
  __name: "SearchBoxProduct",
31030
31081
  props: {
31031
31082
  item: {},
@@ -31131,7 +31182,7 @@ and ensure you are accounting for this risk.
31131
31182
  style: normalizeStyle(imageStyleOverride.value)
31132
31183
  }, [
31133
31184
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
31134
- return openBlock(), createBlock(_sfc_main$1h, {
31185
+ return openBlock(), createBlock(_sfc_main$1n, {
31135
31186
  class: "lupa-search-box-product-element",
31136
31187
  key: element.key,
31137
31188
  item: _ctx.item,
@@ -31141,10 +31192,10 @@ and ensure you are accounting for this risk.
31141
31192
  }, null, 8, ["item", "element", "labels", "link"]);
31142
31193
  }), 128))
31143
31194
  ], 4),
31144
- createBaseVNode("div", _hoisted_2$L, [
31195
+ createBaseVNode("div", _hoisted_2$N, [
31145
31196
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
31146
31197
  var _a25;
31147
- return openBlock(), createBlock(_sfc_main$1h, {
31198
+ return openBlock(), createBlock(_sfc_main$1n, {
31148
31199
  class: "lupa-search-box-product-element",
31149
31200
  key: element.key,
31150
31201
  item: _ctx.item,
@@ -31155,7 +31206,7 @@ and ensure you are accounting for this risk.
31155
31206
  ((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
31156
31207
  name: "badges",
31157
31208
  fn: withCtx(() => [
31158
- createVNode(_sfc_main$1a, {
31209
+ createVNode(_sfc_main$1g, {
31159
31210
  options: badgeOptions.value,
31160
31211
  position: "card"
31161
31212
  }, null, 8, ["options"])
@@ -31171,7 +31222,7 @@ and ensure you are accounting for this risk.
31171
31222
  class: normalizeClass(`lupa-search-box-group-${group}`)
31172
31223
  }, [
31173
31224
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
31174
- return openBlock(), createBlock(_sfc_main$1h, {
31225
+ return openBlock(), createBlock(_sfc_main$1n, {
31175
31226
  class: "lupa-search-box-product-element",
31176
31227
  key: element.key,
31177
31228
  item: _ctx.item,
@@ -31183,8 +31234,8 @@ and ensure you are accounting for this risk.
31183
31234
  }), 128))
31184
31235
  ], 2);
31185
31236
  }), 128)),
31186
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
31187
- createVNode(_sfc_main$1h, {
31237
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
31238
+ createVNode(_sfc_main$1n, {
31188
31239
  class: "lupa-search-box-product-element",
31189
31240
  item: _ctx.item,
31190
31241
  element: addToCartElement.value,
@@ -31193,7 +31244,7 @@ and ensure you are accounting for this risk.
31193
31244
  isInStock: isInStock.value
31194
31245
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
31195
31246
  ])) : createCommentVNode("", true)
31196
- ], 16, _hoisted_1$10);
31247
+ ], 16, _hoisted_1$13);
31197
31248
  };
31198
31249
  }
31199
31250
  });
@@ -31265,8 +31316,8 @@ and ensure you are accounting for this risk.
31265
31316
  };
31266
31317
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
31267
31318
  });
31268
- const _hoisted_1$$ = { id: "lupa-search-box-products" };
31269
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
31319
+ const _hoisted_1$12 = { id: "lupa-search-box-products" };
31320
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31270
31321
  __name: "SearchBoxProducts",
31271
31322
  props: {
31272
31323
  items: {},
@@ -31338,7 +31389,7 @@ and ensure you are accounting for this risk.
31338
31389
  }
31339
31390
  };
31340
31391
  return (_ctx, _cache) => {
31341
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
31392
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
31342
31393
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
31343
31394
  return renderSlot(_ctx.$slots, "productCard", {
31344
31395
  key: index,
@@ -31350,7 +31401,7 @@ and ensure you are accounting for this risk.
31350
31401
  itemClicked: handleProductClick
31351
31402
  });
31352
31403
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
31353
- return openBlock(), createBlock(_sfc_main$19, {
31404
+ return openBlock(), createBlock(_sfc_main$1f, {
31354
31405
  key: index,
31355
31406
  item,
31356
31407
  panelOptions: _ctx.panelOptions,
@@ -31365,9 +31416,9 @@ and ensure you are accounting for this risk.
31365
31416
  };
31366
31417
  }
31367
31418
  });
31368
- const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31369
- const _hoisted_2$K = { key: 0 };
31370
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
31419
+ const _hoisted_1$11 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31420
+ const _hoisted_2$M = { key: 0 };
31421
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
31371
31422
  __name: "SearchBoxProductsGoToResultsButton",
31372
31423
  props: {
31373
31424
  options: {},
@@ -31398,13 +31449,13 @@ and ensure you are accounting for this risk.
31398
31449
  emit2("goToResults");
31399
31450
  };
31400
31451
  return (_ctx, _cache) => {
31401
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
31452
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
31402
31453
  createBaseVNode("button", {
31403
31454
  class: "lupa-search-box-documents-go-to-results-button",
31404
31455
  onClick: goToResults
31405
31456
  }, [
31406
31457
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
31407
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31458
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$M, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31408
31459
  ])
31409
31460
  ]);
31410
31461
  };
@@ -31500,7 +31551,7 @@ and ensure you are accounting for this risk.
31500
31551
  }
31501
31552
  return parsedObject;
31502
31553
  };
31503
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
31554
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
31504
31555
  __name: "SearchBoxProductsWrapper",
31505
31556
  props: {
31506
31557
  panel: {},
@@ -31570,7 +31621,7 @@ and ensure you are accounting for this risk.
31570
31621
  watch(() => props.panel.limit, getItemsDebounced);
31571
31622
  return (_ctx, _cache) => {
31572
31623
  var _a25, _b25;
31573
- return openBlock(), createBlock(_sfc_main$18, {
31624
+ return openBlock(), createBlock(_sfc_main$1e, {
31574
31625
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31575
31626
  panelOptions: _ctx.panel,
31576
31627
  labels: _ctx.labels,
@@ -31580,7 +31631,7 @@ and ensure you are accounting for this risk.
31580
31631
  default: withCtx(() => {
31581
31632
  var _a26;
31582
31633
  return [
31583
- showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$17, {
31634
+ showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1d, {
31584
31635
  key: 0,
31585
31636
  options: _ctx.searchBoxOptions,
31586
31637
  panel: _ctx.panel,
@@ -31601,7 +31652,7 @@ and ensure you are accounting for this risk.
31601
31652
  };
31602
31653
  }
31603
31654
  });
31604
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
31655
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
31605
31656
  __name: "SearchBoxRelatedSourceWrapper",
31606
31657
  props: {
31607
31658
  panel: {},
@@ -31673,7 +31724,7 @@ and ensure you are accounting for this risk.
31673
31724
  });
31674
31725
  return (_ctx, _cache) => {
31675
31726
  var _a25, _b25;
31676
- return openBlock(), createBlock(_sfc_main$18, {
31727
+ return openBlock(), createBlock(_sfc_main$1e, {
31677
31728
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31678
31729
  panelOptions: documentPanelOptions.value,
31679
31730
  labels: _ctx.labels,
@@ -31691,31 +31742,31 @@ and ensure you are accounting for this risk.
31691
31742
  };
31692
31743
  }
31693
31744
  });
31694
- const _hoisted_1$Z = {
31745
+ const _hoisted_1$10 = {
31695
31746
  key: 0,
31696
31747
  id: "lupa-search-box-panel"
31697
31748
  };
31698
- const _hoisted_2$J = ["data-cy"];
31699
- const _hoisted_3$x = {
31749
+ const _hoisted_2$L = ["data-cy"];
31750
+ const _hoisted_3$z = {
31700
31751
  key: 0,
31701
31752
  class: "lupa-panel-title lupa-panel-title-top-results"
31702
31753
  };
31703
- const _hoisted_4$o = {
31754
+ const _hoisted_4$q = {
31704
31755
  key: 1,
31705
31756
  class: "lupa-panel-title"
31706
31757
  };
31707
- const _hoisted_5$g = {
31758
+ const _hoisted_5$h = {
31708
31759
  key: 1,
31709
31760
  id: "lupa-search-box-panel"
31710
31761
  };
31711
31762
  const __default__$2 = {
31712
31763
  components: {
31713
- SearchBoxSuggestionsWrapper: _sfc_main$1r,
31714
- SearchBoxProductsWrapper: _sfc_main$16,
31715
- SearchBoxRelatedSourceWrapper: _sfc_main$15
31764
+ SearchBoxSuggestionsWrapper: _sfc_main$1x,
31765
+ SearchBoxProductsWrapper: _sfc_main$1c,
31766
+ SearchBoxRelatedSourceWrapper: _sfc_main$1b
31716
31767
  }
31717
31768
  };
31718
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31769
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31719
31770
  __name: "SearchBoxMainPanel",
31720
31771
  props: {
31721
31772
  options: {},
@@ -31880,7 +31931,7 @@ and ensure you are accounting for this risk.
31880
31931
  ref_key: "panelContainer",
31881
31932
  ref: panelContainer
31882
31933
  }, [
31883
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
31934
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
31884
31935
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
31885
31936
  key: 0,
31886
31937
  class: "lupa-search-box-close-panel",
@@ -31902,8 +31953,8 @@ and ensure you are accounting for this risk.
31902
31953
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
31903
31954
  "data-cy": "lupa-panel-" + panel.type + "-index"
31904
31955
  }, [
31905
- ((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
31906
- ((_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),
31956
+ ((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
31957
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$q, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
31907
31958
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
31908
31959
  key: 2,
31909
31960
  panel,
@@ -31925,21 +31976,21 @@ and ensure you are accounting for this risk.
31925
31976
  key: "0"
31926
31977
  } : void 0
31927
31978
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
31928
- ], 14, _hoisted_2$J);
31979
+ ], 14, _hoisted_2$L);
31929
31980
  }), 128))
31930
31981
  ], 4),
31931
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1u, {
31982
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1A, {
31932
31983
  key: 1,
31933
31984
  labels: labels.value
31934
31985
  }, null, 8, ["labels"])) : createCommentVNode("", true),
31935
- displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1x, {
31986
+ displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
31936
31987
  key: 2,
31937
31988
  labels: labels.value,
31938
31989
  options: _ctx.options,
31939
31990
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
31940
31991
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
31941
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
31942
- createVNode(_sfc_main$1v, {
31992
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
31993
+ createVNode(_sfc_main$1B, {
31943
31994
  options: _ctx.options.history,
31944
31995
  history: history.value,
31945
31996
  onGoToResults: handleGoToResults,
@@ -31964,8 +32015,8 @@ and ensure you are accounting for this risk.
31964
32015
  const elements = getElements(triggers);
31965
32016
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
31966
32017
  };
31967
- const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
31968
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
32018
+ const _hoisted_1$$ = { class: "lupa-search-box-wrapper" };
32019
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
31969
32020
  __name: "SearchBox",
31970
32021
  props: {
31971
32022
  options: {},
@@ -32288,8 +32339,8 @@ and ensure you are accounting for this risk.
32288
32339
  id: "lupa-search-box",
32289
32340
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
32290
32341
  }, [
32291
- createBaseVNode("div", _hoisted_1$Y, [
32292
- createVNode(_sfc_main$1y, {
32342
+ createBaseVNode("div", _hoisted_1$$, [
32343
+ createVNode(_sfc_main$1E, {
32293
32344
  options: inputOptions.value,
32294
32345
  suggestedValue: suggestedValue.value,
32295
32346
  "can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
@@ -32302,7 +32353,7 @@ and ensure you are accounting for this risk.
32302
32353
  onSearch: handleSearch,
32303
32354
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
32304
32355
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
32305
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$14, {
32356
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1a, {
32306
32357
  key: 0,
32307
32358
  options: panelOptions.value,
32308
32359
  inputValue: inputValue.value,
@@ -32390,20 +32441,20 @@ and ensure you are accounting for this risk.
32390
32441
  }
32391
32442
  return searchParams;
32392
32443
  };
32393
- const _hoisted_1$X = {
32444
+ const _hoisted_1$_ = {
32394
32445
  key: 0,
32395
32446
  id: "lupa-search-results-did-you-mean"
32396
32447
  };
32397
- const _hoisted_2$I = {
32448
+ const _hoisted_2$K = {
32398
32449
  key: 0,
32399
32450
  "data-cy": "suggested-search-text-label"
32400
32451
  };
32401
- const _hoisted_3$w = {
32452
+ const _hoisted_3$y = {
32402
32453
  key: 1,
32403
32454
  "data-cy": "did-you-mean-label"
32404
32455
  };
32405
- const _hoisted_4$n = { key: 1 };
32406
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
32456
+ const _hoisted_4$p = { key: 1 };
32457
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32407
32458
  __name: "SearchResultsDidYouMean",
32408
32459
  props: {
32409
32460
  labels: {}
@@ -32435,8 +32486,8 @@ and ensure you are accounting for this risk.
32435
32486
  paramStore.goToResults({ searchText, facet });
32436
32487
  };
32437
32488
  return (_ctx, _cache) => {
32438
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
32439
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
32489
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
32490
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
32440
32491
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
32441
32492
  return openBlock(), createElementBlock("span", { key: index }, [
32442
32493
  createBaseVNode("span", {
@@ -32445,7 +32496,7 @@ and ensure you are accounting for this risk.
32445
32496
  ]);
32446
32497
  }), 128))
32447
32498
  ])) : createCommentVNode("", true),
32448
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
32499
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
32449
32500
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
32450
32501
  return openBlock(), createElementBlock("span", { key: index }, [
32451
32502
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -32453,7 +32504,7 @@ and ensure you are accounting for this risk.
32453
32504
  class: "lupa-did-you-mean lupa-highlighted-search-text",
32454
32505
  "data-cy": "did-you-mean-value",
32455
32506
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
32456
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
32507
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
32457
32508
  ]);
32458
32509
  }), 128))
32459
32510
  ])) : createCommentVNode("", true)
@@ -32461,12 +32512,12 @@ and ensure you are accounting for this risk.
32461
32512
  };
32462
32513
  }
32463
32514
  });
32464
- const _hoisted_1$W = {
32515
+ const _hoisted_1$Z = {
32465
32516
  key: 0,
32466
32517
  class: "lupa-search-results-summary"
32467
32518
  };
32468
- const _hoisted_2$H = ["innerHTML"];
32469
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
32519
+ const _hoisted_2$J = ["innerHTML"];
32520
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32470
32521
  __name: "SearchResultsSummary",
32471
32522
  props: {
32472
32523
  label: {},
@@ -32481,8 +32532,8 @@ and ensure you are accounting for this risk.
32481
32532
  return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
32482
32533
  });
32483
32534
  return (_ctx, _cache) => {
32484
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
32485
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
32535
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
32536
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$J),
32486
32537
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
32487
32538
  key: 0,
32488
32539
  class: "lupa-filter-clear",
@@ -32493,19 +32544,19 @@ and ensure you are accounting for this risk.
32493
32544
  };
32494
32545
  }
32495
32546
  });
32496
- const _hoisted_1$V = {
32547
+ const _hoisted_1$Y = {
32497
32548
  key: 0,
32498
32549
  class: "lupa-result-page-title",
32499
32550
  "data-cy": "lupa-result-page-title"
32500
32551
  };
32501
- const _hoisted_2$G = { key: 0 };
32502
- const _hoisted_3$v = {
32552
+ const _hoisted_2$I = { key: 0 };
32553
+ const _hoisted_3$x = {
32503
32554
  key: 1,
32504
32555
  class: "lupa-results-total-count"
32505
32556
  };
32506
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
32507
- const _hoisted_5$f = ["innerHTML"];
32508
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
32557
+ const _hoisted_4$o = { class: "lupa-results-total-count-number" };
32558
+ const _hoisted_5$g = ["innerHTML"];
32559
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32509
32560
  __name: "SearchResultsTitle",
32510
32561
  props: {
32511
32562
  options: {},
@@ -32548,16 +32599,16 @@ and ensure you are accounting for this risk.
32548
32599
  });
32549
32600
  return (_ctx, _cache) => {
32550
32601
  return openBlock(), createElementBlock("div", null, [
32551
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
32602
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Y, [
32552
32603
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
32553
- queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32554
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
32604
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32605
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
32555
32606
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32556
- createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
32607
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
32557
32608
  _cache[0] || (_cache[0] = createTextVNode(")"))
32558
32609
  ])) : createCommentVNode("", true)
32559
32610
  ])) : createCommentVNode("", true),
32560
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$11, {
32611
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$17, {
32561
32612
  key: 1,
32562
32613
  label: summaryLabel.value
32563
32614
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -32565,20 +32616,20 @@ and ensure you are accounting for this risk.
32565
32616
  key: 2,
32566
32617
  class: "lupa-result-page-description-top",
32567
32618
  innerHTML: descriptionTop.value
32568
- }, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
32619
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
32569
32620
  ]);
32570
32621
  };
32571
32622
  }
32572
32623
  });
32573
- const _hoisted_1$U = {
32624
+ const _hoisted_1$X = {
32574
32625
  class: "lupa-current-filter-label",
32575
32626
  "data-cy": "lupa-current-filter-label"
32576
32627
  };
32577
- const _hoisted_2$F = {
32628
+ const _hoisted_2$H = {
32578
32629
  class: "lupa-current-filter-value",
32579
32630
  "data-cy": "lupa-current-filter-value"
32580
32631
  };
32581
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
32632
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32582
32633
  __name: "CurrentFilterDisplay",
32583
32634
  props: {
32584
32635
  filter: {}
@@ -32620,23 +32671,23 @@ and ensure you are accounting for this risk.
32620
32671
  onClick: handleClick,
32621
32672
  "aria-label": "Remove filter"
32622
32673
  }, "⨉"),
32623
- createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
32624
- createBaseVNode("div", _hoisted_2$F, toDisplayString(formatFilterValue(props.filter)), 1)
32674
+ createBaseVNode("div", _hoisted_1$X, toDisplayString(_ctx.filter.label) + ": ", 1),
32675
+ createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
32625
32676
  ], 2);
32626
32677
  };
32627
32678
  }
32628
32679
  });
32629
- const _hoisted_1$T = { class: "lupa-filter-title-text" };
32630
- const _hoisted_2$E = {
32680
+ const _hoisted_1$W = { class: "lupa-filter-title-text" };
32681
+ const _hoisted_2$G = {
32631
32682
  key: 0,
32632
32683
  class: "lupa-filter-count"
32633
32684
  };
32634
- const _hoisted_3$u = {
32685
+ const _hoisted_3$w = {
32635
32686
  key: 0,
32636
32687
  class: "filter-values"
32637
32688
  };
32638
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
32639
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
32689
+ const _hoisted_4$n = { class: "lupa-current-filter-list" };
32690
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
32640
32691
  __name: "CurrentFilters",
32641
32692
  props: {
32642
32693
  options: {},
@@ -32717,19 +32768,19 @@ and ensure you are accounting for this risk.
32717
32768
  class: "lupa-current-filter-title",
32718
32769
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
32719
32770
  }, [
32720
- createBaseVNode("div", _hoisted_1$T, [
32771
+ createBaseVNode("div", _hoisted_1$W, [
32721
32772
  createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
32722
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
32773
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
32723
32774
  ]),
32724
32775
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
32725
32776
  key: 0,
32726
32777
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
32727
32778
  }, null, 2)) : createCommentVNode("", true)
32728
32779
  ]),
32729
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
32730
- createBaseVNode("div", _hoisted_4$l, [
32780
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
32781
+ createBaseVNode("div", _hoisted_4$n, [
32731
32782
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
32732
- return openBlock(), createBlock(_sfc_main$$, {
32783
+ return openBlock(), createBlock(_sfc_main$15, {
32733
32784
  key: filter.key + "_" + filter.value,
32734
32785
  filter,
32735
32786
  units: units.value,
@@ -32747,8 +32798,8 @@ and ensure you are accounting for this risk.
32747
32798
  };
32748
32799
  }
32749
32800
  });
32750
- const _hoisted_1$S = ["href"];
32751
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
32801
+ const _hoisted_1$V = ["href"];
32802
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
32752
32803
  __name: "CategoryFilterItem",
32753
32804
  props: {
32754
32805
  options: {},
@@ -32785,20 +32836,20 @@ and ensure you are accounting for this risk.
32785
32836
  "data-cy": "lupa-child-category-item",
32786
32837
  href: urlLink.value,
32787
32838
  onClick: handleNavigation
32788
- }, toDisplayString(title.value), 9, _hoisted_1$S)
32839
+ }, toDisplayString(title.value), 9, _hoisted_1$V)
32789
32840
  ], 2);
32790
32841
  };
32791
32842
  }
32792
32843
  });
32793
- const _hoisted_1$R = {
32844
+ const _hoisted_1$U = {
32794
32845
  class: "lupa-category-filter",
32795
32846
  "data-cy": "lupa-category-filter"
32796
32847
  };
32797
- const _hoisted_2$D = { class: "lupa-category-back" };
32798
- const _hoisted_3$t = ["href"];
32799
- const _hoisted_4$k = ["href"];
32800
- const _hoisted_5$e = { class: "lupa-child-category-list" };
32801
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
32848
+ const _hoisted_2$F = { class: "lupa-category-back" };
32849
+ const _hoisted_3$v = ["href"];
32850
+ const _hoisted_4$m = ["href"];
32851
+ const _hoisted_5$f = { class: "lupa-child-category-list" };
32852
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
32802
32853
  __name: "CategoryFilter",
32803
32854
  props: {
32804
32855
  options: {}
@@ -32886,14 +32937,14 @@ and ensure you are accounting for this risk.
32886
32937
  };
32887
32938
  __expose({ fetch: fetch2 });
32888
32939
  return (_ctx, _cache) => {
32889
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
32890
- createBaseVNode("div", _hoisted_2$D, [
32940
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
32941
+ createBaseVNode("div", _hoisted_2$F, [
32891
32942
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
32892
32943
  key: 0,
32893
32944
  "data-cy": "lupa-category-back",
32894
32945
  href: backUrlLink.value,
32895
32946
  onClick: handleNavigationBack
32896
- }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
32947
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$v)) : createCommentVNode("", true)
32897
32948
  ]),
32898
32949
  createBaseVNode("div", {
32899
32950
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -32903,11 +32954,11 @@ and ensure you are accounting for this risk.
32903
32954
  href: parentUrlLink.value,
32904
32955
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
32905
32956
  onClick: handleNavigationParent
32906
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
32957
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
32907
32958
  ], 2),
32908
- createBaseVNode("div", _hoisted_5$e, [
32959
+ createBaseVNode("div", _hoisted_5$f, [
32909
32960
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
32910
- return openBlock(), createBlock(_sfc_main$Z, {
32961
+ return openBlock(), createBlock(_sfc_main$13, {
32911
32962
  key: getCategoryKey(child),
32912
32963
  item: child,
32913
32964
  options: _ctx.options
@@ -32918,22 +32969,22 @@ and ensure you are accounting for this risk.
32918
32969
  };
32919
32970
  }
32920
32971
  });
32921
- const _hoisted_1$Q = {
32972
+ const _hoisted_1$T = {
32922
32973
  class: "lupa-search-result-facet-term-values",
32923
32974
  "data-cy": "lupa-search-result-facet-term-values"
32924
32975
  };
32925
- const _hoisted_2$C = ["placeholder"];
32926
- const _hoisted_3$s = { class: "lupa-terms-list" };
32927
- const _hoisted_4$j = ["onClick"];
32928
- const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
32929
- const _hoisted_6$7 = { class: "lupa-term-label" };
32976
+ const _hoisted_2$E = ["placeholder"];
32977
+ const _hoisted_3$u = { class: "lupa-terms-list" };
32978
+ const _hoisted_4$l = ["onClick"];
32979
+ const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
32980
+ const _hoisted_6$6 = { class: "lupa-term-label" };
32930
32981
  const _hoisted_7$4 = {
32931
32982
  key: 0,
32932
32983
  class: "lupa-term-count"
32933
32984
  };
32934
32985
  const _hoisted_8$2 = { key: 0 };
32935
32986
  const _hoisted_9$2 = { key: 1 };
32936
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
32987
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
32937
32988
  __name: "TermFacet",
32938
32989
  props: {
32939
32990
  options: {},
@@ -33027,17 +33078,17 @@ and ensure you are accounting for this risk.
33027
33078
  }
33028
33079
  };
33029
33080
  return (_ctx, _cache) => {
33030
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
33081
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
33031
33082
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
33032
33083
  key: 0,
33033
33084
  class: "lupa-term-filter",
33034
33085
  "data-cy": "lupa-term-filter",
33035
33086
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
33036
33087
  placeholder: _ctx.options.labels.facetFilter
33037
- }, null, 8, _hoisted_2$C)), [
33088
+ }, null, 8, _hoisted_2$E)), [
33038
33089
  [vModelText, termFilter.value]
33039
33090
  ]) : createCommentVNode("", true),
33040
- createBaseVNode("div", _hoisted_3$s, [
33091
+ createBaseVNode("div", _hoisted_3$u, [
33041
33092
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
33042
33093
  return openBlock(), createElementBlock("div", {
33043
33094
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -33045,7 +33096,7 @@ and ensure you are accounting for this risk.
33045
33096
  key: item.title,
33046
33097
  onClick: ($event) => handleFacetClick(item)
33047
33098
  }, [
33048
- createBaseVNode("div", _hoisted_5$d, [
33099
+ createBaseVNode("div", _hoisted_5$e, [
33049
33100
  createBaseVNode("span", {
33050
33101
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
33051
33102
  }, null, 2)
@@ -33053,10 +33104,10 @@ and ensure you are accounting for this risk.
33053
33104
  createBaseVNode("div", {
33054
33105
  class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(item)]: true }])
33055
33106
  }, [
33056
- createBaseVNode("span", _hoisted_6$7, toDisplayString(getItemLabel(item)), 1),
33107
+ createBaseVNode("span", _hoisted_6$6, toDisplayString(getItemLabel(item)), 1),
33057
33108
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$4, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
33058
33109
  ], 2)
33059
- ], 10, _hoisted_4$j);
33110
+ ], 10, _hoisted_4$l);
33060
33111
  }), 128))
33061
33112
  ]),
33062
33113
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -33976,21 +34027,21 @@ and ensure you are accounting for this risk.
33976
34027
  }
33977
34028
  return out;
33978
34029
  };
33979
- const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
33980
- const _hoisted_2$B = {
34030
+ const _hoisted_1$S = { class: "lupa-search-result-facet-stats-values" };
34031
+ const _hoisted_2$D = {
33981
34032
  key: 0,
33982
34033
  class: "lupa-stats-facet-summary"
33983
34034
  };
33984
- const _hoisted_3$r = {
34035
+ const _hoisted_3$t = {
33985
34036
  key: 1,
33986
34037
  class: "lupa-stats-facet-summary-input"
33987
34038
  };
33988
- const _hoisted_4$i = { class: "lupa-stats-from" };
33989
- const _hoisted_5$c = {
34039
+ const _hoisted_4$k = { class: "lupa-stats-from" };
34040
+ const _hoisted_5$d = {
33990
34041
  key: 0,
33991
34042
  class: "lupa-stats-range-label"
33992
34043
  };
33993
- const _hoisted_6$6 = ["min", "max", "pattern", "aria-label"];
34044
+ const _hoisted_6$5 = ["min", "max", "pattern", "aria-label"];
33994
34045
  const _hoisted_7$3 = { key: 1 };
33995
34046
  const _hoisted_8$1 = { key: 2 };
33996
34047
  const _hoisted_9$1 = { class: "lupa-stats-to" };
@@ -34005,7 +34056,7 @@ and ensure you are accounting for this risk.
34005
34056
  key: 2,
34006
34057
  class: "lupa-stats-slider-wrapper"
34007
34058
  };
34008
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
34059
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34009
34060
  __name: "StatsFacet",
34010
34061
  props: {
34011
34062
  options: {},
@@ -34224,10 +34275,10 @@ and ensure you are accounting for this risk.
34224
34275
  }
34225
34276
  );
34226
34277
  return (_ctx, _cache) => {
34227
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
34228
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
34229
- createBaseVNode("div", _hoisted_4$i, [
34230
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
34278
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
34279
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
34280
+ createBaseVNode("div", _hoisted_4$k, [
34281
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
34231
34282
  withDirectives(createBaseVNode("input", {
34232
34283
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
34233
34284
  type: "text",
@@ -34236,7 +34287,7 @@ and ensure you are accounting for this risk.
34236
34287
  max: facetMax.value,
34237
34288
  pattern: sliderInputFormat.value,
34238
34289
  "aria-label": ariaLabelFrom.value
34239
- }, null, 8, _hoisted_6$6), [
34290
+ }, null, 8, _hoisted_6$5), [
34240
34291
  [
34241
34292
  vModelText,
34242
34293
  fromValue.value,
@@ -34289,17 +34340,17 @@ and ensure you are accounting for this risk.
34289
34340
  };
34290
34341
  }
34291
34342
  });
34292
- const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
34293
- const _hoisted_2$A = { class: "lupa-term-label" };
34294
- const _hoisted_3$q = {
34343
+ const _hoisted_1$R = { class: "lupa-term-checkbox-wrapper" };
34344
+ const _hoisted_2$C = { class: "lupa-term-label" };
34345
+ const _hoisted_3$s = {
34295
34346
  key: 0,
34296
34347
  class: "lupa-term-count"
34297
34348
  };
34298
- const _hoisted_4$h = {
34349
+ const _hoisted_4$j = {
34299
34350
  key: 0,
34300
34351
  class: "lupa-facet-level"
34301
34352
  };
34302
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
34353
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34303
34354
  __name: "HierarchyFacetLevel",
34304
34355
  props: {
34305
34356
  options: {},
@@ -34353,7 +34404,7 @@ and ensure you are accounting for this risk.
34353
34404
  "data-cy": "lupa-facet-term",
34354
34405
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
34355
34406
  }, [
34356
- createBaseVNode("div", _hoisted_1$O, [
34407
+ createBaseVNode("div", _hoisted_1$R, [
34357
34408
  createBaseVNode("span", {
34358
34409
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
34359
34410
  }, null, 2)
@@ -34361,11 +34412,11 @@ and ensure you are accounting for this risk.
34361
34412
  createBaseVNode("div", {
34362
34413
  class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
34363
34414
  }, [
34364
- createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
34365
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$q, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
34415
+ createBaseVNode("span", _hoisted_2$C, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
34416
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
34366
34417
  ], 2)
34367
34418
  ]),
34368
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, [
34419
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
34369
34420
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
34370
34421
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
34371
34422
  key: itemChild.title,
@@ -34381,13 +34432,13 @@ and ensure you are accounting for this risk.
34381
34432
  };
34382
34433
  }
34383
34434
  });
34384
- const _hoisted_1$N = {
34435
+ const _hoisted_1$Q = {
34385
34436
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
34386
34437
  "data-cy": "lupa-search-result-facet-term-values"
34387
34438
  };
34388
- const _hoisted_2$z = { key: 0 };
34389
- const _hoisted_3$p = ["placeholder"];
34390
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
34439
+ const _hoisted_2$B = { key: 0 };
34440
+ const _hoisted_3$r = ["placeholder"];
34441
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
34391
34442
  __name: "HierarchyFacet",
34392
34443
  props: {
34393
34444
  options: {},
@@ -34443,19 +34494,19 @@ and ensure you are accounting for this risk.
34443
34494
  showAll.value = false;
34444
34495
  };
34445
34496
  return (_ctx, _cache) => {
34446
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
34447
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
34497
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
34498
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
34448
34499
  withDirectives(createBaseVNode("input", {
34449
34500
  class: "lupa-term-filter",
34450
34501
  "data-cy": "lupa-term-filter",
34451
34502
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
34452
34503
  placeholder: _ctx.options.labels.facetFilter
34453
- }, null, 8, _hoisted_3$p), [
34504
+ }, null, 8, _hoisted_3$r), [
34454
34505
  [vModelText, termFilter.value]
34455
34506
  ])
34456
34507
  ])) : createCommentVNode("", true),
34457
34508
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
34458
- return openBlock(), createBlock(_sfc_main$V, {
34509
+ return openBlock(), createBlock(_sfc_main$$, {
34459
34510
  key: item.title,
34460
34511
  options: _ctx.options,
34461
34512
  item,
@@ -34479,30 +34530,31 @@ and ensure you are accounting for this risk.
34479
34530
  };
34480
34531
  }
34481
34532
  });
34482
- const _hoisted_1$M = { class: "lupa-facet-label-text" };
34483
- const _hoisted_2$y = {
34533
+ const _hoisted_1$P = { class: "lupa-facet-label-text" };
34534
+ const _hoisted_2$A = {
34484
34535
  key: 0,
34485
34536
  class: "lupa-facet-content",
34486
34537
  "data-cy": "lupa-facet-content"
34487
34538
  };
34488
34539
  const __default__$1 = {
34489
34540
  components: {
34490
- TermFacet: _sfc_main$X,
34491
- StatsFacet: _sfc_main$W,
34492
- HierarchyFacet: _sfc_main$U
34541
+ TermFacet: _sfc_main$11,
34542
+ StatsFacet: _sfc_main$10,
34543
+ HierarchyFacet: _sfc_main$_
34493
34544
  }
34494
34545
  };
34495
- const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34546
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34496
34547
  __name: "FacetDisplay",
34497
34548
  props: {
34498
34549
  options: {},
34499
34550
  facet: {},
34500
34551
  currentFilters: {},
34501
- clearable: { type: Boolean }
34552
+ clearable: { type: Boolean },
34553
+ currentFacetStyle: {}
34502
34554
  },
34503
- emits: ["select", "clear"],
34555
+ emits: ["select", "clear", "expand"],
34504
34556
  setup(__props, { emit: __emit }) {
34505
- var _a25, _b25, _c;
34557
+ var _a25, _b25;
34506
34558
  const props = __props;
34507
34559
  const facet = computed(() => {
34508
34560
  var _a26;
@@ -34516,17 +34568,17 @@ and ensure you are accounting for this risk.
34516
34568
  const optionsStore = useOptionsStore();
34517
34569
  const screenStore = useScreenStore();
34518
34570
  const { currentFilterKeys } = storeToRefs(searchResultStore);
34519
- const { searchResultOptions } = storeToRefs(optionsStore);
34571
+ const { searchResultOptions, expandedFacets } = storeToRefs(optionsStore);
34520
34572
  const { isMobileWidth } = storeToRefs(screenStore);
34521
34573
  const emit2 = __emit;
34522
34574
  const allExpanded = computed(() => {
34523
- var _a26, _b26, _c2, _d, _e, _f;
34575
+ var _a26, _b26, _c, _d, _e, _f;
34524
34576
  if (isMobileWidth.value) {
34525
- return (_c2 = (_b26 = (_a26 = props.options) == null ? void 0 : _a26.expandAll) == null ? void 0 : _b26.mobile) != null ? _c2 : false;
34577
+ return (_c = (_b26 = (_a26 = props.options) == null ? void 0 : _a26.expandAll) == null ? void 0 : _b26.mobile) != null ? _c : false;
34526
34578
  }
34527
34579
  return (_f = (_e = (_d = props.options) == null ? void 0 : _d.expandAll) == null ? void 0 : _e.desktop) != null ? _f : false;
34528
34580
  });
34529
- const isOpen = ref((_c = ((_b25 = (_a25 = props.options) == null ? void 0 : _a25.expand) == null ? void 0 : _b25.includes(props.facet.key)) || allExpanded.value) != null ? _c : false);
34581
+ const isOpen = ref((_b25 = ((_a25 = expandedFacets.value) == null ? void 0 : _a25.includes(props.facet.key)) || allExpanded.value) != null ? _b25 : false);
34530
34582
  const facetPanel = ref(null);
34531
34583
  const facetType = computed(() => {
34532
34584
  switch (facet.value.type) {
@@ -34568,9 +34620,16 @@ and ensure you are accounting for this risk.
34568
34620
  var _a26;
34569
34621
  return getTranslatedFacetKey(props.facet, (_a26 = searchResultOptions.value.filters) == null ? void 0 : _a26.translations);
34570
34622
  });
34623
+ const expandSidebarOnFacetClick = computed(() => {
34624
+ var _a26, _b26, _c;
34625
+ if (!props.currentFacetStyle || props.currentFacetStyle === "sidebar") {
34626
+ return false;
34627
+ }
34628
+ return (_c = (_b26 = (_a26 = props.options.style) == null ? void 0 : _a26.drawer) == null ? void 0 : _b26.expandSidebarOnFacetClick) != null ? _c : false;
34629
+ });
34571
34630
  onMounted(() => {
34572
- var _a26;
34573
- if (((_a26 = props.options.style) == null ? void 0 : _a26.type) === "top-dropdown") {
34631
+ var _a26, _b26, _c;
34632
+ if (((_a26 = props.options.style) == null ? void 0 : _a26.type) === "top-dropdown" || ((_c = (_b26 = props.options) == null ? void 0 : _b26.style) == null ? void 0 : _c.type) === "drawer") {
34574
34633
  window.addEventListener("click", handleMouseClick);
34575
34634
  }
34576
34635
  });
@@ -34579,7 +34638,7 @@ and ensure you are accounting for this risk.
34579
34638
  });
34580
34639
  const handleMouseClick = (e2) => {
34581
34640
  const el = facetPanel.value;
34582
- if (!el) {
34641
+ if (!el || !props.currentFacetStyle || props.currentFacetStyle === "sidebar") {
34583
34642
  return;
34584
34643
  }
34585
34644
  const isOutsideElement = el && !el.contains(e2.target);
@@ -34591,6 +34650,11 @@ and ensure you are accounting for this risk.
34591
34650
  handleFacetQueryFilter();
34592
34651
  });
34593
34652
  const toggleFacet = () => {
34653
+ if (expandSidebarOnFacetClick.value) {
34654
+ expandedFacets.value = [facet.value.key];
34655
+ emit2("expand");
34656
+ return;
34657
+ }
34594
34658
  isOpen.value = !isOpen.value;
34595
34659
  handleFacetQueryFilter();
34596
34660
  };
@@ -34623,12 +34687,12 @@ and ensure you are accounting for this risk.
34623
34687
  "data-cy": "lupa-search-result-facet-label",
34624
34688
  onClick: toggleFacet
34625
34689
  }, [
34626
- createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
34690
+ createBaseVNode("div", _hoisted_1$P, toDisplayString(facetLabel.value), 1),
34627
34691
  createBaseVNode("div", {
34628
34692
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
34629
34693
  }, null, 2)
34630
34694
  ], 2),
34631
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
34695
+ isOpen.value && !expandSidebarOnFacetClick.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
34632
34696
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
34633
34697
  facet: facet.value,
34634
34698
  currentFilters: currentFilters.value[facet.value.key],
@@ -34646,12 +34710,154 @@ and ensure you are accounting for this risk.
34646
34710
  };
34647
34711
  }
34648
34712
  }));
34649
- const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
34650
- const _hoisted_2$x = {
34713
+ const useSidebarToggle = () => {
34714
+ const searchResultStore = useSearchResultStore();
34715
+ const optionsStore = useOptionsStore();
34716
+ const { currentFilterCount, isFilterSidebarVisible, isSortingSidebarVisible } = storeToRefs(searchResultStore);
34717
+ const { searchResultOptions } = storeToRefs(optionsStore);
34718
+ const labels = computed(() => {
34719
+ return searchResultOptions.value.labels;
34720
+ });
34721
+ const showMobileFilterCount = computed(
34722
+ () => {
34723
+ var _a25, _b25, _c, _d;
34724
+ return (_d = (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.currentFilters) == null ? void 0 : _b25.mobileSidebar) == null ? void 0 : _c.showFilterCount) != null ? _d : false;
34725
+ }
34726
+ );
34727
+ const disableMobileBodyScrollLock = computed(
34728
+ () => {
34729
+ var _a25, _b25, _c;
34730
+ return (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.disableMobileBodyScrollLock) != null ? _c : false;
34731
+ }
34732
+ );
34733
+ const isSidebarVisible = computed(
34734
+ () => isFilterSidebarVisible.value || isSortingSidebarVisible.value
34735
+ );
34736
+ const sortLabel = computed(() => {
34737
+ var _a25, _b25;
34738
+ return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.sortBy;
34739
+ });
34740
+ const defaultLabel = computed(() => {
34741
+ var _a25;
34742
+ return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButton;
34743
+ });
34744
+ const activeLabel = computed(() => {
34745
+ var _a25;
34746
+ return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButtonActive;
34747
+ });
34748
+ const openLabel = computed(() => {
34749
+ var _a25;
34750
+ return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButtonOpen;
34751
+ });
34752
+ const label = computed(() => {
34753
+ if (isSidebarVisible.value && openLabel.value) {
34754
+ return openLabel.value;
34755
+ }
34756
+ if (hasActiveFilters.value && activeLabel.value) {
34757
+ return activeLabel.value;
34758
+ }
34759
+ return defaultLabel.value;
34760
+ });
34761
+ const sortToggleVisible = computed(() => {
34762
+ var _a25, _b25;
34763
+ return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.sortStyle) == null ? void 0 : _b25.type) === "drawer";
34764
+ });
34765
+ const handleFilterSidebarToggle = () => {
34766
+ searchResultStore.setSidebarState({
34767
+ visible: !isSidebarVisible.value,
34768
+ disableBodyScrolling: !disableMobileBodyScrollLock.value,
34769
+ sidebar: "filter"
34770
+ });
34771
+ };
34772
+ const handleSortSidebarToggle = () => {
34773
+ searchResultStore.setSidebarState({
34774
+ visible: !isSortingSidebarVisible.value,
34775
+ disableBodyScrolling: !disableMobileBodyScrollLock.value,
34776
+ sidebar: "sorting"
34777
+ });
34778
+ };
34779
+ const hasActiveFilters = computed(() => currentFilterCount.value > 0);
34780
+ const checkCloseOnEscape = (e2) => {
34781
+ var _a25;
34782
+ if (!["Escape", "Esc"].includes((_a25 = e2.key) != null ? _a25 : "")) {
34783
+ return;
34784
+ }
34785
+ if (isSidebarVisible.value) {
34786
+ searchResultStore.setSidebarState({ visible: false, sidebar: "sorting" });
34787
+ searchResultStore.setSidebarState({ visible: false, sidebar: "filter" });
34788
+ }
34789
+ };
34790
+ onMounted(() => {
34791
+ window.addEventListener("keydown", checkCloseOnEscape);
34792
+ });
34793
+ onBeforeUnmount(() => {
34794
+ window.removeEventListener("keydown", checkCloseOnEscape);
34795
+ });
34796
+ return {
34797
+ isSidebarVisible,
34798
+ label,
34799
+ currentFilterCount,
34800
+ hasActiveFilters,
34801
+ showMobileFilterCount,
34802
+ sortLabel,
34803
+ sortToggleVisible,
34804
+ handleFilterSidebarToggle,
34805
+ handleSortSidebarToggle
34806
+ };
34807
+ };
34808
+ const _hoisted_1$O = {
34809
+ key: 0,
34810
+ class: "lupa-desktop-toggle-filter-count"
34811
+ };
34812
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
34813
+ __name: "DesktopFacetToggle",
34814
+ setup(__props) {
34815
+ const {
34816
+ isSidebarVisible,
34817
+ label,
34818
+ currentFilterCount,
34819
+ hasActiveFilters,
34820
+ showMobileFilterCount,
34821
+ handleFilterSidebarToggle
34822
+ } = useSidebarToggle();
34823
+ return (_ctx, _cache) => {
34824
+ return openBlock(), createElementBlock("div", {
34825
+ class: normalizeClass(["lupa-desktop-toggle", {
34826
+ "lupa-desktop-toggle-filters-empty": unref(currentFilterCount) < 1,
34827
+ "lupa-desktop-toggle-has-filters": unref(hasActiveFilters),
34828
+ "lupa-sidebar-open": unref(isSidebarVisible)
34829
+ }]),
34830
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
34831
+ (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
34832
+ }, [
34833
+ createTextVNode(toDisplayString(unref(label)) + " ", 1),
34834
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
34835
+ ], 2);
34836
+ };
34837
+ }
34838
+ });
34839
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
34840
+ __name: "DesktopSortToggle",
34841
+ setup(__props) {
34842
+ const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
34843
+ return (_ctx, _cache) => {
34844
+ return unref(sortToggleVisible) ? (openBlock(), createElementBlock("div", {
34845
+ key: 0,
34846
+ class: normalizeClass(["lupa-desktop-toggle lupa-desktop-sort-toggle", {
34847
+ "lupa-sidebar-open": unref(isSidebarVisible)
34848
+ }]),
34849
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
34850
+ (...args) => unref(handleSortSidebarToggle) && unref(handleSortSidebarToggle)(...args))
34851
+ }, toDisplayString(unref(sortLabel)), 3)) : createCommentVNode("", true);
34852
+ };
34853
+ }
34854
+ });
34855
+ const _hoisted_1$N = { class: "lupa-search-result-facet-section" };
34856
+ const _hoisted_2$z = {
34651
34857
  key: 0,
34652
34858
  class: "lupa-facets-title"
34653
34859
  };
34654
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
34860
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
34655
34861
  __name: "FacetList",
34656
34862
  props: {
34657
34863
  options: {},
@@ -34663,6 +34869,7 @@ and ensure you are accounting for this risk.
34663
34869
  emits: ["select", "clear"],
34664
34870
  setup(__props, { emit: __emit }) {
34665
34871
  const props = __props;
34872
+ const { handleFilterSidebarToggle } = useSidebarToggle();
34666
34873
  const emit2 = __emit;
34667
34874
  const currentFiltersValue = computed(() => {
34668
34875
  var _a25;
@@ -34678,6 +34885,12 @@ and ensure you are accounting for this risk.
34678
34885
  return !((_a25 = props.options.exclude) == null ? void 0 : _a25.includes(f2.key));
34679
34886
  }) : facetsValue.value;
34680
34887
  });
34888
+ const displayFacetStyle = computed(() => {
34889
+ if (!props.facetStyle || props.facetStyle === "sidebar") {
34890
+ return "sidebar";
34891
+ }
34892
+ return "top-dropdown";
34893
+ });
34681
34894
  const handleFacetSelect = (facetAction) => {
34682
34895
  emit2("select", facetAction);
34683
34896
  };
@@ -34686,29 +34899,33 @@ and ensure you are accounting for this risk.
34686
34899
  };
34687
34900
  return (_ctx, _cache) => {
34688
34901
  var _a25;
34689
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
34690
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
34902
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
34903
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
34691
34904
  createBaseVNode("div", {
34692
- class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = _ctx.facetStyle) != null ? _a25 : "")])
34905
+ class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
34693
34906
  }, [
34694
34907
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
34695
34908
  var _a26;
34696
- return openBlock(), createBlock(_sfc_main$T, {
34909
+ return openBlock(), createBlock(_sfc_main$Z, {
34697
34910
  key: facet.key,
34698
34911
  facet,
34699
34912
  currentFilters: currentFiltersValue.value,
34700
34913
  options: _ctx.options,
34701
34914
  clearable: (_a26 = _ctx.clearable) != null ? _a26 : false,
34915
+ "current-facet-style": _ctx.facetStyle,
34702
34916
  onSelect: handleFacetSelect,
34703
- onClear: clear
34704
- }, null, 8, ["facet", "currentFilters", "options", "clearable"]);
34705
- }), 128))
34917
+ onClear: clear,
34918
+ onExpand: unref(handleFilterSidebarToggle)
34919
+ }, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
34920
+ }), 128)),
34921
+ _ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Y, { key: 0 })) : createCommentVNode("", true),
34922
+ _ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$X, { key: 1 })) : createCommentVNode("", true)
34706
34923
  ], 2)
34707
34924
  ]);
34708
34925
  };
34709
34926
  }
34710
34927
  });
34711
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
34928
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
34712
34929
  __name: "FacetsButton",
34713
34930
  props: {
34714
34931
  options: {}
@@ -34733,8 +34950,33 @@ and ensure you are accounting for this risk.
34733
34950
  };
34734
34951
  }
34735
34952
  });
34736
- const _hoisted_1$K = { class: "lupa-facets-filter-button-wrapper" };
34737
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
34953
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
34954
+ __name: "FacetsClearButton",
34955
+ props: {
34956
+ options: {}
34957
+ },
34958
+ emits: ["clear"],
34959
+ setup(__props, { emit: __emit }) {
34960
+ const props = __props;
34961
+ const emit2 = __emit;
34962
+ const label = computed(() => {
34963
+ var _a25, _b25;
34964
+ return (_b25 = (_a25 = props.options.labels) == null ? void 0 : _a25.facetClearAllButton) != null ? _b25 : "";
34965
+ });
34966
+ const handleClick = () => {
34967
+ emit2("clear");
34968
+ };
34969
+ return (_ctx, _cache) => {
34970
+ return label.value ? (openBlock(), createElementBlock("button", {
34971
+ key: 0,
34972
+ class: "lupa-facets-button-clear",
34973
+ onClick: withModifiers(handleClick, ["stop"])
34974
+ }, toDisplayString(label.value), 1)) : createCommentVNode("", true);
34975
+ };
34976
+ }
34977
+ });
34978
+ const _hoisted_1$M = { class: "lupa-facets-filter-button-wrapper" };
34979
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
34738
34980
  __name: "Facets",
34739
34981
  props: {
34740
34982
  options: {},
@@ -34747,6 +34989,7 @@ and ensure you are accounting for this risk.
34747
34989
  const paramStore = useParamsStore();
34748
34990
  const searchResultStore = useSearchResultStore();
34749
34991
  const optionsStore = useOptionsStore();
34992
+ const { handleFilterSidebarToggle } = useSidebarToggle();
34750
34993
  const { filters } = storeToRefs(paramStore);
34751
34994
  const { facets: facets2, loadingFacets } = storeToRefs(searchResultStore);
34752
34995
  const { searchResultOptions } = storeToRefs(optionsStore);
@@ -34774,7 +35017,7 @@ and ensure you are accounting for this risk.
34774
35017
  };
34775
35018
  });
34776
35019
  const showFilterButton = computed(() => {
34777
- return props.options.filterBehavior === "withFilterButton";
35020
+ return props.options.filterBehavior === "withFilterButton" && props.facetStyle === "sidebar";
34778
35021
  });
34779
35022
  const handleFacetSelect = (facetAction) => {
34780
35023
  switch (facetAction.type) {
@@ -34815,6 +35058,10 @@ and ensure you are accounting for this risk.
34815
35058
  const param = getFacetKey(facet.key, facet.type);
34816
35059
  paramStore.removeParameters({ paramsToRemove: [param] });
34817
35060
  };
35061
+ const clearAll = () => {
35062
+ paramStore.removeAllFilters();
35063
+ handleFilterSidebarToggle();
35064
+ };
34818
35065
  const filter = () => {
34819
35066
  emit2("filter");
34820
35067
  };
@@ -34822,7 +35069,7 @@ and ensure you are accounting for this risk.
34822
35069
  return openBlock(), createElementBlock("div", {
34823
35070
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
34824
35071
  }, [
34825
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$S, {
35072
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$W, {
34826
35073
  key: 0,
34827
35074
  options: _ctx.options,
34828
35075
  facets: regularFacets.value,
@@ -34832,10 +35079,15 @@ and ensure you are accounting for this risk.
34832
35079
  onSelect: handleFacetSelect,
34833
35080
  onClear: clear
34834
35081
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
34835
- createBaseVNode("div", _hoisted_1$K, [
34836
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$R, {
35082
+ createBaseVNode("div", _hoisted_1$M, [
35083
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$U, {
34837
35084
  key: 0,
34838
35085
  options: _ctx.options,
35086
+ onClear: clearAll
35087
+ }, null, 8, ["options"])) : createCommentVNode("", true),
35088
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
35089
+ key: 1,
35090
+ options: _ctx.options,
34839
35091
  onFilter: filter
34840
35092
  }, null, 8, ["options"])) : createCommentVNode("", true)
34841
35093
  ])
@@ -34843,16 +35095,17 @@ and ensure you are accounting for this risk.
34843
35095
  };
34844
35096
  }
34845
35097
  });
34846
- const _hoisted_1$J = {
35098
+ const _hoisted_1$L = {
34847
35099
  key: 0,
34848
35100
  id: "lupa-search-result-filters",
34849
35101
  class: "lupa-search-result-filters"
34850
35102
  };
34851
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
35103
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
34852
35104
  __name: "SearchResultsFilters",
34853
35105
  props: {
34854
35106
  options: {},
34855
- expandable: { type: Boolean }
35107
+ expandable: { type: Boolean },
35108
+ style: {}
34856
35109
  },
34857
35110
  emits: ["filter"],
34858
35111
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -34886,40 +35139,37 @@ and ensure you are accounting for this risk.
34886
35139
  __expose({ fetch: fetch2 });
34887
35140
  return (_ctx, _cache) => {
34888
35141
  var _a25;
34889
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
34890
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$_, {
35142
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
35143
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$14, {
34891
35144
  key: 0,
34892
35145
  options: _ctx.options.currentFilters,
34893
35146
  expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
34894
35147
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
34895
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$Y, {
35148
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$12, {
34896
35149
  key: 1,
34897
35150
  options: _ctx.options.categories,
34898
35151
  ref_key: "categoryFilters",
34899
35152
  ref: categoryFilters
34900
35153
  }, null, 8, ["options"])) : createCommentVNode("", true),
34901
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$Q, {
35154
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
34902
35155
  key: 2,
34903
35156
  options: _ctx.options.facets,
35157
+ "facet-style": _ctx.style,
34904
35158
  onFilter: filter
34905
- }, null, 8, ["options"])) : createCommentVNode("", true)
35159
+ }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
34906
35160
  ])) : createCommentVNode("", true);
34907
35161
  };
34908
35162
  }
34909
35163
  });
34910
- const _hoisted_1$I = {
35164
+ const _hoisted_1$K = { class: "lupa-mobile-sidebar-content" };
35165
+ const _hoisted_2$y = { class: "lupa-sidebar-top" };
35166
+ const _hoisted_3$q = { class: "lupa-sidebar-title" };
35167
+ const _hoisted_4$i = {
34911
35168
  key: 0,
34912
- class: "lupa-mobile-filter-sidebar"
35169
+ class: "lupa-sidebar-filter-count"
34913
35170
  };
34914
- const _hoisted_2$w = { class: "lupa-mobile-sidebar-content" };
34915
- const _hoisted_3$o = { class: "lupa-sidebar-top" };
34916
- const _hoisted_4$g = { class: "lupa-sidebar-title" };
34917
- const _hoisted_5$b = {
34918
- key: 0,
34919
- class: "lupa-sidebar-filter-count"
34920
- };
34921
- const _hoisted_6$5 = { class: "lupa-sidebar-filter-options" };
34922
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
35171
+ const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
35172
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
34923
35173
  __name: "MobileFilterSidebar",
34924
35174
  props: {
34925
35175
  options: {}
@@ -34928,7 +35178,7 @@ and ensure you are accounting for this risk.
34928
35178
  setup(__props, { emit: __emit }) {
34929
35179
  const props = __props;
34930
35180
  const searchResultStore = useSearchResultStore();
34931
- const { currentFilterCount } = storeToRefs(searchResultStore);
35181
+ const { currentFilterCount, isFilterSidebarVisible, isSidebarClosing } = storeToRefs(searchResultStore);
34932
35182
  const emit2 = __emit;
34933
35183
  const sidebarTitle = computed(() => {
34934
35184
  var _a25, _b25, _c;
@@ -34938,7 +35188,6 @@ and ensure you are accounting for this risk.
34938
35188
  var _a25, _b25;
34939
35189
  return Boolean((_b25 = (_a25 = props.options.currentFilters) == null ? void 0 : _a25.mobileSidebar) == null ? void 0 : _b25.showFilterCount) && currentFilterCount.value > 0;
34940
35190
  });
34941
- const isMobileSidebarVisible = computed(() => searchResultStore.isMobileSidebarVisible);
34942
35191
  const isActiveFiltersExpanded = computed(() => {
34943
35192
  var _a25, _b25;
34944
35193
  return !((_b25 = (_a25 = props.options.currentFilters) == null ? void 0 : _a25.mobileSidebar) == null ? void 0 : _b25.activeFiltersExpanded);
@@ -34951,42 +35200,46 @@ and ensure you are accounting for this risk.
34951
35200
  handleMobileToggle();
34952
35201
  };
34953
35202
  return (_ctx, _cache) => {
34954
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
35203
+ return unref(isFilterSidebarVisible) ? (openBlock(), createElementBlock("div", {
35204
+ key: 0,
35205
+ class: normalizeClass(["lupa-mobile-filter-sidebar", { "lupa-mobile-filter-sidebar-is-closing": unref(isSidebarClosing) }])
35206
+ }, [
34955
35207
  createBaseVNode("div", {
34956
35208
  class: "lupa-sidebar-close",
34957
35209
  onClick: withModifiers(handleMobileToggle, ["stop"])
34958
35210
  }),
34959
- createBaseVNode("div", _hoisted_2$w, [
34960
- createBaseVNode("div", _hoisted_3$o, [
34961
- createBaseVNode("div", _hoisted_4$g, [
35211
+ createBaseVNode("div", _hoisted_1$K, [
35212
+ createBaseVNode("div", _hoisted_2$y, [
35213
+ createBaseVNode("div", _hoisted_3$q, [
34962
35214
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
34963
- isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_5$b, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35215
+ isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_4$i, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
34964
35216
  ]),
34965
35217
  createBaseVNode("div", {
34966
35218
  class: "lupa-filter-toggle-mobile",
34967
35219
  onClick: handleMobileToggle
34968
35220
  })
34969
35221
  ]),
34970
- createBaseVNode("div", _hoisted_6$5, [
34971
- createVNode(_sfc_main$P, {
35222
+ createBaseVNode("div", _hoisted_5$c, [
35223
+ createVNode(_sfc_main$S, {
34972
35224
  options: _ctx.options,
34973
35225
  expandable: isActiveFiltersExpanded.value,
35226
+ style: "sidebar",
34974
35227
  onFilter: filter
34975
35228
  }, null, 8, ["options", "expandable"])
34976
35229
  ])
34977
35230
  ])
34978
- ])) : createCommentVNode("", true);
35231
+ ], 2)) : createCommentVNode("", true);
34979
35232
  };
34980
35233
  }
34981
35234
  });
34982
- const _hoisted_1$H = { id: "lupa-search-results-breadcrumbs" };
34983
- const _hoisted_2$v = ["href", "onClick"];
34984
- const _hoisted_3$n = {
35235
+ const _hoisted_1$J = { id: "lupa-search-results-breadcrumbs" };
35236
+ const _hoisted_2$x = ["href", "onClick"];
35237
+ const _hoisted_3$p = {
34985
35238
  key: 1,
34986
35239
  class: "lupa-search-results-breadcrumb-text"
34987
35240
  };
34988
- const _hoisted_4$f = { key: 2 };
34989
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
35241
+ const _hoisted_4$h = { key: 2 };
35242
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
34990
35243
  __name: "SearchResultsBreadcrumbs",
34991
35244
  props: {
34992
35245
  breadcrumbs: {}
@@ -35011,7 +35264,7 @@ and ensure you are accounting for this risk.
35011
35264
  handleRoutingEvent(link, event, hasEventRouting.value);
35012
35265
  };
35013
35266
  return (_ctx, _cache) => {
35014
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
35267
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
35015
35268
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
35016
35269
  var _a25;
35017
35270
  return openBlock(), createElementBlock("span", {
@@ -35026,20 +35279,20 @@ and ensure you are accounting for this risk.
35026
35279
  var _a26;
35027
35280
  return handleNavigation(e2, (_a26 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a26 : "");
35028
35281
  }
35029
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
35030
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
35282
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$x)) : (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(getLabel(breadcrumb.label)), 1)),
35283
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
35031
35284
  ]);
35032
35285
  }), 128))
35033
35286
  ]);
35034
35287
  };
35035
35288
  }
35036
35289
  });
35037
- const _hoisted_1$G = {
35290
+ const _hoisted_1$I = {
35038
35291
  key: 0,
35039
35292
  id: "lupa-search-result-filters",
35040
35293
  class: "lupa-search-result-filters lupa-search-result-top-filters"
35041
35294
  };
35042
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
35295
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
35043
35296
  __name: "FiltersTopDropdown",
35044
35297
  props: {
35045
35298
  options: {}
@@ -35057,8 +35310,8 @@ and ensure you are accounting for this risk.
35057
35310
  });
35058
35311
  return (_ctx, _cache) => {
35059
35312
  var _a25;
35060
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
35061
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$Q, {
35313
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
35314
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
35062
35315
  key: 0,
35063
35316
  options: _ctx.options.facets,
35064
35317
  "facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
@@ -35069,8 +35322,8 @@ and ensure you are accounting for this risk.
35069
35322
  };
35070
35323
  }
35071
35324
  });
35072
- const _hoisted_1$F = { id: "lupa-search-results-layout-selection" };
35073
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
35325
+ const _hoisted_1$H = { id: "lupa-search-results-layout-selection" };
35326
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
35074
35327
  __name: "SearchResultsLayoutSelection",
35075
35328
  setup(__props) {
35076
35329
  const searchResultStore = useSearchResultStore();
@@ -35081,7 +35334,7 @@ and ensure you are accounting for this risk.
35081
35334
  searchResultStore.setLayout(layout2);
35082
35335
  };
35083
35336
  return (_ctx, _cache) => {
35084
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
35337
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
35085
35338
  createBaseVNode("div", {
35086
35339
  class: normalizeClass([
35087
35340
  "lupa-layout-selection-grid",
@@ -35103,64 +35356,38 @@ and ensure you are accounting for this risk.
35103
35356
  };
35104
35357
  }
35105
35358
  });
35106
- const _hoisted_1$E = {
35359
+ const _hoisted_1$G = {
35107
35360
  key: 0,
35108
35361
  class: "lupa-mobile-toggle-filter-count"
35109
35362
  };
35110
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
35363
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
35111
35364
  __name: "SearchResultsMobileToggle",
35112
- props: {
35113
- labels: {},
35114
- showFilterCount: { type: Boolean }
35115
- },
35116
35365
  setup(__props) {
35117
- const props = __props;
35118
- const searchResultStore = useSearchResultStore();
35119
- const optionsStore = useOptionsStore();
35120
- const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
35121
- const { searchResultOptions } = storeToRefs(optionsStore);
35122
- const disableMobileBodyScrollLock = computed(
35123
- () => {
35124
- var _a25, _b25, _c;
35125
- return (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.disableMobileBodyScrollLock) != null ? _c : false;
35126
- }
35127
- );
35128
- const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
35129
- const defaultLabel = computed(() => props.labels.mobileFilterButton);
35130
- const activeLabel = computed(() => props.labels.mobileFilterButtonActive);
35131
- const openLabel = computed(() => props.labels.mobileFilterButtonOpen);
35132
- const label = computed(() => {
35133
- if (isSidebarVisible.value && openLabel.value) {
35134
- return openLabel.value;
35135
- }
35136
- if (hasActiveFilters.value && activeLabel.value) {
35137
- return activeLabel.value;
35138
- }
35139
- return defaultLabel.value;
35140
- });
35141
- const handleMobileToggle = () => {
35142
- searchResultStore.setSidebarState({
35143
- visible: !isSidebarVisible.value,
35144
- disableBodyScrolling: !disableMobileBodyScrollLock.value
35145
- });
35146
- };
35147
- const hasActiveFilters = computed(() => currentFilterCount.value > 0);
35366
+ const {
35367
+ isSidebarVisible,
35368
+ label,
35369
+ currentFilterCount,
35370
+ hasActiveFilters,
35371
+ showMobileFilterCount,
35372
+ handleFilterSidebarToggle
35373
+ } = useSidebarToggle();
35148
35374
  return (_ctx, _cache) => {
35149
35375
  return openBlock(), createElementBlock("div", {
35150
35376
  class: normalizeClass(["lupa-mobile-toggle", {
35151
35377
  "lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
35152
- "lupa-mobile-toggle-has-filters": hasActiveFilters.value,
35153
- "lupa-sidebar-open": isSidebarVisible.value
35378
+ "lupa-mobile-toggle-has-filters": unref(hasActiveFilters),
35379
+ "lupa-sidebar-open": unref(isSidebarVisible)
35154
35380
  }]),
35155
- onClick: handleMobileToggle
35381
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
35382
+ (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
35156
35383
  }, [
35157
- createTextVNode(toDisplayString(label.value) + " ", 1),
35158
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$E, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35384
+ createTextVNode(toDisplayString(unref(label)) + " ", 1),
35385
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35159
35386
  ], 2);
35160
35387
  };
35161
35388
  }
35162
35389
  });
35163
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
35390
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
35164
35391
  __name: "SearchResultsMobileFilterClose",
35165
35392
  props: {
35166
35393
  label: {}
@@ -35180,20 +35407,20 @@ and ensure you are accounting for this risk.
35180
35407
  };
35181
35408
  }
35182
35409
  });
35183
- const _hoisted_1$D = {
35410
+ const _hoisted_1$F = {
35184
35411
  key: 0,
35185
35412
  id: "lupa-search-results-page-select",
35186
35413
  "data-cy": "lupa-search-results-page-select"
35187
35414
  };
35188
- const _hoisted_2$u = {
35415
+ const _hoisted_2$w = {
35189
35416
  key: 0,
35190
35417
  class: "lupa-page-number-separator"
35191
35418
  };
35192
- const _hoisted_3$m = {
35419
+ const _hoisted_3$o = {
35193
35420
  key: 0,
35194
35421
  class: "lupa-page-number-separator"
35195
35422
  };
35196
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
35423
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
35197
35424
  __name: "SearchResultsPageSelect",
35198
35425
  props: {
35199
35426
  lastPageLabel: {},
@@ -35288,7 +35515,7 @@ and ensure you are accounting for this risk.
35288
35515
  };
35289
35516
  return (_ctx, _cache) => {
35290
35517
  var _a25;
35291
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
35518
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
35292
35519
  showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
35293
35520
  key: 0,
35294
35521
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -35312,7 +35539,7 @@ and ensure you are accounting for this risk.
35312
35539
  _: 1,
35313
35540
  __: [4]
35314
35541
  }, 8, ["href"])),
35315
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
35542
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, "...")) : createCommentVNode("", true)
35316
35543
  ], 64)) : createCommentVNode("", true),
35317
35544
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
35318
35545
  return openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
@@ -35332,7 +35559,7 @@ and ensure you are accounting for this risk.
35332
35559
  }, 1032, ["href", "onClick", "class"]);
35333
35560
  }), 128)),
35334
35561
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
35335
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, "...")) : createCommentVNode("", true),
35562
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_3$o, "...")) : createCommentVNode("", true),
35336
35563
  (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
35337
35564
  href: getHref((_a25 = lastPage.value) != null ? _a25 : 1),
35338
35565
  class: "lupa-page-number lupa-page-number-last",
@@ -35363,18 +35590,18 @@ and ensure you are accounting for this risk.
35363
35590
  };
35364
35591
  }
35365
35592
  });
35366
- const _hoisted_1$C = {
35593
+ const _hoisted_1$E = {
35367
35594
  id: "lupa-search-results-page-size",
35368
35595
  "data-cy": "lupa-search-results-page-size"
35369
35596
  };
35370
- const _hoisted_2$t = { id: "lupa-select" };
35371
- const _hoisted_3$l = {
35597
+ const _hoisted_2$v = { id: "lupa-select" };
35598
+ const _hoisted_3$n = {
35372
35599
  class: "lupa-select-label",
35373
35600
  for: "lupa-page-size-select-dropdown"
35374
35601
  };
35375
- const _hoisted_4$e = ["aria-label"];
35376
- const _hoisted_5$a = ["value"];
35377
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
35602
+ const _hoisted_4$g = ["aria-label"];
35603
+ const _hoisted_5$b = ["value"];
35604
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
35378
35605
  __name: "SearchResultsPageSize",
35379
35606
  props: {
35380
35607
  labels: {},
@@ -35404,9 +35631,9 @@ and ensure you are accounting for this risk.
35404
35631
  };
35405
35632
  return (_ctx, _cache) => {
35406
35633
  var _a25, _b25, _c;
35407
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
35408
- createBaseVNode("div", _hoisted_2$t, [
35409
- createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
35634
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
35635
+ createBaseVNode("div", _hoisted_2$v, [
35636
+ createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
35410
35637
  createBaseVNode("select", {
35411
35638
  id: "lupa-page-size-select-dropdown",
35412
35639
  class: "lupa-select-dropdown",
@@ -35420,110 +35647,161 @@ and ensure you are accounting for this risk.
35420
35647
  return openBlock(), createElementBlock("option", {
35421
35648
  key: option,
35422
35649
  value: option
35423
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
35650
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
35424
35651
  }), 128))
35425
- ], 40, _hoisted_4$e)
35652
+ ], 40, _hoisted_4$g)
35426
35653
  ])
35427
35654
  ]);
35428
35655
  };
35429
35656
  }
35430
35657
  });
35431
- const _hoisted_1$B = {
35658
+ const useSorting = () => {
35659
+ const paramStore = useParamsStore();
35660
+ const optionStore = useOptionsStore();
35661
+ const { sort } = storeToRefs(paramStore);
35662
+ const { ariaLabels, searchResultOptions } = storeToRefs(optionStore);
35663
+ const selectedKey = ref("");
35664
+ const previousKey = ref("");
35665
+ const sortStyle = computed(() => {
35666
+ return searchResultOptions.value.sortStyle;
35667
+ });
35668
+ const sortOptions = computed(() => {
35669
+ return searchResultOptions.value.sort;
35670
+ });
35671
+ const callbacks = computed(() => {
35672
+ return searchResultOptions.value.callbacks;
35673
+ });
35674
+ const sotyByTitleLabel = computed(() => {
35675
+ var _a25;
35676
+ return (_a25 = searchResultOptions.value.labels) == null ? void 0 : _a25.sortBy;
35677
+ });
35678
+ const sortItems = computed(() => {
35679
+ if (sortOptions.value && sortOptions.value.length) {
35680
+ return sortOptions.value;
35681
+ } else {
35682
+ return [];
35683
+ }
35684
+ });
35685
+ const defaultSortValue = computed(() => {
35686
+ var _a25, _b25, _c;
35687
+ return (_c = (_a25 = sortOptions.value) == null ? void 0 : _a25.find((x) => x.default)) != null ? _c : (_b25 = sortItems.value) == null ? void 0 : _b25[0];
35688
+ });
35689
+ const setSortValue = () => {
35690
+ var _a25, _b25;
35691
+ const optionToSelect = (_a25 = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a25.key;
35692
+ selectedKey.value = optionToSelect != null ? optionToSelect : (_b25 = defaultSortValue.value) == null ? void 0 : _b25.key;
35693
+ previousKey.value = selectedKey.value;
35694
+ };
35695
+ watch(sort, () => setSortValue());
35696
+ const handleSelect = () => {
35697
+ var _a25, _b25, _c;
35698
+ const value = (_a25 = sortItems.value.find((x) => x.key === selectedKey.value)) == null ? void 0 : _a25.key;
35699
+ if (!value) {
35700
+ return;
35701
+ }
35702
+ paramStore.setSortSettings({ selectedSortKey: value, previousSortKey: previousKey.value });
35703
+ (_c = (_b25 = callbacks.value) == null ? void 0 : _b25.onSortChange) == null ? void 0 : _c.call(_b25, { selectedSortKey: value, previousSortKey: previousKey.value });
35704
+ paramStore.appendParams({
35705
+ params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.SORT), value }],
35706
+ paramsToRemove: [optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
35707
+ });
35708
+ previousKey.value = selectedKey.value;
35709
+ };
35710
+ return {
35711
+ sotyByTitleLabel,
35712
+ sortItems,
35713
+ selectedKey,
35714
+ ariaLabels,
35715
+ sortOptions,
35716
+ sortStyle,
35717
+ handleSelect,
35718
+ setSortValue
35719
+ };
35720
+ };
35721
+ const _hoisted_1$D = {
35722
+ key: 0,
35432
35723
  id: "lupa-search-results-sort",
35433
35724
  class: "lupa-search-results-sort"
35434
35725
  };
35435
- const _hoisted_2$s = { id: "lupa-select" };
35436
- const _hoisted_3$k = {
35726
+ const _hoisted_2$u = { id: "lupa-select" };
35727
+ const _hoisted_3$m = {
35437
35728
  class: "lupa-select-label",
35438
35729
  for: "lupa-sort-select-dropdown"
35439
35730
  };
35440
- const _hoisted_4$d = ["aria-label"];
35441
- const _hoisted_5$9 = ["value"];
35442
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
35731
+ const _hoisted_4$f = ["aria-label"];
35732
+ const _hoisted_5$a = ["value"];
35733
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
35443
35734
  __name: "SearchResultsSort",
35444
- props: {
35445
- options: {},
35446
- callbacks: {}
35447
- },
35448
35735
  setup(__props) {
35449
- const props = __props;
35450
- const paramStore = useParamsStore();
35451
- const optionStore = useOptionsStore();
35452
- const { sort } = storeToRefs(paramStore);
35453
- const { ariaLabels } = storeToRefs(optionStore);
35454
- const selectedKey = ref("");
35455
- const previousKey = ref("");
35456
- const sortItems = computed(() => {
35457
- if (props.options.options && props.options.options.length) {
35458
- return props.options.options;
35459
- } else {
35460
- return [];
35461
- }
35462
- });
35463
- const defaultSortValue = computed(() => {
35464
- var _a25;
35465
- return (_a25 = props.options.options.find((x) => x.default)) != null ? _a25 : props.options.options[0];
35466
- });
35467
- const setSortValue = () => {
35468
- var _a25, _b25;
35469
- const optionToSelect = (_a25 = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a25.key;
35470
- selectedKey.value = optionToSelect != null ? optionToSelect : (_b25 = defaultSortValue.value) == null ? void 0 : _b25.key;
35471
- previousKey.value = selectedKey.value;
35472
- };
35473
- watch(sort, () => setSortValue());
35736
+ const {
35737
+ sortItems,
35738
+ selectedKey,
35739
+ ariaLabels,
35740
+ sotyByTitleLabel,
35741
+ sortStyle,
35742
+ handleSelect,
35743
+ setSortValue
35744
+ } = useSorting();
35474
35745
  onMounted(() => {
35475
35746
  setSortValue();
35476
35747
  });
35477
- const handleSelect = () => {
35478
- var _a25, _b25, _c;
35479
- const value = (_a25 = sortItems.value.find((x) => x.key === selectedKey.value)) == null ? void 0 : _a25.key;
35480
- if (!value) {
35481
- return;
35482
- }
35483
- paramStore.setSortSettings({ selectedSortKey: value, previousSortKey: previousKey.value });
35484
- (_c = (_b25 = props.callbacks) == null ? void 0 : _b25.onSortChange) == null ? void 0 : _c.call(_b25, { selectedSortKey: value, previousSortKey: previousKey.value });
35485
- paramStore.appendParams({
35486
- params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.SORT), value }],
35487
- paramsToRemove: [optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
35488
- });
35489
- previousKey.value = selectedKey.value;
35490
- };
35748
+ const showDefaultSort = computed(() => {
35749
+ var _a25;
35750
+ return !sortStyle.value || ((_a25 = sortStyle.value) == null ? void 0 : _a25.type) !== "drawer";
35751
+ });
35491
35752
  return (_ctx, _cache) => {
35492
35753
  var _a25, _b25;
35493
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
35494
- createBaseVNode("div", _hoisted_2$s, [
35495
- createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
35754
+ return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
35755
+ createBaseVNode("div", _hoisted_2$u, [
35756
+ createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
35496
35757
  withDirectives(createBaseVNode("select", {
35497
35758
  id: "lupa-sort-select-dropdown",
35498
35759
  class: "lupa-select-dropdown",
35499
- "aria-label": (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.sortBySelect) != null ? _b25 : _ctx.options.label,
35760
+ "aria-label": (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.sortBySelect) != null ? _b25 : unref(sotyByTitleLabel),
35500
35761
  "data-cy": "lupa-sort-select-dropdown",
35501
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
35502
- onChange: handleSelect,
35762
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(selectedKey) ? selectedKey.value = $event : null),
35763
+ onChange: _cache[1] || (_cache[1] = //@ts-ignore
35764
+ (...args) => unref(handleSelect) && unref(handleSelect)(...args)),
35503
35765
  ref: "select"
35504
35766
  }, [
35505
- (openBlock(true), createElementBlock(Fragment, null, renderList(sortItems.value, (option) => {
35767
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(sortItems), (option) => {
35506
35768
  return openBlock(), createElementBlock("option", {
35507
35769
  key: option.key,
35508
35770
  value: option.key
35509
- }, toDisplayString(option.label), 9, _hoisted_5$9);
35771
+ }, toDisplayString(option.label), 9, _hoisted_5$a);
35510
35772
  }), 128))
35511
- ], 40, _hoisted_4$d), [
35512
- [vModelSelect, selectedKey.value]
35773
+ ], 40, _hoisted_4$f), [
35774
+ [vModelSelect, unref(selectedKey)]
35513
35775
  ])
35514
35776
  ])
35515
- ]);
35777
+ ])) : createCommentVNode("", true);
35778
+ };
35779
+ }
35780
+ });
35781
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
35782
+ __name: "SearchResultsSortDrawerToggle",
35783
+ setup(__props) {
35784
+ const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
35785
+ return (_ctx, _cache) => {
35786
+ return unref(sortToggleVisible) ? (openBlock(), createElementBlock("div", {
35787
+ key: 0,
35788
+ class: normalizeClass(["lupa-mobile-toggle lupa-mobile-sort-toggle", {
35789
+ "lupa-sidebar-open": unref(isSidebarVisible)
35790
+ }]),
35791
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
35792
+ (...args) => unref(handleSortSidebarToggle) && unref(handleSortSidebarToggle)(...args))
35793
+ }, toDisplayString(unref(sortLabel)), 3)) : createCommentVNode("", true);
35516
35794
  };
35517
35795
  }
35518
35796
  });
35519
- const _hoisted_1$A = { class: "lupa-toolbar-left" };
35520
- const _hoisted_2$r = {
35797
+ const _hoisted_1$C = { class: "lupa-toolbar-left" };
35798
+ const _hoisted_2$t = {
35521
35799
  key: 0,
35522
35800
  class: "lupa-toolbar-right-title"
35523
35801
  };
35524
- const _hoisted_3$j = { key: 2 };
35525
- const _hoisted_4$c = { key: 4 };
35526
- const _hoisted_5$8 = { key: 6 };
35802
+ const _hoisted_3$l = { key: 2 };
35803
+ const _hoisted_4$e = { key: 4 };
35804
+ const _hoisted_5$9 = { key: 6 };
35527
35805
  const _hoisted_6$4 = { class: "lupa-toolbar-right" };
35528
35806
  const _hoisted_7$2 = {
35529
35807
  key: 0,
@@ -35531,7 +35809,7 @@ and ensure you are accounting for this risk.
35531
35809
  };
35532
35810
  const _hoisted_8 = { key: 2 };
35533
35811
  const _hoisted_9 = { key: 4 };
35534
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
35812
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
35535
35813
  __name: "SearchResultsToolbar",
35536
35814
  props: {
35537
35815
  options: {},
@@ -35547,7 +35825,7 @@ and ensure you are accounting for this risk.
35547
35825
  const searchResultStore = useSearchResultStore();
35548
35826
  const optionsStore = useOptionsStore();
35549
35827
  const { page, limit } = storeToRefs(paramStore);
35550
- const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
35828
+ const { hasAnyFilter, searchResult, isFilterSidebarVisible } = storeToRefs(searchResultStore);
35551
35829
  const { currentResolutionPageSizes } = storeToRefs(optionsStore);
35552
35830
  const isBottomLocation = computed(() => {
35553
35831
  return props.paginationLocation === "bottom";
@@ -35625,7 +35903,7 @@ and ensure you are accounting for this risk.
35625
35903
  var _a25;
35626
35904
  return (_a25 = optionsValue.value.labels.toolbarRightLabel) != null ? _a25 : "";
35627
35905
  });
35628
- const showMobileFilterCount = computed(() => {
35906
+ computed(() => {
35629
35907
  var _a25, _b25, _c;
35630
35908
  return Boolean((_c = (_b25 = (_a25 = optionsValue.value.filters) == null ? void 0 : _a25.currentFilters) == null ? void 0 : _b25.mobileSidebar) == null ? void 0 : _c.showFilterCount);
35631
35909
  });
@@ -35644,39 +35922,37 @@ and ensure you are accounting for this risk.
35644
35922
  id: "lupa-search-results-toolbar",
35645
35923
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
35646
35924
  }, [
35647
- createBaseVNode("div", _hoisted_1$A, [
35648
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
35649
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$L, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
35650
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$11, {
35925
+ createBaseVNode("div", _hoisted_1$C, [
35926
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
35927
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$O, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
35928
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$17, {
35651
35929
  key: 3,
35652
35930
  label: searchSummaryLabel.value,
35653
35931
  clearable: unref(hasAnyFilter) && showFilterClear.value,
35654
35932
  onClear: handleClearAll
35655
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
35656
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$I, {
35933
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
35934
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$L, {
35657
35935
  key: 5,
35658
35936
  options: paginationOptions.value.pageSelect,
35659
35937
  "last-page-label": paginationOptions.value.labels.showMore,
35660
35938
  "first-page-label": paginationOptions.value.labels.showLess
35661
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$8))
35939
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
35662
35940
  ]),
35663
35941
  createBaseVNode("div", _hoisted_6$4, [
35664
35942
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
35665
- createVNode(_sfc_main$K, {
35666
- labels: optionsValue.value.labels,
35667
- "show-filter-count": showMobileFilterCount.value
35668
- }, null, 8, ["labels", "show-filter-count"]),
35669
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$H, {
35943
+ createVNode(_sfc_main$N),
35944
+ createVNode(_sfc_main$I),
35945
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$K, {
35670
35946
  key: 1,
35671
35947
  options: paginationOptions.value.pageSize,
35672
35948
  labels: paginationOptions.value.labels
35673
35949
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
35674
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$G, {
35950
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$J, {
35675
35951
  key: 3,
35676
35952
  options: sortOptions.value,
35677
35953
  callbacks: callbacks.value
35678
35954
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
35679
- showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$J, {
35955
+ showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$M, {
35680
35956
  key: 5,
35681
35957
  label: optionsValue.value.labels.mobileFilterCloseButton
35682
35958
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -35685,7 +35961,7 @@ and ensure you are accounting for this risk.
35685
35961
  };
35686
35962
  }
35687
35963
  });
35688
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
35964
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
35689
35965
  __name: "SearchResultsProductImage",
35690
35966
  props: {
35691
35967
  item: {},
@@ -35693,7 +35969,7 @@ and ensure you are accounting for this risk.
35693
35969
  },
35694
35970
  setup(__props) {
35695
35971
  return (_ctx, _cache) => {
35696
- return openBlock(), createBlock(_sfc_main$1q, {
35972
+ return openBlock(), createBlock(_sfc_main$1w, {
35697
35973
  item: _ctx.item,
35698
35974
  options: _ctx.options,
35699
35975
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -35702,16 +35978,16 @@ and ensure you are accounting for this risk.
35702
35978
  };
35703
35979
  }
35704
35980
  });
35705
- const _hoisted_1$z = ["title", "innerHTML"];
35706
- const _hoisted_2$q = ["title"];
35707
- const _hoisted_3$i = ["href", "innerHTML"];
35708
- const _hoisted_4$b = ["title"];
35709
- const _hoisted_5$7 = {
35981
+ const _hoisted_1$B = ["title", "innerHTML"];
35982
+ const _hoisted_2$s = ["title"];
35983
+ const _hoisted_3$k = ["href", "innerHTML"];
35984
+ const _hoisted_4$d = ["title"];
35985
+ const _hoisted_5$8 = {
35710
35986
  key: 0,
35711
35987
  class: "lupa-search-results-product-title-text"
35712
35988
  };
35713
35989
  const _hoisted_6$3 = ["href"];
35714
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
35990
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
35715
35991
  __name: "SearchResultsProductTitle",
35716
35992
  props: {
35717
35993
  item: {},
@@ -35748,7 +36024,7 @@ and ensure you are accounting for this risk.
35748
36024
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
35749
36025
  title: sanitizedTitle.value,
35750
36026
  innerHTML: sanitizedTitle.value
35751
- }, null, 12, _hoisted_1$z)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
36027
+ }, null, 12, _hoisted_1$B)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
35752
36028
  key: 1,
35753
36029
  class: "lupa-search-results-product-title",
35754
36030
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -35759,26 +36035,26 @@ and ensure you are accounting for this risk.
35759
36035
  class: "lupa-search-results-product-title-text lupa-title-link",
35760
36036
  innerHTML: sanitizedTitle.value,
35761
36037
  onClick: handleNavigation
35762
- }, null, 8, _hoisted_3$i)
35763
- ], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
36038
+ }, null, 8, _hoisted_3$k)
36039
+ ], 12, _hoisted_2$s)) : (openBlock(), createElementBlock("div", {
35764
36040
  key: 2,
35765
36041
  class: "lupa-search-results-product-title",
35766
36042
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
35767
36043
  title: title.value
35768
36044
  }, [
35769
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
36045
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
35770
36046
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
35771
36047
  key: 1,
35772
36048
  href: _ctx.link,
35773
36049
  class: "lupa-search-results-product-title-text lupa-title-link",
35774
36050
  onClick: handleNavigation
35775
36051
  }, toDisplayString(title.value), 9, _hoisted_6$3)) : createCommentVNode("", true)
35776
- ], 12, _hoisted_4$b));
36052
+ ], 12, _hoisted_4$d));
35777
36053
  };
35778
36054
  }
35779
36055
  });
35780
- const _hoisted_1$y = ["innerHTML"];
35781
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
36056
+ const _hoisted_1$A = ["innerHTML"];
36057
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
35782
36058
  __name: "SearchResultsProductDescription",
35783
36059
  props: {
35784
36060
  item: {},
@@ -35805,7 +36081,7 @@ and ensure you are accounting for this risk.
35805
36081
  class: "lupa-search-results-product-description",
35806
36082
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
35807
36083
  innerHTML: sanitizedDescription.value
35808
- }, null, 12, _hoisted_1$y)) : (openBlock(), createElementBlock("div", {
36084
+ }, null, 12, _hoisted_1$A)) : (openBlock(), createElementBlock("div", {
35809
36085
  key: 1,
35810
36086
  class: "lupa-search-results-product-description",
35811
36087
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -35813,15 +36089,15 @@ and ensure you are accounting for this risk.
35813
36089
  };
35814
36090
  }
35815
36091
  });
35816
- const _hoisted_1$x = { id: "lupa-search-results-rating" };
35817
- const _hoisted_2$p = { class: "lupa-ratings" };
35818
- const _hoisted_3$h = { class: "lupa-ratings-base" };
35819
- const _hoisted_4$a = ["innerHTML"];
35820
- const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
36092
+ const _hoisted_1$z = { id: "lupa-search-results-rating" };
36093
+ const _hoisted_2$r = { class: "lupa-ratings" };
36094
+ const _hoisted_3$j = { class: "lupa-ratings-base" };
36095
+ const _hoisted_4$c = ["innerHTML"];
36096
+ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
35821
36097
  const _hoisted_6$2 = ["innerHTML"];
35822
36098
  const _hoisted_7$1 = ["href"];
35823
36099
  const STAR_COUNT = 5;
35824
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
36100
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
35825
36101
  __name: "SearchResultsProductRating",
35826
36102
  props: {
35827
36103
  item: {},
@@ -35858,18 +36134,18 @@ and ensure you are accounting for this risk.
35858
36134
  return generateLink(props.options.links.ratingDetails, props.item);
35859
36135
  });
35860
36136
  return (_ctx, _cache) => {
35861
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
35862
- createBaseVNode("div", _hoisted_2$p, [
35863
- createBaseVNode("div", _hoisted_3$h, [
36137
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
36138
+ createBaseVNode("div", _hoisted_2$r, [
36139
+ createBaseVNode("div", _hoisted_3$j, [
35864
36140
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
35865
36141
  return openBlock(), createElementBlock("div", {
35866
36142
  key: index,
35867
36143
  innerHTML: star,
35868
36144
  class: "lupa-rating lupa-rating-not-highlighted"
35869
- }, null, 8, _hoisted_4$a);
36145
+ }, null, 8, _hoisted_4$c);
35870
36146
  }), 128))
35871
36147
  ]),
35872
- createBaseVNode("div", _hoisted_5$6, [
36148
+ createBaseVNode("div", _hoisted_5$7, [
35873
36149
  createBaseVNode("div", {
35874
36150
  class: "lupa-ratings-highlighted",
35875
36151
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -35892,11 +36168,11 @@ and ensure you are accounting for this risk.
35892
36168
  };
35893
36169
  }
35894
36170
  });
35895
- const _hoisted_1$w = {
36171
+ const _hoisted_1$y = {
35896
36172
  class: "lupa-search-results-product-regular-price",
35897
36173
  "data-cy": "lupa-search-results-product-regular-price"
35898
36174
  };
35899
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
36175
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
35900
36176
  __name: "SearchResultsProductRegularPrice",
35901
36177
  props: {
35902
36178
  item: {},
@@ -35918,11 +36194,11 @@ and ensure you are accounting for this risk.
35918
36194
  );
35919
36195
  });
35920
36196
  return (_ctx, _cache) => {
35921
- return openBlock(), createElementBlock("div", _hoisted_1$w, toDisplayString(price.value), 1);
36197
+ return openBlock(), createElementBlock("div", _hoisted_1$y, toDisplayString(price.value), 1);
35922
36198
  };
35923
36199
  }
35924
36200
  });
35925
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
36201
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35926
36202
  __name: "SearchResultsProductPrice",
35927
36203
  props: {
35928
36204
  item: {},
@@ -35956,12 +36232,12 @@ and ensure you are accounting for this risk.
35956
36232
  };
35957
36233
  }
35958
36234
  });
35959
- const _hoisted_1$v = { class: "lupa-search-results-add-to-cart-wrapper" };
35960
- const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
35961
- const _hoisted_3$g = ["disabled"];
35962
- const _hoisted_4$9 = ["href"];
35963
- const _hoisted_5$5 = ["id", "disabled"];
35964
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
36235
+ const _hoisted_1$x = { class: "lupa-search-results-add-to-cart-wrapper" };
36236
+ const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
36237
+ const _hoisted_3$i = ["disabled"];
36238
+ const _hoisted_4$b = ["href"];
36239
+ const _hoisted_5$6 = ["id", "disabled"];
36240
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
35965
36241
  __name: "SearchResultsProductAddToCart",
35966
36242
  props: {
35967
36243
  item: {},
@@ -36020,16 +36296,16 @@ and ensure you are accounting for this risk.
36020
36296
  loading.value = false;
36021
36297
  });
36022
36298
  return (_ctx, _cache) => {
36023
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
36024
- createBaseVNode("div", _hoisted_2$o, [
36299
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
36300
+ createBaseVNode("div", _hoisted_2$q, [
36025
36301
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
36026
36302
  key: 0,
36027
36303
  class: addToCartButtonClass.value,
36028
36304
  "data-cy": "lupa-add-to-cart",
36029
36305
  disabled: !inStockValue.value || loading.value
36030
36306
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
36031
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
36032
- ], 16, _hoisted_3$g)) : (openBlock(), createElementBlock("button", mergeProps({
36307
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$b)
36308
+ ], 16, _hoisted_3$i)) : (openBlock(), createElementBlock("button", mergeProps({
36033
36309
  key: 1,
36034
36310
  id: id.value,
36035
36311
  class: addToCartButtonClass.value,
@@ -36037,18 +36313,18 @@ and ensure you are accounting for this risk.
36037
36313
  disabled: !inStockValue.value || loading.value
36038
36314
  }, _ctx.dynamicAttributes, {
36039
36315
  onClick: withModifiers(handleClick, ["stop"])
36040
- }), toDisplayString(label.value), 17, _hoisted_5$5))
36316
+ }), toDisplayString(label.value), 17, _hoisted_5$6))
36041
36317
  ])
36042
36318
  ]);
36043
36319
  };
36044
36320
  }
36045
36321
  });
36046
- const _hoisted_1$u = ["innerHTML"];
36047
- const _hoisted_2$n = { key: 0 };
36048
- const _hoisted_3$f = { key: 1 };
36049
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
36050
- const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
36051
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
36322
+ const _hoisted_1$w = ["innerHTML"];
36323
+ const _hoisted_2$p = { key: 0 };
36324
+ const _hoisted_3$h = { key: 1 };
36325
+ const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
36326
+ const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
36327
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
36052
36328
  __name: "SearchResultsProductCustom",
36053
36329
  props: {
36054
36330
  item: {},
@@ -36090,20 +36366,20 @@ and ensure you are accounting for this risk.
36090
36366
  key: 0,
36091
36367
  class: className.value,
36092
36368
  innerHTML: text.value
36093
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$u)) : (openBlock(), createElementBlock("div", mergeProps({
36369
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w)) : (openBlock(), createElementBlock("div", mergeProps({
36094
36370
  key: 1,
36095
36371
  class: className.value
36096
36372
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
36097
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
36098
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
36099
- createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
36373
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$h, [
36374
+ createBaseVNode("div", _hoisted_4$a, toDisplayString(label.value), 1),
36375
+ createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
36100
36376
  ]))
36101
36377
  ], 16));
36102
36378
  };
36103
36379
  }
36104
36380
  });
36105
- const _hoisted_1$t = ["innerHTML"];
36106
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
36381
+ const _hoisted_1$v = ["innerHTML"];
36382
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
36107
36383
  __name: "SearchResultsProductCustomHtmlElement",
36108
36384
  props: {
36109
36385
  item: {},
@@ -36139,15 +36415,15 @@ and ensure you are accounting for this risk.
36139
36415
  return openBlock(), createElementBlock("div", mergeProps({
36140
36416
  class: className.value,
36141
36417
  innerHTML: text.value
36142
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$t);
36418
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$v);
36143
36419
  };
36144
36420
  }
36145
36421
  });
36146
- const _hoisted_1$s = { id: "lupa-search-results-rating" };
36147
- const _hoisted_2$m = ["innerHTML"];
36148
- const _hoisted_3$e = { class: "lupa-ratings" };
36149
- const _hoisted_4$7 = ["href"];
36150
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
36422
+ const _hoisted_1$u = { id: "lupa-search-results-rating" };
36423
+ const _hoisted_2$o = ["innerHTML"];
36424
+ const _hoisted_3$g = { class: "lupa-ratings" };
36425
+ const _hoisted_4$9 = ["href"];
36426
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
36151
36427
  __name: "SearchResultsProductSingleStarRating",
36152
36428
  props: {
36153
36429
  item: {},
@@ -36175,35 +36451,35 @@ and ensure you are accounting for this risk.
36175
36451
  return RATING_STAR_HTML;
36176
36452
  });
36177
36453
  return (_ctx, _cache) => {
36178
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
36454
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
36179
36455
  createBaseVNode("div", {
36180
36456
  innerHTML: star.value,
36181
36457
  class: "lupa-rating lupa-rating-highlighted"
36182
- }, null, 8, _hoisted_2$m),
36183
- createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
36458
+ }, null, 8, _hoisted_2$o),
36459
+ createBaseVNode("div", _hoisted_3$g, toDisplayString(rating.value), 1),
36184
36460
  createBaseVNode("a", {
36185
36461
  href: ratingLink.value,
36186
36462
  class: "lupa-total-ratings"
36187
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
36463
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$9)
36188
36464
  ]);
36189
36465
  };
36190
36466
  }
36191
36467
  });
36192
36468
  const __default__ = {
36193
36469
  components: {
36194
- SearchResultsProductImage: _sfc_main$E,
36195
- SearchResultsProductTitle: _sfc_main$D,
36196
- SearchResultsProductDescription: _sfc_main$C,
36197
- SearchResultsProductRating: _sfc_main$B,
36198
- SearchResultsProductRegularPrice: _sfc_main$A,
36199
- SearchResultsProductPrice: _sfc_main$z,
36200
- SearchResultsProductAddToCart: _sfc_main$y,
36201
- SearchResultsProductCustom: _sfc_main$x,
36202
- SearchResultsProductCustomHtmlElement: _sfc_main$w,
36203
- SearchResultsProductSingleStarRating: _sfc_main$v
36204
- }
36205
- };
36206
- const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36470
+ SearchResultsProductImage: _sfc_main$G,
36471
+ SearchResultsProductTitle: _sfc_main$F,
36472
+ SearchResultsProductDescription: _sfc_main$E,
36473
+ SearchResultsProductRating: _sfc_main$D,
36474
+ SearchResultsProductRegularPrice: _sfc_main$C,
36475
+ SearchResultsProductPrice: _sfc_main$B,
36476
+ SearchResultsProductAddToCart: _sfc_main$A,
36477
+ SearchResultsProductCustom: _sfc_main$z,
36478
+ SearchResultsProductCustomHtmlElement: _sfc_main$y,
36479
+ SearchResultsProductSingleStarRating: _sfc_main$x
36480
+ }
36481
+ };
36482
+ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36207
36483
  __name: "SearchResultsProductCardElement",
36208
36484
  props: {
36209
36485
  item: {},
@@ -36281,13 +36557,13 @@ and ensure you are accounting for this risk.
36281
36557
  };
36282
36558
  }
36283
36559
  }));
36284
- const _hoisted_1$r = ["href"];
36285
- const _hoisted_2$l = {
36560
+ const _hoisted_1$t = ["href"];
36561
+ const _hoisted_2$n = {
36286
36562
  key: 0,
36287
36563
  class: "lupa-out-of-stock"
36288
36564
  };
36289
- const _hoisted_3$d = { class: "lupa-search-result-product-details-section" };
36290
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
36565
+ const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
36566
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36291
36567
  __name: "SearchResultsProductCard",
36292
36568
  props: {
36293
36569
  product: {},
@@ -36463,7 +36739,7 @@ and ensure you are accounting for this risk.
36463
36739
  default: withCtx(() => {
36464
36740
  var _a25;
36465
36741
  return [
36466
- createVNode(_sfc_main$1a, { options: badgesOptions.value }, null, 8, ["options"]),
36742
+ createVNode(_sfc_main$1g, { options: badgesOptions.value }, null, 8, ["options"]),
36467
36743
  createBaseVNode("div", {
36468
36744
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
36469
36745
  }, [
@@ -36473,7 +36749,7 @@ and ensure you are accounting for this risk.
36473
36749
  onClick: handleNavigation
36474
36750
  }, [
36475
36751
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
36476
- return openBlock(), createBlock(_sfc_main$u, {
36752
+ return openBlock(), createBlock(_sfc_main$w, {
36477
36753
  class: "lupa-search-results-product-element",
36478
36754
  item: _ctx.product,
36479
36755
  element,
@@ -36484,16 +36760,16 @@ and ensure you are accounting for this risk.
36484
36760
  onProductEvent: handleProductEvent
36485
36761
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
36486
36762
  }), 128)),
36487
- createVNode(_sfc_main$1a, {
36763
+ createVNode(_sfc_main$1g, {
36488
36764
  options: badgesOptions.value,
36489
36765
  position: "image",
36490
36766
  class: "lupa-image-badges"
36491
36767
  }, null, 8, ["options"]),
36492
- ((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
36493
- ], 8, _hoisted_1$r),
36494
- createBaseVNode("div", _hoisted_3$d, [
36768
+ ((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
36769
+ ], 8, _hoisted_1$t),
36770
+ createBaseVNode("div", _hoisted_3$f, [
36495
36771
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
36496
- return openBlock(), createBlock(_sfc_main$u, {
36772
+ return openBlock(), createBlock(_sfc_main$w, {
36497
36773
  class: "lupa-search-results-product-element",
36498
36774
  item: _ctx.product,
36499
36775
  element,
@@ -36511,7 +36787,7 @@ and ensure you are accounting for this risk.
36511
36787
  class: normalizeClass("lupa-element-group-" + group)
36512
36788
  }, [
36513
36789
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
36514
- return openBlock(), createBlock(_sfc_main$u, {
36790
+ return openBlock(), createBlock(_sfc_main$w, {
36515
36791
  class: "lupa-search-results-product-element",
36516
36792
  item: _ctx.product,
36517
36793
  element,
@@ -36532,23 +36808,23 @@ and ensure you are accounting for this risk.
36532
36808
  };
36533
36809
  }
36534
36810
  });
36535
- const _hoisted_1$q = {
36811
+ const _hoisted_1$s = {
36536
36812
  id: "lupa-search-results-similar-queries",
36537
36813
  "data-cy": "lupa-search-results-similar-queries"
36538
36814
  };
36539
- const _hoisted_2$k = { class: "lupa-similar-queries-label" };
36540
- const _hoisted_3$c = {
36815
+ const _hoisted_2$m = { class: "lupa-similar-queries-label" };
36816
+ const _hoisted_3$e = {
36541
36817
  class: "lupa-similar-query-label",
36542
36818
  "data-cy": "lupa-similar-query-label"
36543
36819
  };
36544
- const _hoisted_4$6 = ["onClick"];
36545
- const _hoisted_5$3 = ["innerHTML"];
36820
+ const _hoisted_4$8 = ["onClick"];
36821
+ const _hoisted_5$4 = ["innerHTML"];
36546
36822
  const _hoisted_6$1 = { key: 0 };
36547
36823
  const _hoisted_7 = {
36548
36824
  class: "lupa-products",
36549
36825
  "data-cy": "lupa-products"
36550
36826
  };
36551
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
36827
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
36552
36828
  __name: "SearchResultsSimilarQueries",
36553
36829
  props: {
36554
36830
  labels: {},
@@ -36586,11 +36862,11 @@ and ensure you are accounting for this risk.
36586
36862
  };
36587
36863
  };
36588
36864
  return (_ctx, _cache) => {
36589
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
36590
- createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
36865
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
36866
+ createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
36591
36867
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
36592
36868
  return openBlock(), createElementBlock("div", { key: index }, [
36593
- createBaseVNode("div", _hoisted_3$c, [
36869
+ createBaseVNode("div", _hoisted_3$e, [
36594
36870
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
36595
36871
  createBaseVNode("span", {
36596
36872
  id: "lupa-similar-query-text-component",
@@ -36600,13 +36876,13 @@ and ensure you are accounting for this risk.
36600
36876
  }, [
36601
36877
  createBaseVNode("span", {
36602
36878
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
36603
- }, null, 8, _hoisted_5$3),
36879
+ }, null, 8, _hoisted_5$4),
36604
36880
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$1, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
36605
- ], 8, _hoisted_4$6)
36881
+ ], 8, _hoisted_4$8)
36606
36882
  ]),
36607
36883
  createBaseVNode("div", _hoisted_7, [
36608
36884
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
36609
- return openBlock(), createBlock(_sfc_main$t, {
36885
+ return openBlock(), createBlock(_sfc_main$v, {
36610
36886
  style: normalizeStyle(_ctx.columnSize),
36611
36887
  key: getDocumentKey(index2, product),
36612
36888
  product,
@@ -36621,15 +36897,15 @@ and ensure you are accounting for this risk.
36621
36897
  };
36622
36898
  }
36623
36899
  });
36624
- const _hoisted_1$p = {
36900
+ const _hoisted_1$r = {
36625
36901
  key: 0,
36626
36902
  class: "lupa-results-additional-panel"
36627
36903
  };
36628
- const _hoisted_2$j = {
36904
+ const _hoisted_2$l = {
36629
36905
  class: "lupa-results-additional-panel-items",
36630
36906
  "data-cy": "lupa-results-additional-panel-items"
36631
36907
  };
36632
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
36908
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
36633
36909
  __name: "AdditionalPanel",
36634
36910
  props: {
36635
36911
  panel: {},
@@ -36702,10 +36978,10 @@ and ensure you are accounting for this risk.
36702
36978
  handleQueryChange();
36703
36979
  });
36704
36980
  return (_ctx, _cache) => {
36705
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
36706
- createBaseVNode("div", _hoisted_2$j, [
36981
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
36982
+ createBaseVNode("div", _hoisted_2$l, [
36707
36983
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
36708
- return openBlock(), createBlock(_sfc_main$t, {
36984
+ return openBlock(), createBlock(_sfc_main$v, {
36709
36985
  key: index,
36710
36986
  product: item,
36711
36987
  options: _ctx.panel,
@@ -36723,11 +36999,11 @@ and ensure you are accounting for this risk.
36723
36999
  };
36724
37000
  }
36725
37001
  });
36726
- const _hoisted_1$o = {
37002
+ const _hoisted_1$q = {
36727
37003
  key: 0,
36728
37004
  class: "lupa-results-additional-panels"
36729
37005
  };
36730
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
37006
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36731
37007
  __name: "AdditionalPanels",
36732
37008
  props: {
36733
37009
  options: {},
@@ -36744,9 +37020,9 @@ and ensure you are accounting for this risk.
36744
37020
  return locationPanels.value.length > 0;
36745
37021
  });
36746
37022
  return (_ctx, _cache) => {
36747
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
37023
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
36748
37024
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
36749
- return openBlock(), createBlock(_sfc_main$r, {
37025
+ return openBlock(), createBlock(_sfc_main$t, {
36750
37026
  key: panel.queryKey,
36751
37027
  panel,
36752
37028
  options: _ctx.sdkOptions
@@ -36763,29 +37039,29 @@ and ensure you are accounting for this risk.
36763
37039
  }
36764
37040
  return target2;
36765
37041
  };
36766
- const _sfc_main$p = {};
36767
- const _hoisted_1$n = { class: "lupa-spinner-wrapper" };
36768
- const _hoisted_2$i = { class: "lupa-spinner" };
37042
+ const _sfc_main$r = {};
37043
+ const _hoisted_1$p = { class: "lupa-spinner-wrapper" };
37044
+ const _hoisted_2$k = { class: "lupa-spinner" };
36769
37045
  function _sfc_render(_ctx, _cache) {
36770
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
36771
- createBaseVNode("div", _hoisted_2$i, [
37046
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
37047
+ createBaseVNode("div", _hoisted_2$k, [
36772
37048
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
36773
37049
  return createBaseVNode("div", { key: x });
36774
37050
  }), 64))
36775
37051
  ])
36776
37052
  ]);
36777
37053
  }
36778
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render]]);
36779
- const _hoisted_1$m = {
37054
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
37055
+ const _hoisted_1$o = {
36780
37056
  id: "lupa-search-results-similar-results",
36781
37057
  "data-cy": "lupa-search-results-similar-results"
36782
37058
  };
36783
- const _hoisted_2$h = { class: "lupa-similar-results-label" };
36784
- const _hoisted_3$b = {
37059
+ const _hoisted_2$j = { class: "lupa-similar-results-label" };
37060
+ const _hoisted_3$d = {
36785
37061
  class: "lupa-products",
36786
37062
  "data-cy": "lupa-products"
36787
37063
  };
36788
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
37064
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
36789
37065
  __name: "SearchResultsSimilarResults",
36790
37066
  props: {
36791
37067
  columnSize: {},
@@ -36806,11 +37082,11 @@ and ensure you are accounting for this risk.
36806
37082
  };
36807
37083
  });
36808
37084
  return (_ctx, _cache) => {
36809
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
36810
- createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
36811
- createBaseVNode("div", _hoisted_3$b, [
37085
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
37086
+ createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
37087
+ createBaseVNode("div", _hoisted_3$d, [
36812
37088
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
36813
- return openBlock(), createBlock(_sfc_main$t, {
37089
+ return openBlock(), createBlock(_sfc_main$v, {
36814
37090
  style: normalizeStyle(_ctx.columnSize),
36815
37091
  key: getDocumentKey(index, product),
36816
37092
  product,
@@ -36931,15 +37207,15 @@ and ensure you are accounting for this risk.
36931
37207
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
36932
37208
  }
36933
37209
  });
36934
- const _hoisted_1$l = { class: "lupa-related-query-item" };
36935
- const _hoisted_2$g = { class: "lupa-related-query-image" };
36936
- const _hoisted_3$a = { class: "lupa-related-query-label" };
36937
- const _hoisted_4$5 = { class: "lupa-related-query-title" };
36938
- const _hoisted_5$2 = {
37210
+ const _hoisted_1$n = { class: "lupa-related-query-item" };
37211
+ const _hoisted_2$i = { class: "lupa-related-query-image" };
37212
+ const _hoisted_3$c = { class: "lupa-related-query-label" };
37213
+ const _hoisted_4$7 = { class: "lupa-related-query-title" };
37214
+ const _hoisted_5$3 = {
36939
37215
  key: 0,
36940
37216
  class: "lupa-related-query-count"
36941
37217
  };
36942
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
37218
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
36943
37219
  __name: "RelatedQueryPanel",
36944
37220
  props: {
36945
37221
  query: {},
@@ -37035,9 +37311,9 @@ and ensure you are accounting for this risk.
37035
37311
  });
37036
37312
  return (_ctx, _cache) => {
37037
37313
  var _a25;
37038
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
37039
- createBaseVNode("div", _hoisted_2$g, [
37040
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1q, {
37314
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
37315
+ createBaseVNode("div", _hoisted_2$i, [
37316
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
37041
37317
  key: 0,
37042
37318
  "wrapper-class": "lupa-related-query-image-wrapper",
37043
37319
  "image-class": "lupa-related-query-image",
@@ -37045,24 +37321,24 @@ and ensure you are accounting for this risk.
37045
37321
  options: image.value
37046
37322
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
37047
37323
  ]),
37048
- createBaseVNode("div", _hoisted_3$a, [
37049
- createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
37050
- ((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
37324
+ createBaseVNode("div", _hoisted_3$c, [
37325
+ createBaseVNode("span", _hoisted_4$7, toDisplayString(_ctx.query), 1),
37326
+ ((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
37051
37327
  ])
37052
37328
  ]);
37053
37329
  };
37054
37330
  }
37055
37331
  });
37056
- const _hoisted_1$k = {
37332
+ const _hoisted_1$m = {
37057
37333
  key: 0,
37058
37334
  class: "lupa-related-queries"
37059
37335
  };
37060
- const _hoisted_2$f = {
37336
+ const _hoisted_2$h = {
37061
37337
  key: 0,
37062
37338
  class: "lupa-related-queries-title"
37063
37339
  };
37064
- const _hoisted_3$9 = ["onClick"];
37065
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
37340
+ const _hoisted_3$b = ["onClick"];
37341
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
37066
37342
  __name: "RelatedQueries",
37067
37343
  props: {
37068
37344
  options: {}
@@ -37156,8 +37432,8 @@ and ensure you are accounting for this risk.
37156
37432
  };
37157
37433
  return (_ctx, _cache) => {
37158
37434
  var _a25, _b25, _c, _d;
37159
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
37160
- ((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$f, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
37435
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
37436
+ ((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$h, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
37161
37437
  createBaseVNode("ul", null, [
37162
37438
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
37163
37439
  return withDirectives((openBlock(), createElementBlock("li", {
@@ -37167,14 +37443,14 @@ and ensure you are accounting for this risk.
37167
37443
  createBaseVNode("a", {
37168
37444
  onClick: ($event) => handleRelatedQueryClick(query)
37169
37445
  }, [
37170
- createVNode(_sfc_main$n, {
37446
+ createVNode(_sfc_main$p, {
37171
37447
  "source-key": query.key,
37172
37448
  options: _ctx.options,
37173
37449
  query: query.value,
37174
37450
  "existing-items-from-other-queries": allDisplayItems.value,
37175
37451
  onLoaded: (item) => processLoadedItem(query, item)
37176
37452
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
37177
- ], 8, _hoisted_3$9)
37453
+ ], 8, _hoisted_3$b)
37178
37454
  ], 2)), [
37179
37455
  [vShow, querySourceResultMap.value[query.value] !== false]
37180
37456
  ]);
@@ -37211,13 +37487,13 @@ and ensure you are accounting for this risk.
37211
37487
  }
37212
37488
  return null;
37213
37489
  };
37214
- const _hoisted_1$j = {
37490
+ const _hoisted_1$l = {
37215
37491
  key: 0,
37216
37492
  class: "lupa-redirection-suggestion"
37217
37493
  };
37218
- const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
37219
- const _hoisted_3$8 = ["href"];
37220
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
37494
+ const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
37495
+ const _hoisted_3$a = ["href"];
37496
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
37221
37497
  __name: "RedirectionSuggestions",
37222
37498
  props: {
37223
37499
  options: {}
@@ -37240,19 +37516,19 @@ and ensure you are accounting for this risk.
37240
37516
  )
37241
37517
  );
37242
37518
  return (_ctx, _cache) => {
37243
- return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
37244
- createBaseVNode("h4", _hoisted_2$e, [
37245
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
37519
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
37520
+ createBaseVNode("h4", _hoisted_2$g, [
37521
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
37246
37522
  ])
37247
37523
  ])) : createCommentVNode("", true);
37248
37524
  };
37249
37525
  }
37250
37526
  });
37251
- const _hoisted_1$i = {
37527
+ const _hoisted_1$k = {
37252
37528
  key: 0,
37253
37529
  class: "lupa-refiners-loading-notice"
37254
37530
  };
37255
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
37531
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
37256
37532
  __name: "RefinersLoadingNotice",
37257
37533
  props: {
37258
37534
  labels: {}
@@ -37263,22 +37539,22 @@ and ensure you are accounting for this risk.
37263
37539
  const props = __props;
37264
37540
  const label = computed(() => props.labels.refinersLoadingNotice);
37265
37541
  return (_ctx, _cache) => {
37266
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
37542
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
37267
37543
  createBaseVNode("p", null, toDisplayString(label.value), 1),
37268
37544
  createVNode(Spinner)
37269
37545
  ])) : createCommentVNode("", true);
37270
37546
  };
37271
37547
  }
37272
37548
  });
37273
- const _hoisted_1$h = { class: "lupa-related-query-item" };
37274
- const _hoisted_2$d = { class: "lupa-related-query-image" };
37275
- const _hoisted_3$7 = { class: "lupa-related-query-label" };
37276
- const _hoisted_4$4 = { class: "lupa-related-query-title" };
37277
- const _hoisted_5$1 = {
37549
+ const _hoisted_1$j = { class: "lupa-related-query-item" };
37550
+ const _hoisted_2$f = { class: "lupa-related-query-image" };
37551
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
37552
+ const _hoisted_4$6 = { class: "lupa-related-query-title" };
37553
+ const _hoisted_5$2 = {
37278
37554
  key: 0,
37279
37555
  class: "lupa-related-query-count"
37280
37556
  };
37281
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
37557
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
37282
37558
  __name: "RelatedQueryPanelApi",
37283
37559
  props: {
37284
37560
  relatedQuery: {},
@@ -37310,9 +37586,9 @@ and ensure you are accounting for this risk.
37310
37586
  });
37311
37587
  return (_ctx, _cache) => {
37312
37588
  var _a25;
37313
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
37314
- createBaseVNode("div", _hoisted_2$d, [
37315
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1q, {
37589
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
37590
+ createBaseVNode("div", _hoisted_2$f, [
37591
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
37316
37592
  key: 0,
37317
37593
  "wrapper-class": "lupa-related-query-image-wrapper",
37318
37594
  "image-class": "lupa-related-query-image",
@@ -37320,24 +37596,24 @@ and ensure you are accounting for this risk.
37320
37596
  options: image.value
37321
37597
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
37322
37598
  ]),
37323
- createBaseVNode("div", _hoisted_3$7, [
37324
- createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
37325
- ((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$1, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
37599
+ createBaseVNode("div", _hoisted_3$9, [
37600
+ createBaseVNode("span", _hoisted_4$6, toDisplayString(query.value), 1),
37601
+ ((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
37326
37602
  ])
37327
37603
  ]);
37328
37604
  };
37329
37605
  }
37330
37606
  });
37331
- const _hoisted_1$g = {
37607
+ const _hoisted_1$i = {
37332
37608
  key: 0,
37333
37609
  class: "lupa-related-queries"
37334
37610
  };
37335
- const _hoisted_2$c = {
37611
+ const _hoisted_2$e = {
37336
37612
  key: 0,
37337
37613
  class: "lupa-related-queries-title"
37338
37614
  };
37339
- const _hoisted_3$6 = ["onClick"];
37340
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
37615
+ const _hoisted_3$8 = ["onClick"];
37616
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
37341
37617
  __name: "RelatedQueriesApi",
37342
37618
  props: {
37343
37619
  options: {}
@@ -37347,7 +37623,7 @@ and ensure you are accounting for this risk.
37347
37623
  const searchResultStore = useSearchResultStore();
37348
37624
  const paramsStore = useParamsStore();
37349
37625
  const optionsStore = useOptionsStore();
37350
- const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
37626
+ const { searchResult, relatedQueriesResult, relatedQueryFacetKeys } = storeToRefs(searchResultStore);
37351
37627
  const relatedQueries2 = computed(() => {
37352
37628
  var _a25, _b25, _c, _d;
37353
37629
  const allQueries = (_b25 = (_a25 = relatedQueriesResult.value) == null ? void 0 : _a25.relatedQueries) != null ? _b25 : [];
@@ -37375,7 +37651,7 @@ and ensure you are accounting for this risk.
37375
37651
  { key: query.key, value: query.value },
37376
37652
  optionsStore.getQueryParamName,
37377
37653
  {},
37378
- (_a25 = relatedQueries2.value) == null ? void 0 : _a25.map((q) => `f.${q.facetKey}`)
37654
+ (_a25 = relatedQueryFacetKeys.value) == null ? void 0 : _a25.map((key) => `f.${key}`)
37379
37655
  );
37380
37656
  };
37381
37657
  const getSelectedFilterClass = (relatedQuery) => {
@@ -37389,8 +37665,8 @@ and ensure you are accounting for this risk.
37389
37665
  };
37390
37666
  return (_ctx, _cache) => {
37391
37667
  var _a25, _b25, _c, _d;
37392
- return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
37393
- ((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
37668
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
37669
+ ((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$e, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
37394
37670
  createBaseVNode("ul", null, [
37395
37671
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
37396
37672
  return openBlock(), createElementBlock("li", {
@@ -37400,11 +37676,11 @@ and ensure you are accounting for this risk.
37400
37676
  createBaseVNode("a", {
37401
37677
  onClick: ($event) => handleRelatedQueryClick(query)
37402
37678
  }, [
37403
- createVNode(_sfc_main$j, {
37679
+ createVNode(_sfc_main$l, {
37404
37680
  relatedQuery: query,
37405
37681
  options: _ctx.options
37406
37682
  }, null, 8, ["relatedQuery", "options"])
37407
- ], 8, _hoisted_3$6)
37683
+ ], 8, _hoisted_3$8)
37408
37684
  ], 2);
37409
37685
  }), 128))
37410
37686
  ])
@@ -37412,9 +37688,9 @@ and ensure you are accounting for this risk.
37412
37688
  };
37413
37689
  }
37414
37690
  });
37415
- const _hoisted_1$f = { key: 0 };
37416
- const _hoisted_2$b = ["innerHTML"];
37417
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
37691
+ const _hoisted_1$h = { key: 0 };
37692
+ const _hoisted_2$d = ["innerHTML"];
37693
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
37418
37694
  __name: "ZeroResults",
37419
37695
  props: {
37420
37696
  emptyResultsLabel: {},
@@ -37443,36 +37719,36 @@ and ensure you are accounting for this risk.
37443
37719
  });
37444
37720
  return (_ctx, _cache) => {
37445
37721
  return openBlock(), createElementBlock(Fragment, null, [
37446
- showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
37722
+ showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
37447
37723
  createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
37448
37724
  createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
37449
37725
  ])) : createCommentVNode("", true),
37450
37726
  showCustomZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", {
37451
37727
  key: 1,
37452
37728
  innerHTML: htmlTemplate.value
37453
- }, null, 8, _hoisted_2$b)) : createCommentVNode("", true)
37729
+ }, null, 8, _hoisted_2$d)) : createCommentVNode("", true)
37454
37730
  ], 64);
37455
37731
  };
37456
37732
  }
37457
37733
  });
37458
- const _hoisted_1$e = { id: "lupa-search-results-products" };
37459
- const _hoisted_2$a = {
37734
+ const _hoisted_1$g = { id: "lupa-search-results-products" };
37735
+ const _hoisted_2$c = {
37460
37736
  class: "lupa-products",
37461
37737
  "data-cy": "lupa-products"
37462
37738
  };
37463
- const _hoisted_3$5 = {
37739
+ const _hoisted_3$7 = {
37464
37740
  key: 1,
37465
37741
  class: "lupa-empty-results",
37466
37742
  "data-cy": "lupa-no-results-in-page"
37467
37743
  };
37468
- const _hoisted_4$3 = {
37744
+ const _hoisted_4$5 = {
37469
37745
  key: 5,
37470
37746
  class: "lupa-empty-results",
37471
37747
  "data-cy": "lupa-no-results"
37472
37748
  };
37473
- const _hoisted_5 = { key: 6 };
37749
+ const _hoisted_5$1 = { key: 6 };
37474
37750
  const _hoisted_6 = { key: 7 };
37475
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
37751
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
37476
37752
  __name: "SearchResultsProducts",
37477
37753
  props: {
37478
37754
  options: {},
@@ -37488,7 +37764,7 @@ and ensure you are accounting for this risk.
37488
37764
  hasResults,
37489
37765
  currentQueryText,
37490
37766
  isPageEmpty,
37491
- isMobileSidebarVisible,
37767
+ isFilterSidebarVisible,
37492
37768
  columnCount,
37493
37769
  searchResult,
37494
37770
  layout,
@@ -37519,7 +37795,7 @@ and ensure you are accounting for this risk.
37519
37795
  });
37520
37796
  const showTopFilters = computed(() => {
37521
37797
  var _a25, _b25, _c;
37522
- return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type) === "top-dropdown";
37798
+ return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type) !== "sidebar";
37523
37799
  });
37524
37800
  const showMobileFilters = computed(() => {
37525
37801
  return props.options.searchTitlePosition !== "search-results-top";
@@ -37596,40 +37872,40 @@ and ensure you are accounting for this risk.
37596
37872
  };
37597
37873
  return (_ctx, _cache) => {
37598
37874
  var _a25, _b25, _c;
37599
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
37600
- unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
37875
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
37876
+ unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
37601
37877
  key: 0,
37602
37878
  class: "lupa-loader"
37603
37879
  })) : createCommentVNode("", true),
37604
- createVNode(_sfc_main$l, {
37880
+ createVNode(_sfc_main$n, {
37605
37881
  options: _ctx.options.redirectionSuggestions
37606
37882
  }, null, 8, ["options"]),
37607
- createVNode(_sfc_main$q, {
37883
+ createVNode(_sfc_main$s, {
37608
37884
  options: _ctx.options,
37609
37885
  location: "top",
37610
37886
  sdkOptions: _ctx.options.options
37611
37887
  }, null, 8, ["options", "sdkOptions"]),
37612
- showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$m, {
37888
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$o, {
37613
37889
  key: 1,
37614
37890
  options: _ctx.options.relatedQueries
37615
37891
  }, null, 8, ["options"])) : createCommentVNode("", true),
37616
- showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$i, {
37892
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$k, {
37617
37893
  key: 2,
37618
37894
  options: _ctx.options.relatedQueries
37619
37895
  }, null, 8, ["options"])) : createCommentVNode("", true),
37620
37896
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
37621
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$M, {
37897
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
37622
37898
  key: 0,
37623
37899
  options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
37624
37900
  }, null, 8, ["options"])) : createCommentVNode("", true),
37625
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$F, {
37901
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
37626
37902
  key: 1,
37627
37903
  class: "lupa-toolbar-mobile",
37628
37904
  options: _ctx.options,
37629
37905
  "pagination-location": "top",
37630
37906
  onFilter: filter
37631
37907
  }, null, 8, ["options"])) : createCommentVNode("", true),
37632
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$_, {
37908
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$14, {
37633
37909
  key: 2,
37634
37910
  class: normalizeClass(currentFiltersClass.value),
37635
37911
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -37638,19 +37914,19 @@ and ensure you are accounting for this risk.
37638
37914
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
37639
37915
  ], 64)) : createCommentVNode("", true),
37640
37916
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
37641
- createVNode(_sfc_main$F, {
37917
+ createVNode(_sfc_main$H, {
37642
37918
  class: "lupa-toolbar-top",
37643
37919
  options: _ctx.options,
37644
37920
  "pagination-location": "top"
37645
37921
  }, null, 8, ["options"]),
37646
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$_, {
37922
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$14, {
37647
37923
  key: 0,
37648
37924
  class: normalizeClass(currentFiltersClass.value),
37649
37925
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
37650
37926
  options: currentFilterOptions.value,
37651
37927
  expandable: !desktopFiltersExpanded.value
37652
37928
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
37653
- createBaseVNode("div", _hoisted_2$a, [
37929
+ createBaseVNode("div", _hoisted_2$c, [
37654
37930
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
37655
37931
  return renderSlot(_ctx.$slots, "productCard", {
37656
37932
  style: normalizeStyle(columnSize.value),
@@ -37659,7 +37935,7 @@ and ensure you are accounting for this risk.
37659
37935
  options: productCardOptions.value
37660
37936
  });
37661
37937
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
37662
- return openBlock(), createBlock(_sfc_main$t, {
37938
+ return openBlock(), createBlock(_sfc_main$v, {
37663
37939
  style: normalizeStyle(columnSize.value),
37664
37940
  key: getProductKeyAction(index, product),
37665
37941
  product,
@@ -37668,7 +37944,7 @@ and ensure you are accounting for this risk.
37668
37944
  }, null, 8, ["style", "product", "options", "analytics-metadata"]);
37669
37945
  }), 128))
37670
37946
  ]),
37671
- unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
37947
+ unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
37672
37948
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
37673
37949
  _ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
37674
37950
  key: 0,
@@ -37676,36 +37952,36 @@ and ensure you are accounting for this risk.
37676
37952
  onClick: goToFirstPage
37677
37953
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
37678
37954
  ])) : createCommentVNode("", true),
37679
- createVNode(_sfc_main$F, {
37955
+ createVNode(_sfc_main$H, {
37680
37956
  class: "lupa-toolbar-bottom",
37681
37957
  options: _ctx.options,
37682
37958
  "pagination-location": "bottom"
37683
37959
  }, null, 8, ["options"]),
37684
- createVNode(_sfc_main$q, {
37960
+ createVNode(_sfc_main$s, {
37685
37961
  options: _ctx.options,
37686
37962
  location: "bottom",
37687
37963
  sdkOptions: _ctx.options.options
37688
37964
  }, null, 8, ["options", "sdkOptions"])
37689
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
37690
- createVNode(_sfc_main$h, {
37965
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
37966
+ createVNode(_sfc_main$j, {
37691
37967
  emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
37692
37968
  currentQueryText: unref(currentQueryText),
37693
37969
  hasSimilarQueries: hasSimilarQueries.value || hasSimilarResults.value,
37694
37970
  zeroResults: (_c = _ctx.options) == null ? void 0 : _c.zeroResults
37695
37971
  }, null, 8, ["emptyResultsLabel", "currentQueryText", "hasSimilarQueries", "zeroResults"])
37696
37972
  ])) : createCommentVNode("", true),
37697
- createVNode(_sfc_main$k, {
37973
+ createVNode(_sfc_main$m, {
37698
37974
  labels: _ctx.options.labels
37699
37975
  }, null, 8, ["labels"]),
37700
- hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
37701
- createVNode(_sfc_main$s, {
37976
+ hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
37977
+ createVNode(_sfc_main$u, {
37702
37978
  labels: similarQueriesLabels.value,
37703
37979
  columnSize: columnSize.value,
37704
37980
  productCardOptions: productCardOptions.value
37705
37981
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
37706
37982
  ])) : createCommentVNode("", true),
37707
37983
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
37708
- createVNode(_sfc_main$o, {
37984
+ createVNode(_sfc_main$q, {
37709
37985
  labels: similarResultsLabels.value,
37710
37986
  columnSize: columnSize.value,
37711
37987
  productCardOptions: productCardOptions.value
@@ -37716,17 +37992,17 @@ and ensure you are accounting for this risk.
37716
37992
  };
37717
37993
  }
37718
37994
  });
37719
- const _hoisted_1$d = { class: "lupa-top-mobile-filter-wrapper" };
37720
- const _hoisted_2$9 = {
37995
+ const _hoisted_1$f = { class: "lupa-top-mobile-filter-wrapper" };
37996
+ const _hoisted_2$b = {
37721
37997
  key: 0,
37722
37998
  class: "lupa-category-back"
37723
37999
  };
37724
- const _hoisted_3$4 = ["href"];
37725
- const _hoisted_4$2 = {
38000
+ const _hoisted_3$6 = ["href"];
38001
+ const _hoisted_4$4 = {
37726
38002
  key: 1,
37727
38003
  class: "lupa-child-category-list"
37728
38004
  };
37729
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
38005
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
37730
38006
  __name: "CategoryTopFilters",
37731
38007
  props: {
37732
38008
  options: {}
@@ -37774,24 +38050,24 @@ and ensure you are accounting for this risk.
37774
38050
  "has-related-category-children": hasRelatedCategoryChildren.value
37775
38051
  }])
37776
38052
  }, [
37777
- createBaseVNode("div", _hoisted_1$d, [
37778
- hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
38053
+ createBaseVNode("div", _hoisted_1$f, [
38054
+ hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
37779
38055
  createBaseVNode("a", {
37780
38056
  "data-cy": "lupa-category-back",
37781
38057
  href: backUrlLink.value,
37782
38058
  onClick: handleNavigationBack
37783
- }, toDisplayString(backTitle.value), 9, _hoisted_3$4)
38059
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
37784
38060
  ])) : createCommentVNode("", true),
37785
- hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
38061
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
37786
38062
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
37787
- return openBlock(), createBlock(_sfc_main$Z, {
38063
+ return openBlock(), createBlock(_sfc_main$13, {
37788
38064
  key: getCategoryKey(child),
37789
38065
  item: child,
37790
38066
  options: categoryOptions.value
37791
38067
  }, null, 8, ["item", "options"]);
37792
38068
  }), 128))
37793
38069
  ])) : createCommentVNode("", true),
37794
- createVNode(_sfc_main$F, {
38070
+ createVNode(_sfc_main$H, {
37795
38071
  class: "lupa-toolbar-mobile",
37796
38072
  "pagination-location": "top",
37797
38073
  options: _ctx.options
@@ -37801,6 +38077,129 @@ and ensure you are accounting for this risk.
37801
38077
  };
37802
38078
  }
37803
38079
  });
38080
+ const _hoisted_1$e = {
38081
+ id: "lupa-search-results-sort-list",
38082
+ class: "lupa-search-results-sort-list"
38083
+ };
38084
+ const _hoisted_2$a = ["onClick"];
38085
+ const _hoisted_3$5 = ["for"];
38086
+ const _hoisted_4$3 = ["id", "checked"];
38087
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
38088
+ __name: "SortList",
38089
+ setup(__props) {
38090
+ const { sortItems, selectedKey, handleSelect, setSortValue } = useSorting();
38091
+ onMounted(() => {
38092
+ setSortValue();
38093
+ });
38094
+ const selectValue = (key) => {
38095
+ selectedKey.value = key;
38096
+ handleSelect();
38097
+ };
38098
+ return (_ctx, _cache) => {
38099
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
38100
+ createBaseVNode("ul", null, [
38101
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(sortItems), (option) => {
38102
+ return openBlock(), createElementBlock("li", {
38103
+ key: option.key,
38104
+ class: normalizeClass({ "lupa-sort-item-selected": option.key === unref(selectedKey) }),
38105
+ onClick: ($event) => selectValue(option.key)
38106
+ }, [
38107
+ createBaseVNode("label", {
38108
+ for: "lupa-sort-list-" + option.key
38109
+ }, toDisplayString(option.label), 9, _hoisted_3$5),
38110
+ createBaseVNode("input", {
38111
+ id: "lupa-sort-list-" + option.key,
38112
+ type: "radio",
38113
+ checked: option.key === unref(selectedKey)
38114
+ }, null, 8, _hoisted_4$3)
38115
+ ], 10, _hoisted_2$a);
38116
+ }), 128))
38117
+ ])
38118
+ ]);
38119
+ };
38120
+ }
38121
+ });
38122
+ const _hoisted_1$d = { class: "lupa-sort-sidebar-content" };
38123
+ const _hoisted_2$9 = { class: "lupa-sidebar-top" };
38124
+ const _hoisted_3$4 = { class: "lupa-sidebar-title" };
38125
+ const _hoisted_4$2 = { class: "lupa-sidebar-sort-options" };
38126
+ const _hoisted_5 = { class: "lupa-sidebar-sort-actions" };
38127
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
38128
+ __name: "SortDrawer",
38129
+ setup(__props) {
38130
+ const optionsStore = useOptionsStore();
38131
+ const searchResultStore = useSearchResultStore();
38132
+ const paramStore = useParamsStore();
38133
+ const { searchResultOptions } = storeToRefs(optionsStore);
38134
+ const { isSidebarClosing, isSortingSidebarVisible } = storeToRefs(searchResultStore);
38135
+ const { handleSortSidebarToggle } = useSidebarToggle();
38136
+ const sortStyleOptions = computed(() => {
38137
+ var _a25;
38138
+ return (_a25 = searchResultOptions.value) == null ? void 0 : _a25.sortStyle;
38139
+ });
38140
+ const sidebarTitle = computed(() => {
38141
+ var _a25, _b25, _c, _d;
38142
+ return (_d = (_c = (_b25 = (_a25 = sortStyleOptions == null ? void 0 : sortStyleOptions.value) == null ? void 0 : _a25.drawer) == null ? void 0 : _b25.labels) == null ? void 0 : _c.title) != null ? _d : "";
38143
+ });
38144
+ const clearSortLabel = computed(() => {
38145
+ var _a25, _b25, _c, _d;
38146
+ return (_d = (_c = (_b25 = (_a25 = sortStyleOptions == null ? void 0 : sortStyleOptions.value) == null ? void 0 : _a25.drawer) == null ? void 0 : _b25.labels) == null ? void 0 : _c.clearLabel) != null ? _d : "";
38147
+ });
38148
+ const applySortLabel = computed(() => {
38149
+ var _a25, _b25, _c, _d;
38150
+ return (_d = (_c = (_b25 = (_a25 = sortStyleOptions == null ? void 0 : sortStyleOptions.value) == null ? void 0 : _a25.drawer) == null ? void 0 : _b25.labels) == null ? void 0 : _c.applyLabel) != null ? _d : "";
38151
+ });
38152
+ const handleDrawerToggle = () => {
38153
+ searchResultStore.setSidebarState({ visible: false, sidebar: "sorting" });
38154
+ };
38155
+ const clearSort = () => {
38156
+ paramStore.removeParameters({
38157
+ paramsToRemove: [optionsStore.getQueryParamName(QUERY_PARAMS$1.SORT)]
38158
+ });
38159
+ handleSortSidebarToggle();
38160
+ };
38161
+ const applySort = () => {
38162
+ handleSortSidebarToggle();
38163
+ };
38164
+ return (_ctx, _cache) => {
38165
+ return unref(isSortingSidebarVisible) ? (openBlock(), createElementBlock("div", {
38166
+ key: 0,
38167
+ class: normalizeClass(["lupa-sort-sidebar", { "lupa-sort-is-closing": unref(isSidebarClosing) }])
38168
+ }, [
38169
+ createBaseVNode("div", {
38170
+ class: "lupa-sidebar-close",
38171
+ onClick: withModifiers(handleDrawerToggle, ["stop"])
38172
+ }),
38173
+ createBaseVNode("div", _hoisted_1$d, [
38174
+ createBaseVNode("div", _hoisted_2$9, [
38175
+ createBaseVNode("div", _hoisted_3$4, toDisplayString(sidebarTitle.value), 1),
38176
+ createBaseVNode("div", {
38177
+ class: "lupa-filter-toggle-mobile",
38178
+ onClick: handleDrawerToggle
38179
+ })
38180
+ ]),
38181
+ createBaseVNode("div", _hoisted_4$2, [
38182
+ createVNode(_sfc_main$g)
38183
+ ]),
38184
+ createBaseVNode("div", _hoisted_5, [
38185
+ clearSortLabel.value ? (openBlock(), createElementBlock("button", {
38186
+ key: 0,
38187
+ type: "button",
38188
+ class: "lupa-sidebar-sort-clear",
38189
+ onClick: withModifiers(clearSort, ["stop"])
38190
+ }, toDisplayString(clearSortLabel.value), 1)) : createCommentVNode("", true),
38191
+ applySortLabel.value ? (openBlock(), createElementBlock("button", {
38192
+ key: 1,
38193
+ type: "button",
38194
+ class: "lupa-sidebar-sort-apply",
38195
+ onClick: withModifiers(applySort, ["stop"])
38196
+ }, toDisplayString(applySortLabel.value), 1)) : createCommentVNode("", true)
38197
+ ])
38198
+ ])
38199
+ ], 2)) : createCommentVNode("", true);
38200
+ };
38201
+ }
38202
+ });
37804
38203
  const _hoisted_1$c = {
37805
38204
  key: 0,
37806
38205
  class: "lupa-container-title-summary-mobile"
@@ -37835,7 +38234,7 @@ and ensure you are accounting for this risk.
37835
38234
  currentQueryText,
37836
38235
  hasResults,
37837
38236
  currentFilterCount,
37838
- isMobileSidebarVisible,
38237
+ isFilterSidebarVisible,
37839
38238
  layout,
37840
38239
  loadingFacets,
37841
38240
  loadingRefiners
@@ -37857,7 +38256,7 @@ and ensure you are accounting for this risk.
37857
38256
  });
37858
38257
  const indicatorClasses = computed(() => {
37859
38258
  return {
37860
- "lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
38259
+ "lupa-mobile-sidebar-visible": isFilterSidebarVisible.value,
37861
38260
  "lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
37862
38261
  "lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
37863
38262
  };
@@ -38099,32 +38498,33 @@ and ensure you are accounting for this risk.
38099
38498
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
38100
38499
  }, [
38101
38500
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
38102
- createVNode(_sfc_main$12, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38103
- createVNode(_sfc_main$10, {
38501
+ createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38502
+ createVNode(_sfc_main$16, {
38104
38503
  "show-summary": true,
38105
38504
  options: _ctx.options,
38106
38505
  "is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
38107
38506
  }, null, 8, ["options", "is-product-list"])
38108
38507
  ])) : createCommentVNode("", true),
38109
- isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$f, {
38508
+ isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$h, {
38110
38509
  key: 1,
38111
38510
  options: _ctx.options
38112
38511
  }, null, 8, ["options"])) : createCommentVNode("", true),
38113
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$O, {
38512
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$R, {
38114
38513
  key: 2,
38115
38514
  options: _ctx.options.filters,
38116
38515
  onFilter: handleParamsChange
38117
38516
  }, null, 8, ["options"])) : createCommentVNode("", true),
38118
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$N, {
38119
- key: 3,
38517
+ _ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
38518
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$Q, {
38519
+ key: 4,
38120
38520
  breadcrumbs: _ctx.options.breadcrumbs
38121
38521
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
38122
38522
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
38123
- key: 4,
38523
+ key: 5,
38124
38524
  id: "lupa-search-results",
38125
38525
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
38126
38526
  }, [
38127
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$P, {
38527
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
38128
38528
  key: 0,
38129
38529
  options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
38130
38530
  ref_key: "searchResultsFilters",
@@ -38132,12 +38532,12 @@ and ensure you are accounting for this risk.
38132
38532
  onFilter: handleParamsChange
38133
38533
  }, null, 8, ["options"])) : createCommentVNode("", true),
38134
38534
  createBaseVNode("div", _hoisted_2$8, [
38135
- createVNode(_sfc_main$12, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38136
- createVNode(_sfc_main$10, {
38535
+ createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38536
+ createVNode(_sfc_main$16, {
38137
38537
  options: _ctx.options,
38138
38538
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
38139
38539
  }, null, 8, ["options", "is-product-list"]),
38140
- createVNode(_sfc_main$g, {
38540
+ createVNode(_sfc_main$i, {
38141
38541
  options: _ctx.options,
38142
38542
  ssr: ssrEnabled.value,
38143
38543
  onFilter: handleParamsChange
@@ -38148,9 +38548,9 @@ and ensure you are accounting for this risk.
38148
38548
  _: 3
38149
38549
  }, 8, ["options", "ssr"])
38150
38550
  ])
38151
- ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
38152
- createVNode(_sfc_main$12, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38153
- createVNode(_sfc_main$10, {
38551
+ ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
38552
+ createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38553
+ createVNode(_sfc_main$16, {
38154
38554
  options: _ctx.options,
38155
38555
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
38156
38556
  }, null, 8, ["options", "is-product-list"]),
@@ -38158,14 +38558,14 @@ and ensure you are accounting for this risk.
38158
38558
  id: "lupa-search-results",
38159
38559
  class: normalizeClass(indicatorClasses.value)
38160
38560
  }, [
38161
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$P, {
38561
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
38162
38562
  key: 0,
38163
38563
  options: (_e = _ctx.options.filters) != null ? _e : {},
38164
38564
  ref_key: "searchResultsFilters",
38165
38565
  ref: searchResultsFilters,
38166
38566
  onFilter: handleParamsChange
38167
38567
  }, null, 8, ["options"])) : createCommentVNode("", true),
38168
- createVNode(_sfc_main$g, {
38568
+ createVNode(_sfc_main$i, {
38169
38569
  options: _ctx.options,
38170
38570
  ssr: ssrEnabled.value,
38171
38571
  onFilter: handleParamsChange
@@ -38309,7 +38709,7 @@ and ensure you are accounting for this risk.
38309
38709
  onClick: withModifiers(innerClick, ["stop"])
38310
38710
  }, [
38311
38711
  createBaseVNode("div", _hoisted_1$a, [
38312
- createVNode(_sfc_main$13, {
38712
+ createVNode(_sfc_main$19, {
38313
38713
  options: fullSearchBoxOptions.value,
38314
38714
  "is-search-container": true,
38315
38715
  ref_key: "searchBox",
@@ -39897,7 +40297,7 @@ and ensure you are accounting for this risk.
39897
40297
  key: getProductKeyAction(index, product)
39898
40298
  }, {
39899
40299
  default: withCtx(() => [
39900
- createVNode(_sfc_main$t, {
40300
+ createVNode(_sfc_main$v, {
39901
40301
  product,
39902
40302
  options: _ctx.options,
39903
40303
  "click-tracking-settings": clickTrackingSettings.value,
@@ -39912,7 +40312,7 @@ and ensure you are accounting for this risk.
39912
40312
  _: 1
39913
40313
  }, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
39914
40314
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
39915
- return openBlock(), createBlock(_sfc_main$t, {
40315
+ return openBlock(), createBlock(_sfc_main$v, {
39916
40316
  style: normalizeStyle(columnSize.value),
39917
40317
  key: getProductKeyAction(index, product),
39918
40318
  product,
@@ -40158,7 +40558,7 @@ and ensure you are accounting for this risk.
40158
40558
  createBaseVNode("a", {
40159
40559
  href: getLink(product)
40160
40560
  }, [
40161
- createVNode(_sfc_main$E, {
40561
+ createVNode(_sfc_main$G, {
40162
40562
  item: product,
40163
40563
  options: image.value
40164
40564
  }, null, 8, ["item", "options"])
@@ -40323,7 +40723,7 @@ and ensure you are accounting for this risk.
40323
40723
  return (_ctx, _cache) => {
40324
40724
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
40325
40725
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
40326
- return openBlock(), createBlock(_sfc_main$t, {
40726
+ return openBlock(), createBlock(_sfc_main$v, {
40327
40727
  class: "lupa-chat-product-card",
40328
40728
  key: getProductKeyAction(index, product),
40329
40729
  product,
@@ -40519,7 +40919,7 @@ and ensure you are accounting for this risk.
40519
40919
  key: 0,
40520
40920
  class: "lupasearch-chat-content"
40521
40921
  };
40522
- const _sfc_main$1B = /* @__PURE__ */ defineComponent({
40922
+ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
40523
40923
  __name: "ChatContainer",
40524
40924
  props: {
40525
40925
  options: {}
@@ -46543,7 +46943,7 @@ and ensure you are accounting for this risk.
46543
46943
  };
46544
46944
  __expose({ fetch: fetch2 });
46545
46945
  return (_ctx, _cache) => {
46546
- return openBlock(), createBlock(unref(_sfc_main$13), {
46946
+ return openBlock(), createBlock(unref(_sfc_main$19), {
46547
46947
  ref_key: "searchBox",
46548
46948
  ref: searchBox2,
46549
46949
  options: fullSearchBoxOptions.value
@@ -47203,7 +47603,7 @@ and ensure you are accounting for this risk.
47203
47603
  const instance = createVue(
47204
47604
  options.displayOptions.containerSelector,
47205
47605
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
47206
- _sfc_main$1B,
47606
+ _sfc_main$1H,
47207
47607
  {
47208
47608
  options
47209
47609
  }
@@ -47477,13 +47877,14 @@ and ensure you are accounting for this risk.
47477
47877
  document.head.appendChild(styleElement);
47478
47878
  });
47479
47879
  const mountSearchBox = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
47480
- var _a25;
47880
+ var _a25, _b25;
47481
47881
  if (!configuration.searchBox) {
47482
47882
  return;
47483
47883
  }
47484
47884
  const resolvedConfiguration = JSON.parse(configuration.searchBox);
47485
47885
  const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
47486
47886
  const domPing = resolvedConfiguration.domPing;
47887
+ const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
47487
47888
  const visible = yield waitForElementToBeVisible(
47488
47889
  resolvedConfiguration.inputSelector,
47489
47890
  0,
@@ -47497,18 +47898,19 @@ and ensure you are accounting for this risk.
47497
47898
  }
47498
47899
  const mergedOptions = PluginConfigurationMerger.mergeSearchBoxConfiguration(
47499
47900
  resolvedConfiguration,
47500
- (_a25 = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a25 : {}
47901
+ (_b25 = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _b25 : {}
47501
47902
  );
47502
- searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing });
47903
+ searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing, mountingBehavior });
47503
47904
  });
47504
47905
  const mountSearchResults = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
47505
- var _a25;
47906
+ var _a25, _b25;
47506
47907
  if (!configuration.searchResults) {
47507
47908
  return;
47508
47909
  }
47509
47910
  const resolvedConfiguration = JSON.parse(configuration.searchResults);
47510
47911
  const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
47511
47912
  const domPing = resolvedConfiguration.domPing;
47913
+ const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
47512
47914
  const visible = yield waitForElementToBeVisible(
47513
47915
  resolvedConfiguration.containerSelector,
47514
47916
  0,
@@ -47522,12 +47924,15 @@ and ensure you are accounting for this risk.
47522
47924
  }
47523
47925
  const mergedOptions = PluginConfigurationMerger.mergeSearchResultsConfiguration(
47524
47926
  resolvedConfiguration,
47525
- (_a25 = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a25 : {}
47927
+ (_b25 = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _b25 : {}
47928
+ );
47929
+ searchResults(
47930
+ __spreadProps(__spreadValues({}, mergedOptions), { options }),
47931
+ { fetch: fetch2, allowedMountUrls, domPing, mountingBehavior }
47526
47932
  );
47527
- searchResults(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing });
47528
47933
  });
47529
47934
  const mountProductList = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
47530
- var _a25;
47935
+ var _a25, _b25;
47531
47936
  if (!configuration.productList) {
47532
47937
  return;
47533
47938
  }
@@ -47536,6 +47941,7 @@ and ensure you are accounting for this risk.
47536
47941
  );
47537
47942
  const resolvedConfiguration = JSON.parse(configuration.productList);
47538
47943
  const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
47944
+ const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
47539
47945
  const visible = yield waitForElementToBeVisible(
47540
47946
  resolvedConfiguration.containerSelector,
47541
47947
  0,
@@ -47549,13 +47955,14 @@ and ensure you are accounting for this risk.
47549
47955
  }
47550
47956
  const mergedOptions = merge(
47551
47957
  __spreadValues(__spreadValues({}, resolvedSearchResultsConfiguration), resolvedConfiguration),
47552
- (_a25 = optionOverrides == null ? void 0 : optionOverrides.productList) != null ? _a25 : {}
47958
+ (_b25 = optionOverrides == null ? void 0 : optionOverrides.productList) != null ? _b25 : {}
47553
47959
  );
47554
- productList(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
47960
+ productList(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, mountingBehavior });
47555
47961
  });
47556
47962
  const mountRecommendations = (resolvedSearchResultsConfiguration, resolvedConfiguration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
47557
- var _a25;
47963
+ var _a25, _b25;
47558
47964
  const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
47965
+ const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
47559
47966
  const visible = yield waitForElementToBeVisible(
47560
47967
  resolvedConfiguration.containerSelector,
47561
47968
  0,
@@ -47569,9 +47976,9 @@ and ensure you are accounting for this risk.
47569
47976
  }
47570
47977
  const mergedOptions = merge(
47571
47978
  __spreadValues(__spreadValues({}, resolvedSearchResultsConfiguration), resolvedConfiguration),
47572
- (_a25 = optionOverrides == null ? void 0 : optionOverrides.recommendations) != null ? _a25 : {}
47979
+ (_b25 = optionOverrides == null ? void 0 : optionOverrides.recommendations) != null ? _b25 : {}
47573
47980
  );
47574
- recommendations(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
47981
+ recommendations(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, mountingBehavior });
47575
47982
  });
47576
47983
  const mountAllRecommendations = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
47577
47984
  if (!configuration.recommendations) {