@getlupa/client 1.15.16 → 1.16.1
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 +390 -290
- package/dist/lupaSearch.js +390 -290
- package/dist/lupaSearch.mjs +390 -290
- package/dist/lupaSearch.umd.js +390 -290
- package/dist/src/modules/pluginManager/PluginConfigurationMerger.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -8695,8 +8695,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
8695
8695
|
});
|
|
8696
8696
|
const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
|
|
8697
8697
|
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
8698
|
-
const _hoisted_3$
|
|
8699
|
-
const _hoisted_4$
|
|
8698
|
+
const _hoisted_3$C = { id: "lupa-search-box-input" };
|
|
8699
|
+
const _hoisted_4$s = ["value"];
|
|
8700
8700
|
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8701
8701
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8702
8702
|
const _hoisted_7$7 = [
|
|
@@ -8706,7 +8706,7 @@ const _hoisted_8$3 = {
|
|
|
8706
8706
|
key: 0,
|
|
8707
8707
|
class: "lupa-close-label"
|
|
8708
8708
|
};
|
|
8709
|
-
const _sfc_main$
|
|
8709
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
8710
8710
|
__name: "SearchBoxInput",
|
|
8711
8711
|
props: {
|
|
8712
8712
|
options: {},
|
|
@@ -8797,13 +8797,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
8797
8797
|
onClick: clear2
|
|
8798
8798
|
}, null, 2)
|
|
8799
8799
|
]),
|
|
8800
|
-
createBaseVNode("div", _hoisted_3$
|
|
8800
|
+
createBaseVNode("div", _hoisted_3$C, [
|
|
8801
8801
|
createBaseVNode("input", {
|
|
8802
8802
|
class: "lupa-hint",
|
|
8803
8803
|
"aria-hidden": "true",
|
|
8804
8804
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8805
8805
|
disabled: ""
|
|
8806
|
-
}, null, 8, _hoisted_4$
|
|
8806
|
+
}, null, 8, _hoisted_4$s),
|
|
8807
8807
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8808
8808
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8809
8809
|
}, inputAttributes.value, {
|
|
@@ -8836,7 +8836,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
8836
8836
|
};
|
|
8837
8837
|
}
|
|
8838
8838
|
});
|
|
8839
|
-
const _sfc_main$
|
|
8839
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
8840
8840
|
__name: "SearchBoxMoreResults",
|
|
8841
8841
|
props: {
|
|
8842
8842
|
labels: {},
|
|
@@ -8875,7 +8875,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
8875
8875
|
});
|
|
8876
8876
|
const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
|
|
8877
8877
|
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
8878
|
-
const _sfc_main$
|
|
8878
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
8879
8879
|
__name: "SearchBoxHistoryItem",
|
|
8880
8880
|
props: {
|
|
8881
8881
|
item: {},
|
|
@@ -8910,7 +8910,7 @@ const _hoisted_1$1f = {
|
|
|
8910
8910
|
key: 0,
|
|
8911
8911
|
class: "lupa-search-box-history-panel"
|
|
8912
8912
|
};
|
|
8913
|
-
const _sfc_main$
|
|
8913
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8914
8914
|
__name: "SearchBoxHistoryPanel",
|
|
8915
8915
|
props: {
|
|
8916
8916
|
options: {}
|
|
@@ -8953,7 +8953,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
8953
8953
|
return (_ctx, _cache) => {
|
|
8954
8954
|
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8955
8955
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8956
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8956
|
+
return openBlock(), createBlock(_sfc_main$1s, {
|
|
8957
8957
|
key: item,
|
|
8958
8958
|
item,
|
|
8959
8959
|
highlighted: index === highlightIndex.value,
|
|
@@ -8970,7 +8970,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
8970
8970
|
}
|
|
8971
8971
|
});
|
|
8972
8972
|
const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
|
|
8973
|
-
const _sfc_main$
|
|
8973
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8974
8974
|
__name: "SearchBoxNoResults",
|
|
8975
8975
|
props: {
|
|
8976
8976
|
labels: {}
|
|
@@ -9015,12 +9015,12 @@ const _hoisted_2$T = {
|
|
|
9015
9015
|
"data-cy": "lupa-suggestion-value",
|
|
9016
9016
|
class: "lupa-suggestion-value"
|
|
9017
9017
|
};
|
|
9018
|
-
const _hoisted_3$
|
|
9018
|
+
const _hoisted_3$B = {
|
|
9019
9019
|
key: 2,
|
|
9020
9020
|
class: "lupa-suggestion-facet",
|
|
9021
9021
|
"data-cy": "lupa-suggestion-facet"
|
|
9022
9022
|
};
|
|
9023
|
-
const _hoisted_4$
|
|
9023
|
+
const _hoisted_4$r = {
|
|
9024
9024
|
class: "lupa-suggestion-facet-label",
|
|
9025
9025
|
"data-cy": "lupa-suggestion-facet-label"
|
|
9026
9026
|
};
|
|
@@ -9028,7 +9028,7 @@ const _hoisted_5$i = {
|
|
|
9028
9028
|
class: "lupa-suggestion-facet-value",
|
|
9029
9029
|
"data-cy": "lupa-suggestion-facet-value"
|
|
9030
9030
|
};
|
|
9031
|
-
const _sfc_main$
|
|
9031
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
9032
9032
|
__name: "SearchBoxSuggestion",
|
|
9033
9033
|
props: {
|
|
9034
9034
|
suggestion: {},
|
|
@@ -9065,8 +9065,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
9065
9065
|
"data-cy": "lupa-suggestion-value",
|
|
9066
9066
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
9067
9067
|
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
9068
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9069
|
-
createBaseVNode("span", _hoisted_4$
|
|
9068
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
9069
|
+
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
9070
9070
|
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
9071
9071
|
])) : createCommentVNode("", true)
|
|
9072
9072
|
]);
|
|
@@ -9077,7 +9077,7 @@ const _hoisted_1$1c = {
|
|
|
9077
9077
|
id: "lupa-search-box-suggestions",
|
|
9078
9078
|
"data-cy": "lupa-search-box-suggestions"
|
|
9079
9079
|
};
|
|
9080
|
-
const _sfc_main$
|
|
9080
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
9081
9081
|
__name: "SearchBoxSuggestions",
|
|
9082
9082
|
props: {
|
|
9083
9083
|
items: {},
|
|
@@ -9139,7 +9139,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
9139
9139
|
return (_ctx, _cache) => {
|
|
9140
9140
|
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
9141
9141
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9142
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9142
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
9143
9143
|
key: getSuggestionKey(item),
|
|
9144
9144
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9145
9145
|
suggestion: item,
|
|
@@ -9167,7 +9167,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
9167
9167
|
}, timeout);
|
|
9168
9168
|
};
|
|
9169
9169
|
};
|
|
9170
|
-
const _sfc_main$
|
|
9170
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
9171
9171
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9172
9172
|
props: {
|
|
9173
9173
|
panel: {},
|
|
@@ -9209,7 +9209,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
9209
9209
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9210
9210
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9211
9211
|
return (_ctx, _cache) => {
|
|
9212
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9212
|
+
return openBlock(), createBlock(_sfc_main$1o, {
|
|
9213
9213
|
items: searchResult.value,
|
|
9214
9214
|
highlight: _ctx.panel.highlight,
|
|
9215
9215
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18300,7 +18300,7 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
18300
18300
|
};
|
|
18301
18301
|
const _hoisted_1$1b = ["src"];
|
|
18302
18302
|
const _hoisted_2$S = ["src"];
|
|
18303
|
-
const _sfc_main$
|
|
18303
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
18304
18304
|
__name: "ProductImage",
|
|
18305
18305
|
props: {
|
|
18306
18306
|
item: {},
|
|
@@ -18455,7 +18455,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
18455
18455
|
};
|
|
18456
18456
|
}
|
|
18457
18457
|
});
|
|
18458
|
-
const _sfc_main$
|
|
18458
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
18459
18459
|
__name: "SearchBoxProductImage",
|
|
18460
18460
|
props: {
|
|
18461
18461
|
item: {},
|
|
@@ -18463,7 +18463,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
18463
18463
|
},
|
|
18464
18464
|
setup(__props) {
|
|
18465
18465
|
return (_ctx, _cache) => {
|
|
18466
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18466
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
18467
18467
|
item: _ctx.item,
|
|
18468
18468
|
options: _ctx.options,
|
|
18469
18469
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18477,7 +18477,7 @@ const _hoisted_2$R = {
|
|
|
18477
18477
|
key: 1,
|
|
18478
18478
|
class: "lupa-search-box-product-title"
|
|
18479
18479
|
};
|
|
18480
|
-
const _sfc_main$
|
|
18480
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
18481
18481
|
__name: "SearchBoxProductTitle",
|
|
18482
18482
|
props: {
|
|
18483
18483
|
item: {},
|
|
@@ -18511,7 +18511,7 @@ const _hoisted_2$Q = {
|
|
|
18511
18511
|
key: 1,
|
|
18512
18512
|
class: "lupa-search-box-product-description"
|
|
18513
18513
|
};
|
|
18514
|
-
const _sfc_main$
|
|
18514
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18515
18515
|
__name: "SearchBoxProductDescription",
|
|
18516
18516
|
props: {
|
|
18517
18517
|
item: {},
|
|
@@ -18539,7 +18539,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
18539
18539
|
}
|
|
18540
18540
|
});
|
|
18541
18541
|
const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
|
|
18542
|
-
const _sfc_main$
|
|
18542
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18543
18543
|
__name: "SearchBoxProductPrice",
|
|
18544
18544
|
props: {
|
|
18545
18545
|
item: {},
|
|
@@ -18563,7 +18563,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
18563
18563
|
};
|
|
18564
18564
|
}
|
|
18565
18565
|
});
|
|
18566
|
-
const _sfc_main$
|
|
18566
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18567
18567
|
__name: "SearchBoxProductRegularPrice",
|
|
18568
18568
|
props: {
|
|
18569
18569
|
item: {},
|
|
@@ -18592,10 +18592,10 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18592
18592
|
});
|
|
18593
18593
|
const _hoisted_1$17 = ["innerHTML"];
|
|
18594
18594
|
const _hoisted_2$P = { key: 0 };
|
|
18595
|
-
const _hoisted_3$
|
|
18596
|
-
const _hoisted_4$
|
|
18595
|
+
const _hoisted_3$A = { key: 1 };
|
|
18596
|
+
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
18597
18597
|
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18598
|
-
const _sfc_main$
|
|
18598
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18599
18599
|
__name: "SearchBoxProductCustom",
|
|
18600
18600
|
props: {
|
|
18601
18601
|
item: {},
|
|
@@ -18625,8 +18625,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18625
18625
|
key: 1,
|
|
18626
18626
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18627
18627
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18628
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18629
|
-
createBaseVNode("div", _hoisted_4$
|
|
18628
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
18629
|
+
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
18630
18630
|
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18631
18631
|
]))
|
|
18632
18632
|
], 16));
|
|
@@ -18634,7 +18634,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18634
18634
|
}
|
|
18635
18635
|
});
|
|
18636
18636
|
const _hoisted_1$16 = ["innerHTML"];
|
|
18637
|
-
const _sfc_main$
|
|
18637
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18638
18638
|
__name: "SearchBoxProductCustomHtml",
|
|
18639
18639
|
props: {
|
|
18640
18640
|
item: {},
|
|
@@ -18780,8 +18780,11 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18780
18780
|
return hasResults.value && ((_a = searchResult.value.offset) != null ? _a : 0) >= totalItems.value;
|
|
18781
18781
|
}
|
|
18782
18782
|
);
|
|
18783
|
-
const setSidebarState = ({
|
|
18784
|
-
|
|
18783
|
+
const setSidebarState = ({
|
|
18784
|
+
visible,
|
|
18785
|
+
disableBodyScrolling = true
|
|
18786
|
+
}) => {
|
|
18787
|
+
if (visible && disableBodyScrolling) {
|
|
18785
18788
|
disableBodyScroll();
|
|
18786
18789
|
} else {
|
|
18787
18790
|
enableBodyScroll();
|
|
@@ -18895,8 +18898,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18895
18898
|
});
|
|
18896
18899
|
const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18897
18900
|
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
18898
|
-
const _hoisted_3$
|
|
18899
|
-
const _sfc_main$
|
|
18901
|
+
const _hoisted_3$z = ["onClick", "disabled"];
|
|
18902
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18900
18903
|
__name: "SearchBoxProductAddToCart",
|
|
18901
18904
|
props: {
|
|
18902
18905
|
item: {},
|
|
@@ -18938,7 +18941,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18938
18941
|
"data-cy": "lupa-add-to-cart",
|
|
18939
18942
|
type: "button",
|
|
18940
18943
|
disabled: !inStockValue.value || loading.value
|
|
18941
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$
|
|
18944
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$z)
|
|
18942
18945
|
])
|
|
18943
18946
|
]);
|
|
18944
18947
|
};
|
|
@@ -18950,17 +18953,17 @@ const _hoisted_1$14 = {
|
|
|
18950
18953
|
};
|
|
18951
18954
|
const __default__$4 = {
|
|
18952
18955
|
components: {
|
|
18953
|
-
SearchBoxProductImage: _sfc_main$
|
|
18954
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18955
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18956
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18957
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18958
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18959
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18960
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18956
|
+
SearchBoxProductImage: _sfc_main$1l,
|
|
18957
|
+
SearchBoxProductTitle: _sfc_main$1k,
|
|
18958
|
+
SearchBoxProductDescription: _sfc_main$1j,
|
|
18959
|
+
SearchBoxProductPrice: _sfc_main$1i,
|
|
18960
|
+
SearchBoxProductRegularPrice: _sfc_main$1h,
|
|
18961
|
+
SearchBoxProductCustom: _sfc_main$1g,
|
|
18962
|
+
SearchBoxProductCustomHtml: _sfc_main$1f,
|
|
18963
|
+
SearchBoxProductAddToCart: _sfc_main$1e
|
|
18961
18964
|
}
|
|
18962
18965
|
};
|
|
18963
|
-
const _sfc_main$
|
|
18966
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18964
18967
|
__name: "SearchBoxProductElement",
|
|
18965
18968
|
props: {
|
|
18966
18969
|
item: {},
|
|
@@ -19046,12 +19049,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19046
19049
|
}));
|
|
19047
19050
|
const _hoisted_1$13 = { class: "lupa-badge-title" };
|
|
19048
19051
|
const _hoisted_2$N = ["src"];
|
|
19049
|
-
const _hoisted_3$
|
|
19050
|
-
const _hoisted_4$
|
|
19052
|
+
const _hoisted_3$y = { key: 1 };
|
|
19053
|
+
const _hoisted_4$p = {
|
|
19051
19054
|
key: 0,
|
|
19052
19055
|
class: "lupa-badge-full-text"
|
|
19053
19056
|
};
|
|
19054
|
-
const _sfc_main$
|
|
19057
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
19055
19058
|
__name: "SearchResultGeneratedBadge",
|
|
19056
19059
|
props: {
|
|
19057
19060
|
options: {},
|
|
@@ -19089,15 +19092,15 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
19089
19092
|
key: 0,
|
|
19090
19093
|
src: image.value
|
|
19091
19094
|
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
19092
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
19095
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
19093
19096
|
]),
|
|
19094
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
19097
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
19095
19098
|
], 6);
|
|
19096
19099
|
};
|
|
19097
19100
|
}
|
|
19098
19101
|
});
|
|
19099
19102
|
const _hoisted_1$12 = { class: "lupa-generated-badges" };
|
|
19100
|
-
const _sfc_main$
|
|
19103
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
19101
19104
|
__name: "SearchResultGeneratedBadges",
|
|
19102
19105
|
props: {
|
|
19103
19106
|
options: {}
|
|
@@ -19125,7 +19128,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
19125
19128
|
return (_ctx, _cache) => {
|
|
19126
19129
|
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
19127
19130
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19128
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19131
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19129
19132
|
key: badge.id,
|
|
19130
19133
|
badge,
|
|
19131
19134
|
options: _ctx.options
|
|
@@ -19136,7 +19139,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
19136
19139
|
}
|
|
19137
19140
|
});
|
|
19138
19141
|
const _hoisted_1$11 = ["innerHTML"];
|
|
19139
|
-
const _sfc_main$
|
|
19142
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
19140
19143
|
__name: "CustomBadge",
|
|
19141
19144
|
props: {
|
|
19142
19145
|
badge: {}
|
|
@@ -19162,7 +19165,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
19162
19165
|
}
|
|
19163
19166
|
});
|
|
19164
19167
|
const _hoisted_1$10 = { class: "lupa-text-badges" };
|
|
19165
|
-
const _sfc_main$
|
|
19168
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
19166
19169
|
__name: "TextBadge",
|
|
19167
19170
|
props: {
|
|
19168
19171
|
badge: {}
|
|
@@ -19189,7 +19192,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
19189
19192
|
});
|
|
19190
19193
|
const _hoisted_1$$ = { class: "lupa-image-badges" };
|
|
19191
19194
|
const _hoisted_2$M = ["src"];
|
|
19192
|
-
const _sfc_main$
|
|
19195
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
19193
19196
|
__name: "ImageBadge",
|
|
19194
19197
|
props: {
|
|
19195
19198
|
badge: {}
|
|
@@ -19224,7 +19227,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
19224
19227
|
};
|
|
19225
19228
|
}
|
|
19226
19229
|
});
|
|
19227
|
-
const _sfc_main$
|
|
19230
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19228
19231
|
__name: "DiscountBadge",
|
|
19229
19232
|
props: {
|
|
19230
19233
|
badge: {}
|
|
@@ -19285,13 +19288,13 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
19285
19288
|
const _hoisted_1$_ = { id: "lupa-search-results-badges" };
|
|
19286
19289
|
const __default__$3 = {
|
|
19287
19290
|
components: {
|
|
19288
|
-
CustomBadge: _sfc_main$
|
|
19289
|
-
TextBadge: _sfc_main$
|
|
19290
|
-
ImageBadge: _sfc_main$
|
|
19291
|
-
DiscountBadge: _sfc_main$
|
|
19291
|
+
CustomBadge: _sfc_main$1a,
|
|
19292
|
+
TextBadge: _sfc_main$19,
|
|
19293
|
+
ImageBadge: _sfc_main$18,
|
|
19294
|
+
DiscountBadge: _sfc_main$17
|
|
19292
19295
|
}
|
|
19293
19296
|
};
|
|
19294
|
-
const _sfc_main$
|
|
19297
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19295
19298
|
__name: "SearchResultsBadgeWrapper",
|
|
19296
19299
|
props: {
|
|
19297
19300
|
position: {},
|
|
@@ -19365,7 +19368,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19365
19368
|
badge
|
|
19366
19369
|
}, null, 8, ["badge"]);
|
|
19367
19370
|
}), 128)),
|
|
19368
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19371
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
19369
19372
|
key: 0,
|
|
19370
19373
|
options: _ctx.options
|
|
19371
19374
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19376,11 +19379,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19376
19379
|
}));
|
|
19377
19380
|
const _hoisted_1$Z = ["href"];
|
|
19378
19381
|
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
19379
|
-
const _hoisted_3$
|
|
19382
|
+
const _hoisted_3$x = {
|
|
19380
19383
|
key: 0,
|
|
19381
19384
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19382
19385
|
};
|
|
19383
|
-
const _sfc_main$
|
|
19386
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
19384
19387
|
__name: "SearchBoxProduct",
|
|
19385
19388
|
props: {
|
|
19386
19389
|
item: {},
|
|
@@ -19466,7 +19469,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
19466
19469
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19467
19470
|
}, [
|
|
19468
19471
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19469
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19472
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
19470
19473
|
class: "lupa-search-box-product-element",
|
|
19471
19474
|
item: _ctx.item,
|
|
19472
19475
|
element,
|
|
@@ -19479,7 +19482,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
19479
19482
|
createBaseVNode("div", _hoisted_2$L, [
|
|
19480
19483
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19481
19484
|
var _a;
|
|
19482
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19485
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
19483
19486
|
key: element.key,
|
|
19484
19487
|
class: "lupa-search-box-product-element",
|
|
19485
19488
|
item: _ctx.item,
|
|
@@ -19490,7 +19493,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
19490
19493
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19491
19494
|
name: "badges",
|
|
19492
19495
|
fn: withCtx(() => [
|
|
19493
|
-
createVNode(_sfc_main$
|
|
19496
|
+
createVNode(_sfc_main$16, {
|
|
19494
19497
|
options: badgeOptions.value,
|
|
19495
19498
|
position: "card"
|
|
19496
19499
|
}, null, 8, ["options"])
|
|
@@ -19500,8 +19503,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
19500
19503
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19501
19504
|
}), 128))
|
|
19502
19505
|
]),
|
|
19503
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19504
|
-
createVNode(_sfc_main$
|
|
19506
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
19507
|
+
createVNode(_sfc_main$1d, {
|
|
19505
19508
|
class: "lupa-search-box-product-element",
|
|
19506
19509
|
item: _ctx.item,
|
|
19507
19510
|
element: addToCartElement.value,
|
|
@@ -19583,7 +19586,7 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
19583
19586
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
19584
19587
|
});
|
|
19585
19588
|
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
19586
|
-
const _sfc_main$
|
|
19589
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
19587
19590
|
__name: "SearchBoxProducts",
|
|
19588
19591
|
props: {
|
|
19589
19592
|
items: {},
|
|
@@ -19663,7 +19666,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19663
19666
|
itemClicked: handleProductClick
|
|
19664
19667
|
});
|
|
19665
19668
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19666
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19669
|
+
return openBlock(), createBlock(_sfc_main$15, {
|
|
19667
19670
|
key: index,
|
|
19668
19671
|
item,
|
|
19669
19672
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19680,7 +19683,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19680
19683
|
});
|
|
19681
19684
|
const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19682
19685
|
const _hoisted_2$K = { key: 0 };
|
|
19683
|
-
const _sfc_main$
|
|
19686
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19684
19687
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19685
19688
|
props: {
|
|
19686
19689
|
options: {},
|
|
@@ -19790,7 +19793,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
19790
19793
|
}
|
|
19791
19794
|
return parsedObject;
|
|
19792
19795
|
};
|
|
19793
|
-
const _sfc_main$
|
|
19796
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19794
19797
|
__name: "SearchBoxProductsWrapper",
|
|
19795
19798
|
props: {
|
|
19796
19799
|
panel: {},
|
|
@@ -19855,7 +19858,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19855
19858
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19856
19859
|
return (_ctx, _cache) => {
|
|
19857
19860
|
var _a, _b;
|
|
19858
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19861
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19859
19862
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19860
19863
|
panelOptions: _ctx.panel,
|
|
19861
19864
|
labels: _ctx.labels,
|
|
@@ -19865,7 +19868,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19865
19868
|
default: withCtx(() => {
|
|
19866
19869
|
var _a2;
|
|
19867
19870
|
return [
|
|
19868
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
19871
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$13, {
|
|
19869
19872
|
key: 0,
|
|
19870
19873
|
options: _ctx.searchBoxOptions,
|
|
19871
19874
|
panel: _ctx.panel,
|
|
@@ -19886,7 +19889,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19886
19889
|
};
|
|
19887
19890
|
}
|
|
19888
19891
|
});
|
|
19889
|
-
const _sfc_main$
|
|
19892
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19890
19893
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19891
19894
|
props: {
|
|
19892
19895
|
panel: {},
|
|
@@ -19958,7 +19961,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
19958
19961
|
});
|
|
19959
19962
|
return (_ctx, _cache) => {
|
|
19960
19963
|
var _a, _b;
|
|
19961
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19964
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19962
19965
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19963
19966
|
panelOptions: documentPanelOptions.value,
|
|
19964
19967
|
labels: _ctx.labels,
|
|
@@ -19981,11 +19984,11 @@ const _hoisted_1$W = {
|
|
|
19981
19984
|
id: "lupa-search-box-panel"
|
|
19982
19985
|
};
|
|
19983
19986
|
const _hoisted_2$J = ["data-cy"];
|
|
19984
|
-
const _hoisted_3$
|
|
19987
|
+
const _hoisted_3$w = {
|
|
19985
19988
|
key: 0,
|
|
19986
19989
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19987
19990
|
};
|
|
19988
|
-
const _hoisted_4$
|
|
19991
|
+
const _hoisted_4$o = {
|
|
19989
19992
|
key: 1,
|
|
19990
19993
|
class: "lupa-panel-title"
|
|
19991
19994
|
};
|
|
@@ -19995,12 +19998,12 @@ const _hoisted_5$g = {
|
|
|
19995
19998
|
};
|
|
19996
19999
|
const __default__$2 = {
|
|
19997
20000
|
components: {
|
|
19998
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19999
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
20000
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
20001
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1n,
|
|
20002
|
+
SearchBoxProductsWrapper: _sfc_main$12,
|
|
20003
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$11
|
|
20001
20004
|
}
|
|
20002
20005
|
};
|
|
20003
|
-
const _sfc_main
|
|
20006
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
20004
20007
|
__name: "SearchBoxMainPanel",
|
|
20005
20008
|
props: {
|
|
20006
20009
|
options: {},
|
|
@@ -20177,8 +20180,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
20177
20180
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
20178
20181
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
20179
20182
|
}, [
|
|
20180
|
-
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20181
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
20183
|
+
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
20184
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
20182
20185
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
20183
20186
|
key: 2,
|
|
20184
20187
|
panel,
|
|
@@ -20203,18 +20206,18 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
20203
20206
|
], 14, _hoisted_2$J);
|
|
20204
20207
|
}), 128))
|
|
20205
20208
|
], 4),
|
|
20206
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
20209
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
20207
20210
|
key: 1,
|
|
20208
20211
|
labels: labels.value
|
|
20209
20212
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
20210
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
20213
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
20211
20214
|
key: 2,
|
|
20212
20215
|
labels: labels.value,
|
|
20213
20216
|
options: _ctx.options,
|
|
20214
20217
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
20215
20218
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
20216
20219
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
20217
|
-
createVNode(_sfc_main$
|
|
20220
|
+
createVNode(_sfc_main$1r, {
|
|
20218
20221
|
options: _ctx.options.history,
|
|
20219
20222
|
history: history.value,
|
|
20220
20223
|
onGoToResults: handleGoToResults,
|
|
@@ -20241,7 +20244,7 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
20241
20244
|
};
|
|
20242
20245
|
const _hoisted_1$V = { id: "lupa-search-box" };
|
|
20243
20246
|
const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
|
|
20244
|
-
const _sfc_main
|
|
20247
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
20245
20248
|
__name: "SearchBox",
|
|
20246
20249
|
props: {
|
|
20247
20250
|
options: {},
|
|
@@ -20511,7 +20514,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20511
20514
|
var _a2;
|
|
20512
20515
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
20513
20516
|
createBaseVNode("div", _hoisted_2$I, [
|
|
20514
|
-
createVNode(_sfc_main$
|
|
20517
|
+
createVNode(_sfc_main$1u, {
|
|
20515
20518
|
options: inputOptions.value,
|
|
20516
20519
|
suggestedValue: suggestedValue.value,
|
|
20517
20520
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20524,7 +20527,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20524
20527
|
onSearch: handleSearch,
|
|
20525
20528
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20526
20529
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20527
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
20530
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$10, {
|
|
20528
20531
|
key: 0,
|
|
20529
20532
|
options: panelOptions.value,
|
|
20530
20533
|
inputValue: inputValue.value,
|
|
@@ -20621,12 +20624,12 @@ const _hoisted_2$H = {
|
|
|
20621
20624
|
key: 0,
|
|
20622
20625
|
"data-cy": "suggested-search-text-label"
|
|
20623
20626
|
};
|
|
20624
|
-
const _hoisted_3$
|
|
20627
|
+
const _hoisted_3$v = {
|
|
20625
20628
|
key: 1,
|
|
20626
20629
|
"data-cy": "did-you-mean-label"
|
|
20627
20630
|
};
|
|
20628
|
-
const _hoisted_4$
|
|
20629
|
-
const _sfc_main$
|
|
20631
|
+
const _hoisted_4$n = { key: 1 };
|
|
20632
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
20630
20633
|
__name: "SearchResultsDidYouMean",
|
|
20631
20634
|
props: {
|
|
20632
20635
|
labels: {}
|
|
@@ -20668,7 +20671,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
20668
20671
|
]);
|
|
20669
20672
|
}), 128))
|
|
20670
20673
|
])) : createCommentVNode("", true),
|
|
20671
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20674
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
20672
20675
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20673
20676
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20674
20677
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20676,7 +20679,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
20676
20679
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20677
20680
|
"data-cy": "did-you-mean-value",
|
|
20678
20681
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20679
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20682
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
20680
20683
|
]);
|
|
20681
20684
|
}), 128))
|
|
20682
20685
|
])) : createCommentVNode("", true)
|
|
@@ -20689,7 +20692,7 @@ const _hoisted_1$T = {
|
|
|
20689
20692
|
class: "lupa-search-results-summary"
|
|
20690
20693
|
};
|
|
20691
20694
|
const _hoisted_2$G = ["innerHTML"];
|
|
20692
|
-
const _sfc_main$
|
|
20695
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
20693
20696
|
__name: "SearchResultsSummary",
|
|
20694
20697
|
props: {
|
|
20695
20698
|
label: {},
|
|
@@ -20722,13 +20725,13 @@ const _hoisted_1$S = {
|
|
|
20722
20725
|
"data-cy": "lupa-result-page-title"
|
|
20723
20726
|
};
|
|
20724
20727
|
const _hoisted_2$F = { key: 0 };
|
|
20725
|
-
const _hoisted_3$
|
|
20728
|
+
const _hoisted_3$u = {
|
|
20726
20729
|
key: 1,
|
|
20727
20730
|
class: "lupa-results-total-count"
|
|
20728
20731
|
};
|
|
20729
|
-
const _hoisted_4$
|
|
20732
|
+
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
20730
20733
|
const _hoisted_5$f = ["innerHTML"];
|
|
20731
|
-
const _sfc_main$
|
|
20734
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20732
20735
|
__name: "SearchResultsTitle",
|
|
20733
20736
|
props: {
|
|
20734
20737
|
options: {},
|
|
@@ -20774,13 +20777,13 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
20774
20777
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
|
|
20775
20778
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
20776
20779
|
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20777
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20780
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
20778
20781
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20779
|
-
createBaseVNode("span", _hoisted_4$
|
|
20782
|
+
createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
|
|
20780
20783
|
createTextVNode(")")
|
|
20781
20784
|
])) : createCommentVNode("", true)
|
|
20782
20785
|
])) : createCommentVNode("", true),
|
|
20783
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20786
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
20784
20787
|
key: 1,
|
|
20785
20788
|
label: summaryLabel.value
|
|
20786
20789
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20793,16 +20796,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
20793
20796
|
};
|
|
20794
20797
|
}
|
|
20795
20798
|
});
|
|
20796
|
-
const _hoisted_1$R = {
|
|
20797
|
-
const _hoisted_2$E = {
|
|
20799
|
+
const _hoisted_1$R = {
|
|
20798
20800
|
class: "lupa-current-filter-label",
|
|
20799
20801
|
"data-cy": "lupa-current-filter-label"
|
|
20800
20802
|
};
|
|
20801
|
-
const
|
|
20803
|
+
const _hoisted_2$E = {
|
|
20802
20804
|
class: "lupa-current-filter-value",
|
|
20803
20805
|
"data-cy": "lupa-current-filter-value"
|
|
20804
20806
|
};
|
|
20805
|
-
const _sfc_main$
|
|
20807
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20806
20808
|
__name: "CurrentFilterDisplay",
|
|
20807
20809
|
props: {
|
|
20808
20810
|
filter: {}
|
|
@@ -20810,18 +20812,23 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
20810
20812
|
emits: ["remove"],
|
|
20811
20813
|
setup(__props, { emit: emit2 }) {
|
|
20812
20814
|
const props = __props;
|
|
20815
|
+
const facetKeyClass = computed(() => {
|
|
20816
|
+
return `lupa-facet-active-filter-${props.filter.key}`;
|
|
20817
|
+
});
|
|
20813
20818
|
const handleClick = () => {
|
|
20814
20819
|
emit2("remove", { filter: props.filter });
|
|
20815
20820
|
};
|
|
20816
20821
|
return (_ctx, _cache) => {
|
|
20817
|
-
return openBlock(), createElementBlock("div",
|
|
20822
|
+
return openBlock(), createElementBlock("div", {
|
|
20823
|
+
class: normalizeClass(["lupa-search-result-filter-value", { [facetKeyClass.value]: true }])
|
|
20824
|
+
}, [
|
|
20818
20825
|
createBaseVNode("div", {
|
|
20819
20826
|
class: "lupa-current-filter-action",
|
|
20820
20827
|
onClick: handleClick
|
|
20821
20828
|
}, "⨉"),
|
|
20822
|
-
createBaseVNode("div",
|
|
20823
|
-
createBaseVNode("div",
|
|
20824
|
-
]);
|
|
20829
|
+
createBaseVNode("div", _hoisted_1$R, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20830
|
+
createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.value), 1)
|
|
20831
|
+
], 2);
|
|
20825
20832
|
};
|
|
20826
20833
|
}
|
|
20827
20834
|
});
|
|
@@ -20830,12 +20837,12 @@ const _hoisted_2$D = {
|
|
|
20830
20837
|
key: 0,
|
|
20831
20838
|
class: "lupa-filter-count"
|
|
20832
20839
|
};
|
|
20833
|
-
const _hoisted_3$
|
|
20840
|
+
const _hoisted_3$t = {
|
|
20834
20841
|
key: 0,
|
|
20835
20842
|
class: "filter-values"
|
|
20836
20843
|
};
|
|
20837
|
-
const _hoisted_4$
|
|
20838
|
-
const _sfc_main$
|
|
20844
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
20845
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20839
20846
|
__name: "CurrentFilters",
|
|
20840
20847
|
props: {
|
|
20841
20848
|
options: {},
|
|
@@ -20917,10 +20924,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
20917
20924
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20918
20925
|
}, null, 2)) : createCommentVNode("", true)
|
|
20919
20926
|
]),
|
|
20920
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20921
|
-
createBaseVNode("div", _hoisted_4$
|
|
20927
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20928
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
20922
20929
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20923
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20930
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
20924
20931
|
key: filter2.key + "_" + filter2.value,
|
|
20925
20932
|
filter: filter2,
|
|
20926
20933
|
onRemove: handleRemove
|
|
@@ -20938,7 +20945,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
20938
20945
|
}
|
|
20939
20946
|
});
|
|
20940
20947
|
const _hoisted_1$P = ["href"];
|
|
20941
|
-
const _sfc_main$
|
|
20948
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20942
20949
|
__name: "CategoryFilterItem",
|
|
20943
20950
|
props: {
|
|
20944
20951
|
options: {},
|
|
@@ -20985,10 +20992,10 @@ const _hoisted_1$O = {
|
|
|
20985
20992
|
"data-cy": "lupa-category-filter"
|
|
20986
20993
|
};
|
|
20987
20994
|
const _hoisted_2$C = { class: "lupa-category-back" };
|
|
20988
|
-
const _hoisted_3$
|
|
20989
|
-
const _hoisted_4$
|
|
20995
|
+
const _hoisted_3$s = ["href"];
|
|
20996
|
+
const _hoisted_4$k = ["href"];
|
|
20990
20997
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20991
|
-
const _sfc_main$
|
|
20998
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20992
20999
|
__name: "CategoryFilter",
|
|
20993
21000
|
props: {
|
|
20994
21001
|
options: {}
|
|
@@ -21083,7 +21090,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
21083
21090
|
"data-cy": "lupa-category-back",
|
|
21084
21091
|
href: backUrlLink.value,
|
|
21085
21092
|
onClick: handleNavigationBack
|
|
21086
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
21093
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
|
|
21087
21094
|
]),
|
|
21088
21095
|
createBaseVNode("div", {
|
|
21089
21096
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -21093,11 +21100,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
21093
21100
|
href: parentUrlLink.value,
|
|
21094
21101
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
21095
21102
|
onClick: handleNavigationParent
|
|
21096
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
21103
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
21097
21104
|
], 2),
|
|
21098
21105
|
createBaseVNode("div", _hoisted_5$e, [
|
|
21099
21106
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
21100
|
-
return openBlock(), createBlock(_sfc_main$
|
|
21107
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
21101
21108
|
key: getCategoryKey(child),
|
|
21102
21109
|
item: child,
|
|
21103
21110
|
options: _ctx.options
|
|
@@ -21113,8 +21120,8 @@ const _hoisted_1$N = {
|
|
|
21113
21120
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
21114
21121
|
};
|
|
21115
21122
|
const _hoisted_2$B = ["placeholder"];
|
|
21116
|
-
const _hoisted_3$
|
|
21117
|
-
const _hoisted_4$
|
|
21123
|
+
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
21124
|
+
const _hoisted_4$j = ["onClick"];
|
|
21118
21125
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
21119
21126
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
21120
21127
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -21124,7 +21131,7 @@ const _hoisted_8$2 = {
|
|
|
21124
21131
|
};
|
|
21125
21132
|
const _hoisted_9$2 = { key: 0 };
|
|
21126
21133
|
const _hoisted_10$1 = { key: 1 };
|
|
21127
|
-
const _sfc_main$
|
|
21134
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
21128
21135
|
__name: "TermFacet",
|
|
21129
21136
|
props: {
|
|
21130
21137
|
options: {},
|
|
@@ -21205,7 +21212,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
21205
21212
|
}, null, 8, _hoisted_2$B)), [
|
|
21206
21213
|
[vModelText, termFilter.value]
|
|
21207
21214
|
]) : createCommentVNode("", true),
|
|
21208
|
-
createBaseVNode("div", _hoisted_3$
|
|
21215
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
21209
21216
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
21210
21217
|
return openBlock(), createElementBlock("div", {
|
|
21211
21218
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -21222,7 +21229,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
21222
21229
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
21223
21230
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
21224
21231
|
])
|
|
21225
|
-
], 10, _hoisted_4$
|
|
21232
|
+
], 10, _hoisted_4$j);
|
|
21226
21233
|
}), 128))
|
|
21227
21234
|
]),
|
|
21228
21235
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -22218,11 +22225,11 @@ const _hoisted_2$A = {
|
|
|
22218
22225
|
key: 0,
|
|
22219
22226
|
class: "lupa-stats-facet-summary"
|
|
22220
22227
|
};
|
|
22221
|
-
const _hoisted_3$
|
|
22228
|
+
const _hoisted_3$q = {
|
|
22222
22229
|
key: 1,
|
|
22223
22230
|
class: "lupa-stats-facet-summary-input"
|
|
22224
22231
|
};
|
|
22225
|
-
const _hoisted_4$
|
|
22232
|
+
const _hoisted_4$i = {
|
|
22226
22233
|
key: 0,
|
|
22227
22234
|
class: "lupa-stats-range-label"
|
|
22228
22235
|
};
|
|
@@ -22241,7 +22248,7 @@ const _hoisted_13 = {
|
|
|
22241
22248
|
key: 2,
|
|
22242
22249
|
class: "lupa-stats-slider-wrapper"
|
|
22243
22250
|
};
|
|
22244
|
-
const _sfc_main$
|
|
22251
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
22245
22252
|
__name: "StatsFacet",
|
|
22246
22253
|
props: {
|
|
22247
22254
|
options: {},
|
|
@@ -22419,9 +22426,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
22419
22426
|
};
|
|
22420
22427
|
return (_ctx, _cache) => {
|
|
22421
22428
|
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
22422
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22429
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22423
22430
|
createBaseVNode("div", null, [
|
|
22424
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22431
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22425
22432
|
createBaseVNode("div", _hoisted_5$c, [
|
|
22426
22433
|
withDirectives(createBaseVNode("input", {
|
|
22427
22434
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -22487,8 +22494,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
22487
22494
|
});
|
|
22488
22495
|
const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
|
|
22489
22496
|
const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
|
|
22490
|
-
const _hoisted_3$
|
|
22491
|
-
const _hoisted_4$
|
|
22497
|
+
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22498
|
+
const _hoisted_4$h = {
|
|
22492
22499
|
key: 0,
|
|
22493
22500
|
class: "lupa-term-count"
|
|
22494
22501
|
};
|
|
@@ -22496,7 +22503,7 @@ const _hoisted_5$b = {
|
|
|
22496
22503
|
key: 0,
|
|
22497
22504
|
class: "lupa-facet-level"
|
|
22498
22505
|
};
|
|
22499
|
-
const _sfc_main$
|
|
22506
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
22500
22507
|
__name: "HierarchyFacetLevel",
|
|
22501
22508
|
props: {
|
|
22502
22509
|
options: {},
|
|
@@ -22548,8 +22555,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22548
22555
|
}, null, 2)
|
|
22549
22556
|
]),
|
|
22550
22557
|
createBaseVNode("div", _hoisted_2$z, [
|
|
22551
|
-
createBaseVNode("span", _hoisted_3$
|
|
22552
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22558
|
+
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22559
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22553
22560
|
])
|
|
22554
22561
|
]),
|
|
22555
22562
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
@@ -22573,8 +22580,8 @@ const _hoisted_1$K = {
|
|
|
22573
22580
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22574
22581
|
};
|
|
22575
22582
|
const _hoisted_2$y = { key: 0 };
|
|
22576
|
-
const _hoisted_3$
|
|
22577
|
-
const _sfc_main$
|
|
22583
|
+
const _hoisted_3$o = ["placeholder"];
|
|
22584
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
22578
22585
|
__name: "HierarchyFacet",
|
|
22579
22586
|
props: {
|
|
22580
22587
|
options: {},
|
|
@@ -22636,12 +22643,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
22636
22643
|
"data-cy": "lupa-term-filter",
|
|
22637
22644
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22638
22645
|
placeholder: _ctx.options.labels.facetFilter
|
|
22639
|
-
}, null, 8, _hoisted_3$
|
|
22646
|
+
}, null, 8, _hoisted_3$o), [
|
|
22640
22647
|
[vModelText, termFilter.value]
|
|
22641
22648
|
])
|
|
22642
22649
|
])) : createCommentVNode("", true),
|
|
22643
22650
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22644
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22651
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
22645
22652
|
key: item.title,
|
|
22646
22653
|
options: _ctx.options,
|
|
22647
22654
|
item,
|
|
@@ -22673,12 +22680,12 @@ const _hoisted_2$x = {
|
|
|
22673
22680
|
};
|
|
22674
22681
|
const __default__$1 = {
|
|
22675
22682
|
components: {
|
|
22676
|
-
TermFacet: _sfc_main$
|
|
22677
|
-
StatsFacet: _sfc_main$
|
|
22678
|
-
HierarchyFacet: _sfc_main$
|
|
22683
|
+
TermFacet: _sfc_main$T,
|
|
22684
|
+
StatsFacet: _sfc_main$S,
|
|
22685
|
+
HierarchyFacet: _sfc_main$Q
|
|
22679
22686
|
}
|
|
22680
22687
|
};
|
|
22681
|
-
const _sfc_main$
|
|
22688
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22682
22689
|
__name: "FacetDisplay",
|
|
22683
22690
|
props: {
|
|
22684
22691
|
options: {},
|
|
@@ -22735,6 +22742,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22735
22742
|
var _a2;
|
|
22736
22743
|
return ((_a2 = currentFilterKeys.value) != null ? _a2 : []).join(",");
|
|
22737
22744
|
});
|
|
22745
|
+
const facetKeyClass = computed(() => {
|
|
22746
|
+
return `lupa-facet-${facet.value.key}`;
|
|
22747
|
+
});
|
|
22738
22748
|
onMounted(() => {
|
|
22739
22749
|
var _a2;
|
|
22740
22750
|
if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
|
|
@@ -22786,7 +22796,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22786
22796
|
"data-cy": "lupa-search-result-facet-display"
|
|
22787
22797
|
}, [
|
|
22788
22798
|
createBaseVNode("div", {
|
|
22789
|
-
class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value }]),
|
|
22799
|
+
class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value, [facetKeyClass.value]: true }]),
|
|
22790
22800
|
"data-cy": "lupa-search-result-facet-label",
|
|
22791
22801
|
onClick: toggleFacet
|
|
22792
22802
|
}, [
|
|
@@ -22818,7 +22828,7 @@ const _hoisted_2$w = {
|
|
|
22818
22828
|
key: 0,
|
|
22819
22829
|
class: "lupa-facets-title"
|
|
22820
22830
|
};
|
|
22821
|
-
const _sfc_main$
|
|
22831
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
22822
22832
|
__name: "FacetList",
|
|
22823
22833
|
props: {
|
|
22824
22834
|
options: {},
|
|
@@ -22859,7 +22869,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
22859
22869
|
}, [
|
|
22860
22870
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22861
22871
|
var _a2;
|
|
22862
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22872
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
22863
22873
|
key: facet.key,
|
|
22864
22874
|
facet,
|
|
22865
22875
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22875,7 +22885,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
22875
22885
|
}
|
|
22876
22886
|
});
|
|
22877
22887
|
const _hoisted_1$H = ["onClick"];
|
|
22878
|
-
const _sfc_main$
|
|
22888
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22879
22889
|
__name: "FacetsButton",
|
|
22880
22890
|
props: {
|
|
22881
22891
|
options: {}
|
|
@@ -22901,7 +22911,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22901
22911
|
});
|
|
22902
22912
|
const _hoisted_1$G = { class: "lupa-search-result-facets" };
|
|
22903
22913
|
const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
|
|
22904
|
-
const _sfc_main$
|
|
22914
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22905
22915
|
__name: "Facets",
|
|
22906
22916
|
props: {
|
|
22907
22917
|
options: {},
|
|
@@ -22985,7 +22995,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22985
22995
|
};
|
|
22986
22996
|
return (_ctx, _cache) => {
|
|
22987
22997
|
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
22988
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22998
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
22989
22999
|
key: 0,
|
|
22990
23000
|
options: _ctx.options,
|
|
22991
23001
|
facets: regularFacets.value,
|
|
@@ -22996,7 +23006,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22996
23006
|
onClear: clear2
|
|
22997
23007
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22998
23008
|
createBaseVNode("div", _hoisted_2$v, [
|
|
22999
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
23009
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
23000
23010
|
key: 0,
|
|
23001
23011
|
options: _ctx.options,
|
|
23002
23012
|
onFilter: filter2
|
|
@@ -23007,10 +23017,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23007
23017
|
}
|
|
23008
23018
|
});
|
|
23009
23019
|
const _hoisted_1$F = {
|
|
23020
|
+
key: 0,
|
|
23010
23021
|
id: "lupa-search-result-filters",
|
|
23011
23022
|
class: "lupa-search-result-filters"
|
|
23012
23023
|
};
|
|
23013
|
-
const _sfc_main$
|
|
23024
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
23014
23025
|
__name: "SearchResultsFilters",
|
|
23015
23026
|
props: {
|
|
23016
23027
|
options: {},
|
|
@@ -23031,6 +23042,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
23031
23042
|
const showCurrentFilters = computed(() => {
|
|
23032
23043
|
return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
|
|
23033
23044
|
});
|
|
23045
|
+
const visible = computed(() => {
|
|
23046
|
+
var _a;
|
|
23047
|
+
return (_a = props.options.visible) != null ? _a : true;
|
|
23048
|
+
});
|
|
23034
23049
|
const filter2 = () => {
|
|
23035
23050
|
emit2("filter");
|
|
23036
23051
|
};
|
|
@@ -23043,24 +23058,24 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
23043
23058
|
__expose({ fetch: fetch2 });
|
|
23044
23059
|
return (_ctx, _cache) => {
|
|
23045
23060
|
var _a;
|
|
23046
|
-
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
23047
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
23061
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
23062
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
23048
23063
|
key: 0,
|
|
23049
23064
|
options: _ctx.options.currentFilters,
|
|
23050
23065
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
23051
23066
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
23052
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
23067
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$U, {
|
|
23053
23068
|
key: 1,
|
|
23054
23069
|
options: _ctx.options.categories,
|
|
23055
23070
|
ref_key: "categoryFilters",
|
|
23056
23071
|
ref: categoryFilters
|
|
23057
23072
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
23058
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23073
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
23059
23074
|
key: 2,
|
|
23060
23075
|
options: _ctx.options.facets,
|
|
23061
23076
|
onFilter: filter2
|
|
23062
23077
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
23063
|
-
]);
|
|
23078
|
+
])) : createCommentVNode("", true);
|
|
23064
23079
|
};
|
|
23065
23080
|
}
|
|
23066
23081
|
});
|
|
@@ -23069,15 +23084,15 @@ const _hoisted_1$E = {
|
|
|
23069
23084
|
class: "lupa-mobile-filter-sidebar"
|
|
23070
23085
|
};
|
|
23071
23086
|
const _hoisted_2$u = ["onClick"];
|
|
23072
|
-
const _hoisted_3$
|
|
23073
|
-
const _hoisted_4$
|
|
23087
|
+
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
23088
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
23074
23089
|
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
23075
23090
|
const _hoisted_6$6 = {
|
|
23076
23091
|
key: 0,
|
|
23077
23092
|
class: "lupa-sidebar-filter-count"
|
|
23078
23093
|
};
|
|
23079
23094
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
23080
|
-
const _sfc_main$
|
|
23095
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
23081
23096
|
__name: "MobileFilterSidebar",
|
|
23082
23097
|
props: {
|
|
23083
23098
|
options: {}
|
|
@@ -23113,8 +23128,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
23113
23128
|
class: "lupa-sidebar-close",
|
|
23114
23129
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
23115
23130
|
}, null, 8, _hoisted_2$u),
|
|
23116
|
-
createBaseVNode("div", _hoisted_3$
|
|
23117
|
-
createBaseVNode("div", _hoisted_4$
|
|
23131
|
+
createBaseVNode("div", _hoisted_3$n, [
|
|
23132
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
23118
23133
|
createBaseVNode("div", _hoisted_5$a, [
|
|
23119
23134
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
23120
23135
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -23125,7 +23140,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
23125
23140
|
})
|
|
23126
23141
|
]),
|
|
23127
23142
|
createBaseVNode("div", _hoisted_7$4, [
|
|
23128
|
-
createVNode(_sfc_main$
|
|
23143
|
+
createVNode(_sfc_main$L, {
|
|
23129
23144
|
options: _ctx.options,
|
|
23130
23145
|
expandable: isActiveFiltersExpanded.value,
|
|
23131
23146
|
onFilter: filter2
|
|
@@ -23138,12 +23153,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
23138
23153
|
});
|
|
23139
23154
|
const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
|
|
23140
23155
|
const _hoisted_2$t = ["href", "onClick"];
|
|
23141
|
-
const _hoisted_3$
|
|
23156
|
+
const _hoisted_3$m = {
|
|
23142
23157
|
key: 1,
|
|
23143
23158
|
class: "lupa-search-results-breadcrumb-text"
|
|
23144
23159
|
};
|
|
23145
|
-
const _hoisted_4$
|
|
23146
|
-
const _sfc_main$
|
|
23160
|
+
const _hoisted_4$f = { key: 2 };
|
|
23161
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
23147
23162
|
__name: "SearchResultsBreadcrumbs",
|
|
23148
23163
|
props: {
|
|
23149
23164
|
breadcrumbs: {}
|
|
@@ -23170,6 +23185,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
23170
23185
|
return (_ctx, _cache) => {
|
|
23171
23186
|
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
23172
23187
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
23188
|
+
var _a;
|
|
23173
23189
|
return openBlock(), createElementBlock("span", {
|
|
23174
23190
|
class: "lupa-search-results-breadcrumb",
|
|
23175
23191
|
key: index
|
|
@@ -23179,11 +23195,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
23179
23195
|
class: "lupa-search-results-breadcrumb-link",
|
|
23180
23196
|
href: breadcrumb.link,
|
|
23181
23197
|
onClick: (e2) => {
|
|
23182
|
-
var
|
|
23183
|
-
return handleNavigation(e2, (
|
|
23198
|
+
var _a2;
|
|
23199
|
+
return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
|
|
23184
23200
|
}
|
|
23185
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
23186
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23201
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
23202
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
|
|
23187
23203
|
]);
|
|
23188
23204
|
}), 128))
|
|
23189
23205
|
]);
|
|
@@ -23191,35 +23207,41 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
23191
23207
|
}
|
|
23192
23208
|
});
|
|
23193
23209
|
const _hoisted_1$C = {
|
|
23210
|
+
key: 0,
|
|
23194
23211
|
id: "lupa-search-result-filters",
|
|
23195
23212
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
23196
23213
|
};
|
|
23197
|
-
const _sfc_main$
|
|
23214
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
23198
23215
|
__name: "FiltersTopDropdown",
|
|
23199
23216
|
props: {
|
|
23200
23217
|
options: {}
|
|
23201
23218
|
},
|
|
23202
23219
|
emits: ["filter"],
|
|
23203
23220
|
setup(__props, { emit: emit2 }) {
|
|
23221
|
+
const props = __props;
|
|
23204
23222
|
const filter2 = () => {
|
|
23205
23223
|
emit2("filter");
|
|
23206
23224
|
};
|
|
23225
|
+
const visible = computed(() => {
|
|
23226
|
+
var _a;
|
|
23227
|
+
return (_a = props.options.visible) != null ? _a : true;
|
|
23228
|
+
});
|
|
23207
23229
|
return (_ctx, _cache) => {
|
|
23208
23230
|
var _a;
|
|
23209
|
-
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
23210
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23231
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
23232
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
23211
23233
|
key: 0,
|
|
23212
23234
|
options: _ctx.options.facets,
|
|
23213
23235
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
23214
23236
|
clearable: true,
|
|
23215
23237
|
onFilter: filter2
|
|
23216
23238
|
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
23217
|
-
]);
|
|
23239
|
+
])) : createCommentVNode("", true);
|
|
23218
23240
|
};
|
|
23219
23241
|
}
|
|
23220
23242
|
});
|
|
23221
23243
|
const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
|
|
23222
|
-
const _sfc_main$
|
|
23244
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
23223
23245
|
__name: "SearchResultsLayoutSelection",
|
|
23224
23246
|
setup(__props) {
|
|
23225
23247
|
const searchResultStore = useSearchResultStore();
|
|
@@ -23256,7 +23278,7 @@ const _hoisted_1$A = {
|
|
|
23256
23278
|
key: 0,
|
|
23257
23279
|
class: "lupa-mobile-toggle-filter-count"
|
|
23258
23280
|
};
|
|
23259
|
-
const _sfc_main$
|
|
23281
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23260
23282
|
__name: "SearchResultsMobileToggle",
|
|
23261
23283
|
props: {
|
|
23262
23284
|
label: {},
|
|
@@ -23264,13 +23286,30 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
23264
23286
|
},
|
|
23265
23287
|
setup(__props) {
|
|
23266
23288
|
const searchResultStore = useSearchResultStore();
|
|
23267
|
-
const
|
|
23289
|
+
const optionsStore = useOptionsStore();
|
|
23290
|
+
const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
23291
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
23292
|
+
const disableMobileBodyScrollLock = computed(
|
|
23293
|
+
() => {
|
|
23294
|
+
var _a, _b, _c;
|
|
23295
|
+
return (_c = (_b = (_a = searchResultOptions.value.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.disableMobileBodyScrollLock) != null ? _c : false;
|
|
23296
|
+
}
|
|
23297
|
+
);
|
|
23298
|
+
const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
|
|
23268
23299
|
const handleMobileToggle = () => {
|
|
23269
|
-
searchResultStore.setSidebarState({
|
|
23300
|
+
searchResultStore.setSidebarState({
|
|
23301
|
+
visible: !isSidebarVisible.value,
|
|
23302
|
+
disableBodyScrolling: !disableMobileBodyScrollLock.value
|
|
23303
|
+
});
|
|
23270
23304
|
};
|
|
23305
|
+
const hasActiveFilters = computed(() => currentFilterCount.value > 0);
|
|
23271
23306
|
return (_ctx, _cache) => {
|
|
23272
23307
|
return openBlock(), createElementBlock("div", {
|
|
23273
|
-
class: normalizeClass(["lupa-mobile-toggle", {
|
|
23308
|
+
class: normalizeClass(["lupa-mobile-toggle", {
|
|
23309
|
+
"lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
|
|
23310
|
+
"lupa-mobile-toggle-has-filters": hasActiveFilters.value,
|
|
23311
|
+
"lupa-sidebar-open": isSidebarVisible.value
|
|
23312
|
+
}]),
|
|
23274
23313
|
onClick: handleMobileToggle
|
|
23275
23314
|
}, [
|
|
23276
23315
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
@@ -23279,6 +23318,26 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
23279
23318
|
};
|
|
23280
23319
|
}
|
|
23281
23320
|
});
|
|
23321
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
23322
|
+
__name: "SearchResultsMobileFilterClose",
|
|
23323
|
+
props: {
|
|
23324
|
+
label: {}
|
|
23325
|
+
},
|
|
23326
|
+
setup(__props) {
|
|
23327
|
+
const searchResultStore = useSearchResultStore();
|
|
23328
|
+
const handleMobileToggle = () => {
|
|
23329
|
+
searchResultStore.setSidebarState({
|
|
23330
|
+
visible: false
|
|
23331
|
+
});
|
|
23332
|
+
};
|
|
23333
|
+
return (_ctx, _cache) => {
|
|
23334
|
+
return openBlock(), createElementBlock("div", {
|
|
23335
|
+
class: "lupa-mobile-filter-close-toggle",
|
|
23336
|
+
onClick: handleMobileToggle
|
|
23337
|
+
}, toDisplayString(_ctx.label), 1);
|
|
23338
|
+
};
|
|
23339
|
+
}
|
|
23340
|
+
});
|
|
23282
23341
|
const _hoisted_1$z = {
|
|
23283
23342
|
key: 0,
|
|
23284
23343
|
id: "lupa-search-results-page-select",
|
|
@@ -23288,8 +23347,8 @@ const _hoisted_2$s = {
|
|
|
23288
23347
|
key: 0,
|
|
23289
23348
|
class: "lupa-page-number-separator"
|
|
23290
23349
|
};
|
|
23291
|
-
const _hoisted_3$
|
|
23292
|
-
const _hoisted_4$
|
|
23350
|
+
const _hoisted_3$l = ["onClick"];
|
|
23351
|
+
const _hoisted_4$e = {
|
|
23293
23352
|
key: 0,
|
|
23294
23353
|
class: "lupa-page-number-separator"
|
|
23295
23354
|
};
|
|
@@ -23392,10 +23451,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
23392
23451
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23393
23452
|
]),
|
|
23394
23453
|
"data-cy": "lupa-page-number"
|
|
23395
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23454
|
+
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23396
23455
|
}), 128)),
|
|
23397
23456
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23398
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23457
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
23399
23458
|
createBaseVNode("div", {
|
|
23400
23459
|
class: "lupa-page-number lupa-page-number-last",
|
|
23401
23460
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23419,8 +23478,8 @@ const _hoisted_1$y = {
|
|
|
23419
23478
|
"data-cy": "lupa-search-results-page-size"
|
|
23420
23479
|
};
|
|
23421
23480
|
const _hoisted_2$r = { id: "lupa-select" };
|
|
23422
|
-
const _hoisted_3$
|
|
23423
|
-
const _hoisted_4$
|
|
23481
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23482
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23424
23483
|
const _hoisted_5$9 = ["value"];
|
|
23425
23484
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
23426
23485
|
__name: "SearchResultsPageSize",
|
|
@@ -23452,7 +23511,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23452
23511
|
return (_ctx, _cache) => {
|
|
23453
23512
|
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23454
23513
|
createBaseVNode("div", _hoisted_2$r, [
|
|
23455
|
-
createBaseVNode("label", _hoisted_3$
|
|
23514
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
|
|
23456
23515
|
createBaseVNode("select", {
|
|
23457
23516
|
class: "lupa-select-dropdown",
|
|
23458
23517
|
"aria-label": label.value,
|
|
@@ -23467,7 +23526,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23467
23526
|
value: option
|
|
23468
23527
|
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23469
23528
|
}), 128))
|
|
23470
|
-
], 40, _hoisted_4$
|
|
23529
|
+
], 40, _hoisted_4$d)
|
|
23471
23530
|
])
|
|
23472
23531
|
]);
|
|
23473
23532
|
};
|
|
@@ -23478,8 +23537,8 @@ const _hoisted_1$x = {
|
|
|
23478
23537
|
class: "lupa-search-results-sort"
|
|
23479
23538
|
};
|
|
23480
23539
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
23481
|
-
const _hoisted_3$
|
|
23482
|
-
const _hoisted_4$
|
|
23540
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23541
|
+
const _hoisted_4$c = ["aria-label"];
|
|
23483
23542
|
const _hoisted_5$8 = ["value"];
|
|
23484
23543
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23485
23544
|
__name: "SearchResultsSort",
|
|
@@ -23532,7 +23591,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23532
23591
|
return (_ctx, _cache) => {
|
|
23533
23592
|
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23534
23593
|
createBaseVNode("div", _hoisted_2$q, [
|
|
23535
|
-
createBaseVNode("label", _hoisted_3$
|
|
23594
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
|
|
23536
23595
|
withDirectives(createBaseVNode("select", {
|
|
23537
23596
|
class: "lupa-select-dropdown",
|
|
23538
23597
|
"aria-label": _ctx.options.label,
|
|
@@ -23547,7 +23606,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23547
23606
|
value: option.key
|
|
23548
23607
|
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23549
23608
|
}), 128))
|
|
23550
|
-
], 40, _hoisted_4$
|
|
23609
|
+
], 40, _hoisted_4$c), [
|
|
23551
23610
|
[vModelSelect, selectedKey.value]
|
|
23552
23611
|
])
|
|
23553
23612
|
])
|
|
@@ -23560,8 +23619,8 @@ const _hoisted_2$p = {
|
|
|
23560
23619
|
key: 0,
|
|
23561
23620
|
class: "lupa-toolbar-right-title"
|
|
23562
23621
|
};
|
|
23563
|
-
const _hoisted_3$
|
|
23564
|
-
const _hoisted_4$
|
|
23622
|
+
const _hoisted_3$i = { key: 2 };
|
|
23623
|
+
const _hoisted_4$b = { key: 4 };
|
|
23565
23624
|
const _hoisted_5$7 = { key: 6 };
|
|
23566
23625
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23567
23626
|
const _hoisted_7$3 = {
|
|
@@ -23586,7 +23645,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23586
23645
|
const searchResultStore = useSearchResultStore();
|
|
23587
23646
|
const optionsStore = useOptionsStore();
|
|
23588
23647
|
const { page, limit } = storeToRefs(paramStore);
|
|
23589
|
-
const { hasAnyFilter, searchResult } = storeToRefs(searchResultStore);
|
|
23648
|
+
const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
23590
23649
|
const { currentResolutionPageSizes } = storeToRefs(optionsStore);
|
|
23591
23650
|
const isBottomLocation = computed(() => {
|
|
23592
23651
|
return props.paginationLocation === "bottom";
|
|
@@ -23603,6 +23662,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23603
23662
|
var _a;
|
|
23604
23663
|
return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.layoutSelector);
|
|
23605
23664
|
});
|
|
23665
|
+
const showFiltersCloseButton = computed(() => {
|
|
23666
|
+
var _a;
|
|
23667
|
+
return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.filtersCloseButton);
|
|
23668
|
+
});
|
|
23606
23669
|
const sortOptions = computed(() => {
|
|
23607
23670
|
var _a, _b;
|
|
23608
23671
|
if (isBottomLocation.value || !((_a = optionsValue.value.sort) == null ? void 0 : _a.length)) {
|
|
@@ -23679,13 +23742,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23679
23742
|
}, [
|
|
23680
23743
|
createBaseVNode("div", _hoisted_1$w, [
|
|
23681
23744
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23682
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23683
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23745
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
|
|
23746
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
23684
23747
|
key: 3,
|
|
23685
23748
|
label: searchSummaryLabel.value,
|
|
23686
23749
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23687
23750
|
onClear: handleClearAll
|
|
23688
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23751
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
23689
23752
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
23690
23753
|
key: 5,
|
|
23691
23754
|
options: paginationOptions.value.pageSelect,
|
|
@@ -23695,7 +23758,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23695
23758
|
]),
|
|
23696
23759
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23697
23760
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23698
|
-
createVNode(_sfc_main$
|
|
23761
|
+
createVNode(_sfc_main$G, {
|
|
23699
23762
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23700
23763
|
"show-filter-count": showMobileFilterCount.value
|
|
23701
23764
|
}, null, 8, ["label", "show-filter-count"]),
|
|
@@ -23708,7 +23771,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23708
23771
|
key: 3,
|
|
23709
23772
|
options: sortOptions.value,
|
|
23710
23773
|
callbacks: callbacks.value
|
|
23711
|
-
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
|
|
23774
|
+
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
23775
|
+
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$F, {
|
|
23776
|
+
key: 5,
|
|
23777
|
+
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
23778
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
23712
23779
|
])
|
|
23713
23780
|
], 2);
|
|
23714
23781
|
};
|
|
@@ -23722,7 +23789,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23722
23789
|
},
|
|
23723
23790
|
setup(__props) {
|
|
23724
23791
|
return (_ctx, _cache) => {
|
|
23725
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23792
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
23726
23793
|
item: _ctx.item,
|
|
23727
23794
|
options: _ctx.options,
|
|
23728
23795
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23733,8 +23800,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23733
23800
|
});
|
|
23734
23801
|
const _hoisted_1$v = ["title", "innerHTML"];
|
|
23735
23802
|
const _hoisted_2$o = ["title"];
|
|
23736
|
-
const _hoisted_3$
|
|
23737
|
-
const _hoisted_4$
|
|
23803
|
+
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23804
|
+
const _hoisted_4$a = ["title"];
|
|
23738
23805
|
const _hoisted_5$6 = {
|
|
23739
23806
|
key: 0,
|
|
23740
23807
|
class: "lupa-search-results-product-title-text"
|
|
@@ -23788,7 +23855,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23788
23855
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23789
23856
|
innerHTML: sanitizedTitle.value,
|
|
23790
23857
|
onClick: handleNavigation
|
|
23791
|
-
}, null, 8, _hoisted_3$
|
|
23858
|
+
}, null, 8, _hoisted_3$h)
|
|
23792
23859
|
], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
|
|
23793
23860
|
key: 2,
|
|
23794
23861
|
class: "lupa-search-results-product-title",
|
|
@@ -23802,7 +23869,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23802
23869
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23803
23870
|
onClick: handleNavigation
|
|
23804
23871
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23805
|
-
], 12, _hoisted_4$
|
|
23872
|
+
], 12, _hoisted_4$a));
|
|
23806
23873
|
};
|
|
23807
23874
|
}
|
|
23808
23875
|
});
|
|
@@ -23844,8 +23911,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23844
23911
|
});
|
|
23845
23912
|
const _hoisted_1$t = { id: "lupa-search-results-rating" };
|
|
23846
23913
|
const _hoisted_2$n = { class: "lupa-ratings" };
|
|
23847
|
-
const _hoisted_3$
|
|
23848
|
-
const _hoisted_4$
|
|
23914
|
+
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23915
|
+
const _hoisted_4$9 = ["innerHTML"];
|
|
23849
23916
|
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23850
23917
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23851
23918
|
const _hoisted_7$2 = ["href"];
|
|
@@ -23889,13 +23956,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23889
23956
|
return (_ctx, _cache) => {
|
|
23890
23957
|
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
23891
23958
|
createBaseVNode("div", _hoisted_2$n, [
|
|
23892
|
-
createBaseVNode("div", _hoisted_3$
|
|
23959
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
23893
23960
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23894
23961
|
return openBlock(), createElementBlock("div", {
|
|
23895
23962
|
key: index,
|
|
23896
23963
|
innerHTML: star,
|
|
23897
23964
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23898
|
-
}, null, 8, _hoisted_4$
|
|
23965
|
+
}, null, 8, _hoisted_4$9);
|
|
23899
23966
|
}), 128))
|
|
23900
23967
|
]),
|
|
23901
23968
|
createBaseVNode("div", _hoisted_5$5, [
|
|
@@ -23979,7 +24046,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23979
24046
|
});
|
|
23980
24047
|
const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23981
24048
|
const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
|
|
23982
|
-
const _hoisted_3$
|
|
24049
|
+
const _hoisted_3$f = ["id", "disabled", "onClick"];
|
|
23983
24050
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23984
24051
|
__name: "SearchResultsProductAddToCart",
|
|
23985
24052
|
props: {
|
|
@@ -24028,7 +24095,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
24028
24095
|
disabled: !inStockValue.value || loading.value
|
|
24029
24096
|
}, _ctx.dynamicAttributes, {
|
|
24030
24097
|
onClick: withModifiers(handleClick, ["stop"])
|
|
24031
|
-
}), toDisplayString(label.value), 17, _hoisted_3$
|
|
24098
|
+
}), toDisplayString(label.value), 17, _hoisted_3$f)
|
|
24032
24099
|
])
|
|
24033
24100
|
]);
|
|
24034
24101
|
};
|
|
@@ -24036,8 +24103,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
24036
24103
|
});
|
|
24037
24104
|
const _hoisted_1$q = ["innerHTML"];
|
|
24038
24105
|
const _hoisted_2$l = { key: 0 };
|
|
24039
|
-
const _hoisted_3$
|
|
24040
|
-
const _hoisted_4$
|
|
24106
|
+
const _hoisted_3$e = { key: 1 };
|
|
24107
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
24041
24108
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
24042
24109
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
24043
24110
|
__name: "SearchResultsProductCustom",
|
|
@@ -24081,8 +24148,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
24081
24148
|
key: 1,
|
|
24082
24149
|
class: className.value
|
|
24083
24150
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24084
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24085
|
-
createBaseVNode("div", _hoisted_4$
|
|
24151
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
24152
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
24086
24153
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
24087
24154
|
]))
|
|
24088
24155
|
], 16));
|
|
@@ -24127,8 +24194,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
24127
24194
|
});
|
|
24128
24195
|
const _hoisted_1$o = { id: "lupa-search-results-rating" };
|
|
24129
24196
|
const _hoisted_2$k = ["innerHTML"];
|
|
24130
|
-
const _hoisted_3$
|
|
24131
|
-
const _hoisted_4$
|
|
24197
|
+
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
24198
|
+
const _hoisted_4$7 = ["href"];
|
|
24132
24199
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
24133
24200
|
__name: "SearchResultsProductSingleStarRating",
|
|
24134
24201
|
props: {
|
|
@@ -24162,11 +24229,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
24162
24229
|
innerHTML: star.value,
|
|
24163
24230
|
class: "lupa-rating lupa-rating-highlighted"
|
|
24164
24231
|
}, null, 8, _hoisted_2$k),
|
|
24165
|
-
createBaseVNode("div", _hoisted_3$
|
|
24232
|
+
createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
|
|
24166
24233
|
createBaseVNode("a", {
|
|
24167
24234
|
href: ratingLink.value,
|
|
24168
24235
|
class: "lupa-total-ratings"
|
|
24169
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
24236
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
24170
24237
|
]);
|
|
24171
24238
|
};
|
|
24172
24239
|
}
|
|
@@ -24269,11 +24336,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
24269
24336
|
}));
|
|
24270
24337
|
const _hoisted_1$n = ["onMouseup"];
|
|
24271
24338
|
const _hoisted_2$j = ["href"];
|
|
24272
|
-
const _hoisted_3$
|
|
24339
|
+
const _hoisted_3$c = {
|
|
24273
24340
|
key: 0,
|
|
24274
24341
|
class: "lupa-out-of-stock"
|
|
24275
24342
|
};
|
|
24276
|
-
const _hoisted_4$
|
|
24343
|
+
const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
|
|
24277
24344
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24278
24345
|
__name: "SearchResultsProductCard",
|
|
24279
24346
|
props: {
|
|
@@ -24282,7 +24349,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24282
24349
|
isAdditionalPanel: { type: Boolean },
|
|
24283
24350
|
clickTrackingSettings: {},
|
|
24284
24351
|
lupaClickTrackingType: {},
|
|
24285
|
-
sourceItemId: {}
|
|
24352
|
+
sourceItemId: {},
|
|
24353
|
+
analyticsMetadata: {}
|
|
24286
24354
|
},
|
|
24287
24355
|
setup(__props) {
|
|
24288
24356
|
const props = __props;
|
|
@@ -24393,7 +24461,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24393
24461
|
},
|
|
24394
24462
|
options: { allowEmptySearchQuery: true },
|
|
24395
24463
|
filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0,
|
|
24396
|
-
sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0
|
|
24464
|
+
sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0,
|
|
24465
|
+
metadata: props.analyticsMetadata
|
|
24397
24466
|
}
|
|
24398
24467
|
};
|
|
24399
24468
|
if (isDelayedClickTracking()) {
|
|
@@ -24437,7 +24506,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24437
24506
|
onClick: handleClick,
|
|
24438
24507
|
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
24439
24508
|
}), [
|
|
24440
|
-
createVNode(_sfc_main$
|
|
24509
|
+
createVNode(_sfc_main$16, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24441
24510
|
createBaseVNode("div", {
|
|
24442
24511
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24443
24512
|
}, [
|
|
@@ -24458,14 +24527,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24458
24527
|
onProductEvent: handleProductEvent
|
|
24459
24528
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24460
24529
|
}), 128)),
|
|
24461
|
-
createVNode(_sfc_main$
|
|
24530
|
+
createVNode(_sfc_main$16, {
|
|
24462
24531
|
options: badgesOptions.value,
|
|
24463
24532
|
position: "image",
|
|
24464
24533
|
class: "lupa-image-badges"
|
|
24465
24534
|
}, null, 8, ["options"]),
|
|
24466
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24535
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24467
24536
|
], 8, _hoisted_2$j),
|
|
24468
|
-
createBaseVNode("div", _hoisted_4$
|
|
24537
|
+
createBaseVNode("div", _hoisted_4$6, [
|
|
24469
24538
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24470
24539
|
return openBlock(), createBlock(_sfc_main$q, {
|
|
24471
24540
|
class: "lupa-search-results-product-element",
|
|
@@ -24508,11 +24577,11 @@ const _hoisted_1$m = {
|
|
|
24508
24577
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24509
24578
|
};
|
|
24510
24579
|
const _hoisted_2$i = { class: "lupa-similar-queries-label" };
|
|
24511
|
-
const _hoisted_3$
|
|
24580
|
+
const _hoisted_3$b = {
|
|
24512
24581
|
class: "lupa-similar-query-label",
|
|
24513
24582
|
"data-cy": "lupa-similar-query-label"
|
|
24514
24583
|
};
|
|
24515
|
-
const _hoisted_4$
|
|
24584
|
+
const _hoisted_4$5 = ["onClick"];
|
|
24516
24585
|
const _hoisted_5$3 = ["innerHTML"];
|
|
24517
24586
|
const _hoisted_6$2 = { key: 0 };
|
|
24518
24587
|
const _hoisted_7$1 = {
|
|
@@ -24548,12 +24617,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24548
24617
|
}) => {
|
|
24549
24618
|
paramsStore.goToResults({ searchText, facet });
|
|
24550
24619
|
};
|
|
24620
|
+
const getClickMetadata = (similarQuery) => {
|
|
24621
|
+
var _a;
|
|
24622
|
+
const isRegularSimilarQuery = (_a = similarQuery.displayQuery) == null ? void 0 : _a.includes("<del>");
|
|
24623
|
+
return {
|
|
24624
|
+
_lupaEventSource: isRegularSimilarQuery ? "similarQueries" : "similarQueriesAI",
|
|
24625
|
+
_lupaUpdatedQuery: similarQuery.query
|
|
24626
|
+
};
|
|
24627
|
+
};
|
|
24551
24628
|
return (_ctx, _cache) => {
|
|
24552
24629
|
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
24553
24630
|
createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24554
24631
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24555
24632
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24556
|
-
createBaseVNode("div", _hoisted_3$
|
|
24633
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24557
24634
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24558
24635
|
createBaseVNode("span", {
|
|
24559
24636
|
id: "lupa-similar-query-text-component",
|
|
@@ -24565,7 +24642,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24565
24642
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24566
24643
|
}, null, 8, _hoisted_5$3),
|
|
24567
24644
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24568
|
-
], 8, _hoisted_4$
|
|
24645
|
+
], 8, _hoisted_4$5)
|
|
24569
24646
|
]),
|
|
24570
24647
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24571
24648
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
@@ -24573,8 +24650,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24573
24650
|
style: normalizeStyle(_ctx.columnSize),
|
|
24574
24651
|
key: getDocumentKey(index2, product),
|
|
24575
24652
|
product,
|
|
24576
|
-
options: _ctx.productCardOptions
|
|
24577
|
-
|
|
24653
|
+
options: _ctx.productCardOptions,
|
|
24654
|
+
"analytics-metadata": getClickMetadata(similarQuery)
|
|
24655
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
24578
24656
|
}), 128))
|
|
24579
24657
|
])
|
|
24580
24658
|
]);
|
|
@@ -24743,7 +24821,7 @@ const _hoisted_1$i = {
|
|
|
24743
24821
|
"data-cy": "lupa-search-results-similar-results"
|
|
24744
24822
|
};
|
|
24745
24823
|
const _hoisted_2$f = { class: "lupa-similar-results-label" };
|
|
24746
|
-
const _hoisted_3$
|
|
24824
|
+
const _hoisted_3$a = {
|
|
24747
24825
|
class: "lupa-products",
|
|
24748
24826
|
"data-cy": "lupa-products"
|
|
24749
24827
|
};
|
|
@@ -24762,17 +24840,23 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24762
24840
|
const getDocumentKey = (index, product) => {
|
|
24763
24841
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24764
24842
|
};
|
|
24843
|
+
const clickMetadata = computed(() => {
|
|
24844
|
+
return {
|
|
24845
|
+
_lupaEventSource: "similarResults"
|
|
24846
|
+
};
|
|
24847
|
+
});
|
|
24765
24848
|
return (_ctx, _cache) => {
|
|
24766
24849
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24767
24850
|
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24768
|
-
createBaseVNode("div", _hoisted_3$
|
|
24851
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24769
24852
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24770
24853
|
return openBlock(), createBlock(_sfc_main$p, {
|
|
24771
24854
|
style: normalizeStyle(_ctx.columnSize),
|
|
24772
24855
|
key: getDocumentKey(index, product),
|
|
24773
24856
|
product,
|
|
24774
|
-
options: _ctx.productCardOptions
|
|
24775
|
-
|
|
24857
|
+
options: _ctx.productCardOptions,
|
|
24858
|
+
"analytics-metadata": clickMetadata.value
|
|
24859
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
24776
24860
|
}), 128))
|
|
24777
24861
|
])
|
|
24778
24862
|
]);
|
|
@@ -24883,8 +24967,8 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
|
|
|
24883
24967
|
});
|
|
24884
24968
|
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
24885
24969
|
const _hoisted_2$e = { class: "lupa-related-query-image" };
|
|
24886
|
-
const _hoisted_3$
|
|
24887
|
-
const _hoisted_4$
|
|
24970
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
24971
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
24888
24972
|
const _hoisted_5$2 = {
|
|
24889
24973
|
key: 0,
|
|
24890
24974
|
class: "lupa-related-query-count"
|
|
@@ -24982,7 +25066,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24982
25066
|
var _a;
|
|
24983
25067
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24984
25068
|
createBaseVNode("div", _hoisted_2$e, [
|
|
24985
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
25069
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1m, {
|
|
24986
25070
|
key: 0,
|
|
24987
25071
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24988
25072
|
"image-class": "lupa-related-query-image",
|
|
@@ -24990,8 +25074,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24990
25074
|
options: image.value
|
|
24991
25075
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24992
25076
|
]),
|
|
24993
|
-
createBaseVNode("div", _hoisted_3$
|
|
24994
|
-
createBaseVNode("span", _hoisted_4$
|
|
25077
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
25078
|
+
createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
|
|
24995
25079
|
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24996
25080
|
])
|
|
24997
25081
|
]);
|
|
@@ -25006,7 +25090,7 @@ const _hoisted_2$d = {
|
|
|
25006
25090
|
key: 0,
|
|
25007
25091
|
class: "lupa-related-queries-title"
|
|
25008
25092
|
};
|
|
25009
|
-
const _hoisted_3$
|
|
25093
|
+
const _hoisted_3$8 = ["onClick"];
|
|
25010
25094
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
25011
25095
|
__name: "RelatedQueries",
|
|
25012
25096
|
props: {
|
|
@@ -25111,7 +25195,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
25111
25195
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
25112
25196
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
25113
25197
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
25114
|
-
], 8, _hoisted_3$
|
|
25198
|
+
], 8, _hoisted_3$8)
|
|
25115
25199
|
], 2)), [
|
|
25116
25200
|
[vShow, querySourceResultMap.value[query.value] !== false]
|
|
25117
25201
|
]);
|
|
@@ -25153,7 +25237,7 @@ const _hoisted_1$f = {
|
|
|
25153
25237
|
class: "lupa-redirection-suggestion"
|
|
25154
25238
|
};
|
|
25155
25239
|
const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
|
|
25156
|
-
const _hoisted_3$
|
|
25240
|
+
const _hoisted_3$7 = ["href"];
|
|
25157
25241
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
25158
25242
|
__name: "RedirectionSuggestions",
|
|
25159
25243
|
props: {
|
|
@@ -25179,7 +25263,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
25179
25263
|
return (_ctx, _cache) => {
|
|
25180
25264
|
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
25181
25265
|
createBaseVNode("h4", _hoisted_2$c, [
|
|
25182
|
-
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$
|
|
25266
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
|
|
25183
25267
|
])
|
|
25184
25268
|
])) : createCommentVNode("", true);
|
|
25185
25269
|
};
|
|
@@ -25190,12 +25274,12 @@ const _hoisted_2$b = {
|
|
|
25190
25274
|
class: "lupa-products",
|
|
25191
25275
|
"data-cy": "lupa-products"
|
|
25192
25276
|
};
|
|
25193
|
-
const _hoisted_3$
|
|
25277
|
+
const _hoisted_3$6 = {
|
|
25194
25278
|
key: 1,
|
|
25195
25279
|
class: "lupa-empty-results",
|
|
25196
25280
|
"data-cy": "lupa-no-results-in-page"
|
|
25197
25281
|
};
|
|
25198
|
-
const _hoisted_4$
|
|
25282
|
+
const _hoisted_4$3 = {
|
|
25199
25283
|
key: 4,
|
|
25200
25284
|
class: "lupa-empty-results",
|
|
25201
25285
|
"data-cy": "lupa-no-results"
|
|
@@ -25296,6 +25380,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
25296
25380
|
var _a, _b;
|
|
25297
25381
|
return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
|
|
25298
25382
|
});
|
|
25383
|
+
const clickMetadata = computed(() => {
|
|
25384
|
+
const hasDidYouMean = Boolean(searchResult.value.suggestedSearchText);
|
|
25385
|
+
return hasDidYouMean ? {
|
|
25386
|
+
_lupaEventSource: "didYouMean",
|
|
25387
|
+
_lupaUpdatedQuery: searchResult.value.suggestedSearchText
|
|
25388
|
+
} : void 0;
|
|
25389
|
+
});
|
|
25299
25390
|
const getProductKeyAction = (index, product) => {
|
|
25300
25391
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
25301
25392
|
};
|
|
@@ -25327,7 +25418,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
25327
25418
|
options: _ctx.options.relatedQueries
|
|
25328
25419
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25329
25420
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
25330
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
25421
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
25331
25422
|
key: 0,
|
|
25332
25423
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
25333
25424
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
@@ -25338,7 +25429,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
25338
25429
|
"pagination-location": "top",
|
|
25339
25430
|
onFilter: filter2
|
|
25340
25431
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25341
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25432
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$W, {
|
|
25342
25433
|
key: 2,
|
|
25343
25434
|
class: normalizeClass(currentFiltersClass.value),
|
|
25344
25435
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -25352,7 +25443,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
25352
25443
|
options: _ctx.options,
|
|
25353
25444
|
"pagination-location": "top"
|
|
25354
25445
|
}, null, 8, ["options"]),
|
|
25355
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25446
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$W, {
|
|
25356
25447
|
key: 0,
|
|
25357
25448
|
class: normalizeClass(currentFiltersClass.value),
|
|
25358
25449
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -25372,11 +25463,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
25372
25463
|
style: normalizeStyle(columnSize.value),
|
|
25373
25464
|
key: getProductKeyAction(index, product),
|
|
25374
25465
|
product,
|
|
25375
|
-
options: productCardOptions.value
|
|
25376
|
-
|
|
25466
|
+
options: productCardOptions.value,
|
|
25467
|
+
"analytics-metadata": clickMetadata.value
|
|
25468
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
25377
25469
|
}), 128))
|
|
25378
25470
|
]),
|
|
25379
|
-
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25471
|
+
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
25380
25472
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
25381
25473
|
_ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
|
|
25382
25474
|
key: 0,
|
|
@@ -25394,7 +25486,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
25394
25486
|
location: "bottom",
|
|
25395
25487
|
sdkOptions: _ctx.options.options
|
|
25396
25488
|
}, null, 8, ["options", "sdkOptions"])
|
|
25397
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25489
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
25398
25490
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
25399
25491
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
25400
25492
|
])) : createCommentVNode("", true),
|
|
@@ -25422,8 +25514,8 @@ const _hoisted_2$a = {
|
|
|
25422
25514
|
key: 0,
|
|
25423
25515
|
class: "lupa-category-back"
|
|
25424
25516
|
};
|
|
25425
|
-
const _hoisted_3$
|
|
25426
|
-
const _hoisted_4$
|
|
25517
|
+
const _hoisted_3$5 = ["href"];
|
|
25518
|
+
const _hoisted_4$2 = {
|
|
25427
25519
|
key: 1,
|
|
25428
25520
|
class: "lupa-child-category-list"
|
|
25429
25521
|
};
|
|
@@ -25481,11 +25573,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
25481
25573
|
"data-cy": "lupa-category-back",
|
|
25482
25574
|
href: backUrlLink.value,
|
|
25483
25575
|
onClick: handleNavigationBack
|
|
25484
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
25576
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$5)
|
|
25485
25577
|
])) : createCommentVNode("", true),
|
|
25486
|
-
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25578
|
+
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
25487
25579
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
25488
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25580
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
25489
25581
|
key: getCategoryKey(child),
|
|
25490
25582
|
item: child,
|
|
25491
25583
|
options: categoryOptions.value
|
|
@@ -25506,13 +25598,7 @@ const _hoisted_1$c = {
|
|
|
25506
25598
|
key: 0,
|
|
25507
25599
|
class: "lupa-container-title-summary-mobile"
|
|
25508
25600
|
};
|
|
25509
|
-
const _hoisted_2$9 = {
|
|
25510
|
-
key: 4,
|
|
25511
|
-
id: "lupa-search-results",
|
|
25512
|
-
class: "top-layout-wrapper"
|
|
25513
|
-
};
|
|
25514
|
-
const _hoisted_3$5 = { class: "search-content" };
|
|
25515
|
-
const _hoisted_4$2 = { id: "lupa-search-results" };
|
|
25601
|
+
const _hoisted_2$9 = { class: "search-content" };
|
|
25516
25602
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
25517
25603
|
__name: "SearchResults",
|
|
25518
25604
|
props: {
|
|
@@ -25538,7 +25624,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25538
25624
|
var _a, _b;
|
|
25539
25625
|
return (_b = (_a = props.initialFilters) != null ? _a : extractedInitialFilters.value) != null ? _b : {};
|
|
25540
25626
|
});
|
|
25541
|
-
const { currentQueryText, hasResults, currentFilterCount } = storeToRefs(searchResultStore);
|
|
25627
|
+
const { currentQueryText, hasResults, currentFilterCount, isMobileSidebarVisible, layout } = storeToRefs(searchResultStore);
|
|
25542
25628
|
const { searchString, sortParams } = storeToRefs(paramStore);
|
|
25543
25629
|
const { defaultSearchResultPageSize } = storeToRefs(optionStore);
|
|
25544
25630
|
const searchResultsFilters = ref(null);
|
|
@@ -25554,6 +25640,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25554
25640
|
const isTitleResultTopPosition = computed(() => {
|
|
25555
25641
|
return props.options.searchTitlePosition === "search-results-top";
|
|
25556
25642
|
});
|
|
25643
|
+
const indicatorClasses = computed(() => {
|
|
25644
|
+
return {
|
|
25645
|
+
"lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
|
|
25646
|
+
"lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
|
|
25647
|
+
"lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
|
|
25648
|
+
};
|
|
25649
|
+
});
|
|
25557
25650
|
const handlePopState = () => {
|
|
25558
25651
|
var _a;
|
|
25559
25652
|
const searchParams = getSearchParams((_a = props.options.ssr) == null ? void 0 : _a.url);
|
|
@@ -25727,8 +25820,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25727
25820
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
25728
25821
|
}, [
|
|
25729
25822
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
25730
|
-
createVNode(_sfc_main$
|
|
25731
|
-
createVNode(_sfc_main$
|
|
25823
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25824
|
+
createVNode(_sfc_main$Y, {
|
|
25732
25825
|
"show-summary": true,
|
|
25733
25826
|
options: _ctx.options,
|
|
25734
25827
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -25738,26 +25831,30 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25738
25831
|
key: 1,
|
|
25739
25832
|
options: _ctx.options
|
|
25740
25833
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25741
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25834
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25742
25835
|
key: 2,
|
|
25743
25836
|
options: _ctx.options.filters,
|
|
25744
25837
|
onFilter: handleParamsChange
|
|
25745
25838
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25746
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25839
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25747
25840
|
key: 3,
|
|
25748
25841
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
25749
25842
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
25750
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div",
|
|
25751
|
-
|
|
25843
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
|
|
25844
|
+
key: 4,
|
|
25845
|
+
id: "lupa-search-results",
|
|
25846
|
+
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
25847
|
+
}, [
|
|
25848
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
25752
25849
|
key: 0,
|
|
25753
25850
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
25754
25851
|
ref_key: "searchResultsFilters",
|
|
25755
25852
|
ref: searchResultsFilters,
|
|
25756
25853
|
onFilter: handleParamsChange
|
|
25757
25854
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25758
|
-
createBaseVNode("div",
|
|
25759
|
-
createVNode(_sfc_main$
|
|
25760
|
-
createVNode(_sfc_main$
|
|
25855
|
+
createBaseVNode("div", _hoisted_2$9, [
|
|
25856
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25857
|
+
createVNode(_sfc_main$Y, {
|
|
25761
25858
|
options: _ctx.options,
|
|
25762
25859
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25763
25860
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25772,14 +25869,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25772
25869
|
_: 3
|
|
25773
25870
|
}, 8, ["options", "ssr"])
|
|
25774
25871
|
])
|
|
25775
|
-
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25776
|
-
createVNode(_sfc_main$
|
|
25777
|
-
createVNode(_sfc_main$
|
|
25872
|
+
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25873
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25874
|
+
createVNode(_sfc_main$Y, {
|
|
25778
25875
|
options: _ctx.options,
|
|
25779
25876
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25780
25877
|
}, null, 8, ["options", "is-product-list"]),
|
|
25781
|
-
createBaseVNode("div",
|
|
25782
|
-
|
|
25878
|
+
createBaseVNode("div", {
|
|
25879
|
+
id: "lupa-search-results",
|
|
25880
|
+
class: normalizeClass(indicatorClasses.value)
|
|
25881
|
+
}, [
|
|
25882
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
25783
25883
|
key: 0,
|
|
25784
25884
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25785
25885
|
ref_key: "searchResultsFilters",
|
|
@@ -25804,7 +25904,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25804
25904
|
key: "0"
|
|
25805
25905
|
} : void 0
|
|
25806
25906
|
]), 1032, ["options", "ssr"])
|
|
25807
|
-
])
|
|
25907
|
+
], 2)
|
|
25808
25908
|
], 64))
|
|
25809
25909
|
], 2);
|
|
25810
25910
|
};
|
|
@@ -31413,7 +31513,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31413
31513
|
onClick: withModifiers(innerClick, ["stop"])
|
|
31414
31514
|
}, [
|
|
31415
31515
|
createBaseVNode("div", _hoisted_2$7, [
|
|
31416
|
-
createVNode(_sfc_main
|
|
31516
|
+
createVNode(_sfc_main$$, {
|
|
31417
31517
|
options: fullSearchBoxOptions.value,
|
|
31418
31518
|
"is-search-container": true,
|
|
31419
31519
|
ref_key: "searchBox",
|
|
@@ -32943,7 +33043,7 @@ const _hoisted_4 = {
|
|
|
32943
33043
|
key: 0,
|
|
32944
33044
|
class: "lupasearch-chat-content"
|
|
32945
33045
|
};
|
|
32946
|
-
const _sfc_main$
|
|
33046
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
32947
33047
|
__name: "ChatContainer",
|
|
32948
33048
|
props: {
|
|
32949
33049
|
options: {}
|
|
@@ -38961,7 +39061,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38961
39061
|
};
|
|
38962
39062
|
__expose({ fetch: fetch2 });
|
|
38963
39063
|
return (_ctx, _cache) => {
|
|
38964
|
-
return openBlock(), createBlock(unref(_sfc_main
|
|
39064
|
+
return openBlock(), createBlock(unref(_sfc_main$$), {
|
|
38965
39065
|
options: fullSearchBoxOptions.value,
|
|
38966
39066
|
ref_key: "searchBox",
|
|
38967
39067
|
ref: searchBox2
|
|
@@ -39516,7 +39616,7 @@ const chat = (options, mountOptions) => {
|
|
|
39516
39616
|
const instance = createVue(
|
|
39517
39617
|
options.displayOptions.containerSelector,
|
|
39518
39618
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
39519
|
-
_sfc_main$
|
|
39619
|
+
_sfc_main$1v,
|
|
39520
39620
|
{
|
|
39521
39621
|
options
|
|
39522
39622
|
}
|