@getlupa/client 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8445,7 +8445,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8445
8445
  resetHighlightIndex
8446
8446
  };
8447
8447
  });
8448
- const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8448
+ const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
8449
8449
  const _hoisted_2$P = { class: "lupa-input-clear" };
8450
8450
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8451
8451
  const _hoisted_4$s = ["value"];
@@ -8454,7 +8454,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8454
8454
  key: 0,
8455
8455
  class: "lupa-close-label"
8456
8456
  };
8457
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8457
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8458
8458
  __name: "SearchBoxInput",
8459
8459
  props: {
8460
8460
  options: {},
@@ -8535,7 +8535,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8535
8535
  };
8536
8536
  __expose({ focus });
8537
8537
  return (_ctx, _cache) => {
8538
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8538
+ return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8539
8539
  createBaseVNode("div", _hoisted_2$P, [
8540
8540
  createBaseVNode("div", {
8541
8541
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
@@ -8577,7 +8577,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8577
8577
  };
8578
8578
  }
8579
8579
  });
8580
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8580
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8581
8581
  __name: "SearchBoxMoreResults",
8582
8582
  props: {
8583
8583
  labels: {},
@@ -8609,9 +8609,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8609
8609
  };
8610
8610
  }
8611
8611
  });
8612
- const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
8612
+ const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
8613
8613
  const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
8614
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8614
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8615
8615
  __name: "SearchBoxHistoryItem",
8616
8616
  props: {
8617
8617
  item: {},
@@ -8627,7 +8627,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8627
8627
  emit2("click", { query: props.item });
8628
8628
  };
8629
8629
  return (_ctx, _cache) => {
8630
- return openBlock(), createElementBlock("div", _hoisted_1$1c, [
8630
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8631
8631
  createBaseVNode("div", _hoisted_2$O, [
8632
8632
  createBaseVNode("div", {
8633
8633
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
@@ -8642,11 +8642,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8642
8642
  };
8643
8643
  }
8644
8644
  });
8645
- const _hoisted_1$1b = {
8645
+ const _hoisted_1$1c = {
8646
8646
  key: 0,
8647
8647
  class: "lupa-search-box-history-panel"
8648
8648
  };
8649
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8649
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8650
8650
  __name: "SearchBoxHistoryPanel",
8651
8651
  props: {
8652
8652
  options: {}
@@ -8687,9 +8687,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8687
8687
  }
8688
8688
  };
8689
8689
  return (_ctx, _cache) => {
8690
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
8690
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
8691
8691
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8692
- return openBlock(), createBlock(_sfc_main$1j, {
8692
+ return openBlock(), createBlock(_sfc_main$1k, {
8693
8693
  key: item,
8694
8694
  item,
8695
8695
  highlighted: index === highlightIndex.value,
@@ -8705,19 +8705,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8705
8705
  };
8706
8706
  }
8707
8707
  });
8708
- const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
8709
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8708
+ const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
8709
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8710
8710
  __name: "SearchBoxNoResults",
8711
8711
  props: {
8712
8712
  labels: {}
8713
8713
  },
8714
8714
  setup(__props) {
8715
8715
  return (_ctx, _cache) => {
8716
- return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
8716
+ return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
8717
8717
  };
8718
8718
  }
8719
8719
  });
8720
- const _hoisted_1$19 = ["innerHTML"];
8720
+ const _hoisted_1$1a = ["innerHTML"];
8721
8721
  const _hoisted_2$N = {
8722
8722
  key: 1,
8723
8723
  "data-cy": "lupa-suggestion-value",
@@ -8736,7 +8736,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8736
8736
  class: "lupa-suggestion-facet-value",
8737
8737
  "data-cy": "lupa-suggestion-facet-value"
8738
8738
  };
8739
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8739
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8740
8740
  __name: "SearchBoxSuggestion",
8741
8741
  props: {
8742
8742
  suggestion: {},
@@ -8772,7 +8772,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8772
8772
  class: "lupa-suggestion-value",
8773
8773
  "data-cy": "lupa-suggestion-value",
8774
8774
  innerHTML: _ctx.suggestion.displayHighlight
8775
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8775
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8776
8776
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8777
8777
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8778
8778
  createBaseVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -8781,11 +8781,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8781
8781
  };
8782
8782
  }
8783
8783
  });
8784
- const _hoisted_1$18 = {
8784
+ const _hoisted_1$19 = {
8785
8785
  id: "lupa-search-box-suggestions",
8786
8786
  "data-cy": "lupa-search-box-suggestions"
8787
8787
  };
8788
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8788
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8789
8789
  __name: "SearchBoxSuggestions",
8790
8790
  props: {
8791
8791
  items: {},
@@ -8845,9 +8845,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8845
8845
  });
8846
8846
  });
8847
8847
  return (_ctx, _cache) => {
8848
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
8848
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [
8849
8849
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8850
- return openBlock(), createBlock(_sfc_main$1g, {
8850
+ return openBlock(), createBlock(_sfc_main$1h, {
8851
8851
  key: getSuggestionKey(item),
8852
8852
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8853
8853
  suggestion: item,
@@ -8875,7 +8875,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8875
8875
  }, timeout);
8876
8876
  };
8877
8877
  };
8878
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8878
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8879
8879
  __name: "SearchBoxSuggestionsWrapper",
8880
8880
  props: {
8881
8881
  panel: {},
@@ -8916,7 +8916,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8916
8916
  };
8917
8917
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8918
8918
  return (_ctx, _cache) => {
8919
- return openBlock(), createBlock(_sfc_main$1f, {
8919
+ return openBlock(), createBlock(_sfc_main$1g, {
8920
8920
  items: searchResult.value,
8921
8921
  highlight: _ctx.panel.highlight,
8922
8922
  queryKey: _ctx.panel.queryKey,
@@ -9019,8 +9019,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9019
9019
  targetImage.src = placeholder;
9020
9020
  }
9021
9021
  };
9022
- const _hoisted_1$17 = ["src"];
9023
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9022
+ const _hoisted_1$18 = ["src"];
9023
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9024
9024
  __name: "ProductImage",
9025
9025
  props: {
9026
9026
  item: {},
@@ -9138,7 +9138,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9138
9138
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
9139
9139
  onError: replaceWithPlaceholder,
9140
9140
  key: finalUrl.value
9141
- }), null, 16, _hoisted_1$17))
9141
+ }), null, 16, _hoisted_1$18))
9142
9142
  ]),
9143
9143
  _: 1
9144
9144
  })
@@ -9146,7 +9146,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9146
9146
  };
9147
9147
  }
9148
9148
  });
9149
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9149
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9150
9150
  __name: "SearchBoxProductImage",
9151
9151
  props: {
9152
9152
  item: {},
@@ -9154,7 +9154,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9154
9154
  },
9155
9155
  setup(__props) {
9156
9156
  return (_ctx, _cache) => {
9157
- return openBlock(), createBlock(_sfc_main$1d, {
9157
+ return openBlock(), createBlock(_sfc_main$1e, {
9158
9158
  item: _ctx.item,
9159
9159
  options: _ctx.options,
9160
9160
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -9163,12 +9163,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9163
9163
  };
9164
9164
  }
9165
9165
  });
9166
- const _hoisted_1$16 = ["innerHTML"];
9166
+ const _hoisted_1$17 = ["innerHTML"];
9167
9167
  const _hoisted_2$M = {
9168
9168
  key: 1,
9169
9169
  class: "lupa-search-box-product-title"
9170
9170
  };
9171
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9171
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9172
9172
  __name: "SearchBoxProductTitle",
9173
9173
  props: {
9174
9174
  item: {},
@@ -9188,18 +9188,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9188
9188
  key: 0,
9189
9189
  class: "lupa-search-box-product-title",
9190
9190
  innerHTML: title.value
9191
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
9191
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
9192
9192
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
9193
9193
  ]));
9194
9194
  };
9195
9195
  }
9196
9196
  });
9197
- const _hoisted_1$15 = ["innerHTML"];
9197
+ const _hoisted_1$16 = ["innerHTML"];
9198
9198
  const _hoisted_2$L = {
9199
9199
  key: 1,
9200
9200
  class: "lupa-search-box-product-description"
9201
9201
  };
9202
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9202
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9203
9203
  __name: "SearchBoxProductDescription",
9204
9204
  props: {
9205
9205
  item: {},
@@ -9219,12 +9219,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9219
9219
  key: 0,
9220
9220
  class: "lupa-search-box-product-description",
9221
9221
  innerHTML: description.value
9222
- }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
9222
+ }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
9223
9223
  };
9224
9224
  }
9225
9225
  });
9226
- const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
9227
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9226
+ const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
9227
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9228
9228
  __name: "SearchBoxProductPrice",
9229
9229
  props: {
9230
9230
  item: {},
@@ -9242,14 +9242,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9242
9242
  );
9243
9243
  });
9244
9244
  return (_ctx, _cache) => {
9245
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
9245
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
9246
9246
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
9247
9247
  ]);
9248
9248
  };
9249
9249
  }
9250
9250
  });
9251
- const _hoisted_1$13 = { class: "lupa-search-box-product-regular-price" };
9252
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9251
+ const _hoisted_1$14 = { class: "lupa-search-box-product-regular-price" };
9252
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9253
9253
  __name: "SearchBoxProductRegularPrice",
9254
9254
  props: {
9255
9255
  item: {},
@@ -9267,16 +9267,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9267
9267
  );
9268
9268
  });
9269
9269
  return (_ctx, _cache) => {
9270
- return openBlock(), createElementBlock("div", _hoisted_1$13, toDisplayString(price.value), 1);
9270
+ return openBlock(), createElementBlock("div", _hoisted_1$14, toDisplayString(price.value), 1);
9271
9271
  };
9272
9272
  }
9273
9273
  });
9274
- const _hoisted_1$12 = ["innerHTML"];
9274
+ const _hoisted_1$13 = ["innerHTML"];
9275
9275
  const _hoisted_2$K = { key: 0 };
9276
9276
  const _hoisted_3$y = { key: 1 };
9277
9277
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
9278
9278
  const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
9279
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9279
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9280
9280
  __name: "SearchBoxProductCustom",
9281
9281
  props: {
9282
9282
  item: {},
@@ -9302,7 +9302,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9302
9302
  key: 0,
9303
9303
  class: [className.value, "lupa-search-box-product-custom"],
9304
9304
  innerHTML: text.value
9305
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12)) : (openBlock(), createElementBlock("div", mergeProps({
9305
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (openBlock(), createElementBlock("div", mergeProps({
9306
9306
  key: 1,
9307
9307
  class: [className.value, "lupa-search-box-product-custom"]
9308
9308
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
@@ -9314,8 +9314,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9314
9314
  };
9315
9315
  }
9316
9316
  });
9317
- const _hoisted_1$11 = ["innerHTML"];
9318
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9317
+ const _hoisted_1$12 = ["innerHTML"];
9318
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9319
9319
  __name: "SearchBoxProductCustomHtml",
9320
9320
  props: {
9321
9321
  item: {},
@@ -9335,7 +9335,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9335
9335
  return openBlock(), createElementBlock("div", mergeProps({
9336
9336
  class: className.value,
9337
9337
  innerHTML: text.value
9338
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11);
9338
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
9339
9339
  };
9340
9340
  }
9341
9341
  });
@@ -9533,10 +9533,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9533
9533
  clearSearchResult
9534
9534
  };
9535
9535
  });
9536
- const _hoisted_1$10 = { class: "lupa-search-box-add-to-cart-wrapper" };
9536
+ const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
9537
9537
  const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
9538
9538
  const _hoisted_3$x = ["onClick", "disabled"];
9539
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9539
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9540
9540
  __name: "SearchBoxProductAddToCart",
9541
9541
  props: {
9542
9542
  item: {},
@@ -9563,7 +9563,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9563
9563
  loading.value = false;
9564
9564
  });
9565
9565
  return (_ctx, _cache) => {
9566
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
9566
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
9567
9567
  createBaseVNode("div", _hoisted_2$J, [
9568
9568
  createBaseVNode("button", {
9569
9569
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -9577,23 +9577,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9577
9577
  };
9578
9578
  }
9579
9579
  });
9580
- const _hoisted_1$$ = {
9580
+ const _hoisted_1$10 = {
9581
9581
  key: 1,
9582
9582
  class: "lupa-search-box-element-badge-wrapper"
9583
9583
  };
9584
9584
  const __default__$4 = {
9585
9585
  components: {
9586
- SearchBoxProductImage: _sfc_main$1c,
9587
- SearchBoxProductTitle: _sfc_main$1b,
9588
- SearchBoxProductDescription: _sfc_main$1a,
9589
- SearchBoxProductPrice: _sfc_main$19,
9590
- SearchBoxProductRegularPrice: _sfc_main$18,
9591
- SearchBoxProductCustom: _sfc_main$17,
9592
- SearchBoxProductCustomHtml: _sfc_main$16,
9593
- SearchBoxProductAddToCart: _sfc_main$15
9586
+ SearchBoxProductImage: _sfc_main$1d,
9587
+ SearchBoxProductTitle: _sfc_main$1c,
9588
+ SearchBoxProductDescription: _sfc_main$1b,
9589
+ SearchBoxProductPrice: _sfc_main$1a,
9590
+ SearchBoxProductRegularPrice: _sfc_main$19,
9591
+ SearchBoxProductCustom: _sfc_main$18,
9592
+ SearchBoxProductCustomHtml: _sfc_main$17,
9593
+ SearchBoxProductAddToCart: _sfc_main$16
9594
9594
  }
9595
9595
  };
9596
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9596
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9597
9597
  __name: "SearchBoxProductElement",
9598
9598
  props: {
9599
9599
  item: {},
@@ -9651,7 +9651,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9651
9651
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
9652
9652
  inStock: _ctx.isInStock
9653
9653
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
9654
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$$, [
9654
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
9655
9655
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
9656
9656
  key: 0,
9657
9657
  item: enhancedItem.value,
@@ -9665,14 +9665,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9665
9665
  };
9666
9666
  }
9667
9667
  }));
9668
- const _hoisted_1$_ = { class: "lupa-badge-title" };
9668
+ const _hoisted_1$$ = { class: "lupa-badge-title" };
9669
9669
  const _hoisted_2$I = ["src"];
9670
9670
  const _hoisted_3$w = { key: 1 };
9671
9671
  const _hoisted_4$p = {
9672
9672
  key: 0,
9673
9673
  class: "lupa-badge-full-text"
9674
9674
  };
9675
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9675
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9676
9676
  __name: "SearchResultGeneratedBadge",
9677
9677
  props: {
9678
9678
  options: {},
@@ -9705,7 +9705,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9705
9705
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
9706
9706
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
9707
9707
  }, [
9708
- createBaseVNode("span", _hoisted_1$_, [
9708
+ createBaseVNode("span", _hoisted_1$$, [
9709
9709
  image.value ? (openBlock(), createElementBlock("img", {
9710
9710
  key: 0,
9711
9711
  src: image.value
@@ -9717,8 +9717,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9717
9717
  };
9718
9718
  }
9719
9719
  });
9720
- const _hoisted_1$Z = { class: "lupa-generated-badges" };
9721
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9720
+ const _hoisted_1$_ = { class: "lupa-generated-badges" };
9721
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9722
9722
  __name: "SearchResultGeneratedBadges",
9723
9723
  props: {
9724
9724
  options: {}
@@ -9744,9 +9744,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9744
9744
  })).filter((b) => Boolean(b.id));
9745
9745
  });
9746
9746
  return (_ctx, _cache) => {
9747
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9747
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
9748
9748
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
9749
- return openBlock(), createBlock(_sfc_main$13, {
9749
+ return openBlock(), createBlock(_sfc_main$14, {
9750
9750
  key: badge.id,
9751
9751
  badge,
9752
9752
  options: _ctx.options
@@ -9756,8 +9756,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9756
9756
  };
9757
9757
  }
9758
9758
  });
9759
- const _hoisted_1$Y = ["innerHTML"];
9760
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9759
+ const _hoisted_1$Z = ["innerHTML"];
9760
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9761
9761
  __name: "CustomBadge",
9762
9762
  props: {
9763
9763
  badge: {}
@@ -9776,12 +9776,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9776
9776
  return openBlock(), createElementBlock("div", {
9777
9777
  class: normalizeClass(className.value),
9778
9778
  innerHTML: text.value
9779
- }, null, 10, _hoisted_1$Y);
9779
+ }, null, 10, _hoisted_1$Z);
9780
9780
  };
9781
9781
  }
9782
9782
  });
9783
- const _hoisted_1$X = { class: "lupa-text-badges" };
9784
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9783
+ const _hoisted_1$Y = { class: "lupa-text-badges" };
9784
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9785
9785
  __name: "TextBadge",
9786
9786
  props: {
9787
9787
  badge: {}
@@ -9796,7 +9796,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9796
9796
  return badges.value.slice(0, props.badge.maxItems);
9797
9797
  });
9798
9798
  return (_ctx, _cache) => {
9799
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
9799
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
9800
9800
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9801
9801
  return openBlock(), createElementBlock("div", {
9802
9802
  class: "lupa-badge lupa-text-badge",
@@ -9807,9 +9807,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9807
9807
  };
9808
9808
  }
9809
9809
  });
9810
- const _hoisted_1$W = { class: "lupa-image-badges" };
9810
+ const _hoisted_1$X = { class: "lupa-image-badges" };
9811
9811
  const _hoisted_2$H = ["src"];
9812
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9812
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9813
9813
  __name: "ImageBadge",
9814
9814
  props: {
9815
9815
  badge: {}
@@ -9829,7 +9829,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9829
9829
  return `${props.badge.rootImageUrl}${src}`;
9830
9830
  };
9831
9831
  return (_ctx, _cache) => {
9832
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
9832
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9833
9833
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9834
9834
  return openBlock(), createElementBlock("div", {
9835
9835
  class: "lupa-badge lupa-image-badge",
@@ -9844,15 +9844,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9844
9844
  };
9845
9845
  }
9846
9846
  });
9847
- const _hoisted_1$V = { id: "lupa-search-results-badges" };
9847
+ const _hoisted_1$W = { id: "lupa-search-results-badges" };
9848
9848
  const __default__$3 = {
9849
9849
  components: {
9850
- CustomBadge: _sfc_main$11,
9851
- TextBadge: _sfc_main$10,
9852
- ImageBadge: _sfc_main$$
9850
+ CustomBadge: _sfc_main$12,
9851
+ TextBadge: _sfc_main$11,
9852
+ ImageBadge: _sfc_main$10
9853
9853
  }
9854
9854
  };
9855
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9855
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9856
9856
  __name: "SearchResultsBadgeWrapper",
9857
9857
  props: {
9858
9858
  position: {},
@@ -9908,7 +9908,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9908
9908
  }
9909
9909
  };
9910
9910
  return (_ctx, _cache) => {
9911
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
9911
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9912
9912
  createBaseVNode("div", {
9913
9913
  id: "lupa-badges",
9914
9914
  class: normalizeClass(anchorPosition.value)
@@ -9919,7 +9919,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9919
9919
  badge
9920
9920
  }, null, 8, ["badge"]);
9921
9921
  }), 128)),
9922
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$12, {
9922
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$13, {
9923
9923
  key: 0,
9924
9924
  options: _ctx.options
9925
9925
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -9928,14 +9928,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9928
9928
  };
9929
9929
  }
9930
9930
  }));
9931
- const _hoisted_1$U = ["href"];
9931
+ const _hoisted_1$V = ["href"];
9932
9932
  const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
9933
9933
  const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
9934
9934
  const _hoisted_4$o = {
9935
9935
  key: 0,
9936
9936
  class: "lupa-search-box-product-add-to-cart-section"
9937
9937
  };
9938
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9938
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9939
9939
  __name: "SearchBoxProduct",
9940
9940
  props: {
9941
9941
  item: {},
@@ -9996,7 +9996,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9996
9996
  }), [
9997
9997
  createBaseVNode("div", _hoisted_2$G, [
9998
9998
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
9999
- return openBlock(), createBlock(_sfc_main$14, {
9999
+ return openBlock(), createBlock(_sfc_main$15, {
10000
10000
  class: "lupa-search-box-product-element",
10001
10001
  item: _ctx.item,
10002
10002
  element,
@@ -10009,7 +10009,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10009
10009
  createBaseVNode("div", _hoisted_3$v, [
10010
10010
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
10011
10011
  var _a;
10012
- return openBlock(), createBlock(_sfc_main$14, {
10012
+ return openBlock(), createBlock(_sfc_main$15, {
10013
10013
  key: element.key,
10014
10014
  class: "lupa-search-box-product-element",
10015
10015
  item: _ctx.item,
@@ -10020,7 +10020,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10020
10020
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
10021
10021
  name: "badges",
10022
10022
  fn: withCtx(() => [
10023
- createVNode(_sfc_main$_, {
10023
+ createVNode(_sfc_main$$, {
10024
10024
  options: badgeOptions.value,
10025
10025
  position: "card"
10026
10026
  }, null, 8, ["options"])
@@ -10031,7 +10031,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10031
10031
  }), 128))
10032
10032
  ]),
10033
10033
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
10034
- createVNode(_sfc_main$14, {
10034
+ createVNode(_sfc_main$15, {
10035
10035
  class: "lupa-search-box-product-element",
10036
10036
  item: _ctx.item,
10037
10037
  element: addToCartElement.value,
@@ -10040,7 +10040,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10040
10040
  isInStock: isInStock.value
10041
10041
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
10042
10042
  ])) : createCommentVNode("", true)
10043
- ], 16, _hoisted_1$U);
10043
+ ], 16, _hoisted_1$V);
10044
10044
  };
10045
10045
  }
10046
10046
  });
@@ -10101,8 +10101,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10101
10101
  };
10102
10102
  return { trackSearch, trackResults, trackEvent };
10103
10103
  });
10104
- const _hoisted_1$T = { id: "lupa-search-box-products" };
10105
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10104
+ const _hoisted_1$U = { id: "lupa-search-box-products" };
10105
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10106
10106
  __name: "SearchBoxProducts",
10107
10107
  props: {
10108
10108
  items: {},
@@ -10163,7 +10163,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10163
10163
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
10164
10164
  };
10165
10165
  return (_ctx, _cache) => {
10166
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
10166
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
10167
10167
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
10168
10168
  return renderSlot(_ctx.$slots, "productCard", {
10169
10169
  key: index,
@@ -10175,7 +10175,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10175
10175
  itemClicked: handleProductClick
10176
10176
  });
10177
10177
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
10178
- return openBlock(), createBlock(_sfc_main$Z, {
10178
+ return openBlock(), createBlock(_sfc_main$_, {
10179
10179
  key: index,
10180
10180
  item,
10181
10181
  panelOptions: _ctx.panelOptions,
@@ -10189,7 +10189,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10189
10189
  };
10190
10190
  }
10191
10191
  });
10192
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
10192
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10193
10193
  __name: "SearchBoxProductsWrapper",
10194
10194
  props: {
10195
10195
  panel: {},
@@ -10241,7 +10241,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10241
10241
  const getItemsDebounced = debounce$1(getItems, props.debounce);
10242
10242
  return (_ctx, _cache) => {
10243
10243
  var _a, _b;
10244
- return openBlock(), createBlock(_sfc_main$Y, {
10244
+ return openBlock(), createBlock(_sfc_main$Z, {
10245
10245
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10246
10246
  panelOptions: _ctx.panel,
10247
10247
  labels: _ctx.labels,
@@ -10259,7 +10259,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10259
10259
  };
10260
10260
  }
10261
10261
  });
10262
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
10262
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10263
10263
  __name: "SearchBoxRelatedSourceWrapper",
10264
10264
  props: {
10265
10265
  panel: {},
@@ -10331,7 +10331,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10331
10331
  });
10332
10332
  return (_ctx, _cache) => {
10333
10333
  var _a, _b;
10334
- return openBlock(), createBlock(_sfc_main$Y, {
10334
+ return openBlock(), createBlock(_sfc_main$Z, {
10335
10335
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10336
10336
  panelOptions: documentPanelOptions.value,
10337
10337
  labels: _ctx.labels,
@@ -10349,7 +10349,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10349
10349
  };
10350
10350
  }
10351
10351
  });
10352
- const _hoisted_1$S = {
10352
+ const _hoisted_1$T = {
10353
10353
  key: 0,
10354
10354
  id: "lupa-search-box-panel"
10355
10355
  };
@@ -10368,12 +10368,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10368
10368
  };
10369
10369
  const __default__$2 = {
10370
10370
  components: {
10371
- SearchBoxSuggestionsWrapper: _sfc_main$1e,
10372
- SearchBoxProductsWrapper: _sfc_main$X,
10373
- SearchBoxRelatedSourceWrapper: _sfc_main$W
10371
+ SearchBoxSuggestionsWrapper: _sfc_main$1f,
10372
+ SearchBoxProductsWrapper: _sfc_main$Y,
10373
+ SearchBoxRelatedSourceWrapper: _sfc_main$X
10374
10374
  }
10375
10375
  };
10376
- const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10376
+ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10377
10377
  __name: "SearchBoxMainPanel",
10378
10378
  props: {
10379
10379
  options: {},
@@ -10519,7 +10519,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10519
10519
  ref_key: "panelContainer",
10520
10520
  ref: panelContainer
10521
10521
  }, [
10522
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
10522
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
10523
10523
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
10524
10524
  key: 0,
10525
10525
  class: "lupa-search-box-close-panel",
@@ -10564,18 +10564,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10564
10564
  ], 10, _hoisted_2$F);
10565
10565
  }), 128))
10566
10566
  ], 4),
10567
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1h, {
10567
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1i, {
10568
10568
  key: 1,
10569
10569
  labels: labels.value
10570
10570
  }, null, 8, ["labels"])) : createCommentVNode("", true),
10571
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1k, {
10571
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1l, {
10572
10572
  key: 2,
10573
10573
  labels: labels.value,
10574
10574
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
10575
10575
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
10576
10576
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
10577
10577
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
10578
- createVNode(_sfc_main$1i, {
10578
+ createVNode(_sfc_main$1j, {
10579
10579
  options: _ctx.options.history,
10580
10580
  history: history.value,
10581
10581
  onGoToResults: handleGoToResults,
@@ -10600,9 +10600,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10600
10600
  const elements = getElements(triggers);
10601
10601
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
10602
10602
  };
10603
- const _hoisted_1$R = { id: "lupa-search-box" };
10603
+ const _hoisted_1$S = { id: "lupa-search-box" };
10604
10604
  const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
10605
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
10605
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10606
10606
  __name: "SearchBox",
10607
10607
  props: {
10608
10608
  options: {},
@@ -10847,9 +10847,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10847
10847
  };
10848
10848
  return (_ctx, _cache) => {
10849
10849
  var _a2;
10850
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
10850
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
10851
10851
  createBaseVNode("div", _hoisted_2$E, [
10852
- createVNode(_sfc_main$1l, {
10852
+ createVNode(_sfc_main$1m, {
10853
10853
  options: inputOptions.value,
10854
10854
  suggestedValue: suggestedValue.value,
10855
10855
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -10860,7 +10860,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10860
10860
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10861
10861
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10862
10862
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10863
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$V, {
10863
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
10864
10864
  key: 0,
10865
10865
  options: panelOptions.value,
10866
10866
  inputValue: inputValue.value,
@@ -10948,7 +10948,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10948
10948
  }
10949
10949
  return searchParams;
10950
10950
  };
10951
- const _hoisted_1$Q = {
10951
+ const _hoisted_1$R = {
10952
10952
  key: 0,
10953
10953
  id: "lupa-search-results-did-you-mean"
10954
10954
  };
@@ -10961,7 +10961,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10961
10961
  "data-cy": "did-you-mean-label"
10962
10962
  };
10963
10963
  const _hoisted_4$m = { key: 1 };
10964
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
10964
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10965
10965
  __name: "SearchResultsDidYouMean",
10966
10966
  props: {
10967
10967
  labels: {}
@@ -10993,7 +10993,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10993
10993
  paramStore.goToResults({ searchText, facet });
10994
10994
  };
10995
10995
  return (_ctx, _cache) => {
10996
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
10996
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
10997
10997
  unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
10998
10998
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
10999
10999
  return openBlock(), createElementBlock("span", { key: index }, [
@@ -11019,12 +11019,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11019
11019
  };
11020
11020
  }
11021
11021
  });
11022
- const _hoisted_1$P = {
11022
+ const _hoisted_1$Q = {
11023
11023
  key: 0,
11024
11024
  class: "lupa-search-results-summary"
11025
11025
  };
11026
11026
  const _hoisted_2$C = ["innerHTML"];
11027
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
11027
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
11028
11028
  __name: "SearchResultsSummary",
11029
11029
  props: {
11030
11030
  label: {},
@@ -11039,7 +11039,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11039
11039
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
11040
11040
  });
11041
11041
  return (_ctx, _cache) => {
11042
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
11042
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
11043
11043
  createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
11044
11044
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
11045
11045
  key: 0,
@@ -11051,7 +11051,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11051
11051
  };
11052
11052
  }
11053
11053
  });
11054
- const _hoisted_1$O = {
11054
+ const _hoisted_1$P = {
11055
11055
  key: 0,
11056
11056
  class: "lupa-result-page-title",
11057
11057
  "data-cy": "lupa-result-page-title"
@@ -11062,7 +11062,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11062
11062
  class: "lupa-results-total-count"
11063
11063
  };
11064
11064
  const _hoisted_4$l = ["innerHTML"];
11065
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
11065
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11066
11066
  __name: "SearchResultsTitle",
11067
11067
  props: {
11068
11068
  options: {},
@@ -11097,12 +11097,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11097
11097
  });
11098
11098
  return (_ctx, _cache) => {
11099
11099
  return openBlock(), createElementBlock("div", null, [
11100
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
11100
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11101
11101
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11102
11102
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11103
11103
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11104
11104
  ])) : createCommentVNode("", true),
11105
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$S, {
11105
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11106
11106
  key: 1,
11107
11107
  label: summaryLabel.value
11108
11108
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -11115,7 +11115,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11115
11115
  };
11116
11116
  }
11117
11117
  });
11118
- const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
11118
+ const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
11119
11119
  const _hoisted_2$A = {
11120
11120
  class: "lupa-current-filter-label",
11121
11121
  "data-cy": "lupa-current-filter-label"
@@ -11124,7 +11124,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11124
11124
  class: "lupa-current-filter-value",
11125
11125
  "data-cy": "lupa-current-filter-value"
11126
11126
  };
11127
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11127
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11128
11128
  __name: "CurrentFilterDisplay",
11129
11129
  props: {
11130
11130
  filter: {}
@@ -11136,7 +11136,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11136
11136
  emit2("remove", { filter: props.filter });
11137
11137
  };
11138
11138
  return (_ctx, _cache) => {
11139
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
11139
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
11140
11140
  createBaseVNode("div", {
11141
11141
  class: "lupa-current-filter-action",
11142
11142
  onClick: handleClick
@@ -11147,7 +11147,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11147
11147
  };
11148
11148
  }
11149
11149
  });
11150
- const _hoisted_1$M = { class: "lupa-filter-title-text" };
11150
+ const _hoisted_1$N = { class: "lupa-filter-title-text" };
11151
11151
  const _hoisted_2$z = {
11152
11152
  key: 0,
11153
11153
  class: "lupa-filter-count"
@@ -11157,7 +11157,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11157
11157
  class: "filter-values"
11158
11158
  };
11159
11159
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
11160
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11160
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11161
11161
  __name: "CurrentFilters",
11162
11162
  props: {
11163
11163
  options: {},
@@ -11218,7 +11218,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11218
11218
  class: "lupa-current-filter-title",
11219
11219
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
11220
11220
  }, [
11221
- createBaseVNode("div", _hoisted_1$M, [
11221
+ createBaseVNode("div", _hoisted_1$N, [
11222
11222
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
11223
11223
  _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
11224
11224
  ]),
@@ -11230,7 +11230,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11230
11230
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
11231
11231
  createBaseVNode("div", _hoisted_4$k, [
11232
11232
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
11233
- return openBlock(), createBlock(_sfc_main$Q, {
11233
+ return openBlock(), createBlock(_sfc_main$R, {
11234
11234
  key: filter.key + "_" + filter.value,
11235
11235
  filter,
11236
11236
  onRemove: handleRemove
@@ -11247,8 +11247,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11247
11247
  };
11248
11248
  }
11249
11249
  });
11250
- const _hoisted_1$L = ["href"];
11251
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11250
+ const _hoisted_1$M = ["href"];
11251
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11252
11252
  __name: "CategoryFilterItem",
11253
11253
  props: {
11254
11254
  options: {},
@@ -11285,12 +11285,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11285
11285
  "data-cy": "lupa-child-category-item",
11286
11286
  href: urlLink.value,
11287
11287
  onClick: handleNavigation
11288
- }, toDisplayString(title.value), 9, _hoisted_1$L)
11288
+ }, toDisplayString(title.value), 9, _hoisted_1$M)
11289
11289
  ], 2);
11290
11290
  };
11291
11291
  }
11292
11292
  });
11293
- const _hoisted_1$K = {
11293
+ const _hoisted_1$L = {
11294
11294
  class: "lupa-category-filter",
11295
11295
  "data-cy": "lupa-category-filter"
11296
11296
  };
@@ -11298,7 +11298,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11298
11298
  const _hoisted_3$p = ["href"];
11299
11299
  const _hoisted_4$j = ["href"];
11300
11300
  const _hoisted_5$d = { class: "lupa-child-category-list" };
11301
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11301
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11302
11302
  __name: "CategoryFilter",
11303
11303
  props: {
11304
11304
  options: {}
@@ -11384,7 +11384,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11384
11384
  };
11385
11385
  __expose({ fetch: fetch2 });
11386
11386
  return (_ctx, _cache) => {
11387
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
11387
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
11388
11388
  createBaseVNode("div", _hoisted_2$y, [
11389
11389
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
11390
11390
  key: 0,
@@ -11405,7 +11405,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11405
11405
  ], 2),
11406
11406
  createBaseVNode("div", _hoisted_5$d, [
11407
11407
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
11408
- return openBlock(), createBlock(_sfc_main$O, {
11408
+ return openBlock(), createBlock(_sfc_main$P, {
11409
11409
  key: getCategoryKey(child),
11410
11410
  item: child,
11411
11411
  options: _ctx.options
@@ -11416,7 +11416,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11416
11416
  };
11417
11417
  }
11418
11418
  });
11419
- const _hoisted_1$J = {
11419
+ const _hoisted_1$K = {
11420
11420
  class: "lupa-search-result-facet-term-values",
11421
11421
  "data-cy": "lupa-search-result-facet-term-values"
11422
11422
  };
@@ -11432,7 +11432,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11432
11432
  };
11433
11433
  const _hoisted_9$1 = { key: 0 };
11434
11434
  const _hoisted_10$1 = { key: 1 };
11435
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
11435
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11436
11436
  __name: "TermFacet",
11437
11437
  props: {
11438
11438
  options: {},
@@ -11501,7 +11501,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11501
11501
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
11502
11502
  };
11503
11503
  return (_ctx, _cache) => {
11504
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
11504
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
11505
11505
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
11506
11506
  key: 0,
11507
11507
  class: "lupa-term-filter",
@@ -12519,7 +12519,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12519
12519
  m.render = function(e, t, r, i, n, o) {
12520
12520
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
12521
12521
  }, m.__file = "src/Slider.vue";
12522
- const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
12522
+ const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
12523
12523
  const _hoisted_2$w = {
12524
12524
  key: 0,
12525
12525
  class: "lupa-stats-facet-summary"
@@ -12547,7 +12547,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12547
12547
  key: 2,
12548
12548
  class: "lupa-stats-slider-wrapper"
12549
12549
  };
12550
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
12550
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12551
12551
  __name: "StatsFacet",
12552
12552
  props: {
12553
12553
  options: {},
@@ -12716,7 +12716,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12716
12716
  innerSliderRange.value = value;
12717
12717
  };
12718
12718
  return (_ctx, _cache) => {
12719
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
12719
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
12720
12720
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
12721
12721
  createBaseVNode("div", null, [
12722
12722
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
@@ -12783,7 +12783,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12783
12783
  };
12784
12784
  }
12785
12785
  });
12786
- const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
12786
+ const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
12787
12787
  const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
12788
12788
  const _hoisted_3$m = { class: "lupa-term-label" };
12789
12789
  const _hoisted_4$g = {
@@ -12794,7 +12794,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12794
12794
  key: 0,
12795
12795
  class: "lupa-facet-level"
12796
12796
  };
12797
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
12797
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12798
12798
  __name: "HierarchyFacetLevel",
12799
12799
  props: {
12800
12800
  options: {},
@@ -12840,7 +12840,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12840
12840
  "data-cy": "lupa-facet-term",
12841
12841
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
12842
12842
  }, [
12843
- createBaseVNode("div", _hoisted_1$H, [
12843
+ createBaseVNode("div", _hoisted_1$I, [
12844
12844
  createBaseVNode("span", {
12845
12845
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
12846
12846
  }, null, 2)
@@ -12866,13 +12866,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12866
12866
  };
12867
12867
  }
12868
12868
  });
12869
- const _hoisted_1$G = {
12869
+ const _hoisted_1$H = {
12870
12870
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
12871
12871
  "data-cy": "lupa-search-result-facet-term-values"
12872
12872
  };
12873
12873
  const _hoisted_2$u = { key: 0 };
12874
12874
  const _hoisted_3$l = ["placeholder"];
12875
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
12875
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12876
12876
  __name: "HierarchyFacet",
12877
12877
  props: {
12878
12878
  options: {},
@@ -12922,7 +12922,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12922
12922
  showAll.value = true;
12923
12923
  };
12924
12924
  return (_ctx, _cache) => {
12925
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
12925
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
12926
12926
  isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
12927
12927
  withDirectives(createBaseVNode("input", {
12928
12928
  class: "lupa-term-filter",
@@ -12934,7 +12934,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12934
12934
  ])
12935
12935
  ])) : createCommentVNode("", true),
12936
12936
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
12937
- return openBlock(), createBlock(_sfc_main$K, {
12937
+ return openBlock(), createBlock(_sfc_main$L, {
12938
12938
  key: item.title,
12939
12939
  options: _ctx.options,
12940
12940
  item,
@@ -12954,7 +12954,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12954
12954
  };
12955
12955
  }
12956
12956
  });
12957
- const _hoisted_1$F = { class: "lupa-facet-label-text" };
12957
+ const _hoisted_1$G = { class: "lupa-facet-label-text" };
12958
12958
  const _hoisted_2$t = {
12959
12959
  key: 0,
12960
12960
  class: "lupa-facet-content",
@@ -12962,12 +12962,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12962
12962
  };
12963
12963
  const __default__$1 = {
12964
12964
  components: {
12965
- TermFacet: _sfc_main$M,
12966
- StatsFacet: _sfc_main$L,
12967
- HierarchyFacet: _sfc_main$J
12965
+ TermFacet: _sfc_main$N,
12966
+ StatsFacet: _sfc_main$M,
12967
+ HierarchyFacet: _sfc_main$K
12968
12968
  }
12969
12969
  };
12970
- const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12970
+ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12971
12971
  __name: "FacetDisplay",
12972
12972
  props: {
12973
12973
  options: {},
@@ -13079,7 +13079,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13079
13079
  "data-cy": "lupa-search-result-facet-label",
13080
13080
  onClick: toggleFacet
13081
13081
  }, [
13082
- createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
13082
+ createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
13083
13083
  createBaseVNode("div", {
13084
13084
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
13085
13085
  }, null, 2)
@@ -13102,12 +13102,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13102
13102
  };
13103
13103
  }
13104
13104
  }));
13105
- const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
13105
+ const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
13106
13106
  const _hoisted_2$s = {
13107
13107
  key: 0,
13108
13108
  class: "lupa-facets-title"
13109
13109
  };
13110
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
13110
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
13111
13111
  __name: "FacetList",
13112
13112
  props: {
13113
13113
  options: {},
@@ -13141,14 +13141,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13141
13141
  };
13142
13142
  return (_ctx, _cache) => {
13143
13143
  var _a;
13144
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
13144
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
13145
13145
  _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
13146
13146
  createBaseVNode("div", {
13147
13147
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
13148
13148
  }, [
13149
13149
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
13150
13150
  var _a2;
13151
- return openBlock(), createBlock(_sfc_main$I, {
13151
+ return openBlock(), createBlock(_sfc_main$J, {
13152
13152
  key: facet.key,
13153
13153
  facet,
13154
13154
  currentFilters: currentFiltersValue.value,
@@ -13163,6 +13163,31 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13163
13163
  };
13164
13164
  }
13165
13165
  });
13166
+ const _hoisted_1$E = ["onClick"];
13167
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
13168
+ __name: "FacetsButton",
13169
+ props: {
13170
+ options: {}
13171
+ },
13172
+ emits: ["filter"],
13173
+ setup(__props, { emit: emit2 }) {
13174
+ const props = __props;
13175
+ const label = computed(() => {
13176
+ var _a, _b;
13177
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.facetFilterButton) != null ? _b : "";
13178
+ });
13179
+ const handleClick = () => {
13180
+ emit2("filter");
13181
+ };
13182
+ return (_ctx, _cache) => {
13183
+ return label.value ? (openBlock(), createElementBlock("button", {
13184
+ key: 0,
13185
+ class: "lupa-facets-button-filter",
13186
+ onClick: withModifiers(handleClick, ["stop"])
13187
+ }, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
13188
+ };
13189
+ }
13190
+ });
13166
13191
  const _hoisted_1$D = { class: "lupa-search-result-facets" };
13167
13192
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
13168
13193
  __name: "Facets",
@@ -13171,7 +13196,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13171
13196
  facetStyle: {},
13172
13197
  clearable: { type: Boolean }
13173
13198
  },
13174
- setup(__props) {
13199
+ emits: ["filter"],
13200
+ setup(__props, { emit: emit2 }) {
13175
13201
  const props = __props;
13176
13202
  const paramStore = useParamsStore();
13177
13203
  const searchResultStore = useSearchResultStore();
@@ -13201,6 +13227,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13201
13227
  timeout: (_f = (_e = searchResultOptions.value.scrollToResults) == null ? void 0 : _e.timeout) != null ? _f : 500
13202
13228
  };
13203
13229
  });
13230
+ const showFilterButton = computed(() => {
13231
+ return props.options.filterBehavior === "withFilterButton";
13232
+ });
13204
13233
  const handleFacetSelect = (facetAction) => {
13205
13234
  switch (facetAction.type) {
13206
13235
  case "terms":
@@ -13239,9 +13268,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13239
13268
  const param = getFacetKey(facet.key, facet.type);
13240
13269
  paramStore.removeParameters({ paramsToRemove: [param] });
13241
13270
  };
13271
+ const filter = () => {
13272
+ emit2("filter");
13273
+ };
13242
13274
  return (_ctx, _cache) => {
13243
13275
  return openBlock(), createElementBlock("div", _hoisted_1$D, [
13244
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$H, {
13276
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$I, {
13245
13277
  key: 0,
13246
13278
  options: _ctx.options,
13247
13279
  facets: regularFacets.value,
@@ -13250,7 +13282,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13250
13282
  clearable: _ctx.clearable,
13251
13283
  onSelect: handleFacetSelect,
13252
13284
  onClear: clear2
13253
- }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true)
13285
+ }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
13286
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$H, {
13287
+ key: 1,
13288
+ options: _ctx.options,
13289
+ onFilter: filter
13290
+ }, null, 8, ["options"])) : createCommentVNode("", true)
13254
13291
  ]);
13255
13292
  };
13256
13293
  }
@@ -13265,7 +13302,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13265
13302
  options: {},
13266
13303
  expandable: { type: Boolean }
13267
13304
  },
13268
- setup(__props, { expose: __expose }) {
13305
+ emits: ["filter"],
13306
+ setup(__props, { expose: __expose, emit: emit2 }) {
13269
13307
  const props = __props;
13270
13308
  const categoryFilters = ref(null);
13271
13309
  const desktopFiltersVisible = computed(() => {
@@ -13279,6 +13317,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13279
13317
  const showCurrentFilters = computed(() => {
13280
13318
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
13281
13319
  });
13320
+ const filter = () => {
13321
+ emit2("filter");
13322
+ };
13282
13323
  const fetch2 = () => {
13283
13324
  var _a;
13284
13325
  if (categoryFilters.value) {
@@ -13289,12 +13330,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13289
13330
  return (_ctx, _cache) => {
13290
13331
  var _a;
13291
13332
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
13292
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
13333
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
13293
13334
  key: 0,
13294
13335
  options: _ctx.options.currentFilters,
13295
13336
  expandable: (_a = _ctx.expandable) != null ? _a : false
13296
13337
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
13297
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$N, {
13338
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$O, {
13298
13339
  key: 1,
13299
13340
  options: _ctx.options.categories,
13300
13341
  ref_key: "categoryFilters",
@@ -13302,7 +13343,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13302
13343
  }, null, 8, ["options"])) : createCommentVNode("", true),
13303
13344
  _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
13304
13345
  key: 2,
13305
- options: _ctx.options.facets
13346
+ options: _ctx.options.facets,
13347
+ onFilter: filter
13306
13348
  }, null, 8, ["options"])) : createCommentVNode("", true)
13307
13349
  ]);
13308
13350
  };
@@ -13326,7 +13368,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13326
13368
  props: {
13327
13369
  options: {}
13328
13370
  },
13329
- setup(__props) {
13371
+ emits: ["filter"],
13372
+ setup(__props, { emit: emit2 }) {
13330
13373
  const props = __props;
13331
13374
  const searchResultStore = useSearchResultStore();
13332
13375
  const { currentFilterCount } = storeToRefs(searchResultStore);
@@ -13346,6 +13389,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13346
13389
  const handleMobileToggle = () => {
13347
13390
  searchResultStore.setSidebarState({ visible: false });
13348
13391
  };
13392
+ const filter = () => {
13393
+ emit2("filter");
13394
+ handleMobileToggle();
13395
+ };
13349
13396
  return (_ctx, _cache) => {
13350
13397
  return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
13351
13398
  createBaseVNode("div", {
@@ -13366,7 +13413,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13366
13413
  createBaseVNode("div", _hoisted_7$4, [
13367
13414
  createVNode(_sfc_main$F, {
13368
13415
  options: _ctx.options,
13369
- expandable: isActiveFiltersExpanded.value
13416
+ expandable: isActiveFiltersExpanded.value,
13417
+ onFilter: filter
13370
13418
  }, null, 8, ["options", "expandable"])
13371
13419
  ])
13372
13420
  ])
@@ -13437,7 +13485,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13437
13485
  props: {
13438
13486
  options: {}
13439
13487
  },
13440
- setup(__props) {
13488
+ emits: ["filter"],
13489
+ setup(__props, { emit: emit2 }) {
13490
+ const filter = () => {
13491
+ emit2("filter");
13492
+ };
13441
13493
  return (_ctx, _cache) => {
13442
13494
  var _a;
13443
13495
  return openBlock(), createElementBlock("div", _hoisted_1$z, [
@@ -13445,7 +13497,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13445
13497
  key: 0,
13446
13498
  options: _ctx.options.facets,
13447
13499
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
13448
- clearable: true
13500
+ clearable: true,
13501
+ onFilter: filter
13449
13502
  }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
13450
13503
  ]);
13451
13504
  };
@@ -13882,7 +13935,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13882
13935
  }, [
13883
13936
  createBaseVNode("div", _hoisted_1$t, [
13884
13937
  showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13885
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$S, {
13938
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13886
13939
  key: 2,
13887
13940
  label: searchSummaryLabel.value,
13888
13941
  clearable: unref(hasAnyFilter) && showFilterClear.value,
@@ -13923,7 +13976,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13923
13976
  },
13924
13977
  setup(__props) {
13925
13978
  return (_ctx, _cache) => {
13926
- return openBlock(), createBlock(_sfc_main$1d, {
13979
+ return openBlock(), createBlock(_sfc_main$1e, {
13927
13980
  item: _ctx.item,
13928
13981
  options: _ctx.options,
13929
13982
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -14561,7 +14614,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14561
14614
  "data-cy": "lupa-search-result-product-card",
14562
14615
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
14563
14616
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
14564
- createVNode(_sfc_main$_, { options: badgesOptions.value }, null, 8, ["options"]),
14617
+ createVNode(_sfc_main$$, { options: badgesOptions.value }, null, 8, ["options"]),
14565
14618
  createBaseVNode("div", {
14566
14619
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
14567
14620
  }, [
@@ -14581,7 +14634,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14581
14634
  link: link.value
14582
14635
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
14583
14636
  }), 128)),
14584
- createVNode(_sfc_main$_, {
14637
+ createVNode(_sfc_main$$, {
14585
14638
  options: badgesOptions.value,
14586
14639
  position: "image",
14587
14640
  class: "lupa-image-badges"
@@ -14924,7 +14977,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14924
14977
  options: {},
14925
14978
  ssr: { type: Boolean }
14926
14979
  },
14927
- setup(__props) {
14980
+ emits: ["filter"],
14981
+ setup(__props, { emit: emit2 }) {
14928
14982
  const props = __props;
14929
14983
  const searchResultStore = useSearchResultStore();
14930
14984
  const paramStore = useParamsStore();
@@ -15015,6 +15069,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15015
15069
  params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE), value: "1" }]
15016
15070
  });
15017
15071
  };
15072
+ const filter = () => {
15073
+ emit2("filter");
15074
+ };
15018
15075
  return (_ctx, _cache) => {
15019
15076
  var _a;
15020
15077
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
@@ -15031,9 +15088,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15031
15088
  key: 1,
15032
15089
  class: "lupa-toolbar-mobile",
15033
15090
  options: _ctx.options,
15034
- "pagination-location": "top"
15091
+ "pagination-location": "top",
15092
+ onFilter: filter
15035
15093
  }, null, 8, ["options"])) : createCommentVNode("", true),
15036
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$P, {
15094
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15037
15095
  key: 2,
15038
15096
  class: normalizeClass(currentFiltersClass.value),
15039
15097
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15388,8 +15446,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15388
15446
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
15389
15447
  }, [
15390
15448
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
15391
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15392
- createVNode(_sfc_main$R, {
15449
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15450
+ createVNode(_sfc_main$S, {
15393
15451
  "show-summary": true,
15394
15452
  options: _ctx.options,
15395
15453
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -15401,7 +15459,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15401
15459
  }, null, 8, ["options"])) : createCommentVNode("", true),
15402
15460
  _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
15403
15461
  key: 2,
15404
- options: _ctx.options.filters
15462
+ options: _ctx.options.filters,
15463
+ onFilter: handleParamsChange
15405
15464
  }, null, 8, ["options"])) : createCommentVNode("", true),
15406
15465
  unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
15407
15466
  key: 3,
@@ -15412,17 +15471,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15412
15471
  key: 0,
15413
15472
  options: (_b = _ctx.options.filters) != null ? _b : {},
15414
15473
  ref_key: "searchResultsFilters",
15415
- ref: searchResultsFilters
15474
+ ref: searchResultsFilters,
15475
+ onFilter: handleParamsChange
15416
15476
  }, null, 8, ["options"])) : createCommentVNode("", true),
15417
15477
  createBaseVNode("div", _hoisted_3$4, [
15418
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15419
- createVNode(_sfc_main$R, {
15478
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15479
+ createVNode(_sfc_main$S, {
15420
15480
  options: _ctx.options,
15421
15481
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
15422
15482
  }, null, 8, ["options", "is-product-list"]),
15423
15483
  createVNode(_sfc_main$e, {
15424
15484
  options: _ctx.options,
15425
- ssr: ssrEnabled.value
15485
+ ssr: ssrEnabled.value,
15486
+ onFilter: handleParamsChange
15426
15487
  }, {
15427
15488
  append: withCtx(() => [
15428
15489
  renderSlot(_ctx.$slots, "default")
@@ -15431,8 +15492,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15431
15492
  }, 8, ["options", "ssr"])
15432
15493
  ])
15433
15494
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
15434
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15435
- createVNode(_sfc_main$R, {
15495
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15496
+ createVNode(_sfc_main$S, {
15436
15497
  options: _ctx.options,
15437
15498
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
15438
15499
  }, null, 8, ["options", "is-product-list"]),
@@ -15441,11 +15502,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15441
15502
  key: 0,
15442
15503
  options: (_e = _ctx.options.filters) != null ? _e : {},
15443
15504
  ref_key: "searchResultsFilters",
15444
- ref: searchResultsFilters
15505
+ ref: searchResultsFilters,
15506
+ onFilter: handleParamsChange
15445
15507
  }, null, 8, ["options"])) : createCommentVNode("", true),
15446
15508
  createVNode(_sfc_main$e, {
15447
15509
  options: _ctx.options,
15448
- ssr: ssrEnabled.value
15510
+ ssr: ssrEnabled.value,
15511
+ onFilter: handleParamsChange
15449
15512
  }, createSlots({
15450
15513
  append: withCtx(() => [
15451
15514
  renderSlot(_ctx.$slots, "default")
@@ -21067,7 +21130,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21067
21130
  onClick: withModifiers(innerClick, ["stop"])
21068
21131
  }, [
21069
21132
  createBaseVNode("div", _hoisted_2$7, [
21070
- createVNode(_sfc_main$U, {
21133
+ createVNode(_sfc_main$V, {
21071
21134
  options: fullSearchBoxOptions.value,
21072
21135
  "is-search-container": true,
21073
21136
  ref_key: "searchBox",
@@ -22438,7 +22501,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22438
22501
  class: "lupa-chat-spinner-main"
22439
22502
  };
22440
22503
  const _hoisted_5 = { class: "lupasearch-chat-input" };
22441
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
22504
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
22442
22505
  __name: "ChatContainer",
22443
22506
  props: {
22444
22507
  options: {}
@@ -28079,7 +28142,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28079
28142
  };
28080
28143
  __expose({ fetch: fetch2 });
28081
28144
  return (_ctx, _cache) => {
28082
- return openBlock(), createBlock(unref(_sfc_main$U), {
28145
+ return openBlock(), createBlock(unref(_sfc_main$V), {
28083
28146
  options: fullSearchBoxOptions.value,
28084
28147
  ref_key: "searchBox",
28085
28148
  ref: searchBox2
@@ -28916,7 +28979,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28916
28979
  }
28917
28980
  return;
28918
28981
  }
28919
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1m, {
28982
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1n, {
28920
28983
  options
28921
28984
  });
28922
28985
  if (!instance) {