@getlupa/client 1.21.3 → 1.22.0

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.
@@ -19786,7 +19786,7 @@ var __async = (__this, __arguments, generator) => {
19786
19786
  };
19787
19787
  const _hoisted_2$W = { class: "lupa-dialog-content" };
19788
19788
  const _hoisted_3$E = { class: "lupa-listening-text" };
19789
- const _hoisted_4$u = { class: "lupa-mic-button-wrapper" };
19789
+ const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
19790
19790
  const _hoisted_5$l = ["aria-label"];
19791
19791
  const _sfc_main$1z = /* @__PURE__ */ defineComponent({
19792
19792
  __name: "VoiceSearchDialog",
@@ -19900,7 +19900,7 @@ var __async = (__this, __arguments, generator) => {
19900
19900
  }),
19901
19901
  createBaseVNode("div", _hoisted_2$W, [
19902
19902
  createBaseVNode("p", _hoisted_3$E, toDisplayString(description.value), 1),
19903
- createBaseVNode("div", _hoisted_4$u, [
19903
+ createBaseVNode("div", _hoisted_4$v, [
19904
19904
  createBaseVNode("button", {
19905
19905
  class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
19906
19906
  onClick: handleRecordingButtonClick,
@@ -19925,7 +19925,7 @@ var __async = (__this, __arguments, generator) => {
19925
19925
  const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
19926
19926
  const _hoisted_2$V = { class: "lupa-input-clear" };
19927
19927
  const _hoisted_3$D = { id: "lupa-search-box-input" };
19928
- const _hoisted_4$t = ["value"];
19928
+ const _hoisted_4$u = ["value"];
19929
19929
  const _hoisted_5$k = ["aria-label", "placeholder"];
19930
19930
  const _hoisted_6$8 = {
19931
19931
  key: 0,
@@ -20078,7 +20078,7 @@ var __async = (__this, __arguments, generator) => {
20078
20078
  "aria-hidden": "true",
20079
20079
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
20080
20080
  disabled: ""
20081
- }, null, 8, _hoisted_4$t),
20081
+ }, null, 8, _hoisted_4$u),
20082
20082
  withDirectives(createBaseVNode("input", mergeProps({
20083
20083
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
20084
20084
  }, inputAttributes.value, {
@@ -20328,7 +20328,7 @@ var __async = (__this, __arguments, generator) => {
20328
20328
  class: "lupa-suggestion-facet",
20329
20329
  "data-cy": "lupa-suggestion-facet"
20330
20330
  };
20331
- const _hoisted_4$s = {
20331
+ const _hoisted_4$t = {
20332
20332
  class: "lupa-suggestion-facet-label",
20333
20333
  "data-cy": "lupa-suggestion-facet-label"
20334
20334
  };
@@ -20375,7 +20375,7 @@ var __async = (__this, __arguments, generator) => {
20375
20375
  innerHTML: _ctx.suggestion.displayHighlight
20376
20376
  }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
20377
20377
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
20378
- createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
20378
+ createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
20379
20379
  createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
20380
20380
  ])) : createCommentVNode("", true)
20381
20381
  ]);
@@ -30115,7 +30115,7 @@ and ensure you are accounting for this risk.
30115
30115
  const _hoisted_1$1a = ["innerHTML"];
30116
30116
  const _hoisted_2$P = { key: 0 };
30117
30117
  const _hoisted_3$B = { key: 1 };
30118
- const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
30118
+ const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
30119
30119
  const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
30120
30120
  const _sfc_main$1k = /* @__PURE__ */ defineComponent({
30121
30121
  __name: "SearchBoxProductCustom",
@@ -30148,7 +30148,7 @@ and ensure you are accounting for this risk.
30148
30148
  class: [className.value, "lupa-search-box-product-custom"]
30149
30149
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
30150
30150
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
30151
- createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
30151
+ createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
30152
30152
  createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
30153
30153
  ]))
30154
30154
  ], 16));
@@ -30499,7 +30499,7 @@ and ensure you are accounting for this risk.
30499
30499
  const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
30500
30500
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
30501
30501
  const _hoisted_3$A = ["disabled"];
30502
- const _hoisted_4$q = ["href"];
30502
+ const _hoisted_4$r = ["href"];
30503
30503
  const _hoisted_5$h = ["disabled"];
30504
30504
  const _sfc_main$1i = /* @__PURE__ */ defineComponent({
30505
30505
  __name: "SearchBoxProductAddToCart",
@@ -30555,7 +30555,7 @@ and ensure you are accounting for this risk.
30555
30555
  "data-cy": "lupa-add-to-cart",
30556
30556
  disabled: !inStockValue.value || loading.value
30557
30557
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
30558
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$q)
30558
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
30559
30559
  ], 16, _hoisted_3$A)) : (openBlock(), createElementBlock("button", mergeProps({
30560
30560
  key: 1,
30561
30561
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -30675,7 +30675,7 @@ and ensure you are accounting for this risk.
30675
30675
  const _hoisted_1$16 = { class: "lupa-badge-title" };
30676
30676
  const _hoisted_2$N = ["src"];
30677
30677
  const _hoisted_3$z = { key: 1 };
30678
- const _hoisted_4$p = {
30678
+ const _hoisted_4$q = {
30679
30679
  key: 0,
30680
30680
  class: "lupa-badge-full-text"
30681
30681
  };
@@ -30719,7 +30719,7 @@ and ensure you are accounting for this risk.
30719
30719
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
30720
30720
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
30721
30721
  ]),
30722
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
30722
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
30723
30723
  ], 6);
30724
30724
  };
30725
30725
  }
@@ -31460,7 +31460,16 @@ and ensure you are accounting for this risk.
31460
31460
  if (attr === "value" && (element == null ? void 0 : element.value)) {
31461
31461
  return element.value;
31462
31462
  }
31463
- return element.getAttribute(attr) || options.default;
31463
+ const attributeValue = element.getAttribute(attr);
31464
+ if (attributeValue === null || attributeValue === void 0) {
31465
+ return options.default;
31466
+ }
31467
+ if (options.regex) {
31468
+ const regex = new RegExp(options.regex);
31469
+ const match = attributeValue.match(regex);
31470
+ return match ? match[1] : options.default;
31471
+ }
31472
+ return attributeValue;
31464
31473
  };
31465
31474
  const getValueFromPath = (obj, path) => {
31466
31475
  return path.split(".").reduce((value, key) => value && value[key] || null, obj);
@@ -31678,7 +31687,7 @@ and ensure you are accounting for this risk.
31678
31687
  key: 0,
31679
31688
  class: "lupa-panel-title lupa-panel-title-top-results"
31680
31689
  };
31681
- const _hoisted_4$o = {
31690
+ const _hoisted_4$p = {
31682
31691
  key: 1,
31683
31692
  class: "lupa-panel-title"
31684
31693
  };
@@ -31874,7 +31883,7 @@ and ensure you are accounting for this risk.
31874
31883
  "data-cy": "lupa-panel-" + panel.type + "-index"
31875
31884
  }, [
31876
31885
  ((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
31877
- ((_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),
31886
+ ((_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),
31878
31887
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
31879
31888
  key: 2,
31880
31889
  panel,
@@ -32372,7 +32381,7 @@ and ensure you are accounting for this risk.
32372
32381
  key: 1,
32373
32382
  "data-cy": "did-you-mean-label"
32374
32383
  };
32375
- const _hoisted_4$n = { key: 1 };
32384
+ const _hoisted_4$o = { key: 1 };
32376
32385
  const _sfc_main$12 = /* @__PURE__ */ defineComponent({
32377
32386
  __name: "SearchResultsDidYouMean",
32378
32387
  props: {
@@ -32423,7 +32432,7 @@ and ensure you are accounting for this risk.
32423
32432
  class: "lupa-did-you-mean lupa-highlighted-search-text",
32424
32433
  "data-cy": "did-you-mean-value",
32425
32434
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
32426
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
32435
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
32427
32436
  ]);
32428
32437
  }), 128))
32429
32438
  ])) : createCommentVNode("", true)
@@ -32473,7 +32482,7 @@ and ensure you are accounting for this risk.
32473
32482
  key: 1,
32474
32483
  class: "lupa-results-total-count"
32475
32484
  };
32476
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
32485
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
32477
32486
  const _hoisted_5$f = ["innerHTML"];
32478
32487
  const _sfc_main$10 = /* @__PURE__ */ defineComponent({
32479
32488
  __name: "SearchResultsTitle",
@@ -32523,7 +32532,7 @@ and ensure you are accounting for this risk.
32523
32532
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32524
32533
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
32525
32534
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32526
- createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
32535
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
32527
32536
  _cache[0] || (_cache[0] = createTextVNode(")"))
32528
32537
  ])) : createCommentVNode("", true)
32529
32538
  ])) : createCommentVNode("", true),
@@ -32605,7 +32614,7 @@ and ensure you are accounting for this risk.
32605
32614
  key: 0,
32606
32615
  class: "filter-values"
32607
32616
  };
32608
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
32617
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
32609
32618
  const _sfc_main$_ = /* @__PURE__ */ defineComponent({
32610
32619
  __name: "CurrentFilters",
32611
32620
  props: {
@@ -32697,7 +32706,7 @@ and ensure you are accounting for this risk.
32697
32706
  }, null, 2)) : createCommentVNode("", true)
32698
32707
  ]),
32699
32708
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
32700
- createBaseVNode("div", _hoisted_4$l, [
32709
+ createBaseVNode("div", _hoisted_4$m, [
32701
32710
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
32702
32711
  return openBlock(), createBlock(_sfc_main$$, {
32703
32712
  key: filter.key + "_" + filter.value,
@@ -32766,7 +32775,7 @@ and ensure you are accounting for this risk.
32766
32775
  };
32767
32776
  const _hoisted_2$D = { class: "lupa-category-back" };
32768
32777
  const _hoisted_3$t = ["href"];
32769
- const _hoisted_4$k = ["href"];
32778
+ const _hoisted_4$l = ["href"];
32770
32779
  const _hoisted_5$e = { class: "lupa-child-category-list" };
32771
32780
  const _sfc_main$Y = /* @__PURE__ */ defineComponent({
32772
32781
  __name: "CategoryFilter",
@@ -32873,7 +32882,7 @@ and ensure you are accounting for this risk.
32873
32882
  href: parentUrlLink.value,
32874
32883
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
32875
32884
  onClick: handleNavigationParent
32876
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
32885
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
32877
32886
  ], 2),
32878
32887
  createBaseVNode("div", _hoisted_5$e, [
32879
32888
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -32894,7 +32903,7 @@ and ensure you are accounting for this risk.
32894
32903
  };
32895
32904
  const _hoisted_2$C = ["placeholder"];
32896
32905
  const _hoisted_3$s = { class: "lupa-terms-list" };
32897
- const _hoisted_4$j = ["onClick"];
32906
+ const _hoisted_4$k = ["onClick"];
32898
32907
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
32899
32908
  const _hoisted_6$7 = { class: "lupa-term-label" };
32900
32909
  const _hoisted_7$4 = {
@@ -33026,7 +33035,7 @@ and ensure you are accounting for this risk.
33026
33035
  createBaseVNode("span", _hoisted_6$7, toDisplayString(getItemLabel(item)), 1),
33027
33036
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$4, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
33028
33037
  ], 2)
33029
- ], 10, _hoisted_4$j);
33038
+ ], 10, _hoisted_4$k);
33030
33039
  }), 128))
33031
33040
  ]),
33032
33041
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -33943,7 +33952,7 @@ and ensure you are accounting for this risk.
33943
33952
  key: 1,
33944
33953
  class: "lupa-stats-facet-summary-input"
33945
33954
  };
33946
- const _hoisted_4$i = { class: "lupa-stats-from" };
33955
+ const _hoisted_4$j = { class: "lupa-stats-from" };
33947
33956
  const _hoisted_5$c = {
33948
33957
  key: 0,
33949
33958
  class: "lupa-stats-range-label"
@@ -34181,7 +34190,7 @@ and ensure you are accounting for this risk.
34181
34190
  return (_ctx, _cache) => {
34182
34191
  return openBlock(), createElementBlock("div", _hoisted_1$P, [
34183
34192
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
34184
- createBaseVNode("div", _hoisted_4$i, [
34193
+ createBaseVNode("div", _hoisted_4$j, [
34185
34194
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
34186
34195
  withDirectives(createBaseVNode("input", {
34187
34196
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -34250,7 +34259,7 @@ and ensure you are accounting for this risk.
34250
34259
  key: 0,
34251
34260
  class: "lupa-term-count"
34252
34261
  };
34253
- const _hoisted_4$h = {
34262
+ const _hoisted_4$i = {
34254
34263
  key: 0,
34255
34264
  class: "lupa-facet-level"
34256
34265
  };
@@ -34320,7 +34329,7 @@ and ensure you are accounting for this risk.
34320
34329
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$q, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
34321
34330
  ], 2)
34322
34331
  ]),
34323
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, [
34332
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
34324
34333
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
34325
34334
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
34326
34335
  key: itemChild.title,
@@ -34868,7 +34877,7 @@ and ensure you are accounting for this risk.
34868
34877
  };
34869
34878
  const _hoisted_2$w = { class: "lupa-mobile-sidebar-content" };
34870
34879
  const _hoisted_3$o = { class: "lupa-sidebar-top" };
34871
- const _hoisted_4$g = { class: "lupa-sidebar-title" };
34880
+ const _hoisted_4$h = { class: "lupa-sidebar-title" };
34872
34881
  const _hoisted_5$b = {
34873
34882
  key: 0,
34874
34883
  class: "lupa-sidebar-filter-count"
@@ -34913,7 +34922,7 @@ and ensure you are accounting for this risk.
34913
34922
  }),
34914
34923
  createBaseVNode("div", _hoisted_2$w, [
34915
34924
  createBaseVNode("div", _hoisted_3$o, [
34916
- createBaseVNode("div", _hoisted_4$g, [
34925
+ createBaseVNode("div", _hoisted_4$h, [
34917
34926
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
34918
34927
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_5$b, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
34919
34928
  ]),
@@ -34940,7 +34949,7 @@ and ensure you are accounting for this risk.
34940
34949
  key: 1,
34941
34950
  class: "lupa-search-results-breadcrumb-text"
34942
34951
  };
34943
- const _hoisted_4$f = { key: 2 };
34952
+ const _hoisted_4$g = { key: 2 };
34944
34953
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
34945
34954
  __name: "SearchResultsBreadcrumbs",
34946
34955
  props: {
@@ -34982,7 +34991,7 @@ and ensure you are accounting for this risk.
34982
34991
  return handleNavigation(e2, (_a26 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a26 : "");
34983
34992
  }
34984
34993
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
34985
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
34994
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
34986
34995
  ]);
34987
34996
  }), 128))
34988
34997
  ]);
@@ -35145,7 +35154,7 @@ and ensure you are accounting for this risk.
35145
35154
  class: "lupa-page-number-separator"
35146
35155
  };
35147
35156
  const _hoisted_3$m = ["onClick"];
35148
- const _hoisted_4$e = {
35157
+ const _hoisted_4$f = {
35149
35158
  key: 0,
35150
35159
  class: "lupa-page-number-separator"
35151
35160
  };
@@ -35251,7 +35260,7 @@ and ensure you are accounting for this risk.
35251
35260
  }, toDisplayString(page), 11, _hoisted_3$m);
35252
35261
  }), 128)),
35253
35262
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
35254
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
35263
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
35255
35264
  createBaseVNode("div", {
35256
35265
  class: "lupa-page-number lupa-page-number-last",
35257
35266
  onClick: _cache[2] || (_cache[2] = () => {
@@ -35279,7 +35288,7 @@ and ensure you are accounting for this risk.
35279
35288
  class: "lupa-select-label",
35280
35289
  for: "lupa-page-size-select-dropdown"
35281
35290
  };
35282
- const _hoisted_4$d = ["aria-label"];
35291
+ const _hoisted_4$e = ["aria-label"];
35283
35292
  const _hoisted_5$a = ["value"];
35284
35293
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
35285
35294
  __name: "SearchResultsPageSize",
@@ -35329,7 +35338,7 @@ and ensure you are accounting for this risk.
35329
35338
  value: option
35330
35339
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
35331
35340
  }), 128))
35332
- ], 40, _hoisted_4$d)
35341
+ ], 40, _hoisted_4$e)
35333
35342
  ])
35334
35343
  ]);
35335
35344
  };
@@ -35344,7 +35353,7 @@ and ensure you are accounting for this risk.
35344
35353
  class: "lupa-select-label",
35345
35354
  for: "lupa-sort-select-dropdown"
35346
35355
  };
35347
- const _hoisted_4$c = ["aria-label"];
35356
+ const _hoisted_4$d = ["aria-label"];
35348
35357
  const _hoisted_5$9 = ["value"];
35349
35358
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
35350
35359
  __name: "SearchResultsSort",
@@ -35415,7 +35424,7 @@ and ensure you are accounting for this risk.
35415
35424
  value: option.key
35416
35425
  }, toDisplayString(option.label), 9, _hoisted_5$9);
35417
35426
  }), 128))
35418
- ], 40, _hoisted_4$c), [
35427
+ ], 40, _hoisted_4$d), [
35419
35428
  [vModelSelect, selectedKey.value]
35420
35429
  ])
35421
35430
  ])
@@ -35429,7 +35438,7 @@ and ensure you are accounting for this risk.
35429
35438
  class: "lupa-toolbar-right-title"
35430
35439
  };
35431
35440
  const _hoisted_3$j = { key: 2 };
35432
- const _hoisted_4$b = { key: 4 };
35441
+ const _hoisted_4$c = { key: 4 };
35433
35442
  const _hoisted_5$8 = { key: 6 };
35434
35443
  const _hoisted_6$4 = { class: "lupa-toolbar-right" };
35435
35444
  const _hoisted_7$2 = {
@@ -35557,7 +35566,7 @@ and ensure you are accounting for this risk.
35557
35566
  label: searchSummaryLabel.value,
35558
35567
  clearable: unref(hasAnyFilter) && showFilterClear.value,
35559
35568
  onClear: handleClearAll
35560
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
35569
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
35561
35570
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$I, {
35562
35571
  key: 5,
35563
35572
  options: paginationOptions.value.pageSelect,
@@ -35610,7 +35619,7 @@ and ensure you are accounting for this risk.
35610
35619
  const _hoisted_1$z = ["title", "innerHTML"];
35611
35620
  const _hoisted_2$q = ["title"];
35612
35621
  const _hoisted_3$i = ["href", "innerHTML"];
35613
- const _hoisted_4$a = ["title"];
35622
+ const _hoisted_4$b = ["title"];
35614
35623
  const _hoisted_5$7 = {
35615
35624
  key: 0,
35616
35625
  class: "lupa-search-results-product-title-text"
@@ -35678,7 +35687,7 @@ and ensure you are accounting for this risk.
35678
35687
  class: "lupa-search-results-product-title-text lupa-title-link",
35679
35688
  onClick: handleNavigation
35680
35689
  }, toDisplayString(title.value), 9, _hoisted_6$3)) : createCommentVNode("", true)
35681
- ], 12, _hoisted_4$a));
35690
+ ], 12, _hoisted_4$b));
35682
35691
  };
35683
35692
  }
35684
35693
  });
@@ -35721,7 +35730,7 @@ and ensure you are accounting for this risk.
35721
35730
  const _hoisted_1$x = { id: "lupa-search-results-rating" };
35722
35731
  const _hoisted_2$p = { class: "lupa-ratings" };
35723
35732
  const _hoisted_3$h = { class: "lupa-ratings-base" };
35724
- const _hoisted_4$9 = ["innerHTML"];
35733
+ const _hoisted_4$a = ["innerHTML"];
35725
35734
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
35726
35735
  const _hoisted_6$2 = ["innerHTML"];
35727
35736
  const _hoisted_7$1 = ["href"];
@@ -35771,7 +35780,7 @@ and ensure you are accounting for this risk.
35771
35780
  key: index,
35772
35781
  innerHTML: star,
35773
35782
  class: "lupa-rating lupa-rating-not-highlighted"
35774
- }, null, 8, _hoisted_4$9);
35783
+ }, null, 8, _hoisted_4$a);
35775
35784
  }), 128))
35776
35785
  ]),
35777
35786
  createBaseVNode("div", _hoisted_5$6, [
@@ -35864,7 +35873,7 @@ and ensure you are accounting for this risk.
35864
35873
  const _hoisted_1$v = { class: "lupa-search-results-add-to-cart-wrapper" };
35865
35874
  const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
35866
35875
  const _hoisted_3$g = ["disabled"];
35867
- const _hoisted_4$8 = ["href"];
35876
+ const _hoisted_4$9 = ["href"];
35868
35877
  const _hoisted_5$5 = ["id", "disabled"];
35869
35878
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
35870
35879
  __name: "SearchResultsProductAddToCart",
@@ -35933,7 +35942,7 @@ and ensure you are accounting for this risk.
35933
35942
  "data-cy": "lupa-add-to-cart",
35934
35943
  disabled: !inStockValue.value || loading.value
35935
35944
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
35936
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$8)
35945
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
35937
35946
  ], 16, _hoisted_3$g)) : (openBlock(), createElementBlock("button", mergeProps({
35938
35947
  key: 1,
35939
35948
  id: id.value,
@@ -35951,7 +35960,7 @@ and ensure you are accounting for this risk.
35951
35960
  const _hoisted_1$u = ["innerHTML"];
35952
35961
  const _hoisted_2$n = { key: 0 };
35953
35962
  const _hoisted_3$f = { key: 1 };
35954
- const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
35963
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
35955
35964
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
35956
35965
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
35957
35966
  __name: "SearchResultsProductCustom",
@@ -35980,7 +35989,11 @@ and ensure you are accounting for this risk.
35980
35989
  var _a25;
35981
35990
  return (_a25 = props.options.isHtml) != null ? _a25 : false;
35982
35991
  });
35983
- const handleClick = () => __async2(null, null, function* () {
35992
+ const handleClick = (e2) => __async2(null, null, function* () {
35993
+ if (e2 && props.options.stopPropagationOnClick) {
35994
+ e2.stopPropagation();
35995
+ e2.preventDefault();
35996
+ }
35984
35997
  if (!props.options.action) {
35985
35998
  return;
35986
35999
  }
@@ -35996,7 +36009,7 @@ and ensure you are accounting for this risk.
35996
36009
  class: className.value
35997
36010
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
35998
36011
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
35999
- createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
36012
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
36000
36013
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
36001
36014
  ]))
36002
36015
  ], 16));
@@ -36023,7 +36036,11 @@ and ensure you are accounting for this risk.
36023
36036
  const className = computed(() => {
36024
36037
  return props.options.className;
36025
36038
  });
36026
- const handleClick = () => __async2(null, null, function* () {
36039
+ const handleClick = (e2) => __async2(null, null, function* () {
36040
+ if (e2 && props.options.stopPropagationOnClick) {
36041
+ e2.stopPropagation();
36042
+ e2.preventDefault();
36043
+ }
36027
36044
  if (!props.options.action) {
36028
36045
  return;
36029
36046
  }
@@ -36043,7 +36060,7 @@ and ensure you are accounting for this risk.
36043
36060
  const _hoisted_1$s = { id: "lupa-search-results-rating" };
36044
36061
  const _hoisted_2$m = ["innerHTML"];
36045
36062
  const _hoisted_3$e = { class: "lupa-ratings" };
36046
- const _hoisted_4$6 = ["href"];
36063
+ const _hoisted_4$7 = ["href"];
36047
36064
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
36048
36065
  __name: "SearchResultsProductSingleStarRating",
36049
36066
  props: {
@@ -36081,7 +36098,7 @@ and ensure you are accounting for this risk.
36081
36098
  createBaseVNode("a", {
36082
36099
  href: ratingLink.value,
36083
36100
  class: "lupa-total-ratings"
36084
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$6)
36101
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
36085
36102
  ]);
36086
36103
  };
36087
36104
  }
@@ -36438,7 +36455,7 @@ and ensure you are accounting for this risk.
36438
36455
  class: "lupa-similar-query-label",
36439
36456
  "data-cy": "lupa-similar-query-label"
36440
36457
  };
36441
- const _hoisted_4$5 = ["onClick"];
36458
+ const _hoisted_4$6 = ["onClick"];
36442
36459
  const _hoisted_5$3 = ["innerHTML"];
36443
36460
  const _hoisted_6$1 = { key: 0 };
36444
36461
  const _hoisted_7 = {
@@ -36499,7 +36516,7 @@ and ensure you are accounting for this risk.
36499
36516
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
36500
36517
  }, null, 8, _hoisted_5$3),
36501
36518
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$1, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
36502
- ], 8, _hoisted_4$5)
36519
+ ], 8, _hoisted_4$6)
36503
36520
  ]),
36504
36521
  createBaseVNode("div", _hoisted_7, [
36505
36522
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -36831,7 +36848,7 @@ and ensure you are accounting for this risk.
36831
36848
  const _hoisted_1$l = { class: "lupa-related-query-item" };
36832
36849
  const _hoisted_2$g = { class: "lupa-related-query-image" };
36833
36850
  const _hoisted_3$a = { class: "lupa-related-query-label" };
36834
- const _hoisted_4$4 = { class: "lupa-related-query-title" };
36851
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
36835
36852
  const _hoisted_5$2 = {
36836
36853
  key: 0,
36837
36854
  class: "lupa-related-query-count"
@@ -36943,7 +36960,7 @@ and ensure you are accounting for this risk.
36943
36960
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
36944
36961
  ]),
36945
36962
  createBaseVNode("div", _hoisted_3$a, [
36946
- createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
36963
+ createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
36947
36964
  ((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
36948
36965
  ])
36949
36966
  ]);
@@ -37170,7 +37187,7 @@ and ensure you are accounting for this risk.
37170
37187
  const _hoisted_1$h = { class: "lupa-related-query-item" };
37171
37188
  const _hoisted_2$d = { class: "lupa-related-query-image" };
37172
37189
  const _hoisted_3$7 = { class: "lupa-related-query-label" };
37173
- const _hoisted_4$3 = { class: "lupa-related-query-title" };
37190
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
37174
37191
  const _hoisted_5$1 = {
37175
37192
  key: 0,
37176
37193
  class: "lupa-related-query-count"
@@ -37218,7 +37235,7 @@ and ensure you are accounting for this risk.
37218
37235
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
37219
37236
  ]),
37220
37237
  createBaseVNode("div", _hoisted_3$7, [
37221
- createBaseVNode("span", _hoisted_4$3, toDisplayString(query.value), 1),
37238
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
37222
37239
  ((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$1, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
37223
37240
  ])
37224
37241
  ]);
@@ -37362,7 +37379,7 @@ and ensure you are accounting for this risk.
37362
37379
  class: "lupa-empty-results",
37363
37380
  "data-cy": "lupa-no-results-in-page"
37364
37381
  };
37365
- const _hoisted_4$2 = {
37382
+ const _hoisted_4$3 = {
37366
37383
  key: 5,
37367
37384
  class: "lupa-empty-results",
37368
37385
  "data-cy": "lupa-no-results"
@@ -37583,7 +37600,7 @@ and ensure you are accounting for this risk.
37583
37600
  location: "bottom",
37584
37601
  sdkOptions: _ctx.options.options
37585
37602
  }, null, 8, ["options", "sdkOptions"])
37586
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
37603
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
37587
37604
  createVNode(_sfc_main$h, {
37588
37605
  emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
37589
37606
  currentQueryText: unref(currentQueryText),
@@ -37619,7 +37636,7 @@ and ensure you are accounting for this risk.
37619
37636
  class: "lupa-category-back"
37620
37637
  };
37621
37638
  const _hoisted_3$4 = ["href"];
37622
- const _hoisted_4$1 = {
37639
+ const _hoisted_4$2 = {
37623
37640
  key: 1,
37624
37641
  class: "lupa-child-category-list"
37625
37642
  };
@@ -37679,7 +37696,7 @@ and ensure you are accounting for this risk.
37679
37696
  onClick: handleNavigationBack
37680
37697
  }, toDisplayString(backTitle.value), 9, _hoisted_3$4)
37681
37698
  ])) : createCommentVNode("", true),
37682
- hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
37699
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
37683
37700
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
37684
37701
  return openBlock(), createBlock(_sfc_main$Z, {
37685
37702
  key: getCategoryKey(child),
@@ -39596,12 +39613,13 @@ and ensure you are accounting for this risk.
39596
39613
  key: 0,
39597
39614
  class: "lupa-recommendation-section-title"
39598
39615
  };
39599
- const _hoisted_2$6 = {
39616
+ const _hoisted_2$6 = ["href"];
39617
+ const _hoisted_3$3 = {
39600
39618
  key: 1,
39601
39619
  class: "lupa-recommended-products",
39602
39620
  "data-cy": "lupa-recommended-products"
39603
39621
  };
39604
- const _hoisted_3$3 = {
39622
+ const _hoisted_4$1 = {
39605
39623
  key: 1,
39606
39624
  class: "lupa-products",
39607
39625
  "data-cy": "lupa-products"
@@ -39645,6 +39663,10 @@ and ensure you are accounting for this risk.
39645
39663
  var _a25, _b25;
39646
39664
  return (_b25 = (_a25 = props.options.recommendationLabels) == null ? void 0 : _a25.title) != null ? _b25 : "";
39647
39665
  });
39666
+ const hasTitleLink = computed(() => {
39667
+ var _a25;
39668
+ return Boolean((_a25 = props.options.recommendationLabels) == null ? void 0 : _a25.titleLink);
39669
+ });
39648
39670
  const hasRecommendations = computed(() => {
39649
39671
  return recommendations2.value.length > 0;
39650
39672
  });
@@ -39734,6 +39756,9 @@ and ensure you are accounting for this risk.
39734
39756
  var _a25, _b25;
39735
39757
  return (_b25 = (_a25 = carouselOptions.value) == null ? void 0 : _a25.wrapAround) != null ? _b25 : true;
39736
39758
  });
39759
+ const recommendationFilters = computed(() => {
39760
+ return __spreadValues2({}, processExtractionObject(props.options.recommendationFilters));
39761
+ });
39737
39762
  const loadLupaRecommendations = () => __async2(null, null, function* () {
39738
39763
  var _a25, _b25;
39739
39764
  recommendationsType.value = "recommendations_lupasearch";
@@ -39742,7 +39767,7 @@ and ensure you are accounting for this risk.
39742
39767
  const result2 = yield LupaSearchSdk.recommend(
39743
39768
  props.options.queryKey,
39744
39769
  itemId.value,
39745
- props.options.recommendationFilters,
39770
+ recommendationFilters.value,
39746
39771
  props.options.options
39747
39772
  );
39748
39773
  if (!result2.success) {
@@ -39760,14 +39785,22 @@ and ensure you are accounting for this risk.
39760
39785
  });
39761
39786
  __expose({ fetch: fetch2 });
39762
39787
  return (_ctx, _cache) => {
39788
+ var _a25;
39763
39789
  return openBlock(), createElementBlock("div", {
39764
39790
  class: "lupa-search-product-recommendations-wrapper",
39765
39791
  ref_key: "rootElement",
39766
39792
  ref: rootElement
39767
39793
  }, [
39768
39794
  hasRecommendations.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
39769
- title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, toDisplayString(title.value), 1)) : createCommentVNode("", true),
39770
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
39795
+ title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, [
39796
+ !hasTitleLink.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
39797
+ createTextVNode(toDisplayString(title.value), 1)
39798
+ ], 64)) : (openBlock(), createElementBlock("a", {
39799
+ key: 1,
39800
+ href: (_a25 = _ctx.options.recommendationLabels) == null ? void 0 : _a25.titleLink
39801
+ }, toDisplayString(title.value), 9, _hoisted_2$6))
39802
+ ])) : createCommentVNode("", true),
39803
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
39771
39804
  layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": wrapAround.value }), {
39772
39805
  addons: withCtx(() => [
39773
39806
  createVNode(unref(Navigation))
@@ -39791,7 +39824,7 @@ and ensure you are accounting for this risk.
39791
39824
  }), 128))
39792
39825
  ]),
39793
39826
  _: 1
39794
- }, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_3$3, [
39827
+ }, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
39795
39828
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
39796
39829
  return openBlock(), createBlock(_sfc_main$t, {
39797
39830
  style: normalizeStyle(columnSize.value),