@getlupa/client 1.10.0 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7865,7 +7865,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
7865
7865
  resetHighlightIndex
7866
7866
  };
7867
7867
  });
7868
- const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
7868
+ const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
7869
7869
  const _hoisted_2$P = { class: "lupa-input-clear" };
7870
7870
  const _hoisted_3$A = { id: "lupa-search-box-input" };
7871
7871
  const _hoisted_4$s = ["value"];
@@ -7955,7 +7955,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
7955
7955
  };
7956
7956
  __expose({ focus });
7957
7957
  return (_ctx, _cache) => {
7958
- return openBlock(), createElementBlock("div", _hoisted_1$1c, [
7958
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
7959
7959
  createBaseVNode("div", _hoisted_2$P, [
7960
7960
  createBaseVNode("div", {
7961
7961
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
@@ -8029,7 +8029,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8029
8029
  };
8030
8030
  }
8031
8031
  });
8032
- const _hoisted_1$1b = { class: "lupa-search-box-history-item" };
8032
+ const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
8033
8033
  const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
8034
8034
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8035
8035
  __name: "SearchBoxHistoryItem",
@@ -8047,7 +8047,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8047
8047
  emit2("click", { query: props.item });
8048
8048
  };
8049
8049
  return (_ctx, _cache) => {
8050
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
8050
+ return openBlock(), createElementBlock("div", _hoisted_1$1c, [
8051
8051
  createBaseVNode("div", _hoisted_2$O, [
8052
8052
  createBaseVNode("div", {
8053
8053
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
@@ -8062,7 +8062,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8062
8062
  };
8063
8063
  }
8064
8064
  });
8065
- const _hoisted_1$1a = {
8065
+ const _hoisted_1$1b = {
8066
8066
  key: 0,
8067
8067
  class: "lupa-search-box-history-panel"
8068
8068
  };
@@ -8107,7 +8107,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8107
8107
  }
8108
8108
  };
8109
8109
  return (_ctx, _cache) => {
8110
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1a, [
8110
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
8111
8111
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8112
8112
  return openBlock(), createBlock(_sfc_main$1j, {
8113
8113
  key: item,
@@ -8125,7 +8125,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8125
8125
  };
8126
8126
  }
8127
8127
  });
8128
- const _hoisted_1$19 = { class: "lupa-search-box-no-results" };
8128
+ const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
8129
8129
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8130
8130
  __name: "SearchBoxNoResults",
8131
8131
  props: {
@@ -8133,11 +8133,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8133
8133
  },
8134
8134
  setup(__props) {
8135
8135
  return (_ctx, _cache) => {
8136
- return openBlock(), createElementBlock("p", _hoisted_1$19, toDisplayString(_ctx.labels.noResults), 1);
8136
+ return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
8137
8137
  };
8138
8138
  }
8139
8139
  });
8140
- const _hoisted_1$18 = ["innerHTML"];
8140
+ const _hoisted_1$19 = ["innerHTML"];
8141
8141
  const _hoisted_2$N = {
8142
8142
  key: 1,
8143
8143
  "data-cy": "lupa-suggestion-value",
@@ -8192,7 +8192,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8192
8192
  class: "lupa-suggestion-value",
8193
8193
  "data-cy": "lupa-suggestion-value",
8194
8194
  innerHTML: _ctx.suggestion.displayHighlight
8195
- }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8195
+ }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8196
8196
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8197
8197
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8198
8198
  createBaseVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -8201,7 +8201,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8201
8201
  };
8202
8202
  }
8203
8203
  });
8204
- const _hoisted_1$17 = {
8204
+ const _hoisted_1$18 = {
8205
8205
  id: "lupa-search-box-suggestions",
8206
8206
  "data-cy": "lupa-search-box-suggestions"
8207
8207
  };
@@ -8265,7 +8265,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8265
8265
  });
8266
8266
  });
8267
8267
  return (_ctx, _cache) => {
8268
- return openBlock(), createElementBlock("div", _hoisted_1$17, [
8268
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
8269
8269
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8270
8270
  return openBlock(), createBlock(_sfc_main$1g, {
8271
8271
  key: getSuggestionKey(item),
@@ -8424,7 +8424,7 @@ const joinUrlParts = (...parts) => {
8424
8424
  }
8425
8425
  return (_c = (_b = (_a = parts == null ? void 0 : parts.map((part) => part.replace(/(^\/+|\/+$)/g, ""))) == null ? void 0 : _a.filter((part) => part !== "")) == null ? void 0 : _b.join("/")) != null ? _c : "";
8426
8426
  };
8427
- const _hoisted_1$16 = ["src"];
8427
+ const _hoisted_1$17 = ["src"];
8428
8428
  const _sfc_main$1d = /* @__PURE__ */ defineComponent({
8429
8429
  __name: "ProductImage",
8430
8430
  props: {
@@ -8478,7 +8478,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
8478
8478
  createBaseVNode("img", mergeProps({
8479
8479
  class: (_b = _ctx.imageClass) != null ? _b : "",
8480
8480
  src: finalUrl.value
8481
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$16)
8481
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$17)
8482
8482
  ], 2);
8483
8483
  };
8484
8484
  }
@@ -8500,7 +8500,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8500
8500
  };
8501
8501
  }
8502
8502
  });
8503
- const _hoisted_1$15 = ["innerHTML"];
8503
+ const _hoisted_1$16 = ["innerHTML"];
8504
8504
  const _hoisted_2$M = {
8505
8505
  key: 1,
8506
8506
  class: "lupa-search-box-product-title"
@@ -8525,13 +8525,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8525
8525
  key: 0,
8526
8526
  class: "lupa-search-box-product-title",
8527
8527
  innerHTML: title.value
8528
- }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
8528
+ }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
8529
8529
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8530
8530
  ]));
8531
8531
  };
8532
8532
  }
8533
8533
  });
8534
- const _hoisted_1$14 = ["innerHTML"];
8534
+ const _hoisted_1$15 = ["innerHTML"];
8535
8535
  const _hoisted_2$L = {
8536
8536
  key: 1,
8537
8537
  class: "lupa-search-box-product-description"
@@ -8556,11 +8556,11 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8556
8556
  key: 0,
8557
8557
  class: "lupa-search-box-product-description",
8558
8558
  innerHTML: description.value
8559
- }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
8559
+ }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
8560
8560
  };
8561
8561
  }
8562
8562
  });
8563
- const _hoisted_1$13 = { class: "lupa-search-box-product-price" };
8563
+ const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
8564
8564
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8565
8565
  __name: "SearchBoxProductPrice",
8566
8566
  props: {
@@ -8579,13 +8579,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8579
8579
  );
8580
8580
  });
8581
8581
  return (_ctx, _cache) => {
8582
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
8582
+ return openBlock(), createElementBlock("div", _hoisted_1$14, [
8583
8583
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8584
8584
  ]);
8585
8585
  };
8586
8586
  }
8587
8587
  });
8588
- const _hoisted_1$12 = { class: "lupa-search-box-product-regular-price" };
8588
+ const _hoisted_1$13 = { class: "lupa-search-box-product-regular-price" };
8589
8589
  const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8590
8590
  __name: "SearchBoxProductRegularPrice",
8591
8591
  props: {
@@ -8604,11 +8604,11 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8604
8604
  );
8605
8605
  });
8606
8606
  return (_ctx, _cache) => {
8607
- return openBlock(), createElementBlock("div", _hoisted_1$12, toDisplayString(price.value), 1);
8607
+ return openBlock(), createElementBlock("div", _hoisted_1$13, toDisplayString(price.value), 1);
8608
8608
  };
8609
8609
  }
8610
8610
  });
8611
- const _hoisted_1$11 = ["innerHTML"];
8611
+ const _hoisted_1$12 = ["innerHTML"];
8612
8612
  const _hoisted_2$K = { key: 0 };
8613
8613
  const _hoisted_3$y = { key: 1 };
8614
8614
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
@@ -8639,7 +8639,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8639
8639
  key: 0,
8640
8640
  class: [className.value, "lupa-search-box-product-custom"],
8641
8641
  innerHTML: text.value
8642
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11)) : (openBlock(), createElementBlock("div", mergeProps({
8642
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12)) : (openBlock(), createElementBlock("div", mergeProps({
8643
8643
  key: 1,
8644
8644
  class: [className.value, "lupa-search-box-product-custom"]
8645
8645
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
@@ -8651,7 +8651,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8651
8651
  };
8652
8652
  }
8653
8653
  });
8654
- const _hoisted_1$10 = ["innerHTML"];
8654
+ const _hoisted_1$11 = ["innerHTML"];
8655
8655
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8656
8656
  __name: "SearchBoxProductCustomHtml",
8657
8657
  props: {
@@ -8672,7 +8672,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8672
8672
  return openBlock(), createElementBlock("div", mergeProps({
8673
8673
  class: className.value,
8674
8674
  innerHTML: text.value
8675
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10);
8675
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11);
8676
8676
  };
8677
8677
  }
8678
8678
  });
@@ -8838,6 +8838,9 @@ const useSearchResultStore = defineStore("searchResult", () => {
8838
8838
  const setLoading = (state) => {
8839
8839
  loading.value = state || false;
8840
8840
  };
8841
+ const clearSearchResult = () => {
8842
+ searchResult.value = {};
8843
+ };
8841
8844
  return {
8842
8845
  isMobileSidebarVisible,
8843
8846
  searchResult,
@@ -8863,10 +8866,11 @@ const useSearchResultStore = defineStore("searchResult", () => {
8863
8866
  setColumnCount,
8864
8867
  setAddToCartAmount,
8865
8868
  setLayout,
8866
- setLoading
8869
+ setLoading,
8870
+ clearSearchResult
8867
8871
  };
8868
8872
  });
8869
- const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
8873
+ const _hoisted_1$10 = { class: "lupa-search-box-add-to-cart-wrapper" };
8870
8874
  const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
8871
8875
  const _hoisted_3$x = ["onClick", "disabled"];
8872
8876
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
@@ -8896,7 +8900,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8896
8900
  loading.value = false;
8897
8901
  });
8898
8902
  return (_ctx, _cache) => {
8899
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
8903
+ return openBlock(), createElementBlock("div", _hoisted_1$10, [
8900
8904
  createBaseVNode("div", _hoisted_2$J, [
8901
8905
  createBaseVNode("button", {
8902
8906
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -8910,6 +8914,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8910
8914
  };
8911
8915
  }
8912
8916
  });
8917
+ const _hoisted_1$$ = {
8918
+ key: 1,
8919
+ class: "lupa-search-box-element-badge-wrapper"
8920
+ };
8913
8921
  const __default__$4 = {
8914
8922
  components: {
8915
8923
  SearchBoxProductImage: _sfc_main$1c,
@@ -8970,26 +8978,291 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
8970
8978
  return Boolean(props.element.dynamic && id && loading.value && (loadingIds == null ? void 0 : loadingIds.value[id]));
8971
8979
  };
8972
8980
  return (_ctx, _cache) => {
8973
- var _a;
8974
- return displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
8975
- key: 0,
8976
- item: enhancedItem.value,
8977
- options: _ctx.element,
8978
- labels: _ctx.labels,
8979
- class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
8980
- inStock: _ctx.isInStock
8981
- }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true);
8981
+ var _a, _b;
8982
+ return !_ctx.$slots.badges ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
8983
+ displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
8984
+ key: 0,
8985
+ item: enhancedItem.value,
8986
+ options: _ctx.element,
8987
+ labels: _ctx.labels,
8988
+ class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
8989
+ inStock: _ctx.isInStock
8990
+ }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
8991
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$$, [
8992
+ displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
8993
+ key: 0,
8994
+ item: enhancedItem.value,
8995
+ options: _ctx.element,
8996
+ labels: _ctx.labels,
8997
+ class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_b = _ctx.item) == null ? void 0 : _b.id) }),
8998
+ inStock: _ctx.isInStock
8999
+ }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true),
9000
+ renderSlot(_ctx.$slots, "badges")
9001
+ ]));
8982
9002
  };
8983
9003
  }
8984
9004
  }));
8985
- const _hoisted_1$_ = ["href"];
8986
- const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
8987
- const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
9005
+ const _hoisted_1$_ = { class: "lupa-badge-title" };
9006
+ const _hoisted_2$I = ["src"];
9007
+ const _hoisted_3$w = { key: 1 };
8988
9008
  const _hoisted_4$p = {
8989
9009
  key: 0,
8990
- class: "lupa-search-box-product-add-to-cart-section"
9010
+ class: "lupa-badge-full-text"
8991
9011
  };
8992
9012
  const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9013
+ __name: "SearchResultGeneratedBadge",
9014
+ props: {
9015
+ options: {},
9016
+ badge: {}
9017
+ },
9018
+ setup(__props) {
9019
+ const props = __props;
9020
+ const image = computed(() => {
9021
+ var _a, _b, _c;
9022
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
9023
+ });
9024
+ const showTitle = computed(() => {
9025
+ var _a, _b, _c;
9026
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
9027
+ });
9028
+ const hasAdditionalText = computed(() => {
9029
+ var _a, _b;
9030
+ return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
9031
+ });
9032
+ const hasTitleText = computed(() => {
9033
+ var _a, _b;
9034
+ return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
9035
+ });
9036
+ const customClassName = computed(() => {
9037
+ var _a, _b, _c;
9038
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
9039
+ });
9040
+ return (_ctx, _cache) => {
9041
+ return openBlock(), createElementBlock("div", {
9042
+ class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
9043
+ style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
9044
+ }, [
9045
+ createBaseVNode("span", _hoisted_1$_, [
9046
+ image.value ? (openBlock(), createElementBlock("img", {
9047
+ key: 0,
9048
+ src: image.value
9049
+ }, null, 8, _hoisted_2$I)) : createCommentVNode("", true),
9050
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9051
+ ]),
9052
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
9053
+ ], 6);
9054
+ };
9055
+ }
9056
+ });
9057
+ const _hoisted_1$Z = { class: "lupa-generated-badges" };
9058
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9059
+ __name: "SearchResultGeneratedBadges",
9060
+ props: {
9061
+ options: {}
9062
+ },
9063
+ setup(__props) {
9064
+ const props = __props;
9065
+ const badgeField = computed(() => {
9066
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9067
+ const fieldHasBadges = ((_a = props.options.generate) == null ? void 0 : _a.key) && ((_d = props.options.product) == null ? void 0 : _d[(_c = (_b = props.options.generate) == null ? void 0 : _b.key) != null ? _c : ""]) && Array.isArray(props.options.product[(_f = (_e = props.options.generate) == null ? void 0 : _e.key) != null ? _f : ""]);
9068
+ return fieldHasBadges ? props.options.product[(_h = (_g = props.options.generate) == null ? void 0 : _g.key) != null ? _h : ""] : [];
9069
+ });
9070
+ const keyMap = computed(() => {
9071
+ var _a, _b;
9072
+ return (_b = (_a = props.options.generate) == null ? void 0 : _a.keyMap) != null ? _b : {};
9073
+ });
9074
+ const badges = computed(() => {
9075
+ return badgeField.value.filter((f2) => Boolean(f2)).map((f2) => ({
9076
+ backgroundColor: keyMap.value.backgroundColor ? f2[keyMap.value.backgroundColor] : void 0,
9077
+ color: keyMap.value.color ? f2[keyMap.value.color] : void 0,
9078
+ titleText: keyMap.value.titleText ? f2[keyMap.value.titleText] : void 0,
9079
+ additionalText: keyMap.value.additionalText ? f2[keyMap.value.additionalText] : void 0,
9080
+ id: keyMap.value.id ? f2[keyMap.value.id] : void 0
9081
+ })).filter((b) => Boolean(b.id));
9082
+ });
9083
+ return (_ctx, _cache) => {
9084
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9085
+ (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
9086
+ return openBlock(), createBlock(_sfc_main$13, {
9087
+ key: badge.id,
9088
+ badge,
9089
+ options: _ctx.options
9090
+ }, null, 8, ["badge", "options"]);
9091
+ }), 128))
9092
+ ]);
9093
+ };
9094
+ }
9095
+ });
9096
+ const _hoisted_1$Y = ["innerHTML"];
9097
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9098
+ __name: "CustomBadge",
9099
+ props: {
9100
+ badge: {}
9101
+ },
9102
+ setup(__props) {
9103
+ const props = __props;
9104
+ const text = computed(() => {
9105
+ var _a, _b, _c;
9106
+ return (_c = (_b = props.badge).html) == null ? void 0 : _c.call(_b, (_a = props.badge.product) != null ? _a : {});
9107
+ });
9108
+ const className = computed(() => {
9109
+ var _a;
9110
+ return (_a = props.badge.className) != null ? _a : "";
9111
+ });
9112
+ return (_ctx, _cache) => {
9113
+ return openBlock(), createElementBlock("div", {
9114
+ class: normalizeClass(className.value),
9115
+ innerHTML: text.value
9116
+ }, null, 10, _hoisted_1$Y);
9117
+ };
9118
+ }
9119
+ });
9120
+ const _hoisted_1$X = { class: "lupa-text-badges" };
9121
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9122
+ __name: "TextBadge",
9123
+ props: {
9124
+ badge: {}
9125
+ },
9126
+ setup(__props) {
9127
+ const props = __props;
9128
+ const badges = computed(() => {
9129
+ var _a, _b;
9130
+ return (_b = (_a = props.badge) == null ? void 0 : _a.value) != null ? _b : [];
9131
+ });
9132
+ const displayBadges = computed(() => {
9133
+ return badges.value.slice(0, props.badge.maxItems);
9134
+ });
9135
+ return (_ctx, _cache) => {
9136
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9137
+ (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9138
+ return openBlock(), createElementBlock("div", {
9139
+ class: "lupa-badge lupa-text-badge",
9140
+ key: item
9141
+ }, toDisplayString(_ctx.badge.prefix) + toDisplayString(item), 1);
9142
+ }), 128))
9143
+ ]);
9144
+ };
9145
+ }
9146
+ });
9147
+ const _hoisted_1$W = { class: "lupa-image-badges" };
9148
+ const _hoisted_2$H = ["src"];
9149
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9150
+ __name: "ImageBadge",
9151
+ props: {
9152
+ badge: {}
9153
+ },
9154
+ setup(__props) {
9155
+ const props = __props;
9156
+ const badges = computed(() => {
9157
+ return props.badge.value;
9158
+ });
9159
+ const displayBadges = computed(() => {
9160
+ return badges.value.slice(0, props.badge.maxItems);
9161
+ });
9162
+ const getImageUrl = (src) => {
9163
+ if (!props.badge.rootImageUrl) {
9164
+ return src;
9165
+ }
9166
+ return `${props.badge.rootImageUrl}${src}`;
9167
+ };
9168
+ return (_ctx, _cache) => {
9169
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9170
+ (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9171
+ return openBlock(), createElementBlock("div", {
9172
+ class: "lupa-badge lupa-image-badge",
9173
+ key: item
9174
+ }, [
9175
+ createBaseVNode("img", {
9176
+ src: getImageUrl(item)
9177
+ }, null, 8, _hoisted_2$H)
9178
+ ]);
9179
+ }), 128))
9180
+ ]);
9181
+ };
9182
+ }
9183
+ });
9184
+ const _hoisted_1$V = { id: "lupa-search-results-badges" };
9185
+ const __default__$3 = {
9186
+ components: {
9187
+ CustomBadge: _sfc_main$11,
9188
+ TextBadge: _sfc_main$10,
9189
+ ImageBadge: _sfc_main$$
9190
+ }
9191
+ };
9192
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9193
+ __name: "SearchResultsBadgeWrapper",
9194
+ props: {
9195
+ position: {},
9196
+ options: {}
9197
+ },
9198
+ setup(__props) {
9199
+ const props = __props;
9200
+ const positionValue = computed(() => {
9201
+ var _a;
9202
+ return (_a = props.position) != null ? _a : "card";
9203
+ });
9204
+ const anchorPosition = computed(() => {
9205
+ return props.options.anchor;
9206
+ });
9207
+ const badges = computed(() => {
9208
+ if (!props.options.elements) {
9209
+ return [];
9210
+ }
9211
+ return props.options.elements.filter((e) => {
9212
+ var _a;
9213
+ return !e.display || e.display((_a = props.options.product) != null ? _a : {});
9214
+ }).map((x) => {
9215
+ var _a;
9216
+ return __spreadProps2(__spreadValues2({}, x), {
9217
+ value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
9218
+ product: props.options.product
9219
+ });
9220
+ });
9221
+ });
9222
+ const displayBadges = computed(() => {
9223
+ return positionValue.value === "card" ? badges.value.filter((b) => !b.position || b.position === "card") : badges.value.filter((b) => b.position === "image");
9224
+ });
9225
+ const getBadgeComponent = (type) => {
9226
+ switch (type) {
9227
+ case BadgeType.TEXT:
9228
+ return "TextBadge";
9229
+ case BadgeType.IMAGE:
9230
+ return "ImageBadge";
9231
+ case BadgeType.CUSTOM_HTML:
9232
+ return "CustomBadge";
9233
+ default:
9234
+ return "CustomBadge";
9235
+ }
9236
+ };
9237
+ return (_ctx, _cache) => {
9238
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
9239
+ createBaseVNode("div", {
9240
+ id: "lupa-badges",
9241
+ class: normalizeClass(anchorPosition.value)
9242
+ }, [
9243
+ (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (badge, index) => {
9244
+ return openBlock(), createBlock(resolveDynamicComponent(getBadgeComponent(badge.type)), {
9245
+ key: index,
9246
+ badge
9247
+ }, null, 8, ["badge"]);
9248
+ }), 128)),
9249
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$12, {
9250
+ key: 0,
9251
+ options: _ctx.options
9252
+ }, null, 8, ["options"])) : createCommentVNode("", true)
9253
+ ], 2)
9254
+ ]);
9255
+ };
9256
+ }
9257
+ }));
9258
+ const _hoisted_1$U = ["href"];
9259
+ const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
9260
+ const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
9261
+ const _hoisted_4$o = {
9262
+ key: 0,
9263
+ class: "lupa-search-box-product-add-to-cart-section"
9264
+ };
9265
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
8993
9266
  __name: "SearchBoxProduct",
8994
9267
  props: {
8995
9268
  item: {},
@@ -9006,6 +9279,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9006
9279
  var _a, _b;
9007
9280
  return generateLink((_b = (_a = props.panelOptions.links) == null ? void 0 : _a.details) != null ? _b : "", props.item);
9008
9281
  });
9282
+ const badgeOptions = computed(() => {
9283
+ return __spreadProps2(__spreadValues2({}, props.panelOptions.badges), { product: props.item });
9284
+ });
9009
9285
  const imageElements = computed(() => {
9010
9286
  var _a, _b;
9011
9287
  return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e) => e.type === DocumentElementType.IMAGE)) != null ? _b : [];
@@ -9045,7 +9321,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9045
9321
  "data-cy": "lupa-search-box-product",
9046
9322
  onClick: handleClick
9047
9323
  }), [
9048
- createBaseVNode("div", _hoisted_2$I, [
9324
+ createBaseVNode("div", _hoisted_2$G, [
9049
9325
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
9050
9326
  return openBlock(), createBlock(_sfc_main$14, {
9051
9327
  class: "lupa-search-box-product-element",
@@ -9057,19 +9333,31 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9057
9333
  }, null, 8, ["item", "element", "labels", "link"]);
9058
9334
  }), 128))
9059
9335
  ]),
9060
- createBaseVNode("div", _hoisted_3$w, [
9336
+ createBaseVNode("div", _hoisted_3$v, [
9061
9337
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
9338
+ var _a;
9062
9339
  return openBlock(), createBlock(_sfc_main$14, {
9340
+ key: element.key,
9063
9341
  class: "lupa-search-box-product-element",
9064
9342
  item: _ctx.item,
9065
9343
  element,
9066
- key: element.key,
9067
9344
  labels: _ctx.labels,
9068
9345
  link: link.value
9069
- }, null, 8, ["item", "element", "labels", "link"]);
9346
+ }, createSlots({ _: 2 }, [
9347
+ badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
9348
+ name: "badges",
9349
+ fn: withCtx(() => [
9350
+ createVNode(_sfc_main$_, {
9351
+ options: badgeOptions.value,
9352
+ position: "card"
9353
+ }, null, 8, ["options"])
9354
+ ]),
9355
+ key: "0"
9356
+ } : void 0
9357
+ ]), 1032, ["item", "element", "labels", "link"]);
9070
9358
  }), 128))
9071
9359
  ]),
9072
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
9360
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
9073
9361
  createVNode(_sfc_main$14, {
9074
9362
  class: "lupa-search-box-product-element",
9075
9363
  item: _ctx.item,
@@ -9079,7 +9367,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9079
9367
  isInStock: isInStock.value
9080
9368
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
9081
9369
  ])) : createCommentVNode("", true)
9082
- ], 16, _hoisted_1$_);
9370
+ ], 16, _hoisted_1$U);
9083
9371
  };
9084
9372
  }
9085
9373
  });
@@ -9140,8 +9428,8 @@ const useTrackingStore = defineStore("tracking", () => {
9140
9428
  };
9141
9429
  return { trackSearch, trackResults, trackEvent };
9142
9430
  });
9143
- const _hoisted_1$Z = { id: "lupa-search-box-products" };
9144
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9431
+ const _hoisted_1$T = { id: "lupa-search-box-products" };
9432
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9145
9433
  __name: "SearchBoxProducts",
9146
9434
  props: {
9147
9435
  items: {},
@@ -9202,7 +9490,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9202
9490
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
9203
9491
  };
9204
9492
  return (_ctx, _cache) => {
9205
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9493
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
9206
9494
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
9207
9495
  return renderSlot(_ctx.$slots, "productCard", {
9208
9496
  key: index,
@@ -9214,7 +9502,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9214
9502
  itemClicked: handleProductClick
9215
9503
  });
9216
9504
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
9217
- return openBlock(), createBlock(_sfc_main$13, {
9505
+ return openBlock(), createBlock(_sfc_main$Z, {
9218
9506
  key: index,
9219
9507
  item,
9220
9508
  panelOptions: _ctx.panelOptions,
@@ -9228,7 +9516,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9228
9516
  };
9229
9517
  }
9230
9518
  });
9231
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9519
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9232
9520
  __name: "SearchBoxProductsWrapper",
9233
9521
  props: {
9234
9522
  panel: {},
@@ -9280,7 +9568,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9280
9568
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9281
9569
  return (_ctx, _cache) => {
9282
9570
  var _a, _b;
9283
- return openBlock(), createBlock(_sfc_main$12, {
9571
+ return openBlock(), createBlock(_sfc_main$Y, {
9284
9572
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9285
9573
  panelOptions: _ctx.panel,
9286
9574
  labels: _ctx.labels,
@@ -9298,7 +9586,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9298
9586
  };
9299
9587
  }
9300
9588
  });
9301
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9589
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9302
9590
  __name: "SearchBoxRelatedSourceWrapper",
9303
9591
  props: {
9304
9592
  panel: {},
@@ -9370,7 +9658,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9370
9658
  });
9371
9659
  return (_ctx, _cache) => {
9372
9660
  var _a, _b;
9373
- return openBlock(), createBlock(_sfc_main$12, {
9661
+ return openBlock(), createBlock(_sfc_main$Y, {
9374
9662
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9375
9663
  panelOptions: documentPanelOptions.value,
9376
9664
  labels: _ctx.labels,
@@ -9388,16 +9676,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9388
9676
  };
9389
9677
  }
9390
9678
  });
9391
- const _hoisted_1$Y = {
9679
+ const _hoisted_1$S = {
9392
9680
  key: 0,
9393
9681
  id: "lupa-search-box-panel"
9394
9682
  };
9395
- const _hoisted_2$H = ["data-cy"];
9396
- const _hoisted_3$v = {
9683
+ const _hoisted_2$F = ["data-cy"];
9684
+ const _hoisted_3$u = {
9397
9685
  key: 0,
9398
9686
  class: "lupa-panel-title lupa-panel-title-top-results"
9399
9687
  };
9400
- const _hoisted_4$o = {
9688
+ const _hoisted_4$n = {
9401
9689
  key: 1,
9402
9690
  class: "lupa-panel-title"
9403
9691
  };
@@ -9405,14 +9693,14 @@ const _hoisted_5$e = {
9405
9693
  key: 1,
9406
9694
  id: "lupa-search-box-panel"
9407
9695
  };
9408
- const __default__$3 = {
9696
+ const __default__$2 = {
9409
9697
  components: {
9410
9698
  SearchBoxSuggestionsWrapper: _sfc_main$1e,
9411
- SearchBoxProductsWrapper: _sfc_main$11,
9412
- SearchBoxRelatedSourceWrapper: _sfc_main$10
9699
+ SearchBoxProductsWrapper: _sfc_main$X,
9700
+ SearchBoxRelatedSourceWrapper: _sfc_main$W
9413
9701
  }
9414
9702
  };
9415
- const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9703
+ const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
9416
9704
  __name: "SearchBoxMainPanel",
9417
9705
  props: {
9418
9706
  options: {},
@@ -9558,7 +9846,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9558
9846
  ref_key: "panelContainer",
9559
9847
  ref: panelContainer
9560
9848
  }, [
9561
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
9849
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
9562
9850
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
9563
9851
  key: 0,
9564
9852
  class: "lupa-search-box-close-panel",
@@ -9579,8 +9867,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9579
9867
  ]),
9580
9868
  "data-cy": "lupa-panel-" + panel.type + "-index"
9581
9869
  }, [
9582
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$v, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
9583
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
9870
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$u, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
9871
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$n, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
9584
9872
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
9585
9873
  key: 2,
9586
9874
  panel,
@@ -9600,7 +9888,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9600
9888
  key: "0"
9601
9889
  } : void 0
9602
9890
  ]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
9603
- ], 10, _hoisted_2$H);
9891
+ ], 10, _hoisted_2$F);
9604
9892
  }), 128))
9605
9893
  ], 4),
9606
9894
  !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1h, {
@@ -9639,9 +9927,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
9639
9927
  const elements = getElements(triggers);
9640
9928
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9641
9929
  };
9642
- const _hoisted_1$X = { id: "lupa-search-box" };
9643
- const _hoisted_2$G = { class: "lupa-search-box-wrapper" };
9644
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9930
+ const _hoisted_1$R = { id: "lupa-search-box" };
9931
+ const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
9932
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9645
9933
  __name: "SearchBox",
9646
9934
  props: {
9647
9935
  options: {},
@@ -9886,8 +10174,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9886
10174
  };
9887
10175
  return (_ctx, _cache) => {
9888
10176
  var _a2;
9889
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
9890
- createBaseVNode("div", _hoisted_2$G, [
10177
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
10178
+ createBaseVNode("div", _hoisted_2$E, [
9891
10179
  createVNode(_sfc_main$1l, {
9892
10180
  options: inputOptions.value,
9893
10181
  suggestedValue: suggestedValue.value,
@@ -9899,7 +10187,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9899
10187
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9900
10188
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9901
10189
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9902
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
10190
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$V, {
9903
10191
  key: 0,
9904
10192
  options: panelOptions.value,
9905
10193
  inputValue: inputValue.value,
@@ -9987,20 +10275,20 @@ const getSearchParams = (url, params, baseUrl) => {
9987
10275
  }
9988
10276
  return searchParams;
9989
10277
  };
9990
- const _hoisted_1$W = {
10278
+ const _hoisted_1$Q = {
9991
10279
  key: 0,
9992
10280
  id: "lupa-search-results-did-you-mean"
9993
10281
  };
9994
- const _hoisted_2$F = {
10282
+ const _hoisted_2$D = {
9995
10283
  key: 0,
9996
10284
  "data-cy": "suggested-search-text-label"
9997
10285
  };
9998
- const _hoisted_3$u = {
10286
+ const _hoisted_3$t = {
9999
10287
  key: 1,
10000
10288
  "data-cy": "did-you-mean-label"
10001
10289
  };
10002
- const _hoisted_4$n = { key: 1 };
10003
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10290
+ const _hoisted_4$m = { key: 1 };
10291
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10004
10292
  __name: "SearchResultsDidYouMean",
10005
10293
  props: {
10006
10294
  labels: {}
@@ -10032,8 +10320,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10032
10320
  paramStore.goToResults({ searchText, facet });
10033
10321
  };
10034
10322
  return (_ctx, _cache) => {
10035
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
10036
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
10323
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
10324
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
10037
10325
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
10038
10326
  return openBlock(), createElementBlock("span", { key: index }, [
10039
10327
  createBaseVNode("span", {
@@ -10042,7 +10330,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10042
10330
  ]);
10043
10331
  }), 128))
10044
10332
  ])) : createCommentVNode("", true),
10045
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
10333
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
10046
10334
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
10047
10335
  return openBlock(), createElementBlock("span", { key: index }, [
10048
10336
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -10050,7 +10338,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10050
10338
  class: "lupa-did-you-mean lupa-highlighted-search-text",
10051
10339
  "data-cy": "did-you-mean-value",
10052
10340
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
10053
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
10341
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
10054
10342
  ]);
10055
10343
  }), 128))
10056
10344
  ])) : createCommentVNode("", true)
@@ -10058,12 +10346,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10058
10346
  };
10059
10347
  }
10060
10348
  });
10061
- const _hoisted_1$V = {
10349
+ const _hoisted_1$P = {
10062
10350
  key: 0,
10063
10351
  class: "lupa-search-results-summary"
10064
10352
  };
10065
- const _hoisted_2$E = ["innerHTML"];
10066
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10353
+ const _hoisted_2$C = ["innerHTML"];
10354
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10067
10355
  __name: "SearchResultsSummary",
10068
10356
  props: {
10069
10357
  label: {},
@@ -10078,8 +10366,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10078
10366
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
10079
10367
  });
10080
10368
  return (_ctx, _cache) => {
10081
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
10082
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$E),
10369
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
10370
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
10083
10371
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
10084
10372
  key: 0,
10085
10373
  class: "lupa-filter-clear",
@@ -10090,18 +10378,18 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10090
10378
  };
10091
10379
  }
10092
10380
  });
10093
- const _hoisted_1$U = {
10381
+ const _hoisted_1$O = {
10094
10382
  key: 0,
10095
10383
  class: "lupa-result-page-title",
10096
10384
  "data-cy": "lupa-result-page-title"
10097
10385
  };
10098
- const _hoisted_2$D = { key: 0 };
10099
- const _hoisted_3$t = {
10386
+ const _hoisted_2$B = { key: 0 };
10387
+ const _hoisted_3$s = {
10100
10388
  key: 1,
10101
10389
  class: "lupa-results-total-count"
10102
10390
  };
10103
- const _hoisted_4$m = ["innerHTML"];
10104
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
10391
+ const _hoisted_4$l = ["innerHTML"];
10392
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10105
10393
  __name: "SearchResultsTitle",
10106
10394
  props: {
10107
10395
  options: {},
@@ -10136,12 +10424,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10136
10424
  });
10137
10425
  return (_ctx, _cache) => {
10138
10426
  return openBlock(), createElementBlock("div", null, [
10139
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$U, [
10427
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
10140
10428
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
10141
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
10142
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
10429
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
10430
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
10143
10431
  ])) : createCommentVNode("", true),
10144
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
10432
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$S, {
10145
10433
  key: 1,
10146
10434
  label: summaryLabel.value
10147
10435
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -10149,21 +10437,21 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10149
10437
  key: 2,
10150
10438
  class: "lupa-result-page-description-top",
10151
10439
  innerHTML: descriptionTop.value
10152
- }, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
10440
+ }, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
10153
10441
  ]);
10154
10442
  };
10155
10443
  }
10156
10444
  });
10157
- const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
10158
- const _hoisted_2$C = {
10445
+ const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
10446
+ const _hoisted_2$A = {
10159
10447
  class: "lupa-current-filter-label",
10160
10448
  "data-cy": "lupa-current-filter-label"
10161
10449
  };
10162
- const _hoisted_3$s = {
10450
+ const _hoisted_3$r = {
10163
10451
  class: "lupa-current-filter-value",
10164
10452
  "data-cy": "lupa-current-filter-value"
10165
10453
  };
10166
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
10454
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10167
10455
  __name: "CurrentFilterDisplay",
10168
10456
  props: {
10169
10457
  filter: {}
@@ -10175,28 +10463,28 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
10175
10463
  emit2("remove", { filter: props.filter });
10176
10464
  };
10177
10465
  return (_ctx, _cache) => {
10178
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
10466
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
10179
10467
  createBaseVNode("div", {
10180
10468
  class: "lupa-current-filter-action",
10181
10469
  onClick: handleClick
10182
10470
  }, "⨉"),
10183
- createBaseVNode("div", _hoisted_2$C, toDisplayString(_ctx.filter.label) + ": ", 1),
10184
- createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
10471
+ createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
10472
+ createBaseVNode("div", _hoisted_3$r, toDisplayString(_ctx.filter.value), 1)
10185
10473
  ]);
10186
10474
  };
10187
10475
  }
10188
10476
  });
10189
- const _hoisted_1$S = { class: "lupa-filter-title-text" };
10190
- const _hoisted_2$B = {
10477
+ const _hoisted_1$M = { class: "lupa-filter-title-text" };
10478
+ const _hoisted_2$z = {
10191
10479
  key: 0,
10192
10480
  class: "lupa-filter-count"
10193
10481
  };
10194
- const _hoisted_3$r = {
10482
+ const _hoisted_3$q = {
10195
10483
  key: 0,
10196
10484
  class: "filter-values"
10197
10485
  };
10198
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
10199
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
10486
+ const _hoisted_4$k = { class: "lupa-current-filter-list" };
10487
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
10200
10488
  __name: "CurrentFilters",
10201
10489
  props: {
10202
10490
  options: {},
@@ -10257,19 +10545,19 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10257
10545
  class: "lupa-current-filter-title",
10258
10546
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
10259
10547
  }, [
10260
- createBaseVNode("div", _hoisted_1$S, [
10548
+ createBaseVNode("div", _hoisted_1$M, [
10261
10549
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
10262
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$B, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
10550
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
10263
10551
  ]),
10264
10552
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
10265
10553
  key: 0,
10266
10554
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
10267
10555
  }, null, 2)) : createCommentVNode("", true)
10268
10556
  ]),
10269
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
10270
- createBaseVNode("div", _hoisted_4$l, [
10557
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
10558
+ createBaseVNode("div", _hoisted_4$k, [
10271
10559
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
10272
- return openBlock(), createBlock(_sfc_main$W, {
10560
+ return openBlock(), createBlock(_sfc_main$Q, {
10273
10561
  key: filter.key + "_" + filter.value,
10274
10562
  filter,
10275
10563
  onRemove: handleRemove
@@ -10286,8 +10574,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10286
10574
  };
10287
10575
  }
10288
10576
  });
10289
- const _hoisted_1$R = ["href"];
10290
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
10577
+ const _hoisted_1$L = ["href"];
10578
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
10291
10579
  __name: "CategoryFilterItem",
10292
10580
  props: {
10293
10581
  options: {},
@@ -10324,20 +10612,20 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10324
10612
  "data-cy": "lupa-child-category-item",
10325
10613
  href: urlLink.value,
10326
10614
  onClick: handleNavigation
10327
- }, toDisplayString(title.value), 9, _hoisted_1$R)
10615
+ }, toDisplayString(title.value), 9, _hoisted_1$L)
10328
10616
  ], 2);
10329
10617
  };
10330
10618
  }
10331
10619
  });
10332
- const _hoisted_1$Q = {
10620
+ const _hoisted_1$K = {
10333
10621
  class: "lupa-category-filter",
10334
10622
  "data-cy": "lupa-category-filter"
10335
10623
  };
10336
- const _hoisted_2$A = { class: "lupa-category-back" };
10337
- const _hoisted_3$q = ["href"];
10338
- const _hoisted_4$k = ["href"];
10624
+ const _hoisted_2$y = { class: "lupa-category-back" };
10625
+ const _hoisted_3$p = ["href"];
10626
+ const _hoisted_4$j = ["href"];
10339
10627
  const _hoisted_5$d = { class: "lupa-child-category-list" };
10340
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
10628
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
10341
10629
  __name: "CategoryFilter",
10342
10630
  props: {
10343
10631
  options: {}
@@ -10423,14 +10711,14 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10423
10711
  };
10424
10712
  __expose({ fetch: fetch2 });
10425
10713
  return (_ctx, _cache) => {
10426
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
10427
- createBaseVNode("div", _hoisted_2$A, [
10714
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
10715
+ createBaseVNode("div", _hoisted_2$y, [
10428
10716
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10429
10717
  key: 0,
10430
10718
  "data-cy": "lupa-category-back",
10431
10719
  href: backUrlLink.value,
10432
10720
  onClick: handleNavigationBack
10433
- }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
10721
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$p)) : createCommentVNode("", true)
10434
10722
  ]),
10435
10723
  createBaseVNode("div", {
10436
10724
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -10440,11 +10728,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10440
10728
  href: parentUrlLink.value,
10441
10729
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
10442
10730
  onClick: handleNavigationParent
10443
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
10731
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
10444
10732
  ], 2),
10445
10733
  createBaseVNode("div", _hoisted_5$d, [
10446
10734
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10447
- return openBlock(), createBlock(_sfc_main$U, {
10735
+ return openBlock(), createBlock(_sfc_main$O, {
10448
10736
  key: getCategoryKey(child),
10449
10737
  item: child,
10450
10738
  options: _ctx.options
@@ -10455,13 +10743,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10455
10743
  };
10456
10744
  }
10457
10745
  });
10458
- const _hoisted_1$P = {
10746
+ const _hoisted_1$J = {
10459
10747
  class: "lupa-search-result-facet-term-values",
10460
10748
  "data-cy": "lupa-search-result-facet-term-values"
10461
10749
  };
10462
- const _hoisted_2$z = ["placeholder"];
10463
- const _hoisted_3$p = { class: "lupa-terms-list" };
10464
- const _hoisted_4$j = ["onClick"];
10750
+ const _hoisted_2$x = ["placeholder"];
10751
+ const _hoisted_3$o = { class: "lupa-terms-list" };
10752
+ const _hoisted_4$i = ["onClick"];
10465
10753
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
10466
10754
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
10467
10755
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -10471,7 +10759,7 @@ const _hoisted_8$1 = {
10471
10759
  };
10472
10760
  const _hoisted_9$1 = { key: 0 };
10473
10761
  const _hoisted_10$1 = { key: 1 };
10474
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
10762
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
10475
10763
  __name: "TermFacet",
10476
10764
  props: {
10477
10765
  options: {},
@@ -10540,17 +10828,17 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10540
10828
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10541
10829
  };
10542
10830
  return (_ctx, _cache) => {
10543
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
10831
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
10544
10832
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10545
10833
  key: 0,
10546
10834
  class: "lupa-term-filter",
10547
10835
  "data-cy": "lupa-term-filter",
10548
10836
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10549
10837
  placeholder: _ctx.options.labels.facetFilter
10550
- }, null, 8, _hoisted_2$z)), [
10838
+ }, null, 8, _hoisted_2$x)), [
10551
10839
  [vModelText, termFilter.value]
10552
10840
  ]) : createCommentVNode("", true),
10553
- createBaseVNode("div", _hoisted_3$p, [
10841
+ createBaseVNode("div", _hoisted_3$o, [
10554
10842
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
10555
10843
  return openBlock(), createElementBlock("div", {
10556
10844
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -10567,7 +10855,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10567
10855
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
10568
10856
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10569
10857
  ])
10570
- ], 10, _hoisted_4$j);
10858
+ ], 10, _hoisted_4$i);
10571
10859
  }), 128))
10572
10860
  ]),
10573
10861
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -11558,16 +11846,16 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
11558
11846
  m.render = function(e, t, r, i, n, o) {
11559
11847
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11560
11848
  }, m.__file = "src/Slider.vue";
11561
- const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
11562
- const _hoisted_2$y = {
11849
+ const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
11850
+ const _hoisted_2$w = {
11563
11851
  key: 0,
11564
11852
  class: "lupa-stats-facet-summary"
11565
11853
  };
11566
- const _hoisted_3$o = {
11854
+ const _hoisted_3$n = {
11567
11855
  key: 1,
11568
11856
  class: "lupa-stats-facet-summary-input"
11569
11857
  };
11570
- const _hoisted_4$i = {
11858
+ const _hoisted_4$h = {
11571
11859
  key: 0,
11572
11860
  class: "lupa-stats-range-label"
11573
11861
  };
@@ -11586,7 +11874,7 @@ const _hoisted_13 = {
11586
11874
  key: 2,
11587
11875
  class: "lupa-stats-slider-wrapper"
11588
11876
  };
11589
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
11877
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11590
11878
  __name: "StatsFacet",
11591
11879
  props: {
11592
11880
  options: {},
@@ -11755,10 +12043,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11755
12043
  innerSliderRange.value = value;
11756
12044
  };
11757
12045
  return (_ctx, _cache) => {
11758
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
11759
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
12046
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
12047
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
11760
12048
  createBaseVNode("div", null, [
11761
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
12049
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11762
12050
  createBaseVNode("div", _hoisted_5$b, [
11763
12051
  withDirectives(createBaseVNode("input", {
11764
12052
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -11822,10 +12110,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11822
12110
  };
11823
12111
  }
11824
12112
  });
11825
- const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
11826
- const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
11827
- const _hoisted_3$n = { class: "lupa-term-label" };
11828
- const _hoisted_4$h = {
12113
+ const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
12114
+ const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
12115
+ const _hoisted_3$m = { class: "lupa-term-label" };
12116
+ const _hoisted_4$g = {
11829
12117
  key: 0,
11830
12118
  class: "lupa-term-count"
11831
12119
  };
@@ -11833,7 +12121,7 @@ const _hoisted_5$a = {
11833
12121
  key: 0,
11834
12122
  class: "lupa-facet-level"
11835
12123
  };
11836
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
12124
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11837
12125
  __name: "HierarchyFacetLevel",
11838
12126
  props: {
11839
12127
  options: {},
@@ -11879,14 +12167,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11879
12167
  "data-cy": "lupa-facet-term",
11880
12168
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11881
12169
  }, [
11882
- createBaseVNode("div", _hoisted_1$N, [
12170
+ createBaseVNode("div", _hoisted_1$H, [
11883
12171
  createBaseVNode("span", {
11884
12172
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11885
12173
  }, null, 2)
11886
12174
  ]),
11887
- createBaseVNode("div", _hoisted_2$x, [
11888
- createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11889
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
12175
+ createBaseVNode("div", _hoisted_2$v, [
12176
+ createBaseVNode("span", _hoisted_3$m, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
12177
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11890
12178
  ])
11891
12179
  ]),
11892
12180
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
@@ -11905,13 +12193,13 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11905
12193
  };
11906
12194
  }
11907
12195
  });
11908
- const _hoisted_1$M = {
12196
+ const _hoisted_1$G = {
11909
12197
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11910
12198
  "data-cy": "lupa-search-result-facet-term-values"
11911
12199
  };
11912
- const _hoisted_2$w = { key: 0 };
11913
- const _hoisted_3$m = ["placeholder"];
11914
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
12200
+ const _hoisted_2$u = { key: 0 };
12201
+ const _hoisted_3$l = ["placeholder"];
12202
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11915
12203
  __name: "HierarchyFacet",
11916
12204
  props: {
11917
12205
  options: {},
@@ -11961,19 +12249,19 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11961
12249
  showAll.value = true;
11962
12250
  };
11963
12251
  return (_ctx, _cache) => {
11964
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
11965
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
12252
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
12253
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11966
12254
  withDirectives(createBaseVNode("input", {
11967
12255
  class: "lupa-term-filter",
11968
12256
  "data-cy": "lupa-term-filter",
11969
12257
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
11970
12258
  placeholder: _ctx.options.labels.facetFilter
11971
- }, null, 8, _hoisted_3$m), [
12259
+ }, null, 8, _hoisted_3$l), [
11972
12260
  [vModelText, termFilter.value]
11973
12261
  ])
11974
12262
  ])) : createCommentVNode("", true),
11975
12263
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11976
- return openBlock(), createBlock(_sfc_main$Q, {
12264
+ return openBlock(), createBlock(_sfc_main$K, {
11977
12265
  key: item.title,
11978
12266
  options: _ctx.options,
11979
12267
  item,
@@ -11993,20 +12281,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11993
12281
  };
11994
12282
  }
11995
12283
  });
11996
- const _hoisted_1$L = { class: "lupa-facet-label-text" };
11997
- const _hoisted_2$v = {
12284
+ const _hoisted_1$F = { class: "lupa-facet-label-text" };
12285
+ const _hoisted_2$t = {
11998
12286
  key: 0,
11999
12287
  class: "lupa-facet-content",
12000
12288
  "data-cy": "lupa-facet-content"
12001
12289
  };
12002
- const __default__$2 = {
12290
+ const __default__$1 = {
12003
12291
  components: {
12004
- TermFacet: _sfc_main$S,
12005
- StatsFacet: _sfc_main$R,
12006
- HierarchyFacet: _sfc_main$P
12292
+ TermFacet: _sfc_main$M,
12293
+ StatsFacet: _sfc_main$L,
12294
+ HierarchyFacet: _sfc_main$J
12007
12295
  }
12008
12296
  };
12009
- const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
12297
+ const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12010
12298
  __name: "FacetDisplay",
12011
12299
  props: {
12012
12300
  options: {},
@@ -12118,12 +12406,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12118
12406
  "data-cy": "lupa-search-result-facet-label",
12119
12407
  onClick: toggleFacet
12120
12408
  }, [
12121
- createBaseVNode("div", _hoisted_1$L, toDisplayString(facet.value.label), 1),
12409
+ createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
12122
12410
  createBaseVNode("div", {
12123
12411
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
12124
12412
  }, null, 2)
12125
12413
  ], 2),
12126
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
12414
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
12127
12415
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
12128
12416
  facet: facet.value,
12129
12417
  currentFilters: currentFilters.value[facet.value.key],
@@ -12141,12 +12429,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12141
12429
  };
12142
12430
  }
12143
12431
  }));
12144
- const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
12145
- const _hoisted_2$u = {
12432
+ const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
12433
+ const _hoisted_2$s = {
12146
12434
  key: 0,
12147
12435
  class: "lupa-facets-title"
12148
12436
  };
12149
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
12437
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12150
12438
  __name: "FacetList",
12151
12439
  props: {
12152
12440
  options: {},
@@ -12180,14 +12468,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
12180
12468
  };
12181
12469
  return (_ctx, _cache) => {
12182
12470
  var _a;
12183
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
12184
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$u, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
12471
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
12472
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
12185
12473
  createBaseVNode("div", {
12186
12474
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
12187
12475
  }, [
12188
12476
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
12189
12477
  var _a2;
12190
- return openBlock(), createBlock(_sfc_main$O, {
12478
+ return openBlock(), createBlock(_sfc_main$I, {
12191
12479
  key: facet.key,
12192
12480
  facet,
12193
12481
  currentFilters: currentFiltersValue.value,
@@ -12202,8 +12490,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
12202
12490
  };
12203
12491
  }
12204
12492
  });
12205
- const _hoisted_1$J = { class: "lupa-search-result-facets" };
12206
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
12493
+ const _hoisted_1$D = { class: "lupa-search-result-facets" };
12494
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12207
12495
  __name: "Facets",
12208
12496
  props: {
12209
12497
  options: {},
@@ -12279,8 +12567,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12279
12567
  paramStore.removeParameters({ paramsToRemove: [param] });
12280
12568
  };
12281
12569
  return (_ctx, _cache) => {
12282
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
12283
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
12570
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
12571
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$H, {
12284
12572
  key: 0,
12285
12573
  options: _ctx.options,
12286
12574
  facets: regularFacets.value,
@@ -12294,11 +12582,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12294
12582
  };
12295
12583
  }
12296
12584
  });
12297
- const _hoisted_1$I = {
12585
+ const _hoisted_1$C = {
12298
12586
  id: "lupa-search-result-filters",
12299
12587
  class: "lupa-search-result-filters"
12300
12588
  };
12301
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
12589
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12302
12590
  __name: "SearchResultsFilters",
12303
12591
  props: {
12304
12592
  options: {},
@@ -12327,19 +12615,19 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12327
12615
  __expose({ fetch: fetch2 });
12328
12616
  return (_ctx, _cache) => {
12329
12617
  var _a;
12330
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
12331
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
12618
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
12619
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
12332
12620
  key: 0,
12333
12621
  options: _ctx.options.currentFilters,
12334
12622
  expandable: (_a = _ctx.expandable) != null ? _a : false
12335
12623
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
12336
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
12624
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$N, {
12337
12625
  key: 1,
12338
12626
  options: _ctx.options.categories,
12339
12627
  ref_key: "categoryFilters",
12340
12628
  ref: categoryFilters
12341
12629
  }, null, 8, ["options"])) : createCommentVNode("", true),
12342
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
12630
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
12343
12631
  key: 2,
12344
12632
  options: _ctx.options.facets
12345
12633
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12347,20 +12635,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
12347
12635
  };
12348
12636
  }
12349
12637
  });
12350
- const _hoisted_1$H = {
12638
+ const _hoisted_1$B = {
12351
12639
  key: 0,
12352
12640
  class: "lupa-mobile-filter-sidebar"
12353
12641
  };
12354
- const _hoisted_2$t = ["onClick"];
12355
- const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
12356
- const _hoisted_4$g = { class: "lupa-sidebar-top" };
12642
+ const _hoisted_2$r = ["onClick"];
12643
+ const _hoisted_3$k = { class: "lupa-mobile-sidebar-content" };
12644
+ const _hoisted_4$f = { class: "lupa-sidebar-top" };
12357
12645
  const _hoisted_5$9 = { class: "lupa-sidebar-title" };
12358
12646
  const _hoisted_6$6 = {
12359
12647
  key: 0,
12360
12648
  class: "lupa-sidebar-filter-count"
12361
12649
  };
12362
12650
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
12363
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
12651
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12364
12652
  __name: "MobileFilterSidebar",
12365
12653
  props: {
12366
12654
  options: {}
@@ -12386,13 +12674,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12386
12674
  searchResultStore.setSidebarState({ visible: false });
12387
12675
  };
12388
12676
  return (_ctx, _cache) => {
12389
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
12677
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
12390
12678
  createBaseVNode("div", {
12391
12679
  class: "lupa-sidebar-close",
12392
12680
  onClick: withModifiers(handleMobileToggle, ["stop"])
12393
- }, null, 8, _hoisted_2$t),
12394
- createBaseVNode("div", _hoisted_3$l, [
12395
- createBaseVNode("div", _hoisted_4$g, [
12681
+ }, null, 8, _hoisted_2$r),
12682
+ createBaseVNode("div", _hoisted_3$k, [
12683
+ createBaseVNode("div", _hoisted_4$f, [
12396
12684
  createBaseVNode("div", _hoisted_5$9, [
12397
12685
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
12398
12686
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -12403,7 +12691,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12403
12691
  })
12404
12692
  ]),
12405
12693
  createBaseVNode("div", _hoisted_7$4, [
12406
- createVNode(_sfc_main$L, {
12694
+ createVNode(_sfc_main$F, {
12407
12695
  options: _ctx.options,
12408
12696
  expandable: isActiveFiltersExpanded.value
12409
12697
  }, null, 8, ["options", "expandable"])
@@ -12413,14 +12701,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
12413
12701
  };
12414
12702
  }
12415
12703
  });
12416
- const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
12417
- const _hoisted_2$s = ["href", "onClick"];
12418
- const _hoisted_3$k = {
12704
+ const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
12705
+ const _hoisted_2$q = ["href", "onClick"];
12706
+ const _hoisted_3$j = {
12419
12707
  key: 1,
12420
12708
  class: "lupa-search-results-breadcrumb-text"
12421
12709
  };
12422
- const _hoisted_4$f = { key: 2 };
12423
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
12710
+ const _hoisted_4$e = { key: 2 };
12711
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12424
12712
  __name: "SearchResultsBreadcrumbs",
12425
12713
  props: {
12426
12714
  breadcrumbs: {}
@@ -12445,7 +12733,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
12445
12733
  handleRoutingEvent(link, event, hasEventRouting.value);
12446
12734
  };
12447
12735
  return (_ctx, _cache) => {
12448
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
12736
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
12449
12737
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
12450
12738
  return openBlock(), createElementBlock("span", {
12451
12739
  class: "lupa-search-results-breadcrumb",
@@ -12459,19 +12747,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
12459
12747
  var _a;
12460
12748
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
12461
12749
  }
12462
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
12463
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
12750
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(getLabel(breadcrumb.label)), 1)),
12751
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12464
12752
  ]);
12465
12753
  }), 128))
12466
12754
  ]);
12467
12755
  };
12468
12756
  }
12469
12757
  });
12470
- const _hoisted_1$F = {
12758
+ const _hoisted_1$z = {
12471
12759
  id: "lupa-search-result-filters",
12472
12760
  class: "lupa-search-result-filters"
12473
12761
  };
12474
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
12762
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12475
12763
  __name: "FiltersTopDropdown",
12476
12764
  props: {
12477
12765
  options: {}
@@ -12479,8 +12767,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
12479
12767
  setup(__props) {
12480
12768
  return (_ctx, _cache) => {
12481
12769
  var _a;
12482
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
12483
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
12770
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
12771
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
12484
12772
  key: 0,
12485
12773
  options: _ctx.options.facets,
12486
12774
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12490,8 +12778,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
12490
12778
  };
12491
12779
  }
12492
12780
  });
12493
- const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
12494
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
12781
+ const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
12782
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12495
12783
  __name: "SearchResultsLayoutSelection",
12496
12784
  setup(__props) {
12497
12785
  const searchResultStore = useSearchResultStore();
@@ -12502,7 +12790,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12502
12790
  searchResultStore.setLayout(layout2);
12503
12791
  };
12504
12792
  return (_ctx, _cache) => {
12505
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
12793
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
12506
12794
  createBaseVNode("div", {
12507
12795
  class: normalizeClass([
12508
12796
  "lupa-layout-selection-grid",
@@ -12524,11 +12812,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12524
12812
  };
12525
12813
  }
12526
12814
  });
12527
- const _hoisted_1$D = {
12815
+ const _hoisted_1$x = {
12528
12816
  key: 0,
12529
12817
  class: "lupa-mobile-toggle-filter-count"
12530
12818
  };
12531
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
12819
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12532
12820
  __name: "SearchResultsMobileToggle",
12533
12821
  props: {
12534
12822
  label: {},
@@ -12546,26 +12834,26 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12546
12834
  onClick: handleMobileToggle
12547
12835
  }, [
12548
12836
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12549
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12837
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12550
12838
  ], 2);
12551
12839
  };
12552
12840
  }
12553
12841
  });
12554
- const _hoisted_1$C = {
12842
+ const _hoisted_1$w = {
12555
12843
  key: 0,
12556
12844
  id: "lupa-search-results-page-select",
12557
12845
  "data-cy": "lupa-search-results-page-select"
12558
12846
  };
12559
- const _hoisted_2$r = {
12847
+ const _hoisted_2$p = {
12560
12848
  key: 0,
12561
12849
  class: "lupa-page-number-separator"
12562
12850
  };
12563
- const _hoisted_3$j = ["onClick"];
12564
- const _hoisted_4$e = {
12851
+ const _hoisted_3$i = ["onClick"];
12852
+ const _hoisted_4$d = {
12565
12853
  key: 0,
12566
12854
  class: "lupa-page-number-separator"
12567
12855
  };
12568
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
12856
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12569
12857
  __name: "SearchResultsPageSelect",
12570
12858
  props: {
12571
12859
  lastPageLabel: {},
@@ -12642,7 +12930,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12642
12930
  }
12643
12931
  };
12644
12932
  return (_ctx, _cache) => {
12645
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
12933
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
12646
12934
  showBack.value ? (openBlock(), createElementBlock("div", {
12647
12935
  key: 0,
12648
12936
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12653,7 +12941,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12653
12941
  class: "lupa-page-number lupa-page-number-first",
12654
12942
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12655
12943
  }, " 1 "),
12656
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
12944
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
12657
12945
  ], 64)) : createCommentVNode("", true),
12658
12946
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12659
12947
  return openBlock(), createElementBlock("div", {
@@ -12664,10 +12952,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12664
12952
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
12665
12953
  ]),
12666
12954
  "data-cy": "lupa-page-number"
12667
- }, toDisplayString(page), 11, _hoisted_3$j);
12955
+ }, toDisplayString(page), 11, _hoisted_3$i);
12668
12956
  }), 128)),
12669
12957
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
12670
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
12958
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
12671
12959
  createBaseVNode("div", {
12672
12960
  class: "lupa-page-number lupa-page-number-last",
12673
12961
  onClick: _cache[2] || (_cache[2] = () => {
@@ -12686,14 +12974,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12686
12974
  };
12687
12975
  }
12688
12976
  });
12689
- const _hoisted_1$B = {
12977
+ const _hoisted_1$v = {
12690
12978
  id: "lupa-search-results-page-size",
12691
12979
  "data-cy": "lupa-search-results-page-size"
12692
12980
  };
12693
- const _hoisted_2$q = { id: "lupa-select" };
12694
- const _hoisted_3$i = { class: "lupa-select-label" };
12695
- const _hoisted_4$d = ["aria-label"];
12696
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
12981
+ const _hoisted_2$o = { id: "lupa-select" };
12982
+ const _hoisted_3$h = { class: "lupa-select-label" };
12983
+ const _hoisted_4$c = ["aria-label"];
12984
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12697
12985
  __name: "SearchResultsPageSize",
12698
12986
  props: {
12699
12987
  label: {},
@@ -12711,9 +12999,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12711
12999
  });
12712
13000
  };
12713
13001
  return (_ctx, _cache) => {
12714
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
12715
- createBaseVNode("div", _hoisted_2$q, [
12716
- createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
13002
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
13003
+ createBaseVNode("div", _hoisted_2$o, [
13004
+ createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.label), 1),
12717
13005
  createBaseVNode("select", {
12718
13006
  class: "lupa-select-dropdown",
12719
13007
  "aria-label": _ctx.label,
@@ -12725,21 +13013,21 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12725
13013
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
12726
13014
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
12727
13015
  }), 128))
12728
- ], 40, _hoisted_4$d)
13016
+ ], 40, _hoisted_4$c)
12729
13017
  ])
12730
13018
  ]);
12731
13019
  };
12732
13020
  }
12733
13021
  });
12734
- const _hoisted_1$A = {
13022
+ const _hoisted_1$u = {
12735
13023
  id: "lupa-search-results-sort",
12736
13024
  class: "lupa-search-results-sort"
12737
13025
  };
12738
- const _hoisted_2$p = { id: "lupa-select" };
12739
- const _hoisted_3$h = { class: "lupa-select-label" };
12740
- const _hoisted_4$c = ["aria-label"];
13026
+ const _hoisted_2$n = { id: "lupa-select" };
13027
+ const _hoisted_3$g = { class: "lupa-select-label" };
13028
+ const _hoisted_4$b = ["aria-label"];
12741
13029
  const _hoisted_5$8 = ["value"];
12742
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
13030
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12743
13031
  __name: "SearchResultsSort",
12744
13032
  props: {
12745
13033
  options: {},
@@ -12788,9 +13076,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12788
13076
  previousKey.value = selectedKey.value;
12789
13077
  };
12790
13078
  return (_ctx, _cache) => {
12791
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
12792
- createBaseVNode("div", _hoisted_2$p, [
12793
- createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
13079
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
13080
+ createBaseVNode("div", _hoisted_2$n, [
13081
+ createBaseVNode("label", _hoisted_3$g, toDisplayString(_ctx.options.label), 1),
12794
13082
  withDirectives(createBaseVNode("select", {
12795
13083
  class: "lupa-select-dropdown",
12796
13084
  "aria-label": _ctx.options.label,
@@ -12805,7 +13093,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12805
13093
  value: option.key
12806
13094
  }, toDisplayString(option.label), 9, _hoisted_5$8);
12807
13095
  }), 128))
12808
- ], 40, _hoisted_4$c), [
13096
+ ], 40, _hoisted_4$b), [
12809
13097
  [vModelSelect, selectedKey.value]
12810
13098
  ])
12811
13099
  ])
@@ -12813,14 +13101,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12813
13101
  };
12814
13102
  }
12815
13103
  });
12816
- const _hoisted_1$z = { class: "lupa-toolbar-left" };
12817
- const _hoisted_2$o = { key: 1 };
12818
- const _hoisted_3$g = { key: 3 };
12819
- const _hoisted_4$b = { key: 5 };
13104
+ const _hoisted_1$t = { class: "lupa-toolbar-left" };
13105
+ const _hoisted_2$m = { key: 1 };
13106
+ const _hoisted_3$f = { key: 3 };
13107
+ const _hoisted_4$a = { key: 5 };
12820
13108
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
12821
13109
  const _hoisted_6$5 = { key: 1 };
12822
13110
  const _hoisted_7$3 = { key: 3 };
12823
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
13111
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12824
13112
  __name: "SearchResultsToolbar",
12825
13113
  props: {
12826
13114
  options: {},
@@ -12919,32 +13207,32 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12919
13207
  id: "lupa-search-results-toolbar",
12920
13208
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12921
13209
  }, [
12922
- createBaseVNode("div", _hoisted_1$z, [
12923
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$o)),
12924
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
13210
+ createBaseVNode("div", _hoisted_1$t, [
13211
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13212
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$S, {
12925
13213
  key: 2,
12926
13214
  label: searchSummaryLabel.value,
12927
13215
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12928
13216
  onClear: handleClearAll
12929
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
12930
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
13217
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13218
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
12931
13219
  key: 4,
12932
13220
  options: paginationOptions.value.pageSelect,
12933
13221
  "last-page-label": paginationOptions.value.labels.showMore,
12934
13222
  "first-page-label": paginationOptions.value.labels.showLess
12935
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
13223
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$a))
12936
13224
  ]),
12937
13225
  createBaseVNode("div", _hoisted_5$7, [
12938
- createVNode(_sfc_main$G, {
13226
+ createVNode(_sfc_main$A, {
12939
13227
  label: optionsValue.value.labels.mobileFilterButton,
12940
13228
  "show-filter-count": showMobileFilterCount.value
12941
13229
  }, null, 8, ["label", "show-filter-count"]),
12942
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
13230
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
12943
13231
  key: 0,
12944
13232
  options: paginationOptions.value.pageSize,
12945
13233
  label: paginationOptions.value.labels.pageSize
12946
13234
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
12947
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
13235
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
12948
13236
  key: 2,
12949
13237
  options: sortOptions.value,
12950
13238
  callbacks: callbacks.value
@@ -12954,259 +13242,6 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12954
13242
  };
12955
13243
  }
12956
13244
  });
12957
- const _hoisted_1$y = { class: "lupa-badge-title" };
12958
- const _hoisted_2$n = ["src"];
12959
- const _hoisted_3$f = { key: 1 };
12960
- const _hoisted_4$a = {
12961
- key: 0,
12962
- class: "lupa-badge-full-text"
12963
- };
12964
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
12965
- __name: "SearchResultGeneratedBadge",
12966
- props: {
12967
- options: {},
12968
- badge: {}
12969
- },
12970
- setup(__props) {
12971
- const props = __props;
12972
- const image = computed(() => {
12973
- var _a, _b, _c;
12974
- return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
12975
- });
12976
- const showTitle = computed(() => {
12977
- var _a, _b, _c;
12978
- return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
12979
- });
12980
- const hasAdditionalText = computed(() => {
12981
- var _a, _b;
12982
- return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
12983
- });
12984
- const hasTitleText = computed(() => {
12985
- var _a, _b;
12986
- return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
12987
- });
12988
- const customClassName = computed(() => {
12989
- var _a, _b, _c;
12990
- return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
12991
- });
12992
- return (_ctx, _cache) => {
12993
- return openBlock(), createElementBlock("div", {
12994
- class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12995
- style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12996
- }, [
12997
- createBaseVNode("span", _hoisted_1$y, [
12998
- image.value ? (openBlock(), createElementBlock("img", {
12999
- key: 0,
13000
- src: image.value
13001
- }, null, 8, _hoisted_2$n)) : createCommentVNode("", true),
13002
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
13003
- ]),
13004
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
13005
- ], 6);
13006
- };
13007
- }
13008
- });
13009
- const _hoisted_1$x = { class: "lupa-generated-badges" };
13010
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
13011
- __name: "SearchResultGeneratedBadges",
13012
- props: {
13013
- options: {}
13014
- },
13015
- setup(__props) {
13016
- const props = __props;
13017
- const badgeField = computed(() => {
13018
- var _a, _b, _c, _d, _e, _f, _g;
13019
- const fieldHasBadges = ((_a = props.options.generate) == null ? void 0 : _a.key) && props.options.product[(_c = (_b = props.options.generate) == null ? void 0 : _b.key) != null ? _c : ""] && Array.isArray(props.options.product[(_e = (_d = props.options.generate) == null ? void 0 : _d.key) != null ? _e : ""]);
13020
- return fieldHasBadges ? props.options.product[(_g = (_f = props.options.generate) == null ? void 0 : _f.key) != null ? _g : ""] : [];
13021
- });
13022
- const keyMap = computed(() => {
13023
- var _a, _b;
13024
- return (_b = (_a = props.options.generate) == null ? void 0 : _a.keyMap) != null ? _b : {};
13025
- });
13026
- const badges = computed(() => {
13027
- return badgeField.value.filter((f2) => Boolean(f2)).map((f2) => ({
13028
- backgroundColor: keyMap.value.backgroundColor ? f2[keyMap.value.backgroundColor] : void 0,
13029
- color: keyMap.value.color ? f2[keyMap.value.color] : void 0,
13030
- titleText: keyMap.value.titleText ? f2[keyMap.value.titleText] : void 0,
13031
- additionalText: keyMap.value.additionalText ? f2[keyMap.value.additionalText] : void 0,
13032
- id: keyMap.value.id ? f2[keyMap.value.id] : void 0
13033
- })).filter((b) => Boolean(b.id));
13034
- });
13035
- return (_ctx, _cache) => {
13036
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
13037
- (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
13038
- return openBlock(), createBlock(_sfc_main$B, {
13039
- key: badge.id,
13040
- badge,
13041
- options: _ctx.options
13042
- }, null, 8, ["badge", "options"]);
13043
- }), 128))
13044
- ]);
13045
- };
13046
- }
13047
- });
13048
- const _hoisted_1$w = ["innerHTML"];
13049
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
13050
- __name: "CustomBadge",
13051
- props: {
13052
- badge: {}
13053
- },
13054
- setup(__props) {
13055
- const props = __props;
13056
- const text = computed(() => {
13057
- var _a, _b, _c;
13058
- return (_c = (_b = props.badge).html) == null ? void 0 : _c.call(_b, (_a = props.badge.product) != null ? _a : {});
13059
- });
13060
- const className = computed(() => {
13061
- var _a;
13062
- return (_a = props.badge.className) != null ? _a : "";
13063
- });
13064
- return (_ctx, _cache) => {
13065
- return openBlock(), createElementBlock("div", {
13066
- class: normalizeClass(className.value),
13067
- innerHTML: text.value
13068
- }, null, 10, _hoisted_1$w);
13069
- };
13070
- }
13071
- });
13072
- const _hoisted_1$v = { class: "lupa-text-badges" };
13073
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
13074
- __name: "TextBadge",
13075
- props: {
13076
- badge: {}
13077
- },
13078
- setup(__props) {
13079
- const props = __props;
13080
- const badges = computed(() => {
13081
- var _a, _b;
13082
- return (_b = (_a = props.badge) == null ? void 0 : _a.value) != null ? _b : [];
13083
- });
13084
- const displayBadges = computed(() => {
13085
- return badges.value.slice(0, props.badge.maxItems);
13086
- });
13087
- return (_ctx, _cache) => {
13088
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
13089
- (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
13090
- return openBlock(), createElementBlock("div", {
13091
- class: "lupa-badge lupa-text-badge",
13092
- key: item
13093
- }, toDisplayString(_ctx.badge.prefix) + toDisplayString(item), 1);
13094
- }), 128))
13095
- ]);
13096
- };
13097
- }
13098
- });
13099
- const _hoisted_1$u = { class: "lupa-image-badges" };
13100
- const _hoisted_2$m = ["src"];
13101
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
13102
- __name: "ImageBadge",
13103
- props: {
13104
- badge: {}
13105
- },
13106
- setup(__props) {
13107
- const props = __props;
13108
- const badges = computed(() => {
13109
- return props.badge.value;
13110
- });
13111
- const displayBadges = computed(() => {
13112
- return badges.value.slice(0, props.badge.maxItems);
13113
- });
13114
- const getImageUrl = (src) => {
13115
- if (!props.badge.rootImageUrl) {
13116
- return src;
13117
- }
13118
- return `${props.badge.rootImageUrl}${src}`;
13119
- };
13120
- return (_ctx, _cache) => {
13121
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
13122
- (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
13123
- return openBlock(), createElementBlock("div", {
13124
- class: "lupa-badge lupa-image-badge",
13125
- key: item
13126
- }, [
13127
- createBaseVNode("img", {
13128
- src: getImageUrl(item)
13129
- }, null, 8, _hoisted_2$m)
13130
- ]);
13131
- }), 128))
13132
- ]);
13133
- };
13134
- }
13135
- });
13136
- const _hoisted_1$t = { id: "lupa-search-results-badges" };
13137
- const __default__$1 = {
13138
- components: {
13139
- CustomBadge: _sfc_main$z,
13140
- TextBadge: _sfc_main$y,
13141
- ImageBadge: _sfc_main$x
13142
- }
13143
- };
13144
- const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
13145
- __name: "SearchResultsBadgeWrapper",
13146
- props: {
13147
- position: {},
13148
- options: {}
13149
- },
13150
- setup(__props) {
13151
- const props = __props;
13152
- const positionValue = computed(() => {
13153
- var _a;
13154
- return (_a = props.position) != null ? _a : "card";
13155
- });
13156
- const anchorPosition = computed(() => {
13157
- return props.options.anchor;
13158
- });
13159
- const badges = computed(() => {
13160
- if (!props.options.elements) {
13161
- return [];
13162
- }
13163
- return props.options.elements.filter((e) => {
13164
- var _a;
13165
- return !e.display || e.display((_a = props.options.product) != null ? _a : {});
13166
- }).map((x) => {
13167
- var _a;
13168
- return __spreadProps2(__spreadValues2({}, x), {
13169
- value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
13170
- product: props.options.product
13171
- });
13172
- });
13173
- });
13174
- const displayBadges = computed(() => {
13175
- return positionValue.value === "card" ? badges.value.filter((b) => !b.position || b.position === "card") : badges.value.filter((b) => b.position === "image");
13176
- });
13177
- const getBadgeComponent = (type) => {
13178
- switch (type) {
13179
- case BadgeType.TEXT:
13180
- return "TextBadge";
13181
- case BadgeType.IMAGE:
13182
- return "ImageBadge";
13183
- case BadgeType.CUSTOM_HTML:
13184
- return "CustomBadge";
13185
- default:
13186
- return "CustomBadge";
13187
- }
13188
- };
13189
- return (_ctx, _cache) => {
13190
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
13191
- createBaseVNode("div", {
13192
- id: "lupa-badges",
13193
- class: normalizeClass(anchorPosition.value)
13194
- }, [
13195
- (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (badge, index) => {
13196
- return openBlock(), createBlock(resolveDynamicComponent(getBadgeComponent(badge.type)), {
13197
- key: index,
13198
- badge
13199
- }, null, 8, ["badge"]);
13200
- }), 128)),
13201
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$A, {
13202
- key: 0,
13203
- options: _ctx.options
13204
- }, null, 8, ["options"])) : createCommentVNode("", true)
13205
- ], 2)
13206
- ]);
13207
- };
13208
- }
13209
- }));
13210
13245
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
13211
13246
  __name: "SearchResultsProductImage",
13212
13247
  props: {
@@ -13853,7 +13888,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
13853
13888
  "data-cy": "lupa-search-result-product-card",
13854
13889
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
13855
13890
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
13856
- createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
13891
+ createVNode(_sfc_main$_, { options: badgesOptions.value }, null, 8, ["options"]),
13857
13892
  createBaseVNode("div", {
13858
13893
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13859
13894
  }, [
@@ -13873,7 +13908,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
13873
13908
  link: link.value
13874
13909
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13875
13910
  }), 128)),
13876
- createVNode(_sfc_main$w, {
13911
+ createVNode(_sfc_main$_, {
13877
13912
  options: badgesOptions.value,
13878
13913
  position: "image",
13879
13914
  class: "lupa-image-badges"
@@ -14315,17 +14350,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
14315
14350
  class: "lupa-loader"
14316
14351
  })) : createCommentVNode("", true),
14317
14352
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
14318
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
14353
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
14319
14354
  key: 0,
14320
14355
  options: (_a = _ctx.options.filters) != null ? _a : {}
14321
14356
  }, null, 8, ["options"])) : createCommentVNode("", true),
14322
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
14357
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$w, {
14323
14358
  key: 1,
14324
14359
  class: "lupa-toolbar-mobile",
14325
14360
  options: _ctx.options,
14326
14361
  "pagination-location": "top"
14327
14362
  }, null, 8, ["options"])) : createCommentVNode("", true),
14328
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$V, {
14363
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$P, {
14329
14364
  key: 2,
14330
14365
  class: normalizeClass(currentFiltersClass.value),
14331
14366
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -14339,7 +14374,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
14339
14374
  sdkOptions: _ctx.options.options
14340
14375
  }, null, 8, ["options", "sdkOptions"]),
14341
14376
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
14342
- createVNode(_sfc_main$C, {
14377
+ createVNode(_sfc_main$w, {
14343
14378
  class: "lupa-toolbar-top",
14344
14379
  options: _ctx.options,
14345
14380
  "pagination-location": "top"
@@ -14369,7 +14404,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
14369
14404
  onClick: goToFirstPage
14370
14405
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
14371
14406
  ])) : createCommentVNode("", true),
14372
- createVNode(_sfc_main$C, {
14407
+ createVNode(_sfc_main$w, {
14373
14408
  class: "lupa-toolbar-bottom",
14374
14409
  options: _ctx.options,
14375
14410
  "pagination-location": "bottom"
@@ -14448,7 +14483,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
14448
14483
  onClick: handleNavigationBack
14449
14484
  }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
14450
14485
  ])) : createCommentVNode("", true),
14451
- createVNode(_sfc_main$C, {
14486
+ createVNode(_sfc_main$w, {
14452
14487
  class: "lupa-toolbar-mobile",
14453
14488
  "pagination-location": "top",
14454
14489
  options: _ctx.options
@@ -14680,8 +14715,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14680
14715
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14681
14716
  }, [
14682
14717
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
14683
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14684
- createVNode(_sfc_main$X, {
14718
+ createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14719
+ createVNode(_sfc_main$R, {
14685
14720
  "show-summary": true,
14686
14721
  options: _ctx.options,
14687
14722
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -14691,24 +14726,24 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14691
14726
  key: 1,
14692
14727
  options: _ctx.options
14693
14728
  }, null, 8, ["options"])) : createCommentVNode("", true),
14694
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
14729
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
14695
14730
  key: 2,
14696
14731
  options: _ctx.options.filters
14697
14732
  }, null, 8, ["options"])) : createCommentVNode("", true),
14698
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
14733
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
14699
14734
  key: 3,
14700
14735
  breadcrumbs: _ctx.options.breadcrumbs
14701
14736
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14702
14737
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
14703
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14738
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
14704
14739
  key: 0,
14705
14740
  options: (_b = _ctx.options.filters) != null ? _b : {},
14706
14741
  ref_key: "searchResultsFilters",
14707
14742
  ref: searchResultsFilters
14708
14743
  }, null, 8, ["options"])) : createCommentVNode("", true),
14709
14744
  createBaseVNode("div", _hoisted_3$4, [
14710
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14711
- createVNode(_sfc_main$X, {
14745
+ createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14746
+ createVNode(_sfc_main$R, {
14712
14747
  options: _ctx.options,
14713
14748
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14714
14749
  }, null, 8, ["options", "is-product-list"]),
@@ -14723,13 +14758,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
14723
14758
  }, 8, ["options", "ssr"])
14724
14759
  ])
14725
14760
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14726
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14727
- createVNode(_sfc_main$X, {
14761
+ createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14762
+ createVNode(_sfc_main$R, {
14728
14763
  options: _ctx.options,
14729
14764
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14730
14765
  }, null, 8, ["options", "is-product-list"]),
14731
14766
  createBaseVNode("div", _hoisted_4$3, [
14732
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14767
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
14733
14768
  key: 0,
14734
14769
  options: (_e = _ctx.options.filters) != null ? _e : {},
14735
14770
  ref_key: "searchResultsFilters",
@@ -20359,7 +20394,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
20359
20394
  onClick: withModifiers(innerClick, ["stop"])
20360
20395
  }, [
20361
20396
  createBaseVNode("div", _hoisted_2$7, [
20362
- createVNode(_sfc_main$_, {
20397
+ createVNode(_sfc_main$U, {
20363
20398
  options: fullSearchBoxOptions.value,
20364
20399
  "is-search-container": true,
20365
20400
  ref_key: "searchBox",
@@ -27371,7 +27406,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
27371
27406
  };
27372
27407
  __expose({ fetch: fetch2 });
27373
27408
  return (_ctx, _cache) => {
27374
- return openBlock(), createBlock(unref(_sfc_main$_), {
27409
+ return openBlock(), createBlock(unref(_sfc_main$U), {
27375
27410
  options: fullSearchBoxOptions.value,
27376
27411
  ref_key: "searchBox",
27377
27412
  ref: searchBox2