@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.
@@ -8563,7 +8563,7 @@ var __async = (__this, __arguments, generator) => {
8563
8563
  const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8564
8564
  const _hoisted_2$S = { class: "lupa-input-clear" };
8565
8565
  const _hoisted_3$B = { id: "lupa-search-box-input" };
8566
- const _hoisted_4$s = ["value"];
8566
+ const _hoisted_4$t = ["value"];
8567
8567
  const _hoisted_5$k = ["aria-label", "placeholder"];
8568
8568
  const _hoisted_6$a = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8569
8569
  const _hoisted_7$7 = [
@@ -8670,7 +8670,7 @@ var __async = (__this, __arguments, generator) => {
8670
8670
  "aria-hidden": "true",
8671
8671
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8672
8672
  disabled: ""
8673
- }, null, 8, _hoisted_4$s),
8673
+ }, null, 8, _hoisted_4$t),
8674
8674
  withDirectives(createBaseVNode("input", mergeProps({
8675
8675
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8676
8676
  }, inputAttributes.value, {
@@ -8882,7 +8882,7 @@ var __async = (__this, __arguments, generator) => {
8882
8882
  class: "lupa-suggestion-facet",
8883
8883
  "data-cy": "lupa-suggestion-facet"
8884
8884
  };
8885
- const _hoisted_4$r = {
8885
+ const _hoisted_4$s = {
8886
8886
  class: "lupa-suggestion-facet-label",
8887
8887
  "data-cy": "lupa-suggestion-facet-label"
8888
8888
  };
@@ -8928,7 +8928,7 @@ var __async = (__this, __arguments, generator) => {
8928
8928
  innerHTML: _ctx.suggestion.displayHighlight
8929
8929
  }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
8930
8930
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8931
- createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8931
+ createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8932
8932
  createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
8933
8933
  ])) : createCommentVNode("", true)
8934
8934
  ]);
@@ -18440,7 +18440,7 @@ and ensure you are accounting for this risk.
18440
18440
  const _hoisted_1$13 = ["innerHTML"];
18441
18441
  const _hoisted_2$M = { key: 0 };
18442
18442
  const _hoisted_3$z = { key: 1 };
18443
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18443
+ const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18444
18444
  const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
18445
18445
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18446
18446
  __name: "SearchBoxProductCustom",
@@ -18473,7 +18473,7 @@ and ensure you are accounting for this risk.
18473
18473
  class: [className.value, "lupa-search-box-product-custom"]
18474
18474
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18475
18475
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
18476
- createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18476
+ createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18477
18477
  createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
18478
18478
  ]))
18479
18479
  ], 16));
@@ -18562,6 +18562,7 @@ and ensure you are accounting for this risk.
18562
18562
  const layout = ref(ResultsLayoutEnum.GRID);
18563
18563
  const loading = ref(false);
18564
18564
  const isMobileSidebarVisible = ref(false);
18565
+ const relatedCategoryChildren = ref([]);
18565
18566
  const optionsStore = useOptionsStore();
18566
18567
  const paramsStore = useParamsStore();
18567
18568
  const screenStore = useScreenStore();
@@ -18703,6 +18704,9 @@ and ensure you are accounting for this risk.
18703
18704
  const hasExactMatch = items.some((item) => getNormalizedString(item.title) === searchInput);
18704
18705
  return hasExactMatch ? items.filter((item) => getNormalizedString(item.title) === searchInput) : items;
18705
18706
  };
18707
+ const setRelatedCategoryChildren = (children) => {
18708
+ relatedCategoryChildren.value = [...children];
18709
+ };
18706
18710
  return {
18707
18711
  isMobileSidebarVisible,
18708
18712
  searchResult,
@@ -18723,6 +18727,7 @@ and ensure you are accounting for this risk.
18723
18727
  itemRange,
18724
18728
  isPageEmpty,
18725
18729
  hideFiltersOnExactMatchForKeys,
18730
+ relatedCategoryChildren,
18726
18731
  setSidebarState,
18727
18732
  queryFacet,
18728
18733
  add: add2,
@@ -18731,7 +18736,8 @@ and ensure you are accounting for this risk.
18731
18736
  setLayout,
18732
18737
  setLoading,
18733
18738
  clearSearchResult,
18734
- filterVisibleFilterValues
18739
+ filterVisibleFilterValues,
18740
+ setRelatedCategoryChildren
18735
18741
  };
18736
18742
  });
18737
18743
  const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
@@ -18880,7 +18886,7 @@ and ensure you are accounting for this risk.
18880
18886
  const _hoisted_1$$ = { class: "lupa-badge-title" };
18881
18887
  const _hoisted_2$K = ["src"];
18882
18888
  const _hoisted_3$x = { key: 1 };
18883
- const _hoisted_4$p = {
18889
+ const _hoisted_4$q = {
18884
18890
  key: 0,
18885
18891
  class: "lupa-badge-full-text"
18886
18892
  };
@@ -18924,7 +18930,7 @@ and ensure you are accounting for this risk.
18924
18930
  }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
18925
18931
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18926
18932
  ]),
18927
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18933
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18928
18934
  ], 6);
18929
18935
  };
18930
18936
  }
@@ -19664,7 +19670,7 @@ and ensure you are accounting for this risk.
19664
19670
  key: 0,
19665
19671
  class: "lupa-panel-title lupa-panel-title-top-results"
19666
19672
  };
19667
- const _hoisted_4$o = {
19673
+ const _hoisted_4$p = {
19668
19674
  key: 1,
19669
19675
  class: "lupa-panel-title"
19670
19676
  };
@@ -19858,7 +19864,7 @@ and ensure you are accounting for this risk.
19858
19864
  "data-cy": "lupa-panel-" + panel.type + "-index"
19859
19865
  }, [
19860
19866
  ((_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),
19861
- ((_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),
19867
+ ((_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),
19862
19868
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
19863
19869
  key: 2,
19864
19870
  panel,
@@ -20297,7 +20303,7 @@ and ensure you are accounting for this risk.
20297
20303
  key: 1,
20298
20304
  "data-cy": "did-you-mean-label"
20299
20305
  };
20300
- const _hoisted_4$n = { key: 1 };
20306
+ const _hoisted_4$o = { key: 1 };
20301
20307
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
20302
20308
  __name: "SearchResultsDidYouMean",
20303
20309
  props: {
@@ -20348,7 +20354,7 @@ and ensure you are accounting for this risk.
20348
20354
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20349
20355
  "data-cy": "did-you-mean-value",
20350
20356
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20351
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20357
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20352
20358
  ]);
20353
20359
  }), 128))
20354
20360
  ])) : createCommentVNode("", true)
@@ -20398,7 +20404,7 @@ and ensure you are accounting for this risk.
20398
20404
  key: 1,
20399
20405
  class: "lupa-results-total-count"
20400
20406
  };
20401
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20407
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20402
20408
  const _hoisted_5$g = ["innerHTML"];
20403
20409
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
20404
20410
  __name: "SearchResultsTitle",
@@ -20444,7 +20450,7 @@ and ensure you are accounting for this risk.
20444
20450
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20445
20451
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
20446
20452
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20447
- createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20453
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20448
20454
  createTextVNode(")")
20449
20455
  ])) : createCommentVNode("", true)
20450
20456
  ])) : createCommentVNode("", true),
@@ -20502,7 +20508,7 @@ and ensure you are accounting for this risk.
20502
20508
  key: 0,
20503
20509
  class: "filter-values"
20504
20510
  };
20505
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
20511
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
20506
20512
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20507
20513
  __name: "CurrentFilters",
20508
20514
  props: {
@@ -20586,7 +20592,7 @@ and ensure you are accounting for this risk.
20586
20592
  }, null, 2)) : createCommentVNode("", true)
20587
20593
  ]),
20588
20594
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
20589
- createBaseVNode("div", _hoisted_4$l, [
20595
+ createBaseVNode("div", _hoisted_4$m, [
20590
20596
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20591
20597
  return openBlock(), createBlock(_sfc_main$R, {
20592
20598
  key: filter2.key + "_" + filter2.value,
@@ -20654,7 +20660,7 @@ and ensure you are accounting for this risk.
20654
20660
  };
20655
20661
  const _hoisted_2$z = { class: "lupa-category-back" };
20656
20662
  const _hoisted_3$q = ["href"];
20657
- const _hoisted_4$k = ["href"];
20663
+ const _hoisted_4$l = ["href"];
20658
20664
  const _hoisted_5$f = { class: "lupa-child-category-list" };
20659
20665
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
20660
20666
  __name: "CategoryFilter",
@@ -20665,6 +20671,7 @@ and ensure you are accounting for this risk.
20665
20671
  const props = __props;
20666
20672
  const categoryChildren = ref([]);
20667
20673
  const optionStore = useOptionsStore();
20674
+ const searchResultsStore = useSearchResultStore();
20668
20675
  const { envOptions, searchResultOptions } = storeToRefs(optionStore);
20669
20676
  const hasBackButton = computed(() => {
20670
20677
  var _a;
@@ -20701,6 +20708,7 @@ and ensure you are accounting for this risk.
20701
20708
  return;
20702
20709
  }
20703
20710
  categoryChildren.value = result2.items;
20711
+ searchResultsStore.setRelatedCategoryChildren(categoryChildren.value);
20704
20712
  (_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onCategoryFilterResults) == null ? void 0 : _c.call(_b, {
20705
20713
  queryKey: props.options.queryKey,
20706
20714
  hasResults: result2.total > 0
@@ -20759,7 +20767,7 @@ and ensure you are accounting for this risk.
20759
20767
  href: parentUrlLink.value,
20760
20768
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
20761
20769
  onClick: handleNavigationParent
20762
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
20770
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
20763
20771
  ], 2),
20764
20772
  createBaseVNode("div", _hoisted_5$f, [
20765
20773
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -20780,7 +20788,7 @@ and ensure you are accounting for this risk.
20780
20788
  };
20781
20789
  const _hoisted_2$y = ["placeholder"];
20782
20790
  const _hoisted_3$p = { class: "lupa-terms-list" };
20783
- const _hoisted_4$j = ["onClick"];
20791
+ const _hoisted_4$k = ["onClick"];
20784
20792
  const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
20785
20793
  const _hoisted_6$9 = { class: "lupa-term-checkbox-label" };
20786
20794
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -20888,7 +20896,7 @@ and ensure you are accounting for this risk.
20888
20896
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20889
20897
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20890
20898
  ])
20891
- ], 10, _hoisted_4$j);
20899
+ ], 10, _hoisted_4$k);
20892
20900
  }), 128))
20893
20901
  ]),
20894
20902
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -21888,7 +21896,7 @@ and ensure you are accounting for this risk.
21888
21896
  key: 1,
21889
21897
  class: "lupa-stats-facet-summary-input"
21890
21898
  };
21891
- const _hoisted_4$i = {
21899
+ const _hoisted_4$j = {
21892
21900
  key: 0,
21893
21901
  class: "lupa-stats-range-label"
21894
21902
  };
@@ -22083,7 +22091,7 @@ and ensure you are accounting for this risk.
22083
22091
  return openBlock(), createElementBlock("div", _hoisted_1$I, [
22084
22092
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
22085
22093
  createBaseVNode("div", null, [
22086
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22094
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22087
22095
  createBaseVNode("div", _hoisted_5$d, [
22088
22096
  withDirectives(createBaseVNode("input", {
22089
22097
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22150,7 +22158,7 @@ and ensure you are accounting for this risk.
22150
22158
  const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
22151
22159
  const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
22152
22160
  const _hoisted_3$n = { class: "lupa-term-label" };
22153
- const _hoisted_4$h = {
22161
+ const _hoisted_4$i = {
22154
22162
  key: 0,
22155
22163
  class: "lupa-term-count"
22156
22164
  };
@@ -22211,7 +22219,7 @@ and ensure you are accounting for this risk.
22211
22219
  ]),
22212
22220
  createBaseVNode("div", _hoisted_2$w, [
22213
22221
  createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22214
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22222
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22215
22223
  ])
22216
22224
  ]),
22217
22225
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
@@ -22723,7 +22731,7 @@ and ensure you are accounting for this risk.
22723
22731
  };
22724
22732
  const _hoisted_2$r = ["onClick"];
22725
22733
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
22726
- const _hoisted_4$g = { class: "lupa-sidebar-top" };
22734
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
22727
22735
  const _hoisted_5$b = { class: "lupa-sidebar-title" };
22728
22736
  const _hoisted_6$7 = {
22729
22737
  key: 0,
@@ -22767,7 +22775,7 @@ and ensure you are accounting for this risk.
22767
22775
  onClick: withModifiers(handleMobileToggle, ["stop"])
22768
22776
  }, null, 8, _hoisted_2$r),
22769
22777
  createBaseVNode("div", _hoisted_3$l, [
22770
- createBaseVNode("div", _hoisted_4$g, [
22778
+ createBaseVNode("div", _hoisted_4$h, [
22771
22779
  createBaseVNode("div", _hoisted_5$b, [
22772
22780
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22773
22781
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -22795,7 +22803,7 @@ and ensure you are accounting for this risk.
22795
22803
  key: 1,
22796
22804
  class: "lupa-search-results-breadcrumb-text"
22797
22805
  };
22798
- const _hoisted_4$f = { key: 2 };
22806
+ const _hoisted_4$g = { key: 2 };
22799
22807
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
22800
22808
  __name: "SearchResultsBreadcrumbs",
22801
22809
  props: {
@@ -22836,7 +22844,7 @@ and ensure you are accounting for this risk.
22836
22844
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
22837
22845
  }
22838
22846
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
22839
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
22847
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
22840
22848
  ]);
22841
22849
  }), 128))
22842
22850
  ]);
@@ -22942,7 +22950,7 @@ and ensure you are accounting for this risk.
22942
22950
  class: "lupa-page-number-separator"
22943
22951
  };
22944
22952
  const _hoisted_3$j = ["onClick"];
22945
- const _hoisted_4$e = {
22953
+ const _hoisted_4$f = {
22946
22954
  key: 0,
22947
22955
  class: "lupa-page-number-separator"
22948
22956
  };
@@ -23048,7 +23056,7 @@ and ensure you are accounting for this risk.
23048
23056
  }, toDisplayString(page), 11, _hoisted_3$j);
23049
23057
  }), 128)),
23050
23058
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23051
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23059
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23052
23060
  createBaseVNode("div", {
23053
23061
  class: "lupa-page-number lupa-page-number-last",
23054
23062
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23073,7 +23081,7 @@ and ensure you are accounting for this risk.
23073
23081
  };
23074
23082
  const _hoisted_2$o = { id: "lupa-select" };
23075
23083
  const _hoisted_3$i = { class: "lupa-select-label" };
23076
- const _hoisted_4$d = ["aria-label"];
23084
+ const _hoisted_4$e = ["aria-label"];
23077
23085
  const _hoisted_5$a = ["value"];
23078
23086
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
23079
23087
  __name: "SearchResultsPageSize",
@@ -23120,7 +23128,7 @@ and ensure you are accounting for this risk.
23120
23128
  value: option
23121
23129
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
23122
23130
  }), 128))
23123
- ], 40, _hoisted_4$d)
23131
+ ], 40, _hoisted_4$e)
23124
23132
  ])
23125
23133
  ]);
23126
23134
  };
@@ -23132,7 +23140,7 @@ and ensure you are accounting for this risk.
23132
23140
  };
23133
23141
  const _hoisted_2$n = { id: "lupa-select" };
23134
23142
  const _hoisted_3$h = { class: "lupa-select-label" };
23135
- const _hoisted_4$c = ["aria-label"];
23143
+ const _hoisted_4$d = ["aria-label"];
23136
23144
  const _hoisted_5$9 = ["value"];
23137
23145
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
23138
23146
  __name: "SearchResultsSort",
@@ -23200,7 +23208,7 @@ and ensure you are accounting for this risk.
23200
23208
  value: option.key
23201
23209
  }, toDisplayString(option.label), 9, _hoisted_5$9);
23202
23210
  }), 128))
23203
- ], 40, _hoisted_4$c), [
23211
+ ], 40, _hoisted_4$d), [
23204
23212
  [vModelSelect, selectedKey.value]
23205
23213
  ])
23206
23214
  ])
@@ -23214,7 +23222,7 @@ and ensure you are accounting for this risk.
23214
23222
  class: "lupa-toolbar-right-title"
23215
23223
  };
23216
23224
  const _hoisted_3$g = { key: 2 };
23217
- const _hoisted_4$b = { key: 4 };
23225
+ const _hoisted_4$c = { key: 4 };
23218
23226
  const _hoisted_5$8 = { key: 6 };
23219
23227
  const _hoisted_6$6 = { class: "lupa-toolbar-right" };
23220
23228
  const _hoisted_7$3 = {
@@ -23338,7 +23346,7 @@ and ensure you are accounting for this risk.
23338
23346
  label: searchSummaryLabel.value,
23339
23347
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23340
23348
  onClear: handleClearAll
23341
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23349
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23342
23350
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
23343
23351
  key: 5,
23344
23352
  options: paginationOptions.value.pageSelect,
@@ -23387,7 +23395,7 @@ and ensure you are accounting for this risk.
23387
23395
  const _hoisted_1$r = ["title", "innerHTML"];
23388
23396
  const _hoisted_2$l = ["title"];
23389
23397
  const _hoisted_3$f = ["href", "innerHTML"];
23390
- const _hoisted_4$a = ["title"];
23398
+ const _hoisted_4$b = ["title"];
23391
23399
  const _hoisted_5$7 = {
23392
23400
  key: 0,
23393
23401
  class: "lupa-search-results-product-title-text"
@@ -23455,7 +23463,7 @@ and ensure you are accounting for this risk.
23455
23463
  class: "lupa-search-results-product-title-text lupa-title-link",
23456
23464
  onClick: handleNavigation
23457
23465
  }, toDisplayString(title.value), 9, _hoisted_6$5)) : createCommentVNode("", true)
23458
- ], 12, _hoisted_4$a));
23466
+ ], 12, _hoisted_4$b));
23459
23467
  };
23460
23468
  }
23461
23469
  });
@@ -23498,7 +23506,7 @@ and ensure you are accounting for this risk.
23498
23506
  const _hoisted_1$p = { id: "lupa-search-results-rating" };
23499
23507
  const _hoisted_2$k = { class: "lupa-ratings" };
23500
23508
  const _hoisted_3$e = { class: "lupa-ratings-base" };
23501
- const _hoisted_4$9 = ["innerHTML"];
23509
+ const _hoisted_4$a = ["innerHTML"];
23502
23510
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
23503
23511
  const _hoisted_6$4 = ["innerHTML"];
23504
23512
  const _hoisted_7$2 = ["href"];
@@ -23542,7 +23550,7 @@ and ensure you are accounting for this risk.
23542
23550
  key: index,
23543
23551
  innerHTML: star,
23544
23552
  class: "lupa-rating lupa-rating-not-highlighted"
23545
- }, null, 8, _hoisted_4$9);
23553
+ }, null, 8, _hoisted_4$a);
23546
23554
  }), 128))
23547
23555
  ]),
23548
23556
  createBaseVNode("div", _hoisted_5$6, [
@@ -23676,7 +23684,7 @@ and ensure you are accounting for this risk.
23676
23684
  const _hoisted_1$m = ["innerHTML"];
23677
23685
  const _hoisted_2$i = { key: 0 };
23678
23686
  const _hoisted_3$c = { key: 1 };
23679
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
23687
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23680
23688
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
23681
23689
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
23682
23690
  __name: "SearchResultsProductCustom",
@@ -23721,7 +23729,7 @@ and ensure you are accounting for this risk.
23721
23729
  class: className.value
23722
23730
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23723
23731
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
23724
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
23732
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23725
23733
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
23726
23734
  ]))
23727
23735
  ], 16));
@@ -23767,7 +23775,7 @@ and ensure you are accounting for this risk.
23767
23775
  const _hoisted_1$k = { id: "lupa-search-results-rating" };
23768
23776
  const _hoisted_2$h = ["innerHTML"];
23769
23777
  const _hoisted_3$b = { class: "lupa-ratings" };
23770
- const _hoisted_4$7 = ["href"];
23778
+ const _hoisted_4$8 = ["href"];
23771
23779
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
23772
23780
  __name: "SearchResultsProductSingleStarRating",
23773
23781
  props: {
@@ -23805,7 +23813,7 @@ and ensure you are accounting for this risk.
23805
23813
  createBaseVNode("a", {
23806
23814
  href: ratingLink.value,
23807
23815
  class: "lupa-total-ratings"
23808
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
23816
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
23809
23817
  ]);
23810
23818
  };
23811
23819
  }
@@ -24133,7 +24141,7 @@ and ensure you are accounting for this risk.
24133
24141
  class: "lupa-similar-query-label",
24134
24142
  "data-cy": "lupa-similar-query-label"
24135
24143
  };
24136
- const _hoisted_4$6 = ["onClick"];
24144
+ const _hoisted_4$7 = ["onClick"];
24137
24145
  const _hoisted_5$4 = ["innerHTML"];
24138
24146
  const _hoisted_6$3 = { key: 0 };
24139
24147
  const _hoisted_7$1 = {
@@ -24186,7 +24194,7 @@ and ensure you are accounting for this risk.
24186
24194
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24187
24195
  }, null, 8, _hoisted_5$4),
24188
24196
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24189
- ], 8, _hoisted_4$6)
24197
+ ], 8, _hoisted_4$7)
24190
24198
  ]),
24191
24199
  createBaseVNode("div", _hoisted_7$1, [
24192
24200
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24409,7 +24417,7 @@ and ensure you are accounting for this risk.
24409
24417
  class: "lupa-empty-results",
24410
24418
  "data-cy": "lupa-no-results-in-page"
24411
24419
  };
24412
- const _hoisted_4$5 = {
24420
+ const _hoisted_4$6 = {
24413
24421
  key: 3,
24414
24422
  class: "lupa-empty-results",
24415
24423
  "data-cy": "lupa-no-results"
@@ -24601,7 +24609,7 @@ and ensure you are accounting for this risk.
24601
24609
  location: "bottom",
24602
24610
  sdkOptions: _ctx.options.options
24603
24611
  }, null, 8, ["options", "sdkOptions"])
24604
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
24612
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
24605
24613
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
24606
24614
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24607
24615
  ])) : createCommentVNode("", true),
@@ -24630,6 +24638,7 @@ and ensure you are accounting for this risk.
24630
24638
  class: "lupa-category-back"
24631
24639
  };
24632
24640
  const _hoisted_3$6 = ["href"];
24641
+ const _hoisted_4$5 = { class: "lupa-child-category-list" };
24633
24642
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
24634
24643
  __name: "CategoryTopFilters",
24635
24644
  props: {
@@ -24637,6 +24646,8 @@ and ensure you are accounting for this risk.
24637
24646
  },
24638
24647
  setup(__props) {
24639
24648
  const props = __props;
24649
+ const searchResultsStore = useSearchResultStore();
24650
+ const { relatedCategoryChildren } = storeToRefs(searchResultsStore);
24640
24651
  const hasBackButton = computed(() => {
24641
24652
  var _a, _b;
24642
24653
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
@@ -24652,12 +24663,19 @@ and ensure you are accounting for this risk.
24652
24663
  const hasEventRouting = computed(() => {
24653
24664
  return props.options.routingBehavior === "event";
24654
24665
  });
24666
+ const categoryOptions = computed(() => {
24667
+ return props.options.categories;
24668
+ });
24655
24669
  const handleNavigationBack = (event) => {
24656
24670
  if (!backUrlLink.value) {
24657
24671
  return;
24658
24672
  }
24659
24673
  handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
24660
24674
  };
24675
+ const getCategoryKey = (item) => {
24676
+ var _a, _b, _c, _d, _e, _f;
24677
+ 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 : ""]);
24678
+ };
24661
24679
  return (_ctx, _cache) => {
24662
24680
  return openBlock(), createElementBlock("div", {
24663
24681
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
@@ -24670,6 +24688,15 @@ and ensure you are accounting for this risk.
24670
24688
  onClick: handleNavigationBack
24671
24689
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
24672
24690
  ])) : createCommentVNode("", true),
24691
+ createBaseVNode("div", _hoisted_4$5, [
24692
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24693
+ return openBlock(), createBlock(_sfc_main$P, {
24694
+ key: getCategoryKey(child),
24695
+ item: child,
24696
+ options: categoryOptions.value
24697
+ }, null, 8, ["item", "options"]);
24698
+ }), 128))
24699
+ ]),
24673
24700
  createVNode(_sfc_main$w, {
24674
24701
  class: "lupa-toolbar-mobile",
24675
24702
  "pagination-location": "top",