@getlupa/client 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  });
@@ -8868,7 +8868,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8868
8868
  setLoading
8869
8869
  };
8870
8870
  });
8871
- const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
8871
+ const _hoisted_1$10 = { class: "lupa-search-box-add-to-cart-wrapper" };
8872
8872
  const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
8873
8873
  const _hoisted_3$x = ["onClick", "disabled"];
8874
8874
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
@@ -8898,7 +8898,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8898
8898
  loading.value = false;
8899
8899
  });
8900
8900
  return (_ctx, _cache) => {
8901
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
8901
+ return openBlock(), createElementBlock("div", _hoisted_1$10, [
8902
8902
  createBaseVNode("div", _hoisted_2$J, [
8903
8903
  createBaseVNode("button", {
8904
8904
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -8912,6 +8912,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8912
8912
  };
8913
8913
  }
8914
8914
  });
8915
+ const _hoisted_1$$ = {
8916
+ key: 1,
8917
+ class: "lupa-search-box-element-badge-wrapper"
8918
+ };
8915
8919
  const __default__$4 = {
8916
8920
  components: {
8917
8921
  SearchBoxProductImage: _sfc_main$1c,
@@ -8972,26 +8976,291 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8972
8976
  return Boolean(props.element.dynamic && id && loading.value && (loadingIds == null ? void 0 : loadingIds.value[id]));
8973
8977
  };
8974
8978
  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);
8979
+ var _a, _b;
8980
+ return !_ctx.$slots.badges ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
8981
+ displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
8982
+ key: 0,
8983
+ item: enhancedItem.value,
8984
+ options: _ctx.element,
8985
+ labels: _ctx.labels,
8986
+ class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
8987
+ inStock: _ctx.isInStock
8988
+ }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
8989
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$$, [
8990
+ displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
8991
+ key: 0,
8992
+ item: enhancedItem.value,
8993
+ options: _ctx.element,
8994
+ labels: _ctx.labels,
8995
+ class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_b = _ctx.item) == null ? void 0 : _b.id) }),
8996
+ inStock: _ctx.isInStock
8997
+ }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true),
8998
+ renderSlot(_ctx.$slots, "badges")
8999
+ ]));
8984
9000
  };
8985
9001
  }
8986
9002
  }));
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" };
9003
+ const _hoisted_1$_ = { class: "lupa-badge-title" };
9004
+ const _hoisted_2$I = ["src"];
9005
+ const _hoisted_3$w = { key: 1 };
8990
9006
  const _hoisted_4$p = {
8991
9007
  key: 0,
8992
- class: "lupa-search-box-product-add-to-cart-section"
9008
+ class: "lupa-badge-full-text"
8993
9009
  };
8994
9010
  const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9011
+ __name: "SearchResultGeneratedBadge",
9012
+ props: {
9013
+ options: {},
9014
+ badge: {}
9015
+ },
9016
+ setup(__props) {
9017
+ const props = __props;
9018
+ const image = computed(() => {
9019
+ var _a, _b, _c;
9020
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
9021
+ });
9022
+ const showTitle = computed(() => {
9023
+ var _a, _b, _c;
9024
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
9025
+ });
9026
+ const hasAdditionalText = computed(() => {
9027
+ var _a, _b;
9028
+ return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
9029
+ });
9030
+ const hasTitleText = computed(() => {
9031
+ var _a, _b;
9032
+ return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
9033
+ });
9034
+ const customClassName = computed(() => {
9035
+ var _a, _b, _c;
9036
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
9037
+ });
9038
+ return (_ctx, _cache) => {
9039
+ return openBlock(), createElementBlock("div", {
9040
+ class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
9041
+ style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
9042
+ }, [
9043
+ createBaseVNode("span", _hoisted_1$_, [
9044
+ image.value ? (openBlock(), createElementBlock("img", {
9045
+ key: 0,
9046
+ src: image.value
9047
+ }, null, 8, _hoisted_2$I)) : createCommentVNode("", true),
9048
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9049
+ ]),
9050
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
9051
+ ], 6);
9052
+ };
9053
+ }
9054
+ });
9055
+ const _hoisted_1$Z = { class: "lupa-generated-badges" };
9056
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9057
+ __name: "SearchResultGeneratedBadges",
9058
+ props: {
9059
+ options: {}
9060
+ },
9061
+ setup(__props) {
9062
+ const props = __props;
9063
+ const badgeField = computed(() => {
9064
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9065
+ const fieldHasBadges = ((_a = props.options.generate) == null ? void 0 : _a.key) && ((_d = props.options.product) == null ? void 0 : _d[(_c = (_b = props.options.generate) == null ? void 0 : _b.key) != null ? _c : ""]) && Array.isArray(props.options.product[(_f = (_e = props.options.generate) == null ? void 0 : _e.key) != null ? _f : ""]);
9066
+ return fieldHasBadges ? props.options.product[(_h = (_g = props.options.generate) == null ? void 0 : _g.key) != null ? _h : ""] : [];
9067
+ });
9068
+ const keyMap = computed(() => {
9069
+ var _a, _b;
9070
+ return (_b = (_a = props.options.generate) == null ? void 0 : _a.keyMap) != null ? _b : {};
9071
+ });
9072
+ const badges = computed(() => {
9073
+ return badgeField.value.filter((f2) => Boolean(f2)).map((f2) => ({
9074
+ backgroundColor: keyMap.value.backgroundColor ? f2[keyMap.value.backgroundColor] : void 0,
9075
+ color: keyMap.value.color ? f2[keyMap.value.color] : void 0,
9076
+ titleText: keyMap.value.titleText ? f2[keyMap.value.titleText] : void 0,
9077
+ additionalText: keyMap.value.additionalText ? f2[keyMap.value.additionalText] : void 0,
9078
+ id: keyMap.value.id ? f2[keyMap.value.id] : void 0
9079
+ })).filter((b) => Boolean(b.id));
9080
+ });
9081
+ return (_ctx, _cache) => {
9082
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9083
+ (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
9084
+ return openBlock(), createBlock(_sfc_main$13, {
9085
+ key: badge.id,
9086
+ badge,
9087
+ options: _ctx.options
9088
+ }, null, 8, ["badge", "options"]);
9089
+ }), 128))
9090
+ ]);
9091
+ };
9092
+ }
9093
+ });
9094
+ const _hoisted_1$Y = ["innerHTML"];
9095
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9096
+ __name: "CustomBadge",
9097
+ props: {
9098
+ badge: {}
9099
+ },
9100
+ setup(__props) {
9101
+ const props = __props;
9102
+ const text = computed(() => {
9103
+ var _a, _b, _c;
9104
+ return (_c = (_b = props.badge).html) == null ? void 0 : _c.call(_b, (_a = props.badge.product) != null ? _a : {});
9105
+ });
9106
+ const className = computed(() => {
9107
+ var _a;
9108
+ return (_a = props.badge.className) != null ? _a : "";
9109
+ });
9110
+ return (_ctx, _cache) => {
9111
+ return openBlock(), createElementBlock("div", {
9112
+ class: normalizeClass(className.value),
9113
+ innerHTML: text.value
9114
+ }, null, 10, _hoisted_1$Y);
9115
+ };
9116
+ }
9117
+ });
9118
+ const _hoisted_1$X = { class: "lupa-text-badges" };
9119
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9120
+ __name: "TextBadge",
9121
+ props: {
9122
+ badge: {}
9123
+ },
9124
+ setup(__props) {
9125
+ const props = __props;
9126
+ const badges = computed(() => {
9127
+ var _a, _b;
9128
+ return (_b = (_a = props.badge) == null ? void 0 : _a.value) != null ? _b : [];
9129
+ });
9130
+ const displayBadges = computed(() => {
9131
+ return badges.value.slice(0, props.badge.maxItems);
9132
+ });
9133
+ return (_ctx, _cache) => {
9134
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9135
+ (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9136
+ return openBlock(), createElementBlock("div", {
9137
+ class: "lupa-badge lupa-text-badge",
9138
+ key: item
9139
+ }, toDisplayString(_ctx.badge.prefix) + toDisplayString(item), 1);
9140
+ }), 128))
9141
+ ]);
9142
+ };
9143
+ }
9144
+ });
9145
+ const _hoisted_1$W = { class: "lupa-image-badges" };
9146
+ const _hoisted_2$H = ["src"];
9147
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9148
+ __name: "ImageBadge",
9149
+ props: {
9150
+ badge: {}
9151
+ },
9152
+ setup(__props) {
9153
+ const props = __props;
9154
+ const badges = computed(() => {
9155
+ return props.badge.value;
9156
+ });
9157
+ const displayBadges = computed(() => {
9158
+ return badges.value.slice(0, props.badge.maxItems);
9159
+ });
9160
+ const getImageUrl = (src) => {
9161
+ if (!props.badge.rootImageUrl) {
9162
+ return src;
9163
+ }
9164
+ return `${props.badge.rootImageUrl}${src}`;
9165
+ };
9166
+ return (_ctx, _cache) => {
9167
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9168
+ (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9169
+ return openBlock(), createElementBlock("div", {
9170
+ class: "lupa-badge lupa-image-badge",
9171
+ key: item
9172
+ }, [
9173
+ createBaseVNode("img", {
9174
+ src: getImageUrl(item)
9175
+ }, null, 8, _hoisted_2$H)
9176
+ ]);
9177
+ }), 128))
9178
+ ]);
9179
+ };
9180
+ }
9181
+ });
9182
+ const _hoisted_1$V = { id: "lupa-search-results-badges" };
9183
+ const __default__$3 = {
9184
+ components: {
9185
+ CustomBadge: _sfc_main$11,
9186
+ TextBadge: _sfc_main$10,
9187
+ ImageBadge: _sfc_main$$
9188
+ }
9189
+ };
9190
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9191
+ __name: "SearchResultsBadgeWrapper",
9192
+ props: {
9193
+ position: {},
9194
+ options: {}
9195
+ },
9196
+ setup(__props) {
9197
+ const props = __props;
9198
+ const positionValue = computed(() => {
9199
+ var _a;
9200
+ return (_a = props.position) != null ? _a : "card";
9201
+ });
9202
+ const anchorPosition = computed(() => {
9203
+ return props.options.anchor;
9204
+ });
9205
+ const badges = computed(() => {
9206
+ if (!props.options.elements) {
9207
+ return [];
9208
+ }
9209
+ return props.options.elements.filter((e) => {
9210
+ var _a;
9211
+ return !e.display || e.display((_a = props.options.product) != null ? _a : {});
9212
+ }).map((x) => {
9213
+ var _a;
9214
+ return __spreadProps2(__spreadValues2({}, x), {
9215
+ value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
9216
+ product: props.options.product
9217
+ });
9218
+ });
9219
+ });
9220
+ const displayBadges = computed(() => {
9221
+ return positionValue.value === "card" ? badges.value.filter((b) => !b.position || b.position === "card") : badges.value.filter((b) => b.position === "image");
9222
+ });
9223
+ const getBadgeComponent = (type) => {
9224
+ switch (type) {
9225
+ case BadgeType.TEXT:
9226
+ return "TextBadge";
9227
+ case BadgeType.IMAGE:
9228
+ return "ImageBadge";
9229
+ case BadgeType.CUSTOM_HTML:
9230
+ return "CustomBadge";
9231
+ default:
9232
+ return "CustomBadge";
9233
+ }
9234
+ };
9235
+ return (_ctx, _cache) => {
9236
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
9237
+ createBaseVNode("div", {
9238
+ id: "lupa-badges",
9239
+ class: normalizeClass(anchorPosition.value)
9240
+ }, [
9241
+ (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (badge, index) => {
9242
+ return openBlock(), createBlock(resolveDynamicComponent(getBadgeComponent(badge.type)), {
9243
+ key: index,
9244
+ badge
9245
+ }, null, 8, ["badge"]);
9246
+ }), 128)),
9247
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$12, {
9248
+ key: 0,
9249
+ options: _ctx.options
9250
+ }, null, 8, ["options"])) : createCommentVNode("", true)
9251
+ ], 2)
9252
+ ]);
9253
+ };
9254
+ }
9255
+ }));
9256
+ const _hoisted_1$U = ["href"];
9257
+ const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
9258
+ const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
9259
+ const _hoisted_4$o = {
9260
+ key: 0,
9261
+ class: "lupa-search-box-product-add-to-cart-section"
9262
+ };
9263
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
8995
9264
  __name: "SearchBoxProduct",
8996
9265
  props: {
8997
9266
  item: {},
@@ -9008,6 +9277,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9008
9277
  var _a, _b;
9009
9278
  return generateLink((_b = (_a = props.panelOptions.links) == null ? void 0 : _a.details) != null ? _b : "", props.item);
9010
9279
  });
9280
+ const badgeOptions = computed(() => {
9281
+ return __spreadProps2(__spreadValues2({}, props.panelOptions.badges), { product: props.item });
9282
+ });
9011
9283
  const imageElements = computed(() => {
9012
9284
  var _a, _b;
9013
9285
  return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e) => e.type === DocumentElementType.IMAGE)) != null ? _b : [];
@@ -9047,7 +9319,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9047
9319
  "data-cy": "lupa-search-box-product",
9048
9320
  onClick: handleClick
9049
9321
  }), [
9050
- createBaseVNode("div", _hoisted_2$I, [
9322
+ createBaseVNode("div", _hoisted_2$G, [
9051
9323
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
9052
9324
  return openBlock(), createBlock(_sfc_main$14, {
9053
9325
  class: "lupa-search-box-product-element",
@@ -9059,19 +9331,31 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9059
9331
  }, null, 8, ["item", "element", "labels", "link"]);
9060
9332
  }), 128))
9061
9333
  ]),
9062
- createBaseVNode("div", _hoisted_3$w, [
9334
+ createBaseVNode("div", _hoisted_3$v, [
9063
9335
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
9336
+ var _a;
9064
9337
  return openBlock(), createBlock(_sfc_main$14, {
9338
+ key: element.key,
9065
9339
  class: "lupa-search-box-product-element",
9066
9340
  item: _ctx.item,
9067
9341
  element,
9068
- key: element.key,
9069
9342
  labels: _ctx.labels,
9070
9343
  link: link.value
9071
- }, null, 8, ["item", "element", "labels", "link"]);
9344
+ }, createSlots({ _: 2 }, [
9345
+ badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
9346
+ name: "badges",
9347
+ fn: withCtx(() => [
9348
+ createVNode(_sfc_main$_, {
9349
+ options: badgeOptions.value,
9350
+ position: "card"
9351
+ }, null, 8, ["options"])
9352
+ ]),
9353
+ key: "0"
9354
+ } : void 0
9355
+ ]), 1032, ["item", "element", "labels", "link"]);
9072
9356
  }), 128))
9073
9357
  ]),
9074
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
9358
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
9075
9359
  createVNode(_sfc_main$14, {
9076
9360
  class: "lupa-search-box-product-element",
9077
9361
  item: _ctx.item,
@@ -9081,7 +9365,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9081
9365
  isInStock: isInStock.value
9082
9366
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
9083
9367
  ])) : createCommentVNode("", true)
9084
- ], 16, _hoisted_1$_);
9368
+ ], 16, _hoisted_1$U);
9085
9369
  };
9086
9370
  }
9087
9371
  });
@@ -9142,8 +9426,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9142
9426
  };
9143
9427
  return { trackSearch, trackResults, trackEvent };
9144
9428
  });
9145
- const _hoisted_1$Z = { id: "lupa-search-box-products" };
9146
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9429
+ const _hoisted_1$T = { id: "lupa-search-box-products" };
9430
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9147
9431
  __name: "SearchBoxProducts",
9148
9432
  props: {
9149
9433
  items: {},
@@ -9204,7 +9488,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9204
9488
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
9205
9489
  };
9206
9490
  return (_ctx, _cache) => {
9207
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9491
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
9208
9492
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
9209
9493
  return renderSlot(_ctx.$slots, "productCard", {
9210
9494
  key: index,
@@ -9216,7 +9500,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9216
9500
  itemClicked: handleProductClick
9217
9501
  });
9218
9502
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
9219
- return openBlock(), createBlock(_sfc_main$13, {
9503
+ return openBlock(), createBlock(_sfc_main$Z, {
9220
9504
  key: index,
9221
9505
  item,
9222
9506
  panelOptions: _ctx.panelOptions,
@@ -9230,7 +9514,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9230
9514
  };
9231
9515
  }
9232
9516
  });
9233
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9517
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9234
9518
  __name: "SearchBoxProductsWrapper",
9235
9519
  props: {
9236
9520
  panel: {},
@@ -9282,7 +9566,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9282
9566
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9283
9567
  return (_ctx, _cache) => {
9284
9568
  var _a, _b;
9285
- return openBlock(), createBlock(_sfc_main$12, {
9569
+ return openBlock(), createBlock(_sfc_main$Y, {
9286
9570
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9287
9571
  panelOptions: _ctx.panel,
9288
9572
  labels: _ctx.labels,
@@ -9300,7 +9584,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9300
9584
  };
9301
9585
  }
9302
9586
  });
9303
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9587
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9304
9588
  __name: "SearchBoxRelatedSourceWrapper",
9305
9589
  props: {
9306
9590
  panel: {},
@@ -9372,7 +9656,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9372
9656
  });
9373
9657
  return (_ctx, _cache) => {
9374
9658
  var _a, _b;
9375
- return openBlock(), createBlock(_sfc_main$12, {
9659
+ return openBlock(), createBlock(_sfc_main$Y, {
9376
9660
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9377
9661
  panelOptions: documentPanelOptions.value,
9378
9662
  labels: _ctx.labels,
@@ -9390,16 +9674,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9390
9674
  };
9391
9675
  }
9392
9676
  });
9393
- const _hoisted_1$Y = {
9677
+ const _hoisted_1$S = {
9394
9678
  key: 0,
9395
9679
  id: "lupa-search-box-panel"
9396
9680
  };
9397
- const _hoisted_2$H = ["data-cy"];
9398
- const _hoisted_3$v = {
9681
+ const _hoisted_2$F = ["data-cy"];
9682
+ const _hoisted_3$u = {
9399
9683
  key: 0,
9400
9684
  class: "lupa-panel-title lupa-panel-title-top-results"
9401
9685
  };
9402
- const _hoisted_4$o = {
9686
+ const _hoisted_4$n = {
9403
9687
  key: 1,
9404
9688
  class: "lupa-panel-title"
9405
9689
  };
@@ -9407,14 +9691,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9407
9691
  key: 1,
9408
9692
  id: "lupa-search-box-panel"
9409
9693
  };
9410
- const __default__$3 = {
9694
+ const __default__$2 = {
9411
9695
  components: {
9412
9696
  SearchBoxSuggestionsWrapper: _sfc_main$1e,
9413
- SearchBoxProductsWrapper: _sfc_main$11,
9414
- SearchBoxRelatedSourceWrapper: _sfc_main$10
9697
+ SearchBoxProductsWrapper: _sfc_main$X,
9698
+ SearchBoxRelatedSourceWrapper: _sfc_main$W
9415
9699
  }
9416
9700
  };
9417
- const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9701
+ const _sfc_main$V = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
9418
9702
  __name: "SearchBoxMainPanel",
9419
9703
  props: {
9420
9704
  options: {},
@@ -9560,7 +9844,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9560
9844
  ref_key: "panelContainer",
9561
9845
  ref: panelContainer
9562
9846
  }, [
9563
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
9847
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
9564
9848
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
9565
9849
  key: 0,
9566
9850
  class: "lupa-search-box-close-panel",
@@ -9581,8 +9865,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9581
9865
  ]),
9582
9866
  "data-cy": "lupa-panel-" + panel.type + "-index"
9583
9867
  }, [
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),
9868
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$u, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
9869
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$n, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
9586
9870
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
9587
9871
  key: 2,
9588
9872
  panel,
@@ -9602,7 +9886,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9602
9886
  key: "0"
9603
9887
  } : void 0
9604
9888
  ]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
9605
- ], 10, _hoisted_2$H);
9889
+ ], 10, _hoisted_2$F);
9606
9890
  }), 128))
9607
9891
  ], 4),
9608
9892
  !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1h, {
@@ -9641,9 +9925,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9641
9925
  const elements = getElements(triggers);
9642
9926
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9643
9927
  };
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({
9928
+ const _hoisted_1$R = { id: "lupa-search-box" };
9929
+ const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
9930
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9647
9931
  __name: "SearchBox",
9648
9932
  props: {
9649
9933
  options: {},
@@ -9888,8 +10172,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9888
10172
  };
9889
10173
  return (_ctx, _cache) => {
9890
10174
  var _a2;
9891
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
9892
- createBaseVNode("div", _hoisted_2$G, [
10175
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
10176
+ createBaseVNode("div", _hoisted_2$E, [
9893
10177
  createVNode(_sfc_main$1l, {
9894
10178
  options: inputOptions.value,
9895
10179
  suggestedValue: suggestedValue.value,
@@ -9901,7 +10185,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9901
10185
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9902
10186
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9903
10187
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9904
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
10188
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$V, {
9905
10189
  key: 0,
9906
10190
  options: panelOptions.value,
9907
10191
  inputValue: inputValue.value,
@@ -9989,20 +10273,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9989
10273
  }
9990
10274
  return searchParams;
9991
10275
  };
9992
- const _hoisted_1$W = {
10276
+ const _hoisted_1$Q = {
9993
10277
  key: 0,
9994
10278
  id: "lupa-search-results-did-you-mean"
9995
10279
  };
9996
- const _hoisted_2$F = {
10280
+ const _hoisted_2$D = {
9997
10281
  key: 0,
9998
10282
  "data-cy": "suggested-search-text-label"
9999
10283
  };
10000
- const _hoisted_3$u = {
10284
+ const _hoisted_3$t = {
10001
10285
  key: 1,
10002
10286
  "data-cy": "did-you-mean-label"
10003
10287
  };
10004
- const _hoisted_4$n = { key: 1 };
10005
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10288
+ const _hoisted_4$m = { key: 1 };
10289
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10006
10290
  __name: "SearchResultsDidYouMean",
10007
10291
  props: {
10008
10292
  labels: {}
@@ -10034,8 +10318,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10034
10318
  paramStore.goToResults({ searchText, facet });
10035
10319
  };
10036
10320
  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, [
10321
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
10322
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
10039
10323
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
10040
10324
  return openBlock(), createElementBlock("span", { key: index }, [
10041
10325
  createBaseVNode("span", {
@@ -10044,7 +10328,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10044
10328
  ]);
10045
10329
  }), 128))
10046
10330
  ])) : createCommentVNode("", true),
10047
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
10331
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
10048
10332
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
10049
10333
  return openBlock(), createElementBlock("span", { key: index }, [
10050
10334
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -10052,7 +10336,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10052
10336
  class: "lupa-did-you-mean lupa-highlighted-search-text",
10053
10337
  "data-cy": "did-you-mean-value",
10054
10338
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
10055
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
10339
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
10056
10340
  ]);
10057
10341
  }), 128))
10058
10342
  ])) : createCommentVNode("", true)
@@ -10060,12 +10344,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10060
10344
  };
10061
10345
  }
10062
10346
  });
10063
- const _hoisted_1$V = {
10347
+ const _hoisted_1$P = {
10064
10348
  key: 0,
10065
10349
  class: "lupa-search-results-summary"
10066
10350
  };
10067
- const _hoisted_2$E = ["innerHTML"];
10068
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10351
+ const _hoisted_2$C = ["innerHTML"];
10352
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10069
10353
  __name: "SearchResultsSummary",
10070
10354
  props: {
10071
10355
  label: {},
@@ -10080,8 +10364,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10080
10364
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
10081
10365
  });
10082
10366
  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),
10367
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
10368
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
10085
10369
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
10086
10370
  key: 0,
10087
10371
  class: "lupa-filter-clear",
@@ -10092,18 +10376,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10092
10376
  };
10093
10377
  }
10094
10378
  });
10095
- const _hoisted_1$U = {
10379
+ const _hoisted_1$O = {
10096
10380
  key: 0,
10097
10381
  class: "lupa-result-page-title",
10098
10382
  "data-cy": "lupa-result-page-title"
10099
10383
  };
10100
- const _hoisted_2$D = { key: 0 };
10101
- const _hoisted_3$t = {
10384
+ const _hoisted_2$B = { key: 0 };
10385
+ const _hoisted_3$s = {
10102
10386
  key: 1,
10103
10387
  class: "lupa-results-total-count"
10104
10388
  };
10105
- const _hoisted_4$m = ["innerHTML"];
10106
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
10389
+ const _hoisted_4$l = ["innerHTML"];
10390
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10107
10391
  __name: "SearchResultsTitle",
10108
10392
  props: {
10109
10393
  options: {},
@@ -10138,12 +10422,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10138
10422
  });
10139
10423
  return (_ctx, _cache) => {
10140
10424
  return openBlock(), createElementBlock("div", null, [
10141
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$U, [
10425
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
10142
10426
  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)
10427
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
10428
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
10145
10429
  ])) : createCommentVNode("", true),
10146
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
10430
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$S, {
10147
10431
  key: 1,
10148
10432
  label: summaryLabel.value
10149
10433
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -10151,21 +10435,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10151
10435
  key: 2,
10152
10436
  class: "lupa-result-page-description-top",
10153
10437
  innerHTML: descriptionTop.value
10154
- }, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
10438
+ }, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
10155
10439
  ]);
10156
10440
  };
10157
10441
  }
10158
10442
  });
10159
- const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
10160
- const _hoisted_2$C = {
10443
+ const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
10444
+ const _hoisted_2$A = {
10161
10445
  class: "lupa-current-filter-label",
10162
10446
  "data-cy": "lupa-current-filter-label"
10163
10447
  };
10164
- const _hoisted_3$s = {
10448
+ const _hoisted_3$r = {
10165
10449
  class: "lupa-current-filter-value",
10166
10450
  "data-cy": "lupa-current-filter-value"
10167
10451
  };
10168
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
10452
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10169
10453
  __name: "CurrentFilterDisplay",
10170
10454
  props: {
10171
10455
  filter: {}
@@ -10177,28 +10461,28 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10177
10461
  emit2("remove", { filter: props.filter });
10178
10462
  };
10179
10463
  return (_ctx, _cache) => {
10180
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
10464
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
10181
10465
  createBaseVNode("div", {
10182
10466
  class: "lupa-current-filter-action",
10183
10467
  onClick: handleClick
10184
10468
  }, "⨉"),
10185
- createBaseVNode("div", _hoisted_2$C, toDisplayString(_ctx.filter.label) + ": ", 1),
10186
- createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
10469
+ createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
10470
+ createBaseVNode("div", _hoisted_3$r, toDisplayString(_ctx.filter.value), 1)
10187
10471
  ]);
10188
10472
  };
10189
10473
  }
10190
10474
  });
10191
- const _hoisted_1$S = { class: "lupa-filter-title-text" };
10192
- const _hoisted_2$B = {
10475
+ const _hoisted_1$M = { class: "lupa-filter-title-text" };
10476
+ const _hoisted_2$z = {
10193
10477
  key: 0,
10194
10478
  class: "lupa-filter-count"
10195
10479
  };
10196
- const _hoisted_3$r = {
10480
+ const _hoisted_3$q = {
10197
10481
  key: 0,
10198
10482
  class: "filter-values"
10199
10483
  };
10200
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
10201
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
10484
+ const _hoisted_4$k = { class: "lupa-current-filter-list" };
10485
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
10202
10486
  __name: "CurrentFilters",
10203
10487
  props: {
10204
10488
  options: {},
@@ -10259,19 +10543,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10259
10543
  class: "lupa-current-filter-title",
10260
10544
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
10261
10545
  }, [
10262
- createBaseVNode("div", _hoisted_1$S, [
10546
+ createBaseVNode("div", _hoisted_1$M, [
10263
10547
  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)
10548
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
10265
10549
  ]),
10266
10550
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
10267
10551
  key: 0,
10268
10552
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
10269
10553
  }, null, 2)) : createCommentVNode("", true)
10270
10554
  ]),
10271
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
10272
- createBaseVNode("div", _hoisted_4$l, [
10555
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
10556
+ createBaseVNode("div", _hoisted_4$k, [
10273
10557
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
10274
- return openBlock(), createBlock(_sfc_main$W, {
10558
+ return openBlock(), createBlock(_sfc_main$Q, {
10275
10559
  key: filter.key + "_" + filter.value,
10276
10560
  filter,
10277
10561
  onRemove: handleRemove
@@ -10288,8 +10572,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10288
10572
  };
10289
10573
  }
10290
10574
  });
10291
- const _hoisted_1$R = ["href"];
10292
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
10575
+ const _hoisted_1$L = ["href"];
10576
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
10293
10577
  __name: "CategoryFilterItem",
10294
10578
  props: {
10295
10579
  options: {},
@@ -10326,20 +10610,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10326
10610
  "data-cy": "lupa-child-category-item",
10327
10611
  href: urlLink.value,
10328
10612
  onClick: handleNavigation
10329
- }, toDisplayString(title.value), 9, _hoisted_1$R)
10613
+ }, toDisplayString(title.value), 9, _hoisted_1$L)
10330
10614
  ], 2);
10331
10615
  };
10332
10616
  }
10333
10617
  });
10334
- const _hoisted_1$Q = {
10618
+ const _hoisted_1$K = {
10335
10619
  class: "lupa-category-filter",
10336
10620
  "data-cy": "lupa-category-filter"
10337
10621
  };
10338
- const _hoisted_2$A = { class: "lupa-category-back" };
10339
- const _hoisted_3$q = ["href"];
10340
- const _hoisted_4$k = ["href"];
10622
+ const _hoisted_2$y = { class: "lupa-category-back" };
10623
+ const _hoisted_3$p = ["href"];
10624
+ const _hoisted_4$j = ["href"];
10341
10625
  const _hoisted_5$d = { class: "lupa-child-category-list" };
10342
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
10626
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
10343
10627
  __name: "CategoryFilter",
10344
10628
  props: {
10345
10629
  options: {}
@@ -10425,14 +10709,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10425
10709
  };
10426
10710
  __expose({ fetch: fetch2 });
10427
10711
  return (_ctx, _cache) => {
10428
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
10429
- createBaseVNode("div", _hoisted_2$A, [
10712
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
10713
+ createBaseVNode("div", _hoisted_2$y, [
10430
10714
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10431
10715
  key: 0,
10432
10716
  "data-cy": "lupa-category-back",
10433
10717
  href: backUrlLink.value,
10434
10718
  onClick: handleNavigationBack
10435
- }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
10719
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$p)) : createCommentVNode("", true)
10436
10720
  ]),
10437
10721
  createBaseVNode("div", {
10438
10722
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -10442,11 +10726,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10442
10726
  href: parentUrlLink.value,
10443
10727
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
10444
10728
  onClick: handleNavigationParent
10445
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
10729
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
10446
10730
  ], 2),
10447
10731
  createBaseVNode("div", _hoisted_5$d, [
10448
10732
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10449
- return openBlock(), createBlock(_sfc_main$U, {
10733
+ return openBlock(), createBlock(_sfc_main$O, {
10450
10734
  key: getCategoryKey(child),
10451
10735
  item: child,
10452
10736
  options: _ctx.options
@@ -10457,13 +10741,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10457
10741
  };
10458
10742
  }
10459
10743
  });
10460
- const _hoisted_1$P = {
10744
+ const _hoisted_1$J = {
10461
10745
  class: "lupa-search-result-facet-term-values",
10462
10746
  "data-cy": "lupa-search-result-facet-term-values"
10463
10747
  };
10464
- const _hoisted_2$z = ["placeholder"];
10465
- const _hoisted_3$p = { class: "lupa-terms-list" };
10466
- const _hoisted_4$j = ["onClick"];
10748
+ const _hoisted_2$x = ["placeholder"];
10749
+ const _hoisted_3$o = { class: "lupa-terms-list" };
10750
+ const _hoisted_4$i = ["onClick"];
10467
10751
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
10468
10752
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
10469
10753
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -10473,7 +10757,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10473
10757
  };
10474
10758
  const _hoisted_9$1 = { key: 0 };
10475
10759
  const _hoisted_10$1 = { key: 1 };
10476
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
10760
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
10477
10761
  __name: "TermFacet",
10478
10762
  props: {
10479
10763
  options: {},
@@ -10542,17 +10826,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10542
10826
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10543
10827
  };
10544
10828
  return (_ctx, _cache) => {
10545
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
10829
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
10546
10830
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10547
10831
  key: 0,
10548
10832
  class: "lupa-term-filter",
10549
10833
  "data-cy": "lupa-term-filter",
10550
10834
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10551
10835
  placeholder: _ctx.options.labels.facetFilter
10552
- }, null, 8, _hoisted_2$z)), [
10836
+ }, null, 8, _hoisted_2$x)), [
10553
10837
  [vModelText, termFilter.value]
10554
10838
  ]) : createCommentVNode("", true),
10555
- createBaseVNode("div", _hoisted_3$p, [
10839
+ createBaseVNode("div", _hoisted_3$o, [
10556
10840
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
10557
10841
  return openBlock(), createElementBlock("div", {
10558
10842
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -10569,7 +10853,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10569
10853
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
10570
10854
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10571
10855
  ])
10572
- ], 10, _hoisted_4$j);
10856
+ ], 10, _hoisted_4$i);
10573
10857
  }), 128))
10574
10858
  ]),
10575
10859
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -11560,16 +11844,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11560
11844
  m.render = function(e, t, r, i, n, o) {
11561
11845
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11562
11846
  }, m.__file = "src/Slider.vue";
11563
- const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
11564
- const _hoisted_2$y = {
11847
+ const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
11848
+ const _hoisted_2$w = {
11565
11849
  key: 0,
11566
11850
  class: "lupa-stats-facet-summary"
11567
11851
  };
11568
- const _hoisted_3$o = {
11852
+ const _hoisted_3$n = {
11569
11853
  key: 1,
11570
11854
  class: "lupa-stats-facet-summary-input"
11571
11855
  };
11572
- const _hoisted_4$i = {
11856
+ const _hoisted_4$h = {
11573
11857
  key: 0,
11574
11858
  class: "lupa-stats-range-label"
11575
11859
  };
@@ -11588,7 +11872,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11588
11872
  key: 2,
11589
11873
  class: "lupa-stats-slider-wrapper"
11590
11874
  };
11591
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
11875
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11592
11876
  __name: "StatsFacet",
11593
11877
  props: {
11594
11878
  options: {},
@@ -11757,10 +12041,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11757
12041
  innerSliderRange.value = value;
11758
12042
  };
11759
12043
  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, [
12044
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
12045
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
11762
12046
  createBaseVNode("div", null, [
11763
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
12047
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11764
12048
  createBaseVNode("div", _hoisted_5$b, [
11765
12049
  withDirectives(createBaseVNode("input", {
11766
12050
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -11824,10 +12108,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11824
12108
  };
11825
12109
  }
11826
12110
  });
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 = {
12111
+ const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
12112
+ const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
12113
+ const _hoisted_3$m = { class: "lupa-term-label" };
12114
+ const _hoisted_4$g = {
11831
12115
  key: 0,
11832
12116
  class: "lupa-term-count"
11833
12117
  };
@@ -11835,7 +12119,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11835
12119
  key: 0,
11836
12120
  class: "lupa-facet-level"
11837
12121
  };
11838
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
12122
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11839
12123
  __name: "HierarchyFacetLevel",
11840
12124
  props: {
11841
12125
  options: {},
@@ -11881,14 +12165,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11881
12165
  "data-cy": "lupa-facet-term",
11882
12166
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11883
12167
  }, [
11884
- createBaseVNode("div", _hoisted_1$N, [
12168
+ createBaseVNode("div", _hoisted_1$H, [
11885
12169
  createBaseVNode("span", {
11886
12170
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11887
12171
  }, null, 2)
11888
12172
  ]),
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)
12173
+ createBaseVNode("div", _hoisted_2$v, [
12174
+ createBaseVNode("span", _hoisted_3$m, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
12175
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11892
12176
  ])
11893
12177
  ]),
11894
12178
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
@@ -11907,13 +12191,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11907
12191
  };
11908
12192
  }
11909
12193
  });
11910
- const _hoisted_1$M = {
12194
+ const _hoisted_1$G = {
11911
12195
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11912
12196
  "data-cy": "lupa-search-result-facet-term-values"
11913
12197
  };
11914
- const _hoisted_2$w = { key: 0 };
11915
- const _hoisted_3$m = ["placeholder"];
11916
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
12198
+ const _hoisted_2$u = { key: 0 };
12199
+ const _hoisted_3$l = ["placeholder"];
12200
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11917
12201
  __name: "HierarchyFacet",
11918
12202
  props: {
11919
12203
  options: {},
@@ -11963,19 +12247,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11963
12247
  showAll.value = true;
11964
12248
  };
11965
12249
  return (_ctx, _cache) => {
11966
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
11967
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
12250
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
12251
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11968
12252
  withDirectives(createBaseVNode("input", {
11969
12253
  class: "lupa-term-filter",
11970
12254
  "data-cy": "lupa-term-filter",
11971
12255
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
11972
12256
  placeholder: _ctx.options.labels.facetFilter
11973
- }, null, 8, _hoisted_3$m), [
12257
+ }, null, 8, _hoisted_3$l), [
11974
12258
  [vModelText, termFilter.value]
11975
12259
  ])
11976
12260
  ])) : createCommentVNode("", true),
11977
12261
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11978
- return openBlock(), createBlock(_sfc_main$Q, {
12262
+ return openBlock(), createBlock(_sfc_main$K, {
11979
12263
  key: item.title,
11980
12264
  options: _ctx.options,
11981
12265
  item,
@@ -11995,20 +12279,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11995
12279
  };
11996
12280
  }
11997
12281
  });
11998
- const _hoisted_1$L = { class: "lupa-facet-label-text" };
11999
- const _hoisted_2$v = {
12282
+ const _hoisted_1$F = { class: "lupa-facet-label-text" };
12283
+ const _hoisted_2$t = {
12000
12284
  key: 0,
12001
12285
  class: "lupa-facet-content",
12002
12286
  "data-cy": "lupa-facet-content"
12003
12287
  };
12004
- const __default__$2 = {
12288
+ const __default__$1 = {
12005
12289
  components: {
12006
- TermFacet: _sfc_main$S,
12007
- StatsFacet: _sfc_main$R,
12008
- HierarchyFacet: _sfc_main$P
12290
+ TermFacet: _sfc_main$M,
12291
+ StatsFacet: _sfc_main$L,
12292
+ HierarchyFacet: _sfc_main$J
12009
12293
  }
12010
12294
  };
12011
- const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
12295
+ const _sfc_main$I = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12012
12296
  __name: "FacetDisplay",
12013
12297
  props: {
12014
12298
  options: {},
@@ -12120,12 +12404,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12120
12404
  "data-cy": "lupa-search-result-facet-label",
12121
12405
  onClick: toggleFacet
12122
12406
  }, [
12123
- createBaseVNode("div", _hoisted_1$L, toDisplayString(facet.value.label), 1),
12407
+ createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
12124
12408
  createBaseVNode("div", {
12125
12409
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
12126
12410
  }, null, 2)
12127
12411
  ], 2),
12128
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
12412
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
12129
12413
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
12130
12414
  facet: facet.value,
12131
12415
  currentFilters: currentFilters.value[facet.value.key],
@@ -12143,12 +12427,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12143
12427
  };
12144
12428
  }
12145
12429
  }));
12146
- const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
12147
- const _hoisted_2$u = {
12430
+ const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
12431
+ const _hoisted_2$s = {
12148
12432
  key: 0,
12149
12433
  class: "lupa-facets-title"
12150
12434
  };
12151
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
12435
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12152
12436
  __name: "FacetList",
12153
12437
  props: {
12154
12438
  options: {},
@@ -12182,14 +12466,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12182
12466
  };
12183
12467
  return (_ctx, _cache) => {
12184
12468
  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),
12469
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
12470
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
12187
12471
  createBaseVNode("div", {
12188
12472
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
12189
12473
  }, [
12190
12474
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
12191
12475
  var _a2;
12192
- return openBlock(), createBlock(_sfc_main$O, {
12476
+ return openBlock(), createBlock(_sfc_main$I, {
12193
12477
  key: facet.key,
12194
12478
  facet,
12195
12479
  currentFilters: currentFiltersValue.value,
@@ -12204,8 +12488,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12204
12488
  };
12205
12489
  }
12206
12490
  });
12207
- const _hoisted_1$J = { class: "lupa-search-result-facets" };
12208
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
12491
+ const _hoisted_1$D = { class: "lupa-search-result-facets" };
12492
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12209
12493
  __name: "Facets",
12210
12494
  props: {
12211
12495
  options: {},
@@ -12281,8 +12565,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12281
12565
  paramStore.removeParameters({ paramsToRemove: [param] });
12282
12566
  };
12283
12567
  return (_ctx, _cache) => {
12284
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
12285
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
12568
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
12569
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$H, {
12286
12570
  key: 0,
12287
12571
  options: _ctx.options,
12288
12572
  facets: regularFacets.value,
@@ -12296,11 +12580,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12296
12580
  };
12297
12581
  }
12298
12582
  });
12299
- const _hoisted_1$I = {
12583
+ const _hoisted_1$C = {
12300
12584
  id: "lupa-search-result-filters",
12301
12585
  class: "lupa-search-result-filters"
12302
12586
  };
12303
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
12587
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12304
12588
  __name: "SearchResultsFilters",
12305
12589
  props: {
12306
12590
  options: {},
@@ -12329,19 +12613,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12329
12613
  __expose({ fetch: fetch2 });
12330
12614
  return (_ctx, _cache) => {
12331
12615
  var _a;
12332
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
12333
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
12616
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
12617
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
12334
12618
  key: 0,
12335
12619
  options: _ctx.options.currentFilters,
12336
12620
  expandable: (_a = _ctx.expandable) != null ? _a : false
12337
12621
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
12338
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
12622
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$N, {
12339
12623
  key: 1,
12340
12624
  options: _ctx.options.categories,
12341
12625
  ref_key: "categoryFilters",
12342
12626
  ref: categoryFilters
12343
12627
  }, null, 8, ["options"])) : createCommentVNode("", true),
12344
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
12628
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
12345
12629
  key: 2,
12346
12630
  options: _ctx.options.facets
12347
12631
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12349,20 +12633,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12349
12633
  };
12350
12634
  }
12351
12635
  });
12352
- const _hoisted_1$H = {
12636
+ const _hoisted_1$B = {
12353
12637
  key: 0,
12354
12638
  class: "lupa-mobile-filter-sidebar"
12355
12639
  };
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" };
12640
+ const _hoisted_2$r = ["onClick"];
12641
+ const _hoisted_3$k = { class: "lupa-mobile-sidebar-content" };
12642
+ const _hoisted_4$f = { class: "lupa-sidebar-top" };
12359
12643
  const _hoisted_5$9 = { class: "lupa-sidebar-title" };
12360
12644
  const _hoisted_6$6 = {
12361
12645
  key: 0,
12362
12646
  class: "lupa-sidebar-filter-count"
12363
12647
  };
12364
12648
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
12365
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
12649
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12366
12650
  __name: "MobileFilterSidebar",
12367
12651
  props: {
12368
12652
  options: {}
@@ -12388,13 +12672,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12388
12672
  searchResultStore.setSidebarState({ visible: false });
12389
12673
  };
12390
12674
  return (_ctx, _cache) => {
12391
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
12675
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
12392
12676
  createBaseVNode("div", {
12393
12677
  class: "lupa-sidebar-close",
12394
12678
  onClick: withModifiers(handleMobileToggle, ["stop"])
12395
- }, null, 8, _hoisted_2$t),
12396
- createBaseVNode("div", _hoisted_3$l, [
12397
- createBaseVNode("div", _hoisted_4$g, [
12679
+ }, null, 8, _hoisted_2$r),
12680
+ createBaseVNode("div", _hoisted_3$k, [
12681
+ createBaseVNode("div", _hoisted_4$f, [
12398
12682
  createBaseVNode("div", _hoisted_5$9, [
12399
12683
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
12400
12684
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -12405,7 +12689,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12405
12689
  })
12406
12690
  ]),
12407
12691
  createBaseVNode("div", _hoisted_7$4, [
12408
- createVNode(_sfc_main$L, {
12692
+ createVNode(_sfc_main$F, {
12409
12693
  options: _ctx.options,
12410
12694
  expandable: isActiveFiltersExpanded.value
12411
12695
  }, null, 8, ["options", "expandable"])
@@ -12415,14 +12699,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12415
12699
  };
12416
12700
  }
12417
12701
  });
12418
- const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
12419
- const _hoisted_2$s = ["href", "onClick"];
12420
- const _hoisted_3$k = {
12702
+ const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
12703
+ const _hoisted_2$q = ["href", "onClick"];
12704
+ const _hoisted_3$j = {
12421
12705
  key: 1,
12422
12706
  class: "lupa-search-results-breadcrumb-text"
12423
12707
  };
12424
- const _hoisted_4$f = { key: 2 };
12425
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
12708
+ const _hoisted_4$e = { key: 2 };
12709
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12426
12710
  __name: "SearchResultsBreadcrumbs",
12427
12711
  props: {
12428
12712
  breadcrumbs: {}
@@ -12447,7 +12731,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12447
12731
  handleRoutingEvent(link, event, hasEventRouting.value);
12448
12732
  };
12449
12733
  return (_ctx, _cache) => {
12450
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
12734
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
12451
12735
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
12452
12736
  return openBlock(), createElementBlock("span", {
12453
12737
  class: "lupa-search-results-breadcrumb",
@@ -12461,19 +12745,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12461
12745
  var _a;
12462
12746
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
12463
12747
  }
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)
12748
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(getLabel(breadcrumb.label)), 1)),
12749
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12466
12750
  ]);
12467
12751
  }), 128))
12468
12752
  ]);
12469
12753
  };
12470
12754
  }
12471
12755
  });
12472
- const _hoisted_1$F = {
12756
+ const _hoisted_1$z = {
12473
12757
  id: "lupa-search-result-filters",
12474
12758
  class: "lupa-search-result-filters"
12475
12759
  };
12476
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
12760
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12477
12761
  __name: "FiltersTopDropdown",
12478
12762
  props: {
12479
12763
  options: {}
@@ -12481,8 +12765,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12481
12765
  setup(__props) {
12482
12766
  return (_ctx, _cache) => {
12483
12767
  var _a;
12484
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
12485
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
12768
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
12769
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
12486
12770
  key: 0,
12487
12771
  options: _ctx.options.facets,
12488
12772
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12492,8 +12776,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12492
12776
  };
12493
12777
  }
12494
12778
  });
12495
- const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
12496
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
12779
+ const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
12780
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12497
12781
  __name: "SearchResultsLayoutSelection",
12498
12782
  setup(__props) {
12499
12783
  const searchResultStore = useSearchResultStore();
@@ -12504,7 +12788,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12504
12788
  searchResultStore.setLayout(layout2);
12505
12789
  };
12506
12790
  return (_ctx, _cache) => {
12507
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
12791
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
12508
12792
  createBaseVNode("div", {
12509
12793
  class: normalizeClass([
12510
12794
  "lupa-layout-selection-grid",
@@ -12526,11 +12810,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12526
12810
  };
12527
12811
  }
12528
12812
  });
12529
- const _hoisted_1$D = {
12813
+ const _hoisted_1$x = {
12530
12814
  key: 0,
12531
12815
  class: "lupa-mobile-toggle-filter-count"
12532
12816
  };
12533
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
12817
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12534
12818
  __name: "SearchResultsMobileToggle",
12535
12819
  props: {
12536
12820
  label: {},
@@ -12548,26 +12832,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12548
12832
  onClick: handleMobileToggle
12549
12833
  }, [
12550
12834
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12551
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12835
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12552
12836
  ], 2);
12553
12837
  };
12554
12838
  }
12555
12839
  });
12556
- const _hoisted_1$C = {
12840
+ const _hoisted_1$w = {
12557
12841
  key: 0,
12558
12842
  id: "lupa-search-results-page-select",
12559
12843
  "data-cy": "lupa-search-results-page-select"
12560
12844
  };
12561
- const _hoisted_2$r = {
12845
+ const _hoisted_2$p = {
12562
12846
  key: 0,
12563
12847
  class: "lupa-page-number-separator"
12564
12848
  };
12565
- const _hoisted_3$j = ["onClick"];
12566
- const _hoisted_4$e = {
12849
+ const _hoisted_3$i = ["onClick"];
12850
+ const _hoisted_4$d = {
12567
12851
  key: 0,
12568
12852
  class: "lupa-page-number-separator"
12569
12853
  };
12570
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
12854
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12571
12855
  __name: "SearchResultsPageSelect",
12572
12856
  props: {
12573
12857
  lastPageLabel: {},
@@ -12644,7 +12928,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12644
12928
  }
12645
12929
  };
12646
12930
  return (_ctx, _cache) => {
12647
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
12931
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
12648
12932
  showBack.value ? (openBlock(), createElementBlock("div", {
12649
12933
  key: 0,
12650
12934
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12655,7 +12939,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12655
12939
  class: "lupa-page-number lupa-page-number-first",
12656
12940
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12657
12941
  }, " 1 "),
12658
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
12942
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
12659
12943
  ], 64)) : createCommentVNode("", true),
12660
12944
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12661
12945
  return openBlock(), createElementBlock("div", {
@@ -12666,10 +12950,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12666
12950
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
12667
12951
  ]),
12668
12952
  "data-cy": "lupa-page-number"
12669
- }, toDisplayString(page), 11, _hoisted_3$j);
12953
+ }, toDisplayString(page), 11, _hoisted_3$i);
12670
12954
  }), 128)),
12671
12955
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
12672
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
12956
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
12673
12957
  createBaseVNode("div", {
12674
12958
  class: "lupa-page-number lupa-page-number-last",
12675
12959
  onClick: _cache[2] || (_cache[2] = () => {
@@ -12688,14 +12972,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12688
12972
  };
12689
12973
  }
12690
12974
  });
12691
- const _hoisted_1$B = {
12975
+ const _hoisted_1$v = {
12692
12976
  id: "lupa-search-results-page-size",
12693
12977
  "data-cy": "lupa-search-results-page-size"
12694
12978
  };
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({
12979
+ const _hoisted_2$o = { id: "lupa-select" };
12980
+ const _hoisted_3$h = { class: "lupa-select-label" };
12981
+ const _hoisted_4$c = ["aria-label"];
12982
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12699
12983
  __name: "SearchResultsPageSize",
12700
12984
  props: {
12701
12985
  label: {},
@@ -12713,9 +12997,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12713
12997
  });
12714
12998
  };
12715
12999
  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),
13000
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
13001
+ createBaseVNode("div", _hoisted_2$o, [
13002
+ createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.label), 1),
12719
13003
  createBaseVNode("select", {
12720
13004
  class: "lupa-select-dropdown",
12721
13005
  "aria-label": _ctx.label,
@@ -12727,21 +13011,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12727
13011
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
12728
13012
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
12729
13013
  }), 128))
12730
- ], 40, _hoisted_4$d)
13014
+ ], 40, _hoisted_4$c)
12731
13015
  ])
12732
13016
  ]);
12733
13017
  };
12734
13018
  }
12735
13019
  });
12736
- const _hoisted_1$A = {
13020
+ const _hoisted_1$u = {
12737
13021
  id: "lupa-search-results-sort",
12738
13022
  class: "lupa-search-results-sort"
12739
13023
  };
12740
- const _hoisted_2$p = { id: "lupa-select" };
12741
- const _hoisted_3$h = { class: "lupa-select-label" };
12742
- const _hoisted_4$c = ["aria-label"];
13024
+ const _hoisted_2$n = { id: "lupa-select" };
13025
+ const _hoisted_3$g = { class: "lupa-select-label" };
13026
+ const _hoisted_4$b = ["aria-label"];
12743
13027
  const _hoisted_5$8 = ["value"];
12744
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
13028
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12745
13029
  __name: "SearchResultsSort",
12746
13030
  props: {
12747
13031
  options: {},
@@ -12790,9 +13074,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12790
13074
  previousKey.value = selectedKey.value;
12791
13075
  };
12792
13076
  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),
13077
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
13078
+ createBaseVNode("div", _hoisted_2$n, [
13079
+ createBaseVNode("label", _hoisted_3$g, toDisplayString(_ctx.options.label), 1),
12796
13080
  withDirectives(createBaseVNode("select", {
12797
13081
  class: "lupa-select-dropdown",
12798
13082
  "aria-label": _ctx.options.label,
@@ -12807,7 +13091,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12807
13091
  value: option.key
12808
13092
  }, toDisplayString(option.label), 9, _hoisted_5$8);
12809
13093
  }), 128))
12810
- ], 40, _hoisted_4$c), [
13094
+ ], 40, _hoisted_4$b), [
12811
13095
  [vModelSelect, selectedKey.value]
12812
13096
  ])
12813
13097
  ])
@@ -12815,14 +13099,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12815
13099
  };
12816
13100
  }
12817
13101
  });
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 };
13102
+ const _hoisted_1$t = { class: "lupa-toolbar-left" };
13103
+ const _hoisted_2$m = { key: 1 };
13104
+ const _hoisted_3$f = { key: 3 };
13105
+ const _hoisted_4$a = { key: 5 };
12822
13106
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
12823
13107
  const _hoisted_6$5 = { key: 1 };
12824
13108
  const _hoisted_7$3 = { key: 3 };
12825
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
13109
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12826
13110
  __name: "SearchResultsToolbar",
12827
13111
  props: {
12828
13112
  options: {},
@@ -12921,32 +13205,32 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12921
13205
  id: "lupa-search-results-toolbar",
12922
13206
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12923
13207
  }, [
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, {
13208
+ createBaseVNode("div", _hoisted_1$t, [
13209
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13210
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$S, {
12927
13211
  key: 2,
12928
13212
  label: searchSummaryLabel.value,
12929
13213
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12930
13214
  onClear: handleClearAll
12931
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
12932
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
13215
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13216
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
12933
13217
  key: 4,
12934
13218
  options: paginationOptions.value.pageSelect,
12935
13219
  "last-page-label": paginationOptions.value.labels.showMore,
12936
13220
  "first-page-label": paginationOptions.value.labels.showLess
12937
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
13221
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$a))
12938
13222
  ]),
12939
13223
  createBaseVNode("div", _hoisted_5$7, [
12940
- createVNode(_sfc_main$G, {
13224
+ createVNode(_sfc_main$A, {
12941
13225
  label: optionsValue.value.labels.mobileFilterButton,
12942
13226
  "show-filter-count": showMobileFilterCount.value
12943
13227
  }, null, 8, ["label", "show-filter-count"]),
12944
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
13228
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
12945
13229
  key: 0,
12946
13230
  options: paginationOptions.value.pageSize,
12947
13231
  label: paginationOptions.value.labels.pageSize
12948
13232
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
12949
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
13233
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
12950
13234
  key: 2,
12951
13235
  options: sortOptions.value,
12952
13236
  callbacks: callbacks.value
@@ -12956,259 +13240,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12956
13240
  };
12957
13241
  }
12958
13242
  });
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
13243
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
13213
13244
  __name: "SearchResultsProductImage",
13214
13245
  props: {
@@ -13855,7 +13886,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13855
13886
  "data-cy": "lupa-search-result-product-card",
13856
13887
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
13857
13888
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
13858
- createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
13889
+ createVNode(_sfc_main$_, { options: badgesOptions.value }, null, 8, ["options"]),
13859
13890
  createBaseVNode("div", {
13860
13891
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13861
13892
  }, [
@@ -13875,7 +13906,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13875
13906
  link: link.value
13876
13907
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13877
13908
  }), 128)),
13878
- createVNode(_sfc_main$w, {
13909
+ createVNode(_sfc_main$_, {
13879
13910
  options: badgesOptions.value,
13880
13911
  position: "image",
13881
13912
  class: "lupa-image-badges"
@@ -14317,17 +14348,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14317
14348
  class: "lupa-loader"
14318
14349
  })) : createCommentVNode("", true),
14319
14350
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
14320
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
14351
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
14321
14352
  key: 0,
14322
14353
  options: (_a = _ctx.options.filters) != null ? _a : {}
14323
14354
  }, null, 8, ["options"])) : createCommentVNode("", true),
14324
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
14355
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$w, {
14325
14356
  key: 1,
14326
14357
  class: "lupa-toolbar-mobile",
14327
14358
  options: _ctx.options,
14328
14359
  "pagination-location": "top"
14329
14360
  }, null, 8, ["options"])) : createCommentVNode("", true),
14330
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$V, {
14361
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$P, {
14331
14362
  key: 2,
14332
14363
  class: normalizeClass(currentFiltersClass.value),
14333
14364
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -14341,7 +14372,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14341
14372
  sdkOptions: _ctx.options.options
14342
14373
  }, null, 8, ["options", "sdkOptions"]),
14343
14374
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
14344
- createVNode(_sfc_main$C, {
14375
+ createVNode(_sfc_main$w, {
14345
14376
  class: "lupa-toolbar-top",
14346
14377
  options: _ctx.options,
14347
14378
  "pagination-location": "top"
@@ -14371,7 +14402,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14371
14402
  onClick: goToFirstPage
14372
14403
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
14373
14404
  ])) : createCommentVNode("", true),
14374
- createVNode(_sfc_main$C, {
14405
+ createVNode(_sfc_main$w, {
14375
14406
  class: "lupa-toolbar-bottom",
14376
14407
  options: _ctx.options,
14377
14408
  "pagination-location": "bottom"
@@ -14450,7 +14481,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14450
14481
  onClick: handleNavigationBack
14451
14482
  }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
14452
14483
  ])) : createCommentVNode("", true),
14453
- createVNode(_sfc_main$C, {
14484
+ createVNode(_sfc_main$w, {
14454
14485
  class: "lupa-toolbar-mobile",
14455
14486
  "pagination-location": "top",
14456
14487
  options: _ctx.options
@@ -14682,8 +14713,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14682
14713
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14683
14714
  }, [
14684
14715
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
14685
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14686
- createVNode(_sfc_main$X, {
14716
+ createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14717
+ createVNode(_sfc_main$R, {
14687
14718
  "show-summary": true,
14688
14719
  options: _ctx.options,
14689
14720
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -14693,24 +14724,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14693
14724
  key: 1,
14694
14725
  options: _ctx.options
14695
14726
  }, null, 8, ["options"])) : createCommentVNode("", true),
14696
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
14727
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
14697
14728
  key: 2,
14698
14729
  options: _ctx.options.filters
14699
14730
  }, null, 8, ["options"])) : createCommentVNode("", true),
14700
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
14731
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
14701
14732
  key: 3,
14702
14733
  breadcrumbs: _ctx.options.breadcrumbs
14703
14734
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14704
14735
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
14705
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14736
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
14706
14737
  key: 0,
14707
14738
  options: (_b = _ctx.options.filters) != null ? _b : {},
14708
14739
  ref_key: "searchResultsFilters",
14709
14740
  ref: searchResultsFilters
14710
14741
  }, null, 8, ["options"])) : createCommentVNode("", true),
14711
14742
  createBaseVNode("div", _hoisted_3$4, [
14712
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14713
- createVNode(_sfc_main$X, {
14743
+ createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14744
+ createVNode(_sfc_main$R, {
14714
14745
  options: _ctx.options,
14715
14746
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14716
14747
  }, null, 8, ["options", "is-product-list"]),
@@ -14725,13 +14756,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14725
14756
  }, 8, ["options", "ssr"])
14726
14757
  ])
14727
14758
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14728
- createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14729
- createVNode(_sfc_main$X, {
14759
+ createVNode(_sfc_main$T, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14760
+ createVNode(_sfc_main$R, {
14730
14761
  options: _ctx.options,
14731
14762
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14732
14763
  }, null, 8, ["options", "is-product-list"]),
14733
14764
  createBaseVNode("div", _hoisted_4$3, [
14734
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14765
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
14735
14766
  key: 0,
14736
14767
  options: (_e = _ctx.options.filters) != null ? _e : {},
14737
14768
  ref_key: "searchResultsFilters",
@@ -20361,7 +20392,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20361
20392
  onClick: withModifiers(innerClick, ["stop"])
20362
20393
  }, [
20363
20394
  createBaseVNode("div", _hoisted_2$7, [
20364
- createVNode(_sfc_main$_, {
20395
+ createVNode(_sfc_main$U, {
20365
20396
  options: fullSearchBoxOptions.value,
20366
20397
  "is-search-container": true,
20367
20398
  ref_key: "searchBox",
@@ -27373,7 +27404,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
27373
27404
  };
27374
27405
  __expose({ fetch: fetch2 });
27375
27406
  return (_ctx, _cache) => {
27376
- return openBlock(), createBlock(unref(_sfc_main$_), {
27407
+ return openBlock(), createBlock(unref(_sfc_main$U), {
27377
27408
  options: fullSearchBoxOptions.value,
27378
27409
  ref_key: "searchBox",
27379
27410
  ref: searchBox2