@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.mjs
CHANGED
|
@@ -19782,7 +19782,7 @@ const _hoisted_1$1l = {
|
|
|
19782
19782
|
};
|
|
19783
19783
|
const _hoisted_2$W = { class: "lupa-dialog-content" };
|
|
19784
19784
|
const _hoisted_3$E = { class: "lupa-listening-text" };
|
|
19785
|
-
const _hoisted_4$
|
|
19785
|
+
const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
|
|
19786
19786
|
const _hoisted_5$l = ["aria-label"];
|
|
19787
19787
|
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
19788
19788
|
__name: "VoiceSearchDialog",
|
|
@@ -19896,7 +19896,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
19896
19896
|
}),
|
|
19897
19897
|
createBaseVNode("div", _hoisted_2$W, [
|
|
19898
19898
|
createBaseVNode("p", _hoisted_3$E, toDisplayString(description.value), 1),
|
|
19899
|
-
createBaseVNode("div", _hoisted_4$
|
|
19899
|
+
createBaseVNode("div", _hoisted_4$v, [
|
|
19900
19900
|
createBaseVNode("button", {
|
|
19901
19901
|
class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
|
|
19902
19902
|
onClick: handleRecordingButtonClick,
|
|
@@ -19921,7 +19921,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
19921
19921
|
const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
|
|
19922
19922
|
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
19923
19923
|
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
19924
|
-
const _hoisted_4$
|
|
19924
|
+
const _hoisted_4$u = ["value"];
|
|
19925
19925
|
const _hoisted_5$k = ["aria-label", "placeholder"];
|
|
19926
19926
|
const _hoisted_6$8 = {
|
|
19927
19927
|
key: 0,
|
|
@@ -20074,7 +20074,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
20074
20074
|
"aria-hidden": "true",
|
|
20075
20075
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
20076
20076
|
disabled: ""
|
|
20077
|
-
}, null, 8, _hoisted_4$
|
|
20077
|
+
}, null, 8, _hoisted_4$u),
|
|
20078
20078
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
20079
20079
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
20080
20080
|
}, inputAttributes.value, {
|
|
@@ -20324,7 +20324,7 @@ const _hoisted_3$C = {
|
|
|
20324
20324
|
class: "lupa-suggestion-facet",
|
|
20325
20325
|
"data-cy": "lupa-suggestion-facet"
|
|
20326
20326
|
};
|
|
20327
|
-
const _hoisted_4$
|
|
20327
|
+
const _hoisted_4$t = {
|
|
20328
20328
|
class: "lupa-suggestion-facet-label",
|
|
20329
20329
|
"data-cy": "lupa-suggestion-facet-label"
|
|
20330
20330
|
};
|
|
@@ -20371,7 +20371,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
20371
20371
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20372
20372
|
}, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20373
20373
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
20374
|
-
createBaseVNode("span", _hoisted_4$
|
|
20374
|
+
createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
20375
20375
|
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
20376
20376
|
])) : createCommentVNode("", true)
|
|
20377
20377
|
]);
|
|
@@ -30111,7 +30111,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30111
30111
|
const _hoisted_1$1a = ["innerHTML"];
|
|
30112
30112
|
const _hoisted_2$P = { key: 0 };
|
|
30113
30113
|
const _hoisted_3$B = { key: 1 };
|
|
30114
|
-
const _hoisted_4$
|
|
30114
|
+
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
30115
30115
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
30116
30116
|
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
30117
30117
|
__name: "SearchBoxProductCustom",
|
|
@@ -30144,7 +30144,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
30144
30144
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30145
30145
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30146
30146
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
30147
|
-
createBaseVNode("div", _hoisted_4$
|
|
30147
|
+
createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
30148
30148
|
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
30149
30149
|
]))
|
|
30150
30150
|
], 16));
|
|
@@ -30495,7 +30495,7 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30495
30495
|
const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30496
30496
|
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
30497
30497
|
const _hoisted_3$A = ["disabled"];
|
|
30498
|
-
const _hoisted_4$
|
|
30498
|
+
const _hoisted_4$r = ["href"];
|
|
30499
30499
|
const _hoisted_5$h = ["disabled"];
|
|
30500
30500
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
30501
30501
|
__name: "SearchBoxProductAddToCart",
|
|
@@ -30551,7 +30551,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
30551
30551
|
"data-cy": "lupa-add-to-cart",
|
|
30552
30552
|
disabled: !inStockValue.value || loading.value
|
|
30553
30553
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
30554
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
30554
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
|
|
30555
30555
|
], 16, _hoisted_3$A)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
30556
30556
|
key: 1,
|
|
30557
30557
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -30671,7 +30671,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30671
30671
|
const _hoisted_1$16 = { class: "lupa-badge-title" };
|
|
30672
30672
|
const _hoisted_2$N = ["src"];
|
|
30673
30673
|
const _hoisted_3$z = { key: 1 };
|
|
30674
|
-
const _hoisted_4$
|
|
30674
|
+
const _hoisted_4$q = {
|
|
30675
30675
|
key: 0,
|
|
30676
30676
|
class: "lupa-badge-full-text"
|
|
30677
30677
|
};
|
|
@@ -30715,7 +30715,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
30715
30715
|
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
30716
30716
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30717
30717
|
]),
|
|
30718
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
30718
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
30719
30719
|
], 6);
|
|
30720
30720
|
};
|
|
30721
30721
|
}
|
|
@@ -31456,7 +31456,16 @@ const extractFromHtmlElementAttribute = (options) => {
|
|
|
31456
31456
|
if (attr === "value" && (element == null ? void 0 : element.value)) {
|
|
31457
31457
|
return element.value;
|
|
31458
31458
|
}
|
|
31459
|
-
|
|
31459
|
+
const attributeValue = element.getAttribute(attr);
|
|
31460
|
+
if (attributeValue === null || attributeValue === void 0) {
|
|
31461
|
+
return options.default;
|
|
31462
|
+
}
|
|
31463
|
+
if (options.regex) {
|
|
31464
|
+
const regex = new RegExp(options.regex);
|
|
31465
|
+
const match = attributeValue.match(regex);
|
|
31466
|
+
return match ? match[1] : options.default;
|
|
31467
|
+
}
|
|
31468
|
+
return attributeValue;
|
|
31460
31469
|
};
|
|
31461
31470
|
const getValueFromPath = (obj, path) => {
|
|
31462
31471
|
return path.split(".").reduce((value, key) => value && value[key] || null, obj);
|
|
@@ -31674,7 +31683,7 @@ const _hoisted_3$x = {
|
|
|
31674
31683
|
key: 0,
|
|
31675
31684
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31676
31685
|
};
|
|
31677
|
-
const _hoisted_4$
|
|
31686
|
+
const _hoisted_4$p = {
|
|
31678
31687
|
key: 1,
|
|
31679
31688
|
class: "lupa-panel-title"
|
|
31680
31689
|
};
|
|
@@ -31870,7 +31879,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31870
31879
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
31871
31880
|
}, [
|
|
31872
31881
|
((_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),
|
|
31873
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
31882
|
+
((_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),
|
|
31874
31883
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
31875
31884
|
key: 2,
|
|
31876
31885
|
panel,
|
|
@@ -32368,7 +32377,7 @@ const _hoisted_3$w = {
|
|
|
32368
32377
|
key: 1,
|
|
32369
32378
|
"data-cy": "did-you-mean-label"
|
|
32370
32379
|
};
|
|
32371
|
-
const _hoisted_4$
|
|
32380
|
+
const _hoisted_4$o = { key: 1 };
|
|
32372
32381
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
32373
32382
|
__name: "SearchResultsDidYouMean",
|
|
32374
32383
|
props: {
|
|
@@ -32419,7 +32428,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
32419
32428
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
32420
32429
|
"data-cy": "did-you-mean-value",
|
|
32421
32430
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
32422
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
32431
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
32423
32432
|
]);
|
|
32424
32433
|
}), 128))
|
|
32425
32434
|
])) : createCommentVNode("", true)
|
|
@@ -32469,7 +32478,7 @@ const _hoisted_3$v = {
|
|
|
32469
32478
|
key: 1,
|
|
32470
32479
|
class: "lupa-results-total-count"
|
|
32471
32480
|
};
|
|
32472
|
-
const _hoisted_4$
|
|
32481
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
32473
32482
|
const _hoisted_5$f = ["innerHTML"];
|
|
32474
32483
|
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
32475
32484
|
__name: "SearchResultsTitle",
|
|
@@ -32519,7 +32528,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
32519
32528
|
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32520
32529
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
32521
32530
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32522
|
-
createBaseVNode("span", _hoisted_4$
|
|
32531
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
32523
32532
|
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32524
32533
|
])) : createCommentVNode("", true)
|
|
32525
32534
|
])) : createCommentVNode("", true),
|
|
@@ -32601,7 +32610,7 @@ const _hoisted_3$u = {
|
|
|
32601
32610
|
key: 0,
|
|
32602
32611
|
class: "filter-values"
|
|
32603
32612
|
};
|
|
32604
|
-
const _hoisted_4$
|
|
32613
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
32605
32614
|
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
32606
32615
|
__name: "CurrentFilters",
|
|
32607
32616
|
props: {
|
|
@@ -32693,7 +32702,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
32693
32702
|
}, null, 2)) : createCommentVNode("", true)
|
|
32694
32703
|
]),
|
|
32695
32704
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
32696
|
-
createBaseVNode("div", _hoisted_4$
|
|
32705
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
32697
32706
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32698
32707
|
return openBlock(), createBlock(_sfc_main$$, {
|
|
32699
32708
|
key: filter.key + "_" + filter.value,
|
|
@@ -32762,7 +32771,7 @@ const _hoisted_1$R = {
|
|
|
32762
32771
|
};
|
|
32763
32772
|
const _hoisted_2$D = { class: "lupa-category-back" };
|
|
32764
32773
|
const _hoisted_3$t = ["href"];
|
|
32765
|
-
const _hoisted_4$
|
|
32774
|
+
const _hoisted_4$l = ["href"];
|
|
32766
32775
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
32767
32776
|
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
32768
32777
|
__name: "CategoryFilter",
|
|
@@ -32869,7 +32878,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
32869
32878
|
href: parentUrlLink.value,
|
|
32870
32879
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
32871
32880
|
onClick: handleNavigationParent
|
|
32872
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
32881
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
32873
32882
|
], 2),
|
|
32874
32883
|
createBaseVNode("div", _hoisted_5$e, [
|
|
32875
32884
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
@@ -32890,7 +32899,7 @@ const _hoisted_1$Q = {
|
|
|
32890
32899
|
};
|
|
32891
32900
|
const _hoisted_2$C = ["placeholder"];
|
|
32892
32901
|
const _hoisted_3$s = { class: "lupa-terms-list" };
|
|
32893
|
-
const _hoisted_4$
|
|
32902
|
+
const _hoisted_4$k = ["onClick"];
|
|
32894
32903
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
32895
32904
|
const _hoisted_6$7 = { class: "lupa-term-label" };
|
|
32896
32905
|
const _hoisted_7$4 = {
|
|
@@ -33022,7 +33031,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
33022
33031
|
createBaseVNode("span", _hoisted_6$7, toDisplayString(getItemLabel(item)), 1),
|
|
33023
33032
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$4, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
33024
33033
|
], 2)
|
|
33025
|
-
], 10, _hoisted_4$
|
|
33034
|
+
], 10, _hoisted_4$k);
|
|
33026
33035
|
}), 128))
|
|
33027
33036
|
]),
|
|
33028
33037
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -33939,7 +33948,7 @@ const _hoisted_3$r = {
|
|
|
33939
33948
|
key: 1,
|
|
33940
33949
|
class: "lupa-stats-facet-summary-input"
|
|
33941
33950
|
};
|
|
33942
|
-
const _hoisted_4$
|
|
33951
|
+
const _hoisted_4$j = { class: "lupa-stats-from" };
|
|
33943
33952
|
const _hoisted_5$c = {
|
|
33944
33953
|
key: 0,
|
|
33945
33954
|
class: "lupa-stats-range-label"
|
|
@@ -34177,7 +34186,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
34177
34186
|
return (_ctx, _cache) => {
|
|
34178
34187
|
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
34179
34188
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
34180
|
-
createBaseVNode("div", _hoisted_4$
|
|
34189
|
+
createBaseVNode("div", _hoisted_4$j, [
|
|
34181
34190
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
34182
34191
|
withDirectives(createBaseVNode("input", {
|
|
34183
34192
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -34246,7 +34255,7 @@ const _hoisted_3$q = {
|
|
|
34246
34255
|
key: 0,
|
|
34247
34256
|
class: "lupa-term-count"
|
|
34248
34257
|
};
|
|
34249
|
-
const _hoisted_4$
|
|
34258
|
+
const _hoisted_4$i = {
|
|
34250
34259
|
key: 0,
|
|
34251
34260
|
class: "lupa-facet-level"
|
|
34252
34261
|
};
|
|
@@ -34316,7 +34325,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
34316
34325
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$q, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
34317
34326
|
], 2)
|
|
34318
34327
|
]),
|
|
34319
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
34328
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
34320
34329
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
34321
34330
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
34322
34331
|
key: itemChild.title,
|
|
@@ -34864,7 +34873,7 @@ const _hoisted_1$I = {
|
|
|
34864
34873
|
};
|
|
34865
34874
|
const _hoisted_2$w = { class: "lupa-mobile-sidebar-content" };
|
|
34866
34875
|
const _hoisted_3$o = { class: "lupa-sidebar-top" };
|
|
34867
|
-
const _hoisted_4$
|
|
34876
|
+
const _hoisted_4$h = { class: "lupa-sidebar-title" };
|
|
34868
34877
|
const _hoisted_5$b = {
|
|
34869
34878
|
key: 0,
|
|
34870
34879
|
class: "lupa-sidebar-filter-count"
|
|
@@ -34909,7 +34918,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
34909
34918
|
}),
|
|
34910
34919
|
createBaseVNode("div", _hoisted_2$w, [
|
|
34911
34920
|
createBaseVNode("div", _hoisted_3$o, [
|
|
34912
|
-
createBaseVNode("div", _hoisted_4$
|
|
34921
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
34913
34922
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
34914
34923
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_5$b, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
34915
34924
|
]),
|
|
@@ -34936,7 +34945,7 @@ const _hoisted_3$n = {
|
|
|
34936
34945
|
key: 1,
|
|
34937
34946
|
class: "lupa-search-results-breadcrumb-text"
|
|
34938
34947
|
};
|
|
34939
|
-
const _hoisted_4$
|
|
34948
|
+
const _hoisted_4$g = { key: 2 };
|
|
34940
34949
|
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
34941
34950
|
__name: "SearchResultsBreadcrumbs",
|
|
34942
34951
|
props: {
|
|
@@ -34978,7 +34987,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
34978
34987
|
return handleNavigation(e2, (_a26 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a26 : "");
|
|
34979
34988
|
}
|
|
34980
34989
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
34981
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
34990
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
34982
34991
|
]);
|
|
34983
34992
|
}), 128))
|
|
34984
34993
|
]);
|
|
@@ -35141,7 +35150,7 @@ const _hoisted_2$u = {
|
|
|
35141
35150
|
class: "lupa-page-number-separator"
|
|
35142
35151
|
};
|
|
35143
35152
|
const _hoisted_3$m = ["onClick"];
|
|
35144
|
-
const _hoisted_4$
|
|
35153
|
+
const _hoisted_4$f = {
|
|
35145
35154
|
key: 0,
|
|
35146
35155
|
class: "lupa-page-number-separator"
|
|
35147
35156
|
};
|
|
@@ -35247,7 +35256,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
35247
35256
|
}, toDisplayString(page), 11, _hoisted_3$m);
|
|
35248
35257
|
}), 128)),
|
|
35249
35258
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
35250
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
35259
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
35251
35260
|
createBaseVNode("div", {
|
|
35252
35261
|
class: "lupa-page-number lupa-page-number-last",
|
|
35253
35262
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -35275,7 +35284,7 @@ const _hoisted_3$l = {
|
|
|
35275
35284
|
class: "lupa-select-label",
|
|
35276
35285
|
for: "lupa-page-size-select-dropdown"
|
|
35277
35286
|
};
|
|
35278
|
-
const _hoisted_4$
|
|
35287
|
+
const _hoisted_4$e = ["aria-label"];
|
|
35279
35288
|
const _hoisted_5$a = ["value"];
|
|
35280
35289
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
35281
35290
|
__name: "SearchResultsPageSize",
|
|
@@ -35325,7 +35334,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
35325
35334
|
value: option
|
|
35326
35335
|
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
|
|
35327
35336
|
}), 128))
|
|
35328
|
-
], 40, _hoisted_4$
|
|
35337
|
+
], 40, _hoisted_4$e)
|
|
35329
35338
|
])
|
|
35330
35339
|
]);
|
|
35331
35340
|
};
|
|
@@ -35340,7 +35349,7 @@ const _hoisted_3$k = {
|
|
|
35340
35349
|
class: "lupa-select-label",
|
|
35341
35350
|
for: "lupa-sort-select-dropdown"
|
|
35342
35351
|
};
|
|
35343
|
-
const _hoisted_4$
|
|
35352
|
+
const _hoisted_4$d = ["aria-label"];
|
|
35344
35353
|
const _hoisted_5$9 = ["value"];
|
|
35345
35354
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
35346
35355
|
__name: "SearchResultsSort",
|
|
@@ -35411,7 +35420,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
35411
35420
|
value: option.key
|
|
35412
35421
|
}, toDisplayString(option.label), 9, _hoisted_5$9);
|
|
35413
35422
|
}), 128))
|
|
35414
|
-
], 40, _hoisted_4$
|
|
35423
|
+
], 40, _hoisted_4$d), [
|
|
35415
35424
|
[vModelSelect, selectedKey.value]
|
|
35416
35425
|
])
|
|
35417
35426
|
])
|
|
@@ -35425,7 +35434,7 @@ const _hoisted_2$r = {
|
|
|
35425
35434
|
class: "lupa-toolbar-right-title"
|
|
35426
35435
|
};
|
|
35427
35436
|
const _hoisted_3$j = { key: 2 };
|
|
35428
|
-
const _hoisted_4$
|
|
35437
|
+
const _hoisted_4$c = { key: 4 };
|
|
35429
35438
|
const _hoisted_5$8 = { key: 6 };
|
|
35430
35439
|
const _hoisted_6$4 = { class: "lupa-toolbar-right" };
|
|
35431
35440
|
const _hoisted_7$2 = {
|
|
@@ -35553,7 +35562,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
35553
35562
|
label: searchSummaryLabel.value,
|
|
35554
35563
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
35555
35564
|
onClear: handleClearAll
|
|
35556
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
35565
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
35557
35566
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
35558
35567
|
key: 5,
|
|
35559
35568
|
options: paginationOptions.value.pageSelect,
|
|
@@ -35606,7 +35615,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
35606
35615
|
const _hoisted_1$z = ["title", "innerHTML"];
|
|
35607
35616
|
const _hoisted_2$q = ["title"];
|
|
35608
35617
|
const _hoisted_3$i = ["href", "innerHTML"];
|
|
35609
|
-
const _hoisted_4$
|
|
35618
|
+
const _hoisted_4$b = ["title"];
|
|
35610
35619
|
const _hoisted_5$7 = {
|
|
35611
35620
|
key: 0,
|
|
35612
35621
|
class: "lupa-search-results-product-title-text"
|
|
@@ -35674,7 +35683,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
35674
35683
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
35675
35684
|
onClick: handleNavigation
|
|
35676
35685
|
}, toDisplayString(title.value), 9, _hoisted_6$3)) : createCommentVNode("", true)
|
|
35677
|
-
], 12, _hoisted_4$
|
|
35686
|
+
], 12, _hoisted_4$b));
|
|
35678
35687
|
};
|
|
35679
35688
|
}
|
|
35680
35689
|
});
|
|
@@ -35717,7 +35726,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
35717
35726
|
const _hoisted_1$x = { id: "lupa-search-results-rating" };
|
|
35718
35727
|
const _hoisted_2$p = { class: "lupa-ratings" };
|
|
35719
35728
|
const _hoisted_3$h = { class: "lupa-ratings-base" };
|
|
35720
|
-
const _hoisted_4$
|
|
35729
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
35721
35730
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
35722
35731
|
const _hoisted_6$2 = ["innerHTML"];
|
|
35723
35732
|
const _hoisted_7$1 = ["href"];
|
|
@@ -35767,7 +35776,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
35767
35776
|
key: index,
|
|
35768
35777
|
innerHTML: star,
|
|
35769
35778
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
35770
|
-
}, null, 8, _hoisted_4$
|
|
35779
|
+
}, null, 8, _hoisted_4$a);
|
|
35771
35780
|
}), 128))
|
|
35772
35781
|
]),
|
|
35773
35782
|
createBaseVNode("div", _hoisted_5$6, [
|
|
@@ -35860,7 +35869,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
35860
35869
|
const _hoisted_1$v = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
35861
35870
|
const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
|
|
35862
35871
|
const _hoisted_3$g = ["disabled"];
|
|
35863
|
-
const _hoisted_4$
|
|
35872
|
+
const _hoisted_4$9 = ["href"];
|
|
35864
35873
|
const _hoisted_5$5 = ["id", "disabled"];
|
|
35865
35874
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
35866
35875
|
__name: "SearchResultsProductAddToCart",
|
|
@@ -35929,7 +35938,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
35929
35938
|
"data-cy": "lupa-add-to-cart",
|
|
35930
35939
|
disabled: !inStockValue.value || loading.value
|
|
35931
35940
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
35932
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
35941
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
|
|
35933
35942
|
], 16, _hoisted_3$g)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
35934
35943
|
key: 1,
|
|
35935
35944
|
id: id.value,
|
|
@@ -35947,7 +35956,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
35947
35956
|
const _hoisted_1$u = ["innerHTML"];
|
|
35948
35957
|
const _hoisted_2$n = { key: 0 };
|
|
35949
35958
|
const _hoisted_3$f = { key: 1 };
|
|
35950
|
-
const _hoisted_4$
|
|
35959
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
35951
35960
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
35952
35961
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
35953
35962
|
__name: "SearchResultsProductCustom",
|
|
@@ -35976,7 +35985,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
35976
35985
|
var _a25;
|
|
35977
35986
|
return (_a25 = props.options.isHtml) != null ? _a25 : false;
|
|
35978
35987
|
});
|
|
35979
|
-
const handleClick = () => __async2(null, null, function* () {
|
|
35988
|
+
const handleClick = (e2) => __async2(null, null, function* () {
|
|
35989
|
+
if (e2 && props.options.stopPropagationOnClick) {
|
|
35990
|
+
e2.stopPropagation();
|
|
35991
|
+
e2.preventDefault();
|
|
35992
|
+
}
|
|
35980
35993
|
if (!props.options.action) {
|
|
35981
35994
|
return;
|
|
35982
35995
|
}
|
|
@@ -35992,7 +36005,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
35992
36005
|
class: className.value
|
|
35993
36006
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
35994
36007
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
35995
|
-
createBaseVNode("div", _hoisted_4$
|
|
36008
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
35996
36009
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
35997
36010
|
]))
|
|
35998
36011
|
], 16));
|
|
@@ -36019,7 +36032,11 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
36019
36032
|
const className = computed(() => {
|
|
36020
36033
|
return props.options.className;
|
|
36021
36034
|
});
|
|
36022
|
-
const handleClick = () => __async2(null, null, function* () {
|
|
36035
|
+
const handleClick = (e2) => __async2(null, null, function* () {
|
|
36036
|
+
if (e2 && props.options.stopPropagationOnClick) {
|
|
36037
|
+
e2.stopPropagation();
|
|
36038
|
+
e2.preventDefault();
|
|
36039
|
+
}
|
|
36023
36040
|
if (!props.options.action) {
|
|
36024
36041
|
return;
|
|
36025
36042
|
}
|
|
@@ -36039,7 +36056,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
36039
36056
|
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
36040
36057
|
const _hoisted_2$m = ["innerHTML"];
|
|
36041
36058
|
const _hoisted_3$e = { class: "lupa-ratings" };
|
|
36042
|
-
const _hoisted_4$
|
|
36059
|
+
const _hoisted_4$7 = ["href"];
|
|
36043
36060
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
36044
36061
|
__name: "SearchResultsProductSingleStarRating",
|
|
36045
36062
|
props: {
|
|
@@ -36077,7 +36094,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36077
36094
|
createBaseVNode("a", {
|
|
36078
36095
|
href: ratingLink.value,
|
|
36079
36096
|
class: "lupa-total-ratings"
|
|
36080
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
36097
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
36081
36098
|
]);
|
|
36082
36099
|
};
|
|
36083
36100
|
}
|
|
@@ -36434,7 +36451,7 @@ const _hoisted_3$c = {
|
|
|
36434
36451
|
class: "lupa-similar-query-label",
|
|
36435
36452
|
"data-cy": "lupa-similar-query-label"
|
|
36436
36453
|
};
|
|
36437
|
-
const _hoisted_4$
|
|
36454
|
+
const _hoisted_4$6 = ["onClick"];
|
|
36438
36455
|
const _hoisted_5$3 = ["innerHTML"];
|
|
36439
36456
|
const _hoisted_6$1 = { key: 0 };
|
|
36440
36457
|
const _hoisted_7 = {
|
|
@@ -36495,7 +36512,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
36495
36512
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
36496
36513
|
}, null, 8, _hoisted_5$3),
|
|
36497
36514
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$1, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
36498
|
-
], 8, _hoisted_4$
|
|
36515
|
+
], 8, _hoisted_4$6)
|
|
36499
36516
|
]),
|
|
36500
36517
|
createBaseVNode("div", _hoisted_7, [
|
|
36501
36518
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
@@ -36827,7 +36844,7 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
|
|
|
36827
36844
|
const _hoisted_1$l = { class: "lupa-related-query-item" };
|
|
36828
36845
|
const _hoisted_2$g = { class: "lupa-related-query-image" };
|
|
36829
36846
|
const _hoisted_3$a = { class: "lupa-related-query-label" };
|
|
36830
|
-
const _hoisted_4$
|
|
36847
|
+
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
36831
36848
|
const _hoisted_5$2 = {
|
|
36832
36849
|
key: 0,
|
|
36833
36850
|
class: "lupa-related-query-count"
|
|
@@ -36939,7 +36956,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
36939
36956
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
36940
36957
|
]),
|
|
36941
36958
|
createBaseVNode("div", _hoisted_3$a, [
|
|
36942
|
-
createBaseVNode("span", _hoisted_4$
|
|
36959
|
+
createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
|
|
36943
36960
|
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
36944
36961
|
])
|
|
36945
36962
|
]);
|
|
@@ -37166,7 +37183,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37166
37183
|
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
37167
37184
|
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
37168
37185
|
const _hoisted_3$7 = { class: "lupa-related-query-label" };
|
|
37169
|
-
const _hoisted_4$
|
|
37186
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
37170
37187
|
const _hoisted_5$1 = {
|
|
37171
37188
|
key: 0,
|
|
37172
37189
|
class: "lupa-related-query-count"
|
|
@@ -37214,7 +37231,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37214
37231
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
37215
37232
|
]),
|
|
37216
37233
|
createBaseVNode("div", _hoisted_3$7, [
|
|
37217
|
-
createBaseVNode("span", _hoisted_4$
|
|
37234
|
+
createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
|
|
37218
37235
|
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$1, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
37219
37236
|
])
|
|
37220
37237
|
]);
|
|
@@ -37358,7 +37375,7 @@ const _hoisted_3$5 = {
|
|
|
37358
37375
|
class: "lupa-empty-results",
|
|
37359
37376
|
"data-cy": "lupa-no-results-in-page"
|
|
37360
37377
|
};
|
|
37361
|
-
const _hoisted_4$
|
|
37378
|
+
const _hoisted_4$3 = {
|
|
37362
37379
|
key: 5,
|
|
37363
37380
|
class: "lupa-empty-results",
|
|
37364
37381
|
"data-cy": "lupa-no-results"
|
|
@@ -37579,7 +37596,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
37579
37596
|
location: "bottom",
|
|
37580
37597
|
sdkOptions: _ctx.options.options
|
|
37581
37598
|
}, null, 8, ["options", "sdkOptions"])
|
|
37582
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
37599
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
37583
37600
|
createVNode(_sfc_main$h, {
|
|
37584
37601
|
emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
|
|
37585
37602
|
currentQueryText: unref(currentQueryText),
|
|
@@ -37615,7 +37632,7 @@ const _hoisted_2$9 = {
|
|
|
37615
37632
|
class: "lupa-category-back"
|
|
37616
37633
|
};
|
|
37617
37634
|
const _hoisted_3$4 = ["href"];
|
|
37618
|
-
const _hoisted_4$
|
|
37635
|
+
const _hoisted_4$2 = {
|
|
37619
37636
|
key: 1,
|
|
37620
37637
|
class: "lupa-child-category-list"
|
|
37621
37638
|
};
|
|
@@ -37675,7 +37692,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
37675
37692
|
onClick: handleNavigationBack
|
|
37676
37693
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$4)
|
|
37677
37694
|
])) : createCommentVNode("", true),
|
|
37678
|
-
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
37695
|
+
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
37679
37696
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
37680
37697
|
return openBlock(), createBlock(_sfc_main$Z, {
|
|
37681
37698
|
key: getCategoryKey(child),
|
|
@@ -39592,12 +39609,13 @@ const _hoisted_1$9 = {
|
|
|
39592
39609
|
key: 0,
|
|
39593
39610
|
class: "lupa-recommendation-section-title"
|
|
39594
39611
|
};
|
|
39595
|
-
const _hoisted_2$6 =
|
|
39612
|
+
const _hoisted_2$6 = ["href"];
|
|
39613
|
+
const _hoisted_3$3 = {
|
|
39596
39614
|
key: 1,
|
|
39597
39615
|
class: "lupa-recommended-products",
|
|
39598
39616
|
"data-cy": "lupa-recommended-products"
|
|
39599
39617
|
};
|
|
39600
|
-
const
|
|
39618
|
+
const _hoisted_4$1 = {
|
|
39601
39619
|
key: 1,
|
|
39602
39620
|
class: "lupa-products",
|
|
39603
39621
|
"data-cy": "lupa-products"
|
|
@@ -39641,6 +39659,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39641
39659
|
var _a25, _b25;
|
|
39642
39660
|
return (_b25 = (_a25 = props.options.recommendationLabels) == null ? void 0 : _a25.title) != null ? _b25 : "";
|
|
39643
39661
|
});
|
|
39662
|
+
const hasTitleLink = computed(() => {
|
|
39663
|
+
var _a25;
|
|
39664
|
+
return Boolean((_a25 = props.options.recommendationLabels) == null ? void 0 : _a25.titleLink);
|
|
39665
|
+
});
|
|
39644
39666
|
const hasRecommendations = computed(() => {
|
|
39645
39667
|
return recommendations2.value.length > 0;
|
|
39646
39668
|
});
|
|
@@ -39730,6 +39752,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39730
39752
|
var _a25, _b25;
|
|
39731
39753
|
return (_b25 = (_a25 = carouselOptions.value) == null ? void 0 : _a25.wrapAround) != null ? _b25 : true;
|
|
39732
39754
|
});
|
|
39755
|
+
const recommendationFilters = computed(() => {
|
|
39756
|
+
return __spreadValues2({}, processExtractionObject(props.options.recommendationFilters));
|
|
39757
|
+
});
|
|
39733
39758
|
const loadLupaRecommendations = () => __async2(null, null, function* () {
|
|
39734
39759
|
var _a25, _b25;
|
|
39735
39760
|
recommendationsType.value = "recommendations_lupasearch";
|
|
@@ -39738,7 +39763,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39738
39763
|
const result2 = yield LupaSearchSdk.recommend(
|
|
39739
39764
|
props.options.queryKey,
|
|
39740
39765
|
itemId.value,
|
|
39741
|
-
|
|
39766
|
+
recommendationFilters.value,
|
|
39742
39767
|
props.options.options
|
|
39743
39768
|
);
|
|
39744
39769
|
if (!result2.success) {
|
|
@@ -39756,14 +39781,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39756
39781
|
});
|
|
39757
39782
|
__expose({ fetch: fetch2 });
|
|
39758
39783
|
return (_ctx, _cache) => {
|
|
39784
|
+
var _a25;
|
|
39759
39785
|
return openBlock(), createElementBlock("div", {
|
|
39760
39786
|
class: "lupa-search-product-recommendations-wrapper",
|
|
39761
39787
|
ref_key: "rootElement",
|
|
39762
39788
|
ref: rootElement
|
|
39763
39789
|
}, [
|
|
39764
39790
|
hasRecommendations.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
39765
|
-
title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9,
|
|
39766
|
-
|
|
39791
|
+
title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, [
|
|
39792
|
+
!hasTitleLink.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
39793
|
+
createTextVNode(toDisplayString(title.value), 1)
|
|
39794
|
+
], 64)) : (openBlock(), createElementBlock("a", {
|
|
39795
|
+
key: 1,
|
|
39796
|
+
href: (_a25 = _ctx.options.recommendationLabels) == null ? void 0 : _a25.titleLink
|
|
39797
|
+
}, toDisplayString(title.value), 9, _hoisted_2$6))
|
|
39798
|
+
])) : createCommentVNode("", true),
|
|
39799
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
39767
39800
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": wrapAround.value }), {
|
|
39768
39801
|
addons: withCtx(() => [
|
|
39769
39802
|
createVNode(unref(Navigation))
|
|
@@ -39787,7 +39820,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
39787
39820
|
}), 128))
|
|
39788
39821
|
]),
|
|
39789
39822
|
_: 1
|
|
39790
|
-
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div",
|
|
39823
|
+
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
39791
39824
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
39792
39825
|
return openBlock(), createBlock(_sfc_main$t, {
|
|
39793
39826
|
style: normalizeStyle(columnSize.value),
|