@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.umd.js
CHANGED
|
@@ -8699,8 +8699,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8699
8699
|
});
|
|
8700
8700
|
const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
|
|
8701
8701
|
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
8702
|
-
const _hoisted_3$
|
|
8703
|
-
const _hoisted_4$
|
|
8702
|
+
const _hoisted_3$C = { id: "lupa-search-box-input" };
|
|
8703
|
+
const _hoisted_4$s = ["value"];
|
|
8704
8704
|
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8705
8705
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8706
8706
|
const _hoisted_7$7 = [
|
|
@@ -8710,7 +8710,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8710
8710
|
key: 0,
|
|
8711
8711
|
class: "lupa-close-label"
|
|
8712
8712
|
};
|
|
8713
|
-
const _sfc_main$
|
|
8713
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
8714
8714
|
__name: "SearchBoxInput",
|
|
8715
8715
|
props: {
|
|
8716
8716
|
options: {},
|
|
@@ -8801,13 +8801,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8801
8801
|
onClick: clear2
|
|
8802
8802
|
}, null, 2)
|
|
8803
8803
|
]),
|
|
8804
|
-
createBaseVNode("div", _hoisted_3$
|
|
8804
|
+
createBaseVNode("div", _hoisted_3$C, [
|
|
8805
8805
|
createBaseVNode("input", {
|
|
8806
8806
|
class: "lupa-hint",
|
|
8807
8807
|
"aria-hidden": "true",
|
|
8808
8808
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8809
8809
|
disabled: ""
|
|
8810
|
-
}, null, 8, _hoisted_4$
|
|
8810
|
+
}, null, 8, _hoisted_4$s),
|
|
8811
8811
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8812
8812
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8813
8813
|
}, inputAttributes.value, {
|
|
@@ -8840,7 +8840,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8840
8840
|
};
|
|
8841
8841
|
}
|
|
8842
8842
|
});
|
|
8843
|
-
const _sfc_main$
|
|
8843
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
8844
8844
|
__name: "SearchBoxMoreResults",
|
|
8845
8845
|
props: {
|
|
8846
8846
|
labels: {},
|
|
@@ -8879,7 +8879,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8879
8879
|
});
|
|
8880
8880
|
const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
|
|
8881
8881
|
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
8882
|
-
const _sfc_main$
|
|
8882
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
8883
8883
|
__name: "SearchBoxHistoryItem",
|
|
8884
8884
|
props: {
|
|
8885
8885
|
item: {},
|
|
@@ -8914,7 +8914,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8914
8914
|
key: 0,
|
|
8915
8915
|
class: "lupa-search-box-history-panel"
|
|
8916
8916
|
};
|
|
8917
|
-
const _sfc_main$
|
|
8917
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8918
8918
|
__name: "SearchBoxHistoryPanel",
|
|
8919
8919
|
props: {
|
|
8920
8920
|
options: {}
|
|
@@ -8957,7 +8957,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8957
8957
|
return (_ctx, _cache) => {
|
|
8958
8958
|
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8959
8959
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8960
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8960
|
+
return openBlock(), createBlock(_sfc_main$1s, {
|
|
8961
8961
|
key: item,
|
|
8962
8962
|
item,
|
|
8963
8963
|
highlighted: index === highlightIndex.value,
|
|
@@ -8974,7 +8974,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8974
8974
|
}
|
|
8975
8975
|
});
|
|
8976
8976
|
const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
|
|
8977
|
-
const _sfc_main$
|
|
8977
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8978
8978
|
__name: "SearchBoxNoResults",
|
|
8979
8979
|
props: {
|
|
8980
8980
|
labels: {}
|
|
@@ -9019,12 +9019,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9019
9019
|
"data-cy": "lupa-suggestion-value",
|
|
9020
9020
|
class: "lupa-suggestion-value"
|
|
9021
9021
|
};
|
|
9022
|
-
const _hoisted_3$
|
|
9022
|
+
const _hoisted_3$B = {
|
|
9023
9023
|
key: 2,
|
|
9024
9024
|
class: "lupa-suggestion-facet",
|
|
9025
9025
|
"data-cy": "lupa-suggestion-facet"
|
|
9026
9026
|
};
|
|
9027
|
-
const _hoisted_4$
|
|
9027
|
+
const _hoisted_4$r = {
|
|
9028
9028
|
class: "lupa-suggestion-facet-label",
|
|
9029
9029
|
"data-cy": "lupa-suggestion-facet-label"
|
|
9030
9030
|
};
|
|
@@ -9032,7 +9032,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9032
9032
|
class: "lupa-suggestion-facet-value",
|
|
9033
9033
|
"data-cy": "lupa-suggestion-facet-value"
|
|
9034
9034
|
};
|
|
9035
|
-
const _sfc_main$
|
|
9035
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
9036
9036
|
__name: "SearchBoxSuggestion",
|
|
9037
9037
|
props: {
|
|
9038
9038
|
suggestion: {},
|
|
@@ -9069,8 +9069,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9069
9069
|
"data-cy": "lupa-suggestion-value",
|
|
9070
9070
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
9071
9071
|
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
9072
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9073
|
-
createBaseVNode("span", _hoisted_4$
|
|
9072
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
9073
|
+
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
9074
9074
|
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
9075
9075
|
])) : createCommentVNode("", true)
|
|
9076
9076
|
]);
|
|
@@ -9081,7 +9081,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9081
9081
|
id: "lupa-search-box-suggestions",
|
|
9082
9082
|
"data-cy": "lupa-search-box-suggestions"
|
|
9083
9083
|
};
|
|
9084
|
-
const _sfc_main$
|
|
9084
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
9085
9085
|
__name: "SearchBoxSuggestions",
|
|
9086
9086
|
props: {
|
|
9087
9087
|
items: {},
|
|
@@ -9143,7 +9143,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9143
9143
|
return (_ctx, _cache) => {
|
|
9144
9144
|
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
9145
9145
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9146
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9146
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
9147
9147
|
key: getSuggestionKey(item),
|
|
9148
9148
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9149
9149
|
suggestion: item,
|
|
@@ -9171,7 +9171,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9171
9171
|
}, timeout);
|
|
9172
9172
|
};
|
|
9173
9173
|
};
|
|
9174
|
-
const _sfc_main$
|
|
9174
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
9175
9175
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9176
9176
|
props: {
|
|
9177
9177
|
panel: {},
|
|
@@ -9213,7 +9213,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9213
9213
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9214
9214
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9215
9215
|
return (_ctx, _cache) => {
|
|
9216
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9216
|
+
return openBlock(), createBlock(_sfc_main$1o, {
|
|
9217
9217
|
items: searchResult.value,
|
|
9218
9218
|
highlight: _ctx.panel.highlight,
|
|
9219
9219
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18304,7 +18304,7 @@ and ensure you are accounting for this risk.
|
|
|
18304
18304
|
};
|
|
18305
18305
|
const _hoisted_1$1b = ["src"];
|
|
18306
18306
|
const _hoisted_2$S = ["src"];
|
|
18307
|
-
const _sfc_main$
|
|
18307
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
18308
18308
|
__name: "ProductImage",
|
|
18309
18309
|
props: {
|
|
18310
18310
|
item: {},
|
|
@@ -18459,7 +18459,7 @@ and ensure you are accounting for this risk.
|
|
|
18459
18459
|
};
|
|
18460
18460
|
}
|
|
18461
18461
|
});
|
|
18462
|
-
const _sfc_main$
|
|
18462
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
18463
18463
|
__name: "SearchBoxProductImage",
|
|
18464
18464
|
props: {
|
|
18465
18465
|
item: {},
|
|
@@ -18467,7 +18467,7 @@ and ensure you are accounting for this risk.
|
|
|
18467
18467
|
},
|
|
18468
18468
|
setup(__props) {
|
|
18469
18469
|
return (_ctx, _cache) => {
|
|
18470
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18470
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
18471
18471
|
item: _ctx.item,
|
|
18472
18472
|
options: _ctx.options,
|
|
18473
18473
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18481,7 +18481,7 @@ and ensure you are accounting for this risk.
|
|
|
18481
18481
|
key: 1,
|
|
18482
18482
|
class: "lupa-search-box-product-title"
|
|
18483
18483
|
};
|
|
18484
|
-
const _sfc_main$
|
|
18484
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
18485
18485
|
__name: "SearchBoxProductTitle",
|
|
18486
18486
|
props: {
|
|
18487
18487
|
item: {},
|
|
@@ -18515,7 +18515,7 @@ and ensure you are accounting for this risk.
|
|
|
18515
18515
|
key: 1,
|
|
18516
18516
|
class: "lupa-search-box-product-description"
|
|
18517
18517
|
};
|
|
18518
|
-
const _sfc_main$
|
|
18518
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18519
18519
|
__name: "SearchBoxProductDescription",
|
|
18520
18520
|
props: {
|
|
18521
18521
|
item: {},
|
|
@@ -18543,7 +18543,7 @@ and ensure you are accounting for this risk.
|
|
|
18543
18543
|
}
|
|
18544
18544
|
});
|
|
18545
18545
|
const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
|
|
18546
|
-
const _sfc_main$
|
|
18546
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18547
18547
|
__name: "SearchBoxProductPrice",
|
|
18548
18548
|
props: {
|
|
18549
18549
|
item: {},
|
|
@@ -18567,7 +18567,7 @@ and ensure you are accounting for this risk.
|
|
|
18567
18567
|
};
|
|
18568
18568
|
}
|
|
18569
18569
|
});
|
|
18570
|
-
const _sfc_main$
|
|
18570
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18571
18571
|
__name: "SearchBoxProductRegularPrice",
|
|
18572
18572
|
props: {
|
|
18573
18573
|
item: {},
|
|
@@ -18596,10 +18596,10 @@ and ensure you are accounting for this risk.
|
|
|
18596
18596
|
});
|
|
18597
18597
|
const _hoisted_1$17 = ["innerHTML"];
|
|
18598
18598
|
const _hoisted_2$P = { key: 0 };
|
|
18599
|
-
const _hoisted_3$
|
|
18600
|
-
const _hoisted_4$
|
|
18599
|
+
const _hoisted_3$A = { key: 1 };
|
|
18600
|
+
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
18601
18601
|
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18602
|
-
const _sfc_main$
|
|
18602
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18603
18603
|
__name: "SearchBoxProductCustom",
|
|
18604
18604
|
props: {
|
|
18605
18605
|
item: {},
|
|
@@ -18629,8 +18629,8 @@ and ensure you are accounting for this risk.
|
|
|
18629
18629
|
key: 1,
|
|
18630
18630
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18631
18631
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18632
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18633
|
-
createBaseVNode("div", _hoisted_4$
|
|
18632
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
18633
|
+
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
18634
18634
|
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18635
18635
|
]))
|
|
18636
18636
|
], 16));
|
|
@@ -18638,7 +18638,7 @@ and ensure you are accounting for this risk.
|
|
|
18638
18638
|
}
|
|
18639
18639
|
});
|
|
18640
18640
|
const _hoisted_1$16 = ["innerHTML"];
|
|
18641
|
-
const _sfc_main$
|
|
18641
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18642
18642
|
__name: "SearchBoxProductCustomHtml",
|
|
18643
18643
|
props: {
|
|
18644
18644
|
item: {},
|
|
@@ -18784,8 +18784,11 @@ and ensure you are accounting for this risk.
|
|
|
18784
18784
|
return hasResults.value && ((_a = searchResult.value.offset) != null ? _a : 0) >= totalItems.value;
|
|
18785
18785
|
}
|
|
18786
18786
|
);
|
|
18787
|
-
const setSidebarState = ({
|
|
18788
|
-
|
|
18787
|
+
const setSidebarState = ({
|
|
18788
|
+
visible,
|
|
18789
|
+
disableBodyScrolling = true
|
|
18790
|
+
}) => {
|
|
18791
|
+
if (visible && disableBodyScrolling) {
|
|
18789
18792
|
disableBodyScroll();
|
|
18790
18793
|
} else {
|
|
18791
18794
|
enableBodyScroll();
|
|
@@ -18899,8 +18902,8 @@ and ensure you are accounting for this risk.
|
|
|
18899
18902
|
});
|
|
18900
18903
|
const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18901
18904
|
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
18902
|
-
const _hoisted_3$
|
|
18903
|
-
const _sfc_main$
|
|
18905
|
+
const _hoisted_3$z = ["onClick", "disabled"];
|
|
18906
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18904
18907
|
__name: "SearchBoxProductAddToCart",
|
|
18905
18908
|
props: {
|
|
18906
18909
|
item: {},
|
|
@@ -18942,7 +18945,7 @@ and ensure you are accounting for this risk.
|
|
|
18942
18945
|
"data-cy": "lupa-add-to-cart",
|
|
18943
18946
|
type: "button",
|
|
18944
18947
|
disabled: !inStockValue.value || loading.value
|
|
18945
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$
|
|
18948
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$z)
|
|
18946
18949
|
])
|
|
18947
18950
|
]);
|
|
18948
18951
|
};
|
|
@@ -18954,17 +18957,17 @@ and ensure you are accounting for this risk.
|
|
|
18954
18957
|
};
|
|
18955
18958
|
const __default__$4 = {
|
|
18956
18959
|
components: {
|
|
18957
|
-
SearchBoxProductImage: _sfc_main$
|
|
18958
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18959
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18960
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18961
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18962
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18963
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18964
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18960
|
+
SearchBoxProductImage: _sfc_main$1l,
|
|
18961
|
+
SearchBoxProductTitle: _sfc_main$1k,
|
|
18962
|
+
SearchBoxProductDescription: _sfc_main$1j,
|
|
18963
|
+
SearchBoxProductPrice: _sfc_main$1i,
|
|
18964
|
+
SearchBoxProductRegularPrice: _sfc_main$1h,
|
|
18965
|
+
SearchBoxProductCustom: _sfc_main$1g,
|
|
18966
|
+
SearchBoxProductCustomHtml: _sfc_main$1f,
|
|
18967
|
+
SearchBoxProductAddToCart: _sfc_main$1e
|
|
18965
18968
|
}
|
|
18966
18969
|
};
|
|
18967
|
-
const _sfc_main$
|
|
18970
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18968
18971
|
__name: "SearchBoxProductElement",
|
|
18969
18972
|
props: {
|
|
18970
18973
|
item: {},
|
|
@@ -19050,12 +19053,12 @@ and ensure you are accounting for this risk.
|
|
|
19050
19053
|
}));
|
|
19051
19054
|
const _hoisted_1$13 = { class: "lupa-badge-title" };
|
|
19052
19055
|
const _hoisted_2$N = ["src"];
|
|
19053
|
-
const _hoisted_3$
|
|
19054
|
-
const _hoisted_4$
|
|
19056
|
+
const _hoisted_3$y = { key: 1 };
|
|
19057
|
+
const _hoisted_4$p = {
|
|
19055
19058
|
key: 0,
|
|
19056
19059
|
class: "lupa-badge-full-text"
|
|
19057
19060
|
};
|
|
19058
|
-
const _sfc_main$
|
|
19061
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
19059
19062
|
__name: "SearchResultGeneratedBadge",
|
|
19060
19063
|
props: {
|
|
19061
19064
|
options: {},
|
|
@@ -19093,15 +19096,15 @@ and ensure you are accounting for this risk.
|
|
|
19093
19096
|
key: 0,
|
|
19094
19097
|
src: image.value
|
|
19095
19098
|
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
19096
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
19099
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
19097
19100
|
]),
|
|
19098
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
19101
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
19099
19102
|
], 6);
|
|
19100
19103
|
};
|
|
19101
19104
|
}
|
|
19102
19105
|
});
|
|
19103
19106
|
const _hoisted_1$12 = { class: "lupa-generated-badges" };
|
|
19104
|
-
const _sfc_main$
|
|
19107
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
19105
19108
|
__name: "SearchResultGeneratedBadges",
|
|
19106
19109
|
props: {
|
|
19107
19110
|
options: {}
|
|
@@ -19129,7 +19132,7 @@ and ensure you are accounting for this risk.
|
|
|
19129
19132
|
return (_ctx, _cache) => {
|
|
19130
19133
|
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
19131
19134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19132
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19135
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19133
19136
|
key: badge.id,
|
|
19134
19137
|
badge,
|
|
19135
19138
|
options: _ctx.options
|
|
@@ -19140,7 +19143,7 @@ and ensure you are accounting for this risk.
|
|
|
19140
19143
|
}
|
|
19141
19144
|
});
|
|
19142
19145
|
const _hoisted_1$11 = ["innerHTML"];
|
|
19143
|
-
const _sfc_main$
|
|
19146
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
19144
19147
|
__name: "CustomBadge",
|
|
19145
19148
|
props: {
|
|
19146
19149
|
badge: {}
|
|
@@ -19166,7 +19169,7 @@ and ensure you are accounting for this risk.
|
|
|
19166
19169
|
}
|
|
19167
19170
|
});
|
|
19168
19171
|
const _hoisted_1$10 = { class: "lupa-text-badges" };
|
|
19169
|
-
const _sfc_main$
|
|
19172
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
19170
19173
|
__name: "TextBadge",
|
|
19171
19174
|
props: {
|
|
19172
19175
|
badge: {}
|
|
@@ -19193,7 +19196,7 @@ and ensure you are accounting for this risk.
|
|
|
19193
19196
|
});
|
|
19194
19197
|
const _hoisted_1$$ = { class: "lupa-image-badges" };
|
|
19195
19198
|
const _hoisted_2$M = ["src"];
|
|
19196
|
-
const _sfc_main$
|
|
19199
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
19197
19200
|
__name: "ImageBadge",
|
|
19198
19201
|
props: {
|
|
19199
19202
|
badge: {}
|
|
@@ -19228,7 +19231,7 @@ and ensure you are accounting for this risk.
|
|
|
19228
19231
|
};
|
|
19229
19232
|
}
|
|
19230
19233
|
});
|
|
19231
|
-
const _sfc_main$
|
|
19234
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19232
19235
|
__name: "DiscountBadge",
|
|
19233
19236
|
props: {
|
|
19234
19237
|
badge: {}
|
|
@@ -19289,13 +19292,13 @@ and ensure you are accounting for this risk.
|
|
|
19289
19292
|
const _hoisted_1$_ = { id: "lupa-search-results-badges" };
|
|
19290
19293
|
const __default__$3 = {
|
|
19291
19294
|
components: {
|
|
19292
|
-
CustomBadge: _sfc_main$
|
|
19293
|
-
TextBadge: _sfc_main$
|
|
19294
|
-
ImageBadge: _sfc_main$
|
|
19295
|
-
DiscountBadge: _sfc_main$
|
|
19295
|
+
CustomBadge: _sfc_main$1a,
|
|
19296
|
+
TextBadge: _sfc_main$19,
|
|
19297
|
+
ImageBadge: _sfc_main$18,
|
|
19298
|
+
DiscountBadge: _sfc_main$17
|
|
19296
19299
|
}
|
|
19297
19300
|
};
|
|
19298
|
-
const _sfc_main$
|
|
19301
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19299
19302
|
__name: "SearchResultsBadgeWrapper",
|
|
19300
19303
|
props: {
|
|
19301
19304
|
position: {},
|
|
@@ -19369,7 +19372,7 @@ and ensure you are accounting for this risk.
|
|
|
19369
19372
|
badge
|
|
19370
19373
|
}, null, 8, ["badge"]);
|
|
19371
19374
|
}), 128)),
|
|
19372
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19375
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
19373
19376
|
key: 0,
|
|
19374
19377
|
options: _ctx.options
|
|
19375
19378
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19380,11 +19383,11 @@ and ensure you are accounting for this risk.
|
|
|
19380
19383
|
}));
|
|
19381
19384
|
const _hoisted_1$Z = ["href"];
|
|
19382
19385
|
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
19383
|
-
const _hoisted_3$
|
|
19386
|
+
const _hoisted_3$x = {
|
|
19384
19387
|
key: 0,
|
|
19385
19388
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19386
19389
|
};
|
|
19387
|
-
const _sfc_main$
|
|
19390
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
19388
19391
|
__name: "SearchBoxProduct",
|
|
19389
19392
|
props: {
|
|
19390
19393
|
item: {},
|
|
@@ -19470,7 +19473,7 @@ and ensure you are accounting for this risk.
|
|
|
19470
19473
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19471
19474
|
}, [
|
|
19472
19475
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19473
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19476
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
19474
19477
|
class: "lupa-search-box-product-element",
|
|
19475
19478
|
item: _ctx.item,
|
|
19476
19479
|
element,
|
|
@@ -19483,7 +19486,7 @@ and ensure you are accounting for this risk.
|
|
|
19483
19486
|
createBaseVNode("div", _hoisted_2$L, [
|
|
19484
19487
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19485
19488
|
var _a;
|
|
19486
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19489
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
19487
19490
|
key: element.key,
|
|
19488
19491
|
class: "lupa-search-box-product-element",
|
|
19489
19492
|
item: _ctx.item,
|
|
@@ -19494,7 +19497,7 @@ and ensure you are accounting for this risk.
|
|
|
19494
19497
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19495
19498
|
name: "badges",
|
|
19496
19499
|
fn: withCtx(() => [
|
|
19497
|
-
createVNode(_sfc_main$
|
|
19500
|
+
createVNode(_sfc_main$16, {
|
|
19498
19501
|
options: badgeOptions.value,
|
|
19499
19502
|
position: "card"
|
|
19500
19503
|
}, null, 8, ["options"])
|
|
@@ -19504,8 +19507,8 @@ and ensure you are accounting for this risk.
|
|
|
19504
19507
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19505
19508
|
}), 128))
|
|
19506
19509
|
]),
|
|
19507
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19508
|
-
createVNode(_sfc_main$
|
|
19510
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
19511
|
+
createVNode(_sfc_main$1d, {
|
|
19509
19512
|
class: "lupa-search-box-product-element",
|
|
19510
19513
|
item: _ctx.item,
|
|
19511
19514
|
element: addToCartElement.value,
|
|
@@ -19587,7 +19590,7 @@ and ensure you are accounting for this risk.
|
|
|
19587
19590
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
19588
19591
|
});
|
|
19589
19592
|
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
19590
|
-
const _sfc_main$
|
|
19593
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
19591
19594
|
__name: "SearchBoxProducts",
|
|
19592
19595
|
props: {
|
|
19593
19596
|
items: {},
|
|
@@ -19667,7 +19670,7 @@ and ensure you are accounting for this risk.
|
|
|
19667
19670
|
itemClicked: handleProductClick
|
|
19668
19671
|
});
|
|
19669
19672
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19670
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19673
|
+
return openBlock(), createBlock(_sfc_main$15, {
|
|
19671
19674
|
key: index,
|
|
19672
19675
|
item,
|
|
19673
19676
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19684,7 +19687,7 @@ and ensure you are accounting for this risk.
|
|
|
19684
19687
|
});
|
|
19685
19688
|
const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19686
19689
|
const _hoisted_2$K = { key: 0 };
|
|
19687
|
-
const _sfc_main$
|
|
19690
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19688
19691
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19689
19692
|
props: {
|
|
19690
19693
|
options: {},
|
|
@@ -19794,7 +19797,7 @@ and ensure you are accounting for this risk.
|
|
|
19794
19797
|
}
|
|
19795
19798
|
return parsedObject;
|
|
19796
19799
|
};
|
|
19797
|
-
const _sfc_main$
|
|
19800
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19798
19801
|
__name: "SearchBoxProductsWrapper",
|
|
19799
19802
|
props: {
|
|
19800
19803
|
panel: {},
|
|
@@ -19859,7 +19862,7 @@ and ensure you are accounting for this risk.
|
|
|
19859
19862
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19860
19863
|
return (_ctx, _cache) => {
|
|
19861
19864
|
var _a, _b;
|
|
19862
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19865
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19863
19866
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19864
19867
|
panelOptions: _ctx.panel,
|
|
19865
19868
|
labels: _ctx.labels,
|
|
@@ -19869,7 +19872,7 @@ and ensure you are accounting for this risk.
|
|
|
19869
19872
|
default: withCtx(() => {
|
|
19870
19873
|
var _a2;
|
|
19871
19874
|
return [
|
|
19872
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
19875
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$13, {
|
|
19873
19876
|
key: 0,
|
|
19874
19877
|
options: _ctx.searchBoxOptions,
|
|
19875
19878
|
panel: _ctx.panel,
|
|
@@ -19890,7 +19893,7 @@ and ensure you are accounting for this risk.
|
|
|
19890
19893
|
};
|
|
19891
19894
|
}
|
|
19892
19895
|
});
|
|
19893
|
-
const _sfc_main$
|
|
19896
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19894
19897
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19895
19898
|
props: {
|
|
19896
19899
|
panel: {},
|
|
@@ -19962,7 +19965,7 @@ and ensure you are accounting for this risk.
|
|
|
19962
19965
|
});
|
|
19963
19966
|
return (_ctx, _cache) => {
|
|
19964
19967
|
var _a, _b;
|
|
19965
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19968
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19966
19969
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19967
19970
|
panelOptions: documentPanelOptions.value,
|
|
19968
19971
|
labels: _ctx.labels,
|
|
@@ -19985,11 +19988,11 @@ and ensure you are accounting for this risk.
|
|
|
19985
19988
|
id: "lupa-search-box-panel"
|
|
19986
19989
|
};
|
|
19987
19990
|
const _hoisted_2$J = ["data-cy"];
|
|
19988
|
-
const _hoisted_3$
|
|
19991
|
+
const _hoisted_3$w = {
|
|
19989
19992
|
key: 0,
|
|
19990
19993
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19991
19994
|
};
|
|
19992
|
-
const _hoisted_4$
|
|
19995
|
+
const _hoisted_4$o = {
|
|
19993
19996
|
key: 1,
|
|
19994
19997
|
class: "lupa-panel-title"
|
|
19995
19998
|
};
|
|
@@ -19999,12 +20002,12 @@ and ensure you are accounting for this risk.
|
|
|
19999
20002
|
};
|
|
20000
20003
|
const __default__$2 = {
|
|
20001
20004
|
components: {
|
|
20002
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
20003
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
20004
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
20005
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1n,
|
|
20006
|
+
SearchBoxProductsWrapper: _sfc_main$12,
|
|
20007
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$11
|
|
20005
20008
|
}
|
|
20006
20009
|
};
|
|
20007
|
-
const _sfc_main
|
|
20010
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
20008
20011
|
__name: "SearchBoxMainPanel",
|
|
20009
20012
|
props: {
|
|
20010
20013
|
options: {},
|
|
@@ -20181,8 +20184,8 @@ and ensure you are accounting for this risk.
|
|
|
20181
20184
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
20182
20185
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
20183
20186
|
}, [
|
|
20184
|
-
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20185
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
20187
|
+
((_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),
|
|
20188
|
+
((_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),
|
|
20186
20189
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
20187
20190
|
key: 2,
|
|
20188
20191
|
panel,
|
|
@@ -20207,18 +20210,18 @@ and ensure you are accounting for this risk.
|
|
|
20207
20210
|
], 14, _hoisted_2$J);
|
|
20208
20211
|
}), 128))
|
|
20209
20212
|
], 4),
|
|
20210
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
20213
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
20211
20214
|
key: 1,
|
|
20212
20215
|
labels: labels.value
|
|
20213
20216
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
20214
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
20217
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
20215
20218
|
key: 2,
|
|
20216
20219
|
labels: labels.value,
|
|
20217
20220
|
options: _ctx.options,
|
|
20218
20221
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
20219
20222
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
20220
20223
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
20221
|
-
createVNode(_sfc_main$
|
|
20224
|
+
createVNode(_sfc_main$1r, {
|
|
20222
20225
|
options: _ctx.options.history,
|
|
20223
20226
|
history: history.value,
|
|
20224
20227
|
onGoToResults: handleGoToResults,
|
|
@@ -20245,7 +20248,7 @@ and ensure you are accounting for this risk.
|
|
|
20245
20248
|
};
|
|
20246
20249
|
const _hoisted_1$V = { id: "lupa-search-box" };
|
|
20247
20250
|
const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
|
|
20248
|
-
const _sfc_main
|
|
20251
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
20249
20252
|
__name: "SearchBox",
|
|
20250
20253
|
props: {
|
|
20251
20254
|
options: {},
|
|
@@ -20515,7 +20518,7 @@ and ensure you are accounting for this risk.
|
|
|
20515
20518
|
var _a2;
|
|
20516
20519
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
20517
20520
|
createBaseVNode("div", _hoisted_2$I, [
|
|
20518
|
-
createVNode(_sfc_main$
|
|
20521
|
+
createVNode(_sfc_main$1u, {
|
|
20519
20522
|
options: inputOptions.value,
|
|
20520
20523
|
suggestedValue: suggestedValue.value,
|
|
20521
20524
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20528,7 +20531,7 @@ and ensure you are accounting for this risk.
|
|
|
20528
20531
|
onSearch: handleSearch,
|
|
20529
20532
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20530
20533
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20531
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
20534
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$10, {
|
|
20532
20535
|
key: 0,
|
|
20533
20536
|
options: panelOptions.value,
|
|
20534
20537
|
inputValue: inputValue.value,
|
|
@@ -20625,12 +20628,12 @@ and ensure you are accounting for this risk.
|
|
|
20625
20628
|
key: 0,
|
|
20626
20629
|
"data-cy": "suggested-search-text-label"
|
|
20627
20630
|
};
|
|
20628
|
-
const _hoisted_3$
|
|
20631
|
+
const _hoisted_3$v = {
|
|
20629
20632
|
key: 1,
|
|
20630
20633
|
"data-cy": "did-you-mean-label"
|
|
20631
20634
|
};
|
|
20632
|
-
const _hoisted_4$
|
|
20633
|
-
const _sfc_main$
|
|
20635
|
+
const _hoisted_4$n = { key: 1 };
|
|
20636
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
20634
20637
|
__name: "SearchResultsDidYouMean",
|
|
20635
20638
|
props: {
|
|
20636
20639
|
labels: {}
|
|
@@ -20672,7 +20675,7 @@ and ensure you are accounting for this risk.
|
|
|
20672
20675
|
]);
|
|
20673
20676
|
}), 128))
|
|
20674
20677
|
])) : createCommentVNode("", true),
|
|
20675
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20678
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
20676
20679
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20677
20680
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20678
20681
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20680,7 +20683,7 @@ and ensure you are accounting for this risk.
|
|
|
20680
20683
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20681
20684
|
"data-cy": "did-you-mean-value",
|
|
20682
20685
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20683
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20686
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
20684
20687
|
]);
|
|
20685
20688
|
}), 128))
|
|
20686
20689
|
])) : createCommentVNode("", true)
|
|
@@ -20693,7 +20696,7 @@ and ensure you are accounting for this risk.
|
|
|
20693
20696
|
class: "lupa-search-results-summary"
|
|
20694
20697
|
};
|
|
20695
20698
|
const _hoisted_2$G = ["innerHTML"];
|
|
20696
|
-
const _sfc_main$
|
|
20699
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
20697
20700
|
__name: "SearchResultsSummary",
|
|
20698
20701
|
props: {
|
|
20699
20702
|
label: {},
|
|
@@ -20726,13 +20729,13 @@ and ensure you are accounting for this risk.
|
|
|
20726
20729
|
"data-cy": "lupa-result-page-title"
|
|
20727
20730
|
};
|
|
20728
20731
|
const _hoisted_2$F = { key: 0 };
|
|
20729
|
-
const _hoisted_3$
|
|
20732
|
+
const _hoisted_3$u = {
|
|
20730
20733
|
key: 1,
|
|
20731
20734
|
class: "lupa-results-total-count"
|
|
20732
20735
|
};
|
|
20733
|
-
const _hoisted_4$
|
|
20736
|
+
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
20734
20737
|
const _hoisted_5$f = ["innerHTML"];
|
|
20735
|
-
const _sfc_main$
|
|
20738
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20736
20739
|
__name: "SearchResultsTitle",
|
|
20737
20740
|
props: {
|
|
20738
20741
|
options: {},
|
|
@@ -20778,13 +20781,13 @@ and ensure you are accounting for this risk.
|
|
|
20778
20781
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
|
|
20779
20782
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
20780
20783
|
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20781
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20784
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
20782
20785
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20783
|
-
createBaseVNode("span", _hoisted_4$
|
|
20786
|
+
createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
|
|
20784
20787
|
createTextVNode(")")
|
|
20785
20788
|
])) : createCommentVNode("", true)
|
|
20786
20789
|
])) : createCommentVNode("", true),
|
|
20787
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20790
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
20788
20791
|
key: 1,
|
|
20789
20792
|
label: summaryLabel.value
|
|
20790
20793
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20797,16 +20800,15 @@ and ensure you are accounting for this risk.
|
|
|
20797
20800
|
};
|
|
20798
20801
|
}
|
|
20799
20802
|
});
|
|
20800
|
-
const _hoisted_1$R = {
|
|
20801
|
-
const _hoisted_2$E = {
|
|
20803
|
+
const _hoisted_1$R = {
|
|
20802
20804
|
class: "lupa-current-filter-label",
|
|
20803
20805
|
"data-cy": "lupa-current-filter-label"
|
|
20804
20806
|
};
|
|
20805
|
-
const
|
|
20807
|
+
const _hoisted_2$E = {
|
|
20806
20808
|
class: "lupa-current-filter-value",
|
|
20807
20809
|
"data-cy": "lupa-current-filter-value"
|
|
20808
20810
|
};
|
|
20809
|
-
const _sfc_main$
|
|
20811
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20810
20812
|
__name: "CurrentFilterDisplay",
|
|
20811
20813
|
props: {
|
|
20812
20814
|
filter: {}
|
|
@@ -20814,18 +20816,23 @@ and ensure you are accounting for this risk.
|
|
|
20814
20816
|
emits: ["remove"],
|
|
20815
20817
|
setup(__props, { emit: emit2 }) {
|
|
20816
20818
|
const props = __props;
|
|
20819
|
+
const facetKeyClass = computed(() => {
|
|
20820
|
+
return `lupa-facet-active-filter-${props.filter.key}`;
|
|
20821
|
+
});
|
|
20817
20822
|
const handleClick = () => {
|
|
20818
20823
|
emit2("remove", { filter: props.filter });
|
|
20819
20824
|
};
|
|
20820
20825
|
return (_ctx, _cache) => {
|
|
20821
|
-
return openBlock(), createElementBlock("div",
|
|
20826
|
+
return openBlock(), createElementBlock("div", {
|
|
20827
|
+
class: normalizeClass(["lupa-search-result-filter-value", { [facetKeyClass.value]: true }])
|
|
20828
|
+
}, [
|
|
20822
20829
|
createBaseVNode("div", {
|
|
20823
20830
|
class: "lupa-current-filter-action",
|
|
20824
20831
|
onClick: handleClick
|
|
20825
20832
|
}, "⨉"),
|
|
20826
|
-
createBaseVNode("div",
|
|
20827
|
-
createBaseVNode("div",
|
|
20828
|
-
]);
|
|
20833
|
+
createBaseVNode("div", _hoisted_1$R, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20834
|
+
createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.value), 1)
|
|
20835
|
+
], 2);
|
|
20829
20836
|
};
|
|
20830
20837
|
}
|
|
20831
20838
|
});
|
|
@@ -20834,12 +20841,12 @@ and ensure you are accounting for this risk.
|
|
|
20834
20841
|
key: 0,
|
|
20835
20842
|
class: "lupa-filter-count"
|
|
20836
20843
|
};
|
|
20837
|
-
const _hoisted_3$
|
|
20844
|
+
const _hoisted_3$t = {
|
|
20838
20845
|
key: 0,
|
|
20839
20846
|
class: "filter-values"
|
|
20840
20847
|
};
|
|
20841
|
-
const _hoisted_4$
|
|
20842
|
-
const _sfc_main$
|
|
20848
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
20849
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20843
20850
|
__name: "CurrentFilters",
|
|
20844
20851
|
props: {
|
|
20845
20852
|
options: {},
|
|
@@ -20921,10 +20928,10 @@ and ensure you are accounting for this risk.
|
|
|
20921
20928
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20922
20929
|
}, null, 2)) : createCommentVNode("", true)
|
|
20923
20930
|
]),
|
|
20924
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20925
|
-
createBaseVNode("div", _hoisted_4$
|
|
20931
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20932
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
20926
20933
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20927
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20934
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
|
20928
20935
|
key: filter2.key + "_" + filter2.value,
|
|
20929
20936
|
filter: filter2,
|
|
20930
20937
|
onRemove: handleRemove
|
|
@@ -20942,7 +20949,7 @@ and ensure you are accounting for this risk.
|
|
|
20942
20949
|
}
|
|
20943
20950
|
});
|
|
20944
20951
|
const _hoisted_1$P = ["href"];
|
|
20945
|
-
const _sfc_main$
|
|
20952
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20946
20953
|
__name: "CategoryFilterItem",
|
|
20947
20954
|
props: {
|
|
20948
20955
|
options: {},
|
|
@@ -20989,10 +20996,10 @@ and ensure you are accounting for this risk.
|
|
|
20989
20996
|
"data-cy": "lupa-category-filter"
|
|
20990
20997
|
};
|
|
20991
20998
|
const _hoisted_2$C = { class: "lupa-category-back" };
|
|
20992
|
-
const _hoisted_3$
|
|
20993
|
-
const _hoisted_4$
|
|
20999
|
+
const _hoisted_3$s = ["href"];
|
|
21000
|
+
const _hoisted_4$k = ["href"];
|
|
20994
21001
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20995
|
-
const _sfc_main$
|
|
21002
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20996
21003
|
__name: "CategoryFilter",
|
|
20997
21004
|
props: {
|
|
20998
21005
|
options: {}
|
|
@@ -21087,7 +21094,7 @@ and ensure you are accounting for this risk.
|
|
|
21087
21094
|
"data-cy": "lupa-category-back",
|
|
21088
21095
|
href: backUrlLink.value,
|
|
21089
21096
|
onClick: handleNavigationBack
|
|
21090
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
21097
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
|
|
21091
21098
|
]),
|
|
21092
21099
|
createBaseVNode("div", {
|
|
21093
21100
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -21097,11 +21104,11 @@ and ensure you are accounting for this risk.
|
|
|
21097
21104
|
href: parentUrlLink.value,
|
|
21098
21105
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
21099
21106
|
onClick: handleNavigationParent
|
|
21100
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
21107
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
21101
21108
|
], 2),
|
|
21102
21109
|
createBaseVNode("div", _hoisted_5$e, [
|
|
21103
21110
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
21104
|
-
return openBlock(), createBlock(_sfc_main$
|
|
21111
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
21105
21112
|
key: getCategoryKey(child),
|
|
21106
21113
|
item: child,
|
|
21107
21114
|
options: _ctx.options
|
|
@@ -21117,8 +21124,8 @@ and ensure you are accounting for this risk.
|
|
|
21117
21124
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
21118
21125
|
};
|
|
21119
21126
|
const _hoisted_2$B = ["placeholder"];
|
|
21120
|
-
const _hoisted_3$
|
|
21121
|
-
const _hoisted_4$
|
|
21127
|
+
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
21128
|
+
const _hoisted_4$j = ["onClick"];
|
|
21122
21129
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
21123
21130
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
21124
21131
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -21128,7 +21135,7 @@ and ensure you are accounting for this risk.
|
|
|
21128
21135
|
};
|
|
21129
21136
|
const _hoisted_9$2 = { key: 0 };
|
|
21130
21137
|
const _hoisted_10$1 = { key: 1 };
|
|
21131
|
-
const _sfc_main$
|
|
21138
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
21132
21139
|
__name: "TermFacet",
|
|
21133
21140
|
props: {
|
|
21134
21141
|
options: {},
|
|
@@ -21209,7 +21216,7 @@ and ensure you are accounting for this risk.
|
|
|
21209
21216
|
}, null, 8, _hoisted_2$B)), [
|
|
21210
21217
|
[vModelText, termFilter.value]
|
|
21211
21218
|
]) : createCommentVNode("", true),
|
|
21212
|
-
createBaseVNode("div", _hoisted_3$
|
|
21219
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
21213
21220
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
21214
21221
|
return openBlock(), createElementBlock("div", {
|
|
21215
21222
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -21226,7 +21233,7 @@ and ensure you are accounting for this risk.
|
|
|
21226
21233
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
21227
21234
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
21228
21235
|
])
|
|
21229
|
-
], 10, _hoisted_4$
|
|
21236
|
+
], 10, _hoisted_4$j);
|
|
21230
21237
|
}), 128))
|
|
21231
21238
|
]),
|
|
21232
21239
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -22222,11 +22229,11 @@ and ensure you are accounting for this risk.
|
|
|
22222
22229
|
key: 0,
|
|
22223
22230
|
class: "lupa-stats-facet-summary"
|
|
22224
22231
|
};
|
|
22225
|
-
const _hoisted_3$
|
|
22232
|
+
const _hoisted_3$q = {
|
|
22226
22233
|
key: 1,
|
|
22227
22234
|
class: "lupa-stats-facet-summary-input"
|
|
22228
22235
|
};
|
|
22229
|
-
const _hoisted_4$
|
|
22236
|
+
const _hoisted_4$i = {
|
|
22230
22237
|
key: 0,
|
|
22231
22238
|
class: "lupa-stats-range-label"
|
|
22232
22239
|
};
|
|
@@ -22245,7 +22252,7 @@ and ensure you are accounting for this risk.
|
|
|
22245
22252
|
key: 2,
|
|
22246
22253
|
class: "lupa-stats-slider-wrapper"
|
|
22247
22254
|
};
|
|
22248
|
-
const _sfc_main$
|
|
22255
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
22249
22256
|
__name: "StatsFacet",
|
|
22250
22257
|
props: {
|
|
22251
22258
|
options: {},
|
|
@@ -22423,9 +22430,9 @@ and ensure you are accounting for this risk.
|
|
|
22423
22430
|
};
|
|
22424
22431
|
return (_ctx, _cache) => {
|
|
22425
22432
|
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
22426
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22433
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22427
22434
|
createBaseVNode("div", null, [
|
|
22428
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22435
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22429
22436
|
createBaseVNode("div", _hoisted_5$c, [
|
|
22430
22437
|
withDirectives(createBaseVNode("input", {
|
|
22431
22438
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -22491,8 +22498,8 @@ and ensure you are accounting for this risk.
|
|
|
22491
22498
|
});
|
|
22492
22499
|
const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
|
|
22493
22500
|
const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
|
|
22494
|
-
const _hoisted_3$
|
|
22495
|
-
const _hoisted_4$
|
|
22501
|
+
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22502
|
+
const _hoisted_4$h = {
|
|
22496
22503
|
key: 0,
|
|
22497
22504
|
class: "lupa-term-count"
|
|
22498
22505
|
};
|
|
@@ -22500,7 +22507,7 @@ and ensure you are accounting for this risk.
|
|
|
22500
22507
|
key: 0,
|
|
22501
22508
|
class: "lupa-facet-level"
|
|
22502
22509
|
};
|
|
22503
|
-
const _sfc_main$
|
|
22510
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
22504
22511
|
__name: "HierarchyFacetLevel",
|
|
22505
22512
|
props: {
|
|
22506
22513
|
options: {},
|
|
@@ -22552,8 +22559,8 @@ and ensure you are accounting for this risk.
|
|
|
22552
22559
|
}, null, 2)
|
|
22553
22560
|
]),
|
|
22554
22561
|
createBaseVNode("div", _hoisted_2$z, [
|
|
22555
|
-
createBaseVNode("span", _hoisted_3$
|
|
22556
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22562
|
+
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22563
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22557
22564
|
])
|
|
22558
22565
|
]),
|
|
22559
22566
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
@@ -22577,8 +22584,8 @@ and ensure you are accounting for this risk.
|
|
|
22577
22584
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22578
22585
|
};
|
|
22579
22586
|
const _hoisted_2$y = { key: 0 };
|
|
22580
|
-
const _hoisted_3$
|
|
22581
|
-
const _sfc_main$
|
|
22587
|
+
const _hoisted_3$o = ["placeholder"];
|
|
22588
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
22582
22589
|
__name: "HierarchyFacet",
|
|
22583
22590
|
props: {
|
|
22584
22591
|
options: {},
|
|
@@ -22640,12 +22647,12 @@ and ensure you are accounting for this risk.
|
|
|
22640
22647
|
"data-cy": "lupa-term-filter",
|
|
22641
22648
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22642
22649
|
placeholder: _ctx.options.labels.facetFilter
|
|
22643
|
-
}, null, 8, _hoisted_3$
|
|
22650
|
+
}, null, 8, _hoisted_3$o), [
|
|
22644
22651
|
[vModelText, termFilter.value]
|
|
22645
22652
|
])
|
|
22646
22653
|
])) : createCommentVNode("", true),
|
|
22647
22654
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22648
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22655
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
22649
22656
|
key: item.title,
|
|
22650
22657
|
options: _ctx.options,
|
|
22651
22658
|
item,
|
|
@@ -22677,12 +22684,12 @@ and ensure you are accounting for this risk.
|
|
|
22677
22684
|
};
|
|
22678
22685
|
const __default__$1 = {
|
|
22679
22686
|
components: {
|
|
22680
|
-
TermFacet: _sfc_main$
|
|
22681
|
-
StatsFacet: _sfc_main$
|
|
22682
|
-
HierarchyFacet: _sfc_main$
|
|
22687
|
+
TermFacet: _sfc_main$T,
|
|
22688
|
+
StatsFacet: _sfc_main$S,
|
|
22689
|
+
HierarchyFacet: _sfc_main$Q
|
|
22683
22690
|
}
|
|
22684
22691
|
};
|
|
22685
|
-
const _sfc_main$
|
|
22692
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22686
22693
|
__name: "FacetDisplay",
|
|
22687
22694
|
props: {
|
|
22688
22695
|
options: {},
|
|
@@ -22739,6 +22746,9 @@ and ensure you are accounting for this risk.
|
|
|
22739
22746
|
var _a2;
|
|
22740
22747
|
return ((_a2 = currentFilterKeys.value) != null ? _a2 : []).join(",");
|
|
22741
22748
|
});
|
|
22749
|
+
const facetKeyClass = computed(() => {
|
|
22750
|
+
return `lupa-facet-${facet.value.key}`;
|
|
22751
|
+
});
|
|
22742
22752
|
onMounted(() => {
|
|
22743
22753
|
var _a2;
|
|
22744
22754
|
if (((_a2 = props.options.style) == null ? void 0 : _a2.type) === "top-dropdown") {
|
|
@@ -22790,7 +22800,7 @@ and ensure you are accounting for this risk.
|
|
|
22790
22800
|
"data-cy": "lupa-search-result-facet-display"
|
|
22791
22801
|
}, [
|
|
22792
22802
|
createBaseVNode("div", {
|
|
22793
|
-
class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value }]),
|
|
22803
|
+
class: normalizeClass(["lupa-search-result-facet-label", { open: isOpen.value, "lupa-has-filter": hasFilter.value, [facetKeyClass.value]: true }]),
|
|
22794
22804
|
"data-cy": "lupa-search-result-facet-label",
|
|
22795
22805
|
onClick: toggleFacet
|
|
22796
22806
|
}, [
|
|
@@ -22822,7 +22832,7 @@ and ensure you are accounting for this risk.
|
|
|
22822
22832
|
key: 0,
|
|
22823
22833
|
class: "lupa-facets-title"
|
|
22824
22834
|
};
|
|
22825
|
-
const _sfc_main$
|
|
22835
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
22826
22836
|
__name: "FacetList",
|
|
22827
22837
|
props: {
|
|
22828
22838
|
options: {},
|
|
@@ -22863,7 +22873,7 @@ and ensure you are accounting for this risk.
|
|
|
22863
22873
|
}, [
|
|
22864
22874
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22865
22875
|
var _a2;
|
|
22866
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22876
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
22867
22877
|
key: facet.key,
|
|
22868
22878
|
facet,
|
|
22869
22879
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22879,7 +22889,7 @@ and ensure you are accounting for this risk.
|
|
|
22879
22889
|
}
|
|
22880
22890
|
});
|
|
22881
22891
|
const _hoisted_1$H = ["onClick"];
|
|
22882
|
-
const _sfc_main$
|
|
22892
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22883
22893
|
__name: "FacetsButton",
|
|
22884
22894
|
props: {
|
|
22885
22895
|
options: {}
|
|
@@ -22905,7 +22915,7 @@ and ensure you are accounting for this risk.
|
|
|
22905
22915
|
});
|
|
22906
22916
|
const _hoisted_1$G = { class: "lupa-search-result-facets" };
|
|
22907
22917
|
const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
|
|
22908
|
-
const _sfc_main$
|
|
22918
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22909
22919
|
__name: "Facets",
|
|
22910
22920
|
props: {
|
|
22911
22921
|
options: {},
|
|
@@ -22989,7 +22999,7 @@ and ensure you are accounting for this risk.
|
|
|
22989
22999
|
};
|
|
22990
23000
|
return (_ctx, _cache) => {
|
|
22991
23001
|
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
22992
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
23002
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
22993
23003
|
key: 0,
|
|
22994
23004
|
options: _ctx.options,
|
|
22995
23005
|
facets: regularFacets.value,
|
|
@@ -23000,7 +23010,7 @@ and ensure you are accounting for this risk.
|
|
|
23000
23010
|
onClear: clear2
|
|
23001
23011
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
23002
23012
|
createBaseVNode("div", _hoisted_2$v, [
|
|
23003
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
23013
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
23004
23014
|
key: 0,
|
|
23005
23015
|
options: _ctx.options,
|
|
23006
23016
|
onFilter: filter2
|
|
@@ -23014,7 +23024,7 @@ and ensure you are accounting for this risk.
|
|
|
23014
23024
|
id: "lupa-search-result-filters",
|
|
23015
23025
|
class: "lupa-search-result-filters"
|
|
23016
23026
|
};
|
|
23017
|
-
const _sfc_main$
|
|
23027
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
23018
23028
|
__name: "SearchResultsFilters",
|
|
23019
23029
|
props: {
|
|
23020
23030
|
options: {},
|
|
@@ -23048,18 +23058,18 @@ and ensure you are accounting for this risk.
|
|
|
23048
23058
|
return (_ctx, _cache) => {
|
|
23049
23059
|
var _a;
|
|
23050
23060
|
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
23051
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
23061
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
23052
23062
|
key: 0,
|
|
23053
23063
|
options: _ctx.options.currentFilters,
|
|
23054
23064
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
23055
23065
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
23056
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
23066
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$U, {
|
|
23057
23067
|
key: 1,
|
|
23058
23068
|
options: _ctx.options.categories,
|
|
23059
23069
|
ref_key: "categoryFilters",
|
|
23060
23070
|
ref: categoryFilters
|
|
23061
23071
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
23062
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23072
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
23063
23073
|
key: 2,
|
|
23064
23074
|
options: _ctx.options.facets,
|
|
23065
23075
|
onFilter: filter2
|
|
@@ -23073,15 +23083,15 @@ and ensure you are accounting for this risk.
|
|
|
23073
23083
|
class: "lupa-mobile-filter-sidebar"
|
|
23074
23084
|
};
|
|
23075
23085
|
const _hoisted_2$u = ["onClick"];
|
|
23076
|
-
const _hoisted_3$
|
|
23077
|
-
const _hoisted_4$
|
|
23086
|
+
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
23087
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
23078
23088
|
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
23079
23089
|
const _hoisted_6$6 = {
|
|
23080
23090
|
key: 0,
|
|
23081
23091
|
class: "lupa-sidebar-filter-count"
|
|
23082
23092
|
};
|
|
23083
23093
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
23084
|
-
const _sfc_main$
|
|
23094
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
23085
23095
|
__name: "MobileFilterSidebar",
|
|
23086
23096
|
props: {
|
|
23087
23097
|
options: {}
|
|
@@ -23117,8 +23127,8 @@ and ensure you are accounting for this risk.
|
|
|
23117
23127
|
class: "lupa-sidebar-close",
|
|
23118
23128
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
23119
23129
|
}, null, 8, _hoisted_2$u),
|
|
23120
|
-
createBaseVNode("div", _hoisted_3$
|
|
23121
|
-
createBaseVNode("div", _hoisted_4$
|
|
23130
|
+
createBaseVNode("div", _hoisted_3$n, [
|
|
23131
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
23122
23132
|
createBaseVNode("div", _hoisted_5$a, [
|
|
23123
23133
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
23124
23134
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -23129,7 +23139,7 @@ and ensure you are accounting for this risk.
|
|
|
23129
23139
|
})
|
|
23130
23140
|
]),
|
|
23131
23141
|
createBaseVNode("div", _hoisted_7$4, [
|
|
23132
|
-
createVNode(_sfc_main$
|
|
23142
|
+
createVNode(_sfc_main$L, {
|
|
23133
23143
|
options: _ctx.options,
|
|
23134
23144
|
expandable: isActiveFiltersExpanded.value,
|
|
23135
23145
|
onFilter: filter2
|
|
@@ -23142,12 +23152,12 @@ and ensure you are accounting for this risk.
|
|
|
23142
23152
|
});
|
|
23143
23153
|
const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
|
|
23144
23154
|
const _hoisted_2$t = ["href", "onClick"];
|
|
23145
|
-
const _hoisted_3$
|
|
23155
|
+
const _hoisted_3$m = {
|
|
23146
23156
|
key: 1,
|
|
23147
23157
|
class: "lupa-search-results-breadcrumb-text"
|
|
23148
23158
|
};
|
|
23149
|
-
const _hoisted_4$
|
|
23150
|
-
const _sfc_main$
|
|
23159
|
+
const _hoisted_4$f = { key: 2 };
|
|
23160
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
23151
23161
|
__name: "SearchResultsBreadcrumbs",
|
|
23152
23162
|
props: {
|
|
23153
23163
|
breadcrumbs: {}
|
|
@@ -23186,8 +23196,8 @@ and ensure you are accounting for this risk.
|
|
|
23186
23196
|
var _a;
|
|
23187
23197
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
23188
23198
|
}
|
|
23189
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
23190
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23199
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
23200
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
|
|
23191
23201
|
]);
|
|
23192
23202
|
}), 128))
|
|
23193
23203
|
]);
|
|
@@ -23198,7 +23208,7 @@ and ensure you are accounting for this risk.
|
|
|
23198
23208
|
id: "lupa-search-result-filters",
|
|
23199
23209
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
23200
23210
|
};
|
|
23201
|
-
const _sfc_main$
|
|
23211
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
23202
23212
|
__name: "FiltersTopDropdown",
|
|
23203
23213
|
props: {
|
|
23204
23214
|
options: {}
|
|
@@ -23211,7 +23221,7 @@ and ensure you are accounting for this risk.
|
|
|
23211
23221
|
return (_ctx, _cache) => {
|
|
23212
23222
|
var _a;
|
|
23213
23223
|
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
23214
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23224
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
|
|
23215
23225
|
key: 0,
|
|
23216
23226
|
options: _ctx.options.facets,
|
|
23217
23227
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -23223,7 +23233,7 @@ and ensure you are accounting for this risk.
|
|
|
23223
23233
|
}
|
|
23224
23234
|
});
|
|
23225
23235
|
const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
|
|
23226
|
-
const _sfc_main$
|
|
23236
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
23227
23237
|
__name: "SearchResultsLayoutSelection",
|
|
23228
23238
|
setup(__props) {
|
|
23229
23239
|
const searchResultStore = useSearchResultStore();
|
|
@@ -23260,7 +23270,7 @@ and ensure you are accounting for this risk.
|
|
|
23260
23270
|
key: 0,
|
|
23261
23271
|
class: "lupa-mobile-toggle-filter-count"
|
|
23262
23272
|
};
|
|
23263
|
-
const _sfc_main$
|
|
23273
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23264
23274
|
__name: "SearchResultsMobileToggle",
|
|
23265
23275
|
props: {
|
|
23266
23276
|
label: {},
|
|
@@ -23268,13 +23278,28 @@ and ensure you are accounting for this risk.
|
|
|
23268
23278
|
},
|
|
23269
23279
|
setup(__props) {
|
|
23270
23280
|
const searchResultStore = useSearchResultStore();
|
|
23281
|
+
const optionsStore = useOptionsStore();
|
|
23271
23282
|
const { currentFilterCount } = storeToRefs(searchResultStore);
|
|
23283
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
23284
|
+
const disableMobileBodyScrollLock = computed(
|
|
23285
|
+
() => {
|
|
23286
|
+
var _a, _b, _c;
|
|
23287
|
+
return (_c = (_b = (_a = searchResultOptions.value.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.disableMobileBodyScrollLock) != null ? _c : false;
|
|
23288
|
+
}
|
|
23289
|
+
);
|
|
23272
23290
|
const handleMobileToggle = () => {
|
|
23273
|
-
searchResultStore.setSidebarState({
|
|
23291
|
+
searchResultStore.setSidebarState({
|
|
23292
|
+
visible: true,
|
|
23293
|
+
disableBodyScrolling: !disableMobileBodyScrollLock.value
|
|
23294
|
+
});
|
|
23274
23295
|
};
|
|
23296
|
+
const hasActiveFilters = computed(() => currentFilterCount.value > 0);
|
|
23275
23297
|
return (_ctx, _cache) => {
|
|
23276
23298
|
return openBlock(), createElementBlock("div", {
|
|
23277
|
-
class: normalizeClass(["lupa-mobile-toggle", {
|
|
23299
|
+
class: normalizeClass(["lupa-mobile-toggle", {
|
|
23300
|
+
"lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
|
|
23301
|
+
"lupa-mobile-toggle-has-filters": hasActiveFilters.value
|
|
23302
|
+
}]),
|
|
23278
23303
|
onClick: handleMobileToggle
|
|
23279
23304
|
}, [
|
|
23280
23305
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
@@ -23283,6 +23308,26 @@ and ensure you are accounting for this risk.
|
|
|
23283
23308
|
};
|
|
23284
23309
|
}
|
|
23285
23310
|
});
|
|
23311
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
23312
|
+
__name: "SearchResultsMobileFilterClose",
|
|
23313
|
+
props: {
|
|
23314
|
+
label: {}
|
|
23315
|
+
},
|
|
23316
|
+
setup(__props) {
|
|
23317
|
+
const searchResultStore = useSearchResultStore();
|
|
23318
|
+
const handleMobileToggle = () => {
|
|
23319
|
+
searchResultStore.setSidebarState({
|
|
23320
|
+
visible: false
|
|
23321
|
+
});
|
|
23322
|
+
};
|
|
23323
|
+
return (_ctx, _cache) => {
|
|
23324
|
+
return openBlock(), createElementBlock("div", {
|
|
23325
|
+
class: "lupa-mobile-filter-close-toggle",
|
|
23326
|
+
onClick: handleMobileToggle
|
|
23327
|
+
}, toDisplayString(_ctx.label), 1);
|
|
23328
|
+
};
|
|
23329
|
+
}
|
|
23330
|
+
});
|
|
23286
23331
|
const _hoisted_1$z = {
|
|
23287
23332
|
key: 0,
|
|
23288
23333
|
id: "lupa-search-results-page-select",
|
|
@@ -23292,8 +23337,8 @@ and ensure you are accounting for this risk.
|
|
|
23292
23337
|
key: 0,
|
|
23293
23338
|
class: "lupa-page-number-separator"
|
|
23294
23339
|
};
|
|
23295
|
-
const _hoisted_3$
|
|
23296
|
-
const _hoisted_4$
|
|
23340
|
+
const _hoisted_3$l = ["onClick"];
|
|
23341
|
+
const _hoisted_4$e = {
|
|
23297
23342
|
key: 0,
|
|
23298
23343
|
class: "lupa-page-number-separator"
|
|
23299
23344
|
};
|
|
@@ -23396,10 +23441,10 @@ and ensure you are accounting for this risk.
|
|
|
23396
23441
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23397
23442
|
]),
|
|
23398
23443
|
"data-cy": "lupa-page-number"
|
|
23399
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23444
|
+
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23400
23445
|
}), 128)),
|
|
23401
23446
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23402
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23447
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
23403
23448
|
createBaseVNode("div", {
|
|
23404
23449
|
class: "lupa-page-number lupa-page-number-last",
|
|
23405
23450
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23423,8 +23468,8 @@ and ensure you are accounting for this risk.
|
|
|
23423
23468
|
"data-cy": "lupa-search-results-page-size"
|
|
23424
23469
|
};
|
|
23425
23470
|
const _hoisted_2$r = { id: "lupa-select" };
|
|
23426
|
-
const _hoisted_3$
|
|
23427
|
-
const _hoisted_4$
|
|
23471
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23472
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23428
23473
|
const _hoisted_5$9 = ["value"];
|
|
23429
23474
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
23430
23475
|
__name: "SearchResultsPageSize",
|
|
@@ -23456,7 +23501,7 @@ and ensure you are accounting for this risk.
|
|
|
23456
23501
|
return (_ctx, _cache) => {
|
|
23457
23502
|
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23458
23503
|
createBaseVNode("div", _hoisted_2$r, [
|
|
23459
|
-
createBaseVNode("label", _hoisted_3$
|
|
23504
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
|
|
23460
23505
|
createBaseVNode("select", {
|
|
23461
23506
|
class: "lupa-select-dropdown",
|
|
23462
23507
|
"aria-label": label.value,
|
|
@@ -23471,7 +23516,7 @@ and ensure you are accounting for this risk.
|
|
|
23471
23516
|
value: option
|
|
23472
23517
|
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23473
23518
|
}), 128))
|
|
23474
|
-
], 40, _hoisted_4$
|
|
23519
|
+
], 40, _hoisted_4$d)
|
|
23475
23520
|
])
|
|
23476
23521
|
]);
|
|
23477
23522
|
};
|
|
@@ -23482,8 +23527,8 @@ and ensure you are accounting for this risk.
|
|
|
23482
23527
|
class: "lupa-search-results-sort"
|
|
23483
23528
|
};
|
|
23484
23529
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
23485
|
-
const _hoisted_3$
|
|
23486
|
-
const _hoisted_4$
|
|
23530
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23531
|
+
const _hoisted_4$c = ["aria-label"];
|
|
23487
23532
|
const _hoisted_5$8 = ["value"];
|
|
23488
23533
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23489
23534
|
__name: "SearchResultsSort",
|
|
@@ -23536,7 +23581,7 @@ and ensure you are accounting for this risk.
|
|
|
23536
23581
|
return (_ctx, _cache) => {
|
|
23537
23582
|
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23538
23583
|
createBaseVNode("div", _hoisted_2$q, [
|
|
23539
|
-
createBaseVNode("label", _hoisted_3$
|
|
23584
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
|
|
23540
23585
|
withDirectives(createBaseVNode("select", {
|
|
23541
23586
|
class: "lupa-select-dropdown",
|
|
23542
23587
|
"aria-label": _ctx.options.label,
|
|
@@ -23551,7 +23596,7 @@ and ensure you are accounting for this risk.
|
|
|
23551
23596
|
value: option.key
|
|
23552
23597
|
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23553
23598
|
}), 128))
|
|
23554
|
-
], 40, _hoisted_4$
|
|
23599
|
+
], 40, _hoisted_4$c), [
|
|
23555
23600
|
[vModelSelect, selectedKey.value]
|
|
23556
23601
|
])
|
|
23557
23602
|
])
|
|
@@ -23564,8 +23609,8 @@ and ensure you are accounting for this risk.
|
|
|
23564
23609
|
key: 0,
|
|
23565
23610
|
class: "lupa-toolbar-right-title"
|
|
23566
23611
|
};
|
|
23567
|
-
const _hoisted_3$
|
|
23568
|
-
const _hoisted_4$
|
|
23612
|
+
const _hoisted_3$i = { key: 2 };
|
|
23613
|
+
const _hoisted_4$b = { key: 4 };
|
|
23569
23614
|
const _hoisted_5$7 = { key: 6 };
|
|
23570
23615
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23571
23616
|
const _hoisted_7$3 = {
|
|
@@ -23590,7 +23635,7 @@ and ensure you are accounting for this risk.
|
|
|
23590
23635
|
const searchResultStore = useSearchResultStore();
|
|
23591
23636
|
const optionsStore = useOptionsStore();
|
|
23592
23637
|
const { page, limit } = storeToRefs(paramStore);
|
|
23593
|
-
const { hasAnyFilter, searchResult } = storeToRefs(searchResultStore);
|
|
23638
|
+
const { hasAnyFilter, searchResult, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
23594
23639
|
const { currentResolutionPageSizes } = storeToRefs(optionsStore);
|
|
23595
23640
|
const isBottomLocation = computed(() => {
|
|
23596
23641
|
return props.paginationLocation === "bottom";
|
|
@@ -23607,6 +23652,10 @@ and ensure you are accounting for this risk.
|
|
|
23607
23652
|
var _a;
|
|
23608
23653
|
return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.layoutSelector);
|
|
23609
23654
|
});
|
|
23655
|
+
const showFiltersCloseButton = computed(() => {
|
|
23656
|
+
var _a;
|
|
23657
|
+
return isBottomLocation.value ? false : Boolean((_a = optionsValue.value.toolbar) == null ? void 0 : _a.filtersCloseButton);
|
|
23658
|
+
});
|
|
23610
23659
|
const sortOptions = computed(() => {
|
|
23611
23660
|
var _a, _b;
|
|
23612
23661
|
if (isBottomLocation.value || !((_a = optionsValue.value.sort) == null ? void 0 : _a.length)) {
|
|
@@ -23683,13 +23732,13 @@ and ensure you are accounting for this risk.
|
|
|
23683
23732
|
}, [
|
|
23684
23733
|
createBaseVNode("div", _hoisted_1$w, [
|
|
23685
23734
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23686
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23687
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23735
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
|
|
23736
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
23688
23737
|
key: 3,
|
|
23689
23738
|
label: searchSummaryLabel.value,
|
|
23690
23739
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23691
23740
|
onClear: handleClearAll
|
|
23692
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23741
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
23693
23742
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
23694
23743
|
key: 5,
|
|
23695
23744
|
options: paginationOptions.value.pageSelect,
|
|
@@ -23699,7 +23748,7 @@ and ensure you are accounting for this risk.
|
|
|
23699
23748
|
]),
|
|
23700
23749
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23701
23750
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23702
|
-
createVNode(_sfc_main$
|
|
23751
|
+
createVNode(_sfc_main$G, {
|
|
23703
23752
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23704
23753
|
"show-filter-count": showMobileFilterCount.value
|
|
23705
23754
|
}, null, 8, ["label", "show-filter-count"]),
|
|
@@ -23712,7 +23761,11 @@ and ensure you are accounting for this risk.
|
|
|
23712
23761
|
key: 3,
|
|
23713
23762
|
options: sortOptions.value,
|
|
23714
23763
|
callbacks: callbacks.value
|
|
23715
|
-
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
|
|
23764
|
+
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
23765
|
+
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$F, {
|
|
23766
|
+
key: 5,
|
|
23767
|
+
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
23768
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
23716
23769
|
])
|
|
23717
23770
|
], 2);
|
|
23718
23771
|
};
|
|
@@ -23726,7 +23779,7 @@ and ensure you are accounting for this risk.
|
|
|
23726
23779
|
},
|
|
23727
23780
|
setup(__props) {
|
|
23728
23781
|
return (_ctx, _cache) => {
|
|
23729
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23782
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
23730
23783
|
item: _ctx.item,
|
|
23731
23784
|
options: _ctx.options,
|
|
23732
23785
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23737,8 +23790,8 @@ and ensure you are accounting for this risk.
|
|
|
23737
23790
|
});
|
|
23738
23791
|
const _hoisted_1$v = ["title", "innerHTML"];
|
|
23739
23792
|
const _hoisted_2$o = ["title"];
|
|
23740
|
-
const _hoisted_3$
|
|
23741
|
-
const _hoisted_4$
|
|
23793
|
+
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23794
|
+
const _hoisted_4$a = ["title"];
|
|
23742
23795
|
const _hoisted_5$6 = {
|
|
23743
23796
|
key: 0,
|
|
23744
23797
|
class: "lupa-search-results-product-title-text"
|
|
@@ -23792,7 +23845,7 @@ and ensure you are accounting for this risk.
|
|
|
23792
23845
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23793
23846
|
innerHTML: sanitizedTitle.value,
|
|
23794
23847
|
onClick: handleNavigation
|
|
23795
|
-
}, null, 8, _hoisted_3$
|
|
23848
|
+
}, null, 8, _hoisted_3$h)
|
|
23796
23849
|
], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
|
|
23797
23850
|
key: 2,
|
|
23798
23851
|
class: "lupa-search-results-product-title",
|
|
@@ -23806,7 +23859,7 @@ and ensure you are accounting for this risk.
|
|
|
23806
23859
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23807
23860
|
onClick: handleNavigation
|
|
23808
23861
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23809
|
-
], 12, _hoisted_4$
|
|
23862
|
+
], 12, _hoisted_4$a));
|
|
23810
23863
|
};
|
|
23811
23864
|
}
|
|
23812
23865
|
});
|
|
@@ -23848,8 +23901,8 @@ and ensure you are accounting for this risk.
|
|
|
23848
23901
|
});
|
|
23849
23902
|
const _hoisted_1$t = { id: "lupa-search-results-rating" };
|
|
23850
23903
|
const _hoisted_2$n = { class: "lupa-ratings" };
|
|
23851
|
-
const _hoisted_3$
|
|
23852
|
-
const _hoisted_4$
|
|
23904
|
+
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23905
|
+
const _hoisted_4$9 = ["innerHTML"];
|
|
23853
23906
|
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23854
23907
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23855
23908
|
const _hoisted_7$2 = ["href"];
|
|
@@ -23893,13 +23946,13 @@ and ensure you are accounting for this risk.
|
|
|
23893
23946
|
return (_ctx, _cache) => {
|
|
23894
23947
|
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
23895
23948
|
createBaseVNode("div", _hoisted_2$n, [
|
|
23896
|
-
createBaseVNode("div", _hoisted_3$
|
|
23949
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
23897
23950
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23898
23951
|
return openBlock(), createElementBlock("div", {
|
|
23899
23952
|
key: index,
|
|
23900
23953
|
innerHTML: star,
|
|
23901
23954
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23902
|
-
}, null, 8, _hoisted_4$
|
|
23955
|
+
}, null, 8, _hoisted_4$9);
|
|
23903
23956
|
}), 128))
|
|
23904
23957
|
]),
|
|
23905
23958
|
createBaseVNode("div", _hoisted_5$5, [
|
|
@@ -23983,7 +24036,7 @@ and ensure you are accounting for this risk.
|
|
|
23983
24036
|
});
|
|
23984
24037
|
const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23985
24038
|
const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
|
|
23986
|
-
const _hoisted_3$
|
|
24039
|
+
const _hoisted_3$f = ["id", "disabled", "onClick"];
|
|
23987
24040
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23988
24041
|
__name: "SearchResultsProductAddToCart",
|
|
23989
24042
|
props: {
|
|
@@ -24032,7 +24085,7 @@ and ensure you are accounting for this risk.
|
|
|
24032
24085
|
disabled: !inStockValue.value || loading.value
|
|
24033
24086
|
}, _ctx.dynamicAttributes, {
|
|
24034
24087
|
onClick: withModifiers(handleClick, ["stop"])
|
|
24035
|
-
}), toDisplayString(label.value), 17, _hoisted_3$
|
|
24088
|
+
}), toDisplayString(label.value), 17, _hoisted_3$f)
|
|
24036
24089
|
])
|
|
24037
24090
|
]);
|
|
24038
24091
|
};
|
|
@@ -24040,8 +24093,8 @@ and ensure you are accounting for this risk.
|
|
|
24040
24093
|
});
|
|
24041
24094
|
const _hoisted_1$q = ["innerHTML"];
|
|
24042
24095
|
const _hoisted_2$l = { key: 0 };
|
|
24043
|
-
const _hoisted_3$
|
|
24044
|
-
const _hoisted_4$
|
|
24096
|
+
const _hoisted_3$e = { key: 1 };
|
|
24097
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
24045
24098
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
24046
24099
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
24047
24100
|
__name: "SearchResultsProductCustom",
|
|
@@ -24085,8 +24138,8 @@ and ensure you are accounting for this risk.
|
|
|
24085
24138
|
key: 1,
|
|
24086
24139
|
class: className.value
|
|
24087
24140
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24088
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24089
|
-
createBaseVNode("div", _hoisted_4$
|
|
24141
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
24142
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
24090
24143
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
24091
24144
|
]))
|
|
24092
24145
|
], 16));
|
|
@@ -24131,8 +24184,8 @@ and ensure you are accounting for this risk.
|
|
|
24131
24184
|
});
|
|
24132
24185
|
const _hoisted_1$o = { id: "lupa-search-results-rating" };
|
|
24133
24186
|
const _hoisted_2$k = ["innerHTML"];
|
|
24134
|
-
const _hoisted_3$
|
|
24135
|
-
const _hoisted_4$
|
|
24187
|
+
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
24188
|
+
const _hoisted_4$7 = ["href"];
|
|
24136
24189
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
24137
24190
|
__name: "SearchResultsProductSingleStarRating",
|
|
24138
24191
|
props: {
|
|
@@ -24166,11 +24219,11 @@ and ensure you are accounting for this risk.
|
|
|
24166
24219
|
innerHTML: star.value,
|
|
24167
24220
|
class: "lupa-rating lupa-rating-highlighted"
|
|
24168
24221
|
}, null, 8, _hoisted_2$k),
|
|
24169
|
-
createBaseVNode("div", _hoisted_3$
|
|
24222
|
+
createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
|
|
24170
24223
|
createBaseVNode("a", {
|
|
24171
24224
|
href: ratingLink.value,
|
|
24172
24225
|
class: "lupa-total-ratings"
|
|
24173
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
24226
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
24174
24227
|
]);
|
|
24175
24228
|
};
|
|
24176
24229
|
}
|
|
@@ -24273,11 +24326,11 @@ and ensure you are accounting for this risk.
|
|
|
24273
24326
|
}));
|
|
24274
24327
|
const _hoisted_1$n = ["onMouseup"];
|
|
24275
24328
|
const _hoisted_2$j = ["href"];
|
|
24276
|
-
const _hoisted_3$
|
|
24329
|
+
const _hoisted_3$c = {
|
|
24277
24330
|
key: 0,
|
|
24278
24331
|
class: "lupa-out-of-stock"
|
|
24279
24332
|
};
|
|
24280
|
-
const _hoisted_4$
|
|
24333
|
+
const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
|
|
24281
24334
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24282
24335
|
__name: "SearchResultsProductCard",
|
|
24283
24336
|
props: {
|
|
@@ -24286,7 +24339,8 @@ and ensure you are accounting for this risk.
|
|
|
24286
24339
|
isAdditionalPanel: { type: Boolean },
|
|
24287
24340
|
clickTrackingSettings: {},
|
|
24288
24341
|
lupaClickTrackingType: {},
|
|
24289
|
-
sourceItemId: {}
|
|
24342
|
+
sourceItemId: {},
|
|
24343
|
+
analyticsMetadata: {}
|
|
24290
24344
|
},
|
|
24291
24345
|
setup(__props) {
|
|
24292
24346
|
const props = __props;
|
|
@@ -24397,7 +24451,8 @@ and ensure you are accounting for this risk.
|
|
|
24397
24451
|
},
|
|
24398
24452
|
options: { allowEmptySearchQuery: true },
|
|
24399
24453
|
filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0,
|
|
24400
|
-
sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0
|
|
24454
|
+
sourceItemId: props.lupaClickTrackingType === "recommendedItemClick" ? props.sourceItemId : void 0,
|
|
24455
|
+
metadata: props.analyticsMetadata
|
|
24401
24456
|
}
|
|
24402
24457
|
};
|
|
24403
24458
|
if (isDelayedClickTracking()) {
|
|
@@ -24441,7 +24496,7 @@ and ensure you are accounting for this risk.
|
|
|
24441
24496
|
onClick: handleClick,
|
|
24442
24497
|
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
24443
24498
|
}), [
|
|
24444
|
-
createVNode(_sfc_main$
|
|
24499
|
+
createVNode(_sfc_main$16, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24445
24500
|
createBaseVNode("div", {
|
|
24446
24501
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24447
24502
|
}, [
|
|
@@ -24462,14 +24517,14 @@ and ensure you are accounting for this risk.
|
|
|
24462
24517
|
onProductEvent: handleProductEvent
|
|
24463
24518
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24464
24519
|
}), 128)),
|
|
24465
|
-
createVNode(_sfc_main$
|
|
24520
|
+
createVNode(_sfc_main$16, {
|
|
24466
24521
|
options: badgesOptions.value,
|
|
24467
24522
|
position: "image",
|
|
24468
24523
|
class: "lupa-image-badges"
|
|
24469
24524
|
}, null, 8, ["options"]),
|
|
24470
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24525
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24471
24526
|
], 8, _hoisted_2$j),
|
|
24472
|
-
createBaseVNode("div", _hoisted_4$
|
|
24527
|
+
createBaseVNode("div", _hoisted_4$6, [
|
|
24473
24528
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24474
24529
|
return openBlock(), createBlock(_sfc_main$q, {
|
|
24475
24530
|
class: "lupa-search-results-product-element",
|
|
@@ -24512,11 +24567,11 @@ and ensure you are accounting for this risk.
|
|
|
24512
24567
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24513
24568
|
};
|
|
24514
24569
|
const _hoisted_2$i = { class: "lupa-similar-queries-label" };
|
|
24515
|
-
const _hoisted_3$
|
|
24570
|
+
const _hoisted_3$b = {
|
|
24516
24571
|
class: "lupa-similar-query-label",
|
|
24517
24572
|
"data-cy": "lupa-similar-query-label"
|
|
24518
24573
|
};
|
|
24519
|
-
const _hoisted_4$
|
|
24574
|
+
const _hoisted_4$5 = ["onClick"];
|
|
24520
24575
|
const _hoisted_5$3 = ["innerHTML"];
|
|
24521
24576
|
const _hoisted_6$2 = { key: 0 };
|
|
24522
24577
|
const _hoisted_7$1 = {
|
|
@@ -24552,12 +24607,20 @@ and ensure you are accounting for this risk.
|
|
|
24552
24607
|
}) => {
|
|
24553
24608
|
paramsStore.goToResults({ searchText, facet });
|
|
24554
24609
|
};
|
|
24610
|
+
const getClickMetadata = (similarQuery) => {
|
|
24611
|
+
var _a;
|
|
24612
|
+
const isRegularSimilarQuery = (_a = similarQuery.displayQuery) == null ? void 0 : _a.includes("<del>");
|
|
24613
|
+
return {
|
|
24614
|
+
_lupaEventSource: isRegularSimilarQuery ? "similarQueries" : "similarQueriesAI",
|
|
24615
|
+
_lupaUpdatedQuery: similarQuery.query
|
|
24616
|
+
};
|
|
24617
|
+
};
|
|
24555
24618
|
return (_ctx, _cache) => {
|
|
24556
24619
|
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
24557
24620
|
createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24558
24621
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24559
24622
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24560
|
-
createBaseVNode("div", _hoisted_3$
|
|
24623
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24561
24624
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24562
24625
|
createBaseVNode("span", {
|
|
24563
24626
|
id: "lupa-similar-query-text-component",
|
|
@@ -24569,7 +24632,7 @@ and ensure you are accounting for this risk.
|
|
|
24569
24632
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24570
24633
|
}, null, 8, _hoisted_5$3),
|
|
24571
24634
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24572
|
-
], 8, _hoisted_4$
|
|
24635
|
+
], 8, _hoisted_4$5)
|
|
24573
24636
|
]),
|
|
24574
24637
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24575
24638
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
@@ -24577,8 +24640,9 @@ and ensure you are accounting for this risk.
|
|
|
24577
24640
|
style: normalizeStyle(_ctx.columnSize),
|
|
24578
24641
|
key: getDocumentKey(index2, product),
|
|
24579
24642
|
product,
|
|
24580
|
-
options: _ctx.productCardOptions
|
|
24581
|
-
|
|
24643
|
+
options: _ctx.productCardOptions,
|
|
24644
|
+
"analytics-metadata": getClickMetadata(similarQuery)
|
|
24645
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
24582
24646
|
}), 128))
|
|
24583
24647
|
])
|
|
24584
24648
|
]);
|
|
@@ -24747,7 +24811,7 @@ and ensure you are accounting for this risk.
|
|
|
24747
24811
|
"data-cy": "lupa-search-results-similar-results"
|
|
24748
24812
|
};
|
|
24749
24813
|
const _hoisted_2$f = { class: "lupa-similar-results-label" };
|
|
24750
|
-
const _hoisted_3$
|
|
24814
|
+
const _hoisted_3$a = {
|
|
24751
24815
|
class: "lupa-products",
|
|
24752
24816
|
"data-cy": "lupa-products"
|
|
24753
24817
|
};
|
|
@@ -24766,17 +24830,23 @@ and ensure you are accounting for this risk.
|
|
|
24766
24830
|
const getDocumentKey = (index, product) => {
|
|
24767
24831
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24768
24832
|
};
|
|
24833
|
+
const clickMetadata = computed(() => {
|
|
24834
|
+
return {
|
|
24835
|
+
_lupaEventSource: "similarResults"
|
|
24836
|
+
};
|
|
24837
|
+
});
|
|
24769
24838
|
return (_ctx, _cache) => {
|
|
24770
24839
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24771
24840
|
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24772
|
-
createBaseVNode("div", _hoisted_3$
|
|
24841
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24773
24842
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24774
24843
|
return openBlock(), createBlock(_sfc_main$p, {
|
|
24775
24844
|
style: normalizeStyle(_ctx.columnSize),
|
|
24776
24845
|
key: getDocumentKey(index, product),
|
|
24777
24846
|
product,
|
|
24778
|
-
options: _ctx.productCardOptions
|
|
24779
|
-
|
|
24847
|
+
options: _ctx.productCardOptions,
|
|
24848
|
+
"analytics-metadata": clickMetadata.value
|
|
24849
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
24780
24850
|
}), 128))
|
|
24781
24851
|
])
|
|
24782
24852
|
]);
|
|
@@ -24887,8 +24957,8 @@ and ensure you are accounting for this risk.
|
|
|
24887
24957
|
});
|
|
24888
24958
|
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
24889
24959
|
const _hoisted_2$e = { class: "lupa-related-query-image" };
|
|
24890
|
-
const _hoisted_3$
|
|
24891
|
-
const _hoisted_4$
|
|
24960
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
24961
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
24892
24962
|
const _hoisted_5$2 = {
|
|
24893
24963
|
key: 0,
|
|
24894
24964
|
class: "lupa-related-query-count"
|
|
@@ -24986,7 +25056,7 @@ and ensure you are accounting for this risk.
|
|
|
24986
25056
|
var _a;
|
|
24987
25057
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24988
25058
|
createBaseVNode("div", _hoisted_2$e, [
|
|
24989
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
25059
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1m, {
|
|
24990
25060
|
key: 0,
|
|
24991
25061
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24992
25062
|
"image-class": "lupa-related-query-image",
|
|
@@ -24994,8 +25064,8 @@ and ensure you are accounting for this risk.
|
|
|
24994
25064
|
options: image.value
|
|
24995
25065
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24996
25066
|
]),
|
|
24997
|
-
createBaseVNode("div", _hoisted_3$
|
|
24998
|
-
createBaseVNode("span", _hoisted_4$
|
|
25067
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
25068
|
+
createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
|
|
24999
25069
|
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
25000
25070
|
])
|
|
25001
25071
|
]);
|
|
@@ -25010,7 +25080,7 @@ and ensure you are accounting for this risk.
|
|
|
25010
25080
|
key: 0,
|
|
25011
25081
|
class: "lupa-related-queries-title"
|
|
25012
25082
|
};
|
|
25013
|
-
const _hoisted_3$
|
|
25083
|
+
const _hoisted_3$8 = ["onClick"];
|
|
25014
25084
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
25015
25085
|
__name: "RelatedQueries",
|
|
25016
25086
|
props: {
|
|
@@ -25115,7 +25185,7 @@ and ensure you are accounting for this risk.
|
|
|
25115
25185
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
25116
25186
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
25117
25187
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
25118
|
-
], 8, _hoisted_3$
|
|
25188
|
+
], 8, _hoisted_3$8)
|
|
25119
25189
|
], 2)), [
|
|
25120
25190
|
[vShow, querySourceResultMap.value[query.value] !== false]
|
|
25121
25191
|
]);
|
|
@@ -25157,7 +25227,7 @@ and ensure you are accounting for this risk.
|
|
|
25157
25227
|
class: "lupa-redirection-suggestion"
|
|
25158
25228
|
};
|
|
25159
25229
|
const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
|
|
25160
|
-
const _hoisted_3$
|
|
25230
|
+
const _hoisted_3$7 = ["href"];
|
|
25161
25231
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
25162
25232
|
__name: "RedirectionSuggestions",
|
|
25163
25233
|
props: {
|
|
@@ -25183,7 +25253,7 @@ and ensure you are accounting for this risk.
|
|
|
25183
25253
|
return (_ctx, _cache) => {
|
|
25184
25254
|
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
25185
25255
|
createBaseVNode("h4", _hoisted_2$c, [
|
|
25186
|
-
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$
|
|
25256
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
|
|
25187
25257
|
])
|
|
25188
25258
|
])) : createCommentVNode("", true);
|
|
25189
25259
|
};
|
|
@@ -25194,12 +25264,12 @@ and ensure you are accounting for this risk.
|
|
|
25194
25264
|
class: "lupa-products",
|
|
25195
25265
|
"data-cy": "lupa-products"
|
|
25196
25266
|
};
|
|
25197
|
-
const _hoisted_3$
|
|
25267
|
+
const _hoisted_3$6 = {
|
|
25198
25268
|
key: 1,
|
|
25199
25269
|
class: "lupa-empty-results",
|
|
25200
25270
|
"data-cy": "lupa-no-results-in-page"
|
|
25201
25271
|
};
|
|
25202
|
-
const _hoisted_4$
|
|
25272
|
+
const _hoisted_4$3 = {
|
|
25203
25273
|
key: 4,
|
|
25204
25274
|
class: "lupa-empty-results",
|
|
25205
25275
|
"data-cy": "lupa-no-results"
|
|
@@ -25300,6 +25370,13 @@ and ensure you are accounting for this risk.
|
|
|
25300
25370
|
var _a, _b;
|
|
25301
25371
|
return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
|
|
25302
25372
|
});
|
|
25373
|
+
const clickMetadata = computed(() => {
|
|
25374
|
+
const hasDidYouMean = Boolean(searchResult.value.suggestedSearchText);
|
|
25375
|
+
return hasDidYouMean ? {
|
|
25376
|
+
_lupaEventSource: "didYouMean",
|
|
25377
|
+
_lupaUpdatedQuery: searchResult.value.suggestedSearchText
|
|
25378
|
+
} : void 0;
|
|
25379
|
+
});
|
|
25303
25380
|
const getProductKeyAction = (index, product) => {
|
|
25304
25381
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
25305
25382
|
};
|
|
@@ -25331,7 +25408,7 @@ and ensure you are accounting for this risk.
|
|
|
25331
25408
|
options: _ctx.options.relatedQueries
|
|
25332
25409
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25333
25410
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
25334
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
25411
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
25335
25412
|
key: 0,
|
|
25336
25413
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
25337
25414
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
@@ -25342,7 +25419,7 @@ and ensure you are accounting for this risk.
|
|
|
25342
25419
|
"pagination-location": "top",
|
|
25343
25420
|
onFilter: filter2
|
|
25344
25421
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25345
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25422
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$W, {
|
|
25346
25423
|
key: 2,
|
|
25347
25424
|
class: normalizeClass(currentFiltersClass.value),
|
|
25348
25425
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -25356,7 +25433,7 @@ and ensure you are accounting for this risk.
|
|
|
25356
25433
|
options: _ctx.options,
|
|
25357
25434
|
"pagination-location": "top"
|
|
25358
25435
|
}, null, 8, ["options"]),
|
|
25359
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25436
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$W, {
|
|
25360
25437
|
key: 0,
|
|
25361
25438
|
class: normalizeClass(currentFiltersClass.value),
|
|
25362
25439
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -25376,11 +25453,12 @@ and ensure you are accounting for this risk.
|
|
|
25376
25453
|
style: normalizeStyle(columnSize.value),
|
|
25377
25454
|
key: getProductKeyAction(index, product),
|
|
25378
25455
|
product,
|
|
25379
|
-
options: productCardOptions.value
|
|
25380
|
-
|
|
25456
|
+
options: productCardOptions.value,
|
|
25457
|
+
"analytics-metadata": clickMetadata.value
|
|
25458
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
25381
25459
|
}), 128))
|
|
25382
25460
|
]),
|
|
25383
|
-
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25461
|
+
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
25384
25462
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
25385
25463
|
_ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
|
|
25386
25464
|
key: 0,
|
|
@@ -25398,7 +25476,7 @@ and ensure you are accounting for this risk.
|
|
|
25398
25476
|
location: "bottom",
|
|
25399
25477
|
sdkOptions: _ctx.options.options
|
|
25400
25478
|
}, null, 8, ["options", "sdkOptions"])
|
|
25401
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25479
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
25402
25480
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
25403
25481
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
25404
25482
|
])) : createCommentVNode("", true),
|
|
@@ -25426,8 +25504,8 @@ and ensure you are accounting for this risk.
|
|
|
25426
25504
|
key: 0,
|
|
25427
25505
|
class: "lupa-category-back"
|
|
25428
25506
|
};
|
|
25429
|
-
const _hoisted_3$
|
|
25430
|
-
const _hoisted_4$
|
|
25507
|
+
const _hoisted_3$5 = ["href"];
|
|
25508
|
+
const _hoisted_4$2 = {
|
|
25431
25509
|
key: 1,
|
|
25432
25510
|
class: "lupa-child-category-list"
|
|
25433
25511
|
};
|
|
@@ -25485,11 +25563,11 @@ and ensure you are accounting for this risk.
|
|
|
25485
25563
|
"data-cy": "lupa-category-back",
|
|
25486
25564
|
href: backUrlLink.value,
|
|
25487
25565
|
onClick: handleNavigationBack
|
|
25488
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
25566
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$5)
|
|
25489
25567
|
])) : createCommentVNode("", true),
|
|
25490
|
-
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25568
|
+
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
25491
25569
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
25492
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25570
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
25493
25571
|
key: getCategoryKey(child),
|
|
25494
25572
|
item: child,
|
|
25495
25573
|
options: categoryOptions.value
|
|
@@ -25510,13 +25588,7 @@ and ensure you are accounting for this risk.
|
|
|
25510
25588
|
key: 0,
|
|
25511
25589
|
class: "lupa-container-title-summary-mobile"
|
|
25512
25590
|
};
|
|
25513
|
-
const _hoisted_2$9 = {
|
|
25514
|
-
key: 4,
|
|
25515
|
-
id: "lupa-search-results",
|
|
25516
|
-
class: "top-layout-wrapper"
|
|
25517
|
-
};
|
|
25518
|
-
const _hoisted_3$5 = { class: "search-content" };
|
|
25519
|
-
const _hoisted_4$2 = { id: "lupa-search-results" };
|
|
25591
|
+
const _hoisted_2$9 = { class: "search-content" };
|
|
25520
25592
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
25521
25593
|
__name: "SearchResults",
|
|
25522
25594
|
props: {
|
|
@@ -25542,7 +25614,7 @@ and ensure you are accounting for this risk.
|
|
|
25542
25614
|
var _a, _b;
|
|
25543
25615
|
return (_b = (_a = props.initialFilters) != null ? _a : extractedInitialFilters.value) != null ? _b : {};
|
|
25544
25616
|
});
|
|
25545
|
-
const { currentQueryText, hasResults, currentFilterCount } = storeToRefs(searchResultStore);
|
|
25617
|
+
const { currentQueryText, hasResults, currentFilterCount, isMobileSidebarVisible, layout } = storeToRefs(searchResultStore);
|
|
25546
25618
|
const { searchString, sortParams } = storeToRefs(paramStore);
|
|
25547
25619
|
const { defaultSearchResultPageSize } = storeToRefs(optionStore);
|
|
25548
25620
|
const searchResultsFilters = ref(null);
|
|
@@ -25558,6 +25630,13 @@ and ensure you are accounting for this risk.
|
|
|
25558
25630
|
const isTitleResultTopPosition = computed(() => {
|
|
25559
25631
|
return props.options.searchTitlePosition === "search-results-top";
|
|
25560
25632
|
});
|
|
25633
|
+
const indicatorClasses = computed(() => {
|
|
25634
|
+
return {
|
|
25635
|
+
"lupa-mobile-sidebar-visible": isMobileSidebarVisible.value,
|
|
25636
|
+
"lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
|
|
25637
|
+
"lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
|
|
25638
|
+
};
|
|
25639
|
+
});
|
|
25561
25640
|
const handlePopState = () => {
|
|
25562
25641
|
var _a;
|
|
25563
25642
|
const searchParams = getSearchParams((_a = props.options.ssr) == null ? void 0 : _a.url);
|
|
@@ -25731,8 +25810,8 @@ and ensure you are accounting for this risk.
|
|
|
25731
25810
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
25732
25811
|
}, [
|
|
25733
25812
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
25734
|
-
createVNode(_sfc_main$
|
|
25735
|
-
createVNode(_sfc_main$
|
|
25813
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25814
|
+
createVNode(_sfc_main$Y, {
|
|
25736
25815
|
"show-summary": true,
|
|
25737
25816
|
options: _ctx.options,
|
|
25738
25817
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -25742,26 +25821,30 @@ and ensure you are accounting for this risk.
|
|
|
25742
25821
|
key: 1,
|
|
25743
25822
|
options: _ctx.options
|
|
25744
25823
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25745
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25824
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25746
25825
|
key: 2,
|
|
25747
25826
|
options: _ctx.options.filters,
|
|
25748
25827
|
onFilter: handleParamsChange
|
|
25749
25828
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25750
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25829
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25751
25830
|
key: 3,
|
|
25752
25831
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
25753
25832
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
25754
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div",
|
|
25755
|
-
|
|
25833
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
|
|
25834
|
+
key: 4,
|
|
25835
|
+
id: "lupa-search-results",
|
|
25836
|
+
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
25837
|
+
}, [
|
|
25838
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
25756
25839
|
key: 0,
|
|
25757
25840
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
25758
25841
|
ref_key: "searchResultsFilters",
|
|
25759
25842
|
ref: searchResultsFilters,
|
|
25760
25843
|
onFilter: handleParamsChange
|
|
25761
25844
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25762
|
-
createBaseVNode("div",
|
|
25763
|
-
createVNode(_sfc_main$
|
|
25764
|
-
createVNode(_sfc_main$
|
|
25845
|
+
createBaseVNode("div", _hoisted_2$9, [
|
|
25846
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25847
|
+
createVNode(_sfc_main$Y, {
|
|
25765
25848
|
options: _ctx.options,
|
|
25766
25849
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25767
25850
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25776,14 +25859,17 @@ and ensure you are accounting for this risk.
|
|
|
25776
25859
|
_: 3
|
|
25777
25860
|
}, 8, ["options", "ssr"])
|
|
25778
25861
|
])
|
|
25779
|
-
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25780
|
-
createVNode(_sfc_main$
|
|
25781
|
-
createVNode(_sfc_main$
|
|
25862
|
+
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25863
|
+
createVNode(_sfc_main$_, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25864
|
+
createVNode(_sfc_main$Y, {
|
|
25782
25865
|
options: _ctx.options,
|
|
25783
25866
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25784
25867
|
}, null, 8, ["options", "is-product-list"]),
|
|
25785
|
-
createBaseVNode("div",
|
|
25786
|
-
|
|
25868
|
+
createBaseVNode("div", {
|
|
25869
|
+
id: "lupa-search-results",
|
|
25870
|
+
class: normalizeClass(indicatorClasses.value)
|
|
25871
|
+
}, [
|
|
25872
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
25787
25873
|
key: 0,
|
|
25788
25874
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25789
25875
|
ref_key: "searchResultsFilters",
|
|
@@ -25808,7 +25894,7 @@ and ensure you are accounting for this risk.
|
|
|
25808
25894
|
key: "0"
|
|
25809
25895
|
} : void 0
|
|
25810
25896
|
]), 1032, ["options", "ssr"])
|
|
25811
|
-
])
|
|
25897
|
+
], 2)
|
|
25812
25898
|
], 64))
|
|
25813
25899
|
], 2);
|
|
25814
25900
|
};
|
|
@@ -31417,7 +31503,7 @@ and ensure you are accounting for this risk.
|
|
|
31417
31503
|
onClick: withModifiers(innerClick, ["stop"])
|
|
31418
31504
|
}, [
|
|
31419
31505
|
createBaseVNode("div", _hoisted_2$7, [
|
|
31420
|
-
createVNode(_sfc_main
|
|
31506
|
+
createVNode(_sfc_main$$, {
|
|
31421
31507
|
options: fullSearchBoxOptions.value,
|
|
31422
31508
|
"is-search-container": true,
|
|
31423
31509
|
ref_key: "searchBox",
|
|
@@ -32947,7 +33033,7 @@ and ensure you are accounting for this risk.
|
|
|
32947
33033
|
key: 0,
|
|
32948
33034
|
class: "lupasearch-chat-content"
|
|
32949
33035
|
};
|
|
32950
|
-
const _sfc_main$
|
|
33036
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
32951
33037
|
__name: "ChatContainer",
|
|
32952
33038
|
props: {
|
|
32953
33039
|
options: {}
|
|
@@ -38965,7 +39051,7 @@ and ensure you are accounting for this risk.
|
|
|
38965
39051
|
};
|
|
38966
39052
|
__expose({ fetch: fetch2 });
|
|
38967
39053
|
return (_ctx, _cache) => {
|
|
38968
|
-
return openBlock(), createBlock(unref(_sfc_main
|
|
39054
|
+
return openBlock(), createBlock(unref(_sfc_main$$), {
|
|
38969
39055
|
options: fullSearchBoxOptions.value,
|
|
38970
39056
|
ref_key: "searchBox",
|
|
38971
39057
|
ref: searchBox2
|
|
@@ -39520,7 +39606,7 @@ and ensure you are accounting for this risk.
|
|
|
39520
39606
|
const instance = createVue(
|
|
39521
39607
|
options.displayOptions.containerSelector,
|
|
39522
39608
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
39523
|
-
_sfc_main$
|
|
39609
|
+
_sfc_main$1v,
|
|
39524
39610
|
{
|
|
39525
39611
|
options
|
|
39526
39612
|
}
|