@getlupa/client 1.11.0 → 1.11.2

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.
@@ -7318,7 +7318,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7318
7318
  top: false,
7319
7319
  bottom: true
7320
7320
  },
7321
- sizes: [10, 20, 25, 50]
7321
+ sizes: [10, 20, 25]
7322
7322
  },
7323
7323
  pageSelection: {
7324
7324
  position: {
@@ -7644,38 +7644,39 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7644
7644
  const seed = [];
7645
7645
  return filter.terms.reduce((a, c2) => [...a, { key, value: c2, type: "hierarchy" }], seed);
7646
7646
  };
7647
- const unfoldRangeFilter = (key, filter) => {
7647
+ const unfoldRangeFilter = (key, filter, price = {}) => {
7648
+ var _a;
7648
7649
  const gt = filter.gte || filter.gt;
7649
7650
  const lt = filter.lte || filter.lt;
7650
- if (key.includes(CURRENCY_KEY_INDICATOR)) {
7651
+ if (key.includes(CURRENCY_KEY_INDICATOR) || ((_a = price == null ? void 0 : price.keys) == null ? void 0 : _a.includes(key))) {
7651
7652
  return [
7652
7653
  {
7653
7654
  key,
7654
- value: formatPriceSummary([gt, lt]),
7655
+ value: formatPriceSummary([gt, lt], price.currency, price.separator),
7655
7656
  type: "range"
7656
7657
  }
7657
7658
  ];
7658
7659
  }
7659
7660
  return [{ key, value: `${gt} - ${lt}`, type: "range" }];
7660
7661
  };
7661
- const unfoldFilter = (key, filter) => {
7662
+ const unfoldFilter = (key, filter, price = {}) => {
7662
7663
  if (Array.isArray(filter)) {
7663
7664
  return unfoldTermFilter(key, filter);
7664
7665
  }
7665
7666
  if (filter.gte) {
7666
- return unfoldRangeFilter(key, filter);
7667
+ return unfoldRangeFilter(key, filter, price);
7667
7668
  }
7668
7669
  if (filter.terms) {
7669
7670
  return unfoldHierarchyFilter(key, filter);
7670
7671
  }
7671
7672
  return [];
7672
7673
  };
7673
- const unfoldFilters = (filters) => {
7674
+ const unfoldFilters = (filters, price = {}) => {
7674
7675
  if (!filters) {
7675
7676
  return [];
7676
7677
  }
7677
7678
  const seed = [];
7678
- return Object.entries(filters).reduce((a, c2) => [...a, ...unfoldFilter(...c2)], seed);
7679
+ return Object.entries(filters).reduce((a, c2) => [...a, ...unfoldFilter(...c2, price)], seed);
7679
7680
  };
7680
7681
  const getLabeledFilters = (filters, facets) => {
7681
7682
  return filters.map((f2) => {
@@ -8447,8 +8448,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8447
8448
  resetHighlightIndex
8448
8449
  };
8449
8450
  });
8450
- const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8451
- const _hoisted_2$P = { class: "lupa-input-clear" };
8451
+ const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
8452
+ const _hoisted_2$Q = { class: "lupa-input-clear" };
8452
8453
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8453
8454
  const _hoisted_4$s = ["value"];
8454
8455
  const _hoisted_5$h = ["aria-label", "placeholder"];
@@ -8456,7 +8457,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8456
8457
  key: 0,
8457
8458
  class: "lupa-close-label"
8458
8459
  };
8459
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8460
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8460
8461
  __name: "SearchBoxInput",
8461
8462
  props: {
8462
8463
  options: {},
@@ -8537,8 +8538,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8537
8538
  };
8538
8539
  __expose({ focus });
8539
8540
  return (_ctx, _cache) => {
8540
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8541
- createBaseVNode("div", _hoisted_2$P, [
8541
+ return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8542
+ createBaseVNode("div", _hoisted_2$Q, [
8542
8543
  createBaseVNode("div", {
8543
8544
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
8544
8545
  onClick: clear2
@@ -8579,7 +8580,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8579
8580
  };
8580
8581
  }
8581
8582
  });
8582
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8583
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8583
8584
  __name: "SearchBoxMoreResults",
8584
8585
  props: {
8585
8586
  labels: {},
@@ -8611,9 +8612,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8611
8612
  };
8612
8613
  }
8613
8614
  });
8614
- const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
8615
- const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
8616
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8615
+ const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
8616
+ const _hoisted_2$P = { class: "lupa-search-box-history-item-content" };
8617
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8617
8618
  __name: "SearchBoxHistoryItem",
8618
8619
  props: {
8619
8620
  item: {},
@@ -8629,8 +8630,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8629
8630
  emit2("click", { query: props.item });
8630
8631
  };
8631
8632
  return (_ctx, _cache) => {
8632
- return openBlock(), createElementBlock("div", _hoisted_1$1c, [
8633
- createBaseVNode("div", _hoisted_2$O, [
8633
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8634
+ createBaseVNode("div", _hoisted_2$P, [
8634
8635
  createBaseVNode("div", {
8635
8636
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
8636
8637
  onClick: click2
@@ -8644,11 +8645,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8644
8645
  };
8645
8646
  }
8646
8647
  });
8647
- const _hoisted_1$1b = {
8648
+ const _hoisted_1$1c = {
8648
8649
  key: 0,
8649
8650
  class: "lupa-search-box-history-panel"
8650
8651
  };
8651
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8652
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8652
8653
  __name: "SearchBoxHistoryPanel",
8653
8654
  props: {
8654
8655
  options: {}
@@ -8689,9 +8690,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8689
8690
  }
8690
8691
  };
8691
8692
  return (_ctx, _cache) => {
8692
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
8693
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
8693
8694
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8694
- return openBlock(), createBlock(_sfc_main$1j, {
8695
+ return openBlock(), createBlock(_sfc_main$1k, {
8695
8696
  key: item,
8696
8697
  item,
8697
8698
  highlighted: index === highlightIndex.value,
@@ -8707,20 +8708,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8707
8708
  };
8708
8709
  }
8709
8710
  });
8710
- const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
8711
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8711
+ const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
8712
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8712
8713
  __name: "SearchBoxNoResults",
8713
8714
  props: {
8714
8715
  labels: {}
8715
8716
  },
8716
8717
  setup(__props) {
8717
8718
  return (_ctx, _cache) => {
8718
- return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
8719
+ return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
8719
8720
  };
8720
8721
  }
8721
8722
  });
8722
- const _hoisted_1$19 = ["innerHTML"];
8723
- const _hoisted_2$N = {
8723
+ const _hoisted_1$1a = ["innerHTML"];
8724
+ const _hoisted_2$O = {
8724
8725
  key: 1,
8725
8726
  "data-cy": "lupa-suggestion-value",
8726
8727
  class: "lupa-suggestion-value"
@@ -8738,7 +8739,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8738
8739
  class: "lupa-suggestion-facet-value",
8739
8740
  "data-cy": "lupa-suggestion-facet-value"
8740
8741
  };
8741
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8742
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8742
8743
  __name: "SearchBoxSuggestion",
8743
8744
  props: {
8744
8745
  suggestion: {},
@@ -8774,7 +8775,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8774
8775
  class: "lupa-suggestion-value",
8775
8776
  "data-cy": "lupa-suggestion-value",
8776
8777
  innerHTML: _ctx.suggestion.displayHighlight
8777
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8778
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(_ctx.suggestion.display), 1)),
8778
8779
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8779
8780
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8780
8781
  createBaseVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -8783,11 +8784,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8783
8784
  };
8784
8785
  }
8785
8786
  });
8786
- const _hoisted_1$18 = {
8787
+ const _hoisted_1$19 = {
8787
8788
  id: "lupa-search-box-suggestions",
8788
8789
  "data-cy": "lupa-search-box-suggestions"
8789
8790
  };
8790
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8791
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8791
8792
  __name: "SearchBoxSuggestions",
8792
8793
  props: {
8793
8794
  items: {},
@@ -8847,9 +8848,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8847
8848
  });
8848
8849
  });
8849
8850
  return (_ctx, _cache) => {
8850
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
8851
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [
8851
8852
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8852
- return openBlock(), createBlock(_sfc_main$1g, {
8853
+ return openBlock(), createBlock(_sfc_main$1h, {
8853
8854
  key: getSuggestionKey(item),
8854
8855
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8855
8856
  suggestion: item,
@@ -8877,7 +8878,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8877
8878
  }, timeout);
8878
8879
  };
8879
8880
  };
8880
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8881
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8881
8882
  __name: "SearchBoxSuggestionsWrapper",
8882
8883
  props: {
8883
8884
  panel: {},
@@ -8918,7 +8919,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8918
8919
  };
8919
8920
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8920
8921
  return (_ctx, _cache) => {
8921
- return openBlock(), createBlock(_sfc_main$1f, {
8922
+ return openBlock(), createBlock(_sfc_main$1g, {
8922
8923
  items: searchResult.value,
8923
8924
  highlight: _ctx.panel.highlight,
8924
8925
  queryKey: _ctx.panel.queryKey,
@@ -9021,8 +9022,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9021
9022
  targetImage.src = placeholder;
9022
9023
  }
9023
9024
  };
9024
- const _hoisted_1$17 = ["src"];
9025
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9025
+ const _hoisted_1$18 = ["src"];
9026
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9026
9027
  __name: "ProductImage",
9027
9028
  props: {
9028
9029
  item: {},
@@ -9140,7 +9141,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9140
9141
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
9141
9142
  onError: replaceWithPlaceholder,
9142
9143
  key: finalUrl.value
9143
- }), null, 16, _hoisted_1$17))
9144
+ }), null, 16, _hoisted_1$18))
9144
9145
  ]),
9145
9146
  _: 1
9146
9147
  })
@@ -9148,7 +9149,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9148
9149
  };
9149
9150
  }
9150
9151
  });
9151
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9152
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9152
9153
  __name: "SearchBoxProductImage",
9153
9154
  props: {
9154
9155
  item: {},
@@ -9156,7 +9157,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9156
9157
  },
9157
9158
  setup(__props) {
9158
9159
  return (_ctx, _cache) => {
9159
- return openBlock(), createBlock(_sfc_main$1d, {
9160
+ return openBlock(), createBlock(_sfc_main$1e, {
9160
9161
  item: _ctx.item,
9161
9162
  options: _ctx.options,
9162
9163
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -9165,12 +9166,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9165
9166
  };
9166
9167
  }
9167
9168
  });
9168
- const _hoisted_1$16 = ["innerHTML"];
9169
- const _hoisted_2$M = {
9169
+ const _hoisted_1$17 = ["innerHTML"];
9170
+ const _hoisted_2$N = {
9170
9171
  key: 1,
9171
9172
  class: "lupa-search-box-product-title"
9172
9173
  };
9173
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9174
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9174
9175
  __name: "SearchBoxProductTitle",
9175
9176
  props: {
9176
9177
  item: {},
@@ -9190,18 +9191,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9190
9191
  key: 0,
9191
9192
  class: "lupa-search-box-product-title",
9192
9193
  innerHTML: title.value
9193
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
9194
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$N, [
9194
9195
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
9195
9196
  ]));
9196
9197
  };
9197
9198
  }
9198
9199
  });
9199
- const _hoisted_1$15 = ["innerHTML"];
9200
- const _hoisted_2$L = {
9200
+ const _hoisted_1$16 = ["innerHTML"];
9201
+ const _hoisted_2$M = {
9201
9202
  key: 1,
9202
9203
  class: "lupa-search-box-product-description"
9203
9204
  };
9204
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9205
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9205
9206
  __name: "SearchBoxProductDescription",
9206
9207
  props: {
9207
9208
  item: {},
@@ -9221,12 +9222,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9221
9222
  key: 0,
9222
9223
  class: "lupa-search-box-product-description",
9223
9224
  innerHTML: description.value
9224
- }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
9225
+ }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(description.value), 1));
9225
9226
  };
9226
9227
  }
9227
9228
  });
9228
- const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
9229
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9229
+ const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
9230
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9230
9231
  __name: "SearchBoxProductPrice",
9231
9232
  props: {
9232
9233
  item: {},
@@ -9244,14 +9245,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9244
9245
  );
9245
9246
  });
9246
9247
  return (_ctx, _cache) => {
9247
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
9248
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
9248
9249
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
9249
9250
  ]);
9250
9251
  };
9251
9252
  }
9252
9253
  });
9253
- const _hoisted_1$13 = { class: "lupa-search-box-product-regular-price" };
9254
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9254
+ const _hoisted_1$14 = { class: "lupa-search-box-product-regular-price" };
9255
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9255
9256
  __name: "SearchBoxProductRegularPrice",
9256
9257
  props: {
9257
9258
  item: {},
@@ -9269,16 +9270,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9269
9270
  );
9270
9271
  });
9271
9272
  return (_ctx, _cache) => {
9272
- return openBlock(), createElementBlock("div", _hoisted_1$13, toDisplayString(price.value), 1);
9273
+ return openBlock(), createElementBlock("div", _hoisted_1$14, toDisplayString(price.value), 1);
9273
9274
  };
9274
9275
  }
9275
9276
  });
9276
- const _hoisted_1$12 = ["innerHTML"];
9277
- const _hoisted_2$K = { key: 0 };
9277
+ const _hoisted_1$13 = ["innerHTML"];
9278
+ const _hoisted_2$L = { key: 0 };
9278
9279
  const _hoisted_3$y = { key: 1 };
9279
9280
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
9280
9281
  const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
9281
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9282
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9282
9283
  __name: "SearchBoxProductCustom",
9283
9284
  props: {
9284
9285
  item: {},
@@ -9304,11 +9305,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9304
9305
  key: 0,
9305
9306
  class: [className.value, "lupa-search-box-product-custom"],
9306
9307
  innerHTML: text.value
9307
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12)) : (openBlock(), createElementBlock("div", mergeProps({
9308
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (openBlock(), createElementBlock("div", mergeProps({
9308
9309
  key: 1,
9309
9310
  class: [className.value, "lupa-search-box-product-custom"]
9310
9311
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
9311
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
9312
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
9312
9313
  createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
9313
9314
  createBaseVNode("div", _hoisted_5$f, toDisplayString(text.value), 1)
9314
9315
  ]))
@@ -9316,8 +9317,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9316
9317
  };
9317
9318
  }
9318
9319
  });
9319
- const _hoisted_1$11 = ["innerHTML"];
9320
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9320
+ const _hoisted_1$12 = ["innerHTML"];
9321
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9321
9322
  __name: "SearchBoxProductCustomHtml",
9322
9323
  props: {
9323
9324
  item: {},
@@ -9337,7 +9338,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9337
9338
  return openBlock(), createElementBlock("div", mergeProps({
9338
9339
  class: className.value,
9339
9340
  innerHTML: text.value
9340
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11);
9341
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
9341
9342
  };
9342
9343
  }
9343
9344
  });
@@ -9395,13 +9396,33 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9395
9396
  const isMobileSidebarVisible = ref(false);
9396
9397
  const optionsStore = useOptionsStore();
9397
9398
  const paramsStore = useParamsStore();
9399
+ const { searchResultOptions } = storeToRefs(optionsStore);
9398
9400
  const facets = computed(() => searchResult.value.facets);
9399
9401
  const filters = computed(() => searchResult.value.filters);
9400
9402
  const currentQueryText = computed(() => searchResult.value.searchText);
9401
9403
  const totalItems = computed(() => searchResult.value.total);
9402
9404
  const hasResults = computed(() => totalItems.value > 0);
9405
+ const priceKeys = computed(() => {
9406
+ var _a, _b;
9407
+ return (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.priceKeys) != null ? _b : [];
9408
+ });
9409
+ const currency = computed(() => {
9410
+ var _a, _b, _c;
9411
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.currency) != null ? _c : "";
9412
+ });
9413
+ const priceSeparator = computed(() => {
9414
+ var _a, _b, _c;
9415
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.priceSeparator) != null ? _c : "";
9416
+ });
9403
9417
  const labeledFilters = computed(
9404
- () => getLabeledFilters(unfoldFilters(filters.value), facets.value)
9418
+ () => getLabeledFilters(
9419
+ unfoldFilters(filters.value, {
9420
+ keys: priceKeys.value,
9421
+ currency: currency.value,
9422
+ separator: priceSeparator.value
9423
+ }),
9424
+ facets.value
9425
+ )
9405
9426
  );
9406
9427
  const displayFilters = computed(() => {
9407
9428
  var _a, _b;
@@ -9535,10 +9556,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9535
9556
  clearSearchResult
9536
9557
  };
9537
9558
  });
9538
- const _hoisted_1$10 = { class: "lupa-search-box-add-to-cart-wrapper" };
9539
- const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
9559
+ const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
9560
+ const _hoisted_2$K = { class: "lupa-search-box-product-addtocart" };
9540
9561
  const _hoisted_3$x = ["onClick", "disabled"];
9541
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9562
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9542
9563
  __name: "SearchBoxProductAddToCart",
9543
9564
  props: {
9544
9565
  item: {},
@@ -9565,8 +9586,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9565
9586
  loading.value = false;
9566
9587
  });
9567
9588
  return (_ctx, _cache) => {
9568
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
9569
- createBaseVNode("div", _hoisted_2$J, [
9589
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
9590
+ createBaseVNode("div", _hoisted_2$K, [
9570
9591
  createBaseVNode("button", {
9571
9592
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
9572
9593
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -9579,23 +9600,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9579
9600
  };
9580
9601
  }
9581
9602
  });
9582
- const _hoisted_1$$ = {
9603
+ const _hoisted_1$10 = {
9583
9604
  key: 1,
9584
9605
  class: "lupa-search-box-element-badge-wrapper"
9585
9606
  };
9586
9607
  const __default__$4 = {
9587
9608
  components: {
9588
- SearchBoxProductImage: _sfc_main$1c,
9589
- SearchBoxProductTitle: _sfc_main$1b,
9590
- SearchBoxProductDescription: _sfc_main$1a,
9591
- SearchBoxProductPrice: _sfc_main$19,
9592
- SearchBoxProductRegularPrice: _sfc_main$18,
9593
- SearchBoxProductCustom: _sfc_main$17,
9594
- SearchBoxProductCustomHtml: _sfc_main$16,
9595
- SearchBoxProductAddToCart: _sfc_main$15
9609
+ SearchBoxProductImage: _sfc_main$1d,
9610
+ SearchBoxProductTitle: _sfc_main$1c,
9611
+ SearchBoxProductDescription: _sfc_main$1b,
9612
+ SearchBoxProductPrice: _sfc_main$1a,
9613
+ SearchBoxProductRegularPrice: _sfc_main$19,
9614
+ SearchBoxProductCustom: _sfc_main$18,
9615
+ SearchBoxProductCustomHtml: _sfc_main$17,
9616
+ SearchBoxProductAddToCart: _sfc_main$16
9596
9617
  }
9597
9618
  };
9598
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9619
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9599
9620
  __name: "SearchBoxProductElement",
9600
9621
  props: {
9601
9622
  item: {},
@@ -9653,7 +9674,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9653
9674
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
9654
9675
  inStock: _ctx.isInStock
9655
9676
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
9656
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$$, [
9677
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
9657
9678
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
9658
9679
  key: 0,
9659
9680
  item: enhancedItem.value,
@@ -9667,14 +9688,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9667
9688
  };
9668
9689
  }
9669
9690
  }));
9670
- const _hoisted_1$_ = { class: "lupa-badge-title" };
9671
- const _hoisted_2$I = ["src"];
9691
+ const _hoisted_1$$ = { class: "lupa-badge-title" };
9692
+ const _hoisted_2$J = ["src"];
9672
9693
  const _hoisted_3$w = { key: 1 };
9673
9694
  const _hoisted_4$p = {
9674
9695
  key: 0,
9675
9696
  class: "lupa-badge-full-text"
9676
9697
  };
9677
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9698
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9678
9699
  __name: "SearchResultGeneratedBadge",
9679
9700
  props: {
9680
9701
  options: {},
@@ -9707,11 +9728,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9707
9728
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
9708
9729
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
9709
9730
  }, [
9710
- createBaseVNode("span", _hoisted_1$_, [
9731
+ createBaseVNode("span", _hoisted_1$$, [
9711
9732
  image.value ? (openBlock(), createElementBlock("img", {
9712
9733
  key: 0,
9713
9734
  src: image.value
9714
- }, null, 8, _hoisted_2$I)) : createCommentVNode("", true),
9735
+ }, null, 8, _hoisted_2$J)) : createCommentVNode("", true),
9715
9736
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9716
9737
  ]),
9717
9738
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -9719,8 +9740,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9719
9740
  };
9720
9741
  }
9721
9742
  });
9722
- const _hoisted_1$Z = { class: "lupa-generated-badges" };
9723
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9743
+ const _hoisted_1$_ = { class: "lupa-generated-badges" };
9744
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9724
9745
  __name: "SearchResultGeneratedBadges",
9725
9746
  props: {
9726
9747
  options: {}
@@ -9746,9 +9767,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9746
9767
  })).filter((b) => Boolean(b.id));
9747
9768
  });
9748
9769
  return (_ctx, _cache) => {
9749
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9770
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
9750
9771
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
9751
- return openBlock(), createBlock(_sfc_main$13, {
9772
+ return openBlock(), createBlock(_sfc_main$14, {
9752
9773
  key: badge.id,
9753
9774
  badge,
9754
9775
  options: _ctx.options
@@ -9758,8 +9779,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9758
9779
  };
9759
9780
  }
9760
9781
  });
9761
- const _hoisted_1$Y = ["innerHTML"];
9762
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9782
+ const _hoisted_1$Z = ["innerHTML"];
9783
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9763
9784
  __name: "CustomBadge",
9764
9785
  props: {
9765
9786
  badge: {}
@@ -9778,12 +9799,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9778
9799
  return openBlock(), createElementBlock("div", {
9779
9800
  class: normalizeClass(className.value),
9780
9801
  innerHTML: text.value
9781
- }, null, 10, _hoisted_1$Y);
9802
+ }, null, 10, _hoisted_1$Z);
9782
9803
  };
9783
9804
  }
9784
9805
  });
9785
- const _hoisted_1$X = { class: "lupa-text-badges" };
9786
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9806
+ const _hoisted_1$Y = { class: "lupa-text-badges" };
9807
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9787
9808
  __name: "TextBadge",
9788
9809
  props: {
9789
9810
  badge: {}
@@ -9798,7 +9819,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9798
9819
  return badges.value.slice(0, props.badge.maxItems);
9799
9820
  });
9800
9821
  return (_ctx, _cache) => {
9801
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
9822
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
9802
9823
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9803
9824
  return openBlock(), createElementBlock("div", {
9804
9825
  class: "lupa-badge lupa-text-badge",
@@ -9809,9 +9830,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9809
9830
  };
9810
9831
  }
9811
9832
  });
9812
- const _hoisted_1$W = { class: "lupa-image-badges" };
9813
- const _hoisted_2$H = ["src"];
9814
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9833
+ const _hoisted_1$X = { class: "lupa-image-badges" };
9834
+ const _hoisted_2$I = ["src"];
9835
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9815
9836
  __name: "ImageBadge",
9816
9837
  props: {
9817
9838
  badge: {}
@@ -9831,7 +9852,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9831
9852
  return `${props.badge.rootImageUrl}${src}`;
9832
9853
  };
9833
9854
  return (_ctx, _cache) => {
9834
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
9855
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9835
9856
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9836
9857
  return openBlock(), createElementBlock("div", {
9837
9858
  class: "lupa-badge lupa-image-badge",
@@ -9839,22 +9860,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9839
9860
  }, [
9840
9861
  createBaseVNode("img", {
9841
9862
  src: getImageUrl(item)
9842
- }, null, 8, _hoisted_2$H)
9863
+ }, null, 8, _hoisted_2$I)
9843
9864
  ]);
9844
9865
  }), 128))
9845
9866
  ]);
9846
9867
  };
9847
9868
  }
9848
9869
  });
9849
- const _hoisted_1$V = { id: "lupa-search-results-badges" };
9870
+ const _hoisted_1$W = { id: "lupa-search-results-badges" };
9850
9871
  const __default__$3 = {
9851
9872
  components: {
9852
- CustomBadge: _sfc_main$11,
9853
- TextBadge: _sfc_main$10,
9854
- ImageBadge: _sfc_main$$
9873
+ CustomBadge: _sfc_main$12,
9874
+ TextBadge: _sfc_main$11,
9875
+ ImageBadge: _sfc_main$10
9855
9876
  }
9856
9877
  };
9857
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9878
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9858
9879
  __name: "SearchResultsBadgeWrapper",
9859
9880
  props: {
9860
9881
  position: {},
@@ -9910,7 +9931,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9910
9931
  }
9911
9932
  };
9912
9933
  return (_ctx, _cache) => {
9913
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
9934
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9914
9935
  createBaseVNode("div", {
9915
9936
  id: "lupa-badges",
9916
9937
  class: normalizeClass(anchorPosition.value)
@@ -9921,7 +9942,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9921
9942
  badge
9922
9943
  }, null, 8, ["badge"]);
9923
9944
  }), 128)),
9924
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$12, {
9945
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$13, {
9925
9946
  key: 0,
9926
9947
  options: _ctx.options
9927
9948
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -9930,14 +9951,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9930
9951
  };
9931
9952
  }
9932
9953
  }));
9933
- const _hoisted_1$U = ["href"];
9934
- const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
9954
+ const _hoisted_1$V = ["href"];
9955
+ const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
9935
9956
  const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
9936
9957
  const _hoisted_4$o = {
9937
9958
  key: 0,
9938
9959
  class: "lupa-search-box-product-add-to-cart-section"
9939
9960
  };
9940
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9961
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9941
9962
  __name: "SearchBoxProduct",
9942
9963
  props: {
9943
9964
  item: {},
@@ -9996,9 +10017,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9996
10017
  "data-cy": "lupa-search-box-product",
9997
10018
  onClick: handleClick
9998
10019
  }), [
9999
- createBaseVNode("div", _hoisted_2$G, [
10020
+ createBaseVNode("div", _hoisted_2$H, [
10000
10021
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
10001
- return openBlock(), createBlock(_sfc_main$14, {
10022
+ return openBlock(), createBlock(_sfc_main$15, {
10002
10023
  class: "lupa-search-box-product-element",
10003
10024
  item: _ctx.item,
10004
10025
  element,
@@ -10011,7 +10032,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10011
10032
  createBaseVNode("div", _hoisted_3$v, [
10012
10033
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
10013
10034
  var _a;
10014
- return openBlock(), createBlock(_sfc_main$14, {
10035
+ return openBlock(), createBlock(_sfc_main$15, {
10015
10036
  key: element.key,
10016
10037
  class: "lupa-search-box-product-element",
10017
10038
  item: _ctx.item,
@@ -10022,7 +10043,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10022
10043
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
10023
10044
  name: "badges",
10024
10045
  fn: withCtx(() => [
10025
- createVNode(_sfc_main$_, {
10046
+ createVNode(_sfc_main$$, {
10026
10047
  options: badgeOptions.value,
10027
10048
  position: "card"
10028
10049
  }, null, 8, ["options"])
@@ -10033,7 +10054,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10033
10054
  }), 128))
10034
10055
  ]),
10035
10056
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
10036
- createVNode(_sfc_main$14, {
10057
+ createVNode(_sfc_main$15, {
10037
10058
  class: "lupa-search-box-product-element",
10038
10059
  item: _ctx.item,
10039
10060
  element: addToCartElement.value,
@@ -10042,7 +10063,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10042
10063
  isInStock: isInStock.value
10043
10064
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
10044
10065
  ])) : createCommentVNode("", true)
10045
- ], 16, _hoisted_1$U);
10066
+ ], 16, _hoisted_1$V);
10046
10067
  };
10047
10068
  }
10048
10069
  });
@@ -10103,8 +10124,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10103
10124
  };
10104
10125
  return { trackSearch, trackResults, trackEvent };
10105
10126
  });
10106
- const _hoisted_1$T = { id: "lupa-search-box-products" };
10107
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10127
+ const _hoisted_1$U = { id: "lupa-search-box-products" };
10128
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10108
10129
  __name: "SearchBoxProducts",
10109
10130
  props: {
10110
10131
  items: {},
@@ -10165,7 +10186,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10165
10186
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
10166
10187
  };
10167
10188
  return (_ctx, _cache) => {
10168
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
10189
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
10169
10190
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
10170
10191
  return renderSlot(_ctx.$slots, "productCard", {
10171
10192
  key: index,
@@ -10177,7 +10198,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10177
10198
  itemClicked: handleProductClick
10178
10199
  });
10179
10200
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
10180
- return openBlock(), createBlock(_sfc_main$Z, {
10201
+ return openBlock(), createBlock(_sfc_main$_, {
10181
10202
  key: index,
10182
10203
  item,
10183
10204
  panelOptions: _ctx.panelOptions,
@@ -10191,7 +10212,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10191
10212
  };
10192
10213
  }
10193
10214
  });
10194
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
10215
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10195
10216
  __name: "SearchBoxProductsWrapper",
10196
10217
  props: {
10197
10218
  panel: {},
@@ -10243,7 +10264,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10243
10264
  const getItemsDebounced = debounce$1(getItems, props.debounce);
10244
10265
  return (_ctx, _cache) => {
10245
10266
  var _a, _b;
10246
- return openBlock(), createBlock(_sfc_main$Y, {
10267
+ return openBlock(), createBlock(_sfc_main$Z, {
10247
10268
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10248
10269
  panelOptions: _ctx.panel,
10249
10270
  labels: _ctx.labels,
@@ -10261,7 +10282,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10261
10282
  };
10262
10283
  }
10263
10284
  });
10264
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
10285
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10265
10286
  __name: "SearchBoxRelatedSourceWrapper",
10266
10287
  props: {
10267
10288
  panel: {},
@@ -10333,7 +10354,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10333
10354
  });
10334
10355
  return (_ctx, _cache) => {
10335
10356
  var _a, _b;
10336
- return openBlock(), createBlock(_sfc_main$Y, {
10357
+ return openBlock(), createBlock(_sfc_main$Z, {
10337
10358
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10338
10359
  panelOptions: documentPanelOptions.value,
10339
10360
  labels: _ctx.labels,
@@ -10351,11 +10372,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10351
10372
  };
10352
10373
  }
10353
10374
  });
10354
- const _hoisted_1$S = {
10375
+ const _hoisted_1$T = {
10355
10376
  key: 0,
10356
10377
  id: "lupa-search-box-panel"
10357
10378
  };
10358
- const _hoisted_2$F = ["data-cy"];
10379
+ const _hoisted_2$G = ["data-cy"];
10359
10380
  const _hoisted_3$u = {
10360
10381
  key: 0,
10361
10382
  class: "lupa-panel-title lupa-panel-title-top-results"
@@ -10370,12 +10391,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10370
10391
  };
10371
10392
  const __default__$2 = {
10372
10393
  components: {
10373
- SearchBoxSuggestionsWrapper: _sfc_main$1e,
10374
- SearchBoxProductsWrapper: _sfc_main$X,
10375
- SearchBoxRelatedSourceWrapper: _sfc_main$W
10394
+ SearchBoxSuggestionsWrapper: _sfc_main$1f,
10395
+ SearchBoxProductsWrapper: _sfc_main$Y,
10396
+ SearchBoxRelatedSourceWrapper: _sfc_main$X
10376
10397
  }
10377
10398
  };
10378
- const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10399
+ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10379
10400
  __name: "SearchBoxMainPanel",
10380
10401
  props: {
10381
10402
  options: {},
@@ -10521,7 +10542,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10521
10542
  ref_key: "panelContainer",
10522
10543
  ref: panelContainer
10523
10544
  }, [
10524
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
10545
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
10525
10546
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
10526
10547
  key: 0,
10527
10548
  class: "lupa-search-box-close-panel",
@@ -10563,21 +10584,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10563
10584
  key: "0"
10564
10585
  } : void 0
10565
10586
  ]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
10566
- ], 10, _hoisted_2$F);
10587
+ ], 10, _hoisted_2$G);
10567
10588
  }), 128))
10568
10589
  ], 4),
10569
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1h, {
10590
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1i, {
10570
10591
  key: 1,
10571
10592
  labels: labels.value
10572
10593
  }, null, 8, ["labels"])) : createCommentVNode("", true),
10573
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1k, {
10594
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1l, {
10574
10595
  key: 2,
10575
10596
  labels: labels.value,
10576
10597
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
10577
10598
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
10578
10599
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
10579
10600
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
10580
- createVNode(_sfc_main$1i, {
10601
+ createVNode(_sfc_main$1j, {
10581
10602
  options: _ctx.options.history,
10582
10603
  history: history.value,
10583
10604
  onGoToResults: handleGoToResults,
@@ -10602,9 +10623,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10602
10623
  const elements = getElements(triggers);
10603
10624
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
10604
10625
  };
10605
- const _hoisted_1$R = { id: "lupa-search-box" };
10606
- const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
10607
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
10626
+ const _hoisted_1$S = { id: "lupa-search-box" };
10627
+ const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
10628
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10608
10629
  __name: "SearchBox",
10609
10630
  props: {
10610
10631
  options: {},
@@ -10849,9 +10870,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10849
10870
  };
10850
10871
  return (_ctx, _cache) => {
10851
10872
  var _a2;
10852
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
10853
- createBaseVNode("div", _hoisted_2$E, [
10854
- createVNode(_sfc_main$1l, {
10873
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
10874
+ createBaseVNode("div", _hoisted_2$F, [
10875
+ createVNode(_sfc_main$1m, {
10855
10876
  options: inputOptions.value,
10856
10877
  suggestedValue: suggestedValue.value,
10857
10878
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -10862,7 +10883,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10862
10883
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10863
10884
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10864
10885
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10865
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$V, {
10886
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
10866
10887
  key: 0,
10867
10888
  options: panelOptions.value,
10868
10889
  inputValue: inputValue.value,
@@ -10950,11 +10971,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10950
10971
  }
10951
10972
  return searchParams;
10952
10973
  };
10953
- const _hoisted_1$Q = {
10974
+ const _hoisted_1$R = {
10954
10975
  key: 0,
10955
10976
  id: "lupa-search-results-did-you-mean"
10956
10977
  };
10957
- const _hoisted_2$D = {
10978
+ const _hoisted_2$E = {
10958
10979
  key: 0,
10959
10980
  "data-cy": "suggested-search-text-label"
10960
10981
  };
@@ -10963,7 +10984,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10963
10984
  "data-cy": "did-you-mean-label"
10964
10985
  };
10965
10986
  const _hoisted_4$m = { key: 1 };
10966
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
10987
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10967
10988
  __name: "SearchResultsDidYouMean",
10968
10989
  props: {
10969
10990
  labels: {}
@@ -10995,8 +11016,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10995
11016
  paramStore.goToResults({ searchText, facet });
10996
11017
  };
10997
11018
  return (_ctx, _cache) => {
10998
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
10999
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
11019
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
11020
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
11000
11021
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
11001
11022
  return openBlock(), createElementBlock("span", { key: index }, [
11002
11023
  createBaseVNode("span", {
@@ -11021,12 +11042,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11021
11042
  };
11022
11043
  }
11023
11044
  });
11024
- const _hoisted_1$P = {
11045
+ const _hoisted_1$Q = {
11025
11046
  key: 0,
11026
11047
  class: "lupa-search-results-summary"
11027
11048
  };
11028
- const _hoisted_2$C = ["innerHTML"];
11029
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
11049
+ const _hoisted_2$D = ["innerHTML"];
11050
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
11030
11051
  __name: "SearchResultsSummary",
11031
11052
  props: {
11032
11053
  label: {},
@@ -11041,8 +11062,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11041
11062
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
11042
11063
  });
11043
11064
  return (_ctx, _cache) => {
11044
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
11045
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
11065
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
11066
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
11046
11067
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
11047
11068
  key: 0,
11048
11069
  class: "lupa-filter-clear",
@@ -11053,18 +11074,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11053
11074
  };
11054
11075
  }
11055
11076
  });
11056
- const _hoisted_1$O = {
11077
+ const _hoisted_1$P = {
11057
11078
  key: 0,
11058
11079
  class: "lupa-result-page-title",
11059
11080
  "data-cy": "lupa-result-page-title"
11060
11081
  };
11061
- const _hoisted_2$B = { key: 0 };
11082
+ const _hoisted_2$C = { key: 0 };
11062
11083
  const _hoisted_3$s = {
11063
11084
  key: 1,
11064
11085
  class: "lupa-results-total-count"
11065
11086
  };
11066
11087
  const _hoisted_4$l = ["innerHTML"];
11067
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
11088
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11068
11089
  __name: "SearchResultsTitle",
11069
11090
  props: {
11070
11091
  options: {},
@@ -11099,12 +11120,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11099
11120
  });
11100
11121
  return (_ctx, _cache) => {
11101
11122
  return openBlock(), createElementBlock("div", null, [
11102
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
11123
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11103
11124
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11104
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11125
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11105
11126
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11106
11127
  ])) : createCommentVNode("", true),
11107
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$S, {
11128
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11108
11129
  key: 1,
11109
11130
  label: summaryLabel.value
11110
11131
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -11117,8 +11138,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11117
11138
  };
11118
11139
  }
11119
11140
  });
11120
- const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
11121
- const _hoisted_2$A = {
11141
+ const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
11142
+ const _hoisted_2$B = {
11122
11143
  class: "lupa-current-filter-label",
11123
11144
  "data-cy": "lupa-current-filter-label"
11124
11145
  };
@@ -11126,7 +11147,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11126
11147
  class: "lupa-current-filter-value",
11127
11148
  "data-cy": "lupa-current-filter-value"
11128
11149
  };
11129
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11150
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11130
11151
  __name: "CurrentFilterDisplay",
11131
11152
  props: {
11132
11153
  filter: {}
@@ -11138,19 +11159,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11138
11159
  emit2("remove", { filter: props.filter });
11139
11160
  };
11140
11161
  return (_ctx, _cache) => {
11141
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
11162
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
11142
11163
  createBaseVNode("div", {
11143
11164
  class: "lupa-current-filter-action",
11144
11165
  onClick: handleClick
11145
11166
  }, "⨉"),
11146
- createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
11167
+ createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
11147
11168
  createBaseVNode("div", _hoisted_3$r, toDisplayString(_ctx.filter.value), 1)
11148
11169
  ]);
11149
11170
  };
11150
11171
  }
11151
11172
  });
11152
- const _hoisted_1$M = { class: "lupa-filter-title-text" };
11153
- const _hoisted_2$z = {
11173
+ const _hoisted_1$N = { class: "lupa-filter-title-text" };
11174
+ const _hoisted_2$A = {
11154
11175
  key: 0,
11155
11176
  class: "lupa-filter-count"
11156
11177
  };
@@ -11159,7 +11180,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11159
11180
  class: "filter-values"
11160
11181
  };
11161
11182
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
11162
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11183
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11163
11184
  __name: "CurrentFilters",
11164
11185
  props: {
11165
11186
  options: {},
@@ -11220,9 +11241,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11220
11241
  class: "lupa-current-filter-title",
11221
11242
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
11222
11243
  }, [
11223
- createBaseVNode("div", _hoisted_1$M, [
11244
+ createBaseVNode("div", _hoisted_1$N, [
11224
11245
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
11225
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
11246
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
11226
11247
  ]),
11227
11248
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
11228
11249
  key: 0,
@@ -11232,7 +11253,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11232
11253
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
11233
11254
  createBaseVNode("div", _hoisted_4$k, [
11234
11255
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
11235
- return openBlock(), createBlock(_sfc_main$Q, {
11256
+ return openBlock(), createBlock(_sfc_main$R, {
11236
11257
  key: filter.key + "_" + filter.value,
11237
11258
  filter,
11238
11259
  onRemove: handleRemove
@@ -11249,8 +11270,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11249
11270
  };
11250
11271
  }
11251
11272
  });
11252
- const _hoisted_1$L = ["href"];
11253
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11273
+ const _hoisted_1$M = ["href"];
11274
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11254
11275
  __name: "CategoryFilterItem",
11255
11276
  props: {
11256
11277
  options: {},
@@ -11287,20 +11308,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11287
11308
  "data-cy": "lupa-child-category-item",
11288
11309
  href: urlLink.value,
11289
11310
  onClick: handleNavigation
11290
- }, toDisplayString(title.value), 9, _hoisted_1$L)
11311
+ }, toDisplayString(title.value), 9, _hoisted_1$M)
11291
11312
  ], 2);
11292
11313
  };
11293
11314
  }
11294
11315
  });
11295
- const _hoisted_1$K = {
11316
+ const _hoisted_1$L = {
11296
11317
  class: "lupa-category-filter",
11297
11318
  "data-cy": "lupa-category-filter"
11298
11319
  };
11299
- const _hoisted_2$y = { class: "lupa-category-back" };
11320
+ const _hoisted_2$z = { class: "lupa-category-back" };
11300
11321
  const _hoisted_3$p = ["href"];
11301
11322
  const _hoisted_4$j = ["href"];
11302
11323
  const _hoisted_5$d = { class: "lupa-child-category-list" };
11303
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11324
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11304
11325
  __name: "CategoryFilter",
11305
11326
  props: {
11306
11327
  options: {}
@@ -11386,8 +11407,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11386
11407
  };
11387
11408
  __expose({ fetch: fetch2 });
11388
11409
  return (_ctx, _cache) => {
11389
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
11390
- createBaseVNode("div", _hoisted_2$y, [
11410
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
11411
+ createBaseVNode("div", _hoisted_2$z, [
11391
11412
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
11392
11413
  key: 0,
11393
11414
  "data-cy": "lupa-category-back",
@@ -11407,7 +11428,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11407
11428
  ], 2),
11408
11429
  createBaseVNode("div", _hoisted_5$d, [
11409
11430
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
11410
- return openBlock(), createBlock(_sfc_main$O, {
11431
+ return openBlock(), createBlock(_sfc_main$P, {
11411
11432
  key: getCategoryKey(child),
11412
11433
  item: child,
11413
11434
  options: _ctx.options
@@ -11418,11 +11439,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11418
11439
  };
11419
11440
  }
11420
11441
  });
11421
- const _hoisted_1$J = {
11442
+ const _hoisted_1$K = {
11422
11443
  class: "lupa-search-result-facet-term-values",
11423
11444
  "data-cy": "lupa-search-result-facet-term-values"
11424
11445
  };
11425
- const _hoisted_2$x = ["placeholder"];
11446
+ const _hoisted_2$y = ["placeholder"];
11426
11447
  const _hoisted_3$o = { class: "lupa-terms-list" };
11427
11448
  const _hoisted_4$i = ["onClick"];
11428
11449
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
@@ -11434,7 +11455,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11434
11455
  };
11435
11456
  const _hoisted_9$1 = { key: 0 };
11436
11457
  const _hoisted_10$1 = { key: 1 };
11437
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
11458
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11438
11459
  __name: "TermFacet",
11439
11460
  props: {
11440
11461
  options: {},
@@ -11503,14 +11524,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11503
11524
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
11504
11525
  };
11505
11526
  return (_ctx, _cache) => {
11506
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
11527
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
11507
11528
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
11508
11529
  key: 0,
11509
11530
  class: "lupa-term-filter",
11510
11531
  "data-cy": "lupa-term-filter",
11511
11532
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
11512
11533
  placeholder: _ctx.options.labels.facetFilter
11513
- }, null, 8, _hoisted_2$x)), [
11534
+ }, null, 8, _hoisted_2$y)), [
11514
11535
  [vModelText, termFilter.value]
11515
11536
  ]) : createCommentVNode("", true),
11516
11537
  createBaseVNode("div", _hoisted_3$o, [
@@ -12521,8 +12542,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12521
12542
  m.render = function(e, t, r, i, n, o) {
12522
12543
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
12523
12544
  }, m.__file = "src/Slider.vue";
12524
- const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
12525
- const _hoisted_2$w = {
12545
+ const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
12546
+ const _hoisted_2$x = {
12526
12547
  key: 0,
12527
12548
  class: "lupa-stats-facet-summary"
12528
12549
  };
@@ -12549,7 +12570,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12549
12570
  key: 2,
12550
12571
  class: "lupa-stats-slider-wrapper"
12551
12572
  };
12552
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
12573
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12553
12574
  __name: "StatsFacet",
12554
12575
  props: {
12555
12576
  options: {},
@@ -12582,6 +12603,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12582
12603
  var _a;
12583
12604
  return (_a = searchResultOptions.value) == null ? void 0 : _a.labels.currency;
12584
12605
  });
12606
+ const priceKeys = computed(() => {
12607
+ var _a, _b;
12608
+ return (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.priceKeys) != null ? _b : [];
12609
+ });
12585
12610
  const isSliderVisible = computed(() => {
12586
12611
  var _a, _b;
12587
12612
  return Boolean((_b = (_a = props.options.stats) == null ? void 0 : _a.slider) != null ? _b : true);
@@ -12645,8 +12670,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12645
12670
  }
12646
12671
  });
12647
12672
  const isPrice = computed(() => {
12648
- var _a;
12649
- return (_a = facetValue.value.key) == null ? void 0 : _a.includes(CURRENCY_KEY_INDICATOR);
12673
+ var _a, _b, _c;
12674
+ return ((_b = (_a = facetValue.value) == null ? void 0 : _a.key) == null ? void 0 : _b.includes(CURRENCY_KEY_INDICATOR)) || ((_c = priceKeys.value) == null ? void 0 : _c.includes(facetValue.value.key));
12650
12675
  });
12651
12676
  const facetMin = computed(() => {
12652
12677
  return Math.floor(facetValue.value.min);
@@ -12718,8 +12743,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12718
12743
  innerSliderRange.value = value;
12719
12744
  };
12720
12745
  return (_ctx, _cache) => {
12721
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
12722
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
12746
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
12747
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
12723
12748
  createBaseVNode("div", null, [
12724
12749
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
12725
12750
  createBaseVNode("div", _hoisted_5$b, [
@@ -12785,8 +12810,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12785
12810
  };
12786
12811
  }
12787
12812
  });
12788
- const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
12789
- const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
12813
+ const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
12814
+ const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
12790
12815
  const _hoisted_3$m = { class: "lupa-term-label" };
12791
12816
  const _hoisted_4$g = {
12792
12817
  key: 0,
@@ -12796,7 +12821,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12796
12821
  key: 0,
12797
12822
  class: "lupa-facet-level"
12798
12823
  };
12799
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
12824
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12800
12825
  __name: "HierarchyFacetLevel",
12801
12826
  props: {
12802
12827
  options: {},
@@ -12842,12 +12867,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12842
12867
  "data-cy": "lupa-facet-term",
12843
12868
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
12844
12869
  }, [
12845
- createBaseVNode("div", _hoisted_1$H, [
12870
+ createBaseVNode("div", _hoisted_1$I, [
12846
12871
  createBaseVNode("span", {
12847
12872
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
12848
12873
  }, null, 2)
12849
12874
  ]),
12850
- createBaseVNode("div", _hoisted_2$v, [
12875
+ createBaseVNode("div", _hoisted_2$w, [
12851
12876
  createBaseVNode("span", _hoisted_3$m, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
12852
12877
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
12853
12878
  ])
@@ -12868,13 +12893,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12868
12893
  };
12869
12894
  }
12870
12895
  });
12871
- const _hoisted_1$G = {
12896
+ const _hoisted_1$H = {
12872
12897
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
12873
12898
  "data-cy": "lupa-search-result-facet-term-values"
12874
12899
  };
12875
- const _hoisted_2$u = { key: 0 };
12900
+ const _hoisted_2$v = { key: 0 };
12876
12901
  const _hoisted_3$l = ["placeholder"];
12877
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
12902
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12878
12903
  __name: "HierarchyFacet",
12879
12904
  props: {
12880
12905
  options: {},
@@ -12924,8 +12949,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12924
12949
  showAll.value = true;
12925
12950
  };
12926
12951
  return (_ctx, _cache) => {
12927
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
12928
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
12952
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
12953
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
12929
12954
  withDirectives(createBaseVNode("input", {
12930
12955
  class: "lupa-term-filter",
12931
12956
  "data-cy": "lupa-term-filter",
@@ -12936,7 +12961,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12936
12961
  ])
12937
12962
  ])) : createCommentVNode("", true),
12938
12963
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
12939
- return openBlock(), createBlock(_sfc_main$K, {
12964
+ return openBlock(), createBlock(_sfc_main$L, {
12940
12965
  key: item.title,
12941
12966
  options: _ctx.options,
12942
12967
  item,
@@ -12956,20 +12981,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12956
12981
  };
12957
12982
  }
12958
12983
  });
12959
- const _hoisted_1$F = { class: "lupa-facet-label-text" };
12960
- const _hoisted_2$t = {
12984
+ const _hoisted_1$G = { class: "lupa-facet-label-text" };
12985
+ const _hoisted_2$u = {
12961
12986
  key: 0,
12962
12987
  class: "lupa-facet-content",
12963
12988
  "data-cy": "lupa-facet-content"
12964
12989
  };
12965
12990
  const __default__$1 = {
12966
12991
  components: {
12967
- TermFacet: _sfc_main$M,
12968
- StatsFacet: _sfc_main$L,
12969
- HierarchyFacet: _sfc_main$J
12992
+ TermFacet: _sfc_main$N,
12993
+ StatsFacet: _sfc_main$M,
12994
+ HierarchyFacet: _sfc_main$K
12970
12995
  }
12971
12996
  };
12972
- const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12997
+ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12973
12998
  __name: "FacetDisplay",
12974
12999
  props: {
12975
13000
  options: {},
@@ -13081,12 +13106,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13081
13106
  "data-cy": "lupa-search-result-facet-label",
13082
13107
  onClick: toggleFacet
13083
13108
  }, [
13084
- createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
13109
+ createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
13085
13110
  createBaseVNode("div", {
13086
13111
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
13087
13112
  }, null, 2)
13088
13113
  ], 2),
13089
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
13114
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
13090
13115
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
13091
13116
  facet: facet.value,
13092
13117
  currentFilters: currentFilters.value[facet.value.key],
@@ -13104,12 +13129,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13104
13129
  };
13105
13130
  }
13106
13131
  }));
13107
- const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
13108
- const _hoisted_2$s = {
13132
+ const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
13133
+ const _hoisted_2$t = {
13109
13134
  key: 0,
13110
13135
  class: "lupa-facets-title"
13111
13136
  };
13112
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
13137
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
13113
13138
  __name: "FacetList",
13114
13139
  props: {
13115
13140
  options: {},
@@ -13143,14 +13168,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13143
13168
  };
13144
13169
  return (_ctx, _cache) => {
13145
13170
  var _a;
13146
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
13147
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
13171
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
13172
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
13148
13173
  createBaseVNode("div", {
13149
13174
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
13150
13175
  }, [
13151
13176
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
13152
13177
  var _a2;
13153
- return openBlock(), createBlock(_sfc_main$I, {
13178
+ return openBlock(), createBlock(_sfc_main$J, {
13154
13179
  key: facet.key,
13155
13180
  facet,
13156
13181
  currentFilters: currentFiltersValue.value,
@@ -13165,7 +13190,33 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13165
13190
  };
13166
13191
  }
13167
13192
  });
13193
+ const _hoisted_1$E = ["onClick"];
13194
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
13195
+ __name: "FacetsButton",
13196
+ props: {
13197
+ options: {}
13198
+ },
13199
+ emits: ["filter"],
13200
+ setup(__props, { emit: emit2 }) {
13201
+ const props = __props;
13202
+ const label = computed(() => {
13203
+ var _a, _b;
13204
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.facetFilterButton) != null ? _b : "";
13205
+ });
13206
+ const handleClick = () => {
13207
+ emit2("filter");
13208
+ };
13209
+ return (_ctx, _cache) => {
13210
+ return label.value ? (openBlock(), createElementBlock("button", {
13211
+ key: 0,
13212
+ class: "lupa-facets-button-filter",
13213
+ onClick: withModifiers(handleClick, ["stop"])
13214
+ }, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
13215
+ };
13216
+ }
13217
+ });
13168
13218
  const _hoisted_1$D = { class: "lupa-search-result-facets" };
13219
+ const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
13169
13220
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
13170
13221
  __name: "Facets",
13171
13222
  props: {
@@ -13173,7 +13224,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13173
13224
  facetStyle: {},
13174
13225
  clearable: { type: Boolean }
13175
13226
  },
13176
- setup(__props) {
13227
+ emits: ["filter"],
13228
+ setup(__props, { emit: emit2 }) {
13177
13229
  const props = __props;
13178
13230
  const paramStore = useParamsStore();
13179
13231
  const searchResultStore = useSearchResultStore();
@@ -13203,6 +13255,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13203
13255
  timeout: (_f = (_e = searchResultOptions.value.scrollToResults) == null ? void 0 : _e.timeout) != null ? _f : 500
13204
13256
  };
13205
13257
  });
13258
+ const showFilterButton = computed(() => {
13259
+ return props.options.filterBehavior === "withFilterButton";
13260
+ });
13206
13261
  const handleFacetSelect = (facetAction) => {
13207
13262
  switch (facetAction.type) {
13208
13263
  case "terms":
@@ -13241,9 +13296,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13241
13296
  const param = getFacetKey(facet.key, facet.type);
13242
13297
  paramStore.removeParameters({ paramsToRemove: [param] });
13243
13298
  };
13299
+ const filter = () => {
13300
+ emit2("filter");
13301
+ };
13244
13302
  return (_ctx, _cache) => {
13245
13303
  return openBlock(), createElementBlock("div", _hoisted_1$D, [
13246
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$H, {
13304
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$I, {
13247
13305
  key: 0,
13248
13306
  options: _ctx.options,
13249
13307
  facets: regularFacets.value,
@@ -13252,7 +13310,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13252
13310
  clearable: _ctx.clearable,
13253
13311
  onSelect: handleFacetSelect,
13254
13312
  onClear: clear2
13255
- }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true)
13313
+ }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
13314
+ createBaseVNode("div", _hoisted_2$s, [
13315
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$H, {
13316
+ key: 0,
13317
+ options: _ctx.options,
13318
+ onFilter: filter
13319
+ }, null, 8, ["options"])) : createCommentVNode("", true)
13320
+ ])
13256
13321
  ]);
13257
13322
  };
13258
13323
  }
@@ -13267,7 +13332,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13267
13332
  options: {},
13268
13333
  expandable: { type: Boolean }
13269
13334
  },
13270
- setup(__props, { expose: __expose }) {
13335
+ emits: ["filter"],
13336
+ setup(__props, { expose: __expose, emit: emit2 }) {
13271
13337
  const props = __props;
13272
13338
  const categoryFilters = ref(null);
13273
13339
  const desktopFiltersVisible = computed(() => {
@@ -13281,6 +13347,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13281
13347
  const showCurrentFilters = computed(() => {
13282
13348
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
13283
13349
  });
13350
+ const filter = () => {
13351
+ emit2("filter");
13352
+ };
13284
13353
  const fetch2 = () => {
13285
13354
  var _a;
13286
13355
  if (categoryFilters.value) {
@@ -13291,12 +13360,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13291
13360
  return (_ctx, _cache) => {
13292
13361
  var _a;
13293
13362
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
13294
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
13363
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
13295
13364
  key: 0,
13296
13365
  options: _ctx.options.currentFilters,
13297
13366
  expandable: (_a = _ctx.expandable) != null ? _a : false
13298
13367
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
13299
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$N, {
13368
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$O, {
13300
13369
  key: 1,
13301
13370
  options: _ctx.options.categories,
13302
13371
  ref_key: "categoryFilters",
@@ -13304,7 +13373,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13304
13373
  }, null, 8, ["options"])) : createCommentVNode("", true),
13305
13374
  _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
13306
13375
  key: 2,
13307
- options: _ctx.options.facets
13376
+ options: _ctx.options.facets,
13377
+ onFilter: filter
13308
13378
  }, null, 8, ["options"])) : createCommentVNode("", true)
13309
13379
  ]);
13310
13380
  };
@@ -13328,7 +13398,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13328
13398
  props: {
13329
13399
  options: {}
13330
13400
  },
13331
- setup(__props) {
13401
+ emits: ["filter"],
13402
+ setup(__props, { emit: emit2 }) {
13332
13403
  const props = __props;
13333
13404
  const searchResultStore = useSearchResultStore();
13334
13405
  const { currentFilterCount } = storeToRefs(searchResultStore);
@@ -13348,6 +13419,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13348
13419
  const handleMobileToggle = () => {
13349
13420
  searchResultStore.setSidebarState({ visible: false });
13350
13421
  };
13422
+ const filter = () => {
13423
+ emit2("filter");
13424
+ handleMobileToggle();
13425
+ };
13351
13426
  return (_ctx, _cache) => {
13352
13427
  return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
13353
13428
  createBaseVNode("div", {
@@ -13368,7 +13443,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13368
13443
  createBaseVNode("div", _hoisted_7$4, [
13369
13444
  createVNode(_sfc_main$F, {
13370
13445
  options: _ctx.options,
13371
- expandable: isActiveFiltersExpanded.value
13446
+ expandable: isActiveFiltersExpanded.value,
13447
+ onFilter: filter
13372
13448
  }, null, 8, ["options", "expandable"])
13373
13449
  ])
13374
13450
  ])
@@ -13439,7 +13515,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13439
13515
  props: {
13440
13516
  options: {}
13441
13517
  },
13442
- setup(__props) {
13518
+ emits: ["filter"],
13519
+ setup(__props, { emit: emit2 }) {
13520
+ const filter = () => {
13521
+ emit2("filter");
13522
+ };
13443
13523
  return (_ctx, _cache) => {
13444
13524
  var _a;
13445
13525
  return openBlock(), createElementBlock("div", _hoisted_1$z, [
@@ -13447,7 +13527,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13447
13527
  key: 0,
13448
13528
  options: _ctx.options.facets,
13449
13529
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
13450
- clearable: true
13530
+ clearable: true,
13531
+ onFilter: filter
13451
13532
  }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
13452
13533
  ]);
13453
13534
  };
@@ -13884,7 +13965,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13884
13965
  }, [
13885
13966
  createBaseVNode("div", _hoisted_1$t, [
13886
13967
  showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13887
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$S, {
13968
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13888
13969
  key: 2,
13889
13970
  label: searchSummaryLabel.value,
13890
13971
  clearable: unref(hasAnyFilter) && showFilterClear.value,
@@ -13925,7 +14006,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13925
14006
  },
13926
14007
  setup(__props) {
13927
14008
  return (_ctx, _cache) => {
13928
- return openBlock(), createBlock(_sfc_main$1d, {
14009
+ return openBlock(), createBlock(_sfc_main$1e, {
13929
14010
  item: _ctx.item,
13930
14011
  options: _ctx.options,
13931
14012
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -14256,7 +14337,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14256
14337
  item: {},
14257
14338
  options: {}
14258
14339
  },
14259
- setup(__props) {
14340
+ emits: ["productEvent"],
14341
+ setup(__props, { emit: emit2 }) {
14260
14342
  const props = __props;
14261
14343
  const text = computed(() => {
14262
14344
  return props.options.html(props.item);
@@ -14268,6 +14350,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14268
14350
  if (!props.options.action) {
14269
14351
  return;
14270
14352
  }
14353
+ if (props.options.reportEventOnClick) {
14354
+ emit2("productEvent", { type: props.options.reportEventOnClick });
14355
+ }
14271
14356
  yield props.options.action(props.item);
14272
14357
  });
14273
14358
  return (_ctx, _cache) => {
@@ -14563,7 +14648,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14563
14648
  "data-cy": "lupa-search-result-product-card",
14564
14649
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
14565
14650
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
14566
- createVNode(_sfc_main$_, { options: badgesOptions.value }, null, 8, ["options"]),
14651
+ createVNode(_sfc_main$$, { options: badgesOptions.value }, null, 8, ["options"]),
14567
14652
  createBaseVNode("div", {
14568
14653
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
14569
14654
  }, [
@@ -14580,10 +14665,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14580
14665
  key: element.key,
14581
14666
  labels: labels.value,
14582
14667
  inStock: isInStock.value,
14583
- link: link.value
14668
+ link: link.value,
14669
+ onProductEvent: handleProductEvent
14584
14670
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
14585
14671
  }), 128)),
14586
- createVNode(_sfc_main$_, {
14672
+ createVNode(_sfc_main$$, {
14587
14673
  options: badgesOptions.value,
14588
14674
  position: "image",
14589
14675
  class: "lupa-image-badges"
@@ -14926,7 +15012,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14926
15012
  options: {},
14927
15013
  ssr: { type: Boolean }
14928
15014
  },
14929
- setup(__props) {
15015
+ emits: ["filter"],
15016
+ setup(__props, { emit: emit2 }) {
14930
15017
  const props = __props;
14931
15018
  const searchResultStore = useSearchResultStore();
14932
15019
  const paramStore = useParamsStore();
@@ -15017,6 +15104,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15017
15104
  params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE), value: "1" }]
15018
15105
  });
15019
15106
  };
15107
+ const filter = () => {
15108
+ emit2("filter");
15109
+ };
15020
15110
  return (_ctx, _cache) => {
15021
15111
  var _a;
15022
15112
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
@@ -15033,9 +15123,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15033
15123
  key: 1,
15034
15124
  class: "lupa-toolbar-mobile",
15035
15125
  options: _ctx.options,
15036
- "pagination-location": "top"
15126
+ "pagination-location": "top",
15127
+ onFilter: filter
15037
15128
  }, null, 8, ["options"])) : createCommentVNode("", true),
15038
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$P, {
15129
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15039
15130
  key: 2,
15040
15131
  class: normalizeClass(currentFiltersClass.value),
15041
15132
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15390,8 +15481,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15390
15481
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
15391
15482
  }, [
15392
15483
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
15393
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15394
- createVNode(_sfc_main$R, {
15484
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15485
+ createVNode(_sfc_main$S, {
15395
15486
  "show-summary": true,
15396
15487
  options: _ctx.options,
15397
15488
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -15403,7 +15494,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15403
15494
  }, null, 8, ["options"])) : createCommentVNode("", true),
15404
15495
  _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
15405
15496
  key: 2,
15406
- options: _ctx.options.filters
15497
+ options: _ctx.options.filters,
15498
+ onFilter: handleParamsChange
15407
15499
  }, null, 8, ["options"])) : createCommentVNode("", true),
15408
15500
  unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
15409
15501
  key: 3,
@@ -15414,17 +15506,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15414
15506
  key: 0,
15415
15507
  options: (_b = _ctx.options.filters) != null ? _b : {},
15416
15508
  ref_key: "searchResultsFilters",
15417
- ref: searchResultsFilters
15509
+ ref: searchResultsFilters,
15510
+ onFilter: handleParamsChange
15418
15511
  }, null, 8, ["options"])) : createCommentVNode("", true),
15419
15512
  createBaseVNode("div", _hoisted_3$4, [
15420
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15421
- createVNode(_sfc_main$R, {
15513
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15514
+ createVNode(_sfc_main$S, {
15422
15515
  options: _ctx.options,
15423
15516
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
15424
15517
  }, null, 8, ["options", "is-product-list"]),
15425
15518
  createVNode(_sfc_main$e, {
15426
15519
  options: _ctx.options,
15427
- ssr: ssrEnabled.value
15520
+ ssr: ssrEnabled.value,
15521
+ onFilter: handleParamsChange
15428
15522
  }, {
15429
15523
  append: withCtx(() => [
15430
15524
  renderSlot(_ctx.$slots, "default")
@@ -15433,8 +15527,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15433
15527
  }, 8, ["options", "ssr"])
15434
15528
  ])
15435
15529
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
15436
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15437
- createVNode(_sfc_main$R, {
15530
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15531
+ createVNode(_sfc_main$S, {
15438
15532
  options: _ctx.options,
15439
15533
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
15440
15534
  }, null, 8, ["options", "is-product-list"]),
@@ -15443,11 +15537,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15443
15537
  key: 0,
15444
15538
  options: (_e = _ctx.options.filters) != null ? _e : {},
15445
15539
  ref_key: "searchResultsFilters",
15446
- ref: searchResultsFilters
15540
+ ref: searchResultsFilters,
15541
+ onFilter: handleParamsChange
15447
15542
  }, null, 8, ["options"])) : createCommentVNode("", true),
15448
15543
  createVNode(_sfc_main$e, {
15449
15544
  options: _ctx.options,
15450
- ssr: ssrEnabled.value
15545
+ ssr: ssrEnabled.value,
15546
+ onFilter: handleParamsChange
15451
15547
  }, createSlots({
15452
15548
  append: withCtx(() => [
15453
15549
  renderSlot(_ctx.$slots, "default")
@@ -21069,7 +21165,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21069
21165
  onClick: withModifiers(innerClick, ["stop"])
21070
21166
  }, [
21071
21167
  createBaseVNode("div", _hoisted_2$7, [
21072
- createVNode(_sfc_main$U, {
21168
+ createVNode(_sfc_main$V, {
21073
21169
  options: fullSearchBoxOptions.value,
21074
21170
  "is-search-container": true,
21075
21171
  ref_key: "searchBox",
@@ -22440,7 +22536,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22440
22536
  class: "lupa-chat-spinner-main"
22441
22537
  };
22442
22538
  const _hoisted_5 = { class: "lupasearch-chat-input" };
22443
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
22539
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
22444
22540
  __name: "ChatContainer",
22445
22541
  props: {
22446
22542
  options: {}
@@ -28081,7 +28177,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28081
28177
  };
28082
28178
  __expose({ fetch: fetch2 });
28083
28179
  return (_ctx, _cache) => {
28084
- return openBlock(), createBlock(unref(_sfc_main$U), {
28180
+ return openBlock(), createBlock(unref(_sfc_main$V), {
28085
28181
  options: fullSearchBoxOptions.value,
28086
28182
  ref_key: "searchBox",
28087
28183
  ref: searchBox2
@@ -28918,7 +29014,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28918
29014
  }
28919
29015
  return;
28920
29016
  }
28921
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1m, {
29017
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1n, {
28922
29018
  options
28923
29019
  });
28924
29020
  if (!instance) {