@getlupa/client 1.15.16 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +369 -283
- package/dist/lupaSearch.js +369 -283
- package/dist/lupaSearch.mjs +369 -283
- package/dist/lupaSearch.umd.js +369 -283
- package/dist/src/modules/pluginManager/PluginConfigurationMerger.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -8697,8 +8697,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8697
8697
|
});
|
|
8698
8698
|
const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
|
|
8699
8699
|
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
8700
|
-
const _hoisted_3$
|
|
8701
|
-
const _hoisted_4$
|
|
8700
|
+
const _hoisted_3$C = { id: "lupa-search-box-input" };
|
|
8701
|
+
const _hoisted_4$s = ["value"];
|
|
8702
8702
|
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8703
8703
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8704
8704
|
const _hoisted_7$7 = [
|
|
@@ -8708,7 +8708,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8708
8708
|
key: 0,
|
|
8709
8709
|
class: "lupa-close-label"
|
|
8710
8710
|
};
|
|
8711
|
-
const _sfc_main$
|
|
8711
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
8712
8712
|
__name: "SearchBoxInput",
|
|
8713
8713
|
props: {
|
|
8714
8714
|
options: {},
|
|
@@ -8799,13 +8799,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8799
8799
|
onClick: clear2
|
|
8800
8800
|
}, null, 2)
|
|
8801
8801
|
]),
|
|
8802
|
-
createBaseVNode("div", _hoisted_3$
|
|
8802
|
+
createBaseVNode("div", _hoisted_3$C, [
|
|
8803
8803
|
createBaseVNode("input", {
|
|
8804
8804
|
class: "lupa-hint",
|
|
8805
8805
|
"aria-hidden": "true",
|
|
8806
8806
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8807
8807
|
disabled: ""
|
|
8808
|
-
}, null, 8, _hoisted_4$
|
|
8808
|
+
}, null, 8, _hoisted_4$s),
|
|
8809
8809
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8810
8810
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8811
8811
|
}, inputAttributes.value, {
|
|
@@ -8838,7 +8838,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8838
8838
|
};
|
|
8839
8839
|
}
|
|
8840
8840
|
});
|
|
8841
|
-
const _sfc_main$
|
|
8841
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
8842
8842
|
__name: "SearchBoxMoreResults",
|
|
8843
8843
|
props: {
|
|
8844
8844
|
labels: {},
|
|
@@ -8877,7 +8877,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8877
8877
|
});
|
|
8878
8878
|
const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
|
|
8879
8879
|
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
8880
|
-
const _sfc_main$
|
|
8880
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
8881
8881
|
__name: "SearchBoxHistoryItem",
|
|
8882
8882
|
props: {
|
|
8883
8883
|
item: {},
|
|
@@ -8912,7 +8912,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8912
8912
|
key: 0,
|
|
8913
8913
|
class: "lupa-search-box-history-panel"
|
|
8914
8914
|
};
|
|
8915
|
-
const _sfc_main$
|
|
8915
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8916
8916
|
__name: "SearchBoxHistoryPanel",
|
|
8917
8917
|
props: {
|
|
8918
8918
|
options: {}
|
|
@@ -8955,7 +8955,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8955
8955
|
return (_ctx, _cache) => {
|
|
8956
8956
|
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8957
8957
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8958
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8958
|
+
return openBlock(), createBlock(_sfc_main$1s, {
|
|
8959
8959
|
key: item,
|
|
8960
8960
|
item,
|
|
8961
8961
|
highlighted: index === highlightIndex.value,
|
|
@@ -8972,7 +8972,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8972
8972
|
}
|
|
8973
8973
|
});
|
|
8974
8974
|
const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
|
|
8975
|
-
const _sfc_main$
|
|
8975
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8976
8976
|
__name: "SearchBoxNoResults",
|
|
8977
8977
|
props: {
|
|
8978
8978
|
labels: {}
|
|
@@ -9017,12 +9017,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9017
9017
|
"data-cy": "lupa-suggestion-value",
|
|
9018
9018
|
class: "lupa-suggestion-value"
|
|
9019
9019
|
};
|
|
9020
|
-
const _hoisted_3$
|
|
9020
|
+
const _hoisted_3$B = {
|
|
9021
9021
|
key: 2,
|
|
9022
9022
|
class: "lupa-suggestion-facet",
|
|
9023
9023
|
"data-cy": "lupa-suggestion-facet"
|
|
9024
9024
|
};
|
|
9025
|
-
const _hoisted_4$
|
|
9025
|
+
const _hoisted_4$r = {
|
|
9026
9026
|
class: "lupa-suggestion-facet-label",
|
|
9027
9027
|
"data-cy": "lupa-suggestion-facet-label"
|
|
9028
9028
|
};
|
|
@@ -9030,7 +9030,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9030
9030
|
class: "lupa-suggestion-facet-value",
|
|
9031
9031
|
"data-cy": "lupa-suggestion-facet-value"
|
|
9032
9032
|
};
|
|
9033
|
-
const _sfc_main$
|
|
9033
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
9034
9034
|
__name: "SearchBoxSuggestion",
|
|
9035
9035
|
props: {
|
|
9036
9036
|
suggestion: {},
|
|
@@ -9067,8 +9067,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9067
9067
|
"data-cy": "lupa-suggestion-value",
|
|
9068
9068
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
9069
9069
|
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
9070
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9071
|
-
createBaseVNode("span", _hoisted_4$
|
|
9070
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
9071
|
+
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
9072
9072
|
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
9073
9073
|
])) : createCommentVNode("", true)
|
|
9074
9074
|
]);
|
|
@@ -9079,7 +9079,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9079
9079
|
id: "lupa-search-box-suggestions",
|
|
9080
9080
|
"data-cy": "lupa-search-box-suggestions"
|
|
9081
9081
|
};
|
|
9082
|
-
const _sfc_main$
|
|
9082
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
9083
9083
|
__name: "SearchBoxSuggestions",
|
|
9084
9084
|
props: {
|
|
9085
9085
|
items: {},
|
|
@@ -9141,7 +9141,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9141
9141
|
return (_ctx, _cache) => {
|
|
9142
9142
|
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
9143
9143
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9144
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9144
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
9145
9145
|
key: getSuggestionKey(item),
|
|
9146
9146
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9147
9147
|
suggestion: item,
|
|
@@ -9169,7 +9169,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9169
9169
|
}, timeout);
|
|
9170
9170
|
};
|
|
9171
9171
|
};
|
|
9172
|
-
const _sfc_main$
|
|
9172
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
9173
9173
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9174
9174
|
props: {
|
|
9175
9175
|
panel: {},
|
|
@@ -9211,7 +9211,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9211
9211
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9212
9212
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9213
9213
|
return (_ctx, _cache) => {
|
|
9214
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9214
|
+
return openBlock(), createBlock(_sfc_main$1o, {
|
|
9215
9215
|
items: searchResult.value,
|
|
9216
9216
|
highlight: _ctx.panel.highlight,
|
|
9217
9217
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18302,7 +18302,7 @@ and ensure you are accounting for this risk.
|
|
|
18302
18302
|
};
|
|
18303
18303
|
const _hoisted_1$1b = ["src"];
|
|
18304
18304
|
const _hoisted_2$S = ["src"];
|
|
18305
|
-
const _sfc_main$
|
|
18305
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
18306
18306
|
__name: "ProductImage",
|
|
18307
18307
|
props: {
|
|
18308
18308
|
item: {},
|
|
@@ -18457,7 +18457,7 @@ and ensure you are accounting for this risk.
|
|
|
18457
18457
|
};
|
|
18458
18458
|
}
|
|
18459
18459
|
});
|
|
18460
|
-
const _sfc_main$
|
|
18460
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
18461
18461
|
__name: "SearchBoxProductImage",
|
|
18462
18462
|
props: {
|
|
18463
18463
|
item: {},
|
|
@@ -18465,7 +18465,7 @@ and ensure you are accounting for this risk.
|
|
|
18465
18465
|
},
|
|
18466
18466
|
setup(__props) {
|
|
18467
18467
|
return (_ctx, _cache) => {
|
|
18468
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18468
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
18469
18469
|
item: _ctx.item,
|
|
18470
18470
|
options: _ctx.options,
|
|
18471
18471
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18479,7 +18479,7 @@ and ensure you are accounting for this risk.
|
|
|
18479
18479
|
key: 1,
|
|
18480
18480
|
class: "lupa-search-box-product-title"
|
|
18481
18481
|
};
|
|
18482
|
-
const _sfc_main$
|
|
18482
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
18483
18483
|
__name: "SearchBoxProductTitle",
|
|
18484
18484
|
props: {
|
|
18485
18485
|
item: {},
|
|
@@ -18513,7 +18513,7 @@ and ensure you are accounting for this risk.
|
|
|
18513
18513
|
key: 1,
|
|
18514
18514
|
class: "lupa-search-box-product-description"
|
|
18515
18515
|
};
|
|
18516
|
-
const _sfc_main$
|
|
18516
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18517
18517
|
__name: "SearchBoxProductDescription",
|
|
18518
18518
|
props: {
|
|
18519
18519
|
item: {},
|
|
@@ -18541,7 +18541,7 @@ and ensure you are accounting for this risk.
|
|
|
18541
18541
|
}
|
|
18542
18542
|
});
|
|
18543
18543
|
const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
|
|
18544
|
-
const _sfc_main$
|
|
18544
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18545
18545
|
__name: "SearchBoxProductPrice",
|
|
18546
18546
|
props: {
|
|
18547
18547
|
item: {},
|
|
@@ -18565,7 +18565,7 @@ and ensure you are accounting for this risk.
|
|
|
18565
18565
|
};
|
|
18566
18566
|
}
|
|
18567
18567
|
});
|
|
18568
|
-
const _sfc_main$
|
|
18568
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18569
18569
|
__name: "SearchBoxProductRegularPrice",
|
|
18570
18570
|
props: {
|
|
18571
18571
|
item: {},
|
|
@@ -18594,10 +18594,10 @@ and ensure you are accounting for this risk.
|
|
|
18594
18594
|
});
|
|
18595
18595
|
const _hoisted_1$17 = ["innerHTML"];
|
|
18596
18596
|
const _hoisted_2$P = { key: 0 };
|
|
18597
|
-
const _hoisted_3$
|
|
18598
|
-
const _hoisted_4$
|
|
18597
|
+
const _hoisted_3$A = { key: 1 };
|
|
18598
|
+
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
18599
18599
|
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18600
|
-
const _sfc_main$
|
|
18600
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18601
18601
|
__name: "SearchBoxProductCustom",
|
|
18602
18602
|
props: {
|
|
18603
18603
|
item: {},
|
|
@@ -18627,8 +18627,8 @@ and ensure you are accounting for this risk.
|
|
|
18627
18627
|
key: 1,
|
|
18628
18628
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18629
18629
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18630
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18631
|
-
createBaseVNode("div", _hoisted_4$
|
|
18630
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
18631
|
+
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
18632
18632
|
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18633
18633
|
]))
|
|
18634
18634
|
], 16));
|
|
@@ -18636,7 +18636,7 @@ and ensure you are accounting for this risk.
|
|
|
18636
18636
|
}
|
|
18637
18637
|
});
|
|
18638
18638
|
const _hoisted_1$16 = ["innerHTML"];
|
|
18639
|
-
const _sfc_main$
|
|
18639
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18640
18640
|
__name: "SearchBoxProductCustomHtml",
|
|
18641
18641
|
props: {
|
|
18642
18642
|
item: {},
|
|
@@ -18782,8 +18782,11 @@ and ensure you are accounting for this risk.
|
|
|
18782
18782
|
return hasResults.value && ((_a = searchResult.value.offset) != null ? _a : 0) >= totalItems.value;
|
|
18783
18783
|
}
|
|
18784
18784
|
);
|
|
18785
|
-
const setSidebarState = ({
|
|
18786
|
-
|
|
18785
|
+
const setSidebarState = ({
|
|
18786
|
+
visible,
|
|
18787
|
+
disableBodyScrolling = true
|
|
18788
|
+
}) => {
|
|
18789
|
+
if (visible && disableBodyScrolling) {
|
|
18787
18790
|
disableBodyScroll();
|
|
18788
18791
|
} else {
|
|
18789
18792
|
enableBodyScroll();
|
|
@@ -18897,8 +18900,8 @@ and ensure you are accounting for this risk.
|
|
|
18897
18900
|
});
|
|
18898
18901
|
const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18899
18902
|
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
18900
|
-
const _hoisted_3$
|
|
18901
|
-
const _sfc_main$
|
|
18903
|
+
const _hoisted_3$z = ["onClick", "disabled"];
|
|
18904
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18902
18905
|
__name: "SearchBoxProductAddToCart",
|
|
18903
18906
|
props: {
|
|
18904
18907
|
item: {},
|
|
@@ -18940,7 +18943,7 @@ and ensure you are accounting for this risk.
|
|
|
18940
18943
|
"data-cy": "lupa-add-to-cart",
|
|
18941
18944
|
type: "button",
|
|
18942
18945
|
disabled: !inStockValue.value || loading.value
|
|
18943
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$
|
|
18946
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$z)
|
|
18944
18947
|
])
|
|
18945
18948
|
]);
|
|
18946
18949
|
};
|
|
@@ -18952,17 +18955,17 @@ and ensure you are accounting for this risk.
|
|
|
18952
18955
|
};
|
|
18953
18956
|
const __default__$4 = {
|
|
18954
18957
|
components: {
|
|
18955
|
-
SearchBoxProductImage: _sfc_main$
|
|
18956
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18957
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18958
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18959
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18960
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18961
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18962
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18958
|
+
SearchBoxProductImage: _sfc_main$1l,
|
|
18959
|
+
SearchBoxProductTitle: _sfc_main$1k,
|
|
18960
|
+
SearchBoxProductDescription: _sfc_main$1j,
|
|
18961
|
+
SearchBoxProductPrice: _sfc_main$1i,
|
|
18962
|
+
SearchBoxProductRegularPrice: _sfc_main$1h,
|
|
18963
|
+
SearchBoxProductCustom: _sfc_main$1g,
|
|
18964
|
+
SearchBoxProductCustomHtml: _sfc_main$1f,
|
|
18965
|
+
SearchBoxProductAddToCart: _sfc_main$1e
|
|
18963
18966
|
}
|
|
18964
18967
|
};
|
|
18965
|
-
const _sfc_main$
|
|
18968
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18966
18969
|
__name: "SearchBoxProductElement",
|
|
18967
18970
|
props: {
|
|
18968
18971
|
item: {},
|
|
@@ -19048,12 +19051,12 @@ and ensure you are accounting for this risk.
|
|
|
19048
19051
|
}));
|
|
19049
19052
|
const _hoisted_1$13 = { class: "lupa-badge-title" };
|
|
19050
19053
|
const _hoisted_2$N = ["src"];
|
|
19051
|
-
const _hoisted_3$
|
|
19052
|
-
const _hoisted_4$
|
|
19054
|
+
const _hoisted_3$y = { key: 1 };
|
|
19055
|
+
const _hoisted_4$p = {
|
|
19053
19056
|
key: 0,
|
|
19054
19057
|
class: "lupa-badge-full-text"
|
|
19055
19058
|
};
|
|
19056
|
-
const _sfc_main$
|
|
19059
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
19057
19060
|
__name: "SearchResultGeneratedBadge",
|
|
19058
19061
|
props: {
|
|
19059
19062
|
options: {},
|
|
@@ -19091,15 +19094,15 @@ and ensure you are accounting for this risk.
|
|
|
19091
19094
|
key: 0,
|
|
19092
19095
|
src: image.value
|
|
19093
19096
|
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
19094
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
19097
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
19095
19098
|
]),
|
|
19096
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
19099
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
19097
19100
|
], 6);
|
|
19098
19101
|
};
|
|
19099
19102
|
}
|
|
19100
19103
|
});
|
|
19101
19104
|
const _hoisted_1$12 = { class: "lupa-generated-badges" };
|
|
19102
|
-
const _sfc_main$
|
|
19105
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
19103
19106
|
__name: "SearchResultGeneratedBadges",
|
|
19104
19107
|
props: {
|
|
19105
19108
|
options: {}
|
|
@@ -19127,7 +19130,7 @@ and ensure you are accounting for this risk.
|
|
|
19127
19130
|
return (_ctx, _cache) => {
|
|
19128
19131
|
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
19129
19132
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19130
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19133
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19131
19134
|
key: badge.id,
|
|
19132
19135
|
badge,
|
|
19133
19136
|
options: _ctx.options
|
|
@@ -19138,7 +19141,7 @@ and ensure you are accounting for this risk.
|
|
|
19138
19141
|
}
|
|
19139
19142
|
});
|
|
19140
19143
|
const _hoisted_1$11 = ["innerHTML"];
|
|
19141
|
-
const _sfc_main$
|
|
19144
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
19142
19145
|
__name: "CustomBadge",
|
|
19143
19146
|
props: {
|
|
19144
19147
|
badge: {}
|
|
@@ -19164,7 +19167,7 @@ and ensure you are accounting for this risk.
|
|
|
19164
19167
|
}
|
|
19165
19168
|
});
|
|
19166
19169
|
const _hoisted_1$10 = { class: "lupa-text-badges" };
|
|
19167
|
-
const _sfc_main$
|
|
19170
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
19168
19171
|
__name: "TextBadge",
|
|
19169
19172
|
props: {
|
|
19170
19173
|
badge: {}
|
|
@@ -19191,7 +19194,7 @@ and ensure you are accounting for this risk.
|
|
|
19191
19194
|
});
|
|
19192
19195
|
const _hoisted_1$$ = { class: "lupa-image-badges" };
|
|
19193
19196
|
const _hoisted_2$M = ["src"];
|
|
19194
|
-
const _sfc_main$
|
|
19197
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
19195
19198
|
__name: "ImageBadge",
|
|
19196
19199
|
props: {
|
|
19197
19200
|
badge: {}
|
|
@@ -19226,7 +19229,7 @@ and ensure you are accounting for this risk.
|
|
|
19226
19229
|
};
|
|
19227
19230
|
}
|
|
19228
19231
|
});
|
|
19229
|
-
const _sfc_main$
|
|
19232
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19230
19233
|
__name: "DiscountBadge",
|
|
19231
19234
|
props: {
|
|
19232
19235
|
badge: {}
|
|
@@ -19287,13 +19290,13 @@ and ensure you are accounting for this risk.
|
|
|
19287
19290
|
const _hoisted_1$_ = { id: "lupa-search-results-badges" };
|
|
19288
19291
|
const __default__$3 = {
|
|
19289
19292
|
components: {
|
|
19290
|
-
CustomBadge: _sfc_main$
|
|
19291
|
-
TextBadge: _sfc_main$
|
|
19292
|
-
ImageBadge: _sfc_main$
|
|
19293
|
-
DiscountBadge: _sfc_main$
|
|
19293
|
+
CustomBadge: _sfc_main$1a,
|
|
19294
|
+
TextBadge: _sfc_main$19,
|
|
19295
|
+
ImageBadge: _sfc_main$18,
|
|
19296
|
+
DiscountBadge: _sfc_main$17
|
|
19294
19297
|
}
|
|
19295
19298
|
};
|
|
19296
|
-
const _sfc_main$
|
|
19299
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19297
19300
|
__name: "SearchResultsBadgeWrapper",
|
|
19298
19301
|
props: {
|
|
19299
19302
|
position: {},
|
|
@@ -19367,7 +19370,7 @@ and ensure you are accounting for this risk.
|
|
|
19367
19370
|
badge
|
|
19368
19371
|
}, null, 8, ["badge"]);
|
|
19369
19372
|
}), 128)),
|
|
19370
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19373
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
19371
19374
|
key: 0,
|
|
19372
19375
|
options: _ctx.options
|
|
19373
19376
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19378,11 +19381,11 @@ and ensure you are accounting for this risk.
|
|
|
19378
19381
|
}));
|
|
19379
19382
|
const _hoisted_1$Z = ["href"];
|
|
19380
19383
|
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
19381
|
-
const _hoisted_3$
|
|
19384
|
+
const _hoisted_3$x = {
|
|
19382
19385
|
key: 0,
|
|
19383
19386
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19384
19387
|
};
|
|
19385
|
-
const _sfc_main$
|
|
19388
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
19386
19389
|
__name: "SearchBoxProduct",
|
|
19387
19390
|
props: {
|
|
19388
19391
|
item: {},
|
|
@@ -19468,7 +19471,7 @@ and ensure you are accounting for this risk.
|
|
|
19468
19471
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19469
19472
|
}, [
|
|
19470
19473
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19471
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19474
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
19472
19475
|
class: "lupa-search-box-product-element",
|
|
19473
19476
|
item: _ctx.item,
|
|
19474
19477
|
element,
|
|
@@ -19481,7 +19484,7 @@ and ensure you are accounting for this risk.
|
|
|
19481
19484
|
createBaseVNode("div", _hoisted_2$L, [
|
|
19482
19485
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19483
19486
|
var _a;
|
|
19484
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19487
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
19485
19488
|
key: element.key,
|
|
19486
19489
|
class: "lupa-search-box-product-element",
|
|
19487
19490
|
item: _ctx.item,
|
|
@@ -19492,7 +19495,7 @@ and ensure you are accounting for this risk.
|
|
|
19492
19495
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19493
19496
|
name: "badges",
|
|
19494
19497
|
fn: withCtx(() => [
|
|
19495
|
-
createVNode(_sfc_main$
|
|
19498
|
+
createVNode(_sfc_main$16, {
|
|
19496
19499
|
options: badgeOptions.value,
|
|
19497
19500
|
position: "card"
|
|
19498
19501
|
}, null, 8, ["options"])
|
|
@@ -19502,8 +19505,8 @@ and ensure you are accounting for this risk.
|
|
|
19502
19505
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19503
19506
|
}), 128))
|
|
19504
19507
|
]),
|
|
19505
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19506
|
-
createVNode(_sfc_main$
|
|
19508
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
19509
|
+
createVNode(_sfc_main$1d, {
|
|
19507
19510
|
class: "lupa-search-box-product-element",
|
|
19508
19511
|
item: _ctx.item,
|
|
19509
19512
|
element: addToCartElement.value,
|
|
@@ -19585,7 +19588,7 @@ and ensure you are accounting for this risk.
|
|
|
19585
19588
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
19586
19589
|
});
|
|
19587
19590
|
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
19588
|
-
const _sfc_main$
|
|
19591
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
19589
19592
|
__name: "SearchBoxProducts",
|
|
19590
19593
|
props: {
|
|
19591
19594
|
items: {},
|
|
@@ -19665,7 +19668,7 @@ and ensure you are accounting for this risk.
|
|
|
19665
19668
|
itemClicked: handleProductClick
|
|
19666
19669
|
});
|
|
19667
19670
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19668
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19671
|
+
return openBlock(), createBlock(_sfc_main$15, {
|
|
19669
19672
|
key: index,
|
|
19670
19673
|
item,
|
|
19671
19674
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19682,7 +19685,7 @@ and ensure you are accounting for this risk.
|
|
|
19682
19685
|
});
|
|
19683
19686
|
const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19684
19687
|
const _hoisted_2$K = { key: 0 };
|
|
19685
|
-
const _sfc_main$
|
|
19688
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19686
19689
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19687
19690
|
props: {
|
|
19688
19691
|
options: {},
|
|
@@ -19792,7 +19795,7 @@ and ensure you are accounting for this risk.
|
|
|
19792
19795
|
}
|
|
19793
19796
|
return parsedObject;
|
|
19794
19797
|
};
|
|
19795
|
-
const _sfc_main$
|
|
19798
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19796
19799
|
__name: "SearchBoxProductsWrapper",
|
|
19797
19800
|
props: {
|
|
19798
19801
|
panel: {},
|
|
@@ -19857,7 +19860,7 @@ and ensure you are accounting for this risk.
|
|
|
19857
19860
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19858
19861
|
return (_ctx, _cache) => {
|
|
19859
19862
|
var _a, _b;
|
|
19860
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19863
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19861
19864
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19862
19865
|
panelOptions: _ctx.panel,
|
|
19863
19866
|
labels: _ctx.labels,
|
|
@@ -19867,7 +19870,7 @@ and ensure you are accounting for this risk.
|
|
|
19867
19870
|
default: withCtx(() => {
|
|
19868
19871
|
var _a2;
|
|
19869
19872
|
return [
|
|
19870
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
19873
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$13, {
|
|
19871
19874
|
key: 0,
|
|
19872
19875
|
options: _ctx.searchBoxOptions,
|
|
19873
19876
|
panel: _ctx.panel,
|
|
@@ -19888,7 +19891,7 @@ and ensure you are accounting for this risk.
|
|
|
19888
19891
|
};
|
|
19889
19892
|
}
|
|
19890
19893
|
});
|
|
19891
|
-
const _sfc_main$
|
|
19894
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19892
19895
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19893
19896
|
props: {
|
|
19894
19897
|
panel: {},
|
|
@@ -19960,7 +19963,7 @@ and ensure you are accounting for this risk.
|
|
|
19960
19963
|
});
|
|
19961
19964
|
return (_ctx, _cache) => {
|
|
19962
19965
|
var _a, _b;
|
|
19963
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19966
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19964
19967
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19965
19968
|
panelOptions: documentPanelOptions.value,
|
|
19966
19969
|
labels: _ctx.labels,
|
|
@@ -19983,11 +19986,11 @@ and ensure you are accounting for this risk.
|
|
|
19983
19986
|
id: "lupa-search-box-panel"
|
|
19984
19987
|
};
|
|
19985
19988
|
const _hoisted_2$J = ["data-cy"];
|
|
19986
|
-
const _hoisted_3$
|
|
19989
|
+
const _hoisted_3$w = {
|
|
19987
19990
|
key: 0,
|
|
19988
19991
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19989
19992
|
};
|
|
19990
|
-
const _hoisted_4$
|
|
19993
|
+
const _hoisted_4$o = {
|
|
19991
19994
|
key: 1,
|
|
19992
19995
|
class: "lupa-panel-title"
|
|
19993
19996
|
};
|
|
@@ -19997,12 +20000,12 @@ and ensure you are accounting for this risk.
|
|
|
19997
20000
|
};
|
|
19998
20001
|
const __default__$2 = {
|
|
19999
20002
|
components: {
|
|
20000
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
20001
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
20002
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
20003
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1n,
|
|
20004
|
+
SearchBoxProductsWrapper: _sfc_main$12,
|
|
20005
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$11
|
|
20003
20006
|
}
|
|
20004
20007
|
};
|
|
20005
|
-
const _sfc_main
|
|
20008
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
20006
20009
|
__name: "SearchBoxMainPanel",
|
|
20007
20010
|
props: {
|
|
20008
20011
|
options: {},
|
|
@@ -20179,8 +20182,8 @@ and ensure you are accounting for this risk.
|
|
|
20179
20182
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
20180
20183
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
20181
20184
|
}, [
|
|
20182
|
-
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20183
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
20185
|
+
((_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),
|
|
20186
|
+
((_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),
|
|
20184
20187
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
20185
20188
|
key: 2,
|
|
20186
20189
|
panel,
|
|
@@ -20205,18 +20208,18 @@ and ensure you are accounting for this risk.
|
|
|
20205
20208
|
], 14, _hoisted_2$J);
|
|
20206
20209
|
}), 128))
|
|
20207
20210
|
], 4),
|
|
20208
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
20211
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
20209
20212
|
key: 1,
|
|
20210
20213
|
labels: labels.value
|
|
20211
20214
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
20212
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
20215
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
20213
20216
|
key: 2,
|
|
20214
20217
|
labels: labels.value,
|
|
20215
20218
|
options: _ctx.options,
|
|
20216
20219
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
20217
20220
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
20218
20221
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
20219
|
-
createVNode(_sfc_main$
|
|
20222
|
+
createVNode(_sfc_main$1r, {
|
|
20220
20223
|
options: _ctx.options.history,
|
|
20221
20224
|
history: history.value,
|
|
20222
20225
|
onGoToResults: handleGoToResults,
|
|
@@ -20243,7 +20246,7 @@ and ensure you are accounting for this risk.
|
|
|
20243
20246
|
};
|
|
20244
20247
|
const _hoisted_1$V = { id: "lupa-search-box" };
|
|
20245
20248
|
const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
|
|
20246
|
-
const _sfc_main
|
|
20249
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
20247
20250
|
__name: "SearchBox",
|
|
20248
20251
|
props: {
|
|
20249
20252
|
options: {},
|
|
@@ -20513,7 +20516,7 @@ and ensure you are accounting for this risk.
|
|
|
20513
20516
|
var _a2;
|
|
20514
20517
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
20515
20518
|
createBaseVNode("div", _hoisted_2$I, [
|
|
20516
|
-
createVNode(_sfc_main$
|
|
20519
|
+
createVNode(_sfc_main$1u, {
|
|
20517
20520
|
options: inputOptions.value,
|
|
20518
20521
|
suggestedValue: suggestedValue.value,
|
|
20519
20522
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20526,7 +20529,7 @@ and ensure you are accounting for this risk.
|
|
|
20526
20529
|
onSearch: handleSearch,
|
|
20527
20530
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20528
20531
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20529
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
20532
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$10, {
|
|
20530
20533
|
key: 0,
|
|
20531
20534
|
options: panelOptions.value,
|
|
20532
20535
|
inputValue: inputValue.value,
|
|
@@ -20623,12 +20626,12 @@ and ensure you are accounting for this risk.
|
|
|
20623
20626
|
key: 0,
|
|
20624
20627
|
"data-cy": "suggested-search-text-label"
|
|
20625
20628
|
};
|
|
20626
|
-
const _hoisted_3$
|
|
20629
|
+
const _hoisted_3$v = {
|
|
20627
20630
|
key: 1,
|
|
20628
20631
|
"data-cy": "did-you-mean-label"
|
|
20629
20632
|
};
|
|
20630
|
-
const _hoisted_4$
|
|
20631
|
-
const _sfc_main$
|
|
20633
|
+
const _hoisted_4$n = { key: 1 };
|
|
20634
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
20632
20635
|
__name: "SearchResultsDidYouMean",
|
|
20633
20636
|
props: {
|
|
20634
20637
|
labels: {}
|
|
@@ -20670,7 +20673,7 @@ and ensure you are accounting for this risk.
|
|
|
20670
20673
|
]);
|
|
20671
20674
|
}), 128))
|
|
20672
20675
|
])) : createCommentVNode("", true),
|
|
20673
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20676
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
20674
20677
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20675
20678
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20676
20679
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20678,7 +20681,7 @@ and ensure you are accounting for this risk.
|
|
|
20678
20681
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20679
20682
|
"data-cy": "did-you-mean-value",
|
|
20680
20683
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20681
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20684
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
20682
20685
|
]);
|
|
20683
20686
|
}), 128))
|
|
20684
20687
|
])) : createCommentVNode("", true)
|
|
@@ -20691,7 +20694,7 @@ and ensure you are accounting for this risk.
|
|
|
20691
20694
|
class: "lupa-search-results-summary"
|
|
20692
20695
|
};
|
|
20693
20696
|
const _hoisted_2$G = ["innerHTML"];
|
|
20694
|
-
const _sfc_main$
|
|
20697
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
20695
20698
|
__name: "SearchResultsSummary",
|
|
20696
20699
|
props: {
|
|
20697
20700
|
label: {},
|
|
@@ -20724,13 +20727,13 @@ and ensure you are accounting for this risk.
|
|
|
20724
20727
|
"data-cy": "lupa-result-page-title"
|
|
20725
20728
|
};
|
|
20726
20729
|
const _hoisted_2$F = { key: 0 };
|
|
20727
|
-
const _hoisted_3$
|
|
20730
|
+
const _hoisted_3$u = {
|
|
20728
20731
|
key: 1,
|
|
20729
20732
|
class: "lupa-results-total-count"
|
|
20730
20733
|
};
|
|
20731
|
-
const _hoisted_4$
|
|
20734
|
+
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
20732
20735
|
const _hoisted_5$f = ["innerHTML"];
|
|
20733
|
-
const _sfc_main$
|
|
20736
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20734
20737
|
__name: "SearchResultsTitle",
|
|
20735
20738
|
props: {
|
|
20736
20739
|
options: {},
|
|
@@ -20776,13 +20779,13 @@ and ensure you are accounting for this risk.
|
|
|
20776
20779
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
|
|
20777
20780
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
20778
20781
|
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20779
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20782
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
20780
20783
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20781
|
-
createBaseVNode("span", _hoisted_4$
|
|
20784
|
+
createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
|
|
20782
20785
|
createTextVNode(")")
|
|
20783
20786
|
])) : createCommentVNode("", true)
|
|
20784
20787
|
])) : createCommentVNode("", true),
|
|
20785
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20788
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
20786
20789
|
key: 1,
|
|
20787
20790
|
label: summaryLabel.value
|
|
20788
20791
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20795,16 +20798,15 @@ and ensure you are accounting for this risk.
|
|
|
20795
20798
|
};
|
|
20796
20799
|
}
|
|
20797
20800
|
});
|
|
20798
|
-
const _hoisted_1$R = {
|
|
20799
|
-
const _hoisted_2$E = {
|
|
20801
|
+
const _hoisted_1$R = {
|
|
20800
20802
|
class: "lupa-current-filter-label",
|
|
20801
20803
|
"data-cy": "lupa-current-filter-label"
|
|
20802
20804
|
};
|
|
20803
|
-
const
|
|
20805
|
+
const _hoisted_2$E = {
|
|
20804
20806
|
class: "lupa-current-filter-value",
|
|
20805
20807
|
"data-cy": "lupa-current-filter-value"
|
|
20806
20808
|
};
|
|
20807
|
-
const _sfc_main$
|
|
20809
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20808
20810
|
__name: "CurrentFilterDisplay",
|
|
20809
20811
|
props: {
|
|
20810
20812
|
filter: {}
|
|
@@ -20812,18 +20814,23 @@ and ensure you are accounting for this risk.
|
|
|
20812
20814
|
emits: ["remove"],
|
|
20813
20815
|
setup(__props, { emit: emit2 }) {
|
|
20814
20816
|
const props = __props;
|
|
20817
|
+
const facetKeyClass = computed(() => {
|
|
20818
|
+
return `lupa-facet-active-filter-${props.filter.key}`;
|
|
20819
|
+
});
|
|
20815
20820
|
const handleClick = () => {
|
|
20816
20821
|
emit2("remove", { filter: props.filter });
|
|
20817
20822
|
};
|
|
20818
20823
|
return (_ctx, _cache) => {
|
|
20819
|
-
return openBlock(), createElementBlock("div",
|
|
20824
|
+
return openBlock(), createElementBlock("div", {
|
|
20825
|
+
class: normalizeClass(["lupa-search-result-filter-value", { [facetKeyClass.value]: true }])
|
|
20826
|
+
}, [
|
|
20820
20827
|
createBaseVNode("div", {
|
|
20821
20828
|
class: "lupa-current-filter-action",
|
|
20822
20829
|
onClick: handleClick
|
|
20823
20830
|
}, "⨉"),
|
|
20824
|
-
createBaseVNode("div",
|
|
20825
|
-
createBaseVNode("div",
|
|
20826
|
-
]);
|
|
20831
|
+
createBaseVNode("div", _hoisted_1$R, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20832
|
+
createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.value), 1)
|
|
20833
|
+
], 2);
|
|
20827
20834
|
};
|
|
20828
20835
|
}
|
|
20829
20836
|
});
|
|
@@ -20832,12 +20839,12 @@ and ensure you are accounting for this risk.
|
|
|
20832
20839
|
key: 0,
|
|
20833
20840
|
class: "lupa-filter-count"
|
|
20834
20841
|
};
|
|
20835
|
-
const _hoisted_3$
|
|
20842
|
+
const _hoisted_3$t = {
|
|
20836
20843
|
key: 0,
|
|
20837
20844
|
class: "filter-values"
|
|
20838
20845
|
};
|
|
20839
|
-
const _hoisted_4$
|
|
20840
|
-
const _sfc_main$
|
|
20846
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
20847
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20841
20848
|
__name: "CurrentFilters",
|
|
20842
20849
|
props: {
|
|
20843
20850
|
options: {},
|
|
@@ -20919,10 +20926,10 @@ and ensure you are accounting for this risk.
|
|
|
20919
20926
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20920
20927
|
}, null, 2)) : createCommentVNode("", true)
|
|
20921
20928
|
]),
|
|
20922
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20923
|
-
createBaseVNode("div", _hoisted_4$
|
|
20929
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20930
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
20924
20931
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20925
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20932
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
20926
20933
|
key: filter2.key + "_" + filter2.value,
|
|
20927
20934
|
filter: filter2,
|
|
20928
20935
|
onRemove: handleRemove
|
|
@@ -20940,7 +20947,7 @@ and ensure you are accounting for this risk.
|
|
|
20940
20947
|
}
|
|
20941
20948
|
});
|
|
20942
20949
|
const _hoisted_1$P = ["href"];
|
|
20943
|
-
const _sfc_main$
|
|
20950
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20944
20951
|
__name: "CategoryFilterItem",
|
|
20945
20952
|
props: {
|
|
20946
20953
|
options: {},
|
|
@@ -20987,10 +20994,10 @@ and ensure you are accounting for this risk.
|
|
|
20987
20994
|
"data-cy": "lupa-category-filter"
|
|
20988
20995
|
};
|
|
20989
20996
|
const _hoisted_2$C = { class: "lupa-category-back" };
|
|
20990
|
-
const _hoisted_3$
|
|
20991
|
-
const _hoisted_4$
|
|
20997
|
+
const _hoisted_3$s = ["href"];
|
|
20998
|
+
const _hoisted_4$k = ["href"];
|
|
20992
20999
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20993
|
-
const _sfc_main$
|
|
21000
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20994
21001
|
__name: "CategoryFilter",
|
|
20995
21002
|
props: {
|
|
20996
21003
|
options: {}
|
|
@@ -21085,7 +21092,7 @@ and ensure you are accounting for this risk.
|
|
|
21085
21092
|
"data-cy": "lupa-category-back",
|
|
21086
21093
|
href: backUrlLink.value,
|
|
21087
21094
|
onClick: handleNavigationBack
|
|
21088
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
21095
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
|
|
21089
21096
|
]),
|
|
21090
21097
|
createBaseVNode("div", {
|
|
21091
21098
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -21095,11 +21102,11 @@ and ensure you are accounting for this risk.
|
|
|
21095
21102
|
href: parentUrlLink.value,
|
|
21096
21103
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
21097
21104
|
onClick: handleNavigationParent
|
|
21098
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
21105
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
21099
21106
|
], 2),
|
|
21100
21107
|
createBaseVNode("div", _hoisted_5$e, [
|
|
21101
21108
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
21102
|
-
return openBlock(), createBlock(_sfc_main$
|
|
21109
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
21103
21110
|
key: getCategoryKey(child),
|
|
21104
21111
|
item: child,
|
|
21105
21112
|
options: _ctx.options
|
|
@@ -21115,8 +21122,8 @@ and ensure you are accounting for this risk.
|
|
|
21115
21122
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
21116
21123
|
};
|
|
21117
21124
|
const _hoisted_2$B = ["placeholder"];
|
|
21118
|
-
const _hoisted_3$
|
|
21119
|
-
const _hoisted_4$
|
|
21125
|
+
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
21126
|
+
const _hoisted_4$j = ["onClick"];
|
|
21120
21127
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
21121
21128
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
21122
21129
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -21126,7 +21133,7 @@ and ensure you are accounting for this risk.
|
|
|
21126
21133
|
};
|
|
21127
21134
|
const _hoisted_9$2 = { key: 0 };
|
|
21128
21135
|
const _hoisted_10$1 = { key: 1 };
|
|
21129
|
-
const _sfc_main$
|
|
21136
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
21130
21137
|
__name: "TermFacet",
|
|
21131
21138
|
props: {
|
|
21132
21139
|
options: {},
|
|
@@ -21207,7 +21214,7 @@ and ensure you are accounting for this risk.
|
|
|
21207
21214
|
}, null, 8, _hoisted_2$B)), [
|
|
21208
21215
|
[vModelText, termFilter.value]
|
|
21209
21216
|
]) : createCommentVNode("", true),
|
|
21210
|
-
createBaseVNode("div", _hoisted_3$
|
|
21217
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
21211
21218
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
21212
21219
|
return openBlock(), createElementBlock("div", {
|
|
21213
21220
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -21224,7 +21231,7 @@ and ensure you are accounting for this risk.
|
|
|
21224
21231
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
21225
21232
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
21226
21233
|
])
|
|
21227
|
-
], 10, _hoisted_4$
|
|
21234
|
+
], 10, _hoisted_4$j);
|
|
21228
21235
|
}), 128))
|
|
21229
21236
|
]),
|
|
21230
21237
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -22220,11 +22227,11 @@ and ensure you are accounting for this risk.
|
|
|
22220
22227
|
key: 0,
|
|
22221
22228
|
class: "lupa-stats-facet-summary"
|
|
22222
22229
|
};
|
|
22223
|
-
const _hoisted_3$
|
|
22230
|
+
const _hoisted_3$q = {
|
|
22224
22231
|
key: 1,
|
|
22225
22232
|
class: "lupa-stats-facet-summary-input"
|
|
22226
22233
|
};
|
|
22227
|
-
const _hoisted_4$
|
|
22234
|
+
const _hoisted_4$i = {
|
|
22228
22235
|
key: 0,
|
|
22229
22236
|
class: "lupa-stats-range-label"
|
|
22230
22237
|
};
|
|
@@ -22243,7 +22250,7 @@ and ensure you are accounting for this risk.
|
|
|
22243
22250
|
key: 2,
|
|
22244
22251
|
class: "lupa-stats-slider-wrapper"
|
|
22245
22252
|
};
|
|
22246
|
-
const _sfc_main$
|
|
22253
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
22247
22254
|
__name: "StatsFacet",
|
|
22248
22255
|
props: {
|
|
22249
22256
|
options: {},
|
|
@@ -22421,9 +22428,9 @@ and ensure you are accounting for this risk.
|
|
|
22421
22428
|
};
|
|
22422
22429
|
return (_ctx, _cache) => {
|
|
22423
22430
|
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
22424
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22431
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22425
22432
|
createBaseVNode("div", null, [
|
|
22426
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22433
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22427
22434
|
createBaseVNode("div", _hoisted_5$c, [
|
|
22428
22435
|
withDirectives(createBaseVNode("input", {
|
|
22429
22436
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -22489,8 +22496,8 @@ and ensure you are accounting for this risk.
|
|
|
22489
22496
|
});
|
|
22490
22497
|
const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
|
|
22491
22498
|
const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
|
|
22492
|
-
const _hoisted_3$
|
|
22493
|
-
const _hoisted_4$
|
|
22499
|
+
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22500
|
+
const _hoisted_4$h = {
|
|
22494
22501
|
key: 0,
|
|
22495
22502
|
class: "lupa-term-count"
|
|
22496
22503
|
};
|
|
@@ -22498,7 +22505,7 @@ and ensure you are accounting for this risk.
|
|
|
22498
22505
|
key: 0,
|
|
22499
22506
|
class: "lupa-facet-level"
|
|
22500
22507
|
};
|
|
22501
|
-
const _sfc_main$
|
|
22508
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
22502
22509
|
__name: "HierarchyFacetLevel",
|
|
22503
22510
|
props: {
|
|
22504
22511
|
options: {},
|
|
@@ -22550,8 +22557,8 @@ and ensure you are accounting for this risk.
|
|
|
22550
22557
|
}, null, 2)
|
|
22551
22558
|
]),
|
|
22552
22559
|
createBaseVNode("div", _hoisted_2$z, [
|
|
22553
|
-
createBaseVNode("span", _hoisted_3$
|
|
22554
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22560
|
+
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22561
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22555
22562
|
])
|
|
22556
22563
|
]),
|
|
22557
22564
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
@@ -22575,8 +22582,8 @@ and ensure you are accounting for this risk.
|
|
|
22575
22582
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22576
22583
|
};
|
|
22577
22584
|
const _hoisted_2$y = { key: 0 };
|
|
22578
|
-
const _hoisted_3$
|
|
22579
|
-
const _sfc_main$
|
|
22585
|
+
const _hoisted_3$o = ["placeholder"];
|
|
22586
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
22580
22587
|
__name: "HierarchyFacet",
|
|
22581
22588
|
props: {
|
|
22582
22589
|
options: {},
|
|
@@ -22638,12 +22645,12 @@ and ensure you are accounting for this risk.
|
|
|
22638
22645
|
"data-cy": "lupa-term-filter",
|
|
22639
22646
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22640
22647
|
placeholder: _ctx.options.labels.facetFilter
|
|
22641
|
-
}, null, 8, _hoisted_3$
|
|
22648
|
+
}, null, 8, _hoisted_3$o), [
|
|
22642
22649
|
[vModelText, termFilter.value]
|
|
22643
22650
|
])
|
|
22644
22651
|
])) : createCommentVNode("", true),
|
|
22645
22652
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22646
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22653
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
22647
22654
|
key: item.title,
|
|
22648
22655
|
options: _ctx.options,
|
|
22649
22656
|
item,
|
|
@@ -22675,12 +22682,12 @@ and ensure you are accounting for this risk.
|
|
|
22675
22682
|
};
|
|
22676
22683
|
const __default__$1 = {
|
|
22677
22684
|
components: {
|
|
22678
|
-
TermFacet: _sfc_main$
|
|
22679
|
-
StatsFacet: _sfc_main$
|
|
22680
|
-
HierarchyFacet: _sfc_main$
|
|
22685
|
+
TermFacet: _sfc_main$T,
|
|
22686
|
+
StatsFacet: _sfc_main$S,
|
|
22687
|
+
HierarchyFacet: _sfc_main$Q
|
|
22681
22688
|
}
|
|
22682
22689
|
};
|
|
22683
|
-
const _sfc_main$
|
|
22690
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22684
22691
|
__name: "FacetDisplay",
|
|
22685
22692
|
props: {
|
|
22686
22693
|
options: {},
|
|
@@ -22737,6 +22744,9 @@ and ensure you are accounting for this risk.
|
|
|
22737
22744
|
var _a2;
|
|
22738
22745
|
return ((_a2 = currentFilterKeys.value) != null ? _a2 : []).join(",");
|
|
22739
22746
|
});
|
|
22747
|
+
const facetKeyClass = computed(() => {
|
|
22748
|
+
return `lupa-facet-${facet.value.key}`;
|
|
22749
|
+
});
|
|
22740
22750
|
onMounted(() => {
|
|
22741
22751
|
var _a2;
|
|
22742
22752
|
if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
|
|
@@ -22788,7 +22798,7 @@ and ensure you are accounting for this risk.
|
|
|
22788
22798
|
"data-cy": "lupa-search-result-facet-display"
|
|
22789
22799
|
}, [
|
|
22790
22800
|
createBaseVNode("div", {
|
|
22791
|
-
class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value }]),
|
|
22801
|
+
class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value, [facetKeyClass.value]: true }]),
|
|
22792
22802
|
"data-cy": "lupa-search-result-facet-label",
|
|
22793
22803
|
onClick: toggleFacet
|
|
22794
22804
|
}, [
|
|
@@ -22820,7 +22830,7 @@ and ensure you are accounting for this risk.
|
|
|
22820
22830
|
key: 0,
|
|
22821
22831
|
class: "lupa-facets-title"
|
|
22822
22832
|
};
|
|
22823
|
-
const _sfc_main$
|
|
22833
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
22824
22834
|
__name: "FacetList",
|
|
22825
22835
|
props: {
|
|
22826
22836
|
options: {},
|
|
@@ -22861,7 +22871,7 @@ and ensure you are accounting for this risk.
|
|
|
22861
22871
|
}, [
|
|
22862
22872
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22863
22873
|
var _a2;
|
|
22864
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22874
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
22865
22875
|
key: facet.key,
|
|
22866
22876
|
facet,
|
|
22867
22877
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22877,7 +22887,7 @@ and ensure you are accounting for this risk.
|
|
|
22877
22887
|
}
|
|
22878
22888
|
});
|
|
22879
22889
|
const _hoisted_1$H = ["onClick"];
|
|
22880
|
-
const _sfc_main$
|
|
22890
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22881
22891
|
__name: "FacetsButton",
|
|
22882
22892
|
props: {
|
|
22883
22893
|
options: {}
|
|
@@ -22903,7 +22913,7 @@ and ensure you are accounting for this risk.
|
|
|
22903
22913
|
});
|
|
22904
22914
|
const _hoisted_1$G = { class: "lupa-search-result-facets" };
|
|
22905
22915
|
const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
|
|
22906
|
-
const _sfc_main$
|
|
22916
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22907
22917
|
__name: "Facets",
|
|
22908
22918
|
props: {
|
|
22909
22919
|
options: {},
|
|
@@ -22987,7 +22997,7 @@ and ensure you are accounting for this risk.
|
|
|
22987
22997
|
};
|
|
22988
22998
|
return (_ctx, _cache) => {
|
|
22989
22999
|
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
22990
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
23000
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
22991
23001
|
key: 0,
|
|
22992
23002
|
options: _ctx.options,
|
|
22993
23003
|
facets: regularFacets.value,
|
|
@@ -22998,7 +23008,7 @@ and ensure you are accounting for this risk.
|
|
|
22998
23008
|
onClear: clear2
|
|
22999
23009
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
23000
23010
|
createBaseVNode("div", _hoisted_2$v, [
|
|
23001
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
23011
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
23002
23012
|
key: 0,
|
|
23003
23013
|
options: _ctx.options,
|
|
23004
23014
|
onFilter: filter2
|
|
@@ -23012,7 +23022,7 @@ and ensure you are accounting for this risk.
|
|
|
23012
23022
|
id: "lupa-search-result-filters",
|
|
23013
23023
|
class: "lupa-search-result-filters"
|
|
23014
23024
|
};
|
|
23015
|
-
const _sfc_main$
|
|
23025
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
23016
23026
|
__name: "SearchResultsFilters",
|
|
23017
23027
|
props: {
|
|
23018
23028
|
options: {},
|
|
@@ -23046,18 +23056,18 @@ and ensure you are accounting for this risk.
|
|
|
23046
23056
|
return (_ctx, _cache) => {
|
|
23047
23057
|
var _a;
|
|
23048
23058
|
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
23049
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
23059
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
23050
23060
|
key: 0,
|
|
23051
23061
|
options: _ctx.options.currentFilters,
|
|
23052
23062
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
23053
23063
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
23054
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
23064
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$U, {
|
|
23055
23065
|
key: 1,
|
|
23056
23066
|
options: _ctx.options.categories,
|
|
23057
23067
|
ref_key: "categoryFilters",
|
|
23058
23068
|
ref: categoryFilters
|
|
23059
23069
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
23060
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23070
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
23061
23071
|
key: 2,
|
|
23062
23072
|
options: _ctx.options.facets,
|
|
23063
23073
|
onFilter: filter2
|
|
@@ -23071,15 +23081,15 @@ and ensure you are accounting for this risk.
|
|
|
23071
23081
|
class: "lupa-mobile-filter-sidebar"
|
|
23072
23082
|
};
|
|
23073
23083
|
const _hoisted_2$u = ["onClick"];
|
|
23074
|
-
const _hoisted_3$
|
|
23075
|
-
const _hoisted_4$
|
|
23084
|
+
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
23085
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
23076
23086
|
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
23077
23087
|
const _hoisted_6$6 = {
|
|
23078
23088
|
key: 0,
|
|
23079
23089
|
class: "lupa-sidebar-filter-count"
|
|
23080
23090
|
};
|
|
23081
23091
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
23082
|
-
const _sfc_main$
|
|
23092
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
23083
23093
|
__name: "MobileFilterSidebar",
|
|
23084
23094
|
props: {
|
|
23085
23095
|
options: {}
|
|
@@ -23115,8 +23125,8 @@ and ensure you are accounting for this risk.
|
|
|
23115
23125
|
class: "lupa-sidebar-close",
|
|
23116
23126
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
23117
23127
|
}, null, 8, _hoisted_2$u),
|
|
23118
|
-
createBaseVNode("div", _hoisted_3$
|
|
23119
|
-
createBaseVNode("div", _hoisted_4$
|
|
23128
|
+
createBaseVNode("div", _hoisted_3$n, [
|
|
23129
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
23120
23130
|
createBaseVNode("div", _hoisted_5$a, [
|
|
23121
23131
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
23122
23132
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -23127,7 +23137,7 @@ and ensure you are accounting for this risk.
|
|
|
23127
23137
|
})
|
|
23128
23138
|
]),
|
|
23129
23139
|
createBaseVNode("div", _hoisted_7$4, [
|
|
23130
|
-
createVNode(_sfc_main$
|
|
23140
|
+
createVNode(_sfc_main$L, {
|
|
23131
23141
|
options: _ctx.options,
|
|
23132
23142
|
expandable: isActiveFiltersExpanded.value,
|
|
23133
23143
|
onFilter: filter2
|
|
@@ -23140,12 +23150,12 @@ and ensure you are accounting for this risk.
|
|
|
23140
23150
|
});
|
|
23141
23151
|
const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
|
|
23142
23152
|
const _hoisted_2$t = ["href", "onClick"];
|
|
23143
|
-
const _hoisted_3$
|
|
23153
|
+
const _hoisted_3$m = {
|
|
23144
23154
|
key: 1,
|
|
23145
23155
|
class: "lupa-search-results-breadcrumb-text"
|
|
23146
23156
|
};
|
|
23147
|
-
const _hoisted_4$
|
|
23148
|
-
const _sfc_main$
|
|
23157
|
+
const _hoisted_4$f = { key: 2 };
|
|
23158
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
23149
23159
|
__name: "SearchResultsBreadcrumbs",
|
|
23150
23160
|
props: {
|
|
23151
23161
|
breadcrumbs: {}
|
|
@@ -23184,8 +23194,8 @@ and ensure you are accounting for this risk.
|
|
|
23184
23194
|
var _a;
|
|
23185
23195
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
23186
23196
|
}
|
|
23187
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
23188
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23197
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
23198
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
|
|
23189
23199
|
]);
|
|
23190
23200
|
}), 128))
|
|
23191
23201
|
]);
|
|
@@ -23196,7 +23206,7 @@ and ensure you are accounting for this risk.
|
|
|
23196
23206
|
id: "lupa-search-result-filters",
|
|
23197
23207
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
23198
23208
|
};
|
|
23199
|
-
const _sfc_main$
|
|
23209
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
23200
23210
|
__name: "FiltersTopDropdown",
|
|
23201
23211
|
props: {
|
|
23202
23212
|
options: {}
|
|
@@ -23209,7 +23219,7 @@ and ensure you are accounting for this risk.
|
|
|
23209
23219
|
return (_ctx, _cache) => {
|
|
23210
23220
|
var _a;
|
|
23211
23221
|
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
23212
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23222
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
23213
23223
|
key: 0,
|
|
23214
23224
|
options: _ctx.options.facets,
|
|
23215
23225
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -23221,7 +23231,7 @@ and ensure you are accounting for this risk.
|
|
|
23221
23231
|
}
|
|
23222
23232
|
});
|
|
23223
23233
|
const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
|
|
23224
|
-
const _sfc_main$
|
|
23234
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
23225
23235
|
__name: "SearchResultsLayoutSelection",
|
|
23226
23236
|
setup(__props) {
|
|
23227
23237
|
const searchResultStore = useSearchResultStore();
|
|
@@ -23258,7 +23268,7 @@ and ensure you are accounting for this risk.
|
|
|
23258
23268
|
key: 0,
|
|
23259
23269
|
class: "lupa-mobile-toggle-filter-count"
|
|
23260
23270
|
};
|
|
23261
|
-
const _sfc_main$
|
|
23271
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23262
23272
|
__name: "SearchResultsMobileToggle",
|
|
23263
23273
|
props: {
|
|
23264
23274
|
label: {},
|
|
@@ -23266,13 +23276,28 @@ and ensure you are accounting for this risk.
|
|
|
23266
23276
|
},
|
|
23267
23277
|
setup(__props) {
|
|
23268
23278
|
const searchResultStore = useSearchResultStore();
|
|
23279
|
+
const optionsStore = useOptionsStore();
|
|
23269
23280
|
const { currentFilterCount } = storeToRefs(searchResultStore);
|
|
23281
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
23282
|
+
const disableMobileBodyScrollLock = computed(
|
|
23283
|
+
() => {
|
|
23284
|
+
var _a, _b, _c;
|
|
23285
|
+
return (_c = (_b = (_a = searchResultOptions.value.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.disableMobileBodyScrollLock) != null ? _c : false;
|
|
23286
|
+
}
|
|
23287
|
+
);
|
|
23270
23288
|
const handleMobileToggle = () => {
|
|
23271
|
-
searchResultStore.setSidebarState({
|
|
23289
|
+
searchResultStore.setSidebarState({
|
|
23290
|
+
visible: true,
|
|
23291
|
+
disableBodyScrolling: !disableMobileBodyScrollLock.value
|
|
23292
|
+
});
|
|
23272
23293
|
};
|
|
23294
|
+
const hasActiveFilters = computed(() => currentFilterCount.value > 0);
|
|
23273
23295
|
return (_ctx, _cache) => {
|
|
23274
23296
|
return openBlock(), createElementBlock("div", {
|
|
23275
|
-
class: normalizeClass(["lupa-mobile-toggle", {
|
|
23297
|
+
class: normalizeClass(["lupa-mobile-toggle", {
|
|
23298
|
+
"lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
|
|
23299
|
+
"lupa-mobile-toggle-has-filters": hasActiveFilters.value
|
|
23300
|
+
}]),
|
|
23276
23301
|
onClick: handleMobileToggle
|
|
23277
23302
|
}, [
|
|
23278
23303
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
@@ -23281,6 +23306,26 @@ and ensure you are accounting for this risk.
|
|
|
23281
23306
|
};
|
|
23282
23307
|
}
|
|
23283
23308
|
});
|
|
23309
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
23310
|
+
__name: "SearchResultsMobileFilterClose",
|
|
23311
|
+
props: {
|
|
23312
|
+
label: {}
|
|
23313
|
+
},
|
|
23314
|
+
setup(__props) {
|
|
23315
|
+
const searchResultStore = useSearchResultStore();
|
|
23316
|
+
const handleMobileToggle = () => {
|
|
23317
|
+
searchResultStore.setSidebarState({
|
|
23318
|
+
visible: false
|
|
23319
|
+
});
|
|
23320
|
+
};
|
|
23321
|
+
return (_ctx, _cache) => {
|
|
23322
|
+
return openBlock(), createElementBlock("div", {
|
|
23323
|
+
class: "lupa-mobile-filter-close-toggle",
|
|
23324
|
+
onClick: handleMobileToggle
|
|
23325
|
+
}, toDisplayString(_ctx.label), 1);
|
|
23326
|
+
};
|
|
23327
|
+
}
|
|
23328
|
+
});
|
|
23284
23329
|
const _hoisted_1$z = {
|
|
23285
23330
|
key: 0,
|
|
23286
23331
|
id: "lupa-search-results-page-select",
|
|
@@ -23290,8 +23335,8 @@ and ensure you are accounting for this risk.
|
|
|
23290
23335
|
key: 0,
|
|
23291
23336
|
class: "lupa-page-number-separator"
|
|
23292
23337
|
};
|
|
23293
|
-
const _hoisted_3$
|
|
23294
|
-
const _hoisted_4$
|
|
23338
|
+
const _hoisted_3$l = ["onClick"];
|
|
23339
|
+
const _hoisted_4$e = {
|
|
23295
23340
|
key: 0,
|
|
23296
23341
|
class: "lupa-page-number-separator"
|
|
23297
23342
|
};
|
|
@@ -23394,10 +23439,10 @@ and ensure you are accounting for this risk.
|
|
|
23394
23439
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23395
23440
|
]),
|
|
23396
23441
|
"data-cy": "lupa-page-number"
|
|
23397
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23442
|
+
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23398
23443
|
}), 128)),
|
|
23399
23444
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23400
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23445
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
23401
23446
|
createBaseVNode("div", {
|
|
23402
23447
|
class: "lupa-page-number lupa-page-number-last",
|
|
23403
23448
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23421,8 +23466,8 @@ and ensure you are accounting for this risk.
|
|
|
23421
23466
|
"data-cy": "lupa-search-results-page-size"
|
|
23422
23467
|
};
|
|
23423
23468
|
const _hoisted_2$r = { id: "lupa-select" };
|
|
23424
|
-
const _hoisted_3$
|
|
23425
|
-
const _hoisted_4$
|
|
23469
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23470
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23426
23471
|
const _hoisted_5$9 = ["value"];
|
|
23427
23472
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
23428
23473
|
__name: "SearchResultsPageSize",
|
|
@@ -23454,7 +23499,7 @@ and ensure you are accounting for this risk.
|
|
|
23454
23499
|
return (_ctx, _cache) => {
|
|
23455
23500
|
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23456
23501
|
createBaseVNode("div", _hoisted_2$r, [
|
|
23457
|
-
createBaseVNode("label", _hoisted_3$
|
|
23502
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
|
|
23458
23503
|
createBaseVNode("select", {
|
|
23459
23504
|
class: "lupa-select-dropdown",
|
|
23460
23505
|
"aria-label": label.value,
|
|
@@ -23469,7 +23514,7 @@ and ensure you are accounting for this risk.
|
|
|
23469
23514
|
value: option
|
|
23470
23515
|
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23471
23516
|
}), 128))
|
|
23472
|
-
], 40, _hoisted_4$
|
|
23517
|
+
], 40, _hoisted_4$d)
|
|
23473
23518
|
])
|
|
23474
23519
|
]);
|
|
23475
23520
|
};
|
|
@@ -23480,8 +23525,8 @@ and ensure you are accounting for this risk.
|
|
|
23480
23525
|
class: "lupa-search-results-sort"
|
|
23481
23526
|
};
|
|
23482
23527
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
23483
|
-
const _hoisted_3$
|
|
23484
|
-
const _hoisted_4$
|
|
23528
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23529
|
+
const _hoisted_4$c = ["aria-label"];
|
|
23485
23530
|
const _hoisted_5$8 = ["value"];
|
|
23486
23531
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23487
23532
|
__name: "SearchResultsSort",
|
|
@@ -23534,7 +23579,7 @@ and ensure you are accounting for this risk.
|
|
|
23534
23579
|
return (_ctx, _cache) => {
|
|
23535
23580
|
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23536
23581
|
createBaseVNode("div", _hoisted_2$q, [
|
|
23537
|
-
createBaseVNode("label", _hoisted_3$
|
|
23582
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
|
|
23538
23583
|
withDirectives(createBaseVNode("select", {
|
|
23539
23584
|
class: "lupa-select-dropdown",
|
|
23540
23585
|
"aria-label": _ctx.options.label,
|
|
@@ -23549,7 +23594,7 @@ and ensure you are accounting for this risk.
|
|
|
23549
23594
|
value: option.key
|
|
23550
23595
|
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23551
23596
|
}), 128))
|
|
23552
|
-
], 40, _hoisted_4$
|
|
23597
|
+
], 40, _hoisted_4$c), [
|
|
23553
23598
|
[vModelSelect, selectedKey.value]
|
|
23554
23599
|
])
|
|
23555
23600
|
])
|
|
@@ -23562,8 +23607,8 @@ and ensure you are accounting for this risk.
|
|
|
23562
23607
|
key: 0,
|
|
23563
23608
|
class: "lupa-toolbar-right-title"
|
|
23564
23609
|
};
|
|
23565
|
-
const _hoisted_3$
|
|
23566
|
-
const _hoisted_4$
|
|
23610
|
+
const _hoisted_3$i = { key: 2 };
|
|
23611
|
+
const _hoisted_4$b = { key: 4 };
|
|
23567
23612
|
const _hoisted_5$7 = { key: 6 };
|
|
23568
23613
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23569
23614
|
const _hoisted_7$3 = {
|
|
@@ -23588,7 +23633,7 @@ and ensure you are accounting for this risk.
|
|
|
23588
23633
|
const searchResultStore = useSearchResultStore();
|
|
23589
23634
|
const optionsStore = useOptionsStore();
|
|
23590
23635
|
const { page, limit } = storeToRefs(paramStore);
|
|
23591
|
-
const { hasAnyFilter, searchResult } = storeToRefs(searchResultStore);
|
|
23636
|
+
const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
23592
23637
|
const { currentResolutionPageSizes } = storeToRefs(optionsStore);
|
|
23593
23638
|
const isBottomLocation = computed(() => {
|
|
23594
23639
|
return props.paginationLocation === "bottom";
|
|
@@ -23605,6 +23650,10 @@ and ensure you are accounting for this risk.
|
|
|
23605
23650
|
var _a;
|
|
23606
23651
|
return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.layoutSelector);
|
|
23607
23652
|
});
|
|
23653
|
+
const showFiltersCloseButton = computed(() => {
|
|
23654
|
+
var _a;
|
|
23655
|
+
return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.filtersCloseButton);
|
|
23656
|
+
});
|
|
23608
23657
|
const sortOptions = computed(() => {
|
|
23609
23658
|
var _a, _b;
|
|
23610
23659
|
if (isBottomLocation.value || !((_a = optionsValue.value.sort) == null ? void 0 : _a.length)) {
|
|
@@ -23681,13 +23730,13 @@ and ensure you are accounting for this risk.
|
|
|
23681
23730
|
}, [
|
|
23682
23731
|
createBaseVNode("div", _hoisted_1$w, [
|
|
23683
23732
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23684
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23685
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23733
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
|
|
23734
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
23686
23735
|
key: 3,
|
|
23687
23736
|
label: searchSummaryLabel.value,
|
|
23688
23737
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23689
23738
|
onClear: handleClearAll
|
|
23690
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23739
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
23691
23740
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
23692
23741
|
key: 5,
|
|
23693
23742
|
options: paginationOptions.value.pageSelect,
|
|
@@ -23697,7 +23746,7 @@ and ensure you are accounting for this risk.
|
|
|
23697
23746
|
]),
|
|
23698
23747
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23699
23748
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23700
|
-
createVNode(_sfc_main$
|
|
23749
|
+
createVNode(_sfc_main$G, {
|
|
23701
23750
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23702
23751
|
"show-filter-count": showMobileFilterCount.value
|
|
23703
23752
|
}, null, 8, ["label", "show-filter-count"]),
|
|
@@ -23710,7 +23759,11 @@ and ensure you are accounting for this risk.
|
|
|
23710
23759
|
key: 3,
|
|
23711
23760
|
options: sortOptions.value,
|
|
23712
23761
|
callbacks: callbacks.value
|
|
23713
|
-
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
|
|
23762
|
+
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
23763
|
+
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$F, {
|
|
23764
|
+
key: 5,
|
|
23765
|
+
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
23766
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
23714
23767
|
])
|
|
23715
23768
|
], 2);
|
|
23716
23769
|
};
|
|
@@ -23724,7 +23777,7 @@ and ensure you are accounting for this risk.
|
|
|
23724
23777
|
},
|
|
23725
23778
|
setup(__props) {
|
|
23726
23779
|
return (_ctx, _cache) => {
|
|
23727
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23780
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
23728
23781
|
item: _ctx.item,
|
|
23729
23782
|
options: _ctx.options,
|
|
23730
23783
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23735,8 +23788,8 @@ and ensure you are accounting for this risk.
|
|
|
23735
23788
|
});
|
|
23736
23789
|
const _hoisted_1$v = ["title", "innerHTML"];
|
|
23737
23790
|
const _hoisted_2$o = ["title"];
|
|
23738
|
-
const _hoisted_3$
|
|
23739
|
-
const _hoisted_4$
|
|
23791
|
+
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23792
|
+
const _hoisted_4$a = ["title"];
|
|
23740
23793
|
const _hoisted_5$6 = {
|
|
23741
23794
|
key: 0,
|
|
23742
23795
|
class: "lupa-search-results-product-title-text"
|
|
@@ -23790,7 +23843,7 @@ and ensure you are accounting for this risk.
|
|
|
23790
23843
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23791
23844
|
innerHTML: sanitizedTitle.value,
|
|
23792
23845
|
onClick: handleNavigation
|
|
23793
|
-
}, null, 8, _hoisted_3$
|
|
23846
|
+
}, null, 8, _hoisted_3$h)
|
|
23794
23847
|
], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
|
|
23795
23848
|
key: 2,
|
|
23796
23849
|
class: "lupa-search-results-product-title",
|
|
@@ -23804,7 +23857,7 @@ and ensure you are accounting for this risk.
|
|
|
23804
23857
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23805
23858
|
onClick: handleNavigation
|
|
23806
23859
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23807
|
-
], 12, _hoisted_4$
|
|
23860
|
+
], 12, _hoisted_4$a));
|
|
23808
23861
|
};
|
|
23809
23862
|
}
|
|
23810
23863
|
});
|
|
@@ -23846,8 +23899,8 @@ and ensure you are accounting for this risk.
|
|
|
23846
23899
|
});
|
|
23847
23900
|
const _hoisted_1$t = { id: "lupa-search-results-rating" };
|
|
23848
23901
|
const _hoisted_2$n = { class: "lupa-ratings" };
|
|
23849
|
-
const _hoisted_3$
|
|
23850
|
-
const _hoisted_4$
|
|
23902
|
+
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23903
|
+
const _hoisted_4$9 = ["innerHTML"];
|
|
23851
23904
|
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23852
23905
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23853
23906
|
const _hoisted_7$2 = ["href"];
|
|
@@ -23891,13 +23944,13 @@ and ensure you are accounting for this risk.
|
|
|
23891
23944
|
return (_ctx, _cache) => {
|
|
23892
23945
|
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
23893
23946
|
createBaseVNode("div", _hoisted_2$n, [
|
|
23894
|
-
createBaseVNode("div", _hoisted_3$
|
|
23947
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
23895
23948
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23896
23949
|
return openBlock(), createElementBlock("div", {
|
|
23897
23950
|
key: index,
|
|
23898
23951
|
innerHTML: star,
|
|
23899
23952
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23900
|
-
}, null, 8, _hoisted_4$
|
|
23953
|
+
}, null, 8, _hoisted_4$9);
|
|
23901
23954
|
}), 128))
|
|
23902
23955
|
]),
|
|
23903
23956
|
createBaseVNode("div", _hoisted_5$5, [
|
|
@@ -23981,7 +24034,7 @@ and ensure you are accounting for this risk.
|
|
|
23981
24034
|
});
|
|
23982
24035
|
const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23983
24036
|
const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
|
|
23984
|
-
const _hoisted_3$
|
|
24037
|
+
const _hoisted_3$f = ["id", "disabled", "onClick"];
|
|
23985
24038
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23986
24039
|
__name: "SearchResultsProductAddToCart",
|
|
23987
24040
|
props: {
|
|
@@ -24030,7 +24083,7 @@ and ensure you are accounting for this risk.
|
|
|
24030
24083
|
disabled: !inStockValue.value || loading.value
|
|
24031
24084
|
}, _ctx.dynamicAttributes, {
|
|
24032
24085
|
onClick: withModifiers(handleClick, ["stop"])
|
|
24033
|
-
}), toDisplayString(label.value), 17, _hoisted_3$
|
|
24086
|
+
}), toDisplayString(label.value), 17, _hoisted_3$f)
|
|
24034
24087
|
])
|
|
24035
24088
|
]);
|
|
24036
24089
|
};
|
|
@@ -24038,8 +24091,8 @@ and ensure you are accounting for this risk.
|
|
|
24038
24091
|
});
|
|
24039
24092
|
const _hoisted_1$q = ["innerHTML"];
|
|
24040
24093
|
const _hoisted_2$l = { key: 0 };
|
|
24041
|
-
const _hoisted_3$
|
|
24042
|
-
const _hoisted_4$
|
|
24094
|
+
const _hoisted_3$e = { key: 1 };
|
|
24095
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
24043
24096
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
24044
24097
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
24045
24098
|
__name: "SearchResultsProductCustom",
|
|
@@ -24083,8 +24136,8 @@ and ensure you are accounting for this risk.
|
|
|
24083
24136
|
key: 1,
|
|
24084
24137
|
class: className.value
|
|
24085
24138
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24086
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24087
|
-
createBaseVNode("div", _hoisted_4$
|
|
24139
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
24140
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
24088
24141
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
24089
24142
|
]))
|
|
24090
24143
|
], 16));
|
|
@@ -24129,8 +24182,8 @@ and ensure you are accounting for this risk.
|
|
|
24129
24182
|
});
|
|
24130
24183
|
const _hoisted_1$o = { id: "lupa-search-results-rating" };
|
|
24131
24184
|
const _hoisted_2$k = ["innerHTML"];
|
|
24132
|
-
const _hoisted_3$
|
|
24133
|
-
const _hoisted_4$
|
|
24185
|
+
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
24186
|
+
const _hoisted_4$7 = ["href"];
|
|
24134
24187
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
24135
24188
|
__name: "SearchResultsProductSingleStarRating",
|
|
24136
24189
|
props: {
|
|
@@ -24164,11 +24217,11 @@ and ensure you are accounting for this risk.
|
|
|
24164
24217
|
innerHTML: star.value,
|
|
24165
24218
|
class: "lupa-rating lupa-rating-highlighted"
|
|
24166
24219
|
}, null, 8, _hoisted_2$k),
|
|
24167
|
-
createBaseVNode("div", _hoisted_3$
|
|
24220
|
+
createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
|
|
24168
24221
|
createBaseVNode("a", {
|
|
24169
24222
|
href: ratingLink.value,
|
|
24170
24223
|
class: "lupa-total-ratings"
|
|
24171
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
24224
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
24172
24225
|
]);
|
|
24173
24226
|
};
|
|
24174
24227
|
}
|
|
@@ -24271,11 +24324,11 @@ and ensure you are accounting for this risk.
|
|
|
24271
24324
|
}));
|
|
24272
24325
|
const _hoisted_1$n = ["onMouseup"];
|
|
24273
24326
|
const _hoisted_2$j = ["href"];
|
|
24274
|
-
const _hoisted_3$
|
|
24327
|
+
const _hoisted_3$c = {
|
|
24275
24328
|
key: 0,
|
|
24276
24329
|
class: "lupa-out-of-stock"
|
|
24277
24330
|
};
|
|
24278
|
-
const _hoisted_4$
|
|
24331
|
+
const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
|
|
24279
24332
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24280
24333
|
__name: "SearchResultsProductCard",
|
|
24281
24334
|
props: {
|
|
@@ -24284,7 +24337,8 @@ and ensure you are accounting for this risk.
|
|
|
24284
24337
|
isAdditionalPanel: { type: Boolean },
|
|
24285
24338
|
clickTrackingSettings: {},
|
|
24286
24339
|
lupaClickTrackingType: {},
|
|
24287
|
-
sourceItemId: {}
|
|
24340
|
+
sourceItemId: {},
|
|
24341
|
+
analyticsMetadata: {}
|
|
24288
24342
|
},
|
|
24289
24343
|
setup(__props) {
|
|
24290
24344
|
const props = __props;
|
|
@@ -24395,7 +24449,8 @@ and ensure you are accounting for this risk.
|
|
|
24395
24449
|
},
|
|
24396
24450
|
options: { allowEmptySearchQuery: true },
|
|
24397
24451
|
filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0,
|
|
24398
|
-
sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0
|
|
24452
|
+
sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0,
|
|
24453
|
+
metadata: props.analyticsMetadata
|
|
24399
24454
|
}
|
|
24400
24455
|
};
|
|
24401
24456
|
if (isDelayedClickTracking()) {
|
|
@@ -24439,7 +24494,7 @@ and ensure you are accounting for this risk.
|
|
|
24439
24494
|
onClick: handleClick,
|
|
24440
24495
|
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
24441
24496
|
}), [
|
|
24442
|
-
createVNode(_sfc_main$
|
|
24497
|
+
createVNode(_sfc_main$16, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24443
24498
|
createBaseVNode("div", {
|
|
24444
24499
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24445
24500
|
}, [
|
|
@@ -24460,14 +24515,14 @@ and ensure you are accounting for this risk.
|
|
|
24460
24515
|
onProductEvent: handleProductEvent
|
|
24461
24516
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24462
24517
|
}), 128)),
|
|
24463
|
-
createVNode(_sfc_main$
|
|
24518
|
+
createVNode(_sfc_main$16, {
|
|
24464
24519
|
options: badgesOptions.value,
|
|
24465
24520
|
position: "image",
|
|
24466
24521
|
class: "lupa-image-badges"
|
|
24467
24522
|
}, null, 8, ["options"]),
|
|
24468
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24523
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24469
24524
|
], 8, _hoisted_2$j),
|
|
24470
|
-
createBaseVNode("div", _hoisted_4$
|
|
24525
|
+
createBaseVNode("div", _hoisted_4$6, [
|
|
24471
24526
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24472
24527
|
return openBlock(), createBlock(_sfc_main$q, {
|
|
24473
24528
|
class: "lupa-search-results-product-element",
|
|
@@ -24510,11 +24565,11 @@ and ensure you are accounting for this risk.
|
|
|
24510
24565
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24511
24566
|
};
|
|
24512
24567
|
const _hoisted_2$i = { class: "lupa-similar-queries-label" };
|
|
24513
|
-
const _hoisted_3$
|
|
24568
|
+
const _hoisted_3$b = {
|
|
24514
24569
|
class: "lupa-similar-query-label",
|
|
24515
24570
|
"data-cy": "lupa-similar-query-label"
|
|
24516
24571
|
};
|
|
24517
|
-
const _hoisted_4$
|
|
24572
|
+
const _hoisted_4$5 = ["onClick"];
|
|
24518
24573
|
const _hoisted_5$3 = ["innerHTML"];
|
|
24519
24574
|
const _hoisted_6$2 = { key: 0 };
|
|
24520
24575
|
const _hoisted_7$1 = {
|
|
@@ -24550,12 +24605,20 @@ and ensure you are accounting for this risk.
|
|
|
24550
24605
|
}) => {
|
|
24551
24606
|
paramsStore.goToResults({ searchText, facet });
|
|
24552
24607
|
};
|
|
24608
|
+
const getClickMetadata = (similarQuery) => {
|
|
24609
|
+
var _a;
|
|
24610
|
+
const isRegularSimilarQuery = (_a = similarQuery.displayQuery) == null ? void 0 : _a.includes("<del>");
|
|
24611
|
+
return {
|
|
24612
|
+
_lupaEventSource: isRegularSimilarQuery ? "similarQueries" : "similarQueriesAI",
|
|
24613
|
+
_lupaUpdatedQuery: similarQuery.query
|
|
24614
|
+
};
|
|
24615
|
+
};
|
|
24553
24616
|
return (_ctx, _cache) => {
|
|
24554
24617
|
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
24555
24618
|
createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24556
24619
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24557
24620
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24558
|
-
createBaseVNode("div", _hoisted_3$
|
|
24621
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24559
24622
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24560
24623
|
createBaseVNode("span", {
|
|
24561
24624
|
id: "lupa-similar-query-text-component",
|
|
@@ -24567,7 +24630,7 @@ and ensure you are accounting for this risk.
|
|
|
24567
24630
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24568
24631
|
}, null, 8, _hoisted_5$3),
|
|
24569
24632
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24570
|
-
], 8, _hoisted_4$
|
|
24633
|
+
], 8, _hoisted_4$5)
|
|
24571
24634
|
]),
|
|
24572
24635
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24573
24636
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
@@ -24575,8 +24638,9 @@ and ensure you are accounting for this risk.
|
|
|
24575
24638
|
style: normalizeStyle(_ctx.columnSize),
|
|
24576
24639
|
key: getDocumentKey(index2, product),
|
|
24577
24640
|
product,
|
|
24578
|
-
options: _ctx.productCardOptions
|
|
24579
|
-
|
|
24641
|
+
options: _ctx.productCardOptions,
|
|
24642
|
+
"analytics-metadata": getClickMetadata(similarQuery)
|
|
24643
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
24580
24644
|
}), 128))
|
|
24581
24645
|
])
|
|
24582
24646
|
]);
|
|
@@ -24745,7 +24809,7 @@ and ensure you are accounting for this risk.
|
|
|
24745
24809
|
"data-cy": "lupa-search-results-similar-results"
|
|
24746
24810
|
};
|
|
24747
24811
|
const _hoisted_2$f = { class: "lupa-similar-results-label" };
|
|
24748
|
-
const _hoisted_3$
|
|
24812
|
+
const _hoisted_3$a = {
|
|
24749
24813
|
class: "lupa-products",
|
|
24750
24814
|
"data-cy": "lupa-products"
|
|
24751
24815
|
};
|
|
@@ -24764,17 +24828,23 @@ and ensure you are accounting for this risk.
|
|
|
24764
24828
|
const getDocumentKey = (index, product) => {
|
|
24765
24829
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24766
24830
|
};
|
|
24831
|
+
const clickMetadata = computed(() => {
|
|
24832
|
+
return {
|
|
24833
|
+
_lupaEventSource: "similarResults"
|
|
24834
|
+
};
|
|
24835
|
+
});
|
|
24767
24836
|
return (_ctx, _cache) => {
|
|
24768
24837
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24769
24838
|
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24770
|
-
createBaseVNode("div", _hoisted_3$
|
|
24839
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24771
24840
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24772
24841
|
return openBlock(), createBlock(_sfc_main$p, {
|
|
24773
24842
|
style: normalizeStyle(_ctx.columnSize),
|
|
24774
24843
|
key: getDocumentKey(index, product),
|
|
24775
24844
|
product,
|
|
24776
|
-
options: _ctx.productCardOptions
|
|
24777
|
-
|
|
24845
|
+
options: _ctx.productCardOptions,
|
|
24846
|
+
"analytics-metadata": clickMetadata.value
|
|
24847
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
24778
24848
|
}), 128))
|
|
24779
24849
|
])
|
|
24780
24850
|
]);
|
|
@@ -24885,8 +24955,8 @@ and ensure you are accounting for this risk.
|
|
|
24885
24955
|
});
|
|
24886
24956
|
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
24887
24957
|
const _hoisted_2$e = { class: "lupa-related-query-image" };
|
|
24888
|
-
const _hoisted_3$
|
|
24889
|
-
const _hoisted_4$
|
|
24958
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
24959
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
24890
24960
|
const _hoisted_5$2 = {
|
|
24891
24961
|
key: 0,
|
|
24892
24962
|
class: "lupa-related-query-count"
|
|
@@ -24984,7 +25054,7 @@ and ensure you are accounting for this risk.
|
|
|
24984
25054
|
var _a;
|
|
24985
25055
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24986
25056
|
createBaseVNode("div", _hoisted_2$e, [
|
|
24987
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
25057
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1m, {
|
|
24988
25058
|
key: 0,
|
|
24989
25059
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24990
25060
|
"image-class": "lupa-related-query-image",
|
|
@@ -24992,8 +25062,8 @@ and ensure you are accounting for this risk.
|
|
|
24992
25062
|
options: image.value
|
|
24993
25063
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24994
25064
|
]),
|
|
24995
|
-
createBaseVNode("div", _hoisted_3$
|
|
24996
|
-
createBaseVNode("span", _hoisted_4$
|
|
25065
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
25066
|
+
createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
|
|
24997
25067
|
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24998
25068
|
])
|
|
24999
25069
|
]);
|
|
@@ -25008,7 +25078,7 @@ and ensure you are accounting for this risk.
|
|
|
25008
25078
|
key: 0,
|
|
25009
25079
|
class: "lupa-related-queries-title"
|
|
25010
25080
|
};
|
|
25011
|
-
const _hoisted_3$
|
|
25081
|
+
const _hoisted_3$8 = ["onClick"];
|
|
25012
25082
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
25013
25083
|
__name: "RelatedQueries",
|
|
25014
25084
|
props: {
|
|
@@ -25113,7 +25183,7 @@ and ensure you are accounting for this risk.
|
|
|
25113
25183
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
25114
25184
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
25115
25185
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
25116
|
-
], 8, _hoisted_3$
|
|
25186
|
+
], 8, _hoisted_3$8)
|
|
25117
25187
|
], 2)), [
|
|
25118
25188
|
[vShow, querySourceResultMap.value[query.value] !== false]
|
|
25119
25189
|
]);
|
|
@@ -25155,7 +25225,7 @@ and ensure you are accounting for this risk.
|
|
|
25155
25225
|
class: "lupa-redirection-suggestion"
|
|
25156
25226
|
};
|
|
25157
25227
|
const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
|
|
25158
|
-
const _hoisted_3$
|
|
25228
|
+
const _hoisted_3$7 = ["href"];
|
|
25159
25229
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
25160
25230
|
__name: "RedirectionSuggestions",
|
|
25161
25231
|
props: {
|
|
@@ -25181,7 +25251,7 @@ and ensure you are accounting for this risk.
|
|
|
25181
25251
|
return (_ctx, _cache) => {
|
|
25182
25252
|
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
25183
25253
|
createBaseVNode("h4", _hoisted_2$c, [
|
|
25184
|
-
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$
|
|
25254
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
|
|
25185
25255
|
])
|
|
25186
25256
|
])) : createCommentVNode("", true);
|
|
25187
25257
|
};
|
|
@@ -25192,12 +25262,12 @@ and ensure you are accounting for this risk.
|
|
|
25192
25262
|
class: "lupa-products",
|
|
25193
25263
|
"data-cy": "lupa-products"
|
|
25194
25264
|
};
|
|
25195
|
-
const _hoisted_3$
|
|
25265
|
+
const _hoisted_3$6 = {
|
|
25196
25266
|
key: 1,
|
|
25197
25267
|
class: "lupa-empty-results",
|
|
25198
25268
|
"data-cy": "lupa-no-results-in-page"
|
|
25199
25269
|
};
|
|
25200
|
-
const _hoisted_4$
|
|
25270
|
+
const _hoisted_4$3 = {
|
|
25201
25271
|
key: 4,
|
|
25202
25272
|
class: "lupa-empty-results",
|
|
25203
25273
|
"data-cy": "lupa-no-results"
|
|
@@ -25298,6 +25368,13 @@ and ensure you are accounting for this risk.
|
|
|
25298
25368
|
var _a, _b;
|
|
25299
25369
|
return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
|
|
25300
25370
|
});
|
|
25371
|
+
const clickMetadata = computed(() => {
|
|
25372
|
+
const hasDidYouMean = Boolean(searchResult.value.suggestedSearchText);
|
|
25373
|
+
return hasDidYouMean ? {
|
|
25374
|
+
_lupaEventSource: "didYouMean",
|
|
25375
|
+
_lupaUpdatedQuery: searchResult.value.suggestedSearchText
|
|
25376
|
+
} : void 0;
|
|
25377
|
+
});
|
|
25301
25378
|
const getProductKeyAction = (index, product) => {
|
|
25302
25379
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
25303
25380
|
};
|
|
@@ -25329,7 +25406,7 @@ and ensure you are accounting for this risk.
|
|
|
25329
25406
|
options: _ctx.options.relatedQueries
|
|
25330
25407
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25331
25408
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
25332
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
25409
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
25333
25410
|
key: 0,
|
|
25334
25411
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
25335
25412
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
@@ -25340,7 +25417,7 @@ and ensure you are accounting for this risk.
|
|
|
25340
25417
|
"pagination-location": "top",
|
|
25341
25418
|
onFilter: filter2
|
|
25342
25419
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25343
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25420
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$W, {
|
|
25344
25421
|
key: 2,
|
|
25345
25422
|
class: normalizeClass(currentFiltersClass.value),
|
|
25346
25423
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -25354,7 +25431,7 @@ and ensure you are accounting for this risk.
|
|
|
25354
25431
|
options: _ctx.options,
|
|
25355
25432
|
"pagination-location": "top"
|
|
25356
25433
|
}, null, 8, ["options"]),
|
|
25357
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25434
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$W, {
|
|
25358
25435
|
key: 0,
|
|
25359
25436
|
class: normalizeClass(currentFiltersClass.value),
|
|
25360
25437
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -25374,11 +25451,12 @@ and ensure you are accounting for this risk.
|
|
|
25374
25451
|
style: normalizeStyle(columnSize.value),
|
|
25375
25452
|
key: getProductKeyAction(index, product),
|
|
25376
25453
|
product,
|
|
25377
|
-
options: productCardOptions.value
|
|
25378
|
-
|
|
25454
|
+
options: productCardOptions.value,
|
|
25455
|
+
"analytics-metadata": clickMetadata.value
|
|
25456
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
25379
25457
|
}), 128))
|
|
25380
25458
|
]),
|
|
25381
|
-
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25459
|
+
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
25382
25460
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
25383
25461
|
_ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
|
|
25384
25462
|
key: 0,
|
|
@@ -25396,7 +25474,7 @@ and ensure you are accounting for this risk.
|
|
|
25396
25474
|
location: "bottom",
|
|
25397
25475
|
sdkOptions: _ctx.options.options
|
|
25398
25476
|
}, null, 8, ["options", "sdkOptions"])
|
|
25399
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25477
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
25400
25478
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
25401
25479
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
25402
25480
|
])) : createCommentVNode("", true),
|
|
@@ -25424,8 +25502,8 @@ and ensure you are accounting for this risk.
|
|
|
25424
25502
|
key: 0,
|
|
25425
25503
|
class: "lupa-category-back"
|
|
25426
25504
|
};
|
|
25427
|
-
const _hoisted_3$
|
|
25428
|
-
const _hoisted_4$
|
|
25505
|
+
const _hoisted_3$5 = ["href"];
|
|
25506
|
+
const _hoisted_4$2 = {
|
|
25429
25507
|
key: 1,
|
|
25430
25508
|
class: "lupa-child-category-list"
|
|
25431
25509
|
};
|
|
@@ -25483,11 +25561,11 @@ and ensure you are accounting for this risk.
|
|
|
25483
25561
|
"data-cy": "lupa-category-back",
|
|
25484
25562
|
href: backUrlLink.value,
|
|
25485
25563
|
onClick: handleNavigationBack
|
|
25486
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
25564
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$5)
|
|
25487
25565
|
])) : createCommentVNode("", true),
|
|
25488
|
-
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25566
|
+
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
25489
25567
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
25490
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25568
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
25491
25569
|
key: getCategoryKey(child),
|
|
25492
25570
|
item: child,
|
|
25493
25571
|
options: categoryOptions.value
|
|
@@ -25508,13 +25586,7 @@ and ensure you are accounting for this risk.
|
|
|
25508
25586
|
key: 0,
|
|
25509
25587
|
class: "lupa-container-title-summary-mobile"
|
|
25510
25588
|
};
|
|
25511
|
-
const _hoisted_2$9 = {
|
|
25512
|
-
key: 4,
|
|
25513
|
-
id: "lupa-search-results",
|
|
25514
|
-
class: "top-layout-wrapper"
|
|
25515
|
-
};
|
|
25516
|
-
const _hoisted_3$5 = { class: "search-content" };
|
|
25517
|
-
const _hoisted_4$2 = { id: "lupa-search-results" };
|
|
25589
|
+
const _hoisted_2$9 = { class: "search-content" };
|
|
25518
25590
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
25519
25591
|
__name: "SearchResults",
|
|
25520
25592
|
props: {
|
|
@@ -25540,7 +25612,7 @@ and ensure you are accounting for this risk.
|
|
|
25540
25612
|
var _a, _b;
|
|
25541
25613
|
return (_b = (_a = props.initialFilters) != null ? _a : extractedInitialFilters.value) != null ? _b : {};
|
|
25542
25614
|
});
|
|
25543
|
-
const { currentQueryText, hasResults, currentFilterCount } = storeToRefs(searchResultStore);
|
|
25615
|
+
const { currentQueryText, hasResults, currentFilterCount, isMobileSidebarVisible, layout } = storeToRefs(searchResultStore);
|
|
25544
25616
|
const { searchString, sortParams } = storeToRefs(paramStore);
|
|
25545
25617
|
const { defaultSearchResultPageSize } = storeToRefs(optionStore);
|
|
25546
25618
|
const searchResultsFilters = ref(null);
|
|
@@ -25556,6 +25628,13 @@ and ensure you are accounting for this risk.
|
|
|
25556
25628
|
const isTitleResultTopPosition = computed(() => {
|
|
25557
25629
|
return props.options.searchTitlePosition === "search-results-top";
|
|
25558
25630
|
});
|
|
25631
|
+
const indicatorClasses = computed(() => {
|
|
25632
|
+
return {
|
|
25633
|
+
"lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
|
|
25634
|
+
"lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
|
|
25635
|
+
"lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
|
|
25636
|
+
};
|
|
25637
|
+
});
|
|
25559
25638
|
const handlePopState = () => {
|
|
25560
25639
|
var _a;
|
|
25561
25640
|
const searchParams = getSearchParams((_a = props.options.ssr) == null ? void 0 : _a.url);
|
|
@@ -25729,8 +25808,8 @@ and ensure you are accounting for this risk.
|
|
|
25729
25808
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
25730
25809
|
}, [
|
|
25731
25810
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
25732
|
-
createVNode(_sfc_main$
|
|
25733
|
-
createVNode(_sfc_main$
|
|
25811
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25812
|
+
createVNode(_sfc_main$Y, {
|
|
25734
25813
|
"show-summary": true,
|
|
25735
25814
|
options: _ctx.options,
|
|
25736
25815
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -25740,26 +25819,30 @@ and ensure you are accounting for this risk.
|
|
|
25740
25819
|
key: 1,
|
|
25741
25820
|
options: _ctx.options
|
|
25742
25821
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25743
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25822
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25744
25823
|
key: 2,
|
|
25745
25824
|
options: _ctx.options.filters,
|
|
25746
25825
|
onFilter: handleParamsChange
|
|
25747
25826
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25748
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25827
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25749
25828
|
key: 3,
|
|
25750
25829
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
25751
25830
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
25752
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div",
|
|
25753
|
-
|
|
25831
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
|
|
25832
|
+
key: 4,
|
|
25833
|
+
id: "lupa-search-results",
|
|
25834
|
+
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
25835
|
+
}, [
|
|
25836
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
25754
25837
|
key: 0,
|
|
25755
25838
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
25756
25839
|
ref_key: "searchResultsFilters",
|
|
25757
25840
|
ref: searchResultsFilters,
|
|
25758
25841
|
onFilter: handleParamsChange
|
|
25759
25842
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25760
|
-
createBaseVNode("div",
|
|
25761
|
-
createVNode(_sfc_main$
|
|
25762
|
-
createVNode(_sfc_main$
|
|
25843
|
+
createBaseVNode("div", _hoisted_2$9, [
|
|
25844
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25845
|
+
createVNode(_sfc_main$Y, {
|
|
25763
25846
|
options: _ctx.options,
|
|
25764
25847
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25765
25848
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25774,14 +25857,17 @@ and ensure you are accounting for this risk.
|
|
|
25774
25857
|
_: 3
|
|
25775
25858
|
}, 8, ["options", "ssr"])
|
|
25776
25859
|
])
|
|
25777
|
-
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25778
|
-
createVNode(_sfc_main$
|
|
25779
|
-
createVNode(_sfc_main$
|
|
25860
|
+
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25861
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25862
|
+
createVNode(_sfc_main$Y, {
|
|
25780
25863
|
options: _ctx.options,
|
|
25781
25864
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25782
25865
|
}, null, 8, ["options", "is-product-list"]),
|
|
25783
|
-
createBaseVNode("div",
|
|
25784
|
-
|
|
25866
|
+
createBaseVNode("div", {
|
|
25867
|
+
id: "lupa-search-results",
|
|
25868
|
+
class: normalizeClass(indicatorClasses.value)
|
|
25869
|
+
}, [
|
|
25870
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
25785
25871
|
key: 0,
|
|
25786
25872
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25787
25873
|
ref_key: "searchResultsFilters",
|
|
@@ -25806,7 +25892,7 @@ and ensure you are accounting for this risk.
|
|
|
25806
25892
|
key: "0"
|
|
25807
25893
|
} : void 0
|
|
25808
25894
|
]), 1032, ["options", "ssr"])
|
|
25809
|
-
])
|
|
25895
|
+
], 2)
|
|
25810
25896
|
], 64))
|
|
25811
25897
|
], 2);
|
|
25812
25898
|
};
|
|
@@ -31415,7 +31501,7 @@ and ensure you are accounting for this risk.
|
|
|
31415
31501
|
onClick: withModifiers(innerClick, ["stop"])
|
|
31416
31502
|
}, [
|
|
31417
31503
|
createBaseVNode("div", _hoisted_2$7, [
|
|
31418
|
-
createVNode(_sfc_main
|
|
31504
|
+
createVNode(_sfc_main$$, {
|
|
31419
31505
|
options: fullSearchBoxOptions.value,
|
|
31420
31506
|
"is-search-container": true,
|
|
31421
31507
|
ref_key: "searchBox",
|
|
@@ -32945,7 +33031,7 @@ and ensure you are accounting for this risk.
|
|
|
32945
33031
|
key: 0,
|
|
32946
33032
|
class: "lupasearch-chat-content"
|
|
32947
33033
|
};
|
|
32948
|
-
const _sfc_main$
|
|
33034
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
32949
33035
|
__name: "ChatContainer",
|
|
32950
33036
|
props: {
|
|
32951
33037
|
options: {}
|
|
@@ -38963,7 +39049,7 @@ and ensure you are accounting for this risk.
|
|
|
38963
39049
|
};
|
|
38964
39050
|
__expose({ fetch: fetch2 });
|
|
38965
39051
|
return (_ctx, _cache) => {
|
|
38966
|
-
return openBlock(), createBlock(unref(_sfc_main
|
|
39052
|
+
return openBlock(), createBlock(unref(_sfc_main$$), {
|
|
38967
39053
|
options: fullSearchBoxOptions.value,
|
|
38968
39054
|
ref_key: "searchBox",
|
|
38969
39055
|
ref: searchBox2
|
|
@@ -39518,7 +39604,7 @@ and ensure you are accounting for this risk.
|
|
|
39518
39604
|
const instance = createVue(
|
|
39519
39605
|
options.displayOptions.containerSelector,
|
|
39520
39606
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
39521
|
-
_sfc_main$
|
|
39607
|
+
_sfc_main$1v,
|
|
39522
39608
|
{
|
|
39523
39609
|
options
|
|
39524
39610
|
}
|