@getlupa/client 1.17.4 → 1.17.5

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.
@@ -7861,6 +7861,14 @@ const formatPriceSummary = ([min, max], currency, separator = ",", currencyTempl
7861
7861
  }
7862
7862
  return `< ${formatPrice(max, currency, separator, currencyTemplate)}`;
7863
7863
  };
7864
+ const getTranslatedFacetKey = (facet, translations) => {
7865
+ var _a, _b;
7866
+ return (_b = (_a = translations == null ? void 0 : translations.keyTranslations) == null ? void 0 : _a[facet.key]) != null ? _b : facet.label;
7867
+ };
7868
+ const getTranslatedFacetValue = (facet, value, translations) => {
7869
+ var _a, _b, _c;
7870
+ return (_c = (_b = (_a = translations == null ? void 0 : translations.valueTranslations) == null ? void 0 : _a[facet.key]) == null ? void 0 : _b[value == null ? void 0 : value.title]) != null ? _c : value.title;
7871
+ };
7864
7872
  const formatRange = (filter2) => {
7865
7873
  var _a, _b;
7866
7874
  const lt = (_a = filter2.lt) != null ? _a : filter2.lte;
@@ -7920,11 +7928,12 @@ const unfoldFilters = (filters, price = {}) => {
7920
7928
  const seed = [];
7921
7929
  return Object.entries(filters).reduce((a, c2) => [...a, ...unfoldFilter(...c2, price)], seed);
7922
7930
  };
7923
- const getLabeledFilters = (filters, facets2) => {
7931
+ const getLabeledFilters = (filters, facets2, translations) => {
7924
7932
  return filters.map((f2) => {
7925
- var _a, _b;
7933
+ var _a, _b, _c, _d;
7926
7934
  return __spreadProps2(__spreadValues2({}, f2), {
7927
- label: (_b = (_a = facets2 == null ? void 0 : facets2.find((ft) => ft.key === f2.key)) == null ? void 0 : _a.label) != null ? _b : capitalize$1(f2.key)
7935
+ label: (_d = (_c = (_a = translations == null ? void 0 : translations.keyTranslations) == null ? void 0 : _a[f2.key]) != null ? _c : (_b = facets2 == null ? void 0 : facets2.find((ft) => ft.key === f2.key)) == null ? void 0 : _b.label) != null ? _d : capitalize$1(f2.key),
7936
+ value: getTranslatedFacetValue({ key: f2.key }, { title: f2.value }, translations)
7928
7937
  });
7929
7938
  });
7930
7939
  };
@@ -14277,7 +14286,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
14277
14286
  };
14278
14287
  });
14279
14288
  const _hoisted_1$1i = { id: "lupa-search-box-input-container" };
14280
- const _hoisted_2$U = { class: "lupa-input-clear" };
14289
+ const _hoisted_2$T = { class: "lupa-input-clear" };
14281
14290
  const _hoisted_3$C = { id: "lupa-search-box-input" };
14282
14291
  const _hoisted_4$s = ["value"];
14283
14292
  const _hoisted_5$j = ["aria-label", "placeholder"];
@@ -14374,7 +14383,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14374
14383
  __expose({ focus });
14375
14384
  return (_ctx, _cache) => {
14376
14385
  return openBlock(), createElementBlock("div", _hoisted_1$1i, [
14377
- createBaseVNode("div", _hoisted_2$U, [
14386
+ createBaseVNode("div", _hoisted_2$T, [
14378
14387
  createBaseVNode("div", {
14379
14388
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
14380
14389
  onClick: clear2
@@ -14457,7 +14466,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14457
14466
  }
14458
14467
  });
14459
14468
  const _hoisted_1$1h = { class: "lupa-search-box-history-item" };
14460
- const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
14469
+ const _hoisted_2$S = { class: "lupa-search-box-history-item-content" };
14461
14470
  const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14462
14471
  __name: "SearchBoxHistoryItem",
14463
14472
  props: {
@@ -14475,7 +14484,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14475
14484
  };
14476
14485
  return (_ctx, _cache) => {
14477
14486
  return openBlock(), createElementBlock("div", _hoisted_1$1h, [
14478
- createBaseVNode("div", _hoisted_2$T, [
14487
+ createBaseVNode("div", _hoisted_2$S, [
14479
14488
  createBaseVNode("div", {
14480
14489
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
14481
14490
  onClick: click2
@@ -14602,7 +14611,7 @@ const generateGridTemplate = (elements) => {
14602
14611
  return gridTemplate.join(" ");
14603
14612
  };
14604
14613
  const _hoisted_1$1e = ["innerHTML"];
14605
- const _hoisted_2$S = {
14614
+ const _hoisted_2$R = {
14606
14615
  key: 1,
14607
14616
  "data-cy": "lupa-suggestion-value",
14608
14617
  class: "lupa-suggestion-value"
@@ -14656,7 +14665,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14656
14665
  class: "lupa-suggestion-value",
14657
14666
  "data-cy": "lupa-suggestion-value",
14658
14667
  innerHTML: _ctx.suggestion.displayHighlight
14659
- }, null, 8, _hoisted_1$1e)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
14668
+ }, null, 8, _hoisted_1$1e)) : (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(_ctx.suggestion.display), 1)),
14660
14669
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
14661
14670
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
14662
14671
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -23795,6 +23804,11 @@ const processDisplayCondition = (displayCondition, doc2 = {}) => {
23795
23804
  case "exists": {
23796
23805
  return fields == null ? void 0 : fields.every((field) => getFieldValue(doc2, field) !== void 0);
23797
23806
  }
23807
+ case "notExists": {
23808
+ return fields == null ? void 0 : fields.every(
23809
+ (field) => getFieldValue(doc2, field) === void 0 || getFieldValue(doc2, field) === null
23810
+ );
23811
+ }
23798
23812
  case "equals": {
23799
23813
  if (fields.length < 2)
23800
23814
  return false;
@@ -23851,7 +23865,7 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
23851
23865
  }
23852
23866
  };
23853
23867
  const _hoisted_1$1c = ["src"];
23854
- const _hoisted_2$R = ["src"];
23868
+ const _hoisted_2$Q = ["src"];
23855
23869
  const _sfc_main$1n = /* @__PURE__ */ defineComponent({
23856
23870
  __name: "ProductImage",
23857
23871
  props: {
@@ -24002,7 +24016,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
24002
24016
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
24003
24017
  style: styleOverride.value,
24004
24018
  src: finalMainImageUrl.value
24005
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
24019
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$Q))
24006
24020
  ], 38);
24007
24021
  };
24008
24022
  }
@@ -24025,7 +24039,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24025
24039
  }
24026
24040
  });
24027
24041
  const _hoisted_1$1b = ["innerHTML"];
24028
- const _hoisted_2$Q = {
24042
+ const _hoisted_2$P = {
24029
24043
  key: 1,
24030
24044
  class: "lupa-search-box-product-title"
24031
24045
  };
@@ -24052,14 +24066,14 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24052
24066
  key: 0,
24053
24067
  class: "lupa-search-box-product-title",
24054
24068
  innerHTML: sanitizedTitle.value
24055
- }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
24069
+ }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, [
24056
24070
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
24057
24071
  ]));
24058
24072
  };
24059
24073
  }
24060
24074
  });
24061
24075
  const _hoisted_1$1a = ["innerHTML"];
24062
- const _hoisted_2$P = {
24076
+ const _hoisted_2$O = {
24063
24077
  key: 1,
24064
24078
  class: "lupa-search-box-product-description"
24065
24079
  };
@@ -24086,7 +24100,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24086
24100
  key: 0,
24087
24101
  class: "lupa-search-box-product-description",
24088
24102
  innerHTML: sanitizedDescription.value
24089
- }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
24103
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(description.value), 1));
24090
24104
  };
24091
24105
  }
24092
24106
  });
@@ -24145,7 +24159,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24145
24159
  }
24146
24160
  });
24147
24161
  const _hoisted_1$18 = ["innerHTML"];
24148
- const _hoisted_2$O = { key: 0 };
24162
+ const _hoisted_2$N = { key: 0 };
24149
24163
  const _hoisted_3$A = { key: 1 };
24150
24164
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
24151
24165
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
@@ -24179,7 +24193,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24179
24193
  key: 1,
24180
24194
  class: [className.value, "lupa-search-box-product-custom"]
24181
24195
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24182
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
24196
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
24183
24197
  createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
24184
24198
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
24185
24199
  ]))
@@ -24302,6 +24316,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
24302
24316
  var _a, _b, _c;
24303
24317
  return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.currencyTemplate) != null ? _c : "";
24304
24318
  });
24319
+ const filterTranslations = computed(() => {
24320
+ var _a, _b, _c;
24321
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.filters) == null ? void 0 : _b.translations) != null ? _c : {};
24322
+ });
24305
24323
  const labeledFilters = computed(
24306
24324
  () => getLabeledFilters(
24307
24325
  unfoldFilters(filters.value, {
@@ -24310,7 +24328,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
24310
24328
  separator: priceSeparator.value,
24311
24329
  currencyTemplate: currencyTemplate.value
24312
24330
  }),
24313
- facets2.value
24331
+ facets2.value,
24332
+ filterTranslations.value
24314
24333
  )
24315
24334
  );
24316
24335
  const displayFilters = computed(() => {
@@ -24493,7 +24512,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
24493
24512
  };
24494
24513
  });
24495
24514
  const _hoisted_1$16 = { class: "lupa-search-box-add-to-cart-wrapper" };
24496
- const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
24515
+ const _hoisted_2$M = { class: "lupa-search-box-product-addtocart" };
24497
24516
  const _hoisted_3$z = ["onClick", "disabled"];
24498
24517
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24499
24518
  __name: "SearchBoxProductAddToCart",
@@ -24530,7 +24549,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24530
24549
  });
24531
24550
  return (_ctx, _cache) => {
24532
24551
  return openBlock(), createElementBlock("div", _hoisted_1$16, [
24533
- createBaseVNode("div", _hoisted_2$N, [
24552
+ createBaseVNode("div", _hoisted_2$M, [
24534
24553
  createBaseVNode("button", mergeProps({
24535
24554
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
24536
24555
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
@@ -24644,7 +24663,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
24644
24663
  }
24645
24664
  }));
24646
24665
  const _hoisted_1$14 = { class: "lupa-badge-title" };
24647
- const _hoisted_2$M = ["src"];
24666
+ const _hoisted_2$L = ["src"];
24648
24667
  const _hoisted_3$y = { key: 1 };
24649
24668
  const _hoisted_4$p = {
24650
24669
  key: 0,
@@ -24687,7 +24706,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24687
24706
  image.value ? (openBlock(), createElementBlock("img", {
24688
24707
  key: 0,
24689
24708
  src: image.value
24690
- }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
24709
+ }, null, 8, _hoisted_2$L)) : createCommentVNode("", true),
24691
24710
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24692
24711
  ]),
24693
24712
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -24787,7 +24806,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24787
24806
  }
24788
24807
  });
24789
24808
  const _hoisted_1$10 = { class: "lupa-image-badges" };
24790
- const _hoisted_2$L = ["src"];
24809
+ const _hoisted_2$K = ["src"];
24791
24810
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24792
24811
  __name: "ImageBadge",
24793
24812
  props: {
@@ -24816,7 +24835,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24816
24835
  }, [
24817
24836
  createBaseVNode("img", {
24818
24837
  src: getImageUrl(item)
24819
- }, null, 8, _hoisted_2$L)
24838
+ }, null, 8, _hoisted_2$K)
24820
24839
  ]);
24821
24840
  }), 128))
24822
24841
  ]);
@@ -24975,7 +24994,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
24975
24994
  }
24976
24995
  }));
24977
24996
  const _hoisted_1$_ = ["href"];
24978
- const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
24997
+ const _hoisted_2$J = { class: "lupa-search-box-product-details-section" };
24979
24998
  const _hoisted_3$x = {
24980
24999
  key: 0,
24981
25000
  class: "lupa-search-box-product-add-to-cart-section"
@@ -25076,7 +25095,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25076
25095
  }, null, 8, ["item", "element", "labels", "link"]);
25077
25096
  }), 128))
25078
25097
  ], 4),
25079
- createBaseVNode("div", _hoisted_2$K, [
25098
+ createBaseVNode("div", _hoisted_2$J, [
25080
25099
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
25081
25100
  var _a;
25082
25101
  return openBlock(), createBlock(_sfc_main$1e, {
@@ -25282,7 +25301,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25282
25301
  }
25283
25302
  });
25284
25303
  const _hoisted_1$Y = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25285
- const _hoisted_2$J = { key: 0 };
25304
+ const _hoisted_2$I = { key: 0 };
25286
25305
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25287
25306
  __name: "SearchBoxProductsGoToResultsButton",
25288
25307
  props: {
@@ -25319,7 +25338,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25319
25338
  onClick: goToResults
25320
25339
  }, [
25321
25340
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
25322
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25341
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25323
25342
  ])
25324
25343
  ]);
25325
25344
  };
@@ -25587,7 +25606,7 @@ const _hoisted_1$X = {
25587
25606
  key: 0,
25588
25607
  id: "lupa-search-box-panel"
25589
25608
  };
25590
- const _hoisted_2$I = ["data-cy"];
25609
+ const _hoisted_2$H = ["data-cy"];
25591
25610
  const _hoisted_3$w = {
25592
25611
  key: 0,
25593
25612
  class: "lupa-panel-title lupa-panel-title-top-results"
@@ -25807,7 +25826,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25807
25826
  key: "0"
25808
25827
  } : void 0
25809
25828
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
25810
- ], 14, _hoisted_2$I);
25829
+ ], 14, _hoisted_2$H);
25811
25830
  }), 128))
25812
25831
  ], 4),
25813
25832
  !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1r, {
@@ -25846,8 +25865,7 @@ const unbindSearchTriggers = (triggers = [], event) => {
25846
25865
  const elements = getElements(triggers);
25847
25866
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
25848
25867
  };
25849
- const _hoisted_1$W = { id: "lupa-search-box" };
25850
- const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
25868
+ const _hoisted_1$W = { class: "lupa-search-box-wrapper" };
25851
25869
  const _sfc_main$10 = /* @__PURE__ */ defineComponent({
25852
25870
  __name: "SearchBox",
25853
25871
  props: {
@@ -26158,8 +26176,11 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26158
26176
  };
26159
26177
  return (_ctx, _cache) => {
26160
26178
  var _a2;
26161
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
26162
- createBaseVNode("div", _hoisted_2$H, [
26179
+ return openBlock(), createElementBlock("div", {
26180
+ id: "lupa-search-box",
26181
+ class: normalizeClass({ "lupa-search-box-opened": opened.value })
26182
+ }, [
26183
+ createBaseVNode("div", _hoisted_1$W, [
26163
26184
  createVNode(_sfc_main$1v, {
26164
26185
  options: inputOptions.value,
26165
26186
  suggestedValue: suggestedValue.value,
@@ -26194,7 +26215,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26194
26215
  } : void 0
26195
26216
  ]), 1032, ["options", "inputValue", "isSearchContainer", "focused"])) : createCommentVNode("", true)
26196
26217
  ])
26197
- ]);
26218
+ ], 2);
26198
26219
  };
26199
26220
  }
26200
26221
  });
@@ -26788,6 +26809,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
26788
26809
  setup(__props, { emit: emit2 }) {
26789
26810
  const props = __props;
26790
26811
  const searchResultStore = useSearchResultStore();
26812
+ const optionsStore = useOptionsStore();
26813
+ const { searchResultOptions } = storeToRefs(optionsStore);
26791
26814
  const facet = computed(() => {
26792
26815
  var _a;
26793
26816
  return (_a = props.facet) != null ? _a : { type: "terms", items: [], key: "" };
@@ -26847,6 +26870,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
26847
26870
  selectedItems = isRange.value && selectedItems ? [rangeFilterToString(selectedItems)] : selectedItems;
26848
26871
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
26849
26872
  };
26873
+ const getItemLabel = (item) => {
26874
+ var _a;
26875
+ return getTranslatedFacetValue(props.facet, item, (_a = searchResultOptions.value.filters) == null ? void 0 : _a.translations);
26876
+ };
26850
26877
  return (_ctx, _cache) => {
26851
26878
  return openBlock(), createElementBlock("div", _hoisted_1$O, [
26852
26879
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
@@ -26872,7 +26899,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
26872
26899
  }, null, 2)
26873
26900
  ]),
26874
26901
  createBaseVNode("div", _hoisted_6$8, [
26875
- createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
26902
+ createBaseVNode("span", _hoisted_7$6, toDisplayString(getItemLabel(item)), 1),
26876
26903
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
26877
26904
  ])
26878
26905
  ], 10, _hoisted_4$j);
@@ -28356,7 +28383,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
28356
28383
  return (_a2 = props.currentFilters) != null ? _a2 : {};
28357
28384
  });
28358
28385
  const searchResultStore = useSearchResultStore();
28386
+ const optionsStore = useOptionsStore();
28359
28387
  const { currentFilterKeys } = storeToRefs(searchResultStore);
28388
+ const { searchResultOptions } = storeToRefs(optionsStore);
28360
28389
  const isOpen = ref((_b = (_a = props.options.expand) == null ? void 0 : _a.includes(props.facet.key)) != null ? _b : false);
28361
28390
  const facetPanel = ref(null);
28362
28391
  const facetType = computed(() => {
@@ -28395,6 +28424,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
28395
28424
  const facetKeyClass = computed(() => {
28396
28425
  return `lupa-facet-${facet.value.key}`;
28397
28426
  });
28427
+ const facetLabel = computed(() => {
28428
+ var _a2;
28429
+ return getTranslatedFacetKey(props.facet, (_a2 = searchResultOptions.value.filters) == null ? void 0 : _a2.translations);
28430
+ });
28398
28431
  onMounted(() => {
28399
28432
  var _a2;
28400
28433
  if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
@@ -28450,7 +28483,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
28450
28483
  "data-cy": "lupa-search-result-facet-label",
28451
28484
  onClick: toggleFacet
28452
28485
  }, [
28453
- createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
28486
+ createBaseVNode("div", _hoisted_1$K, toDisplayString(facetLabel.value), 1),
28454
28487
  createBaseVNode("div", {
28455
28488
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
28456
28489
  }, null, 2)