@getlupa/client 1.14.4 → 1.14.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.
@@ -8559,7 +8559,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8559
8559
  const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8560
8560
  const _hoisted_2$S = { class: "lupa-input-clear" };
8561
8561
  const _hoisted_3$B = { id: "lupa-search-box-input" };
8562
- const _hoisted_4$s = ["value"];
8562
+ const _hoisted_4$t = ["value"];
8563
8563
  const _hoisted_5$k = ["aria-label", "placeholder"];
8564
8564
  const _hoisted_6$a = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8565
8565
  const _hoisted_7$7 = [
@@ -8666,7 +8666,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8666
8666
  "aria-hidden": "true",
8667
8667
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8668
8668
  disabled: ""
8669
- }, null, 8, _hoisted_4$s),
8669
+ }, null, 8, _hoisted_4$t),
8670
8670
  withDirectives(createBaseVNode("input", mergeProps({
8671
8671
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8672
8672
  }, inputAttributes.value, {
@@ -8878,7 +8878,7 @@ const _hoisted_3$A = {
8878
8878
  class: "lupa-suggestion-facet",
8879
8879
  "data-cy": "lupa-suggestion-facet"
8880
8880
  };
8881
- const _hoisted_4$r = {
8881
+ const _hoisted_4$s = {
8882
8882
  class: "lupa-suggestion-facet-label",
8883
8883
  "data-cy": "lupa-suggestion-facet-label"
8884
8884
  };
@@ -8924,7 +8924,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8924
8924
  innerHTML: _ctx.suggestion.displayHighlight
8925
8925
  }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
8926
8926
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8927
- createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8927
+ createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8928
8928
  createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
8929
8929
  ])) : createCommentVNode("", true)
8930
8930
  ]);
@@ -18436,7 +18436,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
18436
18436
  const _hoisted_1$13 = ["innerHTML"];
18437
18437
  const _hoisted_2$M = { key: 0 };
18438
18438
  const _hoisted_3$z = { key: 1 };
18439
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18439
+ const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18440
18440
  const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
18441
18441
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18442
18442
  __name: "SearchBoxProductCustom",
@@ -18469,7 +18469,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18469
18469
  class: [className.value, "lupa-search-box-product-custom"]
18470
18470
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18471
18471
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
18472
- createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18472
+ createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18473
18473
  createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
18474
18474
  ]))
18475
18475
  ], 16));
@@ -18558,6 +18558,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
18558
18558
  const layout = ref(ResultsLayoutEnum.GRID);
18559
18559
  const loading = ref(false);
18560
18560
  const isMobileSidebarVisible = ref(false);
18561
+ const relatedCategoryChildren = ref([]);
18561
18562
  const optionsStore = useOptionsStore();
18562
18563
  const paramsStore = useParamsStore();
18563
18564
  const screenStore = useScreenStore();
@@ -18699,6 +18700,9 @@ const useSearchResultStore = defineStore("searchResult", () => {
18699
18700
  const hasExactMatch = items.some((item) => getNormalizedString(item.title) === searchInput);
18700
18701
  return hasExactMatch ? items.filter((item) => getNormalizedString(item.title) === searchInput) : items;
18701
18702
  };
18703
+ const setRelatedCategoryChildren = (children) => {
18704
+ relatedCategoryChildren.value = [...children];
18705
+ };
18702
18706
  return {
18703
18707
  isMobileSidebarVisible,
18704
18708
  searchResult,
@@ -18719,6 +18723,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
18719
18723
  itemRange,
18720
18724
  isPageEmpty,
18721
18725
  hideFiltersOnExactMatchForKeys,
18726
+ relatedCategoryChildren,
18722
18727
  setSidebarState,
18723
18728
  queryFacet,
18724
18729
  add: add2,
@@ -18727,7 +18732,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
18727
18732
  setLayout,
18728
18733
  setLoading,
18729
18734
  clearSearchResult,
18730
- filterVisibleFilterValues
18735
+ filterVisibleFilterValues,
18736
+ setRelatedCategoryChildren
18731
18737
  };
18732
18738
  });
18733
18739
  const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
@@ -18876,7 +18882,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18876
18882
  const _hoisted_1$$ = { class: "lupa-badge-title" };
18877
18883
  const _hoisted_2$K = ["src"];
18878
18884
  const _hoisted_3$x = { key: 1 };
18879
- const _hoisted_4$p = {
18885
+ const _hoisted_4$q = {
18880
18886
  key: 0,
18881
18887
  class: "lupa-badge-full-text"
18882
18888
  };
@@ -18920,7 +18926,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
18920
18926
  }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
18921
18927
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18922
18928
  ]),
18923
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18929
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18924
18930
  ], 6);
18925
18931
  };
18926
18932
  }
@@ -19660,7 +19666,7 @@ const _hoisted_3$v = {
19660
19666
  key: 0,
19661
19667
  class: "lupa-panel-title lupa-panel-title-top-results"
19662
19668
  };
19663
- const _hoisted_4$o = {
19669
+ const _hoisted_4$p = {
19664
19670
  key: 1,
19665
19671
  class: "lupa-panel-title"
19666
19672
  };
@@ -19854,7 +19860,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
19854
19860
  "data-cy": "lupa-panel-" + panel.type + "-index"
19855
19861
  }, [
19856
19862
  ((_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),
19857
- ((_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),
19863
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
19858
19864
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
19859
19865
  key: 2,
19860
19866
  panel,
@@ -20293,7 +20299,7 @@ const _hoisted_3$u = {
20293
20299
  key: 1,
20294
20300
  "data-cy": "did-you-mean-label"
20295
20301
  };
20296
- const _hoisted_4$n = { key: 1 };
20302
+ const _hoisted_4$o = { key: 1 };
20297
20303
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
20298
20304
  __name: "SearchResultsDidYouMean",
20299
20305
  props: {
@@ -20344,7 +20350,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20344
20350
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20345
20351
  "data-cy": "did-you-mean-value",
20346
20352
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20347
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20353
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20348
20354
  ]);
20349
20355
  }), 128))
20350
20356
  ])) : createCommentVNode("", true)
@@ -20394,7 +20400,7 @@ const _hoisted_3$t = {
20394
20400
  key: 1,
20395
20401
  class: "lupa-results-total-count"
20396
20402
  };
20397
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20403
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20398
20404
  const _hoisted_5$g = ["innerHTML"];
20399
20405
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
20400
20406
  __name: "SearchResultsTitle",
@@ -20440,7 +20446,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20440
20446
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20441
20447
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
20442
20448
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20443
- createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20449
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20444
20450
  createTextVNode(")")
20445
20451
  ])) : createCommentVNode("", true)
20446
20452
  ])) : createCommentVNode("", true),
@@ -20498,7 +20504,7 @@ const _hoisted_3$r = {
20498
20504
  key: 0,
20499
20505
  class: "filter-values"
20500
20506
  };
20501
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
20507
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
20502
20508
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20503
20509
  __name: "CurrentFilters",
20504
20510
  props: {
@@ -20582,7 +20588,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20582
20588
  }, null, 2)) : createCommentVNode("", true)
20583
20589
  ]),
20584
20590
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
20585
- createBaseVNode("div", _hoisted_4$l, [
20591
+ createBaseVNode("div", _hoisted_4$m, [
20586
20592
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20587
20593
  return openBlock(), createBlock(_sfc_main$R, {
20588
20594
  key: filter2.key + "_" + filter2.value,
@@ -20650,7 +20656,7 @@ const _hoisted_1$K = {
20650
20656
  };
20651
20657
  const _hoisted_2$z = { class: "lupa-category-back" };
20652
20658
  const _hoisted_3$q = ["href"];
20653
- const _hoisted_4$k = ["href"];
20659
+ const _hoisted_4$l = ["href"];
20654
20660
  const _hoisted_5$f = { class: "lupa-child-category-list" };
20655
20661
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
20656
20662
  __name: "CategoryFilter",
@@ -20661,6 +20667,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
20661
20667
  const props = __props;
20662
20668
  const categoryChildren = ref([]);
20663
20669
  const optionStore = useOptionsStore();
20670
+ const searchResultsStore = useSearchResultStore();
20664
20671
  const { envOptions, searchResultOptions } = storeToRefs(optionStore);
20665
20672
  const hasBackButton = computed(() => {
20666
20673
  var _a;
@@ -20697,6 +20704,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
20697
20704
  return;
20698
20705
  }
20699
20706
  categoryChildren.value = result2.items;
20707
+ searchResultsStore.setRelatedCategoryChildren(categoryChildren.value);
20700
20708
  (_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onCategoryFilterResults) == null ? void 0 : _c.call(_b, {
20701
20709
  queryKey: props.options.queryKey,
20702
20710
  hasResults: result2.total > 0
@@ -20755,7 +20763,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
20755
20763
  href: parentUrlLink.value,
20756
20764
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
20757
20765
  onClick: handleNavigationParent
20758
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
20766
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
20759
20767
  ], 2),
20760
20768
  createBaseVNode("div", _hoisted_5$f, [
20761
20769
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -20776,7 +20784,7 @@ const _hoisted_1$J = {
20776
20784
  };
20777
20785
  const _hoisted_2$y = ["placeholder"];
20778
20786
  const _hoisted_3$p = { class: "lupa-terms-list" };
20779
- const _hoisted_4$j = ["onClick"];
20787
+ const _hoisted_4$k = ["onClick"];
20780
20788
  const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
20781
20789
  const _hoisted_6$9 = { class: "lupa-term-checkbox-label" };
20782
20790
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -20884,7 +20892,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
20884
20892
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20885
20893
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20886
20894
  ])
20887
- ], 10, _hoisted_4$j);
20895
+ ], 10, _hoisted_4$k);
20888
20896
  }), 128))
20889
20897
  ]),
20890
20898
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -21884,7 +21892,7 @@ const _hoisted_3$o = {
21884
21892
  key: 1,
21885
21893
  class: "lupa-stats-facet-summary-input"
21886
21894
  };
21887
- const _hoisted_4$i = {
21895
+ const _hoisted_4$j = {
21888
21896
  key: 0,
21889
21897
  class: "lupa-stats-range-label"
21890
21898
  };
@@ -22079,7 +22087,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22079
22087
  return openBlock(), createElementBlock("div", _hoisted_1$I, [
22080
22088
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
22081
22089
  createBaseVNode("div", null, [
22082
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22090
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22083
22091
  createBaseVNode("div", _hoisted_5$d, [
22084
22092
  withDirectives(createBaseVNode("input", {
22085
22093
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22146,7 +22154,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22146
22154
  const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
22147
22155
  const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
22148
22156
  const _hoisted_3$n = { class: "lupa-term-label" };
22149
- const _hoisted_4$h = {
22157
+ const _hoisted_4$i = {
22150
22158
  key: 0,
22151
22159
  class: "lupa-term-count"
22152
22160
  };
@@ -22207,7 +22215,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22207
22215
  ]),
22208
22216
  createBaseVNode("div", _hoisted_2$w, [
22209
22217
  createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22210
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22218
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22211
22219
  ])
22212
22220
  ]),
22213
22221
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
@@ -22719,7 +22727,7 @@ const _hoisted_1$A = {
22719
22727
  };
22720
22728
  const _hoisted_2$r = ["onClick"];
22721
22729
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
22722
- const _hoisted_4$g = { class: "lupa-sidebar-top" };
22730
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
22723
22731
  const _hoisted_5$b = { class: "lupa-sidebar-title" };
22724
22732
  const _hoisted_6$7 = {
22725
22733
  key: 0,
@@ -22763,7 +22771,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22763
22771
  onClick: withModifiers(handleMobileToggle, ["stop"])
22764
22772
  }, null, 8, _hoisted_2$r),
22765
22773
  createBaseVNode("div", _hoisted_3$l, [
22766
- createBaseVNode("div", _hoisted_4$g, [
22774
+ createBaseVNode("div", _hoisted_4$h, [
22767
22775
  createBaseVNode("div", _hoisted_5$b, [
22768
22776
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22769
22777
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -22791,7 +22799,7 @@ const _hoisted_3$k = {
22791
22799
  key: 1,
22792
22800
  class: "lupa-search-results-breadcrumb-text"
22793
22801
  };
22794
- const _hoisted_4$f = { key: 2 };
22802
+ const _hoisted_4$g = { key: 2 };
22795
22803
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
22796
22804
  __name: "SearchResultsBreadcrumbs",
22797
22805
  props: {
@@ -22832,7 +22840,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22832
22840
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
22833
22841
  }
22834
22842
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
22835
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
22843
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
22836
22844
  ]);
22837
22845
  }), 128))
22838
22846
  ]);
@@ -22938,7 +22946,7 @@ const _hoisted_2$p = {
22938
22946
  class: "lupa-page-number-separator"
22939
22947
  };
22940
22948
  const _hoisted_3$j = ["onClick"];
22941
- const _hoisted_4$e = {
22949
+ const _hoisted_4$f = {
22942
22950
  key: 0,
22943
22951
  class: "lupa-page-number-separator"
22944
22952
  };
@@ -23044,7 +23052,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23044
23052
  }, toDisplayString(page), 11, _hoisted_3$j);
23045
23053
  }), 128)),
23046
23054
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23047
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23055
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23048
23056
  createBaseVNode("div", {
23049
23057
  class: "lupa-page-number lupa-page-number-last",
23050
23058
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23069,7 +23077,7 @@ const _hoisted_1$u = {
23069
23077
  };
23070
23078
  const _hoisted_2$o = { id: "lupa-select" };
23071
23079
  const _hoisted_3$i = { class: "lupa-select-label" };
23072
- const _hoisted_4$d = ["aria-label"];
23080
+ const _hoisted_4$e = ["aria-label"];
23073
23081
  const _hoisted_5$a = ["value"];
23074
23082
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
23075
23083
  __name: "SearchResultsPageSize",
@@ -23116,7 +23124,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23116
23124
  value: option
23117
23125
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
23118
23126
  }), 128))
23119
- ], 40, _hoisted_4$d)
23127
+ ], 40, _hoisted_4$e)
23120
23128
  ])
23121
23129
  ]);
23122
23130
  };
@@ -23128,7 +23136,7 @@ const _hoisted_1$t = {
23128
23136
  };
23129
23137
  const _hoisted_2$n = { id: "lupa-select" };
23130
23138
  const _hoisted_3$h = { class: "lupa-select-label" };
23131
- const _hoisted_4$c = ["aria-label"];
23139
+ const _hoisted_4$d = ["aria-label"];
23132
23140
  const _hoisted_5$9 = ["value"];
23133
23141
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
23134
23142
  __name: "SearchResultsSort",
@@ -23196,7 +23204,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23196
23204
  value: option.key
23197
23205
  }, toDisplayString(option.label), 9, _hoisted_5$9);
23198
23206
  }), 128))
23199
- ], 40, _hoisted_4$c), [
23207
+ ], 40, _hoisted_4$d), [
23200
23208
  [vModelSelect, selectedKey.value]
23201
23209
  ])
23202
23210
  ])
@@ -23210,7 +23218,7 @@ const _hoisted_2$m = {
23210
23218
  class: "lupa-toolbar-right-title"
23211
23219
  };
23212
23220
  const _hoisted_3$g = { key: 2 };
23213
- const _hoisted_4$b = { key: 4 };
23221
+ const _hoisted_4$c = { key: 4 };
23214
23222
  const _hoisted_5$8 = { key: 6 };
23215
23223
  const _hoisted_6$6 = { class: "lupa-toolbar-right" };
23216
23224
  const _hoisted_7$3 = {
@@ -23334,7 +23342,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23334
23342
  label: searchSummaryLabel.value,
23335
23343
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23336
23344
  onClear: handleClearAll
23337
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23345
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23338
23346
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
23339
23347
  key: 5,
23340
23348
  options: paginationOptions.value.pageSelect,
@@ -23383,7 +23391,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23383
23391
  const _hoisted_1$r = ["title", "innerHTML"];
23384
23392
  const _hoisted_2$l = ["title"];
23385
23393
  const _hoisted_3$f = ["href", "innerHTML"];
23386
- const _hoisted_4$a = ["title"];
23394
+ const _hoisted_4$b = ["title"];
23387
23395
  const _hoisted_5$7 = {
23388
23396
  key: 0,
23389
23397
  class: "lupa-search-results-product-title-text"
@@ -23451,7 +23459,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23451
23459
  class: "lupa-search-results-product-title-text lupa-title-link",
23452
23460
  onClick: handleNavigation
23453
23461
  }, toDisplayString(title.value), 9, _hoisted_6$5)) : createCommentVNode("", true)
23454
- ], 12, _hoisted_4$a));
23462
+ ], 12, _hoisted_4$b));
23455
23463
  };
23456
23464
  }
23457
23465
  });
@@ -23494,7 +23502,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23494
23502
  const _hoisted_1$p = { id: "lupa-search-results-rating" };
23495
23503
  const _hoisted_2$k = { class: "lupa-ratings" };
23496
23504
  const _hoisted_3$e = { class: "lupa-ratings-base" };
23497
- const _hoisted_4$9 = ["innerHTML"];
23505
+ const _hoisted_4$a = ["innerHTML"];
23498
23506
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
23499
23507
  const _hoisted_6$4 = ["innerHTML"];
23500
23508
  const _hoisted_7$2 = ["href"];
@@ -23538,7 +23546,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23538
23546
  key: index,
23539
23547
  innerHTML: star,
23540
23548
  class: "lupa-rating lupa-rating-not-highlighted"
23541
- }, null, 8, _hoisted_4$9);
23549
+ }, null, 8, _hoisted_4$a);
23542
23550
  }), 128))
23543
23551
  ]),
23544
23552
  createBaseVNode("div", _hoisted_5$6, [
@@ -23672,7 +23680,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23672
23680
  const _hoisted_1$m = ["innerHTML"];
23673
23681
  const _hoisted_2$i = { key: 0 };
23674
23682
  const _hoisted_3$c = { key: 1 };
23675
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
23683
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23676
23684
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
23677
23685
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
23678
23686
  __name: "SearchResultsProductCustom",
@@ -23717,7 +23725,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23717
23725
  class: className.value
23718
23726
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23719
23727
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
23720
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
23728
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23721
23729
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
23722
23730
  ]))
23723
23731
  ], 16));
@@ -23763,7 +23771,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
23763
23771
  const _hoisted_1$k = { id: "lupa-search-results-rating" };
23764
23772
  const _hoisted_2$h = ["innerHTML"];
23765
23773
  const _hoisted_3$b = { class: "lupa-ratings" };
23766
- const _hoisted_4$7 = ["href"];
23774
+ const _hoisted_4$8 = ["href"];
23767
23775
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
23768
23776
  __name: "SearchResultsProductSingleStarRating",
23769
23777
  props: {
@@ -23801,7 +23809,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
23801
23809
  createBaseVNode("a", {
23802
23810
  href: ratingLink.value,
23803
23811
  class: "lupa-total-ratings"
23804
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
23812
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
23805
23813
  ]);
23806
23814
  };
23807
23815
  }
@@ -24129,7 +24137,7 @@ const _hoisted_3$9 = {
24129
24137
  class: "lupa-similar-query-label",
24130
24138
  "data-cy": "lupa-similar-query-label"
24131
24139
  };
24132
- const _hoisted_4$6 = ["onClick"];
24140
+ const _hoisted_4$7 = ["onClick"];
24133
24141
  const _hoisted_5$4 = ["innerHTML"];
24134
24142
  const _hoisted_6$3 = { key: 0 };
24135
24143
  const _hoisted_7$1 = {
@@ -24182,7 +24190,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24182
24190
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24183
24191
  }, null, 8, _hoisted_5$4),
24184
24192
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24185
- ], 8, _hoisted_4$6)
24193
+ ], 8, _hoisted_4$7)
24186
24194
  ]),
24187
24195
  createBaseVNode("div", _hoisted_7$1, [
24188
24196
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24405,7 +24413,7 @@ const _hoisted_3$7 = {
24405
24413
  class: "lupa-empty-results",
24406
24414
  "data-cy": "lupa-no-results-in-page"
24407
24415
  };
24408
- const _hoisted_4$5 = {
24416
+ const _hoisted_4$6 = {
24409
24417
  key: 3,
24410
24418
  class: "lupa-empty-results",
24411
24419
  "data-cy": "lupa-no-results"
@@ -24597,7 +24605,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24597
24605
  location: "bottom",
24598
24606
  sdkOptions: _ctx.options.options
24599
24607
  }, null, 8, ["options", "sdkOptions"])
24600
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
24608
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
24601
24609
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
24602
24610
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24603
24611
  ])) : createCommentVNode("", true),
@@ -24626,6 +24634,7 @@ const _hoisted_2$a = {
24626
24634
  class: "lupa-category-back"
24627
24635
  };
24628
24636
  const _hoisted_3$6 = ["href"];
24637
+ const _hoisted_4$5 = { class: "lupa-child-category-list" };
24629
24638
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
24630
24639
  __name: "CategoryTopFilters",
24631
24640
  props: {
@@ -24633,6 +24642,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24633
24642
  },
24634
24643
  setup(__props) {
24635
24644
  const props = __props;
24645
+ const searchResultsStore = useSearchResultStore();
24646
+ const { relatedCategoryChildren } = storeToRefs(searchResultsStore);
24636
24647
  const hasBackButton = computed(() => {
24637
24648
  var _a, _b;
24638
24649
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
@@ -24648,12 +24659,19 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24648
24659
  const hasEventRouting = computed(() => {
24649
24660
  return props.options.routingBehavior === "event";
24650
24661
  });
24662
+ const categoryOptions = computed(() => {
24663
+ return props.options.categories;
24664
+ });
24651
24665
  const handleNavigationBack = (event) => {
24652
24666
  if (!backUrlLink.value) {
24653
24667
  return;
24654
24668
  }
24655
24669
  handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
24656
24670
  };
24671
+ const getCategoryKey = (item) => {
24672
+ var _a, _b, _c, _d, _e, _f;
24673
+ return (item == null ? void 0 : item[(_c = (_b = (_a = categoryOptions.value) == null ? void 0 : _a.keys) == null ? void 0 : _b.titleKey) != null ? _c : ""]) + (item == null ? void 0 : item[(_f = (_e = (_d = categoryOptions.value) == null ? void 0 : _d.keys) == null ? void 0 : _e.urlKey) != null ? _f : ""]);
24674
+ };
24657
24675
  return (_ctx, _cache) => {
24658
24676
  return openBlock(), createElementBlock("div", {
24659
24677
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
@@ -24666,6 +24684,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24666
24684
  onClick: handleNavigationBack
24667
24685
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
24668
24686
  ])) : createCommentVNode("", true),
24687
+ createBaseVNode("div", _hoisted_4$5, [
24688
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24689
+ return openBlock(), createBlock(_sfc_main$P, {
24690
+ key: getCategoryKey(child),
24691
+ item: child,
24692
+ options: categoryOptions.value
24693
+ }, null, 8, ["item", "options"]);
24694
+ }), 128))
24695
+ ]),
24669
24696
  createVNode(_sfc_main$w, {
24670
24697
  class: "lupa-toolbar-mobile",
24671
24698
  "pagination-location": "top",