@getlupa/client 1.21.3 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +102 -69
- package/dist/lupaSearch.js +102 -69
- package/dist/lupaSearch.mjs +102 -69
- package/dist/lupaSearch.umd.js +102 -69
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -19784,7 +19784,7 @@ const _hoisted_1$1l = {
|
|
|
19784
19784
|
};
|
|
19785
19785
|
const _hoisted_2$W = { class: "lupa-dialog-content" };
|
|
19786
19786
|
const _hoisted_3$E = { class: "lupa-listening-text" };
|
|
19787
|
-
const _hoisted_4$
|
|
19787
|
+
const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
|
|
19788
19788
|
const _hoisted_5$l = ["aria-label"];
|
|
19789
19789
|
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
19790
19790
|
__name: "VoiceSearchDialog",
|
|
@@ -19898,7 +19898,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
19898
19898
|
}),
|
|
19899
19899
|
createBaseVNode("div", _hoisted_2$W, [
|
|
19900
19900
|
createBaseVNode("p", _hoisted_3$E, toDisplayString(description.value), 1),
|
|
19901
|
-
createBaseVNode("div", _hoisted_4$
|
|
19901
|
+
createBaseVNode("div", _hoisted_4$v, [
|
|
19902
19902
|
createBaseVNode("button", {
|
|
19903
19903
|
class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
|
|
19904
19904
|
onClick: handleRecordingButtonClick,
|
|
@@ -19923,7 +19923,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
19923
19923
|
const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
|
|
19924
19924
|
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
19925
19925
|
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
19926
|
-
const _hoisted_4$
|
|
19926
|
+
const _hoisted_4$u = ["value"];
|
|
19927
19927
|
const _hoisted_5$k = ["aria-label", "placeholder"];
|
|
19928
19928
|
const _hoisted_6$8 = {
|
|
19929
19929
|
key: 0,
|
|
@@ -20076,7 +20076,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
20076
20076
|
"aria-hidden": "true",
|
|
20077
20077
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
20078
20078
|
disabled: ""
|
|
20079
|
-
}, null, 8, _hoisted_4$
|
|
20079
|
+
}, null, 8, _hoisted_4$u),
|
|
20080
20080
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
20081
20081
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
20082
20082
|
}, inputAttributes.value, {
|
|
@@ -20326,7 +20326,7 @@ const _hoisted_3$C = {
|
|
|
20326
20326
|
class: "lupa-suggestion-facet",
|
|
20327
20327
|
"data-cy": "lupa-suggestion-facet"
|
|
20328
20328
|
};
|
|
20329
|
-
const _hoisted_4$
|
|
20329
|
+
const _hoisted_4$t = {
|
|
20330
20330
|
class: "lupa-suggestion-facet-label",
|
|
20331
20331
|
"data-cy": "lupa-suggestion-facet-label"
|
|
20332
20332
|
};
|
|
@@ -20373,7 +20373,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
20373
20373
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20374
20374
|
}, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20375
20375
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
20376
|
-
createBaseVNode("span", _hoisted_4$
|
|
20376
|
+
createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
20377
20377
|
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
20378
20378
|
])) : createCommentVNode("", true)
|
|
20379
20379
|
]);
|
|
@@ -30113,7 +30113,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30113
30113
|
const _hoisted_1$1a = ["innerHTML"];
|
|
30114
30114
|
const _hoisted_2$P = { key: 0 };
|
|
30115
30115
|
const _hoisted_3$B = { key: 1 };
|
|
30116
|
-
const _hoisted_4$
|
|
30116
|
+
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
30117
30117
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
30118
30118
|
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
30119
30119
|
__name: "SearchBoxProductCustom",
|
|
@@ -30146,7 +30146,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
30146
30146
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30147
30147
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30148
30148
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
30149
|
-
createBaseVNode("div", _hoisted_4$
|
|
30149
|
+
createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
30150
30150
|
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
30151
30151
|
]))
|
|
30152
30152
|
], 16));
|
|
@@ -30497,7 +30497,7 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30497
30497
|
const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30498
30498
|
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
30499
30499
|
const _hoisted_3$A = ["disabled"];
|
|
30500
|
-
const _hoisted_4$
|
|
30500
|
+
const _hoisted_4$r = ["href"];
|
|
30501
30501
|
const _hoisted_5$h = ["disabled"];
|
|
30502
30502
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
30503
30503
|
__name: "SearchBoxProductAddToCart",
|
|
@@ -30553,7 +30553,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
30553
30553
|
"data-cy": "lupa-add-to-cart",
|
|
30554
30554
|
disabled: !inStockValue.value || loading.value
|
|
30555
30555
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
30556
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
30556
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
|
|
30557
30557
|
], 16, _hoisted_3$A)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
30558
30558
|
key: 1,
|
|
30559
30559
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -30673,7 +30673,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30673
30673
|
const _hoisted_1$16 = { class: "lupa-badge-title" };
|
|
30674
30674
|
const _hoisted_2$N = ["src"];
|
|
30675
30675
|
const _hoisted_3$z = { key: 1 };
|
|
30676
|
-
const _hoisted_4$
|
|
30676
|
+
const _hoisted_4$q = {
|
|
30677
30677
|
key: 0,
|
|
30678
30678
|
class: "lupa-badge-full-text"
|
|
30679
30679
|
};
|
|
@@ -30717,7 +30717,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
30717
30717
|
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
30718
30718
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30719
30719
|
]),
|
|
30720
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
30720
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
30721
30721
|
], 6);
|
|
30722
30722
|
};
|
|
30723
30723
|
}
|
|
@@ -31458,7 +31458,16 @@ const extractFromHtmlElementAttribute = (options) => {
|
|
|
31458
31458
|
if (attr === "value" && (element == null ? void 0 : element.value)) {
|
|
31459
31459
|
return element.value;
|
|
31460
31460
|
}
|
|
31461
|
-
|
|
31461
|
+
const attributeValue = element.getAttribute(attr);
|
|
31462
|
+
if (attributeValue === null || attributeValue === void 0) {
|
|
31463
|
+
return options.default;
|
|
31464
|
+
}
|
|
31465
|
+
if (options.regex) {
|
|
31466
|
+
const regex = new RegExp(options.regex);
|
|
31467
|
+
const match = attributeValue.match(regex);
|
|
31468
|
+
return match ? match[1] : options.default;
|
|
31469
|
+
}
|
|
31470
|
+
return attributeValue;
|
|
31462
31471
|
};
|
|
31463
31472
|
const getValueFromPath = (obj, path) => {
|
|
31464
31473
|
return path.split(".").reduce((value, key) => value && value[key] || null, obj);
|
|
@@ -31676,7 +31685,7 @@ const _hoisted_3$x = {
|
|
|
31676
31685
|
key: 0,
|
|
31677
31686
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31678
31687
|
};
|
|
31679
|
-
const _hoisted_4$
|
|
31688
|
+
const _hoisted_4$p = {
|
|
31680
31689
|
key: 1,
|
|
31681
31690
|
class: "lupa-panel-title"
|
|
31682
31691
|
};
|
|
@@ -31872,7 +31881,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31872
31881
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
31873
31882
|
}, [
|
|
31874
31883
|
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
31875
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
31884
|
+
((_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),
|
|
31876
31885
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
31877
31886
|
key: 2,
|
|
31878
31887
|
panel,
|
|
@@ -32370,7 +32379,7 @@ const _hoisted_3$w = {
|
|
|
32370
32379
|
key: 1,
|
|
32371
32380
|
"data-cy": "did-you-mean-label"
|
|
32372
32381
|
};
|
|
32373
|
-
const _hoisted_4$
|
|
32382
|
+
const _hoisted_4$o = { key: 1 };
|
|
32374
32383
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
32375
32384
|
__name: "SearchResultsDidYouMean",
|
|
32376
32385
|
props: {
|
|
@@ -32421,7 +32430,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
32421
32430
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
32422
32431
|
"data-cy": "did-you-mean-value",
|
|
32423
32432
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
32424
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
32433
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
32425
32434
|
]);
|
|
32426
32435
|
}), 128))
|
|
32427
32436
|
])) : createCommentVNode("", true)
|
|
@@ -32471,7 +32480,7 @@ const _hoisted_3$v = {
|
|
|
32471
32480
|
key: 1,
|
|
32472
32481
|
class: "lupa-results-total-count"
|
|
32473
32482
|
};
|
|
32474
|
-
const _hoisted_4$
|
|
32483
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
32475
32484
|
const _hoisted_5$f = ["innerHTML"];
|
|
32476
32485
|
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
32477
32486
|
__name: "SearchResultsTitle",
|
|
@@ -32521,7 +32530,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
32521
32530
|
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32522
32531
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
32523
32532
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32524
|
-
createBaseVNode("span", _hoisted_4$
|
|
32533
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
32525
32534
|
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32526
32535
|
])) : createCommentVNode("", true)
|
|
32527
32536
|
])) : createCommentVNode("", true),
|
|
@@ -32603,7 +32612,7 @@ const _hoisted_3$u = {
|
|
|
32603
32612
|
key: 0,
|
|
32604
32613
|
class: "filter-values"
|
|
32605
32614
|
};
|
|
32606
|
-
const _hoisted_4$
|
|
32615
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
32607
32616
|
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
32608
32617
|
__name: "CurrentFilters",
|
|
32609
32618
|
props: {
|
|
@@ -32695,7 +32704,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
32695
32704
|
}, null, 2)) : createCommentVNode("", true)
|
|
32696
32705
|
]),
|
|
32697
32706
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
32698
|
-
createBaseVNode("div", _hoisted_4$
|
|
32707
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
32699
32708
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32700
32709
|
return openBlock(), createBlock(_sfc_main$$, {
|
|
32701
32710
|
key: filter.key + "_" + filter.value,
|
|
@@ -32764,7 +32773,7 @@ const _hoisted_1$R = {
|
|
|
32764
32773
|
};
|
|
32765
32774
|
const _hoisted_2$D = { class: "lupa-category-back" };
|
|
32766
32775
|
const _hoisted_3$t = ["href"];
|
|
32767
|
-
const _hoisted_4$
|
|
32776
|
+
const _hoisted_4$l = ["href"];
|
|
32768
32777
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
32769
32778
|
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
32770
32779
|
__name: "CategoryFilter",
|
|
@@ -32871,7 +32880,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
32871
32880
|
href: parentUrlLink.value,
|
|
32872
32881
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
32873
32882
|
onClick: handleNavigationParent
|
|
32874
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
32883
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
32875
32884
|
], 2),
|
|
32876
32885
|
createBaseVNode("div", _hoisted_5$e, [
|
|
32877
32886
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
@@ -32892,7 +32901,7 @@ const _hoisted_1$Q = {
|
|
|
32892
32901
|
};
|
|
32893
32902
|
const _hoisted_2$C = ["placeholder"];
|
|
32894
32903
|
const _hoisted_3$s = { class: "lupa-terms-list" };
|
|
32895
|
-
const _hoisted_4$
|
|
32904
|
+
const _hoisted_4$k = ["onClick"];
|
|
32896
32905
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
32897
32906
|
const _hoisted_6$7 = { class: "lupa-term-label" };
|
|
32898
32907
|
const _hoisted_7$4 = {
|
|
@@ -33024,7 +33033,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
33024
33033
|
createBaseVNode("span", _hoisted_6$7, toDisplayString(getItemLabel(item)), 1),
|
|
33025
33034
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$4, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
33026
33035
|
], 2)
|
|
33027
|
-
], 10, _hoisted_4$
|
|
33036
|
+
], 10, _hoisted_4$k);
|
|
33028
33037
|
}), 128))
|
|
33029
33038
|
]),
|
|
33030
33039
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -33941,7 +33950,7 @@ const _hoisted_3$r = {
|
|
|
33941
33950
|
key: 1,
|
|
33942
33951
|
class: "lupa-stats-facet-summary-input"
|
|
33943
33952
|
};
|
|
33944
|
-
const _hoisted_4$
|
|
33953
|
+
const _hoisted_4$j = { class: "lupa-stats-from" };
|
|
33945
33954
|
const _hoisted_5$c = {
|
|
33946
33955
|
key: 0,
|
|
33947
33956
|
class: "lupa-stats-range-label"
|
|
@@ -34179,7 +34188,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
34179
34188
|
return (_ctx, _cache) => {
|
|
34180
34189
|
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
34181
34190
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
34182
|
-
createBaseVNode("div", _hoisted_4$
|
|
34191
|
+
createBaseVNode("div", _hoisted_4$j, [
|
|
34183
34192
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
34184
34193
|
withDirectives(createBaseVNode("input", {
|
|
34185
34194
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -34248,7 +34257,7 @@ const _hoisted_3$q = {
|
|
|
34248
34257
|
key: 0,
|
|
34249
34258
|
class: "lupa-term-count"
|
|
34250
34259
|
};
|
|
34251
|
-
const _hoisted_4$
|
|
34260
|
+
const _hoisted_4$i = {
|
|
34252
34261
|
key: 0,
|
|
34253
34262
|
class: "lupa-facet-level"
|
|
34254
34263
|
};
|
|
@@ -34318,7 +34327,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
34318
34327
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$q, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
34319
34328
|
], 2)
|
|
34320
34329
|
]),
|
|
34321
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
34330
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
34322
34331
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
34323
34332
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
34324
34333
|
key: itemChild.title,
|
|
@@ -34866,7 +34875,7 @@ const _hoisted_1$I = {
|
|
|
34866
34875
|
};
|
|
34867
34876
|
const _hoisted_2$w = { class: "lupa-mobile-sidebar-content" };
|
|
34868
34877
|
const _hoisted_3$o = { class: "lupa-sidebar-top" };
|
|
34869
|
-
const _hoisted_4$
|
|
34878
|
+
const _hoisted_4$h = { class: "lupa-sidebar-title" };
|
|
34870
34879
|
const _hoisted_5$b = {
|
|
34871
34880
|
key: 0,
|
|
34872
34881
|
class: "lupa-sidebar-filter-count"
|
|
@@ -34911,7 +34920,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
34911
34920
|
}),
|
|
34912
34921
|
createBaseVNode("div", _hoisted_2$w, [
|
|
34913
34922
|
createBaseVNode("div", _hoisted_3$o, [
|
|
34914
|
-
createBaseVNode("div", _hoisted_4$
|
|
34923
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
34915
34924
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
34916
34925
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_5$b, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
34917
34926
|
]),
|
|
@@ -34938,7 +34947,7 @@ const _hoisted_3$n = {
|
|
|
34938
34947
|
key: 1,
|
|
34939
34948
|
class: "lupa-search-results-breadcrumb-text"
|
|
34940
34949
|
};
|
|
34941
|
-
const _hoisted_4$
|
|
34950
|
+
const _hoisted_4$g = { key: 2 };
|
|
34942
34951
|
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
34943
34952
|
__name: "SearchResultsBreadcrumbs",
|
|
34944
34953
|
props: {
|
|
@@ -34980,7 +34989,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
34980
34989
|
return handleNavigation(e2, (_a26 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a26 : "");
|
|
34981
34990
|
}
|
|
34982
34991
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
34983
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
34992
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
34984
34993
|
]);
|
|
34985
34994
|
}), 128))
|
|
34986
34995
|
]);
|
|
@@ -35143,7 +35152,7 @@ const _hoisted_2$u = {
|
|
|
35143
35152
|
class: "lupa-page-number-separator"
|
|
35144
35153
|
};
|
|
35145
35154
|
const _hoisted_3$m = ["onClick"];
|
|
35146
|
-
const _hoisted_4$
|
|
35155
|
+
const _hoisted_4$f = {
|
|
35147
35156
|
key: 0,
|
|
35148
35157
|
class: "lupa-page-number-separator"
|
|
35149
35158
|
};
|
|
@@ -35249,7 +35258,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
35249
35258
|
}, toDisplayString(page), 11, _hoisted_3$m);
|
|
35250
35259
|
}), 128)),
|
|
35251
35260
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
35252
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
35261
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
35253
35262
|
createBaseVNode("div", {
|
|
35254
35263
|
class: "lupa-page-number lupa-page-number-last",
|
|
35255
35264
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -35277,7 +35286,7 @@ const _hoisted_3$l = {
|
|
|
35277
35286
|
class: "lupa-select-label",
|
|
35278
35287
|
for: "lupa-page-size-select-dropdown"
|
|
35279
35288
|
};
|
|
35280
|
-
const _hoisted_4$
|
|
35289
|
+
const _hoisted_4$e = ["aria-label"];
|
|
35281
35290
|
const _hoisted_5$a = ["value"];
|
|
35282
35291
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
35283
35292
|
__name: "SearchResultsPageSize",
|
|
@@ -35327,7 +35336,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
35327
35336
|
value: option
|
|
35328
35337
|
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
|
|
35329
35338
|
}), 128))
|
|
35330
|
-
], 40, _hoisted_4$
|
|
35339
|
+
], 40, _hoisted_4$e)
|
|
35331
35340
|
])
|
|
35332
35341
|
]);
|
|
35333
35342
|
};
|
|
@@ -35342,7 +35351,7 @@ const _hoisted_3$k = {
|
|
|
35342
35351
|
class: "lupa-select-label",
|
|
35343
35352
|
for: "lupa-sort-select-dropdown"
|
|
35344
35353
|
};
|
|
35345
|
-
const _hoisted_4$
|
|
35354
|
+
const _hoisted_4$d = ["aria-label"];
|
|
35346
35355
|
const _hoisted_5$9 = ["value"];
|
|
35347
35356
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
35348
35357
|
__name: "SearchResultsSort",
|
|
@@ -35413,7 +35422,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
35413
35422
|
value: option.key
|
|
35414
35423
|
}, toDisplayString(option.label), 9, _hoisted_5$9);
|
|
35415
35424
|
}), 128))
|
|
35416
|
-
], 40, _hoisted_4$
|
|
35425
|
+
], 40, _hoisted_4$d), [
|
|
35417
35426
|
[vModelSelect, selectedKey.value]
|
|
35418
35427
|
])
|
|
35419
35428
|
])
|
|
@@ -35427,7 +35436,7 @@ const _hoisted_2$r = {
|
|
|
35427
35436
|
class: "lupa-toolbar-right-title"
|
|
35428
35437
|
};
|
|
35429
35438
|
const _hoisted_3$j = { key: 2 };
|
|
35430
|
-
const _hoisted_4$
|
|
35439
|
+
const _hoisted_4$c = { key: 4 };
|
|
35431
35440
|
const _hoisted_5$8 = { key: 6 };
|
|
35432
35441
|
const _hoisted_6$4 = { class: "lupa-toolbar-right" };
|
|
35433
35442
|
const _hoisted_7$2 = {
|
|
@@ -35555,7 +35564,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
35555
35564
|
label: searchSummaryLabel.value,
|
|
35556
35565
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
35557
35566
|
onClear: handleClearAll
|
|
35558
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
35567
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
35559
35568
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
35560
35569
|
key: 5,
|
|
35561
35570
|
options: paginationOptions.value.pageSelect,
|
|
@@ -35608,7 +35617,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
35608
35617
|
const _hoisted_1$z = ["title", "innerHTML"];
|
|
35609
35618
|
const _hoisted_2$q = ["title"];
|
|
35610
35619
|
const _hoisted_3$i = ["href", "innerHTML"];
|
|
35611
|
-
const _hoisted_4$
|
|
35620
|
+
const _hoisted_4$b = ["title"];
|
|
35612
35621
|
const _hoisted_5$7 = {
|
|
35613
35622
|
key: 0,
|
|
35614
35623
|
class: "lupa-search-results-product-title-text"
|
|
@@ -35676,7 +35685,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
35676
35685
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
35677
35686
|
onClick: handleNavigation
|
|
35678
35687
|
}, toDisplayString(title.value), 9, _hoisted_6$3)) : createCommentVNode("", true)
|
|
35679
|
-
], 12, _hoisted_4$
|
|
35688
|
+
], 12, _hoisted_4$b));
|
|
35680
35689
|
};
|
|
35681
35690
|
}
|
|
35682
35691
|
});
|
|
@@ -35719,7 +35728,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
35719
35728
|
const _hoisted_1$x = { id: "lupa-search-results-rating" };
|
|
35720
35729
|
const _hoisted_2$p = { class: "lupa-ratings" };
|
|
35721
35730
|
const _hoisted_3$h = { class: "lupa-ratings-base" };
|
|
35722
|
-
const _hoisted_4$
|
|
35731
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
35723
35732
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
35724
35733
|
const _hoisted_6$2 = ["innerHTML"];
|
|
35725
35734
|
const _hoisted_7$1 = ["href"];
|
|
@@ -35769,7 +35778,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
35769
35778
|
key: index,
|
|
35770
35779
|
innerHTML: star,
|
|
35771
35780
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
35772
|
-
}, null, 8, _hoisted_4$
|
|
35781
|
+
}, null, 8, _hoisted_4$a);
|
|
35773
35782
|
}), 128))
|
|
35774
35783
|
]),
|
|
35775
35784
|
createBaseVNode("div", _hoisted_5$6, [
|
|
@@ -35862,7 +35871,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
35862
35871
|
const _hoisted_1$v = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
35863
35872
|
const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
|
|
35864
35873
|
const _hoisted_3$g = ["disabled"];
|
|
35865
|
-
const _hoisted_4$
|
|
35874
|
+
const _hoisted_4$9 = ["href"];
|
|
35866
35875
|
const _hoisted_5$5 = ["id", "disabled"];
|
|
35867
35876
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
35868
35877
|
__name: "SearchResultsProductAddToCart",
|
|
@@ -35931,7 +35940,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
35931
35940
|
"data-cy": "lupa-add-to-cart",
|
|
35932
35941
|
disabled: !inStockValue.value || loading.value
|
|
35933
35942
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
35934
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
35943
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
|
|
35935
35944
|
], 16, _hoisted_3$g)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
35936
35945
|
key: 1,
|
|
35937
35946
|
id: id.value,
|
|
@@ -35949,7 +35958,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
35949
35958
|
const _hoisted_1$u = ["innerHTML"];
|
|
35950
35959
|
const _hoisted_2$n = { key: 0 };
|
|
35951
35960
|
const _hoisted_3$f = { key: 1 };
|
|
35952
|
-
const _hoisted_4$
|
|
35961
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
35953
35962
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
35954
35963
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
35955
35964
|
__name: "SearchResultsProductCustom",
|
|
@@ -35978,7 +35987,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
35978
35987
|
var _a25;
|
|
35979
35988
|
return (_a25 = props.options.isHtml) != null ? _a25 : false;
|
|
35980
35989
|
});
|
|
35981
|
-
const handleClick = () => __async2(null, null, function* () {
|
|
35990
|
+
const handleClick = (e2) => __async2(null, null, function* () {
|
|
35991
|
+
if (e2 && props.options.stopPropagationOnClick) {
|
|
35992
|
+
e2.stopPropagation();
|
|
35993
|
+
e2.preventDefault();
|
|
35994
|
+
}
|
|
35982
35995
|
if (!props.options.action) {
|
|
35983
35996
|
return;
|
|
35984
35997
|
}
|
|
@@ -35994,7 +36007,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
35994
36007
|
class: className.value
|
|
35995
36008
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
35996
36009
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
35997
|
-
createBaseVNode("div", _hoisted_4$
|
|
36010
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
35998
36011
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
35999
36012
|
]))
|
|
36000
36013
|
], 16));
|
|
@@ -36021,7 +36034,11 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
36021
36034
|
const className = computed(() => {
|
|
36022
36035
|
return props.options.className;
|
|
36023
36036
|
});
|
|
36024
|
-
const handleClick = () => __async2(null, null, function* () {
|
|
36037
|
+
const handleClick = (e2) => __async2(null, null, function* () {
|
|
36038
|
+
if (e2 && props.options.stopPropagationOnClick) {
|
|
36039
|
+
e2.stopPropagation();
|
|
36040
|
+
e2.preventDefault();
|
|
36041
|
+
}
|
|
36025
36042
|
if (!props.options.action) {
|
|
36026
36043
|
return;
|
|
36027
36044
|
}
|
|
@@ -36041,7 +36058,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
36041
36058
|
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
36042
36059
|
const _hoisted_2$m = ["innerHTML"];
|
|
36043
36060
|
const _hoisted_3$e = { class: "lupa-ratings" };
|
|
36044
|
-
const _hoisted_4$
|
|
36061
|
+
const _hoisted_4$7 = ["href"];
|
|
36045
36062
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
36046
36063
|
__name: "SearchResultsProductSingleStarRating",
|
|
36047
36064
|
props: {
|
|
@@ -36079,7 +36096,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36079
36096
|
createBaseVNode("a", {
|
|
36080
36097
|
href: ratingLink.value,
|
|
36081
36098
|
class: "lupa-total-ratings"
|
|
36082
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
36099
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
36083
36100
|
]);
|
|
36084
36101
|
};
|
|
36085
36102
|
}
|
|
@@ -36436,7 +36453,7 @@ const _hoisted_3$c = {
|
|
|
36436
36453
|
class: "lupa-similar-query-label",
|
|
36437
36454
|
"data-cy": "lupa-similar-query-label"
|
|
36438
36455
|
};
|
|
36439
|
-
const _hoisted_4$
|
|
36456
|
+
const _hoisted_4$6 = ["onClick"];
|
|
36440
36457
|
const _hoisted_5$3 = ["innerHTML"];
|
|
36441
36458
|
const _hoisted_6$1 = { key: 0 };
|
|
36442
36459
|
const _hoisted_7 = {
|
|
@@ -36497,7 +36514,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
36497
36514
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
36498
36515
|
}, null, 8, _hoisted_5$3),
|
|
36499
36516
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$1, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
36500
|
-
], 8, _hoisted_4$
|
|
36517
|
+
], 8, _hoisted_4$6)
|
|
36501
36518
|
]),
|
|
36502
36519
|
createBaseVNode("div", _hoisted_7, [
|
|
36503
36520
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
@@ -36829,7 +36846,7 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
|
|
|
36829
36846
|
const _hoisted_1$l = { class: "lupa-related-query-item" };
|
|
36830
36847
|
const _hoisted_2$g = { class: "lupa-related-query-image" };
|
|
36831
36848
|
const _hoisted_3$a = { class: "lupa-related-query-label" };
|
|
36832
|
-
const _hoisted_4$
|
|
36849
|
+
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
36833
36850
|
const _hoisted_5$2 = {
|
|
36834
36851
|
key: 0,
|
|
36835
36852
|
class: "lupa-related-query-count"
|
|
@@ -36941,7 +36958,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
36941
36958
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
36942
36959
|
]),
|
|
36943
36960
|
createBaseVNode("div", _hoisted_3$a, [
|
|
36944
|
-
createBaseVNode("span", _hoisted_4$
|
|
36961
|
+
createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
|
|
36945
36962
|
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
36946
36963
|
])
|
|
36947
36964
|
]);
|
|
@@ -37168,7 +37185,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37168
37185
|
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
37169
37186
|
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
37170
37187
|
const _hoisted_3$7 = { class: "lupa-related-query-label" };
|
|
37171
|
-
const _hoisted_4$
|
|
37188
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
37172
37189
|
const _hoisted_5$1 = {
|
|
37173
37190
|
key: 0,
|
|
37174
37191
|
class: "lupa-related-query-count"
|
|
@@ -37216,7 +37233,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37216
37233
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
37217
37234
|
]),
|
|
37218
37235
|
createBaseVNode("div", _hoisted_3$7, [
|
|
37219
|
-
createBaseVNode("span", _hoisted_4$
|
|
37236
|
+
createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
|
|
37220
37237
|
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$1, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
37221
37238
|
])
|
|
37222
37239
|
]);
|
|
@@ -37360,7 +37377,7 @@ const _hoisted_3$5 = {
|
|
|
37360
37377
|
class: "lupa-empty-results",
|
|
37361
37378
|
"data-cy": "lupa-no-results-in-page"
|
|
37362
37379
|
};
|
|
37363
|
-
const _hoisted_4$
|
|
37380
|
+
const _hoisted_4$3 = {
|
|
37364
37381
|
key: 5,
|
|
37365
37382
|
class: "lupa-empty-results",
|
|
37366
37383
|
"data-cy": "lupa-no-results"
|
|
@@ -37581,7 +37598,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
37581
37598
|
location: "bottom",
|
|
37582
37599
|
sdkOptions: _ctx.options.options
|
|
37583
37600
|
}, null, 8, ["options", "sdkOptions"])
|
|
37584
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
37601
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
37585
37602
|
createVNode(_sfc_main$h, {
|
|
37586
37603
|
emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
|
|
37587
37604
|
currentQueryText: unref(currentQueryText),
|
|
@@ -37617,7 +37634,7 @@ const _hoisted_2$9 = {
|
|
|
37617
37634
|
class: "lupa-category-back"
|
|
37618
37635
|
};
|
|
37619
37636
|
const _hoisted_3$4 = ["href"];
|
|
37620
|
-
const _hoisted_4$
|
|
37637
|
+
const _hoisted_4$2 = {
|
|
37621
37638
|
key: 1,
|
|
37622
37639
|
class: "lupa-child-category-list"
|
|
37623
37640
|
};
|
|
@@ -37677,7 +37694,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
37677
37694
|
onClick: handleNavigationBack
|
|
37678
37695
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$4)
|
|
37679
37696
|
])) : createCommentVNode("", true),
|
|
37680
|
-
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
37697
|
+
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
37681
37698
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
37682
37699
|
return openBlock(), createBlock(_sfc_main$Z, {
|
|
37683
37700
|
key: getCategoryKey(child),
|
|
@@ -39594,12 +39611,13 @@ const _hoisted_1$9 = {
|
|
|
39594
39611
|
key: 0,
|
|
39595
39612
|
class: "lupa-recommendation-section-title"
|
|
39596
39613
|
};
|
|
39597
|
-
const _hoisted_2$6 =
|
|
39614
|
+
const _hoisted_2$6 = ["href"];
|
|
39615
|
+
const _hoisted_3$3 = {
|
|
39598
39616
|
key: 1,
|
|
39599
39617
|
class: "lupa-recommended-products",
|
|
39600
39618
|
"data-cy": "lupa-recommended-products"
|
|
39601
39619
|
};
|
|
39602
|
-
const
|
|
39620
|
+
const _hoisted_4$1 = {
|
|
39603
39621
|
key: 1,
|
|
39604
39622
|
class: "lupa-products",
|
|
39605
39623
|
"data-cy": "lupa-products"
|
|
@@ -39643,6 +39661,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39643
39661
|
var _a25, _b25;
|
|
39644
39662
|
return (_b25 = (_a25 = props.options.recommendationLabels) == null ? void 0 : _a25.title) != null ? _b25 : "";
|
|
39645
39663
|
});
|
|
39664
|
+
const hasTitleLink = computed(() => {
|
|
39665
|
+
var _a25;
|
|
39666
|
+
return Boolean((_a25 = props.options.recommendationLabels) == null ? void 0 : _a25.titleLink);
|
|
39667
|
+
});
|
|
39646
39668
|
const hasRecommendations = computed(() => {
|
|
39647
39669
|
return recommendations2.value.length > 0;
|
|
39648
39670
|
});
|
|
@@ -39732,6 +39754,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39732
39754
|
var _a25, _b25;
|
|
39733
39755
|
return (_b25 = (_a25 = carouselOptions.value) == null ? void 0 : _a25.wrapAround) != null ? _b25 : true;
|
|
39734
39756
|
});
|
|
39757
|
+
const recommendationFilters = computed(() => {
|
|
39758
|
+
return __spreadValues2({}, processExtractionObject(props.options.recommendationFilters));
|
|
39759
|
+
});
|
|
39735
39760
|
const loadLupaRecommendations = () => __async2(null, null, function* () {
|
|
39736
39761
|
var _a25, _b25;
|
|
39737
39762
|
recommendationsType.value = "recommendations_lupasearch";
|
|
@@ -39740,7 +39765,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39740
39765
|
const result2 = yield LupaSearchSdk.recommend(
|
|
39741
39766
|
props.options.queryKey,
|
|
39742
39767
|
itemId.value,
|
|
39743
|
-
|
|
39768
|
+
recommendationFilters.value,
|
|
39744
39769
|
props.options.options
|
|
39745
39770
|
);
|
|
39746
39771
|
if (!result2.success) {
|
|
@@ -39758,14 +39783,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39758
39783
|
});
|
|
39759
39784
|
__expose({ fetch: fetch2 });
|
|
39760
39785
|
return (_ctx, _cache) => {
|
|
39786
|
+
var _a25;
|
|
39761
39787
|
return openBlock(), createElementBlock("div", {
|
|
39762
39788
|
class: "lupa-search-product-recommendations-wrapper",
|
|
39763
39789
|
ref_key: "rootElement",
|
|
39764
39790
|
ref: rootElement
|
|
39765
39791
|
}, [
|
|
39766
39792
|
hasRecommendations.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
39767
|
-
title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9,
|
|
39768
|
-
|
|
39793
|
+
title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, [
|
|
39794
|
+
!hasTitleLink.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
39795
|
+
createTextVNode(toDisplayString(title.value), 1)
|
|
39796
|
+
], 64)) : (openBlock(), createElementBlock("a", {
|
|
39797
|
+
key: 1,
|
|
39798
|
+
href: (_a25 = _ctx.options.recommendationLabels) == null ? void 0 : _a25.titleLink
|
|
39799
|
+
}, toDisplayString(title.value), 9, _hoisted_2$6))
|
|
39800
|
+
])) : createCommentVNode("", true),
|
|
39801
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
39769
39802
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": wrapAround.value }), {
|
|
39770
39803
|
addons: withCtx(() => [
|
|
39771
39804
|
createVNode(unref(Navigation))
|
|
@@ -39789,7 +39822,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39789
39822
|
}), 128))
|
|
39790
39823
|
]),
|
|
39791
39824
|
_: 1
|
|
39792
|
-
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div",
|
|
39825
|
+
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
39793
39826
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
39794
39827
|
return openBlock(), createBlock(_sfc_main$t, {
|
|
39795
39828
|
style: normalizeStyle(columnSize.value),
|