@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.
@@ -8443,7 +8443,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8443
8443
  resetHighlightIndex
8444
8444
  };
8445
8445
  });
8446
- const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8446
+ const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
8447
8447
  const _hoisted_2$P = { class: "lupa-input-clear" };
8448
8448
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8449
8449
  const _hoisted_4$s = ["value"];
@@ -8452,7 +8452,7 @@ const _hoisted_6$9 = {
8452
8452
  key: 0,
8453
8453
  class: "lupa-close-label"
8454
8454
  };
8455
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8455
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8456
8456
  __name: "SearchBoxInput",
8457
8457
  props: {
8458
8458
  options: {},
@@ -8533,7 +8533,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8533
8533
  };
8534
8534
  __expose({ focus });
8535
8535
  return (_ctx, _cache) => {
8536
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8536
+ return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8537
8537
  createBaseVNode("div", _hoisted_2$P, [
8538
8538
  createBaseVNode("div", {
8539
8539
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
@@ -8575,7 +8575,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8575
8575
  };
8576
8576
  }
8577
8577
  });
8578
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8578
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8579
8579
  __name: "SearchBoxMoreResults",
8580
8580
  props: {
8581
8581
  labels: {},
@@ -8607,9 +8607,9 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8607
8607
  };
8608
8608
  }
8609
8609
  });
8610
- const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
8610
+ const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
8611
8611
  const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
8612
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8612
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8613
8613
  __name: "SearchBoxHistoryItem",
8614
8614
  props: {
8615
8615
  item: {},
@@ -8625,7 +8625,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8625
8625
  emit2("click", { query: props.item });
8626
8626
  };
8627
8627
  return (_ctx, _cache) => {
8628
- return openBlock(), createElementBlock("div", _hoisted_1$1c, [
8628
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8629
8629
  createBaseVNode("div", _hoisted_2$O, [
8630
8630
  createBaseVNode("div", {
8631
8631
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
@@ -8640,11 +8640,11 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8640
8640
  };
8641
8641
  }
8642
8642
  });
8643
- const _hoisted_1$1b = {
8643
+ const _hoisted_1$1c = {
8644
8644
  key: 0,
8645
8645
  class: "lupa-search-box-history-panel"
8646
8646
  };
8647
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8647
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8648
8648
  __name: "SearchBoxHistoryPanel",
8649
8649
  props: {
8650
8650
  options: {}
@@ -8685,9 +8685,9 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8685
8685
  }
8686
8686
  };
8687
8687
  return (_ctx, _cache) => {
8688
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
8688
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
8689
8689
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8690
- return openBlock(), createBlock(_sfc_main$1j, {
8690
+ return openBlock(), createBlock(_sfc_main$1k, {
8691
8691
  key: item,
8692
8692
  item,
8693
8693
  highlighted: index === highlightIndex.value,
@@ -8703,19 +8703,19 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8703
8703
  };
8704
8704
  }
8705
8705
  });
8706
- const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
8707
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8706
+ const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
8707
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8708
8708
  __name: "SearchBoxNoResults",
8709
8709
  props: {
8710
8710
  labels: {}
8711
8711
  },
8712
8712
  setup(__props) {
8713
8713
  return (_ctx, _cache) => {
8714
- return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
8714
+ return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
8715
8715
  };
8716
8716
  }
8717
8717
  });
8718
- const _hoisted_1$19 = ["innerHTML"];
8718
+ const _hoisted_1$1a = ["innerHTML"];
8719
8719
  const _hoisted_2$N = {
8720
8720
  key: 1,
8721
8721
  "data-cy": "lupa-suggestion-value",
@@ -8734,7 +8734,7 @@ const _hoisted_5$g = {
8734
8734
  class: "lupa-suggestion-facet-value",
8735
8735
  "data-cy": "lupa-suggestion-facet-value"
8736
8736
  };
8737
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8737
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8738
8738
  __name: "SearchBoxSuggestion",
8739
8739
  props: {
8740
8740
  suggestion: {},
@@ -8770,7 +8770,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8770
8770
  class: "lupa-suggestion-value",
8771
8771
  "data-cy": "lupa-suggestion-value",
8772
8772
  innerHTML: _ctx.suggestion.displayHighlight
8773
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8773
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8774
8774
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8775
8775
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8776
8776
  createBaseVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -8779,11 +8779,11 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8779
8779
  };
8780
8780
  }
8781
8781
  });
8782
- const _hoisted_1$18 = {
8782
+ const _hoisted_1$19 = {
8783
8783
  id: "lupa-search-box-suggestions",
8784
8784
  "data-cy": "lupa-search-box-suggestions"
8785
8785
  };
8786
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8786
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8787
8787
  __name: "SearchBoxSuggestions",
8788
8788
  props: {
8789
8789
  items: {},
@@ -8843,9 +8843,9 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8843
8843
  });
8844
8844
  });
8845
8845
  return (_ctx, _cache) => {
8846
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
8846
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [
8847
8847
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8848
- return openBlock(), createBlock(_sfc_main$1g, {
8848
+ return openBlock(), createBlock(_sfc_main$1h, {
8849
8849
  key: getSuggestionKey(item),
8850
8850
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8851
8851
  suggestion: item,
@@ -8873,7 +8873,7 @@ const debounce$1 = (func, timeout) => {
8873
8873
  }, timeout);
8874
8874
  };
8875
8875
  };
8876
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8876
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8877
8877
  __name: "SearchBoxSuggestionsWrapper",
8878
8878
  props: {
8879
8879
  panel: {},
@@ -8914,7 +8914,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8914
8914
  };
8915
8915
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8916
8916
  return (_ctx, _cache) => {
8917
- return openBlock(), createBlock(_sfc_main$1f, {
8917
+ return openBlock(), createBlock(_sfc_main$1g, {
8918
8918
  items: searchResult.value,
8919
8919
  highlight: _ctx.panel.highlight,
8920
8920
  queryKey: _ctx.panel.queryKey,
@@ -9017,8 +9017,8 @@ const replaceImageWithPlaceholder = (e, placeholder) => {
9017
9017
  targetImage.src = placeholder;
9018
9018
  }
9019
9019
  };
9020
- const _hoisted_1$17 = ["src"];
9021
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9020
+ const _hoisted_1$18 = ["src"];
9021
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9022
9022
  __name: "ProductImage",
9023
9023
  props: {
9024
9024
  item: {},
@@ -9136,7 +9136,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9136
9136
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
9137
9137
  onError: replaceWithPlaceholder,
9138
9138
  key: finalUrl.value
9139
- }), null, 16, _hoisted_1$17))
9139
+ }), null, 16, _hoisted_1$18))
9140
9140
  ]),
9141
9141
  _: 1
9142
9142
  })
@@ -9144,7 +9144,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9144
9144
  };
9145
9145
  }
9146
9146
  });
9147
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9147
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9148
9148
  __name: "SearchBoxProductImage",
9149
9149
  props: {
9150
9150
  item: {},
@@ -9152,7 +9152,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9152
9152
  },
9153
9153
  setup(__props) {
9154
9154
  return (_ctx, _cache) => {
9155
- return openBlock(), createBlock(_sfc_main$1d, {
9155
+ return openBlock(), createBlock(_sfc_main$1e, {
9156
9156
  item: _ctx.item,
9157
9157
  options: _ctx.options,
9158
9158
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -9161,12 +9161,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9161
9161
  };
9162
9162
  }
9163
9163
  });
9164
- const _hoisted_1$16 = ["innerHTML"];
9164
+ const _hoisted_1$17 = ["innerHTML"];
9165
9165
  const _hoisted_2$M = {
9166
9166
  key: 1,
9167
9167
  class: "lupa-search-box-product-title"
9168
9168
  };
9169
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9169
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9170
9170
  __name: "SearchBoxProductTitle",
9171
9171
  props: {
9172
9172
  item: {},
@@ -9186,18 +9186,18 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9186
9186
  key: 0,
9187
9187
  class: "lupa-search-box-product-title",
9188
9188
  innerHTML: title.value
9189
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
9189
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
9190
9190
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
9191
9191
  ]));
9192
9192
  };
9193
9193
  }
9194
9194
  });
9195
- const _hoisted_1$15 = ["innerHTML"];
9195
+ const _hoisted_1$16 = ["innerHTML"];
9196
9196
  const _hoisted_2$L = {
9197
9197
  key: 1,
9198
9198
  class: "lupa-search-box-product-description"
9199
9199
  };
9200
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9200
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9201
9201
  __name: "SearchBoxProductDescription",
9202
9202
  props: {
9203
9203
  item: {},
@@ -9217,12 +9217,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9217
9217
  key: 0,
9218
9218
  class: "lupa-search-box-product-description",
9219
9219
  innerHTML: description.value
9220
- }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
9220
+ }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
9221
9221
  };
9222
9222
  }
9223
9223
  });
9224
- const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
9225
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9224
+ const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
9225
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9226
9226
  __name: "SearchBoxProductPrice",
9227
9227
  props: {
9228
9228
  item: {},
@@ -9240,14 +9240,14 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9240
9240
  );
9241
9241
  });
9242
9242
  return (_ctx, _cache) => {
9243
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
9243
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
9244
9244
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
9245
9245
  ]);
9246
9246
  };
9247
9247
  }
9248
9248
  });
9249
- const _hoisted_1$13 = { class: "lupa-search-box-product-regular-price" };
9250
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9249
+ const _hoisted_1$14 = { class: "lupa-search-box-product-regular-price" };
9250
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9251
9251
  __name: "SearchBoxProductRegularPrice",
9252
9252
  props: {
9253
9253
  item: {},
@@ -9265,16 +9265,16 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9265
9265
  );
9266
9266
  });
9267
9267
  return (_ctx, _cache) => {
9268
- return openBlock(), createElementBlock("div", _hoisted_1$13, toDisplayString(price.value), 1);
9268
+ return openBlock(), createElementBlock("div", _hoisted_1$14, toDisplayString(price.value), 1);
9269
9269
  };
9270
9270
  }
9271
9271
  });
9272
- const _hoisted_1$12 = ["innerHTML"];
9272
+ const _hoisted_1$13 = ["innerHTML"];
9273
9273
  const _hoisted_2$K = { key: 0 };
9274
9274
  const _hoisted_3$y = { key: 1 };
9275
9275
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
9276
9276
  const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
9277
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9277
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9278
9278
  __name: "SearchBoxProductCustom",
9279
9279
  props: {
9280
9280
  item: {},
@@ -9300,7 +9300,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9300
9300
  key: 0,
9301
9301
  class: [className.value, "lupa-search-box-product-custom"],
9302
9302
  innerHTML: text.value
9303
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12)) : (openBlock(), createElementBlock("div", mergeProps({
9303
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (openBlock(), createElementBlock("div", mergeProps({
9304
9304
  key: 1,
9305
9305
  class: [className.value, "lupa-search-box-product-custom"]
9306
9306
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
@@ -9312,8 +9312,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9312
9312
  };
9313
9313
  }
9314
9314
  });
9315
- const _hoisted_1$11 = ["innerHTML"];
9316
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9315
+ const _hoisted_1$12 = ["innerHTML"];
9316
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9317
9317
  __name: "SearchBoxProductCustomHtml",
9318
9318
  props: {
9319
9319
  item: {},
@@ -9333,7 +9333,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9333
9333
  return openBlock(), createElementBlock("div", mergeProps({
9334
9334
  class: className.value,
9335
9335
  innerHTML: text.value
9336
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11);
9336
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
9337
9337
  };
9338
9338
  }
9339
9339
  });
@@ -9531,10 +9531,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
9531
9531
  clearSearchResult
9532
9532
  };
9533
9533
  });
9534
- const _hoisted_1$10 = { class: "lupa-search-box-add-to-cart-wrapper" };
9534
+ const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
9535
9535
  const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
9536
9536
  const _hoisted_3$x = ["onClick", "disabled"];
9537
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9537
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9538
9538
  __name: "SearchBoxProductAddToCart",
9539
9539
  props: {
9540
9540
  item: {},
@@ -9561,7 +9561,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9561
9561
  loading.value = false;
9562
9562
  });
9563
9563
  return (_ctx, _cache) => {
9564
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
9564
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
9565
9565
  createBaseVNode("div", _hoisted_2$J, [
9566
9566
  createBaseVNode("button", {
9567
9567
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -9575,23 +9575,23 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9575
9575
  };
9576
9576
  }
9577
9577
  });
9578
- const _hoisted_1$$ = {
9578
+ const _hoisted_1$10 = {
9579
9579
  key: 1,
9580
9580
  class: "lupa-search-box-element-badge-wrapper"
9581
9581
  };
9582
9582
  const __default__$4 = {
9583
9583
  components: {
9584
- SearchBoxProductImage: _sfc_main$1c,
9585
- SearchBoxProductTitle: _sfc_main$1b,
9586
- SearchBoxProductDescription: _sfc_main$1a,
9587
- SearchBoxProductPrice: _sfc_main$19,
9588
- SearchBoxProductRegularPrice: _sfc_main$18,
9589
- SearchBoxProductCustom: _sfc_main$17,
9590
- SearchBoxProductCustomHtml: _sfc_main$16,
9591
- SearchBoxProductAddToCart: _sfc_main$15
9584
+ SearchBoxProductImage: _sfc_main$1d,
9585
+ SearchBoxProductTitle: _sfc_main$1c,
9586
+ SearchBoxProductDescription: _sfc_main$1b,
9587
+ SearchBoxProductPrice: _sfc_main$1a,
9588
+ SearchBoxProductRegularPrice: _sfc_main$19,
9589
+ SearchBoxProductCustom: _sfc_main$18,
9590
+ SearchBoxProductCustomHtml: _sfc_main$17,
9591
+ SearchBoxProductAddToCart: _sfc_main$16
9592
9592
  }
9593
9593
  };
9594
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9594
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9595
9595
  __name: "SearchBoxProductElement",
9596
9596
  props: {
9597
9597
  item: {},
@@ -9649,7 +9649,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
9649
9649
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
9650
9650
  inStock: _ctx.isInStock
9651
9651
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
9652
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$$, [
9652
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
9653
9653
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
9654
9654
  key: 0,
9655
9655
  item: enhancedItem.value,
@@ -9663,14 +9663,14 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
9663
9663
  };
9664
9664
  }
9665
9665
  }));
9666
- const _hoisted_1$_ = { class: "lupa-badge-title" };
9666
+ const _hoisted_1$$ = { class: "lupa-badge-title" };
9667
9667
  const _hoisted_2$I = ["src"];
9668
9668
  const _hoisted_3$w = { key: 1 };
9669
9669
  const _hoisted_4$p = {
9670
9670
  key: 0,
9671
9671
  class: "lupa-badge-full-text"
9672
9672
  };
9673
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9673
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9674
9674
  __name: "SearchResultGeneratedBadge",
9675
9675
  props: {
9676
9676
  options: {},
@@ -9703,7 +9703,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9703
9703
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
9704
9704
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
9705
9705
  }, [
9706
- createBaseVNode("span", _hoisted_1$_, [
9706
+ createBaseVNode("span", _hoisted_1$$, [
9707
9707
  image.value ? (openBlock(), createElementBlock("img", {
9708
9708
  key: 0,
9709
9709
  src: image.value
@@ -9715,8 +9715,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9715
9715
  };
9716
9716
  }
9717
9717
  });
9718
- const _hoisted_1$Z = { class: "lupa-generated-badges" };
9719
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9718
+ const _hoisted_1$_ = { class: "lupa-generated-badges" };
9719
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9720
9720
  __name: "SearchResultGeneratedBadges",
9721
9721
  props: {
9722
9722
  options: {}
@@ -9742,9 +9742,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9742
9742
  })).filter((b) => Boolean(b.id));
9743
9743
  });
9744
9744
  return (_ctx, _cache) => {
9745
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9745
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
9746
9746
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
9747
- return openBlock(), createBlock(_sfc_main$13, {
9747
+ return openBlock(), createBlock(_sfc_main$14, {
9748
9748
  key: badge.id,
9749
9749
  badge,
9750
9750
  options: _ctx.options
@@ -9754,8 +9754,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9754
9754
  };
9755
9755
  }
9756
9756
  });
9757
- const _hoisted_1$Y = ["innerHTML"];
9758
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9757
+ const _hoisted_1$Z = ["innerHTML"];
9758
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9759
9759
  __name: "CustomBadge",
9760
9760
  props: {
9761
9761
  badge: {}
@@ -9774,12 +9774,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9774
9774
  return openBlock(), createElementBlock("div", {
9775
9775
  class: normalizeClass(className.value),
9776
9776
  innerHTML: text.value
9777
- }, null, 10, _hoisted_1$Y);
9777
+ }, null, 10, _hoisted_1$Z);
9778
9778
  };
9779
9779
  }
9780
9780
  });
9781
- const _hoisted_1$X = { class: "lupa-text-badges" };
9782
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9781
+ const _hoisted_1$Y = { class: "lupa-text-badges" };
9782
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9783
9783
  __name: "TextBadge",
9784
9784
  props: {
9785
9785
  badge: {}
@@ -9794,7 +9794,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9794
9794
  return badges.value.slice(0, props.badge.maxItems);
9795
9795
  });
9796
9796
  return (_ctx, _cache) => {
9797
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
9797
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
9798
9798
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9799
9799
  return openBlock(), createElementBlock("div", {
9800
9800
  class: "lupa-badge lupa-text-badge",
@@ -9805,9 +9805,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9805
9805
  };
9806
9806
  }
9807
9807
  });
9808
- const _hoisted_1$W = { class: "lupa-image-badges" };
9808
+ const _hoisted_1$X = { class: "lupa-image-badges" };
9809
9809
  const _hoisted_2$H = ["src"];
9810
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9810
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9811
9811
  __name: "ImageBadge",
9812
9812
  props: {
9813
9813
  badge: {}
@@ -9827,7 +9827,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9827
9827
  return `${props.badge.rootImageUrl}${src}`;
9828
9828
  };
9829
9829
  return (_ctx, _cache) => {
9830
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
9830
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9831
9831
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9832
9832
  return openBlock(), createElementBlock("div", {
9833
9833
  class: "lupa-badge lupa-image-badge",
@@ -9842,15 +9842,15 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9842
9842
  };
9843
9843
  }
9844
9844
  });
9845
- const _hoisted_1$V = { id: "lupa-search-results-badges" };
9845
+ const _hoisted_1$W = { id: "lupa-search-results-badges" };
9846
9846
  const __default__$3 = {
9847
9847
  components: {
9848
- CustomBadge: _sfc_main$11,
9849
- TextBadge: _sfc_main$10,
9850
- ImageBadge: _sfc_main$$
9848
+ CustomBadge: _sfc_main$12,
9849
+ TextBadge: _sfc_main$11,
9850
+ ImageBadge: _sfc_main$10
9851
9851
  }
9852
9852
  };
9853
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9853
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9854
9854
  __name: "SearchResultsBadgeWrapper",
9855
9855
  props: {
9856
9856
  position: {},
@@ -9906,7 +9906,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9906
9906
  }
9907
9907
  };
9908
9908
  return (_ctx, _cache) => {
9909
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
9909
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9910
9910
  createBaseVNode("div", {
9911
9911
  id: "lupa-badges",
9912
9912
  class: normalizeClass(anchorPosition.value)
@@ -9917,7 +9917,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9917
9917
  badge
9918
9918
  }, null, 8, ["badge"]);
9919
9919
  }), 128)),
9920
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$12, {
9920
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$13, {
9921
9921
  key: 0,
9922
9922
  options: _ctx.options
9923
9923
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -9926,14 +9926,14 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9926
9926
  };
9927
9927
  }
9928
9928
  }));
9929
- const _hoisted_1$U = ["href"];
9929
+ const _hoisted_1$V = ["href"];
9930
9930
  const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
9931
9931
  const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
9932
9932
  const _hoisted_4$o = {
9933
9933
  key: 0,
9934
9934
  class: "lupa-search-box-product-add-to-cart-section"
9935
9935
  };
9936
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9936
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9937
9937
  __name: "SearchBoxProduct",
9938
9938
  props: {
9939
9939
  item: {},
@@ -9994,7 +9994,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9994
9994
  }), [
9995
9995
  createBaseVNode("div", _hoisted_2$G, [
9996
9996
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
9997
- return openBlock(), createBlock(_sfc_main$14, {
9997
+ return openBlock(), createBlock(_sfc_main$15, {
9998
9998
  class: "lupa-search-box-product-element",
9999
9999
  item: _ctx.item,
10000
10000
  element,
@@ -10007,7 +10007,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10007
10007
  createBaseVNode("div", _hoisted_3$v, [
10008
10008
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
10009
10009
  var _a;
10010
- return openBlock(), createBlock(_sfc_main$14, {
10010
+ return openBlock(), createBlock(_sfc_main$15, {
10011
10011
  key: element.key,
10012
10012
  class: "lupa-search-box-product-element",
10013
10013
  item: _ctx.item,
@@ -10018,7 +10018,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10018
10018
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
10019
10019
  name: "badges",
10020
10020
  fn: withCtx(() => [
10021
- createVNode(_sfc_main$_, {
10021
+ createVNode(_sfc_main$$, {
10022
10022
  options: badgeOptions.value,
10023
10023
  position: "card"
10024
10024
  }, null, 8, ["options"])
@@ -10029,7 +10029,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10029
10029
  }), 128))
10030
10030
  ]),
10031
10031
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
10032
- createVNode(_sfc_main$14, {
10032
+ createVNode(_sfc_main$15, {
10033
10033
  class: "lupa-search-box-product-element",
10034
10034
  item: _ctx.item,
10035
10035
  element: addToCartElement.value,
@@ -10038,7 +10038,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10038
10038
  isInStock: isInStock.value
10039
10039
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
10040
10040
  ])) : createCommentVNode("", true)
10041
- ], 16, _hoisted_1$U);
10041
+ ], 16, _hoisted_1$V);
10042
10042
  };
10043
10043
  }
10044
10044
  });
@@ -10099,8 +10099,8 @@ const useTrackingStore = defineStore("tracking", () => {
10099
10099
  };
10100
10100
  return { trackSearch, trackResults, trackEvent };
10101
10101
  });
10102
- const _hoisted_1$T = { id: "lupa-search-box-products" };
10103
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10102
+ const _hoisted_1$U = { id: "lupa-search-box-products" };
10103
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10104
10104
  __name: "SearchBoxProducts",
10105
10105
  props: {
10106
10106
  items: {},
@@ -10161,7 +10161,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10161
10161
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
10162
10162
  };
10163
10163
  return (_ctx, _cache) => {
10164
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
10164
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
10165
10165
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
10166
10166
  return renderSlot(_ctx.$slots, "productCard", {
10167
10167
  key: index,
@@ -10173,7 +10173,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10173
10173
  itemClicked: handleProductClick
10174
10174
  });
10175
10175
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
10176
- return openBlock(), createBlock(_sfc_main$Z, {
10176
+ return openBlock(), createBlock(_sfc_main$_, {
10177
10177
  key: index,
10178
10178
  item,
10179
10179
  panelOptions: _ctx.panelOptions,
@@ -10187,7 +10187,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10187
10187
  };
10188
10188
  }
10189
10189
  });
10190
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
10190
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10191
10191
  __name: "SearchBoxProductsWrapper",
10192
10192
  props: {
10193
10193
  panel: {},
@@ -10239,7 +10239,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10239
10239
  const getItemsDebounced = debounce$1(getItems, props.debounce);
10240
10240
  return (_ctx, _cache) => {
10241
10241
  var _a, _b;
10242
- return openBlock(), createBlock(_sfc_main$Y, {
10242
+ return openBlock(), createBlock(_sfc_main$Z, {
10243
10243
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10244
10244
  panelOptions: _ctx.panel,
10245
10245
  labels: _ctx.labels,
@@ -10257,7 +10257,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10257
10257
  };
10258
10258
  }
10259
10259
  });
10260
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
10260
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10261
10261
  __name: "SearchBoxRelatedSourceWrapper",
10262
10262
  props: {
10263
10263
  panel: {},
@@ -10329,7 +10329,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
10329
10329
  });
10330
10330
  return (_ctx, _cache) => {
10331
10331
  var _a, _b;
10332
- return openBlock(), createBlock(_sfc_main$Y, {
10332
+ return openBlock(), createBlock(_sfc_main$Z, {
10333
10333
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10334
10334
  panelOptions: documentPanelOptions.value,
10335
10335
  labels: _ctx.labels,
@@ -10347,7 +10347,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
10347
10347
  };
10348
10348
  }
10349
10349
  });
10350
- const _hoisted_1$S = {
10350
+ const _hoisted_1$T = {
10351
10351
  key: 0,
10352
10352
  id: "lupa-search-box-panel"
10353
10353
  };
@@ -10366,12 +10366,12 @@ const _hoisted_5$e = {
10366
10366
  };
10367
10367
  const __default__$2 = {
10368
10368
  components: {
10369
- SearchBoxSuggestionsWrapper: _sfc_main$1e,
10370
- SearchBoxProductsWrapper: _sfc_main$X,
10371
- SearchBoxRelatedSourceWrapper: _sfc_main$W
10369
+ SearchBoxSuggestionsWrapper: _sfc_main$1f,
10370
+ SearchBoxProductsWrapper: _sfc_main$Y,
10371
+ SearchBoxRelatedSourceWrapper: _sfc_main$X
10372
10372
  }
10373
10373
  };
10374
- const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10374
+ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10375
10375
  __name: "SearchBoxMainPanel",
10376
10376
  props: {
10377
10377
  options: {},
@@ -10517,7 +10517,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
10517
10517
  ref_key: "panelContainer",
10518
10518
  ref: panelContainer
10519
10519
  }, [
10520
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
10520
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
10521
10521
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
10522
10522
  key: 0,
10523
10523
  class: "lupa-search-box-close-panel",
@@ -10562,18 +10562,18 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
10562
10562
  ], 10, _hoisted_2$F);
10563
10563
  }), 128))
10564
10564
  ], 4),
10565
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1h, {
10565
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1i, {
10566
10566
  key: 1,
10567
10567
  labels: labels.value
10568
10568
  }, null, 8, ["labels"])) : createCommentVNode("", true),
10569
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1k, {
10569
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1l, {
10570
10570
  key: 2,
10571
10571
  labels: labels.value,
10572
10572
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
10573
10573
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
10574
10574
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
10575
10575
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
10576
- createVNode(_sfc_main$1i, {
10576
+ createVNode(_sfc_main$1j, {
10577
10577
  options: _ctx.options.history,
10578
10578
  history: history.value,
10579
10579
  onGoToResults: handleGoToResults,
@@ -10598,9 +10598,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
10598
10598
  const elements = getElements(triggers);
10599
10599
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
10600
10600
  };
10601
- const _hoisted_1$R = { id: "lupa-search-box" };
10601
+ const _hoisted_1$S = { id: "lupa-search-box" };
10602
10602
  const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
10603
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
10603
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10604
10604
  __name: "SearchBox",
10605
10605
  props: {
10606
10606
  options: {},
@@ -10845,9 +10845,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10845
10845
  };
10846
10846
  return (_ctx, _cache) => {
10847
10847
  var _a2;
10848
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
10848
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
10849
10849
  createBaseVNode("div", _hoisted_2$E, [
10850
- createVNode(_sfc_main$1l, {
10850
+ createVNode(_sfc_main$1m, {
10851
10851
  options: inputOptions.value,
10852
10852
  suggestedValue: suggestedValue.value,
10853
10853
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -10858,7 +10858,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10858
10858
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10859
10859
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10860
10860
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10861
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$V, {
10861
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
10862
10862
  key: 0,
10863
10863
  options: panelOptions.value,
10864
10864
  inputValue: inputValue.value,
@@ -10946,7 +10946,7 @@ const getSearchParams = (url, params, baseUrl) => {
10946
10946
  }
10947
10947
  return searchParams;
10948
10948
  };
10949
- const _hoisted_1$Q = {
10949
+ const _hoisted_1$R = {
10950
10950
  key: 0,
10951
10951
  id: "lupa-search-results-did-you-mean"
10952
10952
  };
@@ -10959,7 +10959,7 @@ const _hoisted_3$t = {
10959
10959
  "data-cy": "did-you-mean-label"
10960
10960
  };
10961
10961
  const _hoisted_4$m = { key: 1 };
10962
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
10962
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10963
10963
  __name: "SearchResultsDidYouMean",
10964
10964
  props: {
10965
10965
  labels: {}
@@ -10991,7 +10991,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10991
10991
  paramStore.goToResults({ searchText, facet });
10992
10992
  };
10993
10993
  return (_ctx, _cache) => {
10994
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
10994
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
10995
10995
  unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
10996
10996
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
10997
10997
  return openBlock(), createElementBlock("span", { key: index }, [
@@ -11017,12 +11017,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
11017
11017
  };
11018
11018
  }
11019
11019
  });
11020
- const _hoisted_1$P = {
11020
+ const _hoisted_1$Q = {
11021
11021
  key: 0,
11022
11022
  class: "lupa-search-results-summary"
11023
11023
  };
11024
11024
  const _hoisted_2$C = ["innerHTML"];
11025
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
11025
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
11026
11026
  __name: "SearchResultsSummary",
11027
11027
  props: {
11028
11028
  label: {},
@@ -11037,7 +11037,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11037
11037
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
11038
11038
  });
11039
11039
  return (_ctx, _cache) => {
11040
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
11040
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
11041
11041
  createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
11042
11042
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
11043
11043
  key: 0,
@@ -11049,7 +11049,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11049
11049
  };
11050
11050
  }
11051
11051
  });
11052
- const _hoisted_1$O = {
11052
+ const _hoisted_1$P = {
11053
11053
  key: 0,
11054
11054
  class: "lupa-result-page-title",
11055
11055
  "data-cy": "lupa-result-page-title"
@@ -11060,7 +11060,7 @@ const _hoisted_3$s = {
11060
11060
  class: "lupa-results-total-count"
11061
11061
  };
11062
11062
  const _hoisted_4$l = ["innerHTML"];
11063
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
11063
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11064
11064
  __name: "SearchResultsTitle",
11065
11065
  props: {
11066
11066
  options: {},
@@ -11095,12 +11095,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11095
11095
  });
11096
11096
  return (_ctx, _cache) => {
11097
11097
  return openBlock(), createElementBlock("div", null, [
11098
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
11098
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11099
11099
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11100
11100
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11101
11101
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11102
11102
  ])) : createCommentVNode("", true),
11103
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$S, {
11103
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11104
11104
  key: 1,
11105
11105
  label: summaryLabel.value
11106
11106
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -11113,7 +11113,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11113
11113
  };
11114
11114
  }
11115
11115
  });
11116
- const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
11116
+ const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
11117
11117
  const _hoisted_2$A = {
11118
11118
  class: "lupa-current-filter-label",
11119
11119
  "data-cy": "lupa-current-filter-label"
@@ -11122,7 +11122,7 @@ const _hoisted_3$r = {
11122
11122
  class: "lupa-current-filter-value",
11123
11123
  "data-cy": "lupa-current-filter-value"
11124
11124
  };
11125
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11125
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11126
11126
  __name: "CurrentFilterDisplay",
11127
11127
  props: {
11128
11128
  filter: {}
@@ -11134,7 +11134,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11134
11134
  emit2("remove", { filter: props.filter });
11135
11135
  };
11136
11136
  return (_ctx, _cache) => {
11137
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
11137
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
11138
11138
  createBaseVNode("div", {
11139
11139
  class: "lupa-current-filter-action",
11140
11140
  onClick: handleClick
@@ -11145,7 +11145,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11145
11145
  };
11146
11146
  }
11147
11147
  });
11148
- const _hoisted_1$M = { class: "lupa-filter-title-text" };
11148
+ const _hoisted_1$N = { class: "lupa-filter-title-text" };
11149
11149
  const _hoisted_2$z = {
11150
11150
  key: 0,
11151
11151
  class: "lupa-filter-count"
@@ -11155,7 +11155,7 @@ const _hoisted_3$q = {
11155
11155
  class: "filter-values"
11156
11156
  };
11157
11157
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
11158
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11158
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11159
11159
  __name: "CurrentFilters",
11160
11160
  props: {
11161
11161
  options: {},
@@ -11216,7 +11216,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11216
11216
  class: "lupa-current-filter-title",
11217
11217
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
11218
11218
  }, [
11219
- createBaseVNode("div", _hoisted_1$M, [
11219
+ createBaseVNode("div", _hoisted_1$N, [
11220
11220
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
11221
11221
  _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
11222
11222
  ]),
@@ -11228,7 +11228,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11228
11228
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
11229
11229
  createBaseVNode("div", _hoisted_4$k, [
11230
11230
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
11231
- return openBlock(), createBlock(_sfc_main$Q, {
11231
+ return openBlock(), createBlock(_sfc_main$R, {
11232
11232
  key: filter.key + "_" + filter.value,
11233
11233
  filter,
11234
11234
  onRemove: handleRemove
@@ -11245,8 +11245,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11245
11245
  };
11246
11246
  }
11247
11247
  });
11248
- const _hoisted_1$L = ["href"];
11249
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11248
+ const _hoisted_1$M = ["href"];
11249
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11250
11250
  __name: "CategoryFilterItem",
11251
11251
  props: {
11252
11252
  options: {},
@@ -11283,12 +11283,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11283
11283
  "data-cy": "lupa-child-category-item",
11284
11284
  href: urlLink.value,
11285
11285
  onClick: handleNavigation
11286
- }, toDisplayString(title.value), 9, _hoisted_1$L)
11286
+ }, toDisplayString(title.value), 9, _hoisted_1$M)
11287
11287
  ], 2);
11288
11288
  };
11289
11289
  }
11290
11290
  });
11291
- const _hoisted_1$K = {
11291
+ const _hoisted_1$L = {
11292
11292
  class: "lupa-category-filter",
11293
11293
  "data-cy": "lupa-category-filter"
11294
11294
  };
@@ -11296,7 +11296,7 @@ const _hoisted_2$y = { class: "lupa-category-back" };
11296
11296
  const _hoisted_3$p = ["href"];
11297
11297
  const _hoisted_4$j = ["href"];
11298
11298
  const _hoisted_5$d = { class: "lupa-child-category-list" };
11299
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11299
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11300
11300
  __name: "CategoryFilter",
11301
11301
  props: {
11302
11302
  options: {}
@@ -11382,7 +11382,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11382
11382
  };
11383
11383
  __expose({ fetch: fetch2 });
11384
11384
  return (_ctx, _cache) => {
11385
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
11385
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
11386
11386
  createBaseVNode("div", _hoisted_2$y, [
11387
11387
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
11388
11388
  key: 0,
@@ -11403,7 +11403,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11403
11403
  ], 2),
11404
11404
  createBaseVNode("div", _hoisted_5$d, [
11405
11405
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
11406
- return openBlock(), createBlock(_sfc_main$O, {
11406
+ return openBlock(), createBlock(_sfc_main$P, {
11407
11407
  key: getCategoryKey(child),
11408
11408
  item: child,
11409
11409
  options: _ctx.options
@@ -11414,7 +11414,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11414
11414
  };
11415
11415
  }
11416
11416
  });
11417
- const _hoisted_1$J = {
11417
+ const _hoisted_1$K = {
11418
11418
  class: "lupa-search-result-facet-term-values",
11419
11419
  "data-cy": "lupa-search-result-facet-term-values"
11420
11420
  };
@@ -11430,7 +11430,7 @@ const _hoisted_8$1 = {
11430
11430
  };
11431
11431
  const _hoisted_9$1 = { key: 0 };
11432
11432
  const _hoisted_10$1 = { key: 1 };
11433
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
11433
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11434
11434
  __name: "TermFacet",
11435
11435
  props: {
11436
11436
  options: {},
@@ -11499,7 +11499,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11499
11499
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
11500
11500
  };
11501
11501
  return (_ctx, _cache) => {
11502
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
11502
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
11503
11503
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
11504
11504
  key: 0,
11505
11505
  class: "lupa-term-filter",
@@ -12517,7 +12517,7 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
12517
12517
  m.render = function(e, t, r, i, n, o) {
12518
12518
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
12519
12519
  }, m.__file = "src/Slider.vue";
12520
- const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
12520
+ const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
12521
12521
  const _hoisted_2$w = {
12522
12522
  key: 0,
12523
12523
  class: "lupa-stats-facet-summary"
@@ -12545,7 +12545,7 @@ const _hoisted_13 = {
12545
12545
  key: 2,
12546
12546
  class: "lupa-stats-slider-wrapper"
12547
12547
  };
12548
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
12548
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12549
12549
  __name: "StatsFacet",
12550
12550
  props: {
12551
12551
  options: {},
@@ -12714,7 +12714,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12714
12714
  innerSliderRange.value = value;
12715
12715
  };
12716
12716
  return (_ctx, _cache) => {
12717
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
12717
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
12718
12718
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
12719
12719
  createBaseVNode("div", null, [
12720
12720
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
@@ -12781,7 +12781,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12781
12781
  };
12782
12782
  }
12783
12783
  });
12784
- const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
12784
+ const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
12785
12785
  const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
12786
12786
  const _hoisted_3$m = { class: "lupa-term-label" };
12787
12787
  const _hoisted_4$g = {
@@ -12792,7 +12792,7 @@ const _hoisted_5$a = {
12792
12792
  key: 0,
12793
12793
  class: "lupa-facet-level"
12794
12794
  };
12795
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
12795
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12796
12796
  __name: "HierarchyFacetLevel",
12797
12797
  props: {
12798
12798
  options: {},
@@ -12838,7 +12838,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12838
12838
  "data-cy": "lupa-facet-term",
12839
12839
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
12840
12840
  }, [
12841
- createBaseVNode("div", _hoisted_1$H, [
12841
+ createBaseVNode("div", _hoisted_1$I, [
12842
12842
  createBaseVNode("span", {
12843
12843
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
12844
12844
  }, null, 2)
@@ -12864,13 +12864,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12864
12864
  };
12865
12865
  }
12866
12866
  });
12867
- const _hoisted_1$G = {
12867
+ const _hoisted_1$H = {
12868
12868
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
12869
12869
  "data-cy": "lupa-search-result-facet-term-values"
12870
12870
  };
12871
12871
  const _hoisted_2$u = { key: 0 };
12872
12872
  const _hoisted_3$l = ["placeholder"];
12873
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
12873
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12874
12874
  __name: "HierarchyFacet",
12875
12875
  props: {
12876
12876
  options: {},
@@ -12920,7 +12920,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
12920
12920
  showAll.value = true;
12921
12921
  };
12922
12922
  return (_ctx, _cache) => {
12923
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
12923
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
12924
12924
  isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
12925
12925
  withDirectives(createBaseVNode("input", {
12926
12926
  class: "lupa-term-filter",
@@ -12932,7 +12932,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
12932
12932
  ])
12933
12933
  ])) : createCommentVNode("", true),
12934
12934
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
12935
- return openBlock(), createBlock(_sfc_main$K, {
12935
+ return openBlock(), createBlock(_sfc_main$L, {
12936
12936
  key: item.title,
12937
12937
  options: _ctx.options,
12938
12938
  item,
@@ -12952,7 +12952,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
12952
12952
  };
12953
12953
  }
12954
12954
  });
12955
- const _hoisted_1$F = { class: "lupa-facet-label-text" };
12955
+ const _hoisted_1$G = { class: "lupa-facet-label-text" };
12956
12956
  const _hoisted_2$t = {
12957
12957
  key: 0,
12958
12958
  class: "lupa-facet-content",
@@ -12960,12 +12960,12 @@ const _hoisted_2$t = {
12960
12960
  };
12961
12961
  const __default__$1 = {
12962
12962
  components: {
12963
- TermFacet: _sfc_main$M,
12964
- StatsFacet: _sfc_main$L,
12965
- HierarchyFacet: _sfc_main$J
12963
+ TermFacet: _sfc_main$N,
12964
+ StatsFacet: _sfc_main$M,
12965
+ HierarchyFacet: _sfc_main$K
12966
12966
  }
12967
12967
  };
12968
- const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12968
+ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12969
12969
  __name: "FacetDisplay",
12970
12970
  props: {
12971
12971
  options: {},
@@ -13077,7 +13077,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
13077
13077
  "data-cy": "lupa-search-result-facet-label",
13078
13078
  onClick: toggleFacet
13079
13079
  }, [
13080
- createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
13080
+ createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
13081
13081
  createBaseVNode("div", {
13082
13082
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
13083
13083
  }, null, 2)
@@ -13100,12 +13100,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
13100
13100
  };
13101
13101
  }
13102
13102
  }));
13103
- const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
13103
+ const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
13104
13104
  const _hoisted_2$s = {
13105
13105
  key: 0,
13106
13106
  class: "lupa-facets-title"
13107
13107
  };
13108
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
13108
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
13109
13109
  __name: "FacetList",
13110
13110
  props: {
13111
13111
  options: {},
@@ -13139,14 +13139,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
13139
13139
  };
13140
13140
  return (_ctx, _cache) => {
13141
13141
  var _a;
13142
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
13142
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
13143
13143
  _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
13144
13144
  createBaseVNode("div", {
13145
13145
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
13146
13146
  }, [
13147
13147
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
13148
13148
  var _a2;
13149
- return openBlock(), createBlock(_sfc_main$I, {
13149
+ return openBlock(), createBlock(_sfc_main$J, {
13150
13150
  key: facet.key,
13151
13151
  facet,
13152
13152
  currentFilters: currentFiltersValue.value,
@@ -13161,6 +13161,31 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
13161
13161
  };
13162
13162
  }
13163
13163
  });
13164
+ const _hoisted_1$E = ["onClick"];
13165
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
13166
+ __name: "FacetsButton",
13167
+ props: {
13168
+ options: {}
13169
+ },
13170
+ emits: ["filter"],
13171
+ setup(__props, { emit: emit2 }) {
13172
+ const props = __props;
13173
+ const label = computed(() => {
13174
+ var _a, _b;
13175
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.facetFilterButton) != null ? _b : "";
13176
+ });
13177
+ const handleClick = () => {
13178
+ emit2("filter");
13179
+ };
13180
+ return (_ctx, _cache) => {
13181
+ return label.value ? (openBlock(), createElementBlock("button", {
13182
+ key: 0,
13183
+ class: "lupa-facets-button-filter",
13184
+ onClick: withModifiers(handleClick, ["stop"])
13185
+ }, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
13186
+ };
13187
+ }
13188
+ });
13164
13189
  const _hoisted_1$D = { class: "lupa-search-result-facets" };
13165
13190
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
13166
13191
  __name: "Facets",
@@ -13169,7 +13194,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
13169
13194
  facetStyle: {},
13170
13195
  clearable: { type: Boolean }
13171
13196
  },
13172
- setup(__props) {
13197
+ emits: ["filter"],
13198
+ setup(__props, { emit: emit2 }) {
13173
13199
  const props = __props;
13174
13200
  const paramStore = useParamsStore();
13175
13201
  const searchResultStore = useSearchResultStore();
@@ -13199,6 +13225,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
13199
13225
  timeout: (_f = (_e = searchResultOptions.value.scrollToResults) == null ? void 0 : _e.timeout) != null ? _f : 500
13200
13226
  };
13201
13227
  });
13228
+ const showFilterButton = computed(() => {
13229
+ return props.options.filterBehavior === "withFilterButton";
13230
+ });
13202
13231
  const handleFacetSelect = (facetAction) => {
13203
13232
  switch (facetAction.type) {
13204
13233
  case "terms":
@@ -13237,9 +13266,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
13237
13266
  const param = getFacetKey(facet.key, facet.type);
13238
13267
  paramStore.removeParameters({ paramsToRemove: [param] });
13239
13268
  };
13269
+ const filter = () => {
13270
+ emit2("filter");
13271
+ };
13240
13272
  return (_ctx, _cache) => {
13241
13273
  return openBlock(), createElementBlock("div", _hoisted_1$D, [
13242
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$H, {
13274
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$I, {
13243
13275
  key: 0,
13244
13276
  options: _ctx.options,
13245
13277
  facets: regularFacets.value,
@@ -13248,7 +13280,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
13248
13280
  clearable: _ctx.clearable,
13249
13281
  onSelect: handleFacetSelect,
13250
13282
  onClear: clear2
13251
- }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true)
13283
+ }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
13284
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$H, {
13285
+ key: 1,
13286
+ options: _ctx.options,
13287
+ onFilter: filter
13288
+ }, null, 8, ["options"])) : createCommentVNode("", true)
13252
13289
  ]);
13253
13290
  };
13254
13291
  }
@@ -13263,7 +13300,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
13263
13300
  options: {},
13264
13301
  expandable: { type: Boolean }
13265
13302
  },
13266
- setup(__props, { expose: __expose }) {
13303
+ emits: ["filter"],
13304
+ setup(__props, { expose: __expose, emit: emit2 }) {
13267
13305
  const props = __props;
13268
13306
  const categoryFilters = ref(null);
13269
13307
  const desktopFiltersVisible = computed(() => {
@@ -13277,6 +13315,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
13277
13315
  const showCurrentFilters = computed(() => {
13278
13316
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
13279
13317
  });
13318
+ const filter = () => {
13319
+ emit2("filter");
13320
+ };
13280
13321
  const fetch2 = () => {
13281
13322
  var _a;
13282
13323
  if (categoryFilters.value) {
@@ -13287,12 +13328,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
13287
13328
  return (_ctx, _cache) => {
13288
13329
  var _a;
13289
13330
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
13290
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
13331
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
13291
13332
  key: 0,
13292
13333
  options: _ctx.options.currentFilters,
13293
13334
  expandable: (_a = _ctx.expandable) != null ? _a : false
13294
13335
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
13295
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$N, {
13336
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$O, {
13296
13337
  key: 1,
13297
13338
  options: _ctx.options.categories,
13298
13339
  ref_key: "categoryFilters",
@@ -13300,7 +13341,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
13300
13341
  }, null, 8, ["options"])) : createCommentVNode("", true),
13301
13342
  _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
13302
13343
  key: 2,
13303
- options: _ctx.options.facets
13344
+ options: _ctx.options.facets,
13345
+ onFilter: filter
13304
13346
  }, null, 8, ["options"])) : createCommentVNode("", true)
13305
13347
  ]);
13306
13348
  };
@@ -13324,7 +13366,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
13324
13366
  props: {
13325
13367
  options: {}
13326
13368
  },
13327
- setup(__props) {
13369
+ emits: ["filter"],
13370
+ setup(__props, { emit: emit2 }) {
13328
13371
  const props = __props;
13329
13372
  const searchResultStore = useSearchResultStore();
13330
13373
  const { currentFilterCount } = storeToRefs(searchResultStore);
@@ -13344,6 +13387,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
13344
13387
  const handleMobileToggle = () => {
13345
13388
  searchResultStore.setSidebarState({ visible: false });
13346
13389
  };
13390
+ const filter = () => {
13391
+ emit2("filter");
13392
+ handleMobileToggle();
13393
+ };
13347
13394
  return (_ctx, _cache) => {
13348
13395
  return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
13349
13396
  createBaseVNode("div", {
@@ -13364,7 +13411,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
13364
13411
  createBaseVNode("div", _hoisted_7$4, [
13365
13412
  createVNode(_sfc_main$F, {
13366
13413
  options: _ctx.options,
13367
- expandable: isActiveFiltersExpanded.value
13414
+ expandable: isActiveFiltersExpanded.value,
13415
+ onFilter: filter
13368
13416
  }, null, 8, ["options", "expandable"])
13369
13417
  ])
13370
13418
  ])
@@ -13435,7 +13483,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
13435
13483
  props: {
13436
13484
  options: {}
13437
13485
  },
13438
- setup(__props) {
13486
+ emits: ["filter"],
13487
+ setup(__props, { emit: emit2 }) {
13488
+ const filter = () => {
13489
+ emit2("filter");
13490
+ };
13439
13491
  return (_ctx, _cache) => {
13440
13492
  var _a;
13441
13493
  return openBlock(), createElementBlock("div", _hoisted_1$z, [
@@ -13443,7 +13495,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
13443
13495
  key: 0,
13444
13496
  options: _ctx.options.facets,
13445
13497
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
13446
- clearable: true
13498
+ clearable: true,
13499
+ onFilter: filter
13447
13500
  }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
13448
13501
  ]);
13449
13502
  };
@@ -13880,7 +13933,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13880
13933
  }, [
13881
13934
  createBaseVNode("div", _hoisted_1$t, [
13882
13935
  showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13883
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$S, {
13936
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13884
13937
  key: 2,
13885
13938
  label: searchSummaryLabel.value,
13886
13939
  clearable: unref(hasAnyFilter) && showFilterClear.value,
@@ -13921,7 +13974,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
13921
13974
  },
13922
13975
  setup(__props) {
13923
13976
  return (_ctx, _cache) => {
13924
- return openBlock(), createBlock(_sfc_main$1d, {
13977
+ return openBlock(), createBlock(_sfc_main$1e, {
13925
13978
  item: _ctx.item,
13926
13979
  options: _ctx.options,
13927
13980
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -14559,7 +14612,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14559
14612
  "data-cy": "lupa-search-result-product-card",
14560
14613
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
14561
14614
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
14562
- createVNode(_sfc_main$_, { options: badgesOptions.value }, null, 8, ["options"]),
14615
+ createVNode(_sfc_main$$, { options: badgesOptions.value }, null, 8, ["options"]),
14563
14616
  createBaseVNode("div", {
14564
14617
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
14565
14618
  }, [
@@ -14579,7 +14632,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14579
14632
  link: link.value
14580
14633
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
14581
14634
  }), 128)),
14582
- createVNode(_sfc_main$_, {
14635
+ createVNode(_sfc_main$$, {
14583
14636
  options: badgesOptions.value,
14584
14637
  position: "image",
14585
14638
  class: "lupa-image-badges"
@@ -14922,7 +14975,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
14922
14975
  options: {},
14923
14976
  ssr: { type: Boolean }
14924
14977
  },
14925
- setup(__props) {
14978
+ emits: ["filter"],
14979
+ setup(__props, { emit: emit2 }) {
14926
14980
  const props = __props;
14927
14981
  const searchResultStore = useSearchResultStore();
14928
14982
  const paramStore = useParamsStore();
@@ -15013,6 +15067,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15013
15067
  params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE), value: "1" }]
15014
15068
  });
15015
15069
  };
15070
+ const filter = () => {
15071
+ emit2("filter");
15072
+ };
15016
15073
  return (_ctx, _cache) => {
15017
15074
  var _a;
15018
15075
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
@@ -15029,9 +15086,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15029
15086
  key: 1,
15030
15087
  class: "lupa-toolbar-mobile",
15031
15088
  options: _ctx.options,
15032
- "pagination-location": "top"
15089
+ "pagination-location": "top",
15090
+ onFilter: filter
15033
15091
  }, null, 8, ["options"])) : createCommentVNode("", true),
15034
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$P, {
15092
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15035
15093
  key: 2,
15036
15094
  class: normalizeClass(currentFiltersClass.value),
15037
15095
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15386,8 +15444,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15386
15444
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
15387
15445
  }, [
15388
15446
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
15389
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15390
- createVNode(_sfc_main$R, {
15447
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15448
+ createVNode(_sfc_main$S, {
15391
15449
  "show-summary": true,
15392
15450
  options: _ctx.options,
15393
15451
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -15399,7 +15457,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15399
15457
  }, null, 8, ["options"])) : createCommentVNode("", true),
15400
15458
  _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
15401
15459
  key: 2,
15402
- options: _ctx.options.filters
15460
+ options: _ctx.options.filters,
15461
+ onFilter: handleParamsChange
15403
15462
  }, null, 8, ["options"])) : createCommentVNode("", true),
15404
15463
  unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
15405
15464
  key: 3,
@@ -15410,17 +15469,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15410
15469
  key: 0,
15411
15470
  options: (_b = _ctx.options.filters) != null ? _b : {},
15412
15471
  ref_key: "searchResultsFilters",
15413
- ref: searchResultsFilters
15472
+ ref: searchResultsFilters,
15473
+ onFilter: handleParamsChange
15414
15474
  }, null, 8, ["options"])) : createCommentVNode("", true),
15415
15475
  createBaseVNode("div", _hoisted_3$4, [
15416
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15417
- createVNode(_sfc_main$R, {
15476
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15477
+ createVNode(_sfc_main$S, {
15418
15478
  options: _ctx.options,
15419
15479
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
15420
15480
  }, null, 8, ["options", "is-product-list"]),
15421
15481
  createVNode(_sfc_main$e, {
15422
15482
  options: _ctx.options,
15423
- ssr: ssrEnabled.value
15483
+ ssr: ssrEnabled.value,
15484
+ onFilter: handleParamsChange
15424
15485
  }, {
15425
15486
  append: withCtx(() => [
15426
15487
  renderSlot(_ctx.$slots, "default")
@@ -15429,8 +15490,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15429
15490
  }, 8, ["options", "ssr"])
15430
15491
  ])
15431
15492
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
15432
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15433
- createVNode(_sfc_main$R, {
15493
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15494
+ createVNode(_sfc_main$S, {
15434
15495
  options: _ctx.options,
15435
15496
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
15436
15497
  }, null, 8, ["options", "is-product-list"]),
@@ -15439,11 +15500,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15439
15500
  key: 0,
15440
15501
  options: (_e = _ctx.options.filters) != null ? _e : {},
15441
15502
  ref_key: "searchResultsFilters",
15442
- ref: searchResultsFilters
15503
+ ref: searchResultsFilters,
15504
+ onFilter: handleParamsChange
15443
15505
  }, null, 8, ["options"])) : createCommentVNode("", true),
15444
15506
  createVNode(_sfc_main$e, {
15445
15507
  options: _ctx.options,
15446
- ssr: ssrEnabled.value
15508
+ ssr: ssrEnabled.value,
15509
+ onFilter: handleParamsChange
15447
15510
  }, createSlots({
15448
15511
  append: withCtx(() => [
15449
15512
  renderSlot(_ctx.$slots, "default")
@@ -21065,7 +21128,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21065
21128
  onClick: withModifiers(innerClick, ["stop"])
21066
21129
  }, [
21067
21130
  createBaseVNode("div", _hoisted_2$7, [
21068
- createVNode(_sfc_main$U, {
21131
+ createVNode(_sfc_main$V, {
21069
21132
  options: fullSearchBoxOptions.value,
21070
21133
  "is-search-container": true,
21071
21134
  ref_key: "searchBox",
@@ -22436,7 +22499,7 @@ const _hoisted_4 = {
22436
22499
  class: "lupa-chat-spinner-main"
22437
22500
  };
22438
22501
  const _hoisted_5 = { class: "lupasearch-chat-input" };
22439
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
22502
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
22440
22503
  __name: "ChatContainer",
22441
22504
  props: {
22442
22505
  options: {}
@@ -28077,7 +28140,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
28077
28140
  };
28078
28141
  __expose({ fetch: fetch2 });
28079
28142
  return (_ctx, _cache) => {
28080
- return openBlock(), createBlock(unref(_sfc_main$U), {
28143
+ return openBlock(), createBlock(unref(_sfc_main$V), {
28081
28144
  options: fullSearchBoxOptions.value,
28082
28145
  ref_key: "searchBox",
28083
28146
  ref: searchBox2
@@ -28914,7 +28977,7 @@ const chat = (options, mountOptions) => {
28914
28977
  }
28915
28978
  return;
28916
28979
  }
28917
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1m, {
28980
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1n, {
28918
28981
  options
28919
28982
  });
28920
28983
  if (!instance) {