@getlupa/client 1.14.13 → 1.14.14

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.
@@ -8600,7 +8600,7 @@ var __async = (__this, __arguments, generator) => {
8600
8600
  const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
8601
8601
  const _hoisted_2$U = { class: "lupa-input-clear" };
8602
8602
  const _hoisted_3$D = { id: "lupa-search-box-input" };
8603
- const _hoisted_4$t = ["value"];
8603
+ const _hoisted_4$s = ["value"];
8604
8604
  const _hoisted_5$j = ["aria-label", "placeholder"];
8605
8605
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8606
8606
  const _hoisted_7$7 = [
@@ -8707,7 +8707,7 @@ var __async = (__this, __arguments, generator) => {
8707
8707
  "aria-hidden": "true",
8708
8708
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8709
8709
  disabled: ""
8710
- }, null, 8, _hoisted_4$t),
8710
+ }, null, 8, _hoisted_4$s),
8711
8711
  withDirectives(createBaseVNode("input", mergeProps({
8712
8712
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8713
8713
  }, inputAttributes.value, {
@@ -8919,7 +8919,7 @@ var __async = (__this, __arguments, generator) => {
8919
8919
  class: "lupa-suggestion-facet",
8920
8920
  "data-cy": "lupa-suggestion-facet"
8921
8921
  };
8922
- const _hoisted_4$s = {
8922
+ const _hoisted_4$r = {
8923
8923
  class: "lupa-suggestion-facet-label",
8924
8924
  "data-cy": "lupa-suggestion-facet-label"
8925
8925
  };
@@ -8965,7 +8965,7 @@ var __async = (__this, __arguments, generator) => {
8965
8965
  innerHTML: _ctx.suggestion.displayHighlight
8966
8966
  }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
8967
8967
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
8968
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8968
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8969
8969
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
8970
8970
  ])) : createCommentVNode("", true)
8971
8971
  ]);
@@ -18481,7 +18481,7 @@ and ensure you are accounting for this risk.
18481
18481
  const _hoisted_1$16 = ["innerHTML"];
18482
18482
  const _hoisted_2$O = { key: 0 };
18483
18483
  const _hoisted_3$B = { key: 1 };
18484
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18484
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18485
18485
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18486
18486
  const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18487
18487
  __name: "SearchBoxProductCustom",
@@ -18514,7 +18514,7 @@ and ensure you are accounting for this risk.
18514
18514
  class: [className.value, "lupa-search-box-product-custom"]
18515
18515
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18516
18516
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
18517
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18517
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18518
18518
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18519
18519
  ]))
18520
18520
  ], 16));
@@ -18927,7 +18927,7 @@ and ensure you are accounting for this risk.
18927
18927
  const _hoisted_1$12 = { class: "lupa-badge-title" };
18928
18928
  const _hoisted_2$M = ["src"];
18929
18929
  const _hoisted_3$z = { key: 1 };
18930
- const _hoisted_4$q = {
18930
+ const _hoisted_4$p = {
18931
18931
  key: 0,
18932
18932
  class: "lupa-badge-full-text"
18933
18933
  };
@@ -18971,7 +18971,7 @@ and ensure you are accounting for this risk.
18971
18971
  }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
18972
18972
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18973
18973
  ]),
18974
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18974
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18975
18975
  ], 6);
18976
18976
  };
18977
18977
  }
@@ -19771,7 +19771,7 @@ and ensure you are accounting for this risk.
19771
19771
  key: 0,
19772
19772
  class: "lupa-panel-title lupa-panel-title-top-results"
19773
19773
  };
19774
- const _hoisted_4$p = {
19774
+ const _hoisted_4$o = {
19775
19775
  key: 1,
19776
19776
  class: "lupa-panel-title"
19777
19777
  };
@@ -19965,7 +19965,7 @@ and ensure you are accounting for this risk.
19965
19965
  "data-cy": "lupa-panel-" + panel.type + "-index"
19966
19966
  }, [
19967
19967
  ((_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),
19968
- ((_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),
19968
+ ((_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),
19969
19969
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
19970
19970
  key: 2,
19971
19971
  panel,
@@ -20404,7 +20404,7 @@ and ensure you are accounting for this risk.
20404
20404
  key: 1,
20405
20405
  "data-cy": "did-you-mean-label"
20406
20406
  };
20407
- const _hoisted_4$o = { key: 1 };
20407
+ const _hoisted_4$n = { key: 1 };
20408
20408
  const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20409
20409
  __name: "SearchResultsDidYouMean",
20410
20410
  props: {
@@ -20455,7 +20455,7 @@ and ensure you are accounting for this risk.
20455
20455
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20456
20456
  "data-cy": "did-you-mean-value",
20457
20457
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20458
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20458
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20459
20459
  ]);
20460
20460
  }), 128))
20461
20461
  ])) : createCommentVNode("", true)
@@ -20505,7 +20505,7 @@ and ensure you are accounting for this risk.
20505
20505
  key: 1,
20506
20506
  class: "lupa-results-total-count"
20507
20507
  };
20508
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20508
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20509
20509
  const _hoisted_5$f = ["innerHTML"];
20510
20510
  const _sfc_main$W = /* @__PURE__ */ defineComponent({
20511
20511
  __name: "SearchResultsTitle",
@@ -20551,7 +20551,7 @@ and ensure you are accounting for this risk.
20551
20551
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20552
20552
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
20553
20553
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20554
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20554
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20555
20555
  createTextVNode(")")
20556
20556
  ])) : createCommentVNode("", true)
20557
20557
  ])) : createCommentVNode("", true),
@@ -20609,7 +20609,7 @@ and ensure you are accounting for this risk.
20609
20609
  key: 0,
20610
20610
  class: "filter-values"
20611
20611
  };
20612
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
20612
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
20613
20613
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
20614
20614
  __name: "CurrentFilters",
20615
20615
  props: {
@@ -20693,7 +20693,7 @@ and ensure you are accounting for this risk.
20693
20693
  }, null, 2)) : createCommentVNode("", true)
20694
20694
  ]),
20695
20695
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20696
- createBaseVNode("div", _hoisted_4$m, [
20696
+ createBaseVNode("div", _hoisted_4$l, [
20697
20697
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20698
20698
  return openBlock(), createBlock(_sfc_main$V, {
20699
20699
  key: filter2.key + "_" + filter2.value,
@@ -20761,7 +20761,7 @@ and ensure you are accounting for this risk.
20761
20761
  };
20762
20762
  const _hoisted_2$B = { class: "lupa-category-back" };
20763
20763
  const _hoisted_3$s = ["href"];
20764
- const _hoisted_4$l = ["href"];
20764
+ const _hoisted_4$k = ["href"];
20765
20765
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20766
20766
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
20767
20767
  __name: "CategoryFilter",
@@ -20868,7 +20868,7 @@ and ensure you are accounting for this risk.
20868
20868
  href: parentUrlLink.value,
20869
20869
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
20870
20870
  onClick: handleNavigationParent
20871
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
20871
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
20872
20872
  ], 2),
20873
20873
  createBaseVNode("div", _hoisted_5$e, [
20874
20874
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -20889,7 +20889,7 @@ and ensure you are accounting for this risk.
20889
20889
  };
20890
20890
  const _hoisted_2$A = ["placeholder"];
20891
20891
  const _hoisted_3$r = { class: "lupa-terms-list" };
20892
- const _hoisted_4$k = ["onClick"];
20892
+ const _hoisted_4$j = ["onClick"];
20893
20893
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
20894
20894
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
20895
20895
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -20997,7 +20997,7 @@ and ensure you are accounting for this risk.
20997
20997
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20998
20998
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20999
20999
  ])
21000
- ], 10, _hoisted_4$k);
21000
+ ], 10, _hoisted_4$j);
21001
21001
  }), 128))
21002
21002
  ]),
21003
21003
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -21997,7 +21997,7 @@ and ensure you are accounting for this risk.
21997
21997
  key: 1,
21998
21998
  class: "lupa-stats-facet-summary-input"
21999
21999
  };
22000
- const _hoisted_4$j = {
22000
+ const _hoisted_4$i = {
22001
22001
  key: 0,
22002
22002
  class: "lupa-stats-range-label"
22003
22003
  };
@@ -22192,7 +22192,7 @@ and ensure you are accounting for this risk.
22192
22192
  return openBlock(), createElementBlock("div", _hoisted_1$L, [
22193
22193
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22194
22194
  createBaseVNode("div", null, [
22195
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22195
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22196
22196
  createBaseVNode("div", _hoisted_5$c, [
22197
22197
  withDirectives(createBaseVNode("input", {
22198
22198
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -22259,7 +22259,7 @@ and ensure you are accounting for this risk.
22259
22259
  const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
22260
22260
  const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
22261
22261
  const _hoisted_3$p = { class: "lupa-term-label" };
22262
- const _hoisted_4$i = {
22262
+ const _hoisted_4$h = {
22263
22263
  key: 0,
22264
22264
  class: "lupa-term-count"
22265
22265
  };
@@ -22320,7 +22320,7 @@ and ensure you are accounting for this risk.
22320
22320
  ]),
22321
22321
  createBaseVNode("div", _hoisted_2$y, [
22322
22322
  createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22323
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22323
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22324
22324
  ])
22325
22325
  ]),
22326
22326
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
@@ -22832,7 +22832,7 @@ and ensure you are accounting for this risk.
22832
22832
  };
22833
22833
  const _hoisted_2$t = ["onClick"];
22834
22834
  const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
22835
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
22835
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
22836
22836
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
22837
22837
  const _hoisted_6$6 = {
22838
22838
  key: 0,
@@ -22876,7 +22876,7 @@ and ensure you are accounting for this risk.
22876
22876
  onClick: withModifiers(handleMobileToggle, ["stop"])
22877
22877
  }, null, 8, _hoisted_2$t),
22878
22878
  createBaseVNode("div", _hoisted_3$n, [
22879
- createBaseVNode("div", _hoisted_4$h, [
22879
+ createBaseVNode("div", _hoisted_4$g, [
22880
22880
  createBaseVNode("div", _hoisted_5$a, [
22881
22881
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22882
22882
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -22904,7 +22904,7 @@ and ensure you are accounting for this risk.
22904
22904
  key: 1,
22905
22905
  class: "lupa-search-results-breadcrumb-text"
22906
22906
  };
22907
- const _hoisted_4$g = { key: 2 };
22907
+ const _hoisted_4$f = { key: 2 };
22908
22908
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
22909
22909
  __name: "SearchResultsBreadcrumbs",
22910
22910
  props: {
@@ -22945,7 +22945,7 @@ and ensure you are accounting for this risk.
22945
22945
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
22946
22946
  }
22947
22947
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
22948
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
22948
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
22949
22949
  ]);
22950
22950
  }), 128))
22951
22951
  ]);
@@ -23051,7 +23051,7 @@ and ensure you are accounting for this risk.
23051
23051
  class: "lupa-page-number-separator"
23052
23052
  };
23053
23053
  const _hoisted_3$l = ["onClick"];
23054
- const _hoisted_4$f = {
23054
+ const _hoisted_4$e = {
23055
23055
  key: 0,
23056
23056
  class: "lupa-page-number-separator"
23057
23057
  };
@@ -23157,7 +23157,7 @@ and ensure you are accounting for this risk.
23157
23157
  }, toDisplayString(page), 11, _hoisted_3$l);
23158
23158
  }), 128)),
23159
23159
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23160
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23160
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23161
23161
  createBaseVNode("div", {
23162
23162
  class: "lupa-page-number lupa-page-number-last",
23163
23163
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23182,7 +23182,7 @@ and ensure you are accounting for this risk.
23182
23182
  };
23183
23183
  const _hoisted_2$q = { id: "lupa-select" };
23184
23184
  const _hoisted_3$k = { class: "lupa-select-label" };
23185
- const _hoisted_4$e = ["aria-label"];
23185
+ const _hoisted_4$d = ["aria-label"];
23186
23186
  const _hoisted_5$9 = ["value"];
23187
23187
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
23188
23188
  __name: "SearchResultsPageSize",
@@ -23229,7 +23229,7 @@ and ensure you are accounting for this risk.
23229
23229
  value: option
23230
23230
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23231
23231
  }), 128))
23232
- ], 40, _hoisted_4$e)
23232
+ ], 40, _hoisted_4$d)
23233
23233
  ])
23234
23234
  ]);
23235
23235
  };
@@ -23241,7 +23241,7 @@ and ensure you are accounting for this risk.
23241
23241
  };
23242
23242
  const _hoisted_2$p = { id: "lupa-select" };
23243
23243
  const _hoisted_3$j = { class: "lupa-select-label" };
23244
- const _hoisted_4$d = ["aria-label"];
23244
+ const _hoisted_4$c = ["aria-label"];
23245
23245
  const _hoisted_5$8 = ["value"];
23246
23246
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
23247
23247
  __name: "SearchResultsSort",
@@ -23309,7 +23309,7 @@ and ensure you are accounting for this risk.
23309
23309
  value: option.key
23310
23310
  }, toDisplayString(option.label), 9, _hoisted_5$8);
23311
23311
  }), 128))
23312
- ], 40, _hoisted_4$d), [
23312
+ ], 40, _hoisted_4$c), [
23313
23313
  [vModelSelect, selectedKey.value]
23314
23314
  ])
23315
23315
  ])
@@ -23323,7 +23323,7 @@ and ensure you are accounting for this risk.
23323
23323
  class: "lupa-toolbar-right-title"
23324
23324
  };
23325
23325
  const _hoisted_3$i = { key: 2 };
23326
- const _hoisted_4$c = { key: 4 };
23326
+ const _hoisted_4$b = { key: 4 };
23327
23327
  const _hoisted_5$7 = { key: 6 };
23328
23328
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23329
23329
  const _hoisted_7$3 = {
@@ -23447,7 +23447,7 @@ and ensure you are accounting for this risk.
23447
23447
  label: searchSummaryLabel.value,
23448
23448
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23449
23449
  onClear: handleClearAll
23450
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23450
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23451
23451
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
23452
23452
  key: 5,
23453
23453
  options: paginationOptions.value.pageSelect,
@@ -23496,7 +23496,7 @@ and ensure you are accounting for this risk.
23496
23496
  const _hoisted_1$u = ["title", "innerHTML"];
23497
23497
  const _hoisted_2$n = ["title"];
23498
23498
  const _hoisted_3$h = ["href", "innerHTML"];
23499
- const _hoisted_4$b = ["title"];
23499
+ const _hoisted_4$a = ["title"];
23500
23500
  const _hoisted_5$6 = {
23501
23501
  key: 0,
23502
23502
  class: "lupa-search-results-product-title-text"
@@ -23564,7 +23564,7 @@ and ensure you are accounting for this risk.
23564
23564
  class: "lupa-search-results-product-title-text lupa-title-link",
23565
23565
  onClick: handleNavigation
23566
23566
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23567
- ], 12, _hoisted_4$b));
23567
+ ], 12, _hoisted_4$a));
23568
23568
  };
23569
23569
  }
23570
23570
  });
@@ -23607,7 +23607,7 @@ and ensure you are accounting for this risk.
23607
23607
  const _hoisted_1$s = { id: "lupa-search-results-rating" };
23608
23608
  const _hoisted_2$m = { class: "lupa-ratings" };
23609
23609
  const _hoisted_3$g = { class: "lupa-ratings-base" };
23610
- const _hoisted_4$a = ["innerHTML"];
23610
+ const _hoisted_4$9 = ["innerHTML"];
23611
23611
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23612
23612
  const _hoisted_6$3 = ["innerHTML"];
23613
23613
  const _hoisted_7$2 = ["href"];
@@ -23657,7 +23657,7 @@ and ensure you are accounting for this risk.
23657
23657
  key: index,
23658
23658
  innerHTML: star,
23659
23659
  class: "lupa-rating lupa-rating-not-highlighted"
23660
- }, null, 8, _hoisted_4$a);
23660
+ }, null, 8, _hoisted_4$9);
23661
23661
  }), 128))
23662
23662
  ]),
23663
23663
  createBaseVNode("div", _hoisted_5$5, [
@@ -23797,7 +23797,7 @@ and ensure you are accounting for this risk.
23797
23797
  const _hoisted_1$p = ["innerHTML"];
23798
23798
  const _hoisted_2$k = { key: 0 };
23799
23799
  const _hoisted_3$e = { key: 1 };
23800
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23800
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
23801
23801
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
23802
23802
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
23803
23803
  __name: "SearchResultsProductCustom",
@@ -23842,7 +23842,7 @@ and ensure you are accounting for this risk.
23842
23842
  class: className.value
23843
23843
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23844
23844
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
23845
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23845
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
23846
23846
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
23847
23847
  ]))
23848
23848
  ], 16));
@@ -23888,7 +23888,7 @@ and ensure you are accounting for this risk.
23888
23888
  const _hoisted_1$n = { id: "lupa-search-results-rating" };
23889
23889
  const _hoisted_2$j = ["innerHTML"];
23890
23890
  const _hoisted_3$d = { class: "lupa-ratings" };
23891
- const _hoisted_4$8 = ["href"];
23891
+ const _hoisted_4$7 = ["href"];
23892
23892
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
23893
23893
  __name: "SearchResultsProductSingleStarRating",
23894
23894
  props: {
@@ -23926,7 +23926,7 @@ and ensure you are accounting for this risk.
23926
23926
  createBaseVNode("a", {
23927
23927
  href: ratingLink.value,
23928
23928
  class: "lupa-total-ratings"
23929
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
23929
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
23930
23930
  ]);
23931
23931
  };
23932
23932
  }
@@ -24254,7 +24254,7 @@ and ensure you are accounting for this risk.
24254
24254
  class: "lupa-similar-query-label",
24255
24255
  "data-cy": "lupa-similar-query-label"
24256
24256
  };
24257
- const _hoisted_4$7 = ["onClick"];
24257
+ const _hoisted_4$6 = ["onClick"];
24258
24258
  const _hoisted_5$3 = ["innerHTML"];
24259
24259
  const _hoisted_6$2 = { key: 0 };
24260
24260
  const _hoisted_7$1 = {
@@ -24307,7 +24307,7 @@ and ensure you are accounting for this risk.
24307
24307
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24308
24308
  }, null, 8, _hoisted_5$3),
24309
24309
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24310
- ], 8, _hoisted_4$7)
24310
+ ], 8, _hoisted_4$6)
24311
24311
  ]),
24312
24312
  createBaseVNode("div", _hoisted_7$1, [
24313
24313
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -24547,7 +24547,7 @@ and ensure you are accounting for this risk.
24547
24547
  const _hoisted_1$g = { class: "lupa-related-query-item" };
24548
24548
  const _hoisted_2$d = { class: "lupa-related-query-image" };
24549
24549
  const _hoisted_3$9 = { class: "lupa-related-query-label" };
24550
- const _hoisted_4$6 = { class: "lupa-related-query-title" };
24550
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
24551
24551
  const _hoisted_5$2 = {
24552
24552
  key: 0,
24553
24553
  class: "lupa-related-query-count"
@@ -24633,7 +24633,7 @@ and ensure you are accounting for this risk.
24633
24633
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24634
24634
  ]),
24635
24635
  createBaseVNode("div", _hoisted_3$9, [
24636
- createBaseVNode("span", _hoisted_4$6, toDisplayString(_ctx.query), 1),
24636
+ createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
24637
24637
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24638
24638
  ])
24639
24639
  ]);
@@ -24703,7 +24703,7 @@ and ensure you are accounting for this risk.
24703
24703
  class: "lupa-empty-results",
24704
24704
  "data-cy": "lupa-no-results-in-page"
24705
24705
  };
24706
- const _hoisted_4$5 = {
24706
+ const _hoisted_4$4 = {
24707
24707
  key: 3,
24708
24708
  class: "lupa-empty-results",
24709
24709
  "data-cy": "lupa-no-results"
@@ -24898,7 +24898,7 @@ and ensure you are accounting for this risk.
24898
24898
  location: "bottom",
24899
24899
  sdkOptions: _ctx.options.options
24900
24900
  }, null, 8, ["options", "sdkOptions"])
24901
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
24901
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
24902
24902
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
24903
24903
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24904
24904
  ])) : createCommentVNode("", true),
@@ -24927,7 +24927,7 @@ and ensure you are accounting for this risk.
24927
24927
  class: "lupa-category-back"
24928
24928
  };
24929
24929
  const _hoisted_3$6 = ["href"];
24930
- const _hoisted_4$4 = { class: "lupa-child-category-list" };
24930
+ const _hoisted_4$3 = { class: "lupa-child-category-list" };
24931
24931
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
24932
24932
  __name: "CategoryTopFilters",
24933
24933
  props: {
@@ -24977,7 +24977,7 @@ and ensure you are accounting for this risk.
24977
24977
  onClick: handleNavigationBack
24978
24978
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
24979
24979
  ])) : createCommentVNode("", true),
24980
- createBaseVNode("div", _hoisted_4$4, [
24980
+ createBaseVNode("div", _hoisted_4$3, [
24981
24981
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24982
24982
  return openBlock(), createBlock(_sfc_main$T, {
24983
24983
  key: getCategoryKey(child),
@@ -25006,7 +25006,7 @@ and ensure you are accounting for this risk.
25006
25006
  class: "top-layout-wrapper"
25007
25007
  };
25008
25008
  const _hoisted_3$5 = { class: "search-content" };
25009
- const _hoisted_4$3 = { id: "lupa-search-results" };
25009
+ const _hoisted_4$2 = { id: "lupa-search-results" };
25010
25010
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
25011
25011
  __name: "SearchResults",
25012
25012
  props: {
@@ -25269,7 +25269,7 @@ and ensure you are accounting for this risk.
25269
25269
  options: _ctx.options,
25270
25270
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25271
25271
  }, null, 8, ["options", "is-product-list"]),
25272
- createBaseVNode("div", _hoisted_4$3, [
25272
+ createBaseVNode("div", _hoisted_4$2, [
25273
25273
  showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25274
25274
  key: 0,
25275
25275
  options: (_e = _ctx.options.filters) != null ? _e : {},
@@ -31678,19 +31678,15 @@ and ensure you are accounting for this risk.
31678
31678
  }
31679
31679
  });
31680
31680
  const _hoisted_1$9 = {
31681
- key: 0,
31682
- class: "lupa-search-product-recommendations-wrapper"
31683
- };
31684
- const _hoisted_2$6 = {
31685
31681
  key: 0,
31686
31682
  class: "lupa-recommendation-section-title"
31687
31683
  };
31688
- const _hoisted_3$4 = {
31684
+ const _hoisted_2$6 = {
31689
31685
  key: 1,
31690
31686
  class: "lupa-recommended-products",
31691
31687
  "data-cy": "lupa-recommended-products"
31692
31688
  };
31693
- const _hoisted_4$2 = {
31689
+ const _hoisted_3$4 = {
31694
31690
  key: 1,
31695
31691
  class: "lupa-products",
31696
31692
  "data-cy": "lupa-products"
@@ -31711,6 +31707,8 @@ and ensure you are accounting for this risk.
31711
31707
  "recommendations_lupasearch"
31712
31708
  );
31713
31709
  const loading = ref(true);
31710
+ const rootElement = ref(null);
31711
+ let observer = null;
31714
31712
  const carouselOptions = computed(() => {
31715
31713
  var _a;
31716
31714
  return (_a = props.options.carousel) != null ? _a : {};
@@ -31734,15 +31732,33 @@ and ensure you are accounting for this risk.
31734
31732
  const hasRecommendations = computed(() => {
31735
31733
  return recommendations2.value.length > 0;
31736
31734
  });
31735
+ const initIntersectionObserver = () => {
31736
+ if (rootElement.value) {
31737
+ observer = new IntersectionObserver((entries) => {
31738
+ if (entries[0].isIntersecting) {
31739
+ loadRecommendations();
31740
+ observer.unobserve(entries[0].target);
31741
+ }
31742
+ });
31743
+ observer.observe(rootElement.value);
31744
+ }
31745
+ };
31737
31746
  onMounted(() => {
31738
- loadRecommendations();
31739
- window.addEventListener("resize", handleResize);
31740
31747
  handleResize();
31741
31748
  optionsStore.setSearchResultOptions({
31742
31749
  options: props.options
31743
31750
  });
31751
+ if (props.options.lazyLoad) {
31752
+ initIntersectionObserver();
31753
+ } else {
31754
+ loadRecommendations();
31755
+ }
31756
+ window.addEventListener("resize", handleResize);
31744
31757
  });
31745
31758
  onBeforeUnmount(() => {
31759
+ if (observer) {
31760
+ observer.disconnect();
31761
+ }
31746
31762
  window.removeEventListener("resize", handleResize);
31747
31763
  });
31748
31764
  const getProductKeyAction = (index, product) => {
@@ -31811,43 +31827,49 @@ and ensure you are accounting for this risk.
31811
31827
  });
31812
31828
  __expose({ fetch: fetch2 });
31813
31829
  return (_ctx, _cache) => {
31814
- return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
31815
- title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
31816
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
31817
- layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
31818
- addons: withCtx(() => [
31819
- createVNode(unref(Navigation))
31820
- ]),
31821
- default: withCtx(() => [
31830
+ return openBlock(), createElementBlock("div", {
31831
+ class: "lupa-search-product-recommendations-wrapper",
31832
+ ref_key: "rootElement",
31833
+ ref: rootElement
31834
+ }, [
31835
+ hasRecommendations.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31836
+ title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, toDisplayString(title.value), 1)) : createCommentVNode("", true),
31837
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
31838
+ layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
31839
+ addons: withCtx(() => [
31840
+ createVNode(unref(Navigation))
31841
+ ]),
31842
+ default: withCtx(() => [
31843
+ (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31844
+ return openBlock(), createBlock(unref(Slide), {
31845
+ key: getProductKeyAction(index, product)
31846
+ }, {
31847
+ default: withCtx(() => [
31848
+ createVNode(_sfc_main$o, {
31849
+ product,
31850
+ options: _ctx.options,
31851
+ "click-tracking-settings": clickTrackingSettings.value
31852
+ }, null, 8, ["product", "options", "click-tracking-settings"])
31853
+ ]),
31854
+ _: 2
31855
+ }, 1024);
31856
+ }), 128))
31857
+ ]),
31858
+ _: 1
31859
+ }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
31822
31860
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31823
- return openBlock(), createBlock(unref(Slide), {
31824
- key: getProductKeyAction(index, product)
31825
- }, {
31826
- default: withCtx(() => [
31827
- createVNode(_sfc_main$o, {
31828
- product,
31829
- options: _ctx.options,
31830
- "click-tracking-settings": clickTrackingSettings.value
31831
- }, null, 8, ["product", "options", "click-tracking-settings"])
31832
- ]),
31833
- _: 2
31834
- }, 1024);
31861
+ return openBlock(), createBlock(_sfc_main$o, {
31862
+ style: normalizeStyle(columnSize.value),
31863
+ key: getProductKeyAction(index, product),
31864
+ product,
31865
+ options: _ctx.options,
31866
+ "lupa-click-tracking-type": `recommendedItemClick`
31867
+ }, null, 8, ["style", "product", "options"]);
31835
31868
  }), 128))
31836
- ]),
31837
- _: 1
31838
- }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
31839
- (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31840
- return openBlock(), createBlock(_sfc_main$o, {
31841
- style: normalizeStyle(columnSize.value),
31842
- key: getProductKeyAction(index, product),
31843
- product,
31844
- options: _ctx.options,
31845
- "lupa-click-tracking-type": `recommendedItemClick`
31846
- }, null, 8, ["style", "product", "options"]);
31847
- }), 128))
31848
- ]))
31849
- ])) : createCommentVNode("", true)
31850
- ])) : createCommentVNode("", true);
31869
+ ]))
31870
+ ])) : createCommentVNode("", true)
31871
+ ], 64)) : createCommentVNode("", true)
31872
+ ], 512);
31851
31873
  };
31852
31874
  }
31853
31875
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.14.13",
3
+ "version": "1.14.14",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@getlupa/client-sdk": "^1.3.4",
23
- "@getlupa/vue": "0.14.9",
23
+ "@getlupa/vue": "0.14.10",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",