@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.
@@ -14317,7 +14317,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
14317
14317
  const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
14318
14318
  const _hoisted_2$V = { class: "lupa-input-clear" };
14319
14319
  const _hoisted_3$E = { id: "lupa-search-box-input" };
14320
- const _hoisted_4$v = ["value"];
14320
+ const _hoisted_4$u = ["value"];
14321
14321
  const _hoisted_5$l = ["aria-label", "placeholder"];
14322
14322
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
14323
14323
  const _hoisted_7$7 = [
@@ -14424,7 +14424,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
14424
14424
  "aria-hidden": "true",
14425
14425
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
14426
14426
  disabled: ""
14427
- }, null, 8, _hoisted_4$v),
14427
+ }, null, 8, _hoisted_4$u),
14428
14428
  withDirectives(createBaseVNode("input", mergeProps({
14429
14429
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
14430
14430
  }, inputAttributes.value, {
@@ -14650,7 +14650,7 @@ const _hoisted_3$D = {
14650
14650
  class: "lupa-suggestion-facet",
14651
14651
  "data-cy": "lupa-suggestion-facet"
14652
14652
  };
14653
- const _hoisted_4$u = {
14653
+ const _hoisted_4$t = {
14654
14654
  class: "lupa-suggestion-facet-label",
14655
14655
  "data-cy": "lupa-suggestion-facet-label"
14656
14656
  };
@@ -14696,7 +14696,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14696
14696
  innerHTML: _ctx.suggestion.displayHighlight
14697
14697
  }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
14698
14698
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
14699
- createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
14699
+ createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
14700
14700
  createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
14701
14701
  ])) : createCommentVNode("", true)
14702
14702
  ]);
@@ -24190,7 +24190,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24190
24190
  const _hoisted_1$1a = ["innerHTML"];
24191
24191
  const _hoisted_2$P = { key: 0 };
24192
24192
  const _hoisted_3$C = { key: 1 };
24193
- const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
24193
+ const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
24194
24194
  const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
24195
24195
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24196
24196
  __name: "SearchBoxProductCustom",
@@ -24223,7 +24223,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24223
24223
  class: [className.value, "lupa-search-box-product-custom"]
24224
24224
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24225
24225
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
24226
- createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
24226
+ createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
24227
24227
  createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
24228
24228
  ]))
24229
24229
  ], 16));
@@ -24573,7 +24573,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
24573
24573
  const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
24574
24574
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
24575
24575
  const _hoisted_3$B = ["disabled"];
24576
- const _hoisted_4$s = ["href"];
24576
+ const _hoisted_4$r = ["href"];
24577
24577
  const _hoisted_5$i = ["onClick", "disabled"];
24578
24578
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24579
24579
  __name: "SearchBoxProductAddToCart",
@@ -24621,7 +24621,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24621
24621
  "data-cy": "lupa-add-to-cart",
24622
24622
  disabled: !inStockValue.value || loading.value
24623
24623
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24624
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
24624
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
24625
24625
  ], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
24626
24626
  key: 1,
24627
24627
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -24741,7 +24741,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
24741
24741
  const _hoisted_1$16 = { class: "lupa-badge-title" };
24742
24742
  const _hoisted_2$N = ["src"];
24743
24743
  const _hoisted_3$A = { key: 1 };
24744
- const _hoisted_4$r = {
24744
+ const _hoisted_4$q = {
24745
24745
  key: 0,
24746
24746
  class: "lupa-badge-full-text"
24747
24747
  };
@@ -24785,7 +24785,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24785
24785
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
24786
24786
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24787
24787
  ]),
24788
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24788
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24789
24789
  ], 6);
24790
24790
  };
24791
24791
  }
@@ -25700,7 +25700,7 @@ const _hoisted_3$y = {
25700
25700
  key: 0,
25701
25701
  class: "lupa-panel-title lupa-panel-title-top-results"
25702
25702
  };
25703
- const _hoisted_4$q = {
25703
+ const _hoisted_4$p = {
25704
25704
  key: 1,
25705
25705
  class: "lupa-panel-title"
25706
25706
  };
@@ -25893,7 +25893,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25893
25893
  "data-cy": "lupa-panel-" + panel.type + "-index"
25894
25894
  }, [
25895
25895
  ((_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),
25896
- ((_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),
25896
+ ((_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),
25897
25897
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
25898
25898
  key: 2,
25899
25899
  panel,
@@ -26391,7 +26391,7 @@ const _hoisted_3$x = {
26391
26391
  key: 1,
26392
26392
  "data-cy": "did-you-mean-label"
26393
26393
  };
26394
- const _hoisted_4$p = { key: 1 };
26394
+ const _hoisted_4$o = { key: 1 };
26395
26395
  const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26396
26396
  __name: "SearchResultsDidYouMean",
26397
26397
  props: {
@@ -26442,7 +26442,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26442
26442
  class: "lupa-did-you-mean lupa-highlighted-search-text",
26443
26443
  "data-cy": "did-you-mean-value",
26444
26444
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
26445
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
26445
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
26446
26446
  ]);
26447
26447
  }), 128))
26448
26448
  ])) : createCommentVNode("", true)
@@ -26492,7 +26492,7 @@ const _hoisted_3$w = {
26492
26492
  key: 1,
26493
26493
  class: "lupa-results-total-count"
26494
26494
  };
26495
- const _hoisted_4$o = { class: "lupa-results-total-count-number" };
26495
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
26496
26496
  const _hoisted_5$g = ["innerHTML"];
26497
26497
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26498
26498
  __name: "SearchResultsTitle",
@@ -26542,7 +26542,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26542
26542
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26543
26543
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
26544
26544
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
26545
- createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
26545
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
26546
26546
  createTextVNode(")")
26547
26547
  ])) : createCommentVNode("", true)
26548
26548
  ])) : createCommentVNode("", true),
@@ -26604,7 +26604,7 @@ const _hoisted_3$v = {
26604
26604
  key: 0,
26605
26605
  class: "filter-values"
26606
26606
  };
26607
- const _hoisted_4$n = { class: "lupa-current-filter-list" };
26607
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
26608
26608
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26609
26609
  __name: "CurrentFilters",
26610
26610
  props: {
@@ -26688,7 +26688,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26688
26688
  }, null, 2)) : createCommentVNode("", true)
26689
26689
  ]),
26690
26690
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26691
- createBaseVNode("div", _hoisted_4$n, [
26691
+ createBaseVNode("div", _hoisted_4$m, [
26692
26692
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
26693
26693
  return openBlock(), createBlock(_sfc_main$_, {
26694
26694
  key: filter2.key + "_" + filter2.value,
@@ -26756,7 +26756,7 @@ const _hoisted_1$R = {
26756
26756
  };
26757
26757
  const _hoisted_2$D = { class: "lupa-category-back" };
26758
26758
  const _hoisted_3$u = ["href"];
26759
- const _hoisted_4$m = ["href"];
26759
+ const _hoisted_4$l = ["href"];
26760
26760
  const _hoisted_5$f = { class: "lupa-child-category-list" };
26761
26761
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
26762
26762
  __name: "CategoryFilter",
@@ -26863,7 +26863,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26863
26863
  href: parentUrlLink.value,
26864
26864
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
26865
26865
  onClick: handleNavigationParent
26866
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
26866
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
26867
26867
  ], 2),
26868
26868
  createBaseVNode("div", _hoisted_5$f, [
26869
26869
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -26884,7 +26884,7 @@ const _hoisted_1$Q = {
26884
26884
  };
26885
26885
  const _hoisted_2$C = ["placeholder"];
26886
26886
  const _hoisted_3$t = { class: "lupa-terms-list" };
26887
- const _hoisted_4$l = ["onClick"];
26887
+ const _hoisted_4$k = ["onClick"];
26888
26888
  const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
26889
26889
  const _hoisted_6$8 = { class: "lupa-term-label" };
26890
26890
  const _hoisted_7$6 = {
@@ -27011,7 +27011,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
27011
27011
  createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
27012
27012
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
27013
27013
  ], 2)
27014
- ], 10, _hoisted_4$l);
27014
+ ], 10, _hoisted_4$k);
27015
27015
  }), 128))
27016
27016
  ]),
27017
27017
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -28011,7 +28011,7 @@ const _hoisted_3$s = {
28011
28011
  key: 1,
28012
28012
  class: "lupa-stats-facet-summary-input"
28013
28013
  };
28014
- const _hoisted_4$k = {
28014
+ const _hoisted_4$j = {
28015
28015
  key: 0,
28016
28016
  class: "lupa-stats-range-label"
28017
28017
  };
@@ -28214,7 +28214,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
28214
28214
  return openBlock(), createElementBlock("div", _hoisted_1$P, [
28215
28215
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
28216
28216
  createBaseVNode("div", null, [
28217
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28217
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28218
28218
  createBaseVNode("div", _hoisted_5$d, [
28219
28219
  withDirectives(createBaseVNode("input", {
28220
28220
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -28284,7 +28284,7 @@ const _hoisted_3$r = {
28284
28284
  key: 0,
28285
28285
  class: "lupa-term-count"
28286
28286
  };
28287
- const _hoisted_4$j = {
28287
+ const _hoisted_4$i = {
28288
28288
  key: 0,
28289
28289
  class: "lupa-facet-level"
28290
28290
  };
@@ -28353,7 +28353,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
28353
28353
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28354
28354
  ], 2)
28355
28355
  ]),
28356
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
28356
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
28357
28357
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
28358
28358
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
28359
28359
  key: itemChild.title,
@@ -28886,7 +28886,7 @@ const _hoisted_1$H = {
28886
28886
  };
28887
28887
  const _hoisted_2$w = ["onClick"];
28888
28888
  const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
28889
- const _hoisted_4$i = { class: "lupa-sidebar-top" };
28889
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
28890
28890
  const _hoisted_5$c = { class: "lupa-sidebar-title" };
28891
28891
  const _hoisted_6$6 = {
28892
28892
  key: 0,
@@ -28930,7 +28930,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28930
28930
  onClick: withModifiers(handleMobileToggle, ["stop"])
28931
28931
  }, null, 8, _hoisted_2$w),
28932
28932
  createBaseVNode("div", _hoisted_3$p, [
28933
- createBaseVNode("div", _hoisted_4$i, [
28933
+ createBaseVNode("div", _hoisted_4$h, [
28934
28934
  createBaseVNode("div", _hoisted_5$c, [
28935
28935
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
28936
28936
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -28958,7 +28958,7 @@ const _hoisted_3$o = {
28958
28958
  key: 1,
28959
28959
  class: "lupa-search-results-breadcrumb-text"
28960
28960
  };
28961
- const _hoisted_4$h = { key: 2 };
28961
+ const _hoisted_4$g = { key: 2 };
28962
28962
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
28963
28963
  __name: "SearchResultsBreadcrumbs",
28964
28964
  props: {
@@ -29000,7 +29000,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
29000
29000
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
29001
29001
  }
29002
29002
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
29003
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
29003
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
29004
29004
  ]);
29005
29005
  }), 128))
29006
29006
  ]);
@@ -29162,7 +29162,7 @@ const _hoisted_2$u = {
29162
29162
  class: "lupa-page-number-separator"
29163
29163
  };
29164
29164
  const _hoisted_3$n = ["onClick"];
29165
- const _hoisted_4$g = {
29165
+ const _hoisted_4$f = {
29166
29166
  key: 0,
29167
29167
  class: "lupa-page-number-separator"
29168
29168
  };
@@ -29268,7 +29268,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
29268
29268
  }, toDisplayString(page), 11, _hoisted_3$n);
29269
29269
  }), 128)),
29270
29270
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
29271
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
29271
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
29272
29272
  createBaseVNode("div", {
29273
29273
  class: "lupa-page-number lupa-page-number-last",
29274
29274
  onClick: _cache[2] || (_cache[2] = () => {
@@ -29293,7 +29293,7 @@ const _hoisted_1$B = {
29293
29293
  };
29294
29294
  const _hoisted_2$t = { id: "lupa-select" };
29295
29295
  const _hoisted_3$m = { class: "lupa-select-label" };
29296
- const _hoisted_4$f = ["aria-label"];
29296
+ const _hoisted_4$e = ["aria-label"];
29297
29297
  const _hoisted_5$b = ["value"];
29298
29298
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
29299
29299
  __name: "SearchResultsPageSize",
@@ -29340,7 +29340,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
29340
29340
  value: option
29341
29341
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
29342
29342
  }), 128))
29343
- ], 40, _hoisted_4$f)
29343
+ ], 40, _hoisted_4$e)
29344
29344
  ])
29345
29345
  ]);
29346
29346
  };
@@ -29352,7 +29352,7 @@ const _hoisted_1$A = {
29352
29352
  };
29353
29353
  const _hoisted_2$s = { id: "lupa-select" };
29354
29354
  const _hoisted_3$l = { class: "lupa-select-label" };
29355
- const _hoisted_4$e = ["aria-label"];
29355
+ const _hoisted_4$d = ["aria-label"];
29356
29356
  const _hoisted_5$a = ["value"];
29357
29357
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
29358
29358
  __name: "SearchResultsSort",
@@ -29420,7 +29420,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29420
29420
  value: option.key
29421
29421
  }, toDisplayString(option.label), 9, _hoisted_5$a);
29422
29422
  }), 128))
29423
- ], 40, _hoisted_4$e), [
29423
+ ], 40, _hoisted_4$d), [
29424
29424
  [vModelSelect, selectedKey.value]
29425
29425
  ])
29426
29426
  ])
@@ -29434,7 +29434,7 @@ const _hoisted_2$r = {
29434
29434
  class: "lupa-toolbar-right-title"
29435
29435
  };
29436
29436
  const _hoisted_3$k = { key: 2 };
29437
- const _hoisted_4$d = { key: 4 };
29437
+ const _hoisted_4$c = { key: 4 };
29438
29438
  const _hoisted_5$9 = { key: 6 };
29439
29439
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
29440
29440
  const _hoisted_7$3 = {
@@ -29562,7 +29562,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29562
29562
  label: searchSummaryLabel.value,
29563
29563
  clearable: unref(hasAnyFilter) && showFilterClear.value,
29564
29564
  onClear: handleClearAll
29565
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
29565
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
29566
29566
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
29567
29567
  key: 5,
29568
29568
  options: paginationOptions.value.pageSelect,
@@ -29615,7 +29615,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29615
29615
  const _hoisted_1$y = ["title", "innerHTML"];
29616
29616
  const _hoisted_2$q = ["title"];
29617
29617
  const _hoisted_3$j = ["href", "innerHTML"];
29618
- const _hoisted_4$c = ["title"];
29618
+ const _hoisted_4$b = ["title"];
29619
29619
  const _hoisted_5$8 = {
29620
29620
  key: 0,
29621
29621
  class: "lupa-search-results-product-title-text"
@@ -29683,7 +29683,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29683
29683
  class: "lupa-search-results-product-title-text lupa-title-link",
29684
29684
  onClick: handleNavigation
29685
29685
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
29686
- ], 12, _hoisted_4$c));
29686
+ ], 12, _hoisted_4$b));
29687
29687
  };
29688
29688
  }
29689
29689
  });
@@ -29726,7 +29726,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29726
29726
  const _hoisted_1$w = { id: "lupa-search-results-rating" };
29727
29727
  const _hoisted_2$p = { class: "lupa-ratings" };
29728
29728
  const _hoisted_3$i = { class: "lupa-ratings-base" };
29729
- const _hoisted_4$b = ["innerHTML"];
29729
+ const _hoisted_4$a = ["innerHTML"];
29730
29730
  const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
29731
29731
  const _hoisted_6$3 = ["innerHTML"];
29732
29732
  const _hoisted_7$2 = ["href"];
@@ -29776,7 +29776,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29776
29776
  key: index,
29777
29777
  innerHTML: star,
29778
29778
  class: "lupa-rating lupa-rating-not-highlighted"
29779
- }, null, 8, _hoisted_4$b);
29779
+ }, null, 8, _hoisted_4$a);
29780
29780
  }), 128))
29781
29781
  ]),
29782
29782
  createBaseVNode("div", _hoisted_5$7, [
@@ -29863,7 +29863,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29863
29863
  const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
29864
29864
  const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
29865
29865
  const _hoisted_3$h = ["disabled"];
29866
- const _hoisted_4$a = ["href"];
29866
+ const _hoisted_4$9 = ["href"];
29867
29867
  const _hoisted_5$6 = ["id", "disabled", "onClick"];
29868
29868
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
29869
29869
  __name: "SearchResultsProductAddToCart",
@@ -29882,6 +29882,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29882
29882
  return (_a = props.inStock) != null ? _a : true;
29883
29883
  });
29884
29884
  const searchResultStore = useSearchResultStore();
29885
+ const optionsStore = useOptionsStore();
29886
+ const { searchResultOptions } = storeToRefs(optionsStore);
29885
29887
  const { addToCartAmount } = storeToRefs(searchResultStore);
29886
29888
  const loading = ref(false);
29887
29889
  const label = computed(() => {
@@ -29892,7 +29894,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29892
29894
  const id2 = (_a = props.item.id) != null ? _a : "";
29893
29895
  return `lupa-add-to-cart-${id2}`;
29894
29896
  });
29895
- const handleClick = () => __async2(this, null, function* () {
29897
+ const productCardIsClickable = computed(() => {
29898
+ return searchResultOptions.value.isLink;
29899
+ });
29900
+ const hasLink = computed(() => {
29901
+ return Boolean(props.link && props.options.link);
29902
+ });
29903
+ const handleClick = (e2) => __async2(this, null, function* () {
29904
+ if (productCardIsClickable.value && !hasLink.value) {
29905
+ e2.preventDefault();
29906
+ }
29896
29907
  loading.value = true;
29897
29908
  if (props.options.emitEvent) {
29898
29909
  const event = new CustomEvent(props.options.emitEvent, { detail: { item: props.item } });
@@ -29904,9 +29915,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29904
29915
  emit2("productEvent", { type: "addToCart" });
29905
29916
  loading.value = false;
29906
29917
  });
29907
- const hasLink = computed(() => {
29908
- return Boolean(props.link && props.options.link);
29909
- });
29910
29918
  return (_ctx, _cache) => {
29911
29919
  return openBlock(), createElementBlock("div", _hoisted_1$u, [
29912
29920
  createBaseVNode("div", _hoisted_2$o, [
@@ -29916,7 +29924,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29916
29924
  "data-cy": "lupa-add-to-cart",
29917
29925
  disabled: !inStockValue.value || loading.value
29918
29926
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
29919
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
29927
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
29920
29928
  ], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
29921
29929
  key: 1,
29922
29930
  id: id.value,
@@ -29934,7 +29942,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29934
29942
  const _hoisted_1$t = ["innerHTML"];
29935
29943
  const _hoisted_2$n = { key: 0 };
29936
29944
  const _hoisted_3$g = { key: 1 };
29937
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
29945
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
29938
29946
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
29939
29947
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
29940
29948
  __name: "SearchResultsProductCustom",
@@ -29979,7 +29987,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
29979
29987
  class: className.value
29980
29988
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
29981
29989
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
29982
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
29990
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
29983
29991
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
29984
29992
  ]))
29985
29993
  ], 16));
@@ -30025,7 +30033,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
30025
30033
  const _hoisted_1$r = { id: "lupa-search-results-rating" };
30026
30034
  const _hoisted_2$m = ["innerHTML"];
30027
30035
  const _hoisted_3$f = { class: "lupa-ratings" };
30028
- const _hoisted_4$8 = ["href"];
30036
+ const _hoisted_4$7 = ["href"];
30029
30037
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
30030
30038
  __name: "SearchResultsProductSingleStarRating",
30031
30039
  props: {
@@ -30063,7 +30071,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
30063
30071
  createBaseVNode("a", {
30064
30072
  href: ratingLink.value,
30065
30073
  class: "lupa-total-ratings"
30066
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
30074
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
30067
30075
  ]);
30068
30076
  };
30069
30077
  }
@@ -30164,13 +30172,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
30164
30172
  };
30165
30173
  }
30166
30174
  }));
30167
- const _hoisted_1$q = ["onMouseup"];
30168
- const _hoisted_2$l = ["href"];
30169
- const _hoisted_3$e = {
30175
+ const _hoisted_1$q = ["href"];
30176
+ const _hoisted_2$l = {
30170
30177
  key: 0,
30171
30178
  class: "lupa-out-of-stock"
30172
30179
  };
30173
- const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
30180
+ const _hoisted_3$e = { class: "lupa-search-result-product-details-section" };
30174
30181
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
30175
30182
  __name: "SearchResultsProductCard",
30176
30183
  props: {
@@ -30199,6 +30206,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30199
30206
  const listLayoutClass = computed(() => {
30200
30207
  return layout.value === ResultsLayoutEnum.LIST && !props.isAdditionalPanel ? "lupa-search-result-product-contents-list" : "";
30201
30208
  });
30209
+ const useLinkWrapper = computed(() => {
30210
+ return props.options.isLink;
30211
+ });
30202
30212
  const badgesOptions = computed(() => {
30203
30213
  return __spreadProps2(__spreadValues2({}, props.options.badges), { product: props.product });
30204
30214
  });
@@ -30327,78 +30337,84 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30327
30337
  checkIfIsInStock();
30328
30338
  }
30329
30339
  return (_ctx, _cache) => {
30330
- var _a;
30331
- return openBlock(), createElementBlock("div", mergeProps({
30340
+ return openBlock(), createBlock(resolveDynamicComponent(useLinkWrapper.value ? "a" : "div"), mergeProps({
30341
+ href: useLinkWrapper.value ? link.value : null,
30332
30342
  id: "lupa-search-result-product-card",
30333
30343
  "data-cy": "lupa-search-result-product-card",
30334
30344
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
30335
30345
  }, customDocumentHtmlAttributes.value, {
30336
30346
  onClick: handleClick,
30337
30347
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
30338
- }), [
30339
- createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30340
- createBaseVNode("div", {
30341
- class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30342
- }, [
30343
- createBaseVNode("a", {
30344
- class: "lupa-search-result-product-image-section",
30345
- href: link.value,
30346
- onClick: handleNavigation
30347
- }, [
30348
- (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30349
- return openBlock(), createBlock(_sfc_main$t, {
30350
- class: "lupa-search-results-product-element",
30351
- item: _ctx.product,
30352
- element,
30353
- key: element.key,
30354
- labels: labels.value,
30355
- inStock: isInStock.value,
30356
- link: link.value,
30357
- onProductEvent: handleProductEvent
30358
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30359
- }), 128)),
30360
- createVNode(_sfc_main$19, {
30361
- options: badgesOptions.value,
30362
- position: "image",
30363
- class: "lupa-image-badges"
30364
- }, null, 8, ["options"]),
30365
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30366
- ], 8, _hoisted_2$l),
30367
- createBaseVNode("div", _hoisted_4$7, [
30368
- (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30369
- return openBlock(), createBlock(_sfc_main$t, {
30370
- class: "lupa-search-results-product-element",
30371
- item: _ctx.product,
30372
- element,
30373
- key: element.key,
30374
- labels: labels.value,
30375
- inStock: isInStock.value,
30376
- link: link.value,
30377
- onProductEvent: handleProductEvent
30378
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30379
- }), 128))
30380
- ]),
30381
- (openBlock(true), createElementBlock(Fragment, null, renderList(elementGroups.value, (group) => {
30382
- return openBlock(), createElementBlock("div", {
30383
- key: group,
30384
- class: normalizeClass("lupa-element-group-" + group)
30348
+ }), {
30349
+ default: withCtx(() => {
30350
+ var _a;
30351
+ return [
30352
+ createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30353
+ createBaseVNode("div", {
30354
+ class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30385
30355
  }, [
30386
- (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30387
- return openBlock(), createBlock(_sfc_main$t, {
30388
- class: "lupa-search-results-product-element",
30389
- item: _ctx.product,
30390
- element,
30391
- key: element.key,
30392
- labels: labels.value,
30393
- inStock: isInStock.value,
30394
- link: link.value,
30395
- onProductEvent: handleProductEvent
30396
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30356
+ createBaseVNode("a", {
30357
+ class: "lupa-search-result-product-image-section",
30358
+ href: link.value,
30359
+ onClick: handleNavigation
30360
+ }, [
30361
+ (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30362
+ return openBlock(), createBlock(_sfc_main$t, {
30363
+ class: "lupa-search-results-product-element",
30364
+ item: _ctx.product,
30365
+ element,
30366
+ key: element.key,
30367
+ labels: labels.value,
30368
+ inStock: isInStock.value,
30369
+ link: link.value,
30370
+ onProductEvent: handleProductEvent
30371
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30372
+ }), 128)),
30373
+ createVNode(_sfc_main$19, {
30374
+ options: badgesOptions.value,
30375
+ position: "image",
30376
+ class: "lupa-image-badges"
30377
+ }, null, 8, ["options"]),
30378
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30379
+ ], 8, _hoisted_1$q),
30380
+ createBaseVNode("div", _hoisted_3$e, [
30381
+ (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30382
+ return openBlock(), createBlock(_sfc_main$t, {
30383
+ class: "lupa-search-results-product-element",
30384
+ item: _ctx.product,
30385
+ element,
30386
+ key: element.key,
30387
+ labels: labels.value,
30388
+ inStock: isInStock.value,
30389
+ link: link.value,
30390
+ onProductEvent: handleProductEvent
30391
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30392
+ }), 128))
30393
+ ]),
30394
+ (openBlock(true), createElementBlock(Fragment, null, renderList(elementGroups.value, (group) => {
30395
+ return openBlock(), createElementBlock("div", {
30396
+ key: group,
30397
+ class: normalizeClass("lupa-element-group-" + group)
30398
+ }, [
30399
+ (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30400
+ return openBlock(), createBlock(_sfc_main$t, {
30401
+ class: "lupa-search-results-product-element",
30402
+ item: _ctx.product,
30403
+ element,
30404
+ key: element.key,
30405
+ labels: labels.value,
30406
+ inStock: isInStock.value,
30407
+ link: link.value,
30408
+ onProductEvent: handleProductEvent
30409
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30410
+ }), 128))
30411
+ ], 2);
30397
30412
  }), 128))
30398
- ], 2);
30399
- }), 128))
30400
- ], 2)
30401
- ], 16, _hoisted_1$q);
30413
+ ], 2)
30414
+ ];
30415
+ }),
30416
+ _: 1
30417
+ }, 16, ["href", "class", "onMouseup"]);
30402
30418
  };
30403
30419
  }
30404
30420
  });
@@ -31331,6 +31347,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31331
31347
  "queryKey",
31332
31348
  "idKey",
31333
31349
  "titleKey",
31350
+ "isLink",
31334
31351
  "routingBehavior",
31335
31352
  "customDocumentHtmlAttributes"
31336
31353
  ]);