@getlupa/client 1.18.2 → 1.18.3

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.
@@ -14319,7 +14319,7 @@ var __async = (__this, __arguments, generator) => {
14319
14319
  const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
14320
14320
  const _hoisted_2$V = { class: "lupa-input-clear" };
14321
14321
  const _hoisted_3$E = { id: "lupa-search-box-input" };
14322
- const _hoisted_4$v = ["value"];
14322
+ const _hoisted_4$u = ["value"];
14323
14323
  const _hoisted_5$l = ["aria-label", "placeholder"];
14324
14324
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
14325
14325
  const _hoisted_7$7 = [
@@ -14426,7 +14426,7 @@ var __async = (__this, __arguments, generator) => {
14426
14426
  "aria-hidden": "true",
14427
14427
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
14428
14428
  disabled: ""
14429
- }, null, 8, _hoisted_4$v),
14429
+ }, null, 8, _hoisted_4$u),
14430
14430
  withDirectives(createBaseVNode("input", mergeProps({
14431
14431
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
14432
14432
  }, inputAttributes.value, {
@@ -14652,7 +14652,7 @@ var __async = (__this, __arguments, generator) => {
14652
14652
  class: "lupa-suggestion-facet",
14653
14653
  "data-cy": "lupa-suggestion-facet"
14654
14654
  };
14655
- const _hoisted_4$u = {
14655
+ const _hoisted_4$t = {
14656
14656
  class: "lupa-suggestion-facet-label",
14657
14657
  "data-cy": "lupa-suggestion-facet-label"
14658
14658
  };
@@ -14698,7 +14698,7 @@ var __async = (__this, __arguments, generator) => {
14698
14698
  innerHTML: _ctx.suggestion.displayHighlight
14699
14699
  }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
14700
14700
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
14701
- createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
14701
+ createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
14702
14702
  createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
14703
14703
  ])) : createCommentVNode("", true)
14704
14704
  ]);
@@ -24192,7 +24192,7 @@ and ensure you are accounting for this risk.
24192
24192
  const _hoisted_1$1a = ["innerHTML"];
24193
24193
  const _hoisted_2$P = { key: 0 };
24194
24194
  const _hoisted_3$C = { key: 1 };
24195
- const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
24195
+ const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
24196
24196
  const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
24197
24197
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24198
24198
  __name: "SearchBoxProductCustom",
@@ -24225,7 +24225,7 @@ and ensure you are accounting for this risk.
24225
24225
  class: [className.value, "lupa-search-box-product-custom"]
24226
24226
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24227
24227
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
24228
- createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
24228
+ createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
24229
24229
  createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
24230
24230
  ]))
24231
24231
  ], 16));
@@ -24575,7 +24575,7 @@ and ensure you are accounting for this risk.
24575
24575
  const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
24576
24576
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
24577
24577
  const _hoisted_3$B = ["disabled"];
24578
- const _hoisted_4$s = ["href"];
24578
+ const _hoisted_4$r = ["href"];
24579
24579
  const _hoisted_5$i = ["onClick", "disabled"];
24580
24580
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24581
24581
  __name: "SearchBoxProductAddToCart",
@@ -24623,7 +24623,7 @@ and ensure you are accounting for this risk.
24623
24623
  "data-cy": "lupa-add-to-cart",
24624
24624
  disabled: !inStockValue.value || loading.value
24625
24625
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24626
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
24626
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
24627
24627
  ], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
24628
24628
  key: 1,
24629
24629
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -24743,7 +24743,7 @@ and ensure you are accounting for this risk.
24743
24743
  const _hoisted_1$16 = { class: "lupa-badge-title" };
24744
24744
  const _hoisted_2$N = ["src"];
24745
24745
  const _hoisted_3$A = { key: 1 };
24746
- const _hoisted_4$r = {
24746
+ const _hoisted_4$q = {
24747
24747
  key: 0,
24748
24748
  class: "lupa-badge-full-text"
24749
24749
  };
@@ -24787,7 +24787,7 @@ and ensure you are accounting for this risk.
24787
24787
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
24788
24788
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24789
24789
  ]),
24790
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24790
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24791
24791
  ], 6);
24792
24792
  };
24793
24793
  }
@@ -25702,7 +25702,7 @@ and ensure you are accounting for this risk.
25702
25702
  key: 0,
25703
25703
  class: "lupa-panel-title lupa-panel-title-top-results"
25704
25704
  };
25705
- const _hoisted_4$q = {
25705
+ const _hoisted_4$p = {
25706
25706
  key: 1,
25707
25707
  class: "lupa-panel-title"
25708
25708
  };
@@ -25895,7 +25895,7 @@ and ensure you are accounting for this risk.
25895
25895
  "data-cy": "lupa-panel-" + panel.type + "-index"
25896
25896
  }, [
25897
25897
  ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
25898
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$q, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
25898
+ ((_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),
25899
25899
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
25900
25900
  key: 2,
25901
25901
  panel,
@@ -26393,7 +26393,7 @@ and ensure you are accounting for this risk.
26393
26393
  key: 1,
26394
26394
  "data-cy": "did-you-mean-label"
26395
26395
  };
26396
- const _hoisted_4$p = { key: 1 };
26396
+ const _hoisted_4$o = { key: 1 };
26397
26397
  const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26398
26398
  __name: "SearchResultsDidYouMean",
26399
26399
  props: {
@@ -26444,7 +26444,7 @@ and ensure you are accounting for this risk.
26444
26444
  class: "lupa-did-you-mean lupa-highlighted-search-text",
26445
26445
  "data-cy": "did-you-mean-value",
26446
26446
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
26447
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
26447
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
26448
26448
  ]);
26449
26449
  }), 128))
26450
26450
  ])) : createCommentVNode("", true)
@@ -26494,7 +26494,7 @@ and ensure you are accounting for this risk.
26494
26494
  key: 1,
26495
26495
  class: "lupa-results-total-count"
26496
26496
  };
26497
- const _hoisted_4$o = { class: "lupa-results-total-count-number" };
26497
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
26498
26498
  const _hoisted_5$g = ["innerHTML"];
26499
26499
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26500
26500
  __name: "SearchResultsTitle",
@@ -26544,7 +26544,7 @@ and ensure you are accounting for this risk.
26544
26544
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26545
26545
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
26546
26546
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
26547
- createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
26547
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
26548
26548
  createTextVNode(")")
26549
26549
  ])) : createCommentVNode("", true)
26550
26550
  ])) : createCommentVNode("", true),
@@ -26606,7 +26606,7 @@ and ensure you are accounting for this risk.
26606
26606
  key: 0,
26607
26607
  class: "filter-values"
26608
26608
  };
26609
- const _hoisted_4$n = { class: "lupa-current-filter-list" };
26609
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
26610
26610
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26611
26611
  __name: "CurrentFilters",
26612
26612
  props: {
@@ -26690,7 +26690,7 @@ and ensure you are accounting for this risk.
26690
26690
  }, null, 2)) : createCommentVNode("", true)
26691
26691
  ]),
26692
26692
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26693
- createBaseVNode("div", _hoisted_4$n, [
26693
+ createBaseVNode("div", _hoisted_4$m, [
26694
26694
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
26695
26695
  return openBlock(), createBlock(_sfc_main$_, {
26696
26696
  key: filter2.key + "_" + filter2.value,
@@ -26758,7 +26758,7 @@ and ensure you are accounting for this risk.
26758
26758
  };
26759
26759
  const _hoisted_2$D = { class: "lupa-category-back" };
26760
26760
  const _hoisted_3$u = ["href"];
26761
- const _hoisted_4$m = ["href"];
26761
+ const _hoisted_4$l = ["href"];
26762
26762
  const _hoisted_5$f = { class: "lupa-child-category-list" };
26763
26763
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
26764
26764
  __name: "CategoryFilter",
@@ -26865,7 +26865,7 @@ and ensure you are accounting for this risk.
26865
26865
  href: parentUrlLink.value,
26866
26866
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
26867
26867
  onClick: handleNavigationParent
26868
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
26868
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
26869
26869
  ], 2),
26870
26870
  createBaseVNode("div", _hoisted_5$f, [
26871
26871
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -26886,7 +26886,7 @@ and ensure you are accounting for this risk.
26886
26886
  };
26887
26887
  const _hoisted_2$C = ["placeholder"];
26888
26888
  const _hoisted_3$t = { class: "lupa-terms-list" };
26889
- const _hoisted_4$l = ["onClick"];
26889
+ const _hoisted_4$k = ["onClick"];
26890
26890
  const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
26891
26891
  const _hoisted_6$8 = { class: "lupa-term-label" };
26892
26892
  const _hoisted_7$6 = {
@@ -27013,7 +27013,7 @@ and ensure you are accounting for this risk.
27013
27013
  createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
27014
27014
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
27015
27015
  ], 2)
27016
- ], 10, _hoisted_4$l);
27016
+ ], 10, _hoisted_4$k);
27017
27017
  }), 128))
27018
27018
  ]),
27019
27019
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -28013,7 +28013,7 @@ and ensure you are accounting for this risk.
28013
28013
  key: 1,
28014
28014
  class: "lupa-stats-facet-summary-input"
28015
28015
  };
28016
- const _hoisted_4$k = {
28016
+ const _hoisted_4$j = {
28017
28017
  key: 0,
28018
28018
  class: "lupa-stats-range-label"
28019
28019
  };
@@ -28216,7 +28216,7 @@ and ensure you are accounting for this risk.
28216
28216
  return openBlock(), createElementBlock("div", _hoisted_1$P, [
28217
28217
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
28218
28218
  createBaseVNode("div", null, [
28219
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28219
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28220
28220
  createBaseVNode("div", _hoisted_5$d, [
28221
28221
  withDirectives(createBaseVNode("input", {
28222
28222
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -28286,7 +28286,7 @@ and ensure you are accounting for this risk.
28286
28286
  key: 0,
28287
28287
  class: "lupa-term-count"
28288
28288
  };
28289
- const _hoisted_4$j = {
28289
+ const _hoisted_4$i = {
28290
28290
  key: 0,
28291
28291
  class: "lupa-facet-level"
28292
28292
  };
@@ -28355,7 +28355,7 @@ and ensure you are accounting for this risk.
28355
28355
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28356
28356
  ], 2)
28357
28357
  ]),
28358
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
28358
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
28359
28359
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
28360
28360
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
28361
28361
  key: itemChild.title,
@@ -28888,7 +28888,7 @@ and ensure you are accounting for this risk.
28888
28888
  };
28889
28889
  const _hoisted_2$w = ["onClick"];
28890
28890
  const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
28891
- const _hoisted_4$i = { class: "lupa-sidebar-top" };
28891
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
28892
28892
  const _hoisted_5$c = { class: "lupa-sidebar-title" };
28893
28893
  const _hoisted_6$6 = {
28894
28894
  key: 0,
@@ -28932,7 +28932,7 @@ and ensure you are accounting for this risk.
28932
28932
  onClick: withModifiers(handleMobileToggle, ["stop"])
28933
28933
  }, null, 8, _hoisted_2$w),
28934
28934
  createBaseVNode("div", _hoisted_3$p, [
28935
- createBaseVNode("div", _hoisted_4$i, [
28935
+ createBaseVNode("div", _hoisted_4$h, [
28936
28936
  createBaseVNode("div", _hoisted_5$c, [
28937
28937
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
28938
28938
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -28960,7 +28960,7 @@ and ensure you are accounting for this risk.
28960
28960
  key: 1,
28961
28961
  class: "lupa-search-results-breadcrumb-text"
28962
28962
  };
28963
- const _hoisted_4$h = { key: 2 };
28963
+ const _hoisted_4$g = { key: 2 };
28964
28964
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
28965
28965
  __name: "SearchResultsBreadcrumbs",
28966
28966
  props: {
@@ -29002,7 +29002,7 @@ and ensure you are accounting for this risk.
29002
29002
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
29003
29003
  }
29004
29004
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
29005
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
29005
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
29006
29006
  ]);
29007
29007
  }), 128))
29008
29008
  ]);
@@ -29164,7 +29164,7 @@ and ensure you are accounting for this risk.
29164
29164
  class: "lupa-page-number-separator"
29165
29165
  };
29166
29166
  const _hoisted_3$n = ["onClick"];
29167
- const _hoisted_4$g = {
29167
+ const _hoisted_4$f = {
29168
29168
  key: 0,
29169
29169
  class: "lupa-page-number-separator"
29170
29170
  };
@@ -29270,7 +29270,7 @@ and ensure you are accounting for this risk.
29270
29270
  }, toDisplayString(page), 11, _hoisted_3$n);
29271
29271
  }), 128)),
29272
29272
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
29273
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
29273
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
29274
29274
  createBaseVNode("div", {
29275
29275
  class: "lupa-page-number lupa-page-number-last",
29276
29276
  onClick: _cache[2] || (_cache[2] = () => {
@@ -29295,7 +29295,7 @@ and ensure you are accounting for this risk.
29295
29295
  };
29296
29296
  const _hoisted_2$t = { id: "lupa-select" };
29297
29297
  const _hoisted_3$m = { class: "lupa-select-label" };
29298
- const _hoisted_4$f = ["aria-label"];
29298
+ const _hoisted_4$e = ["aria-label"];
29299
29299
  const _hoisted_5$b = ["value"];
29300
29300
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
29301
29301
  __name: "SearchResultsPageSize",
@@ -29342,7 +29342,7 @@ and ensure you are accounting for this risk.
29342
29342
  value: option
29343
29343
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
29344
29344
  }), 128))
29345
- ], 40, _hoisted_4$f)
29345
+ ], 40, _hoisted_4$e)
29346
29346
  ])
29347
29347
  ]);
29348
29348
  };
@@ -29354,7 +29354,7 @@ and ensure you are accounting for this risk.
29354
29354
  };
29355
29355
  const _hoisted_2$s = { id: "lupa-select" };
29356
29356
  const _hoisted_3$l = { class: "lupa-select-label" };
29357
- const _hoisted_4$e = ["aria-label"];
29357
+ const _hoisted_4$d = ["aria-label"];
29358
29358
  const _hoisted_5$a = ["value"];
29359
29359
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
29360
29360
  __name: "SearchResultsSort",
@@ -29422,7 +29422,7 @@ and ensure you are accounting for this risk.
29422
29422
  value: option.key
29423
29423
  }, toDisplayString(option.label), 9, _hoisted_5$a);
29424
29424
  }), 128))
29425
- ], 40, _hoisted_4$e), [
29425
+ ], 40, _hoisted_4$d), [
29426
29426
  [vModelSelect, selectedKey.value]
29427
29427
  ])
29428
29428
  ])
@@ -29436,7 +29436,7 @@ and ensure you are accounting for this risk.
29436
29436
  class: "lupa-toolbar-right-title"
29437
29437
  };
29438
29438
  const _hoisted_3$k = { key: 2 };
29439
- const _hoisted_4$d = { key: 4 };
29439
+ const _hoisted_4$c = { key: 4 };
29440
29440
  const _hoisted_5$9 = { key: 6 };
29441
29441
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
29442
29442
  const _hoisted_7$3 = {
@@ -29564,7 +29564,7 @@ and ensure you are accounting for this risk.
29564
29564
  label: searchSummaryLabel.value,
29565
29565
  clearable: unref(hasAnyFilter) && showFilterClear.value,
29566
29566
  onClear: handleClearAll
29567
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
29567
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
29568
29568
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
29569
29569
  key: 5,
29570
29570
  options: paginationOptions.value.pageSelect,
@@ -29617,7 +29617,7 @@ and ensure you are accounting for this risk.
29617
29617
  const _hoisted_1$y = ["title", "innerHTML"];
29618
29618
  const _hoisted_2$q = ["title"];
29619
29619
  const _hoisted_3$j = ["href", "innerHTML"];
29620
- const _hoisted_4$c = ["title"];
29620
+ const _hoisted_4$b = ["title"];
29621
29621
  const _hoisted_5$8 = {
29622
29622
  key: 0,
29623
29623
  class: "lupa-search-results-product-title-text"
@@ -29685,7 +29685,7 @@ and ensure you are accounting for this risk.
29685
29685
  class: "lupa-search-results-product-title-text lupa-title-link",
29686
29686
  onClick: handleNavigation
29687
29687
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
29688
- ], 12, _hoisted_4$c));
29688
+ ], 12, _hoisted_4$b));
29689
29689
  };
29690
29690
  }
29691
29691
  });
@@ -29728,7 +29728,7 @@ and ensure you are accounting for this risk.
29728
29728
  const _hoisted_1$w = { id: "lupa-search-results-rating" };
29729
29729
  const _hoisted_2$p = { class: "lupa-ratings" };
29730
29730
  const _hoisted_3$i = { class: "lupa-ratings-base" };
29731
- const _hoisted_4$b = ["innerHTML"];
29731
+ const _hoisted_4$a = ["innerHTML"];
29732
29732
  const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
29733
29733
  const _hoisted_6$3 = ["innerHTML"];
29734
29734
  const _hoisted_7$2 = ["href"];
@@ -29778,7 +29778,7 @@ and ensure you are accounting for this risk.
29778
29778
  key: index,
29779
29779
  innerHTML: star,
29780
29780
  class: "lupa-rating lupa-rating-not-highlighted"
29781
- }, null, 8, _hoisted_4$b);
29781
+ }, null, 8, _hoisted_4$a);
29782
29782
  }), 128))
29783
29783
  ]),
29784
29784
  createBaseVNode("div", _hoisted_5$7, [
@@ -29865,7 +29865,7 @@ and ensure you are accounting for this risk.
29865
29865
  const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
29866
29866
  const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
29867
29867
  const _hoisted_3$h = ["disabled"];
29868
- const _hoisted_4$a = ["href"];
29868
+ const _hoisted_4$9 = ["href"];
29869
29869
  const _hoisted_5$6 = ["id", "disabled", "onClick"];
29870
29870
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
29871
29871
  __name: "SearchResultsProductAddToCart",
@@ -29884,6 +29884,8 @@ and ensure you are accounting for this risk.
29884
29884
  return (_a = props.inStock) != null ? _a : true;
29885
29885
  });
29886
29886
  const searchResultStore = useSearchResultStore();
29887
+ const optionsStore = useOptionsStore();
29888
+ const { searchResultOptions } = storeToRefs(optionsStore);
29887
29889
  const { addToCartAmount } = storeToRefs(searchResultStore);
29888
29890
  const loading = ref(false);
29889
29891
  const label = computed(() => {
@@ -29894,7 +29896,16 @@ and ensure you are accounting for this risk.
29894
29896
  const id2 = (_a = props.item.id) != null ? _a : "";
29895
29897
  return `lupa-add-to-cart-${id2}`;
29896
29898
  });
29897
- const handleClick = () => __async2(this, null, function* () {
29899
+ const productCardIsClickable = computed(() => {
29900
+ return searchResultOptions.value.isLink;
29901
+ });
29902
+ const hasLink = computed(() => {
29903
+ return Boolean(props.link && props.options.link);
29904
+ });
29905
+ const handleClick = (e2) => __async2(this, null, function* () {
29906
+ if (productCardIsClickable.value && !hasLink.value) {
29907
+ e2.preventDefault();
29908
+ }
29898
29909
  loading.value = true;
29899
29910
  if (props.options.emitEvent) {
29900
29911
  const event = new CustomEvent(props.options.emitEvent, { detail: { item: props.item } });
@@ -29906,9 +29917,6 @@ and ensure you are accounting for this risk.
29906
29917
  emit2("productEvent", { type: "addToCart" });
29907
29918
  loading.value = false;
29908
29919
  });
29909
- const hasLink = computed(() => {
29910
- return Boolean(props.link && props.options.link);
29911
- });
29912
29920
  return (_ctx, _cache) => {
29913
29921
  return openBlock(), createElementBlock("div", _hoisted_1$u, [
29914
29922
  createBaseVNode("div", _hoisted_2$o, [
@@ -29918,7 +29926,7 @@ and ensure you are accounting for this risk.
29918
29926
  "data-cy": "lupa-add-to-cart",
29919
29927
  disabled: !inStockValue.value || loading.value
29920
29928
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
29921
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
29929
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
29922
29930
  ], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
29923
29931
  key: 1,
29924
29932
  id: id.value,
@@ -29936,7 +29944,7 @@ and ensure you are accounting for this risk.
29936
29944
  const _hoisted_1$t = ["innerHTML"];
29937
29945
  const _hoisted_2$n = { key: 0 };
29938
29946
  const _hoisted_3$g = { key: 1 };
29939
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
29947
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
29940
29948
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
29941
29949
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
29942
29950
  __name: "SearchResultsProductCustom",
@@ -29981,7 +29989,7 @@ and ensure you are accounting for this risk.
29981
29989
  class: className.value
29982
29990
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
29983
29991
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
29984
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
29992
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
29985
29993
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
29986
29994
  ]))
29987
29995
  ], 16));
@@ -30027,7 +30035,7 @@ and ensure you are accounting for this risk.
30027
30035
  const _hoisted_1$r = { id: "lupa-search-results-rating" };
30028
30036
  const _hoisted_2$m = ["innerHTML"];
30029
30037
  const _hoisted_3$f = { class: "lupa-ratings" };
30030
- const _hoisted_4$8 = ["href"];
30038
+ const _hoisted_4$7 = ["href"];
30031
30039
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
30032
30040
  __name: "SearchResultsProductSingleStarRating",
30033
30041
  props: {
@@ -30065,7 +30073,7 @@ and ensure you are accounting for this risk.
30065
30073
  createBaseVNode("a", {
30066
30074
  href: ratingLink.value,
30067
30075
  class: "lupa-total-ratings"
30068
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
30076
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
30069
30077
  ]);
30070
30078
  };
30071
30079
  }
@@ -30166,13 +30174,12 @@ and ensure you are accounting for this risk.
30166
30174
  };
30167
30175
  }
30168
30176
  }));
30169
- const _hoisted_1$q = ["onMouseup"];
30170
- const _hoisted_2$l = ["href"];
30171
- const _hoisted_3$e = {
30177
+ const _hoisted_1$q = ["href"];
30178
+ const _hoisted_2$l = {
30172
30179
  key: 0,
30173
30180
  class: "lupa-out-of-stock"
30174
30181
  };
30175
- const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
30182
+ const _hoisted_3$e = { class: "lupa-search-result-product-details-section" };
30176
30183
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
30177
30184
  __name: "SearchResultsProductCard",
30178
30185
  props: {
@@ -30201,6 +30208,9 @@ and ensure you are accounting for this risk.
30201
30208
  const listLayoutClass = computed(() => {
30202
30209
  return layout.value === ResultsLayoutEnum.LIST && !props.isAdditionalPanel ? "lupa-search-result-product-contents-list" : "";
30203
30210
  });
30211
+ const useLinkWrapper = computed(() => {
30212
+ return props.options.isLink;
30213
+ });
30204
30214
  const badgesOptions = computed(() => {
30205
30215
  return __spreadProps2(__spreadValues2({}, props.options.badges), { product: props.product });
30206
30216
  });
@@ -30329,78 +30339,84 @@ and ensure you are accounting for this risk.
30329
30339
  checkIfIsInStock();
30330
30340
  }
30331
30341
  return (_ctx, _cache) => {
30332
- var _a;
30333
- return openBlock(), createElementBlock("div", mergeProps({
30342
+ return openBlock(), createBlock(resolveDynamicComponent(useLinkWrapper.value ? "a" : "div"), mergeProps({
30343
+ href: useLinkWrapper.value ? link.value : null,
30334
30344
  id: "lupa-search-result-product-card",
30335
30345
  "data-cy": "lupa-search-result-product-card",
30336
30346
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
30337
30347
  }, customDocumentHtmlAttributes.value, {
30338
30348
  onClick: handleClick,
30339
30349
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
30340
- }), [
30341
- createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30342
- createBaseVNode("div", {
30343
- class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30344
- }, [
30345
- createBaseVNode("a", {
30346
- class: "lupa-search-result-product-image-section",
30347
- href: link.value,
30348
- onClick: handleNavigation
30349
- }, [
30350
- (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30351
- return openBlock(), createBlock(_sfc_main$t, {
30352
- class: "lupa-search-results-product-element",
30353
- item: _ctx.product,
30354
- element,
30355
- key: element.key,
30356
- labels: labels.value,
30357
- inStock: isInStock.value,
30358
- link: link.value,
30359
- onProductEvent: handleProductEvent
30360
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30361
- }), 128)),
30362
- createVNode(_sfc_main$19, {
30363
- options: badgesOptions.value,
30364
- position: "image",
30365
- class: "lupa-image-badges"
30366
- }, null, 8, ["options"]),
30367
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30368
- ], 8, _hoisted_2$l),
30369
- createBaseVNode("div", _hoisted_4$7, [
30370
- (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30371
- return openBlock(), createBlock(_sfc_main$t, {
30372
- class: "lupa-search-results-product-element",
30373
- item: _ctx.product,
30374
- element,
30375
- key: element.key,
30376
- labels: labels.value,
30377
- inStock: isInStock.value,
30378
- link: link.value,
30379
- onProductEvent: handleProductEvent
30380
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30381
- }), 128))
30382
- ]),
30383
- (openBlock(true), createElementBlock(Fragment, null, renderList(elementGroups.value, (group) => {
30384
- return openBlock(), createElementBlock("div", {
30385
- key: group,
30386
- class: normalizeClass("lupa-element-group-" + group)
30350
+ }), {
30351
+ default: withCtx(() => {
30352
+ var _a;
30353
+ return [
30354
+ createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30355
+ createBaseVNode("div", {
30356
+ class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30387
30357
  }, [
30388
- (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30389
- return openBlock(), createBlock(_sfc_main$t, {
30390
- class: "lupa-search-results-product-element",
30391
- item: _ctx.product,
30392
- element,
30393
- key: element.key,
30394
- labels: labels.value,
30395
- inStock: isInStock.value,
30396
- link: link.value,
30397
- onProductEvent: handleProductEvent
30398
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30358
+ createBaseVNode("a", {
30359
+ class: "lupa-search-result-product-image-section",
30360
+ href: link.value,
30361
+ onClick: handleNavigation
30362
+ }, [
30363
+ (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30364
+ return openBlock(), createBlock(_sfc_main$t, {
30365
+ class: "lupa-search-results-product-element",
30366
+ item: _ctx.product,
30367
+ element,
30368
+ key: element.key,
30369
+ labels: labels.value,
30370
+ inStock: isInStock.value,
30371
+ link: link.value,
30372
+ onProductEvent: handleProductEvent
30373
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30374
+ }), 128)),
30375
+ createVNode(_sfc_main$19, {
30376
+ options: badgesOptions.value,
30377
+ position: "image",
30378
+ class: "lupa-image-badges"
30379
+ }, null, 8, ["options"]),
30380
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30381
+ ], 8, _hoisted_1$q),
30382
+ createBaseVNode("div", _hoisted_3$e, [
30383
+ (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30384
+ return openBlock(), createBlock(_sfc_main$t, {
30385
+ class: "lupa-search-results-product-element",
30386
+ item: _ctx.product,
30387
+ element,
30388
+ key: element.key,
30389
+ labels: labels.value,
30390
+ inStock: isInStock.value,
30391
+ link: link.value,
30392
+ onProductEvent: handleProductEvent
30393
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30394
+ }), 128))
30395
+ ]),
30396
+ (openBlock(true), createElementBlock(Fragment, null, renderList(elementGroups.value, (group) => {
30397
+ return openBlock(), createElementBlock("div", {
30398
+ key: group,
30399
+ class: normalizeClass("lupa-element-group-" + group)
30400
+ }, [
30401
+ (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30402
+ return openBlock(), createBlock(_sfc_main$t, {
30403
+ class: "lupa-search-results-product-element",
30404
+ item: _ctx.product,
30405
+ element,
30406
+ key: element.key,
30407
+ labels: labels.value,
30408
+ inStock: isInStock.value,
30409
+ link: link.value,
30410
+ onProductEvent: handleProductEvent
30411
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30412
+ }), 128))
30413
+ ], 2);
30399
30414
  }), 128))
30400
- ], 2);
30401
- }), 128))
30402
- ], 2)
30403
- ], 16, _hoisted_1$q);
30415
+ ], 2)
30416
+ ];
30417
+ }),
30418
+ _: 1
30419
+ }, 16, ["href", "class", "onMouseup"]);
30404
30420
  };
30405
30421
  }
30406
30422
  });
@@ -31333,6 +31349,7 @@ and ensure you are accounting for this risk.
31333
31349
  "queryKey",
31334
31350
  "idKey",
31335
31351
  "titleKey",
31352
+ "isLink",
31336
31353
  "routingBehavior",
31337
31354
  "customDocumentHtmlAttributes"
31338
31355
  ]);