@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.
@@ -8561,7 +8561,7 @@ var __async = (__this, __arguments, generator) => {
8561
8561
  const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8562
8562
  const _hoisted_2$S = { class: "lupa-input-clear" };
8563
8563
  const _hoisted_3$B = { id: "lupa-search-box-input" };
8564
- const _hoisted_4$s = ["value"];
8564
+ const _hoisted_4$t = ["value"];
8565
8565
  const _hoisted_5$k = ["aria-label", "placeholder"];
8566
8566
  const _hoisted_6$a = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8567
8567
  const _hoisted_7$7 = [
@@ -8668,7 +8668,7 @@ var __async = (__this, __arguments, generator) => {
8668
8668
  "aria-hidden": "true",
8669
8669
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8670
8670
  disabled: ""
8671
- }, null, 8, _hoisted_4$s),
8671
+ }, null, 8, _hoisted_4$t),
8672
8672
  withDirectives(createBaseVNode("input", mergeProps({
8673
8673
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8674
8674
  }, inputAttributes.value, {
@@ -8880,7 +8880,7 @@ var __async = (__this, __arguments, generator) => {
8880
8880
  class: "lupa-suggestion-facet",
8881
8881
  "data-cy": "lupa-suggestion-facet"
8882
8882
  };
8883
- const _hoisted_4$r = {
8883
+ const _hoisted_4$s = {
8884
8884
  class: "lupa-suggestion-facet-label",
8885
8885
  "data-cy": "lupa-suggestion-facet-label"
8886
8886
  };
@@ -8926,7 +8926,7 @@ var __async = (__this, __arguments, generator) => {
8926
8926
  innerHTML: _ctx.suggestion.displayHighlight
8927
8927
  }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
8928
8928
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8929
- createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8929
+ createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8930
8930
  createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
8931
8931
  ])) : createCommentVNode("", true)
8932
8932
  ]);
@@ -18438,7 +18438,7 @@ and ensure you are accounting for this risk.
18438
18438
  const _hoisted_1$13 = ["innerHTML"];
18439
18439
  const _hoisted_2$M = { key: 0 };
18440
18440
  const _hoisted_3$z = { key: 1 };
18441
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18441
+ const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18442
18442
  const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
18443
18443
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18444
18444
  __name: "SearchBoxProductCustom",
@@ -18471,7 +18471,7 @@ and ensure you are accounting for this risk.
18471
18471
  class: [className.value, "lupa-search-box-product-custom"]
18472
18472
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18473
18473
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
18474
- createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18474
+ createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18475
18475
  createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
18476
18476
  ]))
18477
18477
  ], 16));
@@ -18560,6 +18560,7 @@ and ensure you are accounting for this risk.
18560
18560
  const layout = ref(ResultsLayoutEnum.GRID);
18561
18561
  const loading = ref(false);
18562
18562
  const isMobileSidebarVisible = ref(false);
18563
+ const relatedCategoryChildren = ref([]);
18563
18564
  const optionsStore = useOptionsStore();
18564
18565
  const paramsStore = useParamsStore();
18565
18566
  const screenStore = useScreenStore();
@@ -18701,6 +18702,9 @@ and ensure you are accounting for this risk.
18701
18702
  const hasExactMatch = items.some((item) => getNormalizedString(item.title) === searchInput);
18702
18703
  return hasExactMatch ? items.filter((item) => getNormalizedString(item.title) === searchInput) : items;
18703
18704
  };
18705
+ const setRelatedCategoryChildren = (children) => {
18706
+ relatedCategoryChildren.value = [...children];
18707
+ };
18704
18708
  return {
18705
18709
  isMobileSidebarVisible,
18706
18710
  searchResult,
@@ -18721,6 +18725,7 @@ and ensure you are accounting for this risk.
18721
18725
  itemRange,
18722
18726
  isPageEmpty,
18723
18727
  hideFiltersOnExactMatchForKeys,
18728
+ relatedCategoryChildren,
18724
18729
  setSidebarState,
18725
18730
  queryFacet,
18726
18731
  add: add2,
@@ -18729,7 +18734,8 @@ and ensure you are accounting for this risk.
18729
18734
  setLayout,
18730
18735
  setLoading,
18731
18736
  clearSearchResult,
18732
- filterVisibleFilterValues
18737
+ filterVisibleFilterValues,
18738
+ setRelatedCategoryChildren
18733
18739
  };
18734
18740
  });
18735
18741
  const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
@@ -18878,7 +18884,7 @@ and ensure you are accounting for this risk.
18878
18884
  const _hoisted_1$$ = { class: "lupa-badge-title" };
18879
18885
  const _hoisted_2$K = ["src"];
18880
18886
  const _hoisted_3$x = { key: 1 };
18881
- const _hoisted_4$p = {
18887
+ const _hoisted_4$q = {
18882
18888
  key: 0,
18883
18889
  class: "lupa-badge-full-text"
18884
18890
  };
@@ -18922,7 +18928,7 @@ and ensure you are accounting for this risk.
18922
18928
  }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
18923
18929
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18924
18930
  ]),
18925
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18931
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18926
18932
  ], 6);
18927
18933
  };
18928
18934
  }
@@ -19662,7 +19668,7 @@ and ensure you are accounting for this risk.
19662
19668
  key: 0,
19663
19669
  class: "lupa-panel-title lupa-panel-title-top-results"
19664
19670
  };
19665
- const _hoisted_4$o = {
19671
+ const _hoisted_4$p = {
19666
19672
  key: 1,
19667
19673
  class: "lupa-panel-title"
19668
19674
  };
@@ -19856,7 +19862,7 @@ and ensure you are accounting for this risk.
19856
19862
  "data-cy": "lupa-panel-" + panel.type + "-index"
19857
19863
  }, [
19858
19864
  ((_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),
19859
- ((_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),
19865
+ ((_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),
19860
19866
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
19861
19867
  key: 2,
19862
19868
  panel,
@@ -20295,7 +20301,7 @@ and ensure you are accounting for this risk.
20295
20301
  key: 1,
20296
20302
  "data-cy": "did-you-mean-label"
20297
20303
  };
20298
- const _hoisted_4$n = { key: 1 };
20304
+ const _hoisted_4$o = { key: 1 };
20299
20305
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
20300
20306
  __name: "SearchResultsDidYouMean",
20301
20307
  props: {
@@ -20346,7 +20352,7 @@ and ensure you are accounting for this risk.
20346
20352
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20347
20353
  "data-cy": "did-you-mean-value",
20348
20354
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20349
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20355
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20350
20356
  ]);
20351
20357
  }), 128))
20352
20358
  ])) : createCommentVNode("", true)
@@ -20396,7 +20402,7 @@ and ensure you are accounting for this risk.
20396
20402
  key: 1,
20397
20403
  class: "lupa-results-total-count"
20398
20404
  };
20399
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20405
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20400
20406
  const _hoisted_5$g = ["innerHTML"];
20401
20407
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
20402
20408
  __name: "SearchResultsTitle",
@@ -20442,7 +20448,7 @@ and ensure you are accounting for this risk.
20442
20448
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20443
20449
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
20444
20450
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20445
- createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20451
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20446
20452
  createTextVNode(")")
20447
20453
  ])) : createCommentVNode("", true)
20448
20454
  ])) : createCommentVNode("", true),
@@ -20500,7 +20506,7 @@ and ensure you are accounting for this risk.
20500
20506
  key: 0,
20501
20507
  class: "filter-values"
20502
20508
  };
20503
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
20509
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
20504
20510
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20505
20511
  __name: "CurrentFilters",
20506
20512
  props: {
@@ -20584,7 +20590,7 @@ and ensure you are accounting for this risk.
20584
20590
  }, null, 2)) : createCommentVNode("", true)
20585
20591
  ]),
20586
20592
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
20587
- createBaseVNode("div", _hoisted_4$l, [
20593
+ createBaseVNode("div", _hoisted_4$m, [
20588
20594
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20589
20595
  return openBlock(), createBlock(_sfc_main$R, {
20590
20596
  key: filter2.key + "_" + filter2.value,
@@ -20652,7 +20658,7 @@ and ensure you are accounting for this risk.
20652
20658
  };
20653
20659
  const _hoisted_2$z = { class: "lupa-category-back" };
20654
20660
  const _hoisted_3$q = ["href"];
20655
- const _hoisted_4$k = ["href"];
20661
+ const _hoisted_4$l = ["href"];
20656
20662
  const _hoisted_5$f = { class: "lupa-child-category-list" };
20657
20663
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
20658
20664
  __name: "CategoryFilter",
@@ -20663,6 +20669,7 @@ and ensure you are accounting for this risk.
20663
20669
  const props = __props;
20664
20670
  const categoryChildren = ref([]);
20665
20671
  const optionStore = useOptionsStore();
20672
+ const searchResultsStore = useSearchResultStore();
20666
20673
  const { envOptions, searchResultOptions } = storeToRefs(optionStore);
20667
20674
  const hasBackButton = computed(() => {
20668
20675
  var _a;
@@ -20699,6 +20706,7 @@ and ensure you are accounting for this risk.
20699
20706
  return;
20700
20707
  }
20701
20708
  categoryChildren.value = result2.items;
20709
+ searchResultsStore.setRelatedCategoryChildren(categoryChildren.value);
20702
20710
  (_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onCategoryFilterResults) == null ? void 0 : _c.call(_b, {
20703
20711
  queryKey: props.options.queryKey,
20704
20712
  hasResults: result2.total > 0
@@ -20757,7 +20765,7 @@ and ensure you are accounting for this risk.
20757
20765
  href: parentUrlLink.value,
20758
20766
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
20759
20767
  onClick: handleNavigationParent
20760
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
20768
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
20761
20769
  ], 2),
20762
20770
  createBaseVNode("div", _hoisted_5$f, [
20763
20771
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -20778,7 +20786,7 @@ and ensure you are accounting for this risk.
20778
20786
  };
20779
20787
  const _hoisted_2$y = ["placeholder"];
20780
20788
  const _hoisted_3$p = { class: "lupa-terms-list" };
20781
- const _hoisted_4$j = ["onClick"];
20789
+ const _hoisted_4$k = ["onClick"];
20782
20790
  const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
20783
20791
  const _hoisted_6$9 = { class: "lupa-term-checkbox-label" };
20784
20792
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -20886,7 +20894,7 @@ and ensure you are accounting for this risk.
20886
20894
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20887
20895
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20888
20896
  ])
20889
- ], 10, _hoisted_4$j);
20897
+ ], 10, _hoisted_4$k);
20890
20898
  }), 128))
20891
20899
  ]),
20892
20900
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -21886,7 +21894,7 @@ and ensure you are accounting for this risk.
21886
21894
  key: 1,
21887
21895
  class: "lupa-stats-facet-summary-input"
21888
21896
  };
21889
- const _hoisted_4$i = {
21897
+ const _hoisted_4$j = {
21890
21898
  key: 0,
21891
21899
  class: "lupa-stats-range-label"
21892
21900
  };
@@ -22081,7 +22089,7 @@ and ensure you are accounting for this risk.
22081
22089
  return openBlock(), createElementBlock("div", _hoisted_1$I, [
22082
22090
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
22083
22091
  createBaseVNode("div", null, [
22084
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22092
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22085
22093
  createBaseVNode("div", _hoisted_5$d, [
22086
22094
  withDirectives(createBaseVNode("input", {
22087
22095
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22148,7 +22156,7 @@ and ensure you are accounting for this risk.
22148
22156
  const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
22149
22157
  const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
22150
22158
  const _hoisted_3$n = { class: "lupa-term-label" };
22151
- const _hoisted_4$h = {
22159
+ const _hoisted_4$i = {
22152
22160
  key: 0,
22153
22161
  class: "lupa-term-count"
22154
22162
  };
@@ -22209,7 +22217,7 @@ and ensure you are accounting for this risk.
22209
22217
  ]),
22210
22218
  createBaseVNode("div", _hoisted_2$w, [
22211
22219
  createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22212
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22220
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22213
22221
  ])
22214
22222
  ]),
22215
22223
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
@@ -22721,7 +22729,7 @@ and ensure you are accounting for this risk.
22721
22729
  };
22722
22730
  const _hoisted_2$r = ["onClick"];
22723
22731
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
22724
- const _hoisted_4$g = { class: "lupa-sidebar-top" };
22732
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
22725
22733
  const _hoisted_5$b = { class: "lupa-sidebar-title" };
22726
22734
  const _hoisted_6$7 = {
22727
22735
  key: 0,
@@ -22765,7 +22773,7 @@ and ensure you are accounting for this risk.
22765
22773
  onClick: withModifiers(handleMobileToggle, ["stop"])
22766
22774
  }, null, 8, _hoisted_2$r),
22767
22775
  createBaseVNode("div", _hoisted_3$l, [
22768
- createBaseVNode("div", _hoisted_4$g, [
22776
+ createBaseVNode("div", _hoisted_4$h, [
22769
22777
  createBaseVNode("div", _hoisted_5$b, [
22770
22778
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22771
22779
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -22793,7 +22801,7 @@ and ensure you are accounting for this risk.
22793
22801
  key: 1,
22794
22802
  class: "lupa-search-results-breadcrumb-text"
22795
22803
  };
22796
- const _hoisted_4$f = { key: 2 };
22804
+ const _hoisted_4$g = { key: 2 };
22797
22805
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
22798
22806
  __name: "SearchResultsBreadcrumbs",
22799
22807
  props: {
@@ -22834,7 +22842,7 @@ and ensure you are accounting for this risk.
22834
22842
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
22835
22843
  }
22836
22844
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
22837
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
22845
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
22838
22846
  ]);
22839
22847
  }), 128))
22840
22848
  ]);
@@ -22940,7 +22948,7 @@ and ensure you are accounting for this risk.
22940
22948
  class: "lupa-page-number-separator"
22941
22949
  };
22942
22950
  const _hoisted_3$j = ["onClick"];
22943
- const _hoisted_4$e = {
22951
+ const _hoisted_4$f = {
22944
22952
  key: 0,
22945
22953
  class: "lupa-page-number-separator"
22946
22954
  };
@@ -23046,7 +23054,7 @@ and ensure you are accounting for this risk.
23046
23054
  }, toDisplayString(page), 11, _hoisted_3$j);
23047
23055
  }), 128)),
23048
23056
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23049
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23057
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23050
23058
  createBaseVNode("div", {
23051
23059
  class: "lupa-page-number lupa-page-number-last",
23052
23060
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23071,7 +23079,7 @@ and ensure you are accounting for this risk.
23071
23079
  };
23072
23080
  const _hoisted_2$o = { id: "lupa-select" };
23073
23081
  const _hoisted_3$i = { class: "lupa-select-label" };
23074
- const _hoisted_4$d = ["aria-label"];
23082
+ const _hoisted_4$e = ["aria-label"];
23075
23083
  const _hoisted_5$a = ["value"];
23076
23084
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
23077
23085
  __name: "SearchResultsPageSize",
@@ -23118,7 +23126,7 @@ and ensure you are accounting for this risk.
23118
23126
  value: option
23119
23127
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
23120
23128
  }), 128))
23121
- ], 40, _hoisted_4$d)
23129
+ ], 40, _hoisted_4$e)
23122
23130
  ])
23123
23131
  ]);
23124
23132
  };
@@ -23130,7 +23138,7 @@ and ensure you are accounting for this risk.
23130
23138
  };
23131
23139
  const _hoisted_2$n = { id: "lupa-select" };
23132
23140
  const _hoisted_3$h = { class: "lupa-select-label" };
23133
- const _hoisted_4$c = ["aria-label"];
23141
+ const _hoisted_4$d = ["aria-label"];
23134
23142
  const _hoisted_5$9 = ["value"];
23135
23143
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
23136
23144
  __name: "SearchResultsSort",
@@ -23198,7 +23206,7 @@ and ensure you are accounting for this risk.
23198
23206
  value: option.key
23199
23207
  }, toDisplayString(option.label), 9, _hoisted_5$9);
23200
23208
  }), 128))
23201
- ], 40, _hoisted_4$c), [
23209
+ ], 40, _hoisted_4$d), [
23202
23210
  [vModelSelect, selectedKey.value]
23203
23211
  ])
23204
23212
  ])
@@ -23212,7 +23220,7 @@ and ensure you are accounting for this risk.
23212
23220
  class: "lupa-toolbar-right-title"
23213
23221
  };
23214
23222
  const _hoisted_3$g = { key: 2 };
23215
- const _hoisted_4$b = { key: 4 };
23223
+ const _hoisted_4$c = { key: 4 };
23216
23224
  const _hoisted_5$8 = { key: 6 };
23217
23225
  const _hoisted_6$6 = { class: "lupa-toolbar-right" };
23218
23226
  const _hoisted_7$3 = {
@@ -23336,7 +23344,7 @@ and ensure you are accounting for this risk.
23336
23344
  label: searchSummaryLabel.value,
23337
23345
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23338
23346
  onClear: handleClearAll
23339
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23347
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23340
23348
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
23341
23349
  key: 5,
23342
23350
  options: paginationOptions.value.pageSelect,
@@ -23385,7 +23393,7 @@ and ensure you are accounting for this risk.
23385
23393
  const _hoisted_1$r = ["title", "innerHTML"];
23386
23394
  const _hoisted_2$l = ["title"];
23387
23395
  const _hoisted_3$f = ["href", "innerHTML"];
23388
- const _hoisted_4$a = ["title"];
23396
+ const _hoisted_4$b = ["title"];
23389
23397
  const _hoisted_5$7 = {
23390
23398
  key: 0,
23391
23399
  class: "lupa-search-results-product-title-text"
@@ -23453,7 +23461,7 @@ and ensure you are accounting for this risk.
23453
23461
  class: "lupa-search-results-product-title-text lupa-title-link",
23454
23462
  onClick: handleNavigation
23455
23463
  }, toDisplayString(title.value), 9, _hoisted_6$5)) : createCommentVNode("", true)
23456
- ], 12, _hoisted_4$a));
23464
+ ], 12, _hoisted_4$b));
23457
23465
  };
23458
23466
  }
23459
23467
  });
@@ -23496,7 +23504,7 @@ and ensure you are accounting for this risk.
23496
23504
  const _hoisted_1$p = { id: "lupa-search-results-rating" };
23497
23505
  const _hoisted_2$k = { class: "lupa-ratings" };
23498
23506
  const _hoisted_3$e = { class: "lupa-ratings-base" };
23499
- const _hoisted_4$9 = ["innerHTML"];
23507
+ const _hoisted_4$a = ["innerHTML"];
23500
23508
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
23501
23509
  const _hoisted_6$4 = ["innerHTML"];
23502
23510
  const _hoisted_7$2 = ["href"];
@@ -23540,7 +23548,7 @@ and ensure you are accounting for this risk.
23540
23548
  key: index,
23541
23549
  innerHTML: star,
23542
23550
  class: "lupa-rating lupa-rating-not-highlighted"
23543
- }, null, 8, _hoisted_4$9);
23551
+ }, null, 8, _hoisted_4$a);
23544
23552
  }), 128))
23545
23553
  ]),
23546
23554
  createBaseVNode("div", _hoisted_5$6, [
@@ -23674,7 +23682,7 @@ and ensure you are accounting for this risk.
23674
23682
  const _hoisted_1$m = ["innerHTML"];
23675
23683
  const _hoisted_2$i = { key: 0 };
23676
23684
  const _hoisted_3$c = { key: 1 };
23677
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
23685
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23678
23686
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
23679
23687
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
23680
23688
  __name: "SearchResultsProductCustom",
@@ -23719,7 +23727,7 @@ and ensure you are accounting for this risk.
23719
23727
  class: className.value
23720
23728
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23721
23729
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
23722
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
23730
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23723
23731
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
23724
23732
  ]))
23725
23733
  ], 16));
@@ -23765,7 +23773,7 @@ and ensure you are accounting for this risk.
23765
23773
  const _hoisted_1$k = { id: "lupa-search-results-rating" };
23766
23774
  const _hoisted_2$h = ["innerHTML"];
23767
23775
  const _hoisted_3$b = { class: "lupa-ratings" };
23768
- const _hoisted_4$7 = ["href"];
23776
+ const _hoisted_4$8 = ["href"];
23769
23777
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
23770
23778
  __name: "SearchResultsProductSingleStarRating",
23771
23779
  props: {
@@ -23803,7 +23811,7 @@ and ensure you are accounting for this risk.
23803
23811
  createBaseVNode("a", {
23804
23812
  href: ratingLink.value,
23805
23813
  class: "lupa-total-ratings"
23806
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
23814
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
23807
23815
  ]);
23808
23816
  };
23809
23817
  }
@@ -24131,7 +24139,7 @@ and ensure you are accounting for this risk.
24131
24139
  class: "lupa-similar-query-label",
24132
24140
  "data-cy": "lupa-similar-query-label"
24133
24141
  };
24134
- const _hoisted_4$6 = ["onClick"];
24142
+ const _hoisted_4$7 = ["onClick"];
24135
24143
  const _hoisted_5$4 = ["innerHTML"];
24136
24144
  const _hoisted_6$3 = { key: 0 };
24137
24145
  const _hoisted_7$1 = {
@@ -24184,7 +24192,7 @@ and ensure you are accounting for this risk.
24184
24192
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24185
24193
  }, null, 8, _hoisted_5$4),
24186
24194
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24187
- ], 8, _hoisted_4$6)
24195
+ ], 8, _hoisted_4$7)
24188
24196
  ]),
24189
24197
  createBaseVNode("div", _hoisted_7$1, [
24190
24198
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24407,7 +24415,7 @@ and ensure you are accounting for this risk.
24407
24415
  class: "lupa-empty-results",
24408
24416
  "data-cy": "lupa-no-results-in-page"
24409
24417
  };
24410
- const _hoisted_4$5 = {
24418
+ const _hoisted_4$6 = {
24411
24419
  key: 3,
24412
24420
  class: "lupa-empty-results",
24413
24421
  "data-cy": "lupa-no-results"
@@ -24599,7 +24607,7 @@ and ensure you are accounting for this risk.
24599
24607
  location: "bottom",
24600
24608
  sdkOptions: _ctx.options.options
24601
24609
  }, null, 8, ["options", "sdkOptions"])
24602
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
24610
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
24603
24611
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
24604
24612
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24605
24613
  ])) : createCommentVNode("", true),
@@ -24628,6 +24636,7 @@ and ensure you are accounting for this risk.
24628
24636
  class: "lupa-category-back"
24629
24637
  };
24630
24638
  const _hoisted_3$6 = ["href"];
24639
+ const _hoisted_4$5 = { class: "lupa-child-category-list" };
24631
24640
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
24632
24641
  __name: "CategoryTopFilters",
24633
24642
  props: {
@@ -24635,6 +24644,8 @@ and ensure you are accounting for this risk.
24635
24644
  },
24636
24645
  setup(__props) {
24637
24646
  const props = __props;
24647
+ const searchResultsStore = useSearchResultStore();
24648
+ const { relatedCategoryChildren } = storeToRefs(searchResultsStore);
24638
24649
  const hasBackButton = computed(() => {
24639
24650
  var _a, _b;
24640
24651
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
@@ -24650,12 +24661,19 @@ and ensure you are accounting for this risk.
24650
24661
  const hasEventRouting = computed(() => {
24651
24662
  return props.options.routingBehavior === "event";
24652
24663
  });
24664
+ const categoryOptions = computed(() => {
24665
+ return props.options.categories;
24666
+ });
24653
24667
  const handleNavigationBack = (event) => {
24654
24668
  if (!backUrlLink.value) {
24655
24669
  return;
24656
24670
  }
24657
24671
  handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
24658
24672
  };
24673
+ const getCategoryKey = (item) => {
24674
+ var _a, _b, _c, _d, _e, _f;
24675
+ 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 : ""]);
24676
+ };
24659
24677
  return (_ctx, _cache) => {
24660
24678
  return openBlock(), createElementBlock("div", {
24661
24679
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
@@ -24668,6 +24686,15 @@ and ensure you are accounting for this risk.
24668
24686
  onClick: handleNavigationBack
24669
24687
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
24670
24688
  ])) : createCommentVNode("", true),
24689
+ createBaseVNode("div", _hoisted_4$5, [
24690
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24691
+ return openBlock(), createBlock(_sfc_main$P, {
24692
+ key: getCategoryKey(child),
24693
+ item: child,
24694
+ options: categoryOptions.value
24695
+ }, null, 8, ["item", "options"]);
24696
+ }), 128))
24697
+ ]),
24671
24698
  createVNode(_sfc_main$w, {
24672
24699
  class: "lupa-toolbar-mobile",
24673
24700
  "pagination-location": "top",