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