@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.
@@ -14315,7 +14315,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
14315
14315
  const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
14316
14316
  const _hoisted_2$V = { class: "lupa-input-clear" };
14317
14317
  const _hoisted_3$E = { id: "lupa-search-box-input" };
14318
- const _hoisted_4$v = ["value"];
14318
+ const _hoisted_4$u = ["value"];
14319
14319
  const _hoisted_5$l = ["aria-label", "placeholder"];
14320
14320
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
14321
14321
  const _hoisted_7$7 = [
@@ -14422,7 +14422,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
14422
14422
  "aria-hidden": "true",
14423
14423
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
14424
14424
  disabled: ""
14425
- }, null, 8, _hoisted_4$v),
14425
+ }, null, 8, _hoisted_4$u),
14426
14426
  withDirectives(createBaseVNode("input", mergeProps({
14427
14427
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
14428
14428
  }, inputAttributes.value, {
@@ -14648,7 +14648,7 @@ const _hoisted_3$D = {
14648
14648
  class: "lupa-suggestion-facet",
14649
14649
  "data-cy": "lupa-suggestion-facet"
14650
14650
  };
14651
- const _hoisted_4$u = {
14651
+ const _hoisted_4$t = {
14652
14652
  class: "lupa-suggestion-facet-label",
14653
14653
  "data-cy": "lupa-suggestion-facet-label"
14654
14654
  };
@@ -14694,7 +14694,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14694
14694
  innerHTML: _ctx.suggestion.displayHighlight
14695
14695
  }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
14696
14696
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
14697
- createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
14697
+ createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
14698
14698
  createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
14699
14699
  ])) : createCommentVNode("", true)
14700
14700
  ]);
@@ -24188,7 +24188,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24188
24188
  const _hoisted_1$1a = ["innerHTML"];
24189
24189
  const _hoisted_2$P = { key: 0 };
24190
24190
  const _hoisted_3$C = { key: 1 };
24191
- const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
24191
+ const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
24192
24192
  const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
24193
24193
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24194
24194
  __name: "SearchBoxProductCustom",
@@ -24221,7 +24221,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24221
24221
  class: [className.value, "lupa-search-box-product-custom"]
24222
24222
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24223
24223
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
24224
- createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
24224
+ createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
24225
24225
  createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
24226
24226
  ]))
24227
24227
  ], 16));
@@ -24571,7 +24571,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
24571
24571
  const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
24572
24572
  const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
24573
24573
  const _hoisted_3$B = ["disabled"];
24574
- const _hoisted_4$s = ["href"];
24574
+ const _hoisted_4$r = ["href"];
24575
24575
  const _hoisted_5$i = ["onClick", "disabled"];
24576
24576
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24577
24577
  __name: "SearchBoxProductAddToCart",
@@ -24619,7 +24619,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24619
24619
  "data-cy": "lupa-add-to-cart",
24620
24620
  disabled: !inStockValue.value || loading.value
24621
24621
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24622
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
24622
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
24623
24623
  ], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
24624
24624
  key: 1,
24625
24625
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -24739,7 +24739,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
24739
24739
  const _hoisted_1$16 = { class: "lupa-badge-title" };
24740
24740
  const _hoisted_2$N = ["src"];
24741
24741
  const _hoisted_3$A = { key: 1 };
24742
- const _hoisted_4$r = {
24742
+ const _hoisted_4$q = {
24743
24743
  key: 0,
24744
24744
  class: "lupa-badge-full-text"
24745
24745
  };
@@ -24783,7 +24783,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24783
24783
  }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
24784
24784
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24785
24785
  ]),
24786
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24786
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24787
24787
  ], 6);
24788
24788
  };
24789
24789
  }
@@ -25698,7 +25698,7 @@ const _hoisted_3$y = {
25698
25698
  key: 0,
25699
25699
  class: "lupa-panel-title lupa-panel-title-top-results"
25700
25700
  };
25701
- const _hoisted_4$q = {
25701
+ const _hoisted_4$p = {
25702
25702
  key: 1,
25703
25703
  class: "lupa-panel-title"
25704
25704
  };
@@ -25891,7 +25891,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25891
25891
  "data-cy": "lupa-panel-" + panel.type + "-index"
25892
25892
  }, [
25893
25893
  ((_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),
25894
- ((_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),
25894
+ ((_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),
25895
25895
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
25896
25896
  key: 2,
25897
25897
  panel,
@@ -26389,7 +26389,7 @@ const _hoisted_3$x = {
26389
26389
  key: 1,
26390
26390
  "data-cy": "did-you-mean-label"
26391
26391
  };
26392
- const _hoisted_4$p = { key: 1 };
26392
+ const _hoisted_4$o = { key: 1 };
26393
26393
  const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26394
26394
  __name: "SearchResultsDidYouMean",
26395
26395
  props: {
@@ -26440,7 +26440,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26440
26440
  class: "lupa-did-you-mean lupa-highlighted-search-text",
26441
26441
  "data-cy": "did-you-mean-value",
26442
26442
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
26443
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
26443
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
26444
26444
  ]);
26445
26445
  }), 128))
26446
26446
  ])) : createCommentVNode("", true)
@@ -26490,7 +26490,7 @@ const _hoisted_3$w = {
26490
26490
  key: 1,
26491
26491
  class: "lupa-results-total-count"
26492
26492
  };
26493
- const _hoisted_4$o = { class: "lupa-results-total-count-number" };
26493
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
26494
26494
  const _hoisted_5$g = ["innerHTML"];
26495
26495
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26496
26496
  __name: "SearchResultsTitle",
@@ -26540,7 +26540,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26540
26540
  queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26541
26541
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
26542
26542
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
26543
- createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
26543
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
26544
26544
  createTextVNode(")")
26545
26545
  ])) : createCommentVNode("", true)
26546
26546
  ])) : createCommentVNode("", true),
@@ -26602,7 +26602,7 @@ const _hoisted_3$v = {
26602
26602
  key: 0,
26603
26603
  class: "filter-values"
26604
26604
  };
26605
- const _hoisted_4$n = { class: "lupa-current-filter-list" };
26605
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
26606
26606
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26607
26607
  __name: "CurrentFilters",
26608
26608
  props: {
@@ -26686,7 +26686,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26686
26686
  }, null, 2)) : createCommentVNode("", true)
26687
26687
  ]),
26688
26688
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26689
- createBaseVNode("div", _hoisted_4$n, [
26689
+ createBaseVNode("div", _hoisted_4$m, [
26690
26690
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
26691
26691
  return openBlock(), createBlock(_sfc_main$_, {
26692
26692
  key: filter2.key + "_" + filter2.value,
@@ -26754,7 +26754,7 @@ const _hoisted_1$R = {
26754
26754
  };
26755
26755
  const _hoisted_2$D = { class: "lupa-category-back" };
26756
26756
  const _hoisted_3$u = ["href"];
26757
- const _hoisted_4$m = ["href"];
26757
+ const _hoisted_4$l = ["href"];
26758
26758
  const _hoisted_5$f = { class: "lupa-child-category-list" };
26759
26759
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
26760
26760
  __name: "CategoryFilter",
@@ -26861,7 +26861,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26861
26861
  href: parentUrlLink.value,
26862
26862
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
26863
26863
  onClick: handleNavigationParent
26864
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
26864
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
26865
26865
  ], 2),
26866
26866
  createBaseVNode("div", _hoisted_5$f, [
26867
26867
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -26882,7 +26882,7 @@ const _hoisted_1$Q = {
26882
26882
  };
26883
26883
  const _hoisted_2$C = ["placeholder"];
26884
26884
  const _hoisted_3$t = { class: "lupa-terms-list" };
26885
- const _hoisted_4$l = ["onClick"];
26885
+ const _hoisted_4$k = ["onClick"];
26886
26886
  const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
26887
26887
  const _hoisted_6$8 = { class: "lupa-term-label" };
26888
26888
  const _hoisted_7$6 = {
@@ -27009,7 +27009,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
27009
27009
  createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
27010
27010
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
27011
27011
  ], 2)
27012
- ], 10, _hoisted_4$l);
27012
+ ], 10, _hoisted_4$k);
27013
27013
  }), 128))
27014
27014
  ]),
27015
27015
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -28009,7 +28009,7 @@ const _hoisted_3$s = {
28009
28009
  key: 1,
28010
28010
  class: "lupa-stats-facet-summary-input"
28011
28011
  };
28012
- const _hoisted_4$k = {
28012
+ const _hoisted_4$j = {
28013
28013
  key: 0,
28014
28014
  class: "lupa-stats-range-label"
28015
28015
  };
@@ -28212,7 +28212,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
28212
28212
  return openBlock(), createElementBlock("div", _hoisted_1$P, [
28213
28213
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
28214
28214
  createBaseVNode("div", null, [
28215
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28215
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28216
28216
  createBaseVNode("div", _hoisted_5$d, [
28217
28217
  withDirectives(createBaseVNode("input", {
28218
28218
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -28282,7 +28282,7 @@ const _hoisted_3$r = {
28282
28282
  key: 0,
28283
28283
  class: "lupa-term-count"
28284
28284
  };
28285
- const _hoisted_4$j = {
28285
+ const _hoisted_4$i = {
28286
28286
  key: 0,
28287
28287
  class: "lupa-facet-level"
28288
28288
  };
@@ -28351,7 +28351,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
28351
28351
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28352
28352
  ], 2)
28353
28353
  ]),
28354
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
28354
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
28355
28355
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
28356
28356
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
28357
28357
  key: itemChild.title,
@@ -28884,7 +28884,7 @@ const _hoisted_1$H = {
28884
28884
  };
28885
28885
  const _hoisted_2$w = ["onClick"];
28886
28886
  const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
28887
- const _hoisted_4$i = { class: "lupa-sidebar-top" };
28887
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
28888
28888
  const _hoisted_5$c = { class: "lupa-sidebar-title" };
28889
28889
  const _hoisted_6$6 = {
28890
28890
  key: 0,
@@ -28928,7 +28928,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28928
28928
  onClick: withModifiers(handleMobileToggle, ["stop"])
28929
28929
  }, null, 8, _hoisted_2$w),
28930
28930
  createBaseVNode("div", _hoisted_3$p, [
28931
- createBaseVNode("div", _hoisted_4$i, [
28931
+ createBaseVNode("div", _hoisted_4$h, [
28932
28932
  createBaseVNode("div", _hoisted_5$c, [
28933
28933
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
28934
28934
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -28956,7 +28956,7 @@ const _hoisted_3$o = {
28956
28956
  key: 1,
28957
28957
  class: "lupa-search-results-breadcrumb-text"
28958
28958
  };
28959
- const _hoisted_4$h = { key: 2 };
28959
+ const _hoisted_4$g = { key: 2 };
28960
28960
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
28961
28961
  __name: "SearchResultsBreadcrumbs",
28962
28962
  props: {
@@ -28998,7 +28998,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
28998
28998
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
28999
28999
  }
29000
29000
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
29001
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
29001
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
29002
29002
  ]);
29003
29003
  }), 128))
29004
29004
  ]);
@@ -29160,7 +29160,7 @@ const _hoisted_2$u = {
29160
29160
  class: "lupa-page-number-separator"
29161
29161
  };
29162
29162
  const _hoisted_3$n = ["onClick"];
29163
- const _hoisted_4$g = {
29163
+ const _hoisted_4$f = {
29164
29164
  key: 0,
29165
29165
  class: "lupa-page-number-separator"
29166
29166
  };
@@ -29266,7 +29266,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
29266
29266
  }, toDisplayString(page), 11, _hoisted_3$n);
29267
29267
  }), 128)),
29268
29268
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
29269
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
29269
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
29270
29270
  createBaseVNode("div", {
29271
29271
  class: "lupa-page-number lupa-page-number-last",
29272
29272
  onClick: _cache[2] || (_cache[2] = () => {
@@ -29291,7 +29291,7 @@ const _hoisted_1$B = {
29291
29291
  };
29292
29292
  const _hoisted_2$t = { id: "lupa-select" };
29293
29293
  const _hoisted_3$m = { class: "lupa-select-label" };
29294
- const _hoisted_4$f = ["aria-label"];
29294
+ const _hoisted_4$e = ["aria-label"];
29295
29295
  const _hoisted_5$b = ["value"];
29296
29296
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
29297
29297
  __name: "SearchResultsPageSize",
@@ -29338,7 +29338,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
29338
29338
  value: option
29339
29339
  }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
29340
29340
  }), 128))
29341
- ], 40, _hoisted_4$f)
29341
+ ], 40, _hoisted_4$e)
29342
29342
  ])
29343
29343
  ]);
29344
29344
  };
@@ -29350,7 +29350,7 @@ const _hoisted_1$A = {
29350
29350
  };
29351
29351
  const _hoisted_2$s = { id: "lupa-select" };
29352
29352
  const _hoisted_3$l = { class: "lupa-select-label" };
29353
- const _hoisted_4$e = ["aria-label"];
29353
+ const _hoisted_4$d = ["aria-label"];
29354
29354
  const _hoisted_5$a = ["value"];
29355
29355
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
29356
29356
  __name: "SearchResultsSort",
@@ -29418,7 +29418,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29418
29418
  value: option.key
29419
29419
  }, toDisplayString(option.label), 9, _hoisted_5$a);
29420
29420
  }), 128))
29421
- ], 40, _hoisted_4$e), [
29421
+ ], 40, _hoisted_4$d), [
29422
29422
  [vModelSelect, selectedKey.value]
29423
29423
  ])
29424
29424
  ])
@@ -29432,7 +29432,7 @@ const _hoisted_2$r = {
29432
29432
  class: "lupa-toolbar-right-title"
29433
29433
  };
29434
29434
  const _hoisted_3$k = { key: 2 };
29435
- const _hoisted_4$d = { key: 4 };
29435
+ const _hoisted_4$c = { key: 4 };
29436
29436
  const _hoisted_5$9 = { key: 6 };
29437
29437
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
29438
29438
  const _hoisted_7$3 = {
@@ -29560,7 +29560,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29560
29560
  label: searchSummaryLabel.value,
29561
29561
  clearable: unref(hasAnyFilter) && showFilterClear.value,
29562
29562
  onClear: handleClearAll
29563
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
29563
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
29564
29564
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
29565
29565
  key: 5,
29566
29566
  options: paginationOptions.value.pageSelect,
@@ -29613,7 +29613,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29613
29613
  const _hoisted_1$y = ["title", "innerHTML"];
29614
29614
  const _hoisted_2$q = ["title"];
29615
29615
  const _hoisted_3$j = ["href", "innerHTML"];
29616
- const _hoisted_4$c = ["title"];
29616
+ const _hoisted_4$b = ["title"];
29617
29617
  const _hoisted_5$8 = {
29618
29618
  key: 0,
29619
29619
  class: "lupa-search-results-product-title-text"
@@ -29681,7 +29681,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29681
29681
  class: "lupa-search-results-product-title-text lupa-title-link",
29682
29682
  onClick: handleNavigation
29683
29683
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
29684
- ], 12, _hoisted_4$c));
29684
+ ], 12, _hoisted_4$b));
29685
29685
  };
29686
29686
  }
29687
29687
  });
@@ -29724,7 +29724,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29724
29724
  const _hoisted_1$w = { id: "lupa-search-results-rating" };
29725
29725
  const _hoisted_2$p = { class: "lupa-ratings" };
29726
29726
  const _hoisted_3$i = { class: "lupa-ratings-base" };
29727
- const _hoisted_4$b = ["innerHTML"];
29727
+ const _hoisted_4$a = ["innerHTML"];
29728
29728
  const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
29729
29729
  const _hoisted_6$3 = ["innerHTML"];
29730
29730
  const _hoisted_7$2 = ["href"];
@@ -29774,7 +29774,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29774
29774
  key: index,
29775
29775
  innerHTML: star,
29776
29776
  class: "lupa-rating lupa-rating-not-highlighted"
29777
- }, null, 8, _hoisted_4$b);
29777
+ }, null, 8, _hoisted_4$a);
29778
29778
  }), 128))
29779
29779
  ]),
29780
29780
  createBaseVNode("div", _hoisted_5$7, [
@@ -29861,7 +29861,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29861
29861
  const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
29862
29862
  const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
29863
29863
  const _hoisted_3$h = ["disabled"];
29864
- const _hoisted_4$a = ["href"];
29864
+ const _hoisted_4$9 = ["href"];
29865
29865
  const _hoisted_5$6 = ["id", "disabled", "onClick"];
29866
29866
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
29867
29867
  __name: "SearchResultsProductAddToCart",
@@ -29880,6 +29880,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29880
29880
  return (_a = props.inStock) != null ? _a : true;
29881
29881
  });
29882
29882
  const searchResultStore = useSearchResultStore();
29883
+ const optionsStore = useOptionsStore();
29884
+ const { searchResultOptions } = storeToRefs(optionsStore);
29883
29885
  const { addToCartAmount } = storeToRefs(searchResultStore);
29884
29886
  const loading = ref(false);
29885
29887
  const label = computed(() => {
@@ -29890,7 +29892,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29890
29892
  const id2 = (_a = props.item.id) != null ? _a : "";
29891
29893
  return `lupa-add-to-cart-${id2}`;
29892
29894
  });
29893
- const handleClick = () => __async2(this, null, function* () {
29895
+ const productCardIsClickable = computed(() => {
29896
+ return searchResultOptions.value.isLink;
29897
+ });
29898
+ const hasLink = computed(() => {
29899
+ return Boolean(props.link && props.options.link);
29900
+ });
29901
+ const handleClick = (e2) => __async2(this, null, function* () {
29902
+ if (productCardIsClickable.value && !hasLink.value) {
29903
+ e2.preventDefault();
29904
+ }
29894
29905
  loading.value = true;
29895
29906
  if (props.options.emitEvent) {
29896
29907
  const event = new CustomEvent(props.options.emitEvent, { detail: { item: props.item } });
@@ -29902,9 +29913,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29902
29913
  emit2("productEvent", { type: "addToCart" });
29903
29914
  loading.value = false;
29904
29915
  });
29905
- const hasLink = computed(() => {
29906
- return Boolean(props.link && props.options.link);
29907
- });
29908
29916
  return (_ctx, _cache) => {
29909
29917
  return openBlock(), createElementBlock("div", _hoisted_1$u, [
29910
29918
  createBaseVNode("div", _hoisted_2$o, [
@@ -29914,7 +29922,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29914
29922
  "data-cy": "lupa-add-to-cart",
29915
29923
  disabled: !inStockValue.value || loading.value
29916
29924
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
29917
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
29925
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
29918
29926
  ], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
29919
29927
  key: 1,
29920
29928
  id: id.value,
@@ -29932,7 +29940,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29932
29940
  const _hoisted_1$t = ["innerHTML"];
29933
29941
  const _hoisted_2$n = { key: 0 };
29934
29942
  const _hoisted_3$g = { key: 1 };
29935
- const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
29943
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
29936
29944
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
29937
29945
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
29938
29946
  __name: "SearchResultsProductCustom",
@@ -29977,7 +29985,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
29977
29985
  class: className.value
29978
29986
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
29979
29987
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
29980
- createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
29988
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
29981
29989
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
29982
29990
  ]))
29983
29991
  ], 16));
@@ -30023,7 +30031,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
30023
30031
  const _hoisted_1$r = { id: "lupa-search-results-rating" };
30024
30032
  const _hoisted_2$m = ["innerHTML"];
30025
30033
  const _hoisted_3$f = { class: "lupa-ratings" };
30026
- const _hoisted_4$8 = ["href"];
30034
+ const _hoisted_4$7 = ["href"];
30027
30035
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
30028
30036
  __name: "SearchResultsProductSingleStarRating",
30029
30037
  props: {
@@ -30061,7 +30069,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
30061
30069
  createBaseVNode("a", {
30062
30070
  href: ratingLink.value,
30063
30071
  class: "lupa-total-ratings"
30064
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
30072
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
30065
30073
  ]);
30066
30074
  };
30067
30075
  }
@@ -30162,13 +30170,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
30162
30170
  };
30163
30171
  }
30164
30172
  }));
30165
- const _hoisted_1$q = ["onMouseup"];
30166
- const _hoisted_2$l = ["href"];
30167
- const _hoisted_3$e = {
30173
+ const _hoisted_1$q = ["href"];
30174
+ const _hoisted_2$l = {
30168
30175
  key: 0,
30169
30176
  class: "lupa-out-of-stock"
30170
30177
  };
30171
- const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
30178
+ const _hoisted_3$e = { class: "lupa-search-result-product-details-section" };
30172
30179
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
30173
30180
  __name: "SearchResultsProductCard",
30174
30181
  props: {
@@ -30197,6 +30204,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30197
30204
  const listLayoutClass = computed(() => {
30198
30205
  return layout.value === ResultsLayoutEnum.LIST && !props.isAdditionalPanel ? "lupa-search-result-product-contents-list" : "";
30199
30206
  });
30207
+ const useLinkWrapper = computed(() => {
30208
+ return props.options.isLink;
30209
+ });
30200
30210
  const badgesOptions = computed(() => {
30201
30211
  return __spreadProps2(__spreadValues2({}, props.options.badges), { product: props.product });
30202
30212
  });
@@ -30325,78 +30335,84 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30325
30335
  checkIfIsInStock();
30326
30336
  }
30327
30337
  return (_ctx, _cache) => {
30328
- var _a;
30329
- return openBlock(), createElementBlock("div", mergeProps({
30338
+ return openBlock(), createBlock(resolveDynamicComponent(useLinkWrapper.value ? "a" : "div"), mergeProps({
30339
+ href: useLinkWrapper.value ? link.value : null,
30330
30340
  id: "lupa-search-result-product-card",
30331
30341
  "data-cy": "lupa-search-result-product-card",
30332
30342
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
30333
30343
  }, customDocumentHtmlAttributes.value, {
30334
30344
  onClick: handleClick,
30335
30345
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
30336
- }), [
30337
- createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30338
- createBaseVNode("div", {
30339
- class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30340
- }, [
30341
- createBaseVNode("a", {
30342
- class: "lupa-search-result-product-image-section",
30343
- href: link.value,
30344
- onClick: handleNavigation
30345
- }, [
30346
- (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30347
- return openBlock(), createBlock(_sfc_main$t, {
30348
- class: "lupa-search-results-product-element",
30349
- item: _ctx.product,
30350
- element,
30351
- key: element.key,
30352
- labels: labels.value,
30353
- inStock: isInStock.value,
30354
- link: link.value,
30355
- onProductEvent: handleProductEvent
30356
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30357
- }), 128)),
30358
- createVNode(_sfc_main$19, {
30359
- options: badgesOptions.value,
30360
- position: "image",
30361
- class: "lupa-image-badges"
30362
- }, null, 8, ["options"]),
30363
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30364
- ], 8, _hoisted_2$l),
30365
- createBaseVNode("div", _hoisted_4$7, [
30366
- (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30367
- return openBlock(), createBlock(_sfc_main$t, {
30368
- class: "lupa-search-results-product-element",
30369
- item: _ctx.product,
30370
- element,
30371
- key: element.key,
30372
- labels: labels.value,
30373
- inStock: isInStock.value,
30374
- link: link.value,
30375
- onProductEvent: handleProductEvent
30376
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30377
- }), 128))
30378
- ]),
30379
- (openBlock(true), createElementBlock(Fragment, null, renderList(elementGroups.value, (group) => {
30380
- return openBlock(), createElementBlock("div", {
30381
- key: group,
30382
- class: normalizeClass("lupa-element-group-" + group)
30346
+ }), {
30347
+ default: withCtx(() => {
30348
+ var _a;
30349
+ return [
30350
+ createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30351
+ createBaseVNode("div", {
30352
+ class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30383
30353
  }, [
30384
- (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30385
- return openBlock(), createBlock(_sfc_main$t, {
30386
- class: "lupa-search-results-product-element",
30387
- item: _ctx.product,
30388
- element,
30389
- key: element.key,
30390
- labels: labels.value,
30391
- inStock: isInStock.value,
30392
- link: link.value,
30393
- onProductEvent: handleProductEvent
30394
- }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30354
+ createBaseVNode("a", {
30355
+ class: "lupa-search-result-product-image-section",
30356
+ href: link.value,
30357
+ onClick: handleNavigation
30358
+ }, [
30359
+ (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30360
+ return openBlock(), createBlock(_sfc_main$t, {
30361
+ class: "lupa-search-results-product-element",
30362
+ item: _ctx.product,
30363
+ element,
30364
+ key: element.key,
30365
+ labels: labels.value,
30366
+ inStock: isInStock.value,
30367
+ link: link.value,
30368
+ onProductEvent: handleProductEvent
30369
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30370
+ }), 128)),
30371
+ createVNode(_sfc_main$19, {
30372
+ options: badgesOptions.value,
30373
+ position: "image",
30374
+ class: "lupa-image-badges"
30375
+ }, null, 8, ["options"]),
30376
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30377
+ ], 8, _hoisted_1$q),
30378
+ createBaseVNode("div", _hoisted_3$e, [
30379
+ (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30380
+ return openBlock(), createBlock(_sfc_main$t, {
30381
+ class: "lupa-search-results-product-element",
30382
+ item: _ctx.product,
30383
+ element,
30384
+ key: element.key,
30385
+ labels: labels.value,
30386
+ inStock: isInStock.value,
30387
+ link: link.value,
30388
+ onProductEvent: handleProductEvent
30389
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30390
+ }), 128))
30391
+ ]),
30392
+ (openBlock(true), createElementBlock(Fragment, null, renderList(elementGroups.value, (group) => {
30393
+ return openBlock(), createElementBlock("div", {
30394
+ key: group,
30395
+ class: normalizeClass("lupa-element-group-" + group)
30396
+ }, [
30397
+ (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30398
+ return openBlock(), createBlock(_sfc_main$t, {
30399
+ class: "lupa-search-results-product-element",
30400
+ item: _ctx.product,
30401
+ element,
30402
+ key: element.key,
30403
+ labels: labels.value,
30404
+ inStock: isInStock.value,
30405
+ link: link.value,
30406
+ onProductEvent: handleProductEvent
30407
+ }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30408
+ }), 128))
30409
+ ], 2);
30395
30410
  }), 128))
30396
- ], 2);
30397
- }), 128))
30398
- ], 2)
30399
- ], 16, _hoisted_1$q);
30411
+ ], 2)
30412
+ ];
30413
+ }),
30414
+ _: 1
30415
+ }, 16, ["href", "class", "onMouseup"]);
30400
30416
  };
30401
30417
  }
30402
30418
  });
@@ -31329,6 +31345,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31329
31345
  "queryKey",
31330
31346
  "idKey",
31331
31347
  "titleKey",
31348
+ "isLink",
31332
31349
  "routingBehavior",
31333
31350
  "customDocumentHtmlAttributes"
31334
31351
  ]);