@getlupa/client 1.14.13 → 1.14.16

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.
@@ -8598,7 +8598,7 @@ var __async = (__this, __arguments, generator) => {
8598
8598
  const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
8599
8599
  const _hoisted_2$U = { class: "lupa-input-clear" };
8600
8600
  const _hoisted_3$D = { id: "lupa-search-box-input" };
8601
- const _hoisted_4$t = ["value"];
8601
+ const _hoisted_4$s = ["value"];
8602
8602
  const _hoisted_5$j = ["aria-label", "placeholder"];
8603
8603
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8604
8604
  const _hoisted_7$7 = [
@@ -8705,7 +8705,7 @@ var __async = (__this, __arguments, generator) => {
8705
8705
  "aria-hidden": "true",
8706
8706
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8707
8707
  disabled: ""
8708
- }, null, 8, _hoisted_4$t),
8708
+ }, null, 8, _hoisted_4$s),
8709
8709
  withDirectives(createBaseVNode("input", mergeProps({
8710
8710
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8711
8711
  }, inputAttributes.value, {
@@ -8917,7 +8917,7 @@ var __async = (__this, __arguments, generator) => {
8917
8917
  class: "lupa-suggestion-facet",
8918
8918
  "data-cy": "lupa-suggestion-facet"
8919
8919
  };
8920
- const _hoisted_4$s = {
8920
+ const _hoisted_4$r = {
8921
8921
  class: "lupa-suggestion-facet-label",
8922
8922
  "data-cy": "lupa-suggestion-facet-label"
8923
8923
  };
@@ -8963,7 +8963,7 @@ var __async = (__this, __arguments, generator) => {
8963
8963
  innerHTML: _ctx.suggestion.displayHighlight
8964
8964
  }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
8965
8965
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
8966
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8966
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8967
8967
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
8968
8968
  ])) : createCommentVNode("", true)
8969
8969
  ]);
@@ -18479,7 +18479,7 @@ and ensure you are accounting for this risk.
18479
18479
  const _hoisted_1$16 = ["innerHTML"];
18480
18480
  const _hoisted_2$O = { key: 0 };
18481
18481
  const _hoisted_3$B = { key: 1 };
18482
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18482
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18483
18483
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18484
18484
  const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18485
18485
  __name: "SearchBoxProductCustom",
@@ -18512,7 +18512,7 @@ and ensure you are accounting for this risk.
18512
18512
  class: [className.value, "lupa-search-box-product-custom"]
18513
18513
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18514
18514
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
18515
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18515
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18516
18516
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18517
18517
  ]))
18518
18518
  ], 16));
@@ -18925,7 +18925,7 @@ and ensure you are accounting for this risk.
18925
18925
  const _hoisted_1$12 = { class: "lupa-badge-title" };
18926
18926
  const _hoisted_2$M = ["src"];
18927
18927
  const _hoisted_3$z = { key: 1 };
18928
- const _hoisted_4$q = {
18928
+ const _hoisted_4$p = {
18929
18929
  key: 0,
18930
18930
  class: "lupa-badge-full-text"
18931
18931
  };
@@ -18969,7 +18969,7 @@ and ensure you are accounting for this risk.
18969
18969
  }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
18970
18970
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18971
18971
  ]),
18972
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18972
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18973
18973
  ], 6);
18974
18974
  };
18975
18975
  }
@@ -19769,7 +19769,7 @@ and ensure you are accounting for this risk.
19769
19769
  key: 0,
19770
19770
  class: "lupa-panel-title lupa-panel-title-top-results"
19771
19771
  };
19772
- const _hoisted_4$p = {
19772
+ const _hoisted_4$o = {
19773
19773
  key: 1,
19774
19774
  class: "lupa-panel-title"
19775
19775
  };
@@ -19963,7 +19963,7 @@ and ensure you are accounting for this risk.
19963
19963
  "data-cy": "lupa-panel-" + panel.type + "-index"
19964
19964
  }, [
19965
19965
  ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
19966
- ((_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),
19966
+ ((_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),
19967
19967
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
19968
19968
  key: 2,
19969
19969
  panel,
@@ -20402,7 +20402,7 @@ and ensure you are accounting for this risk.
20402
20402
  key: 1,
20403
20403
  "data-cy": "did-you-mean-label"
20404
20404
  };
20405
- const _hoisted_4$o = { key: 1 };
20405
+ const _hoisted_4$n = { key: 1 };
20406
20406
  const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20407
20407
  __name: "SearchResultsDidYouMean",
20408
20408
  props: {
@@ -20453,7 +20453,7 @@ and ensure you are accounting for this risk.
20453
20453
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20454
20454
  "data-cy": "did-you-mean-value",
20455
20455
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20456
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20456
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20457
20457
  ]);
20458
20458
  }), 128))
20459
20459
  ])) : createCommentVNode("", true)
@@ -20503,7 +20503,7 @@ and ensure you are accounting for this risk.
20503
20503
  key: 1,
20504
20504
  class: "lupa-results-total-count"
20505
20505
  };
20506
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20506
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20507
20507
  const _hoisted_5$f = ["innerHTML"];
20508
20508
  const _sfc_main$W = /* @__PURE__ */ defineComponent({
20509
20509
  __name: "SearchResultsTitle",
@@ -20549,7 +20549,7 @@ and ensure you are accounting for this risk.
20549
20549
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20550
20550
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
20551
20551
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20552
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20552
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20553
20553
  createTextVNode(")")
20554
20554
  ])) : createCommentVNode("", true)
20555
20555
  ])) : createCommentVNode("", true),
@@ -20607,7 +20607,7 @@ and ensure you are accounting for this risk.
20607
20607
  key: 0,
20608
20608
  class: "filter-values"
20609
20609
  };
20610
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
20610
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
20611
20611
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
20612
20612
  __name: "CurrentFilters",
20613
20613
  props: {
@@ -20691,7 +20691,7 @@ and ensure you are accounting for this risk.
20691
20691
  }, null, 2)) : createCommentVNode("", true)
20692
20692
  ]),
20693
20693
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20694
- createBaseVNode("div", _hoisted_4$m, [
20694
+ createBaseVNode("div", _hoisted_4$l, [
20695
20695
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20696
20696
  return openBlock(), createBlock(_sfc_main$V, {
20697
20697
  key: filter2.key + "_" + filter2.value,
@@ -20759,7 +20759,7 @@ and ensure you are accounting for this risk.
20759
20759
  };
20760
20760
  const _hoisted_2$B = { class: "lupa-category-back" };
20761
20761
  const _hoisted_3$s = ["href"];
20762
- const _hoisted_4$l = ["href"];
20762
+ const _hoisted_4$k = ["href"];
20763
20763
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20764
20764
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
20765
20765
  __name: "CategoryFilter",
@@ -20866,7 +20866,7 @@ and ensure you are accounting for this risk.
20866
20866
  href: parentUrlLink.value,
20867
20867
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
20868
20868
  onClick: handleNavigationParent
20869
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
20869
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
20870
20870
  ], 2),
20871
20871
  createBaseVNode("div", _hoisted_5$e, [
20872
20872
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -20887,7 +20887,7 @@ and ensure you are accounting for this risk.
20887
20887
  };
20888
20888
  const _hoisted_2$A = ["placeholder"];
20889
20889
  const _hoisted_3$r = { class: "lupa-terms-list" };
20890
- const _hoisted_4$k = ["onClick"];
20890
+ const _hoisted_4$j = ["onClick"];
20891
20891
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
20892
20892
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
20893
20893
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -20995,7 +20995,7 @@ and ensure you are accounting for this risk.
20995
20995
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20996
20996
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20997
20997
  ])
20998
- ], 10, _hoisted_4$k);
20998
+ ], 10, _hoisted_4$j);
20999
20999
  }), 128))
21000
21000
  ]),
21001
21001
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -21995,7 +21995,7 @@ and ensure you are accounting for this risk.
21995
21995
  key: 1,
21996
21996
  class: "lupa-stats-facet-summary-input"
21997
21997
  };
21998
- const _hoisted_4$j = {
21998
+ const _hoisted_4$i = {
21999
21999
  key: 0,
22000
22000
  class: "lupa-stats-range-label"
22001
22001
  };
@@ -22190,7 +22190,7 @@ and ensure you are accounting for this risk.
22190
22190
  return openBlock(), createElementBlock("div", _hoisted_1$L, [
22191
22191
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22192
22192
  createBaseVNode("div", null, [
22193
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22193
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22194
22194
  createBaseVNode("div", _hoisted_5$c, [
22195
22195
  withDirectives(createBaseVNode("input", {
22196
22196
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22257,7 +22257,7 @@ and ensure you are accounting for this risk.
22257
22257
  const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
22258
22258
  const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
22259
22259
  const _hoisted_3$p = { class: "lupa-term-label" };
22260
- const _hoisted_4$i = {
22260
+ const _hoisted_4$h = {
22261
22261
  key: 0,
22262
22262
  class: "lupa-term-count"
22263
22263
  };
@@ -22318,7 +22318,7 @@ and ensure you are accounting for this risk.
22318
22318
  ]),
22319
22319
  createBaseVNode("div", _hoisted_2$y, [
22320
22320
  createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22321
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22321
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22322
22322
  ])
22323
22323
  ]),
22324
22324
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
@@ -22830,7 +22830,7 @@ and ensure you are accounting for this risk.
22830
22830
  };
22831
22831
  const _hoisted_2$t = ["onClick"];
22832
22832
  const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
22833
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
22833
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
22834
22834
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
22835
22835
  const _hoisted_6$6 = {
22836
22836
  key: 0,
@@ -22874,7 +22874,7 @@ and ensure you are accounting for this risk.
22874
22874
  onClick: withModifiers(handleMobileToggle, ["stop"])
22875
22875
  }, null, 8, _hoisted_2$t),
22876
22876
  createBaseVNode("div", _hoisted_3$n, [
22877
- createBaseVNode("div", _hoisted_4$h, [
22877
+ createBaseVNode("div", _hoisted_4$g, [
22878
22878
  createBaseVNode("div", _hoisted_5$a, [
22879
22879
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22880
22880
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -22902,7 +22902,7 @@ and ensure you are accounting for this risk.
22902
22902
  key: 1,
22903
22903
  class: "lupa-search-results-breadcrumb-text"
22904
22904
  };
22905
- const _hoisted_4$g = { key: 2 };
22905
+ const _hoisted_4$f = { key: 2 };
22906
22906
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
22907
22907
  __name: "SearchResultsBreadcrumbs",
22908
22908
  props: {
@@ -22943,7 +22943,7 @@ and ensure you are accounting for this risk.
22943
22943
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
22944
22944
  }
22945
22945
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
22946
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
22946
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
22947
22947
  ]);
22948
22948
  }), 128))
22949
22949
  ]);
@@ -23049,7 +23049,7 @@ and ensure you are accounting for this risk.
23049
23049
  class: "lupa-page-number-separator"
23050
23050
  };
23051
23051
  const _hoisted_3$l = ["onClick"];
23052
- const _hoisted_4$f = {
23052
+ const _hoisted_4$e = {
23053
23053
  key: 0,
23054
23054
  class: "lupa-page-number-separator"
23055
23055
  };
@@ -23155,7 +23155,7 @@ and ensure you are accounting for this risk.
23155
23155
  }, toDisplayString(page), 11, _hoisted_3$l);
23156
23156
  }), 128)),
23157
23157
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23158
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23158
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23159
23159
  createBaseVNode("div", {
23160
23160
  class: "lupa-page-number lupa-page-number-last",
23161
23161
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23180,7 +23180,7 @@ and ensure you are accounting for this risk.
23180
23180
  };
23181
23181
  const _hoisted_2$q = { id: "lupa-select" };
23182
23182
  const _hoisted_3$k = { class: "lupa-select-label" };
23183
- const _hoisted_4$e = ["aria-label"];
23183
+ const _hoisted_4$d = ["aria-label"];
23184
23184
  const _hoisted_5$9 = ["value"];
23185
23185
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
23186
23186
  __name: "SearchResultsPageSize",
@@ -23227,7 +23227,7 @@ and ensure you are accounting for this risk.
23227
23227
  value: option
23228
23228
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23229
23229
  }), 128))
23230
- ], 40, _hoisted_4$e)
23230
+ ], 40, _hoisted_4$d)
23231
23231
  ])
23232
23232
  ]);
23233
23233
  };
@@ -23239,7 +23239,7 @@ and ensure you are accounting for this risk.
23239
23239
  };
23240
23240
  const _hoisted_2$p = { id: "lupa-select" };
23241
23241
  const _hoisted_3$j = { class: "lupa-select-label" };
23242
- const _hoisted_4$d = ["aria-label"];
23242
+ const _hoisted_4$c = ["aria-label"];
23243
23243
  const _hoisted_5$8 = ["value"];
23244
23244
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
23245
23245
  __name: "SearchResultsSort",
@@ -23307,7 +23307,7 @@ and ensure you are accounting for this risk.
23307
23307
  value: option.key
23308
23308
  }, toDisplayString(option.label), 9, _hoisted_5$8);
23309
23309
  }), 128))
23310
- ], 40, _hoisted_4$d), [
23310
+ ], 40, _hoisted_4$c), [
23311
23311
  [vModelSelect, selectedKey.value]
23312
23312
  ])
23313
23313
  ])
@@ -23321,7 +23321,7 @@ and ensure you are accounting for this risk.
23321
23321
  class: "lupa-toolbar-right-title"
23322
23322
  };
23323
23323
  const _hoisted_3$i = { key: 2 };
23324
- const _hoisted_4$c = { key: 4 };
23324
+ const _hoisted_4$b = { key: 4 };
23325
23325
  const _hoisted_5$7 = { key: 6 };
23326
23326
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23327
23327
  const _hoisted_7$3 = {
@@ -23445,7 +23445,7 @@ and ensure you are accounting for this risk.
23445
23445
  label: searchSummaryLabel.value,
23446
23446
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23447
23447
  onClear: handleClearAll
23448
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23448
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23449
23449
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
23450
23450
  key: 5,
23451
23451
  options: paginationOptions.value.pageSelect,
@@ -23494,7 +23494,7 @@ and ensure you are accounting for this risk.
23494
23494
  const _hoisted_1$u = ["title", "innerHTML"];
23495
23495
  const _hoisted_2$n = ["title"];
23496
23496
  const _hoisted_3$h = ["href", "innerHTML"];
23497
- const _hoisted_4$b = ["title"];
23497
+ const _hoisted_4$a = ["title"];
23498
23498
  const _hoisted_5$6 = {
23499
23499
  key: 0,
23500
23500
  class: "lupa-search-results-product-title-text"
@@ -23562,7 +23562,7 @@ and ensure you are accounting for this risk.
23562
23562
  class: "lupa-search-results-product-title-text lupa-title-link",
23563
23563
  onClick: handleNavigation
23564
23564
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23565
- ], 12, _hoisted_4$b));
23565
+ ], 12, _hoisted_4$a));
23566
23566
  };
23567
23567
  }
23568
23568
  });
@@ -23605,7 +23605,7 @@ and ensure you are accounting for this risk.
23605
23605
  const _hoisted_1$s = { id: "lupa-search-results-rating" };
23606
23606
  const _hoisted_2$m = { class: "lupa-ratings" };
23607
23607
  const _hoisted_3$g = { class: "lupa-ratings-base" };
23608
- const _hoisted_4$a = ["innerHTML"];
23608
+ const _hoisted_4$9 = ["innerHTML"];
23609
23609
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23610
23610
  const _hoisted_6$3 = ["innerHTML"];
23611
23611
  const _hoisted_7$2 = ["href"];
@@ -23655,7 +23655,7 @@ and ensure you are accounting for this risk.
23655
23655
  key: index,
23656
23656
  innerHTML: star,
23657
23657
  class: "lupa-rating lupa-rating-not-highlighted"
23658
- }, null, 8, _hoisted_4$a);
23658
+ }, null, 8, _hoisted_4$9);
23659
23659
  }), 128))
23660
23660
  ]),
23661
23661
  createBaseVNode("div", _hoisted_5$5, [
@@ -23795,7 +23795,7 @@ and ensure you are accounting for this risk.
23795
23795
  const _hoisted_1$p = ["innerHTML"];
23796
23796
  const _hoisted_2$k = { key: 0 };
23797
23797
  const _hoisted_3$e = { key: 1 };
23798
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23798
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
23799
23799
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
23800
23800
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
23801
23801
  __name: "SearchResultsProductCustom",
@@ -23840,7 +23840,7 @@ and ensure you are accounting for this risk.
23840
23840
  class: className.value
23841
23841
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23842
23842
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
23843
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23843
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
23844
23844
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
23845
23845
  ]))
23846
23846
  ], 16));
@@ -23886,7 +23886,7 @@ and ensure you are accounting for this risk.
23886
23886
  const _hoisted_1$n = { id: "lupa-search-results-rating" };
23887
23887
  const _hoisted_2$j = ["innerHTML"];
23888
23888
  const _hoisted_3$d = { class: "lupa-ratings" };
23889
- const _hoisted_4$8 = ["href"];
23889
+ const _hoisted_4$7 = ["href"];
23890
23890
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
23891
23891
  __name: "SearchResultsProductSingleStarRating",
23892
23892
  props: {
@@ -23924,7 +23924,7 @@ and ensure you are accounting for this risk.
23924
23924
  createBaseVNode("a", {
23925
23925
  href: ratingLink.value,
23926
23926
  class: "lupa-total-ratings"
23927
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
23927
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
23928
23928
  ]);
23929
23929
  };
23930
23930
  }
@@ -24252,7 +24252,7 @@ and ensure you are accounting for this risk.
24252
24252
  class: "lupa-similar-query-label",
24253
24253
  "data-cy": "lupa-similar-query-label"
24254
24254
  };
24255
- const _hoisted_4$7 = ["onClick"];
24255
+ const _hoisted_4$6 = ["onClick"];
24256
24256
  const _hoisted_5$3 = ["innerHTML"];
24257
24257
  const _hoisted_6$2 = { key: 0 };
24258
24258
  const _hoisted_7$1 = {
@@ -24305,7 +24305,7 @@ and ensure you are accounting for this risk.
24305
24305
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24306
24306
  }, null, 8, _hoisted_5$3),
24307
24307
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24308
- ], 8, _hoisted_4$7)
24308
+ ], 8, _hoisted_4$6)
24309
24309
  ]),
24310
24310
  createBaseVNode("div", _hoisted_7$1, [
24311
24311
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24545,7 +24545,7 @@ and ensure you are accounting for this risk.
24545
24545
  const _hoisted_1$g = { class: "lupa-related-query-item" };
24546
24546
  const _hoisted_2$d = { class: "lupa-related-query-image" };
24547
24547
  const _hoisted_3$9 = { class: "lupa-related-query-label" };
24548
- const _hoisted_4$6 = { class: "lupa-related-query-title" };
24548
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
24549
24549
  const _hoisted_5$2 = {
24550
24550
  key: 0,
24551
24551
  class: "lupa-related-query-count"
@@ -24631,7 +24631,7 @@ and ensure you are accounting for this risk.
24631
24631
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24632
24632
  ]),
24633
24633
  createBaseVNode("div", _hoisted_3$9, [
24634
- createBaseVNode("span", _hoisted_4$6, toDisplayString(_ctx.query), 1),
24634
+ createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
24635
24635
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24636
24636
  ])
24637
24637
  ]);
@@ -24701,7 +24701,7 @@ and ensure you are accounting for this risk.
24701
24701
  class: "lupa-empty-results",
24702
24702
  "data-cy": "lupa-no-results-in-page"
24703
24703
  };
24704
- const _hoisted_4$5 = {
24704
+ const _hoisted_4$4 = {
24705
24705
  key: 3,
24706
24706
  class: "lupa-empty-results",
24707
24707
  "data-cy": "lupa-no-results"
@@ -24896,7 +24896,7 @@ and ensure you are accounting for this risk.
24896
24896
  location: "bottom",
24897
24897
  sdkOptions: _ctx.options.options
24898
24898
  }, null, 8, ["options", "sdkOptions"])
24899
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
24899
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
24900
24900
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
24901
24901
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24902
24902
  ])) : createCommentVNode("", true),
@@ -24925,7 +24925,7 @@ and ensure you are accounting for this risk.
24925
24925
  class: "lupa-category-back"
24926
24926
  };
24927
24927
  const _hoisted_3$6 = ["href"];
24928
- const _hoisted_4$4 = { class: "lupa-child-category-list" };
24928
+ const _hoisted_4$3 = { class: "lupa-child-category-list" };
24929
24929
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
24930
24930
  __name: "CategoryTopFilters",
24931
24931
  props: {
@@ -24975,7 +24975,7 @@ and ensure you are accounting for this risk.
24975
24975
  onClick: handleNavigationBack
24976
24976
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
24977
24977
  ])) : createCommentVNode("", true),
24978
- createBaseVNode("div", _hoisted_4$4, [
24978
+ createBaseVNode("div", _hoisted_4$3, [
24979
24979
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24980
24980
  return openBlock(), createBlock(_sfc_main$T, {
24981
24981
  key: getCategoryKey(child),
@@ -25004,7 +25004,7 @@ and ensure you are accounting for this risk.
25004
25004
  class: "top-layout-wrapper"
25005
25005
  };
25006
25006
  const _hoisted_3$5 = { class: "search-content" };
25007
- const _hoisted_4$3 = { id: "lupa-search-results" };
25007
+ const _hoisted_4$2 = { id: "lupa-search-results" };
25008
25008
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
25009
25009
  __name: "SearchResults",
25010
25010
  props: {
@@ -25267,7 +25267,7 @@ and ensure you are accounting for this risk.
25267
25267
  options: _ctx.options,
25268
25268
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25269
25269
  }, null, 8, ["options", "is-product-list"]),
25270
- createBaseVNode("div", _hoisted_4$3, [
25270
+ createBaseVNode("div", _hoisted_4$2, [
25271
25271
  showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25272
25272
  key: 0,
25273
25273
  options: (_e = _ctx.options.filters) != null ? _e : {},
@@ -31676,19 +31676,15 @@ and ensure you are accounting for this risk.
31676
31676
  }
31677
31677
  });
31678
31678
  const _hoisted_1$9 = {
31679
- key: 0,
31680
- class: "lupa-search-product-recommendations-wrapper"
31681
- };
31682
- const _hoisted_2$6 = {
31683
31679
  key: 0,
31684
31680
  class: "lupa-recommendation-section-title"
31685
31681
  };
31686
- const _hoisted_3$4 = {
31682
+ const _hoisted_2$6 = {
31687
31683
  key: 1,
31688
31684
  class: "lupa-recommended-products",
31689
31685
  "data-cy": "lupa-recommended-products"
31690
31686
  };
31691
- const _hoisted_4$2 = {
31687
+ const _hoisted_3$4 = {
31692
31688
  key: 1,
31693
31689
  class: "lupa-products",
31694
31690
  "data-cy": "lupa-products"
@@ -31703,12 +31699,15 @@ and ensure you are accounting for this risk.
31703
31699
  const optionsStore = useOptionsStore();
31704
31700
  const searchResultStore = useSearchResultStore();
31705
31701
  const screenStore = useScreenStore();
31702
+ const dynamicDataStore = useDynamicDataStore();
31706
31703
  const { columnCount } = storeToRefs(searchResultStore);
31707
31704
  const recommendations2 = ref([]);
31708
31705
  const recommendationsType = ref(
31709
31706
  "recommendations_lupasearch"
31710
31707
  );
31711
31708
  const loading = ref(true);
31709
+ const rootElement = ref(null);
31710
+ let observer = null;
31712
31711
  const carouselOptions = computed(() => {
31713
31712
  var _a;
31714
31713
  return (_a = props.options.carousel) != null ? _a : {};
@@ -31732,15 +31731,33 @@ and ensure you are accounting for this risk.
31732
31731
  const hasRecommendations = computed(() => {
31733
31732
  return recommendations2.value.length > 0;
31734
31733
  });
31734
+ const initIntersectionObserver = () => {
31735
+ if (rootElement.value) {
31736
+ observer = new IntersectionObserver((entries) => {
31737
+ if (entries[0].isIntersecting) {
31738
+ loadRecommendations();
31739
+ observer.unobserve(entries[0].target);
31740
+ }
31741
+ });
31742
+ observer.observe(rootElement.value);
31743
+ }
31744
+ };
31735
31745
  onMounted(() => {
31736
- loadRecommendations();
31737
- window.addEventListener("resize", handleResize);
31738
31746
  handleResize();
31739
31747
  optionsStore.setSearchResultOptions({
31740
31748
  options: props.options
31741
31749
  });
31750
+ if (props.options.lazyLoad) {
31751
+ initIntersectionObserver();
31752
+ } else {
31753
+ loadRecommendations();
31754
+ }
31755
+ window.addEventListener("resize", handleResize);
31742
31756
  });
31743
31757
  onBeforeUnmount(() => {
31758
+ if (observer) {
31759
+ observer.disconnect();
31760
+ }
31744
31761
  window.removeEventListener("resize", handleResize);
31745
31762
  });
31746
31763
  const getProductKeyAction = (index, product) => {
@@ -31803,49 +31820,58 @@ and ensure you are accounting for this risk.
31803
31820
  return;
31804
31821
  }
31805
31822
  recommendations2.value = result2.recommended;
31823
+ yield dynamicDataStore.enhanceSearchResultsWithDynamicData({
31824
+ result: { items: result2.recommended }
31825
+ });
31806
31826
  } finally {
31807
31827
  loading.value = false;
31808
31828
  }
31809
31829
  });
31810
31830
  __expose({ fetch: fetch2 });
31811
31831
  return (_ctx, _cache) => {
31812
- return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
31813
- title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
31814
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
31815
- layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
31816
- addons: withCtx(() => [
31817
- createVNode(unref(Navigation))
31818
- ]),
31819
- default: withCtx(() => [
31832
+ return openBlock(), createElementBlock("div", {
31833
+ class: "lupa-search-product-recommendations-wrapper",
31834
+ ref_key: "rootElement",
31835
+ ref: rootElement
31836
+ }, [
31837
+ hasRecommendations.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31838
+ title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, toDisplayString(title.value), 1)) : createCommentVNode("", true),
31839
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
31840
+ layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
31841
+ addons: withCtx(() => [
31842
+ createVNode(unref(Navigation))
31843
+ ]),
31844
+ default: withCtx(() => [
31845
+ (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31846
+ return openBlock(), createBlock(unref(Slide), {
31847
+ key: getProductKeyAction(index, product)
31848
+ }, {
31849
+ default: withCtx(() => [
31850
+ createVNode(_sfc_main$o, {
31851
+ product,
31852
+ options: _ctx.options,
31853
+ "click-tracking-settings": clickTrackingSettings.value
31854
+ }, null, 8, ["product", "options", "click-tracking-settings"])
31855
+ ]),
31856
+ _: 2
31857
+ }, 1024);
31858
+ }), 128))
31859
+ ]),
31860
+ _: 1
31861
+ }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
31820
31862
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31821
- return openBlock(), createBlock(unref(Slide), {
31822
- key: getProductKeyAction(index, product)
31823
- }, {
31824
- default: withCtx(() => [
31825
- createVNode(_sfc_main$o, {
31826
- product,
31827
- options: _ctx.options,
31828
- "click-tracking-settings": clickTrackingSettings.value
31829
- }, null, 8, ["product", "options", "click-tracking-settings"])
31830
- ]),
31831
- _: 2
31832
- }, 1024);
31863
+ return openBlock(), createBlock(_sfc_main$o, {
31864
+ style: normalizeStyle(columnSize.value),
31865
+ key: getProductKeyAction(index, product),
31866
+ product,
31867
+ options: _ctx.options,
31868
+ "lupa-click-tracking-type": `recommendedItemClick`
31869
+ }, null, 8, ["style", "product", "options"]);
31833
31870
  }), 128))
31834
- ]),
31835
- _: 1
31836
- }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
31837
- (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31838
- return openBlock(), createBlock(_sfc_main$o, {
31839
- style: normalizeStyle(columnSize.value),
31840
- key: getProductKeyAction(index, product),
31841
- product,
31842
- options: _ctx.options,
31843
- "lupa-click-tracking-type": `recommendedItemClick`
31844
- }, null, 8, ["style", "product", "options"]);
31845
- }), 128))
31846
- ]))
31847
- ])) : createCommentVNode("", true)
31848
- ])) : createCommentVNode("", true);
31871
+ ]))
31872
+ ])) : createCommentVNode("", true)
31873
+ ], 64)) : createCommentVNode("", true)
31874
+ ], 512);
31849
31875
  };
31850
31876
  }
31851
31877
  });