@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.
@@ -8447,7 +8447,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8447
8447
  resetHighlightIndex
8448
8448
  };
8449
8449
  });
8450
- const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8450
+ const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
8451
8451
  const _hoisted_2$P = { class: "lupa-input-clear" };
8452
8452
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8453
8453
  const _hoisted_4$s = ["value"];
@@ -8456,7 +8456,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8456
8456
  key: 0,
8457
8457
  class: "lupa-close-label"
8458
8458
  };
8459
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8459
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8460
8460
  __name: "SearchBoxInput",
8461
8461
  props: {
8462
8462
  options: {},
@@ -8537,7 +8537,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8537
8537
  };
8538
8538
  __expose({ focus });
8539
8539
  return (_ctx, _cache) => {
8540
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8540
+ return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8541
8541
  createBaseVNode("div", _hoisted_2$P, [
8542
8542
  createBaseVNode("div", {
8543
8543
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
@@ -8579,7 +8579,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8579
8579
  };
8580
8580
  }
8581
8581
  });
8582
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8582
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8583
8583
  __name: "SearchBoxMoreResults",
8584
8584
  props: {
8585
8585
  labels: {},
@@ -8611,9 +8611,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8611
8611
  };
8612
8612
  }
8613
8613
  });
8614
- const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
8614
+ const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
8615
8615
  const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
8616
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8616
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8617
8617
  __name: "SearchBoxHistoryItem",
8618
8618
  props: {
8619
8619
  item: {},
@@ -8629,7 +8629,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8629
8629
  emit2("click", { query: props.item });
8630
8630
  };
8631
8631
  return (_ctx, _cache) => {
8632
- return openBlock(), createElementBlock("div", _hoisted_1$1c, [
8632
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8633
8633
  createBaseVNode("div", _hoisted_2$O, [
8634
8634
  createBaseVNode("div", {
8635
8635
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
@@ -8644,11 +8644,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8644
8644
  };
8645
8645
  }
8646
8646
  });
8647
- const _hoisted_1$1b = {
8647
+ const _hoisted_1$1c = {
8648
8648
  key: 0,
8649
8649
  class: "lupa-search-box-history-panel"
8650
8650
  };
8651
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8651
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8652
8652
  __name: "SearchBoxHistoryPanel",
8653
8653
  props: {
8654
8654
  options: {}
@@ -8689,9 +8689,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8689
8689
  }
8690
8690
  };
8691
8691
  return (_ctx, _cache) => {
8692
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
8692
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
8693
8693
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8694
- return openBlock(), createBlock(_sfc_main$1j, {
8694
+ return openBlock(), createBlock(_sfc_main$1k, {
8695
8695
  key: item,
8696
8696
  item,
8697
8697
  highlighted: index === highlightIndex.value,
@@ -8707,19 +8707,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8707
8707
  };
8708
8708
  }
8709
8709
  });
8710
- const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
8711
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8710
+ const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
8711
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8712
8712
  __name: "SearchBoxNoResults",
8713
8713
  props: {
8714
8714
  labels: {}
8715
8715
  },
8716
8716
  setup(__props) {
8717
8717
  return (_ctx, _cache) => {
8718
- return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
8718
+ return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
8719
8719
  };
8720
8720
  }
8721
8721
  });
8722
- const _hoisted_1$19 = ["innerHTML"];
8722
+ const _hoisted_1$1a = ["innerHTML"];
8723
8723
  const _hoisted_2$N = {
8724
8724
  key: 1,
8725
8725
  "data-cy": "lupa-suggestion-value",
@@ -8738,7 +8738,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8738
8738
  class: "lupa-suggestion-facet-value",
8739
8739
  "data-cy": "lupa-suggestion-facet-value"
8740
8740
  };
8741
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8741
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8742
8742
  __name: "SearchBoxSuggestion",
8743
8743
  props: {
8744
8744
  suggestion: {},
@@ -8774,7 +8774,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8774
8774
  class: "lupa-suggestion-value",
8775
8775
  "data-cy": "lupa-suggestion-value",
8776
8776
  innerHTML: _ctx.suggestion.displayHighlight
8777
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8777
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8778
8778
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8779
8779
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8780
8780
  createBaseVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -8783,11 +8783,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8783
8783
  };
8784
8784
  }
8785
8785
  });
8786
- const _hoisted_1$18 = {
8786
+ const _hoisted_1$19 = {
8787
8787
  id: "lupa-search-box-suggestions",
8788
8788
  "data-cy": "lupa-search-box-suggestions"
8789
8789
  };
8790
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8790
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8791
8791
  __name: "SearchBoxSuggestions",
8792
8792
  props: {
8793
8793
  items: {},
@@ -8847,9 +8847,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8847
8847
  });
8848
8848
  });
8849
8849
  return (_ctx, _cache) => {
8850
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
8850
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [
8851
8851
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8852
- return openBlock(), createBlock(_sfc_main$1g, {
8852
+ return openBlock(), createBlock(_sfc_main$1h, {
8853
8853
  key: getSuggestionKey(item),
8854
8854
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8855
8855
  suggestion: item,
@@ -8877,7 +8877,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8877
8877
  }, timeout);
8878
8878
  };
8879
8879
  };
8880
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8880
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8881
8881
  __name: "SearchBoxSuggestionsWrapper",
8882
8882
  props: {
8883
8883
  panel: {},
@@ -8918,7 +8918,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8918
8918
  };
8919
8919
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8920
8920
  return (_ctx, _cache) => {
8921
- return openBlock(), createBlock(_sfc_main$1f, {
8921
+ return openBlock(), createBlock(_sfc_main$1g, {
8922
8922
  items: searchResult.value,
8923
8923
  highlight: _ctx.panel.highlight,
8924
8924
  queryKey: _ctx.panel.queryKey,
@@ -9021,8 +9021,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9021
9021
  targetImage.src = placeholder;
9022
9022
  }
9023
9023
  };
9024
- const _hoisted_1$17 = ["src"];
9025
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9024
+ const _hoisted_1$18 = ["src"];
9025
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9026
9026
  __name: "ProductImage",
9027
9027
  props: {
9028
9028
  item: {},
@@ -9140,7 +9140,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9140
9140
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
9141
9141
  onError: replaceWithPlaceholder,
9142
9142
  key: finalUrl.value
9143
- }), null, 16, _hoisted_1$17))
9143
+ }), null, 16, _hoisted_1$18))
9144
9144
  ]),
9145
9145
  _: 1
9146
9146
  })
@@ -9148,7 +9148,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9148
9148
  };
9149
9149
  }
9150
9150
  });
9151
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9151
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9152
9152
  __name: "SearchBoxProductImage",
9153
9153
  props: {
9154
9154
  item: {},
@@ -9156,7 +9156,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9156
9156
  },
9157
9157
  setup(__props) {
9158
9158
  return (_ctx, _cache) => {
9159
- return openBlock(), createBlock(_sfc_main$1d, {
9159
+ return openBlock(), createBlock(_sfc_main$1e, {
9160
9160
  item: _ctx.item,
9161
9161
  options: _ctx.options,
9162
9162
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -9165,12 +9165,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9165
9165
  };
9166
9166
  }
9167
9167
  });
9168
- const _hoisted_1$16 = ["innerHTML"];
9168
+ const _hoisted_1$17 = ["innerHTML"];
9169
9169
  const _hoisted_2$M = {
9170
9170
  key: 1,
9171
9171
  class: "lupa-search-box-product-title"
9172
9172
  };
9173
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9173
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9174
9174
  __name: "SearchBoxProductTitle",
9175
9175
  props: {
9176
9176
  item: {},
@@ -9190,18 +9190,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9190
9190
  key: 0,
9191
9191
  class: "lupa-search-box-product-title",
9192
9192
  innerHTML: title.value
9193
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
9193
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
9194
9194
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
9195
9195
  ]));
9196
9196
  };
9197
9197
  }
9198
9198
  });
9199
- const _hoisted_1$15 = ["innerHTML"];
9199
+ const _hoisted_1$16 = ["innerHTML"];
9200
9200
  const _hoisted_2$L = {
9201
9201
  key: 1,
9202
9202
  class: "lupa-search-box-product-description"
9203
9203
  };
9204
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9204
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9205
9205
  __name: "SearchBoxProductDescription",
9206
9206
  props: {
9207
9207
  item: {},
@@ -9221,12 +9221,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9221
9221
  key: 0,
9222
9222
  class: "lupa-search-box-product-description",
9223
9223
  innerHTML: description.value
9224
- }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
9224
+ }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
9225
9225
  };
9226
9226
  }
9227
9227
  });
9228
- const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
9229
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9228
+ const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
9229
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9230
9230
  __name: "SearchBoxProductPrice",
9231
9231
  props: {
9232
9232
  item: {},
@@ -9244,14 +9244,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9244
9244
  );
9245
9245
  });
9246
9246
  return (_ctx, _cache) => {
9247
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
9247
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
9248
9248
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
9249
9249
  ]);
9250
9250
  };
9251
9251
  }
9252
9252
  });
9253
- const _hoisted_1$13 = { class: "lupa-search-box-product-regular-price" };
9254
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9253
+ const _hoisted_1$14 = { class: "lupa-search-box-product-regular-price" };
9254
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9255
9255
  __name: "SearchBoxProductRegularPrice",
9256
9256
  props: {
9257
9257
  item: {},
@@ -9269,16 +9269,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9269
9269
  );
9270
9270
  });
9271
9271
  return (_ctx, _cache) => {
9272
- return openBlock(), createElementBlock("div", _hoisted_1$13, toDisplayString(price.value), 1);
9272
+ return openBlock(), createElementBlock("div", _hoisted_1$14, toDisplayString(price.value), 1);
9273
9273
  };
9274
9274
  }
9275
9275
  });
9276
- const _hoisted_1$12 = ["innerHTML"];
9276
+ const _hoisted_1$13 = ["innerHTML"];
9277
9277
  const _hoisted_2$K = { key: 0 };
9278
9278
  const _hoisted_3$y = { key: 1 };
9279
9279
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
9280
9280
  const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
9281
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9281
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9282
9282
  __name: "SearchBoxProductCustom",
9283
9283
  props: {
9284
9284
  item: {},
@@ -9304,7 +9304,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9304
9304
  key: 0,
9305
9305
  class: [className.value, "lupa-search-box-product-custom"],
9306
9306
  innerHTML: text.value
9307
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12)) : (openBlock(), createElementBlock("div", mergeProps({
9307
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (openBlock(), createElementBlock("div", mergeProps({
9308
9308
  key: 1,
9309
9309
  class: [className.value, "lupa-search-box-product-custom"]
9310
9310
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
@@ -9316,8 +9316,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9316
9316
  };
9317
9317
  }
9318
9318
  });
9319
- const _hoisted_1$11 = ["innerHTML"];
9320
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9319
+ const _hoisted_1$12 = ["innerHTML"];
9320
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9321
9321
  __name: "SearchBoxProductCustomHtml",
9322
9322
  props: {
9323
9323
  item: {},
@@ -9337,7 +9337,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9337
9337
  return openBlock(), createElementBlock("div", mergeProps({
9338
9338
  class: className.value,
9339
9339
  innerHTML: text.value
9340
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11);
9340
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
9341
9341
  };
9342
9342
  }
9343
9343
  });
@@ -9535,10 +9535,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9535
9535
  clearSearchResult
9536
9536
  };
9537
9537
  });
9538
- const _hoisted_1$10 = { class: "lupa-search-box-add-to-cart-wrapper" };
9538
+ const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
9539
9539
  const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
9540
9540
  const _hoisted_3$x = ["onClick", "disabled"];
9541
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9541
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9542
9542
  __name: "SearchBoxProductAddToCart",
9543
9543
  props: {
9544
9544
  item: {},
@@ -9565,7 +9565,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9565
9565
  loading.value = false;
9566
9566
  });
9567
9567
  return (_ctx, _cache) => {
9568
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
9568
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
9569
9569
  createBaseVNode("div", _hoisted_2$J, [
9570
9570
  createBaseVNode("button", {
9571
9571
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -9579,23 +9579,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9579
9579
  };
9580
9580
  }
9581
9581
  });
9582
- const _hoisted_1$$ = {
9582
+ const _hoisted_1$10 = {
9583
9583
  key: 1,
9584
9584
  class: "lupa-search-box-element-badge-wrapper"
9585
9585
  };
9586
9586
  const __default__$4 = {
9587
9587
  components: {
9588
- SearchBoxProductImage: _sfc_main$1c,
9589
- SearchBoxProductTitle: _sfc_main$1b,
9590
- SearchBoxProductDescription: _sfc_main$1a,
9591
- SearchBoxProductPrice: _sfc_main$19,
9592
- SearchBoxProductRegularPrice: _sfc_main$18,
9593
- SearchBoxProductCustom: _sfc_main$17,
9594
- SearchBoxProductCustomHtml: _sfc_main$16,
9595
- SearchBoxProductAddToCart: _sfc_main$15
9588
+ SearchBoxProductImage: _sfc_main$1d,
9589
+ SearchBoxProductTitle: _sfc_main$1c,
9590
+ SearchBoxProductDescription: _sfc_main$1b,
9591
+ SearchBoxProductPrice: _sfc_main$1a,
9592
+ SearchBoxProductRegularPrice: _sfc_main$19,
9593
+ SearchBoxProductCustom: _sfc_main$18,
9594
+ SearchBoxProductCustomHtml: _sfc_main$17,
9595
+ SearchBoxProductAddToCart: _sfc_main$16
9596
9596
  }
9597
9597
  };
9598
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9598
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9599
9599
  __name: "SearchBoxProductElement",
9600
9600
  props: {
9601
9601
  item: {},
@@ -9653,7 +9653,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9653
9653
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
9654
9654
  inStock: _ctx.isInStock
9655
9655
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
9656
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$$, [
9656
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
9657
9657
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
9658
9658
  key: 0,
9659
9659
  item: enhancedItem.value,
@@ -9667,14 +9667,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9667
9667
  };
9668
9668
  }
9669
9669
  }));
9670
- const _hoisted_1$_ = { class: "lupa-badge-title" };
9670
+ const _hoisted_1$$ = { class: "lupa-badge-title" };
9671
9671
  const _hoisted_2$I = ["src"];
9672
9672
  const _hoisted_3$w = { key: 1 };
9673
9673
  const _hoisted_4$p = {
9674
9674
  key: 0,
9675
9675
  class: "lupa-badge-full-text"
9676
9676
  };
9677
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9677
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9678
9678
  __name: "SearchResultGeneratedBadge",
9679
9679
  props: {
9680
9680
  options: {},
@@ -9707,7 +9707,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9707
9707
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
9708
9708
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
9709
9709
  }, [
9710
- createBaseVNode("span", _hoisted_1$_, [
9710
+ createBaseVNode("span", _hoisted_1$$, [
9711
9711
  image.value ? (openBlock(), createElementBlock("img", {
9712
9712
  key: 0,
9713
9713
  src: image.value
@@ -9719,8 +9719,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9719
9719
  };
9720
9720
  }
9721
9721
  });
9722
- const _hoisted_1$Z = { class: "lupa-generated-badges" };
9723
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9722
+ const _hoisted_1$_ = { class: "lupa-generated-badges" };
9723
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9724
9724
  __name: "SearchResultGeneratedBadges",
9725
9725
  props: {
9726
9726
  options: {}
@@ -9746,9 +9746,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9746
9746
  })).filter((b) => Boolean(b.id));
9747
9747
  });
9748
9748
  return (_ctx, _cache) => {
9749
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9749
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
9750
9750
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
9751
- return openBlock(), createBlock(_sfc_main$13, {
9751
+ return openBlock(), createBlock(_sfc_main$14, {
9752
9752
  key: badge.id,
9753
9753
  badge,
9754
9754
  options: _ctx.options
@@ -9758,8 +9758,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9758
9758
  };
9759
9759
  }
9760
9760
  });
9761
- const _hoisted_1$Y = ["innerHTML"];
9762
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9761
+ const _hoisted_1$Z = ["innerHTML"];
9762
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9763
9763
  __name: "CustomBadge",
9764
9764
  props: {
9765
9765
  badge: {}
@@ -9778,12 +9778,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9778
9778
  return openBlock(), createElementBlock("div", {
9779
9779
  class: normalizeClass(className.value),
9780
9780
  innerHTML: text.value
9781
- }, null, 10, _hoisted_1$Y);
9781
+ }, null, 10, _hoisted_1$Z);
9782
9782
  };
9783
9783
  }
9784
9784
  });
9785
- const _hoisted_1$X = { class: "lupa-text-badges" };
9786
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9785
+ const _hoisted_1$Y = { class: "lupa-text-badges" };
9786
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9787
9787
  __name: "TextBadge",
9788
9788
  props: {
9789
9789
  badge: {}
@@ -9798,7 +9798,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9798
9798
  return badges.value.slice(0, props.badge.maxItems);
9799
9799
  });
9800
9800
  return (_ctx, _cache) => {
9801
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
9801
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
9802
9802
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9803
9803
  return openBlock(), createElementBlock("div", {
9804
9804
  class: "lupa-badge lupa-text-badge",
@@ -9809,9 +9809,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9809
9809
  };
9810
9810
  }
9811
9811
  });
9812
- const _hoisted_1$W = { class: "lupa-image-badges" };
9812
+ const _hoisted_1$X = { class: "lupa-image-badges" };
9813
9813
  const _hoisted_2$H = ["src"];
9814
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9814
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9815
9815
  __name: "ImageBadge",
9816
9816
  props: {
9817
9817
  badge: {}
@@ -9831,7 +9831,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9831
9831
  return `${props.badge.rootImageUrl}${src}`;
9832
9832
  };
9833
9833
  return (_ctx, _cache) => {
9834
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
9834
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9835
9835
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9836
9836
  return openBlock(), createElementBlock("div", {
9837
9837
  class: "lupa-badge lupa-image-badge",
@@ -9846,15 +9846,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9846
9846
  };
9847
9847
  }
9848
9848
  });
9849
- const _hoisted_1$V = { id: "lupa-search-results-badges" };
9849
+ const _hoisted_1$W = { id: "lupa-search-results-badges" };
9850
9850
  const __default__$3 = {
9851
9851
  components: {
9852
- CustomBadge: _sfc_main$11,
9853
- TextBadge: _sfc_main$10,
9854
- ImageBadge: _sfc_main$$
9852
+ CustomBadge: _sfc_main$12,
9853
+ TextBadge: _sfc_main$11,
9854
+ ImageBadge: _sfc_main$10
9855
9855
  }
9856
9856
  };
9857
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9857
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9858
9858
  __name: "SearchResultsBadgeWrapper",
9859
9859
  props: {
9860
9860
  position: {},
@@ -9910,7 +9910,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9910
9910
  }
9911
9911
  };
9912
9912
  return (_ctx, _cache) => {
9913
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
9913
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9914
9914
  createBaseVNode("div", {
9915
9915
  id: "lupa-badges",
9916
9916
  class: normalizeClass(anchorPosition.value)
@@ -9921,7 +9921,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9921
9921
  badge
9922
9922
  }, null, 8, ["badge"]);
9923
9923
  }), 128)),
9924
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$12, {
9924
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$13, {
9925
9925
  key: 0,
9926
9926
  options: _ctx.options
9927
9927
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -9930,14 +9930,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9930
9930
  };
9931
9931
  }
9932
9932
  }));
9933
- const _hoisted_1$U = ["href"];
9933
+ const _hoisted_1$V = ["href"];
9934
9934
  const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
9935
9935
  const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
9936
9936
  const _hoisted_4$o = {
9937
9937
  key: 0,
9938
9938
  class: "lupa-search-box-product-add-to-cart-section"
9939
9939
  };
9940
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9940
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9941
9941
  __name: "SearchBoxProduct",
9942
9942
  props: {
9943
9943
  item: {},
@@ -9998,7 +9998,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9998
9998
  }), [
9999
9999
  createBaseVNode("div", _hoisted_2$G, [
10000
10000
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
10001
- return openBlock(), createBlock(_sfc_main$14, {
10001
+ return openBlock(), createBlock(_sfc_main$15, {
10002
10002
  class: "lupa-search-box-product-element",
10003
10003
  item: _ctx.item,
10004
10004
  element,
@@ -10011,7 +10011,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10011
10011
  createBaseVNode("div", _hoisted_3$v, [
10012
10012
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
10013
10013
  var _a;
10014
- return openBlock(), createBlock(_sfc_main$14, {
10014
+ return openBlock(), createBlock(_sfc_main$15, {
10015
10015
  key: element.key,
10016
10016
  class: "lupa-search-box-product-element",
10017
10017
  item: _ctx.item,
@@ -10022,7 +10022,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10022
10022
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
10023
10023
  name: "badges",
10024
10024
  fn: withCtx(() => [
10025
- createVNode(_sfc_main$_, {
10025
+ createVNode(_sfc_main$$, {
10026
10026
  options: badgeOptions.value,
10027
10027
  position: "card"
10028
10028
  }, null, 8, ["options"])
@@ -10033,7 +10033,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10033
10033
  }), 128))
10034
10034
  ]),
10035
10035
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
10036
- createVNode(_sfc_main$14, {
10036
+ createVNode(_sfc_main$15, {
10037
10037
  class: "lupa-search-box-product-element",
10038
10038
  item: _ctx.item,
10039
10039
  element: addToCartElement.value,
@@ -10042,7 +10042,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10042
10042
  isInStock: isInStock.value
10043
10043
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
10044
10044
  ])) : createCommentVNode("", true)
10045
- ], 16, _hoisted_1$U);
10045
+ ], 16, _hoisted_1$V);
10046
10046
  };
10047
10047
  }
10048
10048
  });
@@ -10103,8 +10103,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10103
10103
  };
10104
10104
  return { trackSearch, trackResults, trackEvent };
10105
10105
  });
10106
- const _hoisted_1$T = { id: "lupa-search-box-products" };
10107
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10106
+ const _hoisted_1$U = { id: "lupa-search-box-products" };
10107
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10108
10108
  __name: "SearchBoxProducts",
10109
10109
  props: {
10110
10110
  items: {},
@@ -10165,7 +10165,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10165
10165
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
10166
10166
  };
10167
10167
  return (_ctx, _cache) => {
10168
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
10168
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
10169
10169
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
10170
10170
  return renderSlot(_ctx.$slots, "productCard", {
10171
10171
  key: index,
@@ -10177,7 +10177,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10177
10177
  itemClicked: handleProductClick
10178
10178
  });
10179
10179
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
10180
- return openBlock(), createBlock(_sfc_main$Z, {
10180
+ return openBlock(), createBlock(_sfc_main$_, {
10181
10181
  key: index,
10182
10182
  item,
10183
10183
  panelOptions: _ctx.panelOptions,
@@ -10191,7 +10191,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10191
10191
  };
10192
10192
  }
10193
10193
  });
10194
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
10194
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10195
10195
  __name: "SearchBoxProductsWrapper",
10196
10196
  props: {
10197
10197
  panel: {},
@@ -10243,7 +10243,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10243
10243
  const getItemsDebounced = debounce$1(getItems, props.debounce);
10244
10244
  return (_ctx, _cache) => {
10245
10245
  var _a, _b;
10246
- return openBlock(), createBlock(_sfc_main$Y, {
10246
+ return openBlock(), createBlock(_sfc_main$Z, {
10247
10247
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10248
10248
  panelOptions: _ctx.panel,
10249
10249
  labels: _ctx.labels,
@@ -10261,7 +10261,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10261
10261
  };
10262
10262
  }
10263
10263
  });
10264
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
10264
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10265
10265
  __name: "SearchBoxRelatedSourceWrapper",
10266
10266
  props: {
10267
10267
  panel: {},
@@ -10333,7 +10333,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10333
10333
  });
10334
10334
  return (_ctx, _cache) => {
10335
10335
  var _a, _b;
10336
- return openBlock(), createBlock(_sfc_main$Y, {
10336
+ return openBlock(), createBlock(_sfc_main$Z, {
10337
10337
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10338
10338
  panelOptions: documentPanelOptions.value,
10339
10339
  labels: _ctx.labels,
@@ -10351,7 +10351,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10351
10351
  };
10352
10352
  }
10353
10353
  });
10354
- const _hoisted_1$S = {
10354
+ const _hoisted_1$T = {
10355
10355
  key: 0,
10356
10356
  id: "lupa-search-box-panel"
10357
10357
  };
@@ -10370,12 +10370,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10370
10370
  };
10371
10371
  const __default__$2 = {
10372
10372
  components: {
10373
- SearchBoxSuggestionsWrapper: _sfc_main$1e,
10374
- SearchBoxProductsWrapper: _sfc_main$X,
10375
- SearchBoxRelatedSourceWrapper: _sfc_main$W
10373
+ SearchBoxSuggestionsWrapper: _sfc_main$1f,
10374
+ SearchBoxProductsWrapper: _sfc_main$Y,
10375
+ SearchBoxRelatedSourceWrapper: _sfc_main$X
10376
10376
  }
10377
10377
  };
10378
- const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10378
+ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
10379
10379
  __name: "SearchBoxMainPanel",
10380
10380
  props: {
10381
10381
  options: {},
@@ -10521,7 +10521,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10521
10521
  ref_key: "panelContainer",
10522
10522
  ref: panelContainer
10523
10523
  }, [
10524
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
10524
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
10525
10525
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
10526
10526
  key: 0,
10527
10527
  class: "lupa-search-box-close-panel",
@@ -10566,18 +10566,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10566
10566
  ], 10, _hoisted_2$F);
10567
10567
  }), 128))
10568
10568
  ], 4),
10569
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1h, {
10569
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1i, {
10570
10570
  key: 1,
10571
10571
  labels: labels.value
10572
10572
  }, null, 8, ["labels"])) : createCommentVNode("", true),
10573
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1k, {
10573
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1l, {
10574
10574
  key: 2,
10575
10575
  labels: labels.value,
10576
10576
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
10577
10577
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
10578
10578
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
10579
10579
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
10580
- createVNode(_sfc_main$1i, {
10580
+ createVNode(_sfc_main$1j, {
10581
10581
  options: _ctx.options.history,
10582
10582
  history: history.value,
10583
10583
  onGoToResults: handleGoToResults,
@@ -10602,9 +10602,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10602
10602
  const elements = getElements(triggers);
10603
10603
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
10604
10604
  };
10605
- const _hoisted_1$R = { id: "lupa-search-box" };
10605
+ const _hoisted_1$S = { id: "lupa-search-box" };
10606
10606
  const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
10607
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
10607
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10608
10608
  __name: "SearchBox",
10609
10609
  props: {
10610
10610
  options: {},
@@ -10849,9 +10849,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10849
10849
  };
10850
10850
  return (_ctx, _cache) => {
10851
10851
  var _a2;
10852
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
10852
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
10853
10853
  createBaseVNode("div", _hoisted_2$E, [
10854
- createVNode(_sfc_main$1l, {
10854
+ createVNode(_sfc_main$1m, {
10855
10855
  options: inputOptions.value,
10856
10856
  suggestedValue: suggestedValue.value,
10857
10857
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -10862,7 +10862,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10862
10862
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
10863
10863
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
10864
10864
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
10865
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$V, {
10865
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
10866
10866
  key: 0,
10867
10867
  options: panelOptions.value,
10868
10868
  inputValue: inputValue.value,
@@ -10950,7 +10950,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10950
10950
  }
10951
10951
  return searchParams;
10952
10952
  };
10953
- const _hoisted_1$Q = {
10953
+ const _hoisted_1$R = {
10954
10954
  key: 0,
10955
10955
  id: "lupa-search-results-did-you-mean"
10956
10956
  };
@@ -10963,7 +10963,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10963
10963
  "data-cy": "did-you-mean-label"
10964
10964
  };
10965
10965
  const _hoisted_4$m = { key: 1 };
10966
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
10966
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10967
10967
  __name: "SearchResultsDidYouMean",
10968
10968
  props: {
10969
10969
  labels: {}
@@ -10995,7 +10995,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10995
10995
  paramStore.goToResults({ searchText, facet });
10996
10996
  };
10997
10997
  return (_ctx, _cache) => {
10998
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
10998
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
10999
10999
  unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
11000
11000
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
11001
11001
  return openBlock(), createElementBlock("span", { key: index }, [
@@ -11021,12 +11021,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11021
11021
  };
11022
11022
  }
11023
11023
  });
11024
- const _hoisted_1$P = {
11024
+ const _hoisted_1$Q = {
11025
11025
  key: 0,
11026
11026
  class: "lupa-search-results-summary"
11027
11027
  };
11028
11028
  const _hoisted_2$C = ["innerHTML"];
11029
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
11029
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
11030
11030
  __name: "SearchResultsSummary",
11031
11031
  props: {
11032
11032
  label: {},
@@ -11041,7 +11041,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11041
11041
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
11042
11042
  });
11043
11043
  return (_ctx, _cache) => {
11044
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
11044
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
11045
11045
  createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
11046
11046
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
11047
11047
  key: 0,
@@ -11053,7 +11053,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11053
11053
  };
11054
11054
  }
11055
11055
  });
11056
- const _hoisted_1$O = {
11056
+ const _hoisted_1$P = {
11057
11057
  key: 0,
11058
11058
  class: "lupa-result-page-title",
11059
11059
  "data-cy": "lupa-result-page-title"
@@ -11064,7 +11064,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11064
11064
  class: "lupa-results-total-count"
11065
11065
  };
11066
11066
  const _hoisted_4$l = ["innerHTML"];
11067
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
11067
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11068
11068
  __name: "SearchResultsTitle",
11069
11069
  props: {
11070
11070
  options: {},
@@ -11099,12 +11099,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11099
11099
  });
11100
11100
  return (_ctx, _cache) => {
11101
11101
  return openBlock(), createElementBlock("div", null, [
11102
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
11102
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11103
11103
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11104
11104
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11105
11105
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11106
11106
  ])) : createCommentVNode("", true),
11107
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$S, {
11107
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11108
11108
  key: 1,
11109
11109
  label: summaryLabel.value
11110
11110
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -11117,7 +11117,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11117
11117
  };
11118
11118
  }
11119
11119
  });
11120
- const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
11120
+ const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
11121
11121
  const _hoisted_2$A = {
11122
11122
  class: "lupa-current-filter-label",
11123
11123
  "data-cy": "lupa-current-filter-label"
@@ -11126,7 +11126,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11126
11126
  class: "lupa-current-filter-value",
11127
11127
  "data-cy": "lupa-current-filter-value"
11128
11128
  };
11129
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11129
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11130
11130
  __name: "CurrentFilterDisplay",
11131
11131
  props: {
11132
11132
  filter: {}
@@ -11138,7 +11138,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11138
11138
  emit2("remove", { filter: props.filter });
11139
11139
  };
11140
11140
  return (_ctx, _cache) => {
11141
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
11141
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
11142
11142
  createBaseVNode("div", {
11143
11143
  class: "lupa-current-filter-action",
11144
11144
  onClick: handleClick
@@ -11149,7 +11149,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11149
11149
  };
11150
11150
  }
11151
11151
  });
11152
- const _hoisted_1$M = { class: "lupa-filter-title-text" };
11152
+ const _hoisted_1$N = { class: "lupa-filter-title-text" };
11153
11153
  const _hoisted_2$z = {
11154
11154
  key: 0,
11155
11155
  class: "lupa-filter-count"
@@ -11159,7 +11159,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11159
11159
  class: "filter-values"
11160
11160
  };
11161
11161
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
11162
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11162
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11163
11163
  __name: "CurrentFilters",
11164
11164
  props: {
11165
11165
  options: {},
@@ -11220,7 +11220,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11220
11220
  class: "lupa-current-filter-title",
11221
11221
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
11222
11222
  }, [
11223
- createBaseVNode("div", _hoisted_1$M, [
11223
+ createBaseVNode("div", _hoisted_1$N, [
11224
11224
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
11225
11225
  _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
11226
11226
  ]),
@@ -11232,7 +11232,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11232
11232
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
11233
11233
  createBaseVNode("div", _hoisted_4$k, [
11234
11234
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
11235
- return openBlock(), createBlock(_sfc_main$Q, {
11235
+ return openBlock(), createBlock(_sfc_main$R, {
11236
11236
  key: filter.key + "_" + filter.value,
11237
11237
  filter,
11238
11238
  onRemove: handleRemove
@@ -11249,8 +11249,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11249
11249
  };
11250
11250
  }
11251
11251
  });
11252
- const _hoisted_1$L = ["href"];
11253
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11252
+ const _hoisted_1$M = ["href"];
11253
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11254
11254
  __name: "CategoryFilterItem",
11255
11255
  props: {
11256
11256
  options: {},
@@ -11287,12 +11287,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11287
11287
  "data-cy": "lupa-child-category-item",
11288
11288
  href: urlLink.value,
11289
11289
  onClick: handleNavigation
11290
- }, toDisplayString(title.value), 9, _hoisted_1$L)
11290
+ }, toDisplayString(title.value), 9, _hoisted_1$M)
11291
11291
  ], 2);
11292
11292
  };
11293
11293
  }
11294
11294
  });
11295
- const _hoisted_1$K = {
11295
+ const _hoisted_1$L = {
11296
11296
  class: "lupa-category-filter",
11297
11297
  "data-cy": "lupa-category-filter"
11298
11298
  };
@@ -11300,7 +11300,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11300
11300
  const _hoisted_3$p = ["href"];
11301
11301
  const _hoisted_4$j = ["href"];
11302
11302
  const _hoisted_5$d = { class: "lupa-child-category-list" };
11303
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11303
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11304
11304
  __name: "CategoryFilter",
11305
11305
  props: {
11306
11306
  options: {}
@@ -11386,7 +11386,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11386
11386
  };
11387
11387
  __expose({ fetch: fetch2 });
11388
11388
  return (_ctx, _cache) => {
11389
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
11389
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
11390
11390
  createBaseVNode("div", _hoisted_2$y, [
11391
11391
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
11392
11392
  key: 0,
@@ -11407,7 +11407,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11407
11407
  ], 2),
11408
11408
  createBaseVNode("div", _hoisted_5$d, [
11409
11409
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
11410
- return openBlock(), createBlock(_sfc_main$O, {
11410
+ return openBlock(), createBlock(_sfc_main$P, {
11411
11411
  key: getCategoryKey(child),
11412
11412
  item: child,
11413
11413
  options: _ctx.options
@@ -11418,7 +11418,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11418
11418
  };
11419
11419
  }
11420
11420
  });
11421
- const _hoisted_1$J = {
11421
+ const _hoisted_1$K = {
11422
11422
  class: "lupa-search-result-facet-term-values",
11423
11423
  "data-cy": "lupa-search-result-facet-term-values"
11424
11424
  };
@@ -11434,7 +11434,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11434
11434
  };
11435
11435
  const _hoisted_9$1 = { key: 0 };
11436
11436
  const _hoisted_10$1 = { key: 1 };
11437
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
11437
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11438
11438
  __name: "TermFacet",
11439
11439
  props: {
11440
11440
  options: {},
@@ -11503,7 +11503,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11503
11503
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
11504
11504
  };
11505
11505
  return (_ctx, _cache) => {
11506
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
11506
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
11507
11507
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
11508
11508
  key: 0,
11509
11509
  class: "lupa-term-filter",
@@ -12521,7 +12521,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12521
12521
  m.render = function(e, t, r, i, n, o) {
12522
12522
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
12523
12523
  }, m.__file = "src/Slider.vue";
12524
- const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
12524
+ const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
12525
12525
  const _hoisted_2$w = {
12526
12526
  key: 0,
12527
12527
  class: "lupa-stats-facet-summary"
@@ -12549,7 +12549,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12549
12549
  key: 2,
12550
12550
  class: "lupa-stats-slider-wrapper"
12551
12551
  };
12552
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
12552
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12553
12553
  __name: "StatsFacet",
12554
12554
  props: {
12555
12555
  options: {},
@@ -12718,7 +12718,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12718
12718
  innerSliderRange.value = value;
12719
12719
  };
12720
12720
  return (_ctx, _cache) => {
12721
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
12721
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
12722
12722
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
12723
12723
  createBaseVNode("div", null, [
12724
12724
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
@@ -12785,7 +12785,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12785
12785
  };
12786
12786
  }
12787
12787
  });
12788
- const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
12788
+ const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
12789
12789
  const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
12790
12790
  const _hoisted_3$m = { class: "lupa-term-label" };
12791
12791
  const _hoisted_4$g = {
@@ -12796,7 +12796,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12796
12796
  key: 0,
12797
12797
  class: "lupa-facet-level"
12798
12798
  };
12799
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
12799
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12800
12800
  __name: "HierarchyFacetLevel",
12801
12801
  props: {
12802
12802
  options: {},
@@ -12842,7 +12842,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12842
12842
  "data-cy": "lupa-facet-term",
12843
12843
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
12844
12844
  }, [
12845
- createBaseVNode("div", _hoisted_1$H, [
12845
+ createBaseVNode("div", _hoisted_1$I, [
12846
12846
  createBaseVNode("span", {
12847
12847
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
12848
12848
  }, null, 2)
@@ -12868,13 +12868,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12868
12868
  };
12869
12869
  }
12870
12870
  });
12871
- const _hoisted_1$G = {
12871
+ const _hoisted_1$H = {
12872
12872
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
12873
12873
  "data-cy": "lupa-search-result-facet-term-values"
12874
12874
  };
12875
12875
  const _hoisted_2$u = { key: 0 };
12876
12876
  const _hoisted_3$l = ["placeholder"];
12877
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
12877
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12878
12878
  __name: "HierarchyFacet",
12879
12879
  props: {
12880
12880
  options: {},
@@ -12924,7 +12924,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12924
12924
  showAll.value = true;
12925
12925
  };
12926
12926
  return (_ctx, _cache) => {
12927
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
12927
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
12928
12928
  isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
12929
12929
  withDirectives(createBaseVNode("input", {
12930
12930
  class: "lupa-term-filter",
@@ -12936,7 +12936,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12936
12936
  ])
12937
12937
  ])) : createCommentVNode("", true),
12938
12938
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
12939
- return openBlock(), createBlock(_sfc_main$K, {
12939
+ return openBlock(), createBlock(_sfc_main$L, {
12940
12940
  key: item.title,
12941
12941
  options: _ctx.options,
12942
12942
  item,
@@ -12956,7 +12956,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12956
12956
  };
12957
12957
  }
12958
12958
  });
12959
- const _hoisted_1$F = { class: "lupa-facet-label-text" };
12959
+ const _hoisted_1$G = { class: "lupa-facet-label-text" };
12960
12960
  const _hoisted_2$t = {
12961
12961
  key: 0,
12962
12962
  class: "lupa-facet-content",
@@ -12964,12 +12964,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12964
12964
  };
12965
12965
  const __default__$1 = {
12966
12966
  components: {
12967
- TermFacet: _sfc_main$M,
12968
- StatsFacet: _sfc_main$L,
12969
- HierarchyFacet: _sfc_main$J
12967
+ TermFacet: _sfc_main$N,
12968
+ StatsFacet: _sfc_main$M,
12969
+ HierarchyFacet: _sfc_main$K
12970
12970
  }
12971
12971
  };
12972
- const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12972
+ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12973
12973
  __name: "FacetDisplay",
12974
12974
  props: {
12975
12975
  options: {},
@@ -13081,7 +13081,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13081
13081
  "data-cy": "lupa-search-result-facet-label",
13082
13082
  onClick: toggleFacet
13083
13083
  }, [
13084
- createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
13084
+ createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
13085
13085
  createBaseVNode("div", {
13086
13086
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
13087
13087
  }, null, 2)
@@ -13104,12 +13104,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13104
13104
  };
13105
13105
  }
13106
13106
  }));
13107
- const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
13107
+ const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
13108
13108
  const _hoisted_2$s = {
13109
13109
  key: 0,
13110
13110
  class: "lupa-facets-title"
13111
13111
  };
13112
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
13112
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
13113
13113
  __name: "FacetList",
13114
13114
  props: {
13115
13115
  options: {},
@@ -13143,14 +13143,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13143
13143
  };
13144
13144
  return (_ctx, _cache) => {
13145
13145
  var _a;
13146
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
13146
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
13147
13147
  _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
13148
13148
  createBaseVNode("div", {
13149
13149
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
13150
13150
  }, [
13151
13151
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
13152
13152
  var _a2;
13153
- return openBlock(), createBlock(_sfc_main$I, {
13153
+ return openBlock(), createBlock(_sfc_main$J, {
13154
13154
  key: facet.key,
13155
13155
  facet,
13156
13156
  currentFilters: currentFiltersValue.value,
@@ -13165,6 +13165,31 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13165
13165
  };
13166
13166
  }
13167
13167
  });
13168
+ const _hoisted_1$E = ["onClick"];
13169
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
13170
+ __name: "FacetsButton",
13171
+ props: {
13172
+ options: {}
13173
+ },
13174
+ emits: ["filter"],
13175
+ setup(__props, { emit: emit2 }) {
13176
+ const props = __props;
13177
+ const label = computed(() => {
13178
+ var _a, _b;
13179
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.facetFilterButton) != null ? _b : "";
13180
+ });
13181
+ const handleClick = () => {
13182
+ emit2("filter");
13183
+ };
13184
+ return (_ctx, _cache) => {
13185
+ return label.value ? (openBlock(), createElementBlock("button", {
13186
+ key: 0,
13187
+ class: "lupa-facets-button-filter",
13188
+ onClick: withModifiers(handleClick, ["stop"])
13189
+ }, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
13190
+ };
13191
+ }
13192
+ });
13168
13193
  const _hoisted_1$D = { class: "lupa-search-result-facets" };
13169
13194
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
13170
13195
  __name: "Facets",
@@ -13173,7 +13198,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13173
13198
  facetStyle: {},
13174
13199
  clearable: { type: Boolean }
13175
13200
  },
13176
- setup(__props) {
13201
+ emits: ["filter"],
13202
+ setup(__props, { emit: emit2 }) {
13177
13203
  const props = __props;
13178
13204
  const paramStore = useParamsStore();
13179
13205
  const searchResultStore = useSearchResultStore();
@@ -13203,6 +13229,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13203
13229
  timeout: (_f = (_e = searchResultOptions.value.scrollToResults) == null ? void 0 : _e.timeout) != null ? _f : 500
13204
13230
  };
13205
13231
  });
13232
+ const showFilterButton = computed(() => {
13233
+ return props.options.filterBehavior === "withFilterButton";
13234
+ });
13206
13235
  const handleFacetSelect = (facetAction) => {
13207
13236
  switch (facetAction.type) {
13208
13237
  case "terms":
@@ -13241,9 +13270,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13241
13270
  const param = getFacetKey(facet.key, facet.type);
13242
13271
  paramStore.removeParameters({ paramsToRemove: [param] });
13243
13272
  };
13273
+ const filter = () => {
13274
+ emit2("filter");
13275
+ };
13244
13276
  return (_ctx, _cache) => {
13245
13277
  return openBlock(), createElementBlock("div", _hoisted_1$D, [
13246
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$H, {
13278
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$I, {
13247
13279
  key: 0,
13248
13280
  options: _ctx.options,
13249
13281
  facets: regularFacets.value,
@@ -13252,7 +13284,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13252
13284
  clearable: _ctx.clearable,
13253
13285
  onSelect: handleFacetSelect,
13254
13286
  onClear: clear2
13255
- }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true)
13287
+ }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
13288
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$H, {
13289
+ key: 1,
13290
+ options: _ctx.options,
13291
+ onFilter: filter
13292
+ }, null, 8, ["options"])) : createCommentVNode("", true)
13256
13293
  ]);
13257
13294
  };
13258
13295
  }
@@ -13267,7 +13304,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13267
13304
  options: {},
13268
13305
  expandable: { type: Boolean }
13269
13306
  },
13270
- setup(__props, { expose: __expose }) {
13307
+ emits: ["filter"],
13308
+ setup(__props, { expose: __expose, emit: emit2 }) {
13271
13309
  const props = __props;
13272
13310
  const categoryFilters = ref(null);
13273
13311
  const desktopFiltersVisible = computed(() => {
@@ -13281,6 +13319,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13281
13319
  const showCurrentFilters = computed(() => {
13282
13320
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
13283
13321
  });
13322
+ const filter = () => {
13323
+ emit2("filter");
13324
+ };
13284
13325
  const fetch2 = () => {
13285
13326
  var _a;
13286
13327
  if (categoryFilters.value) {
@@ -13291,12 +13332,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13291
13332
  return (_ctx, _cache) => {
13292
13333
  var _a;
13293
13334
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
13294
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
13335
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
13295
13336
  key: 0,
13296
13337
  options: _ctx.options.currentFilters,
13297
13338
  expandable: (_a = _ctx.expandable) != null ? _a : false
13298
13339
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
13299
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$N, {
13340
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$O, {
13300
13341
  key: 1,
13301
13342
  options: _ctx.options.categories,
13302
13343
  ref_key: "categoryFilters",
@@ -13304,7 +13345,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13304
13345
  }, null, 8, ["options"])) : createCommentVNode("", true),
13305
13346
  _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
13306
13347
  key: 2,
13307
- options: _ctx.options.facets
13348
+ options: _ctx.options.facets,
13349
+ onFilter: filter
13308
13350
  }, null, 8, ["options"])) : createCommentVNode("", true)
13309
13351
  ]);
13310
13352
  };
@@ -13328,7 +13370,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13328
13370
  props: {
13329
13371
  options: {}
13330
13372
  },
13331
- setup(__props) {
13373
+ emits: ["filter"],
13374
+ setup(__props, { emit: emit2 }) {
13332
13375
  const props = __props;
13333
13376
  const searchResultStore = useSearchResultStore();
13334
13377
  const { currentFilterCount } = storeToRefs(searchResultStore);
@@ -13348,6 +13391,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13348
13391
  const handleMobileToggle = () => {
13349
13392
  searchResultStore.setSidebarState({ visible: false });
13350
13393
  };
13394
+ const filter = () => {
13395
+ emit2("filter");
13396
+ handleMobileToggle();
13397
+ };
13351
13398
  return (_ctx, _cache) => {
13352
13399
  return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
13353
13400
  createBaseVNode("div", {
@@ -13368,7 +13415,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13368
13415
  createBaseVNode("div", _hoisted_7$4, [
13369
13416
  createVNode(_sfc_main$F, {
13370
13417
  options: _ctx.options,
13371
- expandable: isActiveFiltersExpanded.value
13418
+ expandable: isActiveFiltersExpanded.value,
13419
+ onFilter: filter
13372
13420
  }, null, 8, ["options", "expandable"])
13373
13421
  ])
13374
13422
  ])
@@ -13439,7 +13487,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13439
13487
  props: {
13440
13488
  options: {}
13441
13489
  },
13442
- setup(__props) {
13490
+ emits: ["filter"],
13491
+ setup(__props, { emit: emit2 }) {
13492
+ const filter = () => {
13493
+ emit2("filter");
13494
+ };
13443
13495
  return (_ctx, _cache) => {
13444
13496
  var _a;
13445
13497
  return openBlock(), createElementBlock("div", _hoisted_1$z, [
@@ -13447,7 +13499,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13447
13499
  key: 0,
13448
13500
  options: _ctx.options.facets,
13449
13501
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
13450
- clearable: true
13502
+ clearable: true,
13503
+ onFilter: filter
13451
13504
  }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
13452
13505
  ]);
13453
13506
  };
@@ -13884,7 +13937,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13884
13937
  }, [
13885
13938
  createBaseVNode("div", _hoisted_1$t, [
13886
13939
  showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13887
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$S, {
13940
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13888
13941
  key: 2,
13889
13942
  label: searchSummaryLabel.value,
13890
13943
  clearable: unref(hasAnyFilter) && showFilterClear.value,
@@ -13925,7 +13978,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13925
13978
  },
13926
13979
  setup(__props) {
13927
13980
  return (_ctx, _cache) => {
13928
- return openBlock(), createBlock(_sfc_main$1d, {
13981
+ return openBlock(), createBlock(_sfc_main$1e, {
13929
13982
  item: _ctx.item,
13930
13983
  options: _ctx.options,
13931
13984
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -14563,7 +14616,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14563
14616
  "data-cy": "lupa-search-result-product-card",
14564
14617
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
14565
14618
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
14566
- createVNode(_sfc_main$_, { options: badgesOptions.value }, null, 8, ["options"]),
14619
+ createVNode(_sfc_main$$, { options: badgesOptions.value }, null, 8, ["options"]),
14567
14620
  createBaseVNode("div", {
14568
14621
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
14569
14622
  }, [
@@ -14583,7 +14636,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14583
14636
  link: link.value
14584
14637
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
14585
14638
  }), 128)),
14586
- createVNode(_sfc_main$_, {
14639
+ createVNode(_sfc_main$$, {
14587
14640
  options: badgesOptions.value,
14588
14641
  position: "image",
14589
14642
  class: "lupa-image-badges"
@@ -14926,7 +14979,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14926
14979
  options: {},
14927
14980
  ssr: { type: Boolean }
14928
14981
  },
14929
- setup(__props) {
14982
+ emits: ["filter"],
14983
+ setup(__props, { emit: emit2 }) {
14930
14984
  const props = __props;
14931
14985
  const searchResultStore = useSearchResultStore();
14932
14986
  const paramStore = useParamsStore();
@@ -15017,6 +15071,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15017
15071
  params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE), value: "1" }]
15018
15072
  });
15019
15073
  };
15074
+ const filter = () => {
15075
+ emit2("filter");
15076
+ };
15020
15077
  return (_ctx, _cache) => {
15021
15078
  var _a;
15022
15079
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
@@ -15033,9 +15090,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15033
15090
  key: 1,
15034
15091
  class: "lupa-toolbar-mobile",
15035
15092
  options: _ctx.options,
15036
- "pagination-location": "top"
15093
+ "pagination-location": "top",
15094
+ onFilter: filter
15037
15095
  }, null, 8, ["options"])) : createCommentVNode("", true),
15038
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$P, {
15096
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15039
15097
  key: 2,
15040
15098
  class: normalizeClass(currentFiltersClass.value),
15041
15099
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15390,8 +15448,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15390
15448
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
15391
15449
  }, [
15392
15450
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
15393
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15394
- createVNode(_sfc_main$R, {
15451
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15452
+ createVNode(_sfc_main$S, {
15395
15453
  "show-summary": true,
15396
15454
  options: _ctx.options,
15397
15455
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -15403,7 +15461,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15403
15461
  }, null, 8, ["options"])) : createCommentVNode("", true),
15404
15462
  _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
15405
15463
  key: 2,
15406
- options: _ctx.options.filters
15464
+ options: _ctx.options.filters,
15465
+ onFilter: handleParamsChange
15407
15466
  }, null, 8, ["options"])) : createCommentVNode("", true),
15408
15467
  unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
15409
15468
  key: 3,
@@ -15414,17 +15473,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15414
15473
  key: 0,
15415
15474
  options: (_b = _ctx.options.filters) != null ? _b : {},
15416
15475
  ref_key: "searchResultsFilters",
15417
- ref: searchResultsFilters
15476
+ ref: searchResultsFilters,
15477
+ onFilter: handleParamsChange
15418
15478
  }, null, 8, ["options"])) : createCommentVNode("", true),
15419
15479
  createBaseVNode("div", _hoisted_3$4, [
15420
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15421
- createVNode(_sfc_main$R, {
15480
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15481
+ createVNode(_sfc_main$S, {
15422
15482
  options: _ctx.options,
15423
15483
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
15424
15484
  }, null, 8, ["options", "is-product-list"]),
15425
15485
  createVNode(_sfc_main$e, {
15426
15486
  options: _ctx.options,
15427
- ssr: ssrEnabled.value
15487
+ ssr: ssrEnabled.value,
15488
+ onFilter: handleParamsChange
15428
15489
  }, {
15429
15490
  append: withCtx(() => [
15430
15491
  renderSlot(_ctx.$slots, "default")
@@ -15433,8 +15494,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15433
15494
  }, 8, ["options", "ssr"])
15434
15495
  ])
15435
15496
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
15436
- createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15437
- createVNode(_sfc_main$R, {
15497
+ createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15498
+ createVNode(_sfc_main$S, {
15438
15499
  options: _ctx.options,
15439
15500
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
15440
15501
  }, null, 8, ["options", "is-product-list"]),
@@ -15443,11 +15504,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15443
15504
  key: 0,
15444
15505
  options: (_e = _ctx.options.filters) != null ? _e : {},
15445
15506
  ref_key: "searchResultsFilters",
15446
- ref: searchResultsFilters
15507
+ ref: searchResultsFilters,
15508
+ onFilter: handleParamsChange
15447
15509
  }, null, 8, ["options"])) : createCommentVNode("", true),
15448
15510
  createVNode(_sfc_main$e, {
15449
15511
  options: _ctx.options,
15450
- ssr: ssrEnabled.value
15512
+ ssr: ssrEnabled.value,
15513
+ onFilter: handleParamsChange
15451
15514
  }, createSlots({
15452
15515
  append: withCtx(() => [
15453
15516
  renderSlot(_ctx.$slots, "default")
@@ -21069,7 +21132,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21069
21132
  onClick: withModifiers(innerClick, ["stop"])
21070
21133
  }, [
21071
21134
  createBaseVNode("div", _hoisted_2$7, [
21072
- createVNode(_sfc_main$U, {
21135
+ createVNode(_sfc_main$V, {
21073
21136
  options: fullSearchBoxOptions.value,
21074
21137
  "is-search-container": true,
21075
21138
  ref_key: "searchBox",
@@ -22440,7 +22503,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22440
22503
  class: "lupa-chat-spinner-main"
22441
22504
  };
22442
22505
  const _hoisted_5 = { class: "lupasearch-chat-input" };
22443
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
22506
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
22444
22507
  __name: "ChatContainer",
22445
22508
  props: {
22446
22509
  options: {}
@@ -28081,7 +28144,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28081
28144
  };
28082
28145
  __expose({ fetch: fetch2 });
28083
28146
  return (_ctx, _cache) => {
28084
- return openBlock(), createBlock(unref(_sfc_main$U), {
28147
+ return openBlock(), createBlock(unref(_sfc_main$V), {
28085
28148
  options: fullSearchBoxOptions.value,
28086
28149
  ref_key: "searchBox",
28087
28150
  ref: searchBox2
@@ -28918,7 +28981,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28918
28981
  }
28919
28982
  return;
28920
28983
  }
28921
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1m, {
28984
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1n, {
28922
28985
  options
28923
28986
  });
28924
28987
  if (!instance) {