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