@getlupa/client 1.14.6 → 1.14.9
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 +793 -542
- package/dist/lupaSearch.js +793 -542
- package/dist/lupaSearch.mjs +793 -542
- package/dist/lupaSearch.umd.js +793 -542
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -7653,12 +7653,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7653
7653
|
return SearchBoxPanelType2;
|
|
7654
7654
|
})(SearchBoxPanelType || {});
|
|
7655
7655
|
var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
|
|
7656
|
-
BadgeType2["DISCOUNTPERCENTAGE"] = "discountPercentage";
|
|
7657
|
-
BadgeType2["DISCOUNTAMOUNT"] = "discountAmount";
|
|
7658
7656
|
BadgeType2["NEWITEM"] = "newItem";
|
|
7659
7657
|
BadgeType2["TEXT"] = "text";
|
|
7660
7658
|
BadgeType2["IMAGE"] = "image";
|
|
7661
7659
|
BadgeType2["CUSTOM_HTML"] = "customHtml";
|
|
7660
|
+
BadgeType2["DISCOUNT"] = "discount";
|
|
7662
7661
|
return BadgeType2;
|
|
7663
7662
|
})(BadgeType || {});
|
|
7664
7663
|
const retrieveHistory = () => {
|
|
@@ -8598,11 +8597,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8598
8597
|
resetHighlightIndex
|
|
8599
8598
|
};
|
|
8600
8599
|
});
|
|
8601
|
-
const _hoisted_1$
|
|
8602
|
-
const _hoisted_2$
|
|
8603
|
-
const _hoisted_3$
|
|
8604
|
-
const _hoisted_4$
|
|
8605
|
-
const _hoisted_5$
|
|
8600
|
+
const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
|
|
8601
|
+
const _hoisted_2$U = { class: "lupa-input-clear" };
|
|
8602
|
+
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
8603
|
+
const _hoisted_4$t = ["value"];
|
|
8604
|
+
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8606
8605
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8607
8606
|
const _hoisted_7$7 = [
|
|
8608
8607
|
_hoisted_6$9
|
|
@@ -8611,7 +8610,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8611
8610
|
key: 0,
|
|
8612
8611
|
class: "lupa-close-label"
|
|
8613
8612
|
};
|
|
8614
|
-
const _sfc_main$
|
|
8613
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
8615
8614
|
__name: "SearchBoxInput",
|
|
8616
8615
|
props: {
|
|
8617
8616
|
options: {},
|
|
@@ -8695,20 +8694,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8695
8694
|
};
|
|
8696
8695
|
__expose({ focus });
|
|
8697
8696
|
return (_ctx, _cache) => {
|
|
8698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8699
|
-
createBaseVNode("div", _hoisted_2$
|
|
8697
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
8698
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
8700
8699
|
createBaseVNode("div", {
|
|
8701
8700
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
8702
8701
|
onClick: clear2
|
|
8703
8702
|
}, null, 2)
|
|
8704
8703
|
]),
|
|
8705
|
-
createBaseVNode("div", _hoisted_3$
|
|
8704
|
+
createBaseVNode("div", _hoisted_3$D, [
|
|
8706
8705
|
createBaseVNode("input", {
|
|
8707
8706
|
class: "lupa-hint",
|
|
8708
8707
|
"aria-hidden": "true",
|
|
8709
8708
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8710
8709
|
disabled: ""
|
|
8711
|
-
}, null, 8, _hoisted_4$
|
|
8710
|
+
}, null, 8, _hoisted_4$t),
|
|
8712
8711
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8713
8712
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8714
8713
|
}, inputAttributes.value, {
|
|
@@ -8722,7 +8721,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8722
8721
|
placeholder: labels.value.placeholder,
|
|
8723
8722
|
onInput: handleInput,
|
|
8724
8723
|
onFocus: handleFocus
|
|
8725
|
-
}), null, 16, _hoisted_5$
|
|
8724
|
+
}), null, 16, _hoisted_5$j), [
|
|
8726
8725
|
[vModelText, inputValue.value]
|
|
8727
8726
|
]),
|
|
8728
8727
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8741,7 +8740,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8741
8740
|
};
|
|
8742
8741
|
}
|
|
8743
8742
|
});
|
|
8744
|
-
const _sfc_main$
|
|
8743
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8745
8744
|
__name: "SearchBoxMoreResults",
|
|
8746
8745
|
props: {
|
|
8747
8746
|
labels: {},
|
|
@@ -8773,9 +8772,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8773
8772
|
};
|
|
8774
8773
|
}
|
|
8775
8774
|
});
|
|
8776
|
-
const _hoisted_1$
|
|
8777
|
-
const _hoisted_2$
|
|
8778
|
-
const _sfc_main$
|
|
8775
|
+
const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
|
|
8776
|
+
const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
|
|
8777
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8779
8778
|
__name: "SearchBoxHistoryItem",
|
|
8780
8779
|
props: {
|
|
8781
8780
|
item: {},
|
|
@@ -8791,8 +8790,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8791
8790
|
emit2("click", { query: props.item });
|
|
8792
8791
|
};
|
|
8793
8792
|
return (_ctx, _cache) => {
|
|
8794
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8795
|
-
createBaseVNode("div", _hoisted_2$
|
|
8793
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8794
|
+
createBaseVNode("div", _hoisted_2$T, [
|
|
8796
8795
|
createBaseVNode("div", {
|
|
8797
8796
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
8798
8797
|
onClick: click2
|
|
@@ -8806,11 +8805,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8806
8805
|
};
|
|
8807
8806
|
}
|
|
8808
8807
|
});
|
|
8809
|
-
const _hoisted_1$
|
|
8808
|
+
const _hoisted_1$1e = {
|
|
8810
8809
|
key: 0,
|
|
8811
8810
|
class: "lupa-search-box-history-panel"
|
|
8812
8811
|
};
|
|
8813
|
-
const _sfc_main$
|
|
8812
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8814
8813
|
__name: "SearchBoxHistoryPanel",
|
|
8815
8814
|
props: {
|
|
8816
8815
|
options: {}
|
|
@@ -8851,9 +8850,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8851
8850
|
}
|
|
8852
8851
|
};
|
|
8853
8852
|
return (_ctx, _cache) => {
|
|
8854
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8853
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
8855
8854
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8856
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8855
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
8857
8856
|
key: item,
|
|
8858
8857
|
item,
|
|
8859
8858
|
highlighted: index === highlightIndex.value,
|
|
@@ -8869,15 +8868,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8869
8868
|
};
|
|
8870
8869
|
}
|
|
8871
8870
|
});
|
|
8872
|
-
const _hoisted_1$
|
|
8873
|
-
const _sfc_main$
|
|
8871
|
+
const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
|
|
8872
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8874
8873
|
__name: "SearchBoxNoResults",
|
|
8875
8874
|
props: {
|
|
8876
8875
|
labels: {}
|
|
8877
8876
|
},
|
|
8878
8877
|
setup(__props) {
|
|
8879
8878
|
return (_ctx, _cache) => {
|
|
8880
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8879
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
|
|
8881
8880
|
};
|
|
8882
8881
|
}
|
|
8883
8882
|
});
|
|
@@ -8909,26 +8908,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8909
8908
|
}
|
|
8910
8909
|
return gridTemplate.join(" ");
|
|
8911
8910
|
};
|
|
8912
|
-
const _hoisted_1$
|
|
8913
|
-
const _hoisted_2$
|
|
8911
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
8912
|
+
const _hoisted_2$S = {
|
|
8914
8913
|
key: 1,
|
|
8915
8914
|
"data-cy": "lupa-suggestion-value",
|
|
8916
8915
|
class: "lupa-suggestion-value"
|
|
8917
8916
|
};
|
|
8918
|
-
const _hoisted_3$
|
|
8917
|
+
const _hoisted_3$C = {
|
|
8919
8918
|
key: 2,
|
|
8920
8919
|
class: "lupa-suggestion-facet",
|
|
8921
8920
|
"data-cy": "lupa-suggestion-facet"
|
|
8922
8921
|
};
|
|
8923
|
-
const _hoisted_4$
|
|
8922
|
+
const _hoisted_4$s = {
|
|
8924
8923
|
class: "lupa-suggestion-facet-label",
|
|
8925
8924
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8926
8925
|
};
|
|
8927
|
-
const _hoisted_5$
|
|
8926
|
+
const _hoisted_5$i = {
|
|
8928
8927
|
class: "lupa-suggestion-facet-value",
|
|
8929
8928
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8930
8929
|
};
|
|
8931
|
-
const _sfc_main$
|
|
8930
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
8932
8931
|
__name: "SearchBoxSuggestion",
|
|
8933
8932
|
props: {
|
|
8934
8933
|
suggestion: {},
|
|
@@ -8964,20 +8963,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8964
8963
|
class: "lupa-suggestion-value",
|
|
8965
8964
|
"data-cy": "lupa-suggestion-value",
|
|
8966
8965
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8967
|
-
}, null, 8, _hoisted_1$
|
|
8968
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8969
|
-
createBaseVNode("span", _hoisted_4$
|
|
8970
|
-
createBaseVNode("span", _hoisted_5$
|
|
8966
|
+
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8967
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
8968
|
+
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8969
|
+
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8971
8970
|
])) : createCommentVNode("", true)
|
|
8972
8971
|
]);
|
|
8973
8972
|
};
|
|
8974
8973
|
}
|
|
8975
8974
|
});
|
|
8976
|
-
const _hoisted_1$
|
|
8975
|
+
const _hoisted_1$1b = {
|
|
8977
8976
|
id: "lupa-search-box-suggestions",
|
|
8978
8977
|
"data-cy": "lupa-search-box-suggestions"
|
|
8979
8978
|
};
|
|
8980
|
-
const _sfc_main$
|
|
8979
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
8981
8980
|
__name: "SearchBoxSuggestions",
|
|
8982
8981
|
props: {
|
|
8983
8982
|
items: {},
|
|
@@ -9037,9 +9036,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9037
9036
|
});
|
|
9038
9037
|
});
|
|
9039
9038
|
return (_ctx, _cache) => {
|
|
9040
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9039
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
9041
9040
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9042
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9041
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
9043
9042
|
key: getSuggestionKey(item),
|
|
9044
9043
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9045
9044
|
suggestion: item,
|
|
@@ -9067,7 +9066,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9067
9066
|
}, timeout);
|
|
9068
9067
|
};
|
|
9069
9068
|
};
|
|
9070
|
-
const _sfc_main$
|
|
9069
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
9071
9070
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9072
9071
|
props: {
|
|
9073
9072
|
panel: {},
|
|
@@ -9109,7 +9108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9109
9108
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9110
9109
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9111
9110
|
return (_ctx, _cache) => {
|
|
9112
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9111
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
9113
9112
|
items: searchResult.value,
|
|
9114
9113
|
highlight: _ctx.panel.highlight,
|
|
9115
9114
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18108,9 +18107,13 @@ and ensure you are accounting for this risk.
|
|
|
18108
18107
|
const getFieldValue = (doc2, field = "") => {
|
|
18109
18108
|
var _a;
|
|
18110
18109
|
if (typeof field === "number") {
|
|
18111
|
-
return field;
|
|
18110
|
+
return +field;
|
|
18112
18111
|
}
|
|
18113
|
-
|
|
18112
|
+
const value = (_a = field == null ? void 0 : field.split(".")) == null ? void 0 : _a.reduce((obj, key) => obj ? obj[key] : void 0, doc2);
|
|
18113
|
+
if (+value) {
|
|
18114
|
+
return +value;
|
|
18115
|
+
}
|
|
18116
|
+
return value;
|
|
18114
18117
|
};
|
|
18115
18118
|
const processDisplayCondition = (displayCondition, doc2 = {}) => {
|
|
18116
18119
|
const { condition, fields } = displayCondition;
|
|
@@ -18183,9 +18186,9 @@ and ensure you are accounting for this risk.
|
|
|
18183
18186
|
targetImage.src = placeholder;
|
|
18184
18187
|
}
|
|
18185
18188
|
};
|
|
18186
|
-
const _hoisted_1$
|
|
18187
|
-
const _hoisted_2$
|
|
18188
|
-
const _sfc_main$
|
|
18189
|
+
const _hoisted_1$1a = ["src"];
|
|
18190
|
+
const _hoisted_2$R = ["src"];
|
|
18191
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
18189
18192
|
__name: "ProductImage",
|
|
18190
18193
|
props: {
|
|
18191
18194
|
item: {},
|
|
@@ -18327,7 +18330,7 @@ and ensure you are accounting for this risk.
|
|
|
18327
18330
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18328
18331
|
onError: replaceWithPlaceholder,
|
|
18329
18332
|
key: finalUrl.value
|
|
18330
|
-
}), null, 16, _hoisted_1$
|
|
18333
|
+
}), null, 16, _hoisted_1$1a))
|
|
18331
18334
|
]),
|
|
18332
18335
|
_: 1
|
|
18333
18336
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18335,12 +18338,12 @@ and ensure you are accounting for this risk.
|
|
|
18335
18338
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
18336
18339
|
style: styleOverride.value,
|
|
18337
18340
|
src: finalMainImageUrl.value
|
|
18338
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
18341
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
|
|
18339
18342
|
], 38);
|
|
18340
18343
|
};
|
|
18341
18344
|
}
|
|
18342
18345
|
});
|
|
18343
|
-
const _sfc_main$
|
|
18346
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18344
18347
|
__name: "SearchBoxProductImage",
|
|
18345
18348
|
props: {
|
|
18346
18349
|
item: {},
|
|
@@ -18348,7 +18351,7 @@ and ensure you are accounting for this risk.
|
|
|
18348
18351
|
},
|
|
18349
18352
|
setup(__props) {
|
|
18350
18353
|
return (_ctx, _cache) => {
|
|
18351
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18354
|
+
return openBlock(), createBlock(_sfc_main$1k, {
|
|
18352
18355
|
item: _ctx.item,
|
|
18353
18356
|
options: _ctx.options,
|
|
18354
18357
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18357,12 +18360,12 @@ and ensure you are accounting for this risk.
|
|
|
18357
18360
|
};
|
|
18358
18361
|
}
|
|
18359
18362
|
});
|
|
18360
|
-
const _hoisted_1$
|
|
18361
|
-
const _hoisted_2$
|
|
18363
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
18364
|
+
const _hoisted_2$Q = {
|
|
18362
18365
|
key: 1,
|
|
18363
18366
|
class: "lupa-search-box-product-title"
|
|
18364
18367
|
};
|
|
18365
|
-
const _sfc_main$
|
|
18368
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18366
18369
|
__name: "SearchBoxProductTitle",
|
|
18367
18370
|
props: {
|
|
18368
18371
|
item: {},
|
|
@@ -18385,18 +18388,18 @@ and ensure you are accounting for this risk.
|
|
|
18385
18388
|
key: 0,
|
|
18386
18389
|
class: "lupa-search-box-product-title",
|
|
18387
18390
|
innerHTML: sanitizedTitle.value
|
|
18388
|
-
}, null, 8, _hoisted_1$
|
|
18391
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
|
|
18389
18392
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18390
18393
|
]));
|
|
18391
18394
|
};
|
|
18392
18395
|
}
|
|
18393
18396
|
});
|
|
18394
|
-
const _hoisted_1$
|
|
18395
|
-
const _hoisted_2$
|
|
18397
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
18398
|
+
const _hoisted_2$P = {
|
|
18396
18399
|
key: 1,
|
|
18397
18400
|
class: "lupa-search-box-product-description"
|
|
18398
18401
|
};
|
|
18399
|
-
const _sfc_main$
|
|
18402
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18400
18403
|
__name: "SearchBoxProductDescription",
|
|
18401
18404
|
props: {
|
|
18402
18405
|
item: {},
|
|
@@ -18419,12 +18422,12 @@ and ensure you are accounting for this risk.
|
|
|
18419
18422
|
key: 0,
|
|
18420
18423
|
class: "lupa-search-box-product-description",
|
|
18421
18424
|
innerHTML: sanitizedDescription.value
|
|
18422
|
-
}, null, 8, _hoisted_1$
|
|
18425
|
+
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
|
|
18423
18426
|
};
|
|
18424
18427
|
}
|
|
18425
18428
|
});
|
|
18426
|
-
const _hoisted_1$
|
|
18427
|
-
const _sfc_main$
|
|
18429
|
+
const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
|
|
18430
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18428
18431
|
__name: "SearchBoxProductPrice",
|
|
18429
18432
|
props: {
|
|
18430
18433
|
item: {},
|
|
@@ -18442,13 +18445,13 @@ and ensure you are accounting for this risk.
|
|
|
18442
18445
|
);
|
|
18443
18446
|
});
|
|
18444
18447
|
return (_ctx, _cache) => {
|
|
18445
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18448
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
18446
18449
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18447
18450
|
]);
|
|
18448
18451
|
};
|
|
18449
18452
|
}
|
|
18450
18453
|
});
|
|
18451
|
-
const _sfc_main$
|
|
18454
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18452
18455
|
__name: "SearchBoxProductRegularPrice",
|
|
18453
18456
|
props: {
|
|
18454
18457
|
item: {},
|
|
@@ -18475,12 +18478,12 @@ and ensure you are accounting for this risk.
|
|
|
18475
18478
|
};
|
|
18476
18479
|
}
|
|
18477
18480
|
});
|
|
18478
|
-
const _hoisted_1$
|
|
18479
|
-
const _hoisted_2$
|
|
18480
|
-
const _hoisted_3$
|
|
18481
|
-
const _hoisted_4$
|
|
18482
|
-
const _hoisted_5$
|
|
18483
|
-
const _sfc_main$
|
|
18481
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18482
|
+
const _hoisted_2$O = { key: 0 };
|
|
18483
|
+
const _hoisted_3$B = { key: 1 };
|
|
18484
|
+
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
18485
|
+
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18486
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18484
18487
|
__name: "SearchBoxProductCustom",
|
|
18485
18488
|
props: {
|
|
18486
18489
|
item: {},
|
|
@@ -18506,20 +18509,20 @@ and ensure you are accounting for this risk.
|
|
|
18506
18509
|
key: 0,
|
|
18507
18510
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18508
18511
|
innerHTML: text.value
|
|
18509
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18512
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18510
18513
|
key: 1,
|
|
18511
18514
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18512
18515
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18513
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18514
|
-
createBaseVNode("div", _hoisted_4$
|
|
18515
|
-
createBaseVNode("div", _hoisted_5$
|
|
18516
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
18517
|
+
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
18518
|
+
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18516
18519
|
]))
|
|
18517
18520
|
], 16));
|
|
18518
18521
|
};
|
|
18519
18522
|
}
|
|
18520
18523
|
});
|
|
18521
|
-
const _hoisted_1$
|
|
18522
|
-
const _sfc_main$
|
|
18524
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
18525
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18523
18526
|
__name: "SearchBoxProductCustomHtml",
|
|
18524
18527
|
props: {
|
|
18525
18528
|
item: {},
|
|
@@ -18544,7 +18547,7 @@ and ensure you are accounting for this risk.
|
|
|
18544
18547
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18545
18548
|
class: className.value,
|
|
18546
18549
|
innerHTML: text.value
|
|
18547
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18550
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
|
|
18548
18551
|
};
|
|
18549
18552
|
}
|
|
18550
18553
|
});
|
|
@@ -18778,10 +18781,10 @@ and ensure you are accounting for this risk.
|
|
|
18778
18781
|
setRelatedCategoryChildren
|
|
18779
18782
|
};
|
|
18780
18783
|
});
|
|
18781
|
-
const _hoisted_1$
|
|
18782
|
-
const _hoisted_2$
|
|
18783
|
-
const _hoisted_3$
|
|
18784
|
-
const _sfc_main$
|
|
18784
|
+
const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18785
|
+
const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
|
|
18786
|
+
const _hoisted_3$A = ["onClick", "disabled"];
|
|
18787
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
18785
18788
|
__name: "SearchBoxProductAddToCart",
|
|
18786
18789
|
props: {
|
|
18787
18790
|
item: {},
|
|
@@ -18814,37 +18817,37 @@ and ensure you are accounting for this risk.
|
|
|
18814
18817
|
loading.value = false;
|
|
18815
18818
|
});
|
|
18816
18819
|
return (_ctx, _cache) => {
|
|
18817
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18818
|
-
createBaseVNode("div", _hoisted_2$
|
|
18820
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
18821
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
18819
18822
|
createBaseVNode("button", {
|
|
18820
18823
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
18821
18824
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
18822
18825
|
"data-cy": "lupa-add-to-cart",
|
|
18823
18826
|
type: "button",
|
|
18824
18827
|
disabled: !inStockValue.value || loading.value
|
|
18825
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
18828
|
+
}, toDisplayString(label.value), 11, _hoisted_3$A)
|
|
18826
18829
|
])
|
|
18827
18830
|
]);
|
|
18828
18831
|
};
|
|
18829
18832
|
}
|
|
18830
18833
|
});
|
|
18831
|
-
const _hoisted_1$
|
|
18834
|
+
const _hoisted_1$13 = {
|
|
18832
18835
|
key: 1,
|
|
18833
18836
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18834
18837
|
};
|
|
18835
18838
|
const __default__$4 = {
|
|
18836
18839
|
components: {
|
|
18837
|
-
SearchBoxProductImage: _sfc_main$
|
|
18838
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18839
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18840
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18841
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18842
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18843
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18844
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18840
|
+
SearchBoxProductImage: _sfc_main$1j,
|
|
18841
|
+
SearchBoxProductTitle: _sfc_main$1i,
|
|
18842
|
+
SearchBoxProductDescription: _sfc_main$1h,
|
|
18843
|
+
SearchBoxProductPrice: _sfc_main$1g,
|
|
18844
|
+
SearchBoxProductRegularPrice: _sfc_main$1f,
|
|
18845
|
+
SearchBoxProductCustom: _sfc_main$1e,
|
|
18846
|
+
SearchBoxProductCustomHtml: _sfc_main$1d,
|
|
18847
|
+
SearchBoxProductAddToCart: _sfc_main$1c
|
|
18845
18848
|
}
|
|
18846
18849
|
};
|
|
18847
|
-
const _sfc_main$
|
|
18850
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18848
18851
|
__name: "SearchBoxProductElement",
|
|
18849
18852
|
props: {
|
|
18850
18853
|
item: {},
|
|
@@ -18907,7 +18910,7 @@ and ensure you are accounting for this risk.
|
|
|
18907
18910
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
18908
18911
|
inStock: _ctx.isInStock
|
|
18909
18912
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
18910
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18913
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
18911
18914
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18912
18915
|
key: 0,
|
|
18913
18916
|
item: enhancedItem.value,
|
|
@@ -18921,14 +18924,14 @@ and ensure you are accounting for this risk.
|
|
|
18921
18924
|
};
|
|
18922
18925
|
}
|
|
18923
18926
|
}));
|
|
18924
|
-
const _hoisted_1$
|
|
18925
|
-
const _hoisted_2$
|
|
18926
|
-
const _hoisted_3$
|
|
18927
|
-
const _hoisted_4$
|
|
18927
|
+
const _hoisted_1$12 = { class: "lupa-badge-title" };
|
|
18928
|
+
const _hoisted_2$M = ["src"];
|
|
18929
|
+
const _hoisted_3$z = { key: 1 };
|
|
18930
|
+
const _hoisted_4$q = {
|
|
18928
18931
|
key: 0,
|
|
18929
18932
|
class: "lupa-badge-full-text"
|
|
18930
18933
|
};
|
|
18931
|
-
const _sfc_main$
|
|
18934
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
18932
18935
|
__name: "SearchResultGeneratedBadge",
|
|
18933
18936
|
props: {
|
|
18934
18937
|
options: {},
|
|
@@ -18961,20 +18964,20 @@ and ensure you are accounting for this risk.
|
|
|
18961
18964
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
18962
18965
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
18963
18966
|
}, [
|
|
18964
|
-
createBaseVNode("span", _hoisted_1$
|
|
18967
|
+
createBaseVNode("span", _hoisted_1$12, [
|
|
18965
18968
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
18966
18969
|
key: 0,
|
|
18967
18970
|
src: image.value
|
|
18968
|
-
}, null, 8, _hoisted_2$
|
|
18969
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
18971
|
+
}, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
|
|
18972
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
18970
18973
|
]),
|
|
18971
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
18974
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
18972
18975
|
], 6);
|
|
18973
18976
|
};
|
|
18974
18977
|
}
|
|
18975
18978
|
});
|
|
18976
|
-
const _hoisted_1
|
|
18977
|
-
const _sfc_main$
|
|
18979
|
+
const _hoisted_1$11 = { class: "lupa-generated-badges" };
|
|
18980
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
18978
18981
|
__name: "SearchResultGeneratedBadges",
|
|
18979
18982
|
props: {
|
|
18980
18983
|
options: {}
|
|
@@ -19000,9 +19003,9 @@ and ensure you are accounting for this risk.
|
|
|
19000
19003
|
})).filter((b) => Boolean(b.id));
|
|
19001
19004
|
});
|
|
19002
19005
|
return (_ctx, _cache) => {
|
|
19003
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19006
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
19004
19007
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19005
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19008
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
19006
19009
|
key: badge.id,
|
|
19007
19010
|
badge,
|
|
19008
19011
|
options: _ctx.options
|
|
@@ -19012,8 +19015,8 @@ and ensure you are accounting for this risk.
|
|
|
19012
19015
|
};
|
|
19013
19016
|
}
|
|
19014
19017
|
});
|
|
19015
|
-
const _hoisted_1$
|
|
19016
|
-
const _sfc_main$
|
|
19018
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
19019
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
19017
19020
|
__name: "CustomBadge",
|
|
19018
19021
|
props: {
|
|
19019
19022
|
badge: {}
|
|
@@ -19034,12 +19037,12 @@ and ensure you are accounting for this risk.
|
|
|
19034
19037
|
return openBlock(), createElementBlock("div", {
|
|
19035
19038
|
class: normalizeClass(className.value),
|
|
19036
19039
|
innerHTML: text.value
|
|
19037
|
-
}, null, 10, _hoisted_1$
|
|
19040
|
+
}, null, 10, _hoisted_1$10);
|
|
19038
19041
|
};
|
|
19039
19042
|
}
|
|
19040
19043
|
});
|
|
19041
|
-
const _hoisted_1
|
|
19042
|
-
const _sfc_main$
|
|
19044
|
+
const _hoisted_1$$ = { class: "lupa-text-badges" };
|
|
19045
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19043
19046
|
__name: "TextBadge",
|
|
19044
19047
|
props: {
|
|
19045
19048
|
badge: {}
|
|
@@ -19047,14 +19050,13 @@ and ensure you are accounting for this risk.
|
|
|
19047
19050
|
setup(__props) {
|
|
19048
19051
|
const props = __props;
|
|
19049
19052
|
const badges = computed(() => {
|
|
19050
|
-
|
|
19051
|
-
return (_b = (_a = props.badge) == null ? void 0 : _a.value) != null ? _b : [];
|
|
19053
|
+
return Array.isArray(props.badge.value) ? props.badge.value : [props.badge.value];
|
|
19052
19054
|
});
|
|
19053
19055
|
const displayBadges = computed(() => {
|
|
19054
19056
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19055
19057
|
});
|
|
19056
19058
|
return (_ctx, _cache) => {
|
|
19057
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19059
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
19058
19060
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19059
19061
|
return openBlock(), createElementBlock("div", {
|
|
19060
19062
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19065,9 +19067,9 @@ and ensure you are accounting for this risk.
|
|
|
19065
19067
|
};
|
|
19066
19068
|
}
|
|
19067
19069
|
});
|
|
19068
|
-
const _hoisted_1$
|
|
19069
|
-
const _hoisted_2$
|
|
19070
|
-
const _sfc_main$
|
|
19070
|
+
const _hoisted_1$_ = { class: "lupa-image-badges" };
|
|
19071
|
+
const _hoisted_2$L = ["src"];
|
|
19072
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
19071
19073
|
__name: "ImageBadge",
|
|
19072
19074
|
props: {
|
|
19073
19075
|
badge: {}
|
|
@@ -19075,7 +19077,7 @@ and ensure you are accounting for this risk.
|
|
|
19075
19077
|
setup(__props) {
|
|
19076
19078
|
const props = __props;
|
|
19077
19079
|
const badges = computed(() => {
|
|
19078
|
-
return props.badge.value;
|
|
19080
|
+
return Array.isArray(props.badge.value) ? props.badge.value : [props.badge.value];
|
|
19079
19081
|
});
|
|
19080
19082
|
const displayBadges = computed(() => {
|
|
19081
19083
|
return badges.value.slice(0, props.badge.maxItems);
|
|
@@ -19087,7 +19089,7 @@ and ensure you are accounting for this risk.
|
|
|
19087
19089
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19088
19090
|
};
|
|
19089
19091
|
return (_ctx, _cache) => {
|
|
19090
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19092
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
19091
19093
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19092
19094
|
return openBlock(), createElementBlock("div", {
|
|
19093
19095
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19095,22 +19097,81 @@ and ensure you are accounting for this risk.
|
|
|
19095
19097
|
}, [
|
|
19096
19098
|
createBaseVNode("img", {
|
|
19097
19099
|
src: getImageUrl(item)
|
|
19098
|
-
}, null, 8, _hoisted_2$
|
|
19100
|
+
}, null, 8, _hoisted_2$L)
|
|
19099
19101
|
]);
|
|
19100
19102
|
}), 128))
|
|
19101
19103
|
]);
|
|
19102
19104
|
};
|
|
19103
19105
|
}
|
|
19104
19106
|
});
|
|
19105
|
-
const
|
|
19107
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
19108
|
+
__name: "DiscountBadge",
|
|
19109
|
+
props: {
|
|
19110
|
+
badge: {}
|
|
19111
|
+
},
|
|
19112
|
+
setup(__props) {
|
|
19113
|
+
const props = __props;
|
|
19114
|
+
const optionStore = useOptionsStore();
|
|
19115
|
+
const { searchResultOptions } = storeToRefs(optionStore);
|
|
19116
|
+
const className = computed(() => {
|
|
19117
|
+
var _a;
|
|
19118
|
+
return (_a = props.badge.className) != null ? _a : "";
|
|
19119
|
+
});
|
|
19120
|
+
const discountValue = computed(() => {
|
|
19121
|
+
var _a, _b, _c, _d;
|
|
19122
|
+
if (props.badge.discountKey) {
|
|
19123
|
+
return (_b = (_a = props.badge.product) == null ? void 0 : _a[props.badge.discountKey]) != null ? _b : 0;
|
|
19124
|
+
}
|
|
19125
|
+
if (props.badge.regularPriceKey && props.badge.finalPriceKey) {
|
|
19126
|
+
const regularPrice = +((_c = props.badge.product) == null ? void 0 : _c[props.badge.regularPriceKey]);
|
|
19127
|
+
const finalPrice = +((_d = props.badge.product) == null ? void 0 : _d[props.badge.finalPriceKey]);
|
|
19128
|
+
if (!regularPrice || !finalPrice) {
|
|
19129
|
+
return 0;
|
|
19130
|
+
}
|
|
19131
|
+
if (props.badge.discountType === "percentage") {
|
|
19132
|
+
return (regularPrice - finalPrice) / regularPrice * 100;
|
|
19133
|
+
} else {
|
|
19134
|
+
return regularPrice - finalPrice;
|
|
19135
|
+
}
|
|
19136
|
+
}
|
|
19137
|
+
return 0;
|
|
19138
|
+
});
|
|
19139
|
+
const discountStringValue = computed(() => {
|
|
19140
|
+
var _a, _b, _c, _d;
|
|
19141
|
+
return props.badge.discountType === "percentage" ? discountValue.value.toFixed(0) : formatPrice(
|
|
19142
|
+
discountValue.value,
|
|
19143
|
+
(_b = (_a = searchResultOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.currency,
|
|
19144
|
+
(_d = (_c = searchResultOptions.value) == null ? void 0 : _c.labels) == null ? void 0 : _d.priceSeparator
|
|
19145
|
+
);
|
|
19146
|
+
});
|
|
19147
|
+
const hasDiscount = computed(() => {
|
|
19148
|
+
return Boolean(discountValue.value) && discountValue.value > 0;
|
|
19149
|
+
});
|
|
19150
|
+
const discount = computed(() => {
|
|
19151
|
+
var _a, _b, _c, _d;
|
|
19152
|
+
const defaultPostfix = props.badge.discountType === "percentage" ? " %" : "";
|
|
19153
|
+
const prefix = (_b = (_a = props.badge.labels) == null ? void 0 : _a.prefix) != null ? _b : "- ";
|
|
19154
|
+
const postfix = (_d = (_c = props.badge.labels) == null ? void 0 : _c.postfix) != null ? _d : defaultPostfix;
|
|
19155
|
+
return `${prefix}${discountStringValue.value}${postfix}`;
|
|
19156
|
+
});
|
|
19157
|
+
return (_ctx, _cache) => {
|
|
19158
|
+
return hasDiscount.value ? (openBlock(), createElementBlock("div", {
|
|
19159
|
+
key: 0,
|
|
19160
|
+
class: normalizeClass([className.value, "lupa-discount-badge"])
|
|
19161
|
+
}, toDisplayString(discount.value), 3)) : createCommentVNode("", true);
|
|
19162
|
+
};
|
|
19163
|
+
}
|
|
19164
|
+
});
|
|
19165
|
+
const _hoisted_1$Z = { id: "lupa-search-results-badges" };
|
|
19106
19166
|
const __default__$3 = {
|
|
19107
19167
|
components: {
|
|
19108
|
-
CustomBadge: _sfc_main$
|
|
19109
|
-
TextBadge: _sfc_main$
|
|
19110
|
-
ImageBadge: _sfc_main$
|
|
19168
|
+
CustomBadge: _sfc_main$18,
|
|
19169
|
+
TextBadge: _sfc_main$17,
|
|
19170
|
+
ImageBadge: _sfc_main$16,
|
|
19171
|
+
DiscountBadge: _sfc_main$15
|
|
19111
19172
|
}
|
|
19112
19173
|
};
|
|
19113
|
-
const _sfc_main$
|
|
19174
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19114
19175
|
__name: "SearchResultsBadgeWrapper",
|
|
19115
19176
|
props: {
|
|
19116
19177
|
position: {},
|
|
@@ -19166,12 +19227,14 @@ and ensure you are accounting for this risk.
|
|
|
19166
19227
|
return "ImageBadge";
|
|
19167
19228
|
case BadgeType.CUSTOM_HTML:
|
|
19168
19229
|
return "CustomBadge";
|
|
19230
|
+
case BadgeType.DISCOUNT:
|
|
19231
|
+
return "DiscountBadge";
|
|
19169
19232
|
default:
|
|
19170
19233
|
return "CustomBadge";
|
|
19171
19234
|
}
|
|
19172
19235
|
};
|
|
19173
19236
|
return (_ctx, _cache) => {
|
|
19174
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19237
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
19175
19238
|
createBaseVNode("div", {
|
|
19176
19239
|
id: "lupa-badges",
|
|
19177
19240
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19182,7 +19245,7 @@ and ensure you are accounting for this risk.
|
|
|
19182
19245
|
badge
|
|
19183
19246
|
}, null, 8, ["badge"]);
|
|
19184
19247
|
}), 128)),
|
|
19185
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19248
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$19, {
|
|
19186
19249
|
key: 0,
|
|
19187
19250
|
options: _ctx.options
|
|
19188
19251
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19191,13 +19254,13 @@ and ensure you are accounting for this risk.
|
|
|
19191
19254
|
};
|
|
19192
19255
|
}
|
|
19193
19256
|
}));
|
|
19194
|
-
const _hoisted_1$
|
|
19195
|
-
const _hoisted_2$
|
|
19196
|
-
const _hoisted_3$
|
|
19257
|
+
const _hoisted_1$Y = ["href"];
|
|
19258
|
+
const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
|
|
19259
|
+
const _hoisted_3$y = {
|
|
19197
19260
|
key: 0,
|
|
19198
19261
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19199
19262
|
};
|
|
19200
|
-
const _sfc_main$
|
|
19263
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19201
19264
|
__name: "SearchBoxProduct",
|
|
19202
19265
|
props: {
|
|
19203
19266
|
item: {},
|
|
@@ -19283,7 +19346,7 @@ and ensure you are accounting for this risk.
|
|
|
19283
19346
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19284
19347
|
}, [
|
|
19285
19348
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19286
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19349
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
19287
19350
|
class: "lupa-search-box-product-element",
|
|
19288
19351
|
item: _ctx.item,
|
|
19289
19352
|
element,
|
|
@@ -19293,10 +19356,10 @@ and ensure you are accounting for this risk.
|
|
|
19293
19356
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
19294
19357
|
}), 128))
|
|
19295
19358
|
], 4),
|
|
19296
|
-
createBaseVNode("div", _hoisted_2$
|
|
19359
|
+
createBaseVNode("div", _hoisted_2$K, [
|
|
19297
19360
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19298
19361
|
var _a;
|
|
19299
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19362
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
19300
19363
|
key: element.key,
|
|
19301
19364
|
class: "lupa-search-box-product-element",
|
|
19302
19365
|
item: _ctx.item,
|
|
@@ -19307,7 +19370,7 @@ and ensure you are accounting for this risk.
|
|
|
19307
19370
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19308
19371
|
name: "badges",
|
|
19309
19372
|
fn: withCtx(() => [
|
|
19310
|
-
createVNode(_sfc_main$
|
|
19373
|
+
createVNode(_sfc_main$14, {
|
|
19311
19374
|
options: badgeOptions.value,
|
|
19312
19375
|
position: "card"
|
|
19313
19376
|
}, null, 8, ["options"])
|
|
@@ -19317,8 +19380,8 @@ and ensure you are accounting for this risk.
|
|
|
19317
19380
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19318
19381
|
}), 128))
|
|
19319
19382
|
]),
|
|
19320
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19321
|
-
createVNode(_sfc_main$
|
|
19383
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
19384
|
+
createVNode(_sfc_main$1b, {
|
|
19322
19385
|
class: "lupa-search-box-product-element",
|
|
19323
19386
|
item: _ctx.item,
|
|
19324
19387
|
element: addToCartElement.value,
|
|
@@ -19327,7 +19390,7 @@ and ensure you are accounting for this risk.
|
|
|
19327
19390
|
isInStock: isInStock.value
|
|
19328
19391
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19329
19392
|
])) : createCommentVNode("", true)
|
|
19330
|
-
], 16, _hoisted_1$
|
|
19393
|
+
], 16, _hoisted_1$Y);
|
|
19331
19394
|
};
|
|
19332
19395
|
}
|
|
19333
19396
|
});
|
|
@@ -19388,8 +19451,8 @@ and ensure you are accounting for this risk.
|
|
|
19388
19451
|
};
|
|
19389
19452
|
return { trackSearch, trackResults, trackEvent };
|
|
19390
19453
|
});
|
|
19391
|
-
const _hoisted_1$
|
|
19392
|
-
const _sfc_main$
|
|
19454
|
+
const _hoisted_1$X = { id: "lupa-search-box-products" };
|
|
19455
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19393
19456
|
__name: "SearchBoxProducts",
|
|
19394
19457
|
props: {
|
|
19395
19458
|
items: {},
|
|
@@ -19450,7 +19513,7 @@ and ensure you are accounting for this risk.
|
|
|
19450
19513
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19451
19514
|
};
|
|
19452
19515
|
return (_ctx, _cache) => {
|
|
19453
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19516
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19454
19517
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19455
19518
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19456
19519
|
key: index,
|
|
@@ -19462,7 +19525,7 @@ and ensure you are accounting for this risk.
|
|
|
19462
19525
|
itemClicked: handleProductClick
|
|
19463
19526
|
});
|
|
19464
19527
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19465
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19528
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
19466
19529
|
key: index,
|
|
19467
19530
|
item,
|
|
19468
19531
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19477,9 +19540,9 @@ and ensure you are accounting for this risk.
|
|
|
19477
19540
|
};
|
|
19478
19541
|
}
|
|
19479
19542
|
});
|
|
19480
|
-
const _hoisted_1$
|
|
19481
|
-
const _hoisted_2$
|
|
19482
|
-
const _sfc_main
|
|
19543
|
+
const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19544
|
+
const _hoisted_2$J = { key: 0 };
|
|
19545
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19483
19546
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19484
19547
|
props: {
|
|
19485
19548
|
options: {},
|
|
@@ -19509,19 +19572,19 @@ and ensure you are accounting for this risk.
|
|
|
19509
19572
|
emit2("goToResults");
|
|
19510
19573
|
};
|
|
19511
19574
|
return (_ctx, _cache) => {
|
|
19512
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19575
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
19513
19576
|
createBaseVNode("button", {
|
|
19514
19577
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19515
19578
|
onClick: goToResults
|
|
19516
19579
|
}, [
|
|
19517
19580
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
19518
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
19581
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
19519
19582
|
])
|
|
19520
19583
|
]);
|
|
19521
19584
|
};
|
|
19522
19585
|
}
|
|
19523
19586
|
});
|
|
19524
|
-
const _sfc_main$
|
|
19587
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19525
19588
|
__name: "SearchBoxProductsWrapper",
|
|
19526
19589
|
props: {
|
|
19527
19590
|
panel: {},
|
|
@@ -19578,7 +19641,7 @@ and ensure you are accounting for this risk.
|
|
|
19578
19641
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19579
19642
|
return (_ctx, _cache) => {
|
|
19580
19643
|
var _a, _b;
|
|
19581
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19644
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
19582
19645
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19583
19646
|
panelOptions: _ctx.panel,
|
|
19584
19647
|
labels: _ctx.labels,
|
|
@@ -19588,7 +19651,7 @@ and ensure you are accounting for this risk.
|
|
|
19588
19651
|
default: withCtx(() => {
|
|
19589
19652
|
var _a2;
|
|
19590
19653
|
return [
|
|
19591
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main
|
|
19654
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
|
|
19592
19655
|
key: 0,
|
|
19593
19656
|
options: _ctx.searchBoxOptions,
|
|
19594
19657
|
panel: _ctx.panel,
|
|
@@ -19609,7 +19672,7 @@ and ensure you are accounting for this risk.
|
|
|
19609
19672
|
};
|
|
19610
19673
|
}
|
|
19611
19674
|
});
|
|
19612
|
-
const _sfc_main
|
|
19675
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
19613
19676
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19614
19677
|
props: {
|
|
19615
19678
|
panel: {},
|
|
@@ -19681,7 +19744,7 @@ and ensure you are accounting for this risk.
|
|
|
19681
19744
|
});
|
|
19682
19745
|
return (_ctx, _cache) => {
|
|
19683
19746
|
var _a, _b;
|
|
19684
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19747
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
19685
19748
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19686
19749
|
panelOptions: documentPanelOptions.value,
|
|
19687
19750
|
labels: _ctx.labels,
|
|
@@ -19699,31 +19762,31 @@ and ensure you are accounting for this risk.
|
|
|
19699
19762
|
};
|
|
19700
19763
|
}
|
|
19701
19764
|
});
|
|
19702
|
-
const _hoisted_1$
|
|
19765
|
+
const _hoisted_1$V = {
|
|
19703
19766
|
key: 0,
|
|
19704
19767
|
id: "lupa-search-box-panel"
|
|
19705
19768
|
};
|
|
19706
|
-
const _hoisted_2$
|
|
19707
|
-
const _hoisted_3$
|
|
19769
|
+
const _hoisted_2$I = ["data-cy"];
|
|
19770
|
+
const _hoisted_3$x = {
|
|
19708
19771
|
key: 0,
|
|
19709
19772
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19710
19773
|
};
|
|
19711
|
-
const _hoisted_4$
|
|
19774
|
+
const _hoisted_4$p = {
|
|
19712
19775
|
key: 1,
|
|
19713
19776
|
class: "lupa-panel-title"
|
|
19714
19777
|
};
|
|
19715
|
-
const _hoisted_5$
|
|
19778
|
+
const _hoisted_5$g = {
|
|
19716
19779
|
key: 1,
|
|
19717
19780
|
id: "lupa-search-box-panel"
|
|
19718
19781
|
};
|
|
19719
19782
|
const __default__$2 = {
|
|
19720
19783
|
components: {
|
|
19721
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19722
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19723
|
-
SearchBoxRelatedSourceWrapper: _sfc_main
|
|
19784
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1l,
|
|
19785
|
+
SearchBoxProductsWrapper: _sfc_main$10,
|
|
19786
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$$
|
|
19724
19787
|
}
|
|
19725
19788
|
};
|
|
19726
|
-
const _sfc_main$
|
|
19789
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19727
19790
|
__name: "SearchBoxMainPanel",
|
|
19728
19791
|
props: {
|
|
19729
19792
|
options: {},
|
|
@@ -19879,7 +19942,7 @@ and ensure you are accounting for this risk.
|
|
|
19879
19942
|
ref_key: "panelContainer",
|
|
19880
19943
|
ref: panelContainer
|
|
19881
19944
|
}, [
|
|
19882
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19945
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
19883
19946
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
19884
19947
|
key: 0,
|
|
19885
19948
|
class: "lupa-search-box-close-panel",
|
|
@@ -19901,8 +19964,8 @@ and ensure you are accounting for this risk.
|
|
|
19901
19964
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
19902
19965
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
19903
19966
|
}, [
|
|
19904
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19905
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19967
|
+
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
19968
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
19906
19969
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
19907
19970
|
key: 2,
|
|
19908
19971
|
panel,
|
|
@@ -19924,21 +19987,21 @@ and ensure you are accounting for this risk.
|
|
|
19924
19987
|
key: "0"
|
|
19925
19988
|
} : void 0
|
|
19926
19989
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
19927
|
-
], 14, _hoisted_2$
|
|
19990
|
+
], 14, _hoisted_2$I);
|
|
19928
19991
|
}), 128))
|
|
19929
19992
|
], 4),
|
|
19930
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
19993
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
19931
19994
|
key: 1,
|
|
19932
19995
|
labels: labels.value
|
|
19933
19996
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
19934
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
19997
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
19935
19998
|
key: 2,
|
|
19936
19999
|
labels: labels.value,
|
|
19937
20000
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
19938
20001
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
19939
20002
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
19940
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19941
|
-
createVNode(_sfc_main$
|
|
20003
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
20004
|
+
createVNode(_sfc_main$1p, {
|
|
19942
20005
|
options: _ctx.options.history,
|
|
19943
20006
|
history: history.value,
|
|
19944
20007
|
onGoToResults: handleGoToResults,
|
|
@@ -19963,9 +20026,9 @@ and ensure you are accounting for this risk.
|
|
|
19963
20026
|
const elements = getElements(triggers);
|
|
19964
20027
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
19965
20028
|
};
|
|
19966
|
-
const _hoisted_1$
|
|
19967
|
-
const _hoisted_2$
|
|
19968
|
-
const _sfc_main$
|
|
20029
|
+
const _hoisted_1$U = { id: "lupa-search-box" };
|
|
20030
|
+
const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
|
|
20031
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
19969
20032
|
__name: "SearchBox",
|
|
19970
20033
|
props: {
|
|
19971
20034
|
options: {},
|
|
@@ -20225,9 +20288,9 @@ and ensure you are accounting for this risk.
|
|
|
20225
20288
|
};
|
|
20226
20289
|
return (_ctx, _cache) => {
|
|
20227
20290
|
var _a2;
|
|
20228
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20229
|
-
createBaseVNode("div", _hoisted_2$
|
|
20230
|
-
createVNode(_sfc_main$
|
|
20291
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
20292
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
20293
|
+
createVNode(_sfc_main$1s, {
|
|
20231
20294
|
options: inputOptions.value,
|
|
20232
20295
|
suggestedValue: suggestedValue.value,
|
|
20233
20296
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20240,7 +20303,7 @@ and ensure you are accounting for this risk.
|
|
|
20240
20303
|
onSearch: handleSearch,
|
|
20241
20304
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20242
20305
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20243
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
20306
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
20244
20307
|
key: 0,
|
|
20245
20308
|
options: panelOptions.value,
|
|
20246
20309
|
inputValue: inputValue.value,
|
|
@@ -20329,20 +20392,20 @@ and ensure you are accounting for this risk.
|
|
|
20329
20392
|
}
|
|
20330
20393
|
return searchParams;
|
|
20331
20394
|
};
|
|
20332
|
-
const _hoisted_1$
|
|
20395
|
+
const _hoisted_1$T = {
|
|
20333
20396
|
key: 0,
|
|
20334
20397
|
id: "lupa-search-results-did-you-mean"
|
|
20335
20398
|
};
|
|
20336
|
-
const _hoisted_2$
|
|
20399
|
+
const _hoisted_2$G = {
|
|
20337
20400
|
key: 0,
|
|
20338
20401
|
"data-cy": "suggested-search-text-label"
|
|
20339
20402
|
};
|
|
20340
|
-
const _hoisted_3$
|
|
20403
|
+
const _hoisted_3$w = {
|
|
20341
20404
|
key: 1,
|
|
20342
20405
|
"data-cy": "did-you-mean-label"
|
|
20343
20406
|
};
|
|
20344
|
-
const _hoisted_4$
|
|
20345
|
-
const _sfc_main$
|
|
20407
|
+
const _hoisted_4$o = { key: 1 };
|
|
20408
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20346
20409
|
__name: "SearchResultsDidYouMean",
|
|
20347
20410
|
props: {
|
|
20348
20411
|
labels: {}
|
|
@@ -20374,8 +20437,8 @@ and ensure you are accounting for this risk.
|
|
|
20374
20437
|
paramStore.goToResults({ searchText, facet });
|
|
20375
20438
|
};
|
|
20376
20439
|
return (_ctx, _cache) => {
|
|
20377
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20378
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20440
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
20441
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
|
|
20379
20442
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20380
20443
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20381
20444
|
createBaseVNode("span", {
|
|
@@ -20384,7 +20447,7 @@ and ensure you are accounting for this risk.
|
|
|
20384
20447
|
]);
|
|
20385
20448
|
}), 128))
|
|
20386
20449
|
])) : createCommentVNode("", true),
|
|
20387
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20450
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
20388
20451
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20389
20452
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20390
20453
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20392,7 +20455,7 @@ and ensure you are accounting for this risk.
|
|
|
20392
20455
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20393
20456
|
"data-cy": "did-you-mean-value",
|
|
20394
20457
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20395
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20458
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
20396
20459
|
]);
|
|
20397
20460
|
}), 128))
|
|
20398
20461
|
])) : createCommentVNode("", true)
|
|
@@ -20400,12 +20463,12 @@ and ensure you are accounting for this risk.
|
|
|
20400
20463
|
};
|
|
20401
20464
|
}
|
|
20402
20465
|
});
|
|
20403
|
-
const _hoisted_1$
|
|
20466
|
+
const _hoisted_1$S = {
|
|
20404
20467
|
key: 0,
|
|
20405
20468
|
class: "lupa-search-results-summary"
|
|
20406
20469
|
};
|
|
20407
|
-
const _hoisted_2$
|
|
20408
|
-
const _sfc_main$
|
|
20470
|
+
const _hoisted_2$F = ["innerHTML"];
|
|
20471
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20409
20472
|
__name: "SearchResultsSummary",
|
|
20410
20473
|
props: {
|
|
20411
20474
|
label: {},
|
|
@@ -20420,8 +20483,8 @@ and ensure you are accounting for this risk.
|
|
|
20420
20483
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20421
20484
|
});
|
|
20422
20485
|
return (_ctx, _cache) => {
|
|
20423
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20424
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
20486
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
20487
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
|
|
20425
20488
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20426
20489
|
key: 0,
|
|
20427
20490
|
class: "lupa-filter-clear",
|
|
@@ -20432,19 +20495,19 @@ and ensure you are accounting for this risk.
|
|
|
20432
20495
|
};
|
|
20433
20496
|
}
|
|
20434
20497
|
});
|
|
20435
|
-
const _hoisted_1$
|
|
20498
|
+
const _hoisted_1$R = {
|
|
20436
20499
|
key: 0,
|
|
20437
20500
|
class: "lupa-result-page-title",
|
|
20438
20501
|
"data-cy": "lupa-result-page-title"
|
|
20439
20502
|
};
|
|
20440
|
-
const _hoisted_2$
|
|
20441
|
-
const _hoisted_3$
|
|
20503
|
+
const _hoisted_2$E = { key: 0 };
|
|
20504
|
+
const _hoisted_3$v = {
|
|
20442
20505
|
key: 1,
|
|
20443
20506
|
class: "lupa-results-total-count"
|
|
20444
20507
|
};
|
|
20445
|
-
const _hoisted_4$
|
|
20446
|
-
const _hoisted_5$
|
|
20447
|
-
const _sfc_main$
|
|
20508
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
20509
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
20510
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20448
20511
|
__name: "SearchResultsTitle",
|
|
20449
20512
|
props: {
|
|
20450
20513
|
options: {},
|
|
@@ -20483,16 +20546,16 @@ and ensure you are accounting for this risk.
|
|
|
20483
20546
|
});
|
|
20484
20547
|
return (_ctx, _cache) => {
|
|
20485
20548
|
return openBlock(), createElementBlock("div", null, [
|
|
20486
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20549
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
|
|
20487
20550
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20488
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20489
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20551
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20552
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
20490
20553
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20491
|
-
createBaseVNode("span", _hoisted_4$
|
|
20554
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
20492
20555
|
createTextVNode(")")
|
|
20493
20556
|
])) : createCommentVNode("", true)
|
|
20494
20557
|
])) : createCommentVNode("", true),
|
|
20495
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20558
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
20496
20559
|
key: 1,
|
|
20497
20560
|
label: summaryLabel.value
|
|
20498
20561
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20500,21 +20563,21 @@ and ensure you are accounting for this risk.
|
|
|
20500
20563
|
key: 2,
|
|
20501
20564
|
class: "lupa-result-page-description-top",
|
|
20502
20565
|
innerHTML: descriptionTop.value
|
|
20503
|
-
}, null, 8, _hoisted_5$
|
|
20566
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
20504
20567
|
]);
|
|
20505
20568
|
};
|
|
20506
20569
|
}
|
|
20507
20570
|
});
|
|
20508
|
-
const _hoisted_1$
|
|
20509
|
-
const _hoisted_2$
|
|
20571
|
+
const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
|
|
20572
|
+
const _hoisted_2$D = {
|
|
20510
20573
|
class: "lupa-current-filter-label",
|
|
20511
20574
|
"data-cy": "lupa-current-filter-label"
|
|
20512
20575
|
};
|
|
20513
|
-
const _hoisted_3$
|
|
20576
|
+
const _hoisted_3$u = {
|
|
20514
20577
|
class: "lupa-current-filter-value",
|
|
20515
20578
|
"data-cy": "lupa-current-filter-value"
|
|
20516
20579
|
};
|
|
20517
|
-
const _sfc_main$
|
|
20580
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20518
20581
|
__name: "CurrentFilterDisplay",
|
|
20519
20582
|
props: {
|
|
20520
20583
|
filter: {}
|
|
@@ -20526,28 +20589,28 @@ and ensure you are accounting for this risk.
|
|
|
20526
20589
|
emit2("remove", { filter: props.filter });
|
|
20527
20590
|
};
|
|
20528
20591
|
return (_ctx, _cache) => {
|
|
20529
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20592
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
20530
20593
|
createBaseVNode("div", {
|
|
20531
20594
|
class: "lupa-current-filter-action",
|
|
20532
20595
|
onClick: handleClick
|
|
20533
20596
|
}, "⨉"),
|
|
20534
|
-
createBaseVNode("div", _hoisted_2$
|
|
20535
|
-
createBaseVNode("div", _hoisted_3$
|
|
20597
|
+
createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20598
|
+
createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
|
|
20536
20599
|
]);
|
|
20537
20600
|
};
|
|
20538
20601
|
}
|
|
20539
20602
|
});
|
|
20540
|
-
const _hoisted_1$
|
|
20541
|
-
const _hoisted_2$
|
|
20603
|
+
const _hoisted_1$P = { class: "lupa-filter-title-text" };
|
|
20604
|
+
const _hoisted_2$C = {
|
|
20542
20605
|
key: 0,
|
|
20543
20606
|
class: "lupa-filter-count"
|
|
20544
20607
|
};
|
|
20545
|
-
const _hoisted_3$
|
|
20608
|
+
const _hoisted_3$t = {
|
|
20546
20609
|
key: 0,
|
|
20547
20610
|
class: "filter-values"
|
|
20548
20611
|
};
|
|
20549
|
-
const _hoisted_4$
|
|
20550
|
-
const _sfc_main$
|
|
20612
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
20613
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20551
20614
|
__name: "CurrentFilters",
|
|
20552
20615
|
props: {
|
|
20553
20616
|
options: {},
|
|
@@ -20620,19 +20683,19 @@ and ensure you are accounting for this risk.
|
|
|
20620
20683
|
class: "lupa-current-filter-title",
|
|
20621
20684
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20622
20685
|
}, [
|
|
20623
|
-
createBaseVNode("div", _hoisted_1$
|
|
20686
|
+
createBaseVNode("div", _hoisted_1$P, [
|
|
20624
20687
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20625
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20688
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20626
20689
|
]),
|
|
20627
20690
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
20628
20691
|
key: 0,
|
|
20629
20692
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20630
20693
|
}, null, 2)) : createCommentVNode("", true)
|
|
20631
20694
|
]),
|
|
20632
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20633
|
-
createBaseVNode("div", _hoisted_4$
|
|
20695
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20696
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
20634
20697
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20635
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20698
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
20636
20699
|
key: filter2.key + "_" + filter2.value,
|
|
20637
20700
|
filter: filter2,
|
|
20638
20701
|
onRemove: handleRemove
|
|
@@ -20649,8 +20712,8 @@ and ensure you are accounting for this risk.
|
|
|
20649
20712
|
};
|
|
20650
20713
|
}
|
|
20651
20714
|
});
|
|
20652
|
-
const _hoisted_1$
|
|
20653
|
-
const _sfc_main$
|
|
20715
|
+
const _hoisted_1$O = ["href"];
|
|
20716
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20654
20717
|
__name: "CategoryFilterItem",
|
|
20655
20718
|
props: {
|
|
20656
20719
|
options: {},
|
|
@@ -20687,20 +20750,20 @@ and ensure you are accounting for this risk.
|
|
|
20687
20750
|
"data-cy": "lupa-child-category-item",
|
|
20688
20751
|
href: urlLink.value,
|
|
20689
20752
|
onClick: handleNavigation
|
|
20690
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20753
|
+
}, toDisplayString(title.value), 9, _hoisted_1$O)
|
|
20691
20754
|
], 2);
|
|
20692
20755
|
};
|
|
20693
20756
|
}
|
|
20694
20757
|
});
|
|
20695
|
-
const _hoisted_1$
|
|
20758
|
+
const _hoisted_1$N = {
|
|
20696
20759
|
class: "lupa-category-filter",
|
|
20697
20760
|
"data-cy": "lupa-category-filter"
|
|
20698
20761
|
};
|
|
20699
|
-
const _hoisted_2$
|
|
20700
|
-
const _hoisted_3$
|
|
20701
|
-
const _hoisted_4$
|
|
20702
|
-
const _hoisted_5$
|
|
20703
|
-
const _sfc_main$
|
|
20762
|
+
const _hoisted_2$B = { class: "lupa-category-back" };
|
|
20763
|
+
const _hoisted_3$s = ["href"];
|
|
20764
|
+
const _hoisted_4$l = ["href"];
|
|
20765
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20766
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20704
20767
|
__name: "CategoryFilter",
|
|
20705
20768
|
props: {
|
|
20706
20769
|
options: {}
|
|
@@ -20788,14 +20851,14 @@ and ensure you are accounting for this risk.
|
|
|
20788
20851
|
};
|
|
20789
20852
|
__expose({ fetch: fetch2 });
|
|
20790
20853
|
return (_ctx, _cache) => {
|
|
20791
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20792
|
-
createBaseVNode("div", _hoisted_2$
|
|
20854
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
20855
|
+
createBaseVNode("div", _hoisted_2$B, [
|
|
20793
20856
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20794
20857
|
key: 0,
|
|
20795
20858
|
"data-cy": "lupa-category-back",
|
|
20796
20859
|
href: backUrlLink.value,
|
|
20797
20860
|
onClick: handleNavigationBack
|
|
20798
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
20861
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
|
|
20799
20862
|
]),
|
|
20800
20863
|
createBaseVNode("div", {
|
|
20801
20864
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -20805,11 +20868,11 @@ and ensure you are accounting for this risk.
|
|
|
20805
20868
|
href: parentUrlLink.value,
|
|
20806
20869
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
20807
20870
|
onClick: handleNavigationParent
|
|
20808
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
20871
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
20809
20872
|
], 2),
|
|
20810
|
-
createBaseVNode("div", _hoisted_5$
|
|
20873
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
20811
20874
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20812
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20875
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
20813
20876
|
key: getCategoryKey(child),
|
|
20814
20877
|
item: child,
|
|
20815
20878
|
options: _ctx.options
|
|
@@ -20820,14 +20883,14 @@ and ensure you are accounting for this risk.
|
|
|
20820
20883
|
};
|
|
20821
20884
|
}
|
|
20822
20885
|
});
|
|
20823
|
-
const _hoisted_1$
|
|
20886
|
+
const _hoisted_1$M = {
|
|
20824
20887
|
class: "lupa-search-result-facet-term-values",
|
|
20825
20888
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20826
20889
|
};
|
|
20827
|
-
const _hoisted_2$
|
|
20828
|
-
const _hoisted_3$
|
|
20829
|
-
const _hoisted_4$
|
|
20830
|
-
const _hoisted_5$
|
|
20890
|
+
const _hoisted_2$A = ["placeholder"];
|
|
20891
|
+
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
20892
|
+
const _hoisted_4$k = ["onClick"];
|
|
20893
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
20831
20894
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20832
20895
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
20833
20896
|
const _hoisted_8$2 = {
|
|
@@ -20836,7 +20899,7 @@ and ensure you are accounting for this risk.
|
|
|
20836
20899
|
};
|
|
20837
20900
|
const _hoisted_9$2 = { key: 0 };
|
|
20838
20901
|
const _hoisted_10$1 = { key: 1 };
|
|
20839
|
-
const _sfc_main$
|
|
20902
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
20840
20903
|
__name: "TermFacet",
|
|
20841
20904
|
props: {
|
|
20842
20905
|
options: {},
|
|
@@ -20907,17 +20970,17 @@ and ensure you are accounting for this risk.
|
|
|
20907
20970
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
20908
20971
|
};
|
|
20909
20972
|
return (_ctx, _cache) => {
|
|
20910
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20973
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
20911
20974
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
20912
20975
|
key: 0,
|
|
20913
20976
|
class: "lupa-term-filter",
|
|
20914
20977
|
"data-cy": "lupa-term-filter",
|
|
20915
20978
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
20916
20979
|
placeholder: _ctx.options.labels.facetFilter
|
|
20917
|
-
}, null, 8, _hoisted_2$
|
|
20980
|
+
}, null, 8, _hoisted_2$A)), [
|
|
20918
20981
|
[vModelText, termFilter.value]
|
|
20919
20982
|
]) : createCommentVNode("", true),
|
|
20920
|
-
createBaseVNode("div", _hoisted_3$
|
|
20983
|
+
createBaseVNode("div", _hoisted_3$r, [
|
|
20921
20984
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
20922
20985
|
return openBlock(), createElementBlock("div", {
|
|
20923
20986
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -20925,7 +20988,7 @@ and ensure you are accounting for this risk.
|
|
|
20925
20988
|
key: item.title,
|
|
20926
20989
|
onClick: ($event) => handleFacetClick(item)
|
|
20927
20990
|
}, [
|
|
20928
|
-
createBaseVNode("div", _hoisted_5$
|
|
20991
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
20929
20992
|
createBaseVNode("span", {
|
|
20930
20993
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
20931
20994
|
}, null, 2)
|
|
@@ -20934,7 +20997,7 @@ and ensure you are accounting for this risk.
|
|
|
20934
20997
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
20935
20998
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
20936
20999
|
])
|
|
20937
|
-
], 10, _hoisted_4$
|
|
21000
|
+
], 10, _hoisted_4$k);
|
|
20938
21001
|
}), 128))
|
|
20939
21002
|
]),
|
|
20940
21003
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -21925,20 +21988,20 @@ and ensure you are accounting for this risk.
|
|
|
21925
21988
|
m.render = function(e2, t, r, i, n, o) {
|
|
21926
21989
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
21927
21990
|
}, m.__file = "src/Slider.vue";
|
|
21928
|
-
const _hoisted_1$
|
|
21929
|
-
const _hoisted_2$
|
|
21991
|
+
const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
|
|
21992
|
+
const _hoisted_2$z = {
|
|
21930
21993
|
key: 0,
|
|
21931
21994
|
class: "lupa-stats-facet-summary"
|
|
21932
21995
|
};
|
|
21933
|
-
const _hoisted_3$
|
|
21996
|
+
const _hoisted_3$q = {
|
|
21934
21997
|
key: 1,
|
|
21935
21998
|
class: "lupa-stats-facet-summary-input"
|
|
21936
21999
|
};
|
|
21937
|
-
const _hoisted_4$
|
|
22000
|
+
const _hoisted_4$j = {
|
|
21938
22001
|
key: 0,
|
|
21939
22002
|
class: "lupa-stats-range-label"
|
|
21940
22003
|
};
|
|
21941
|
-
const _hoisted_5$
|
|
22004
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
21942
22005
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
21943
22006
|
const _hoisted_7$5 = { key: 0 };
|
|
21944
22007
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -21953,7 +22016,7 @@ and ensure you are accounting for this risk.
|
|
|
21953
22016
|
key: 2,
|
|
21954
22017
|
class: "lupa-stats-slider-wrapper"
|
|
21955
22018
|
};
|
|
21956
|
-
const _sfc_main$
|
|
22019
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
21957
22020
|
__name: "StatsFacet",
|
|
21958
22021
|
props: {
|
|
21959
22022
|
options: {},
|
|
@@ -22126,11 +22189,11 @@ and ensure you are accounting for this risk.
|
|
|
22126
22189
|
innerSliderRange.value = value;
|
|
22127
22190
|
};
|
|
22128
22191
|
return (_ctx, _cache) => {
|
|
22129
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22130
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22192
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
22193
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22131
22194
|
createBaseVNode("div", null, [
|
|
22132
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22133
|
-
createBaseVNode("div", _hoisted_5$
|
|
22195
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22196
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
22134
22197
|
withDirectives(createBaseVNode("input", {
|
|
22135
22198
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
22136
22199
|
type: "text",
|
|
@@ -22193,18 +22256,18 @@ and ensure you are accounting for this risk.
|
|
|
22193
22256
|
};
|
|
22194
22257
|
}
|
|
22195
22258
|
});
|
|
22196
|
-
const _hoisted_1$
|
|
22197
|
-
const _hoisted_2$
|
|
22198
|
-
const _hoisted_3$
|
|
22199
|
-
const _hoisted_4$
|
|
22259
|
+
const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
|
|
22260
|
+
const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
|
|
22261
|
+
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22262
|
+
const _hoisted_4$i = {
|
|
22200
22263
|
key: 0,
|
|
22201
22264
|
class: "lupa-term-count"
|
|
22202
22265
|
};
|
|
22203
|
-
const _hoisted_5$
|
|
22266
|
+
const _hoisted_5$b = {
|
|
22204
22267
|
key: 0,
|
|
22205
22268
|
class: "lupa-facet-level"
|
|
22206
22269
|
};
|
|
22207
|
-
const _sfc_main$
|
|
22270
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
22208
22271
|
__name: "HierarchyFacetLevel",
|
|
22209
22272
|
props: {
|
|
22210
22273
|
options: {},
|
|
@@ -22250,17 +22313,17 @@ and ensure you are accounting for this risk.
|
|
|
22250
22313
|
"data-cy": "lupa-facet-term",
|
|
22251
22314
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22252
22315
|
}, [
|
|
22253
|
-
createBaseVNode("div", _hoisted_1$
|
|
22316
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
22254
22317
|
createBaseVNode("span", {
|
|
22255
22318
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22256
22319
|
}, null, 2)
|
|
22257
22320
|
]),
|
|
22258
|
-
createBaseVNode("div", _hoisted_2$
|
|
22259
|
-
createBaseVNode("span", _hoisted_3$
|
|
22260
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22321
|
+
createBaseVNode("div", _hoisted_2$y, [
|
|
22322
|
+
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22323
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22261
22324
|
])
|
|
22262
22325
|
]),
|
|
22263
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
22326
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
22264
22327
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
22265
22328
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
22266
22329
|
key: itemChild.title,
|
|
@@ -22276,13 +22339,13 @@ and ensure you are accounting for this risk.
|
|
|
22276
22339
|
};
|
|
22277
22340
|
}
|
|
22278
22341
|
});
|
|
22279
|
-
const _hoisted_1$
|
|
22342
|
+
const _hoisted_1$J = {
|
|
22280
22343
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22281
22344
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22282
22345
|
};
|
|
22283
|
-
const _hoisted_2$
|
|
22284
|
-
const _hoisted_3$
|
|
22285
|
-
const _sfc_main$
|
|
22346
|
+
const _hoisted_2$x = { key: 0 };
|
|
22347
|
+
const _hoisted_3$o = ["placeholder"];
|
|
22348
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
22286
22349
|
__name: "HierarchyFacet",
|
|
22287
22350
|
props: {
|
|
22288
22351
|
options: {},
|
|
@@ -22332,19 +22395,19 @@ and ensure you are accounting for this risk.
|
|
|
22332
22395
|
showAll.value = true;
|
|
22333
22396
|
};
|
|
22334
22397
|
return (_ctx, _cache) => {
|
|
22335
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22336
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22398
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
22399
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
22337
22400
|
withDirectives(createBaseVNode("input", {
|
|
22338
22401
|
class: "lupa-term-filter",
|
|
22339
22402
|
"data-cy": "lupa-term-filter",
|
|
22340
22403
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22341
22404
|
placeholder: _ctx.options.labels.facetFilter
|
|
22342
|
-
}, null, 8, _hoisted_3$
|
|
22405
|
+
}, null, 8, _hoisted_3$o), [
|
|
22343
22406
|
[vModelText, termFilter.value]
|
|
22344
22407
|
])
|
|
22345
22408
|
])) : createCommentVNode("", true),
|
|
22346
22409
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22347
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22410
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
22348
22411
|
key: item.title,
|
|
22349
22412
|
options: _ctx.options,
|
|
22350
22413
|
item,
|
|
@@ -22364,20 +22427,20 @@ and ensure you are accounting for this risk.
|
|
|
22364
22427
|
};
|
|
22365
22428
|
}
|
|
22366
22429
|
});
|
|
22367
|
-
const _hoisted_1$
|
|
22368
|
-
const _hoisted_2$
|
|
22430
|
+
const _hoisted_1$I = { class: "lupa-facet-label-text" };
|
|
22431
|
+
const _hoisted_2$w = {
|
|
22369
22432
|
key: 0,
|
|
22370
22433
|
class: "lupa-facet-content",
|
|
22371
22434
|
"data-cy": "lupa-facet-content"
|
|
22372
22435
|
};
|
|
22373
22436
|
const __default__$1 = {
|
|
22374
22437
|
components: {
|
|
22375
|
-
TermFacet: _sfc_main$
|
|
22376
|
-
StatsFacet: _sfc_main$
|
|
22377
|
-
HierarchyFacet: _sfc_main$
|
|
22438
|
+
TermFacet: _sfc_main$R,
|
|
22439
|
+
StatsFacet: _sfc_main$Q,
|
|
22440
|
+
HierarchyFacet: _sfc_main$O
|
|
22378
22441
|
}
|
|
22379
22442
|
};
|
|
22380
|
-
const _sfc_main$
|
|
22443
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22381
22444
|
__name: "FacetDisplay",
|
|
22382
22445
|
props: {
|
|
22383
22446
|
options: {},
|
|
@@ -22489,12 +22552,12 @@ and ensure you are accounting for this risk.
|
|
|
22489
22552
|
"data-cy": "lupa-search-result-facet-label",
|
|
22490
22553
|
onClick: toggleFacet
|
|
22491
22554
|
}, [
|
|
22492
|
-
createBaseVNode("div", _hoisted_1$
|
|
22555
|
+
createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
|
|
22493
22556
|
createBaseVNode("div", {
|
|
22494
22557
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22495
22558
|
}, null, 2)
|
|
22496
22559
|
], 2),
|
|
22497
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22560
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
22498
22561
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
22499
22562
|
facet: facet.value,
|
|
22500
22563
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -22512,12 +22575,12 @@ and ensure you are accounting for this risk.
|
|
|
22512
22575
|
};
|
|
22513
22576
|
}
|
|
22514
22577
|
}));
|
|
22515
|
-
const _hoisted_1$
|
|
22516
|
-
const _hoisted_2$
|
|
22578
|
+
const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
|
|
22579
|
+
const _hoisted_2$v = {
|
|
22517
22580
|
key: 0,
|
|
22518
22581
|
class: "lupa-facets-title"
|
|
22519
22582
|
};
|
|
22520
|
-
const _sfc_main$
|
|
22583
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22521
22584
|
__name: "FacetList",
|
|
22522
22585
|
props: {
|
|
22523
22586
|
options: {},
|
|
@@ -22551,14 +22614,14 @@ and ensure you are accounting for this risk.
|
|
|
22551
22614
|
};
|
|
22552
22615
|
return (_ctx, _cache) => {
|
|
22553
22616
|
var _a;
|
|
22554
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22555
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22617
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
22618
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22556
22619
|
createBaseVNode("div", {
|
|
22557
22620
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22558
22621
|
}, [
|
|
22559
22622
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22560
22623
|
var _a2;
|
|
22561
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22624
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
22562
22625
|
key: facet.key,
|
|
22563
22626
|
facet,
|
|
22564
22627
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22573,8 +22636,8 @@ and ensure you are accounting for this risk.
|
|
|
22573
22636
|
};
|
|
22574
22637
|
}
|
|
22575
22638
|
});
|
|
22576
|
-
const _hoisted_1$
|
|
22577
|
-
const _sfc_main$
|
|
22639
|
+
const _hoisted_1$G = ["onClick"];
|
|
22640
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
22578
22641
|
__name: "FacetsButton",
|
|
22579
22642
|
props: {
|
|
22580
22643
|
options: {}
|
|
@@ -22594,13 +22657,13 @@ and ensure you are accounting for this risk.
|
|
|
22594
22657
|
key: 0,
|
|
22595
22658
|
class: "lupa-facets-button-filter",
|
|
22596
22659
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22597
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22660
|
+
}, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
|
|
22598
22661
|
};
|
|
22599
22662
|
}
|
|
22600
22663
|
});
|
|
22601
|
-
const _hoisted_1$
|
|
22602
|
-
const _hoisted_2$
|
|
22603
|
-
const _sfc_main$
|
|
22664
|
+
const _hoisted_1$F = { class: "lupa-search-result-facets" };
|
|
22665
|
+
const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
|
|
22666
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22604
22667
|
__name: "Facets",
|
|
22605
22668
|
props: {
|
|
22606
22669
|
options: {},
|
|
@@ -22683,8 +22746,8 @@ and ensure you are accounting for this risk.
|
|
|
22683
22746
|
emit2("filter");
|
|
22684
22747
|
};
|
|
22685
22748
|
return (_ctx, _cache) => {
|
|
22686
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22687
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22749
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22750
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
22688
22751
|
key: 0,
|
|
22689
22752
|
options: _ctx.options,
|
|
22690
22753
|
facets: regularFacets.value,
|
|
@@ -22694,8 +22757,8 @@ and ensure you are accounting for this risk.
|
|
|
22694
22757
|
onSelect: handleFacetSelect,
|
|
22695
22758
|
onClear: clear2
|
|
22696
22759
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22697
|
-
createBaseVNode("div", _hoisted_2$
|
|
22698
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22760
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
22761
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
22699
22762
|
key: 0,
|
|
22700
22763
|
options: _ctx.options,
|
|
22701
22764
|
onFilter: filter2
|
|
@@ -22705,11 +22768,11 @@ and ensure you are accounting for this risk.
|
|
|
22705
22768
|
};
|
|
22706
22769
|
}
|
|
22707
22770
|
});
|
|
22708
|
-
const _hoisted_1$
|
|
22771
|
+
const _hoisted_1$E = {
|
|
22709
22772
|
id: "lupa-search-result-filters",
|
|
22710
22773
|
class: "lupa-search-result-filters"
|
|
22711
22774
|
};
|
|
22712
|
-
const _sfc_main$
|
|
22775
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22713
22776
|
__name: "SearchResultsFilters",
|
|
22714
22777
|
props: {
|
|
22715
22778
|
options: {},
|
|
@@ -22742,19 +22805,19 @@ and ensure you are accounting for this risk.
|
|
|
22742
22805
|
__expose({ fetch: fetch2 });
|
|
22743
22806
|
return (_ctx, _cache) => {
|
|
22744
22807
|
var _a;
|
|
22745
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22746
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22808
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
22809
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
22747
22810
|
key: 0,
|
|
22748
22811
|
options: _ctx.options.currentFilters,
|
|
22749
22812
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22750
22813
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22751
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22814
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
22752
22815
|
key: 1,
|
|
22753
22816
|
options: _ctx.options.categories,
|
|
22754
22817
|
ref_key: "categoryFilters",
|
|
22755
22818
|
ref: categoryFilters
|
|
22756
22819
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22757
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22820
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22758
22821
|
key: 2,
|
|
22759
22822
|
options: _ctx.options.facets,
|
|
22760
22823
|
onFilter: filter2
|
|
@@ -22763,20 +22826,20 @@ and ensure you are accounting for this risk.
|
|
|
22763
22826
|
};
|
|
22764
22827
|
}
|
|
22765
22828
|
});
|
|
22766
|
-
const _hoisted_1$
|
|
22829
|
+
const _hoisted_1$D = {
|
|
22767
22830
|
key: 0,
|
|
22768
22831
|
class: "lupa-mobile-filter-sidebar"
|
|
22769
22832
|
};
|
|
22770
|
-
const _hoisted_2$
|
|
22771
|
-
const _hoisted_3$
|
|
22772
|
-
const _hoisted_4$
|
|
22773
|
-
const _hoisted_5$
|
|
22833
|
+
const _hoisted_2$t = ["onClick"];
|
|
22834
|
+
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
22835
|
+
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
22836
|
+
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
22774
22837
|
const _hoisted_6$6 = {
|
|
22775
22838
|
key: 0,
|
|
22776
22839
|
class: "lupa-sidebar-filter-count"
|
|
22777
22840
|
};
|
|
22778
22841
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22779
|
-
const _sfc_main$
|
|
22842
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
22780
22843
|
__name: "MobileFilterSidebar",
|
|
22781
22844
|
props: {
|
|
22782
22845
|
options: {}
|
|
@@ -22807,14 +22870,14 @@ and ensure you are accounting for this risk.
|
|
|
22807
22870
|
handleMobileToggle();
|
|
22808
22871
|
};
|
|
22809
22872
|
return (_ctx, _cache) => {
|
|
22810
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22873
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
22811
22874
|
createBaseVNode("div", {
|
|
22812
22875
|
class: "lupa-sidebar-close",
|
|
22813
22876
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22814
|
-
}, null, 8, _hoisted_2$
|
|
22815
|
-
createBaseVNode("div", _hoisted_3$
|
|
22816
|
-
createBaseVNode("div", _hoisted_4$
|
|
22817
|
-
createBaseVNode("div", _hoisted_5$
|
|
22877
|
+
}, null, 8, _hoisted_2$t),
|
|
22878
|
+
createBaseVNode("div", _hoisted_3$n, [
|
|
22879
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
22880
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
22818
22881
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22819
22882
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22820
22883
|
]),
|
|
@@ -22824,7 +22887,7 @@ and ensure you are accounting for this risk.
|
|
|
22824
22887
|
})
|
|
22825
22888
|
]),
|
|
22826
22889
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22827
|
-
createVNode(_sfc_main$
|
|
22890
|
+
createVNode(_sfc_main$J, {
|
|
22828
22891
|
options: _ctx.options,
|
|
22829
22892
|
expandable: isActiveFiltersExpanded.value,
|
|
22830
22893
|
onFilter: filter2
|
|
@@ -22835,14 +22898,14 @@ and ensure you are accounting for this risk.
|
|
|
22835
22898
|
};
|
|
22836
22899
|
}
|
|
22837
22900
|
});
|
|
22838
|
-
const _hoisted_1$
|
|
22839
|
-
const _hoisted_2$
|
|
22840
|
-
const _hoisted_3$
|
|
22901
|
+
const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
|
|
22902
|
+
const _hoisted_2$s = ["href", "onClick"];
|
|
22903
|
+
const _hoisted_3$m = {
|
|
22841
22904
|
key: 1,
|
|
22842
22905
|
class: "lupa-search-results-breadcrumb-text"
|
|
22843
22906
|
};
|
|
22844
|
-
const _hoisted_4$
|
|
22845
|
-
const _sfc_main$
|
|
22907
|
+
const _hoisted_4$g = { key: 2 };
|
|
22908
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22846
22909
|
__name: "SearchResultsBreadcrumbs",
|
|
22847
22910
|
props: {
|
|
22848
22911
|
breadcrumbs: {}
|
|
@@ -22867,7 +22930,7 @@ and ensure you are accounting for this risk.
|
|
|
22867
22930
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
22868
22931
|
};
|
|
22869
22932
|
return (_ctx, _cache) => {
|
|
22870
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22933
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
22871
22934
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
22872
22935
|
return openBlock(), createElementBlock("span", {
|
|
22873
22936
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -22881,19 +22944,19 @@ and ensure you are accounting for this risk.
|
|
|
22881
22944
|
var _a;
|
|
22882
22945
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
22883
22946
|
}
|
|
22884
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
22885
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22947
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
22948
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
|
|
22886
22949
|
]);
|
|
22887
22950
|
}), 128))
|
|
22888
22951
|
]);
|
|
22889
22952
|
};
|
|
22890
22953
|
}
|
|
22891
22954
|
});
|
|
22892
|
-
const _hoisted_1$
|
|
22955
|
+
const _hoisted_1$B = {
|
|
22893
22956
|
id: "lupa-search-result-filters",
|
|
22894
22957
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
22895
22958
|
};
|
|
22896
|
-
const _sfc_main$
|
|
22959
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
22897
22960
|
__name: "FiltersTopDropdown",
|
|
22898
22961
|
props: {
|
|
22899
22962
|
options: {}
|
|
@@ -22905,8 +22968,8 @@ and ensure you are accounting for this risk.
|
|
|
22905
22968
|
};
|
|
22906
22969
|
return (_ctx, _cache) => {
|
|
22907
22970
|
var _a;
|
|
22908
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22909
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22971
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
22972
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22910
22973
|
key: 0,
|
|
22911
22974
|
options: _ctx.options.facets,
|
|
22912
22975
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -22917,8 +22980,8 @@ and ensure you are accounting for this risk.
|
|
|
22917
22980
|
};
|
|
22918
22981
|
}
|
|
22919
22982
|
});
|
|
22920
|
-
const _hoisted_1$
|
|
22921
|
-
const _sfc_main$
|
|
22983
|
+
const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
|
|
22984
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22922
22985
|
__name: "SearchResultsLayoutSelection",
|
|
22923
22986
|
setup(__props) {
|
|
22924
22987
|
const searchResultStore = useSearchResultStore();
|
|
@@ -22929,7 +22992,7 @@ and ensure you are accounting for this risk.
|
|
|
22929
22992
|
searchResultStore.setLayout(layout2);
|
|
22930
22993
|
};
|
|
22931
22994
|
return (_ctx, _cache) => {
|
|
22932
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22995
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
22933
22996
|
createBaseVNode("div", {
|
|
22934
22997
|
class: normalizeClass([
|
|
22935
22998
|
"lupa-layout-selection-grid",
|
|
@@ -22951,11 +23014,11 @@ and ensure you are accounting for this risk.
|
|
|
22951
23014
|
};
|
|
22952
23015
|
}
|
|
22953
23016
|
});
|
|
22954
|
-
const _hoisted_1$
|
|
23017
|
+
const _hoisted_1$z = {
|
|
22955
23018
|
key: 0,
|
|
22956
23019
|
class: "lupa-mobile-toggle-filter-count"
|
|
22957
23020
|
};
|
|
22958
|
-
const _sfc_main$
|
|
23021
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22959
23022
|
__name: "SearchResultsMobileToggle",
|
|
22960
23023
|
props: {
|
|
22961
23024
|
label: {},
|
|
@@ -22973,26 +23036,26 @@ and ensure you are accounting for this risk.
|
|
|
22973
23036
|
onClick: handleMobileToggle
|
|
22974
23037
|
}, [
|
|
22975
23038
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22976
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
23039
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22977
23040
|
], 2);
|
|
22978
23041
|
};
|
|
22979
23042
|
}
|
|
22980
23043
|
});
|
|
22981
|
-
const _hoisted_1$
|
|
23044
|
+
const _hoisted_1$y = {
|
|
22982
23045
|
key: 0,
|
|
22983
23046
|
id: "lupa-search-results-page-select",
|
|
22984
23047
|
"data-cy": "lupa-search-results-page-select"
|
|
22985
23048
|
};
|
|
22986
|
-
const _hoisted_2$
|
|
23049
|
+
const _hoisted_2$r = {
|
|
22987
23050
|
key: 0,
|
|
22988
23051
|
class: "lupa-page-number-separator"
|
|
22989
23052
|
};
|
|
22990
|
-
const _hoisted_3$
|
|
22991
|
-
const _hoisted_4$
|
|
23053
|
+
const _hoisted_3$l = ["onClick"];
|
|
23054
|
+
const _hoisted_4$f = {
|
|
22992
23055
|
key: 0,
|
|
22993
23056
|
class: "lupa-page-number-separator"
|
|
22994
23057
|
};
|
|
22995
|
-
const _sfc_main$
|
|
23058
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22996
23059
|
__name: "SearchResultsPageSelect",
|
|
22997
23060
|
props: {
|
|
22998
23061
|
lastPageLabel: {},
|
|
@@ -23069,7 +23132,7 @@ and ensure you are accounting for this risk.
|
|
|
23069
23132
|
}
|
|
23070
23133
|
};
|
|
23071
23134
|
return (_ctx, _cache) => {
|
|
23072
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23135
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23073
23136
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23074
23137
|
key: 0,
|
|
23075
23138
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23080,7 +23143,7 @@ and ensure you are accounting for this risk.
|
|
|
23080
23143
|
class: "lupa-page-number lupa-page-number-first",
|
|
23081
23144
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
23082
23145
|
}, " 1 "),
|
|
23083
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23146
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
|
|
23084
23147
|
], 64)) : createCommentVNode("", true),
|
|
23085
23148
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
23086
23149
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23091,10 +23154,10 @@ and ensure you are accounting for this risk.
|
|
|
23091
23154
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23092
23155
|
]),
|
|
23093
23156
|
"data-cy": "lupa-page-number"
|
|
23094
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23157
|
+
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23095
23158
|
}), 128)),
|
|
23096
23159
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23097
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23160
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
23098
23161
|
createBaseVNode("div", {
|
|
23099
23162
|
class: "lupa-page-number lupa-page-number-last",
|
|
23100
23163
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23113,15 +23176,15 @@ and ensure you are accounting for this risk.
|
|
|
23113
23176
|
};
|
|
23114
23177
|
}
|
|
23115
23178
|
});
|
|
23116
|
-
const _hoisted_1$
|
|
23179
|
+
const _hoisted_1$x = {
|
|
23117
23180
|
id: "lupa-search-results-page-size",
|
|
23118
23181
|
"data-cy": "lupa-search-results-page-size"
|
|
23119
23182
|
};
|
|
23120
|
-
const _hoisted_2$
|
|
23121
|
-
const _hoisted_3$
|
|
23122
|
-
const _hoisted_4$
|
|
23123
|
-
const _hoisted_5$
|
|
23124
|
-
const _sfc_main$
|
|
23183
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
23184
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23185
|
+
const _hoisted_4$e = ["aria-label"];
|
|
23186
|
+
const _hoisted_5$9 = ["value"];
|
|
23187
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23125
23188
|
__name: "SearchResultsPageSize",
|
|
23126
23189
|
props: {
|
|
23127
23190
|
labels: {},
|
|
@@ -23149,9 +23212,9 @@ and ensure you are accounting for this risk.
|
|
|
23149
23212
|
});
|
|
23150
23213
|
};
|
|
23151
23214
|
return (_ctx, _cache) => {
|
|
23152
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23153
|
-
createBaseVNode("div", _hoisted_2$
|
|
23154
|
-
createBaseVNode("label", _hoisted_3$
|
|
23215
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23216
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
23217
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
|
|
23155
23218
|
createBaseVNode("select", {
|
|
23156
23219
|
class: "lupa-select-dropdown",
|
|
23157
23220
|
"aria-label": label.value,
|
|
@@ -23164,23 +23227,23 @@ and ensure you are accounting for this risk.
|
|
|
23164
23227
|
return openBlock(), createElementBlock("option", {
|
|
23165
23228
|
key: option,
|
|
23166
23229
|
value: option
|
|
23167
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
23230
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23168
23231
|
}), 128))
|
|
23169
|
-
], 40, _hoisted_4$
|
|
23232
|
+
], 40, _hoisted_4$e)
|
|
23170
23233
|
])
|
|
23171
23234
|
]);
|
|
23172
23235
|
};
|
|
23173
23236
|
}
|
|
23174
23237
|
});
|
|
23175
|
-
const _hoisted_1$
|
|
23238
|
+
const _hoisted_1$w = {
|
|
23176
23239
|
id: "lupa-search-results-sort",
|
|
23177
23240
|
class: "lupa-search-results-sort"
|
|
23178
23241
|
};
|
|
23179
|
-
const _hoisted_2$
|
|
23180
|
-
const _hoisted_3$
|
|
23181
|
-
const _hoisted_4$
|
|
23182
|
-
const _hoisted_5$
|
|
23183
|
-
const _sfc_main$
|
|
23242
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
23243
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23244
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23245
|
+
const _hoisted_5$8 = ["value"];
|
|
23246
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23184
23247
|
__name: "SearchResultsSort",
|
|
23185
23248
|
props: {
|
|
23186
23249
|
options: {},
|
|
@@ -23229,9 +23292,9 @@ and ensure you are accounting for this risk.
|
|
|
23229
23292
|
previousKey.value = selectedKey.value;
|
|
23230
23293
|
};
|
|
23231
23294
|
return (_ctx, _cache) => {
|
|
23232
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23233
|
-
createBaseVNode("div", _hoisted_2$
|
|
23234
|
-
createBaseVNode("label", _hoisted_3$
|
|
23295
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
23296
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
23297
|
+
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
|
|
23235
23298
|
withDirectives(createBaseVNode("select", {
|
|
23236
23299
|
class: "lupa-select-dropdown",
|
|
23237
23300
|
"aria-label": _ctx.options.label,
|
|
@@ -23244,9 +23307,9 @@ and ensure you are accounting for this risk.
|
|
|
23244
23307
|
return openBlock(), createElementBlock("option", {
|
|
23245
23308
|
key: option.key,
|
|
23246
23309
|
value: option.key
|
|
23247
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
23310
|
+
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23248
23311
|
}), 128))
|
|
23249
|
-
], 40, _hoisted_4$
|
|
23312
|
+
], 40, _hoisted_4$d), [
|
|
23250
23313
|
[vModelSelect, selectedKey.value]
|
|
23251
23314
|
])
|
|
23252
23315
|
])
|
|
@@ -23254,14 +23317,14 @@ and ensure you are accounting for this risk.
|
|
|
23254
23317
|
};
|
|
23255
23318
|
}
|
|
23256
23319
|
});
|
|
23257
|
-
const _hoisted_1$
|
|
23258
|
-
const _hoisted_2$
|
|
23320
|
+
const _hoisted_1$v = { class: "lupa-toolbar-left" };
|
|
23321
|
+
const _hoisted_2$o = {
|
|
23259
23322
|
key: 0,
|
|
23260
23323
|
class: "lupa-toolbar-right-title"
|
|
23261
23324
|
};
|
|
23262
|
-
const _hoisted_3$
|
|
23263
|
-
const _hoisted_4$
|
|
23264
|
-
const _hoisted_5$
|
|
23325
|
+
const _hoisted_3$i = { key: 2 };
|
|
23326
|
+
const _hoisted_4$c = { key: 4 };
|
|
23327
|
+
const _hoisted_5$7 = { key: 6 };
|
|
23265
23328
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23266
23329
|
const _hoisted_7$3 = {
|
|
23267
23330
|
key: 0,
|
|
@@ -23269,7 +23332,7 @@ and ensure you are accounting for this risk.
|
|
|
23269
23332
|
};
|
|
23270
23333
|
const _hoisted_8 = { key: 2 };
|
|
23271
23334
|
const _hoisted_9 = { key: 4 };
|
|
23272
|
-
const _sfc_main$
|
|
23335
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23273
23336
|
__name: "SearchResultsToolbar",
|
|
23274
23337
|
props: {
|
|
23275
23338
|
options: {},
|
|
@@ -23376,34 +23439,34 @@ and ensure you are accounting for this risk.
|
|
|
23376
23439
|
id: "lupa-search-results-toolbar",
|
|
23377
23440
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23378
23441
|
}, [
|
|
23379
|
-
createBaseVNode("div", _hoisted_1$
|
|
23380
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23381
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23382
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23442
|
+
createBaseVNode("div", _hoisted_1$v, [
|
|
23443
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23444
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
|
|
23445
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
23383
23446
|
key: 3,
|
|
23384
23447
|
label: searchSummaryLabel.value,
|
|
23385
23448
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23386
23449
|
onClear: handleClearAll
|
|
23387
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23388
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23450
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
23451
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23389
23452
|
key: 5,
|
|
23390
23453
|
options: paginationOptions.value.pageSelect,
|
|
23391
23454
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
23392
23455
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
23393
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
23456
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
|
|
23394
23457
|
]),
|
|
23395
23458
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23396
23459
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23397
|
-
createVNode(_sfc_main$
|
|
23460
|
+
createVNode(_sfc_main$E, {
|
|
23398
23461
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23399
23462
|
"show-filter-count": showMobileFilterCount.value
|
|
23400
23463
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23401
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23464
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
|
|
23402
23465
|
key: 1,
|
|
23403
23466
|
options: paginationOptions.value.pageSize,
|
|
23404
23467
|
labels: paginationOptions.value.labels
|
|
23405
23468
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23406
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23469
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
23407
23470
|
key: 3,
|
|
23408
23471
|
options: sortOptions.value,
|
|
23409
23472
|
callbacks: callbacks.value
|
|
@@ -23413,7 +23476,7 @@ and ensure you are accounting for this risk.
|
|
|
23413
23476
|
};
|
|
23414
23477
|
}
|
|
23415
23478
|
});
|
|
23416
|
-
const _sfc_main$
|
|
23479
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23417
23480
|
__name: "SearchResultsProductImage",
|
|
23418
23481
|
props: {
|
|
23419
23482
|
item: {},
|
|
@@ -23421,7 +23484,7 @@ and ensure you are accounting for this risk.
|
|
|
23421
23484
|
},
|
|
23422
23485
|
setup(__props) {
|
|
23423
23486
|
return (_ctx, _cache) => {
|
|
23424
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23487
|
+
return openBlock(), createBlock(_sfc_main$1k, {
|
|
23425
23488
|
item: _ctx.item,
|
|
23426
23489
|
options: _ctx.options,
|
|
23427
23490
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23430,16 +23493,16 @@ and ensure you are accounting for this risk.
|
|
|
23430
23493
|
};
|
|
23431
23494
|
}
|
|
23432
23495
|
});
|
|
23433
|
-
const _hoisted_1$
|
|
23434
|
-
const _hoisted_2$
|
|
23435
|
-
const _hoisted_3$
|
|
23436
|
-
const _hoisted_4$
|
|
23437
|
-
const _hoisted_5$
|
|
23496
|
+
const _hoisted_1$u = ["title", "innerHTML"];
|
|
23497
|
+
const _hoisted_2$n = ["title"];
|
|
23498
|
+
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23499
|
+
const _hoisted_4$b = ["title"];
|
|
23500
|
+
const _hoisted_5$6 = {
|
|
23438
23501
|
key: 0,
|
|
23439
23502
|
class: "lupa-search-results-product-title-text"
|
|
23440
23503
|
};
|
|
23441
23504
|
const _hoisted_6$4 = ["href"];
|
|
23442
|
-
const _sfc_main$
|
|
23505
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23443
23506
|
__name: "SearchResultsProductTitle",
|
|
23444
23507
|
props: {
|
|
23445
23508
|
item: {},
|
|
@@ -23476,7 +23539,7 @@ and ensure you are accounting for this risk.
|
|
|
23476
23539
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23477
23540
|
title: sanitizedTitle.value,
|
|
23478
23541
|
innerHTML: sanitizedTitle.value
|
|
23479
|
-
}, null, 12, _hoisted_1$
|
|
23542
|
+
}, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23480
23543
|
key: 1,
|
|
23481
23544
|
class: "lupa-search-results-product-title",
|
|
23482
23545
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23487,26 +23550,26 @@ and ensure you are accounting for this risk.
|
|
|
23487
23550
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23488
23551
|
innerHTML: sanitizedTitle.value,
|
|
23489
23552
|
onClick: handleNavigation
|
|
23490
|
-
}, null, 8, _hoisted_3$
|
|
23491
|
-
], 12, _hoisted_2$
|
|
23553
|
+
}, null, 8, _hoisted_3$h)
|
|
23554
|
+
], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
|
|
23492
23555
|
key: 2,
|
|
23493
23556
|
class: "lupa-search-results-product-title",
|
|
23494
23557
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23495
23558
|
title: title.value
|
|
23496
23559
|
}, [
|
|
23497
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
23560
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
23498
23561
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
23499
23562
|
key: 1,
|
|
23500
23563
|
href: _ctx.link,
|
|
23501
23564
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23502
23565
|
onClick: handleNavigation
|
|
23503
23566
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23504
|
-
], 12, _hoisted_4$
|
|
23567
|
+
], 12, _hoisted_4$b));
|
|
23505
23568
|
};
|
|
23506
23569
|
}
|
|
23507
23570
|
});
|
|
23508
|
-
const _hoisted_1$
|
|
23509
|
-
const _sfc_main$
|
|
23571
|
+
const _hoisted_1$t = ["innerHTML"];
|
|
23572
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23510
23573
|
__name: "SearchResultsProductDescription",
|
|
23511
23574
|
props: {
|
|
23512
23575
|
item: {},
|
|
@@ -23533,7 +23596,7 @@ and ensure you are accounting for this risk.
|
|
|
23533
23596
|
class: "lupa-search-results-product-description",
|
|
23534
23597
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23535
23598
|
innerHTML: sanitizedDescription.value
|
|
23536
|
-
}, null, 12, _hoisted_1$
|
|
23599
|
+
}, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
|
|
23537
23600
|
key: 1,
|
|
23538
23601
|
class: "lupa-search-results-product-description",
|
|
23539
23602
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23541,15 +23604,15 @@ and ensure you are accounting for this risk.
|
|
|
23541
23604
|
};
|
|
23542
23605
|
}
|
|
23543
23606
|
});
|
|
23544
|
-
const _hoisted_1$
|
|
23545
|
-
const _hoisted_2$
|
|
23546
|
-
const _hoisted_3$
|
|
23547
|
-
const _hoisted_4$
|
|
23548
|
-
const _hoisted_5$
|
|
23607
|
+
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
23608
|
+
const _hoisted_2$m = { class: "lupa-ratings" };
|
|
23609
|
+
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23610
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
23611
|
+
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23549
23612
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23550
23613
|
const _hoisted_7$2 = ["href"];
|
|
23551
23614
|
const STAR_COUNT = 5;
|
|
23552
|
-
const _sfc_main$
|
|
23615
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23553
23616
|
__name: "SearchResultsProductRating",
|
|
23554
23617
|
props: {
|
|
23555
23618
|
item: {},
|
|
@@ -23570,7 +23633,13 @@ and ensure you are accounting for this risk.
|
|
|
23570
23633
|
return new Array(STAR_COUNT).fill(RATING_STAR_HTML);
|
|
23571
23634
|
});
|
|
23572
23635
|
const ratingPercentage = computed(() => {
|
|
23573
|
-
|
|
23636
|
+
if (props.options.getRatingPercentage) {
|
|
23637
|
+
return props.options.getRatingPercentage(props.item);
|
|
23638
|
+
}
|
|
23639
|
+
if (props.options.maxRating) {
|
|
23640
|
+
return currentRating.value / props.options.maxRating * 100;
|
|
23641
|
+
}
|
|
23642
|
+
return currentRating.value;
|
|
23574
23643
|
});
|
|
23575
23644
|
const ratingLink = computed(() => {
|
|
23576
23645
|
var _a;
|
|
@@ -23580,18 +23649,18 @@ and ensure you are accounting for this risk.
|
|
|
23580
23649
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23581
23650
|
});
|
|
23582
23651
|
return (_ctx, _cache) => {
|
|
23583
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23584
|
-
createBaseVNode("div", _hoisted_2$
|
|
23585
|
-
createBaseVNode("div", _hoisted_3$
|
|
23652
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
23653
|
+
createBaseVNode("div", _hoisted_2$m, [
|
|
23654
|
+
createBaseVNode("div", _hoisted_3$g, [
|
|
23586
23655
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23587
23656
|
return openBlock(), createElementBlock("div", {
|
|
23588
23657
|
key: index,
|
|
23589
23658
|
innerHTML: star,
|
|
23590
23659
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23591
|
-
}, null, 8, _hoisted_4$
|
|
23660
|
+
}, null, 8, _hoisted_4$a);
|
|
23592
23661
|
}), 128))
|
|
23593
23662
|
]),
|
|
23594
|
-
createBaseVNode("div", _hoisted_5$
|
|
23663
|
+
createBaseVNode("div", _hoisted_5$5, [
|
|
23595
23664
|
createBaseVNode("div", {
|
|
23596
23665
|
class: "lupa-ratings-highlighted",
|
|
23597
23666
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -23614,11 +23683,11 @@ and ensure you are accounting for this risk.
|
|
|
23614
23683
|
};
|
|
23615
23684
|
}
|
|
23616
23685
|
});
|
|
23617
|
-
const _hoisted_1$
|
|
23686
|
+
const _hoisted_1$r = {
|
|
23618
23687
|
class: "lupa-search-results-product-regular-price",
|
|
23619
23688
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23620
23689
|
};
|
|
23621
|
-
const _sfc_main$
|
|
23690
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23622
23691
|
__name: "SearchResultsProductRegularPrice",
|
|
23623
23692
|
props: {
|
|
23624
23693
|
item: {},
|
|
@@ -23636,11 +23705,11 @@ and ensure you are accounting for this risk.
|
|
|
23636
23705
|
);
|
|
23637
23706
|
});
|
|
23638
23707
|
return (_ctx, _cache) => {
|
|
23639
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23708
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
|
|
23640
23709
|
};
|
|
23641
23710
|
}
|
|
23642
23711
|
});
|
|
23643
|
-
const _sfc_main$
|
|
23712
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23644
23713
|
__name: "SearchResultsProductPrice",
|
|
23645
23714
|
props: {
|
|
23646
23715
|
item: {},
|
|
@@ -23670,10 +23739,10 @@ and ensure you are accounting for this risk.
|
|
|
23670
23739
|
};
|
|
23671
23740
|
}
|
|
23672
23741
|
});
|
|
23673
|
-
const _hoisted_1$
|
|
23674
|
-
const _hoisted_2$
|
|
23675
|
-
const _hoisted_3$
|
|
23676
|
-
const _sfc_main$
|
|
23742
|
+
const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23743
|
+
const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
|
|
23744
|
+
const _hoisted_3$f = ["id", "disabled", "onClick"];
|
|
23745
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23677
23746
|
__name: "SearchResultsProductAddToCart",
|
|
23678
23747
|
props: {
|
|
23679
23748
|
item: {},
|
|
@@ -23693,11 +23762,16 @@ and ensure you are accounting for this risk.
|
|
|
23693
23762
|
const label = computed(() => {
|
|
23694
23763
|
return props.options.labels.addToCart;
|
|
23695
23764
|
});
|
|
23765
|
+
const id = computed(() => {
|
|
23766
|
+
var _a;
|
|
23767
|
+
const id2 = (_a = props.item.id) != null ? _a : "";
|
|
23768
|
+
return `lupa-add-to-cart-${id2}`;
|
|
23769
|
+
});
|
|
23696
23770
|
const handleClick = () => __async2(this, null, function* () {
|
|
23697
23771
|
loading.value = true;
|
|
23698
23772
|
if (props.options.emitEvent) {
|
|
23699
23773
|
const event = new CustomEvent(props.options.emitEvent, { detail: { item: props.item } });
|
|
23700
|
-
|
|
23774
|
+
document.dispatchEvent(event);
|
|
23701
23775
|
}
|
|
23702
23776
|
if (props.options.action) {
|
|
23703
23777
|
yield props.options.action(props.item, addToCartAmount.value);
|
|
@@ -23706,25 +23780,26 @@ and ensure you are accounting for this risk.
|
|
|
23706
23780
|
loading.value = false;
|
|
23707
23781
|
});
|
|
23708
23782
|
return (_ctx, _cache) => {
|
|
23709
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23710
|
-
createBaseVNode("div", _hoisted_2$
|
|
23783
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
23784
|
+
createBaseVNode("div", _hoisted_2$l, [
|
|
23711
23785
|
createBaseVNode("button", {
|
|
23712
|
-
|
|
23786
|
+
id: id.value,
|
|
23713
23787
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
23714
23788
|
"data-cy": "lupa-add-to-cart",
|
|
23715
|
-
disabled: !inStockValue.value || loading.value
|
|
23716
|
-
|
|
23789
|
+
disabled: !inStockValue.value || loading.value,
|
|
23790
|
+
onClick: withModifiers(handleClick, ["stop"])
|
|
23791
|
+
}, toDisplayString(label.value), 11, _hoisted_3$f)
|
|
23717
23792
|
])
|
|
23718
23793
|
]);
|
|
23719
23794
|
};
|
|
23720
23795
|
}
|
|
23721
23796
|
});
|
|
23722
|
-
const _hoisted_1$
|
|
23723
|
-
const _hoisted_2$
|
|
23724
|
-
const _hoisted_3$
|
|
23725
|
-
const _hoisted_4$
|
|
23726
|
-
const _hoisted_5$
|
|
23727
|
-
const _sfc_main$
|
|
23797
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
23798
|
+
const _hoisted_2$k = { key: 0 };
|
|
23799
|
+
const _hoisted_3$e = { key: 1 };
|
|
23800
|
+
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
23801
|
+
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
23802
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23728
23803
|
__name: "SearchResultsProductCustom",
|
|
23729
23804
|
props: {
|
|
23730
23805
|
item: {},
|
|
@@ -23762,20 +23837,20 @@ and ensure you are accounting for this risk.
|
|
|
23762
23837
|
key: 0,
|
|
23763
23838
|
class: className.value,
|
|
23764
23839
|
innerHTML: text.value
|
|
23765
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23840
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23766
23841
|
key: 1,
|
|
23767
23842
|
class: className.value
|
|
23768
23843
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23769
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23770
|
-
createBaseVNode("div", _hoisted_4$
|
|
23771
|
-
createBaseVNode("div", _hoisted_5$
|
|
23844
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
23845
|
+
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
23846
|
+
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
23772
23847
|
]))
|
|
23773
23848
|
], 16));
|
|
23774
23849
|
};
|
|
23775
23850
|
}
|
|
23776
23851
|
});
|
|
23777
|
-
const _hoisted_1$
|
|
23778
|
-
const _sfc_main$
|
|
23852
|
+
const _hoisted_1$o = ["innerHTML"];
|
|
23853
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23779
23854
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23780
23855
|
props: {
|
|
23781
23856
|
item: {},
|
|
@@ -23806,15 +23881,15 @@ and ensure you are accounting for this risk.
|
|
|
23806
23881
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23807
23882
|
class: className.value,
|
|
23808
23883
|
innerHTML: text.value
|
|
23809
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23884
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
|
|
23810
23885
|
};
|
|
23811
23886
|
}
|
|
23812
23887
|
});
|
|
23813
|
-
const _hoisted_1$
|
|
23814
|
-
const _hoisted_2$
|
|
23815
|
-
const _hoisted_3$
|
|
23816
|
-
const _hoisted_4$
|
|
23817
|
-
const _sfc_main$
|
|
23888
|
+
const _hoisted_1$n = { id: "lupa-search-results-rating" };
|
|
23889
|
+
const _hoisted_2$j = ["innerHTML"];
|
|
23890
|
+
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
23891
|
+
const _hoisted_4$8 = ["href"];
|
|
23892
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23818
23893
|
__name: "SearchResultsProductSingleStarRating",
|
|
23819
23894
|
props: {
|
|
23820
23895
|
item: {},
|
|
@@ -23842,35 +23917,35 @@ and ensure you are accounting for this risk.
|
|
|
23842
23917
|
return RATING_STAR_HTML;
|
|
23843
23918
|
});
|
|
23844
23919
|
return (_ctx, _cache) => {
|
|
23845
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23920
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
23846
23921
|
createBaseVNode("div", {
|
|
23847
23922
|
innerHTML: star.value,
|
|
23848
23923
|
class: "lupa-rating lupa-rating-highlighted"
|
|
23849
|
-
}, null, 8, _hoisted_2$
|
|
23850
|
-
createBaseVNode("div", _hoisted_3$
|
|
23924
|
+
}, null, 8, _hoisted_2$j),
|
|
23925
|
+
createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
|
|
23851
23926
|
createBaseVNode("a", {
|
|
23852
23927
|
href: ratingLink.value,
|
|
23853
23928
|
class: "lupa-total-ratings"
|
|
23854
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
23929
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
|
|
23855
23930
|
]);
|
|
23856
23931
|
};
|
|
23857
23932
|
}
|
|
23858
23933
|
});
|
|
23859
23934
|
const __default__ = {
|
|
23860
23935
|
components: {
|
|
23861
|
-
SearchResultsProductImage: _sfc_main$
|
|
23862
|
-
SearchResultsProductTitle: _sfc_main$
|
|
23863
|
-
SearchResultsProductDescription: _sfc_main$
|
|
23864
|
-
SearchResultsProductRating: _sfc_main$
|
|
23865
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
23866
|
-
SearchResultsProductPrice: _sfc_main$
|
|
23867
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
23868
|
-
SearchResultsProductCustom: _sfc_main$
|
|
23869
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
23870
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
23871
|
-
}
|
|
23872
|
-
};
|
|
23873
|
-
const _sfc_main$
|
|
23936
|
+
SearchResultsProductImage: _sfc_main$z,
|
|
23937
|
+
SearchResultsProductTitle: _sfc_main$y,
|
|
23938
|
+
SearchResultsProductDescription: _sfc_main$x,
|
|
23939
|
+
SearchResultsProductRating: _sfc_main$w,
|
|
23940
|
+
SearchResultsProductRegularPrice: _sfc_main$v,
|
|
23941
|
+
SearchResultsProductPrice: _sfc_main$u,
|
|
23942
|
+
SearchResultsProductAddToCart: _sfc_main$t,
|
|
23943
|
+
SearchResultsProductCustom: _sfc_main$s,
|
|
23944
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$r,
|
|
23945
|
+
SearchResultsProductSingleStarRating: _sfc_main$q
|
|
23946
|
+
}
|
|
23947
|
+
};
|
|
23948
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
23874
23949
|
__name: "SearchResultsProductCardElement",
|
|
23875
23950
|
props: {
|
|
23876
23951
|
item: {},
|
|
@@ -23946,13 +24021,13 @@ and ensure you are accounting for this risk.
|
|
|
23946
24021
|
};
|
|
23947
24022
|
}
|
|
23948
24023
|
}));
|
|
23949
|
-
const _hoisted_1$
|
|
23950
|
-
const _hoisted_2$
|
|
24024
|
+
const _hoisted_1$m = ["href"];
|
|
24025
|
+
const _hoisted_2$i = {
|
|
23951
24026
|
key: 0,
|
|
23952
24027
|
class: "lupa-out-of-stock"
|
|
23953
24028
|
};
|
|
23954
|
-
const _hoisted_3$
|
|
23955
|
-
const _sfc_main$
|
|
24029
|
+
const _hoisted_3$c = { class: "lupa-search-result-product-details-section" };
|
|
24030
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
23956
24031
|
__name: "SearchResultsProductCard",
|
|
23957
24032
|
props: {
|
|
23958
24033
|
product: {},
|
|
@@ -24104,7 +24179,7 @@ and ensure you are accounting for this risk.
|
|
|
24104
24179
|
"data-cy": "lupa-search-result-product-card",
|
|
24105
24180
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
24106
24181
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
24107
|
-
createVNode(_sfc_main$
|
|
24182
|
+
createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24108
24183
|
createBaseVNode("div", {
|
|
24109
24184
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24110
24185
|
}, [
|
|
@@ -24114,7 +24189,7 @@ and ensure you are accounting for this risk.
|
|
|
24114
24189
|
onClick: handleNavigation
|
|
24115
24190
|
}, [
|
|
24116
24191
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24117
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24192
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24118
24193
|
class: "lupa-search-results-product-element",
|
|
24119
24194
|
item: _ctx.product,
|
|
24120
24195
|
element,
|
|
@@ -24125,16 +24200,16 @@ and ensure you are accounting for this risk.
|
|
|
24125
24200
|
onProductEvent: handleProductEvent
|
|
24126
24201
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24127
24202
|
}), 128)),
|
|
24128
|
-
createVNode(_sfc_main$
|
|
24203
|
+
createVNode(_sfc_main$14, {
|
|
24129
24204
|
options: badgesOptions.value,
|
|
24130
24205
|
position: "image",
|
|
24131
24206
|
class: "lupa-image-badges"
|
|
24132
24207
|
}, null, 8, ["options"]),
|
|
24133
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24134
|
-
], 8, _hoisted_1$
|
|
24135
|
-
createBaseVNode("div", _hoisted_3$
|
|
24208
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24209
|
+
], 8, _hoisted_1$m),
|
|
24210
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
24136
24211
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24137
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24212
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24138
24213
|
class: "lupa-search-results-product-element",
|
|
24139
24214
|
item: _ctx.product,
|
|
24140
24215
|
element,
|
|
@@ -24152,7 +24227,7 @@ and ensure you are accounting for this risk.
|
|
|
24152
24227
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24153
24228
|
}, [
|
|
24154
24229
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24155
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24230
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24156
24231
|
class: "lupa-search-results-product-element",
|
|
24157
24232
|
item: _ctx.product,
|
|
24158
24233
|
element,
|
|
@@ -24170,23 +24245,23 @@ and ensure you are accounting for this risk.
|
|
|
24170
24245
|
};
|
|
24171
24246
|
}
|
|
24172
24247
|
});
|
|
24173
|
-
const _hoisted_1$
|
|
24248
|
+
const _hoisted_1$l = {
|
|
24174
24249
|
id: "lupa-search-results-similar-queries",
|
|
24175
24250
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24176
24251
|
};
|
|
24177
|
-
const _hoisted_2$
|
|
24178
|
-
const _hoisted_3$
|
|
24252
|
+
const _hoisted_2$h = { class: "lupa-similar-queries-label" };
|
|
24253
|
+
const _hoisted_3$b = {
|
|
24179
24254
|
class: "lupa-similar-query-label",
|
|
24180
24255
|
"data-cy": "lupa-similar-query-label"
|
|
24181
24256
|
};
|
|
24182
|
-
const _hoisted_4$
|
|
24183
|
-
const _hoisted_5$
|
|
24257
|
+
const _hoisted_4$7 = ["onClick"];
|
|
24258
|
+
const _hoisted_5$3 = ["innerHTML"];
|
|
24184
24259
|
const _hoisted_6$2 = { key: 0 };
|
|
24185
24260
|
const _hoisted_7$1 = {
|
|
24186
24261
|
class: "lupa-products",
|
|
24187
24262
|
"data-cy": "lupa-products"
|
|
24188
24263
|
};
|
|
24189
|
-
const _sfc_main$
|
|
24264
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
24190
24265
|
__name: "SearchResultsSimilarQueries",
|
|
24191
24266
|
props: {
|
|
24192
24267
|
labels: {},
|
|
@@ -24216,11 +24291,11 @@ and ensure you are accounting for this risk.
|
|
|
24216
24291
|
paramsStore.goToResults({ searchText, facet });
|
|
24217
24292
|
};
|
|
24218
24293
|
return (_ctx, _cache) => {
|
|
24219
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24220
|
-
createBaseVNode("div", _hoisted_2$
|
|
24294
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
24295
|
+
createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24221
24296
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24222
24297
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24223
|
-
createBaseVNode("div", _hoisted_3$
|
|
24298
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24224
24299
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24225
24300
|
createBaseVNode("span", {
|
|
24226
24301
|
id: "lupa-similar-query-text-component",
|
|
@@ -24230,13 +24305,13 @@ and ensure you are accounting for this risk.
|
|
|
24230
24305
|
}, [
|
|
24231
24306
|
createBaseVNode("span", {
|
|
24232
24307
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24233
|
-
}, null, 8, _hoisted_5$
|
|
24308
|
+
}, null, 8, _hoisted_5$3),
|
|
24234
24309
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24235
|
-
], 8, _hoisted_4$
|
|
24310
|
+
], 8, _hoisted_4$7)
|
|
24236
24311
|
]),
|
|
24237
24312
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24238
24313
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24239
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24314
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24240
24315
|
style: normalizeStyle(_ctx.columnSize),
|
|
24241
24316
|
key: getDocumentKey(index2, product),
|
|
24242
24317
|
product,
|
|
@@ -24250,15 +24325,15 @@ and ensure you are accounting for this risk.
|
|
|
24250
24325
|
};
|
|
24251
24326
|
}
|
|
24252
24327
|
});
|
|
24253
|
-
const _hoisted_1$
|
|
24328
|
+
const _hoisted_1$k = {
|
|
24254
24329
|
key: 0,
|
|
24255
24330
|
class: "lupa-results-additional-panel"
|
|
24256
24331
|
};
|
|
24257
|
-
const _hoisted_2$
|
|
24332
|
+
const _hoisted_2$g = {
|
|
24258
24333
|
class: "lupa-results-additional-panel-items",
|
|
24259
24334
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24260
24335
|
};
|
|
24261
|
-
const _sfc_main$
|
|
24336
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
24262
24337
|
__name: "AdditionalPanel",
|
|
24263
24338
|
props: {
|
|
24264
24339
|
panel: {},
|
|
@@ -24330,10 +24405,10 @@ and ensure you are accounting for this risk.
|
|
|
24330
24405
|
handleQueryChange();
|
|
24331
24406
|
});
|
|
24332
24407
|
return (_ctx, _cache) => {
|
|
24333
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24334
|
-
createBaseVNode("div", _hoisted_2$
|
|
24408
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
24409
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
24335
24410
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24336
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24411
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24337
24412
|
key: index,
|
|
24338
24413
|
product: item,
|
|
24339
24414
|
options: _ctx.panel,
|
|
@@ -24351,11 +24426,11 @@ and ensure you are accounting for this risk.
|
|
|
24351
24426
|
};
|
|
24352
24427
|
}
|
|
24353
24428
|
});
|
|
24354
|
-
const _hoisted_1$
|
|
24429
|
+
const _hoisted_1$j = {
|
|
24355
24430
|
key: 0,
|
|
24356
24431
|
class: "lupa-results-additional-panels"
|
|
24357
24432
|
};
|
|
24358
|
-
const _sfc_main$
|
|
24433
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24359
24434
|
__name: "AdditionalPanels",
|
|
24360
24435
|
props: {
|
|
24361
24436
|
options: {},
|
|
@@ -24372,9 +24447,9 @@ and ensure you are accounting for this risk.
|
|
|
24372
24447
|
return locationPanels.value.length > 0;
|
|
24373
24448
|
});
|
|
24374
24449
|
return (_ctx, _cache) => {
|
|
24375
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24450
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24376
24451
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24377
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24452
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24378
24453
|
key: panel.queryKey,
|
|
24379
24454
|
panel,
|
|
24380
24455
|
options: _ctx.sdkOptions
|
|
@@ -24391,29 +24466,29 @@ and ensure you are accounting for this risk.
|
|
|
24391
24466
|
}
|
|
24392
24467
|
return target;
|
|
24393
24468
|
};
|
|
24394
|
-
const _sfc_main$
|
|
24395
|
-
const _hoisted_1$
|
|
24396
|
-
const _hoisted_2$
|
|
24469
|
+
const _sfc_main$k = {};
|
|
24470
|
+
const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
|
|
24471
|
+
const _hoisted_2$f = { class: "lupa-spinner" };
|
|
24397
24472
|
function _sfc_render(_ctx, _cache) {
|
|
24398
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24399
|
-
createBaseVNode("div", _hoisted_2$
|
|
24473
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24474
|
+
createBaseVNode("div", _hoisted_2$f, [
|
|
24400
24475
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24401
24476
|
return createBaseVNode("div", { key: x2 });
|
|
24402
24477
|
}), 64))
|
|
24403
24478
|
])
|
|
24404
24479
|
]);
|
|
24405
24480
|
}
|
|
24406
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24407
|
-
const _hoisted_1$
|
|
24481
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
|
|
24482
|
+
const _hoisted_1$h = {
|
|
24408
24483
|
id: "lupa-search-results-similar-results",
|
|
24409
24484
|
"data-cy": "lupa-search-results-similar-results"
|
|
24410
24485
|
};
|
|
24411
|
-
const _hoisted_2$
|
|
24412
|
-
const _hoisted_3$
|
|
24486
|
+
const _hoisted_2$e = { class: "lupa-similar-results-label" };
|
|
24487
|
+
const _hoisted_3$a = {
|
|
24413
24488
|
class: "lupa-products",
|
|
24414
24489
|
"data-cy": "lupa-products"
|
|
24415
24490
|
};
|
|
24416
|
-
const _sfc_main$
|
|
24491
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24417
24492
|
__name: "SearchResultsSimilarResults",
|
|
24418
24493
|
props: {
|
|
24419
24494
|
columnSize: {},
|
|
@@ -24429,11 +24504,11 @@ and ensure you are accounting for this risk.
|
|
|
24429
24504
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24430
24505
|
};
|
|
24431
24506
|
return (_ctx, _cache) => {
|
|
24432
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24433
|
-
createBaseVNode("div", _hoisted_2$
|
|
24434
|
-
createBaseVNode("div", _hoisted_3$
|
|
24507
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24508
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24509
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24435
24510
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24436
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24511
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24437
24512
|
style: normalizeStyle(_ctx.columnSize),
|
|
24438
24513
|
key: getDocumentKey(index, product),
|
|
24439
24514
|
product,
|
|
@@ -24445,6 +24520,179 @@ and ensure you are accounting for this risk.
|
|
|
24445
24520
|
};
|
|
24446
24521
|
}
|
|
24447
24522
|
});
|
|
24523
|
+
var RelatedQuerySourceType = /* @__PURE__ */ ((RelatedQuerySourceType2) => {
|
|
24524
|
+
RelatedQuerySourceType2["FACETS"] = "facets";
|
|
24525
|
+
return RelatedQuerySourceType2;
|
|
24526
|
+
})(RelatedQuerySourceType || {});
|
|
24527
|
+
const extractFacetsRelatedSource = (source, searchResults2) => {
|
|
24528
|
+
var _a, _b, _c, _d, _e;
|
|
24529
|
+
const facet = (_a = searchResults2.facets) == null ? void 0 : _a.find((facet2) => facet2.key === source.key);
|
|
24530
|
+
if (!facet) {
|
|
24531
|
+
return [];
|
|
24532
|
+
}
|
|
24533
|
+
if (facet.type === "terms") {
|
|
24534
|
+
return (_c = (_b = facet.items) == null ? void 0 : _b.slice(0, source.count)) == null ? void 0 : _c.map((item) => item.title);
|
|
24535
|
+
}
|
|
24536
|
+
if (facet.type === "hierarchy") {
|
|
24537
|
+
return (_e = (_d = facet.items) == null ? void 0 : _d.slice(0, source.count)) == null ? void 0 : _e.map((item) => item.title);
|
|
24538
|
+
}
|
|
24539
|
+
return [];
|
|
24540
|
+
};
|
|
24541
|
+
const extractRelatedSource = (source, searchResults2) => {
|
|
24542
|
+
switch (source.type) {
|
|
24543
|
+
case RelatedQuerySourceType.FACETS:
|
|
24544
|
+
return extractFacetsRelatedSource(source, searchResults2);
|
|
24545
|
+
}
|
|
24546
|
+
};
|
|
24547
|
+
const _hoisted_1$g = { class: "lupa-related-query-item" };
|
|
24548
|
+
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
24549
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
24550
|
+
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
24551
|
+
const _hoisted_5$2 = {
|
|
24552
|
+
key: 0,
|
|
24553
|
+
class: "lupa-related-query-count"
|
|
24554
|
+
};
|
|
24555
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
24556
|
+
__name: "RelatedQueryPanel",
|
|
24557
|
+
props: {
|
|
24558
|
+
query: {},
|
|
24559
|
+
options: {}
|
|
24560
|
+
},
|
|
24561
|
+
setup(__props) {
|
|
24562
|
+
const props = __props;
|
|
24563
|
+
const loading = ref(false);
|
|
24564
|
+
const relatedQueryResult = ref(null);
|
|
24565
|
+
const optionsStore = useOptionsStore();
|
|
24566
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
24567
|
+
const mainImage = computed(() => {
|
|
24568
|
+
var _a, _b, _c;
|
|
24569
|
+
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
24570
|
+
});
|
|
24571
|
+
const image = computed(() => {
|
|
24572
|
+
var _a, _b, _c;
|
|
24573
|
+
return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
|
|
24574
|
+
});
|
|
24575
|
+
const queryKey = computed(() => {
|
|
24576
|
+
var _a, _b;
|
|
24577
|
+
return (_b = (_a = props.options) == null ? void 0 : _a.queryKey) != null ? _b : searchResultOptions.value.queryKey;
|
|
24578
|
+
});
|
|
24579
|
+
computed(() => {
|
|
24580
|
+
var _a, _b;
|
|
24581
|
+
return ((_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b.length) > 0;
|
|
24582
|
+
});
|
|
24583
|
+
const firstResultItem = computed(() => {
|
|
24584
|
+
var _a, _b;
|
|
24585
|
+
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b[0];
|
|
24586
|
+
});
|
|
24587
|
+
const totalItemCount = computed(() => {
|
|
24588
|
+
var _a, _b;
|
|
24589
|
+
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
|
|
24590
|
+
});
|
|
24591
|
+
const searchForRelatedQuery = () => __async2(this, null, function* () {
|
|
24592
|
+
var _a, _b, _c, _d;
|
|
24593
|
+
if (!props.query) {
|
|
24594
|
+
return;
|
|
24595
|
+
}
|
|
24596
|
+
const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
|
|
24597
|
+
try {
|
|
24598
|
+
loading.value = true;
|
|
24599
|
+
const result2 = yield LupaSearchSdk.query(
|
|
24600
|
+
queryKey.value,
|
|
24601
|
+
lupaQuery,
|
|
24602
|
+
(_b = searchResultOptions.value) == null ? void 0 : _b.options
|
|
24603
|
+
);
|
|
24604
|
+
if (result2.success) {
|
|
24605
|
+
relatedQueryResult.value = result2;
|
|
24606
|
+
}
|
|
24607
|
+
} catch (error) {
|
|
24608
|
+
(_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
|
|
24609
|
+
} finally {
|
|
24610
|
+
loading.value = false;
|
|
24611
|
+
}
|
|
24612
|
+
});
|
|
24613
|
+
watch(
|
|
24614
|
+
() => props.query,
|
|
24615
|
+
() => {
|
|
24616
|
+
console.log("query changed", props.query);
|
|
24617
|
+
searchForRelatedQuery();
|
|
24618
|
+
}
|
|
24619
|
+
);
|
|
24620
|
+
onMounted(() => {
|
|
24621
|
+
searchForRelatedQuery();
|
|
24622
|
+
});
|
|
24623
|
+
return (_ctx, _cache) => {
|
|
24624
|
+
var _a;
|
|
24625
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24626
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
24627
|
+
firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1k, {
|
|
24628
|
+
key: 0,
|
|
24629
|
+
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24630
|
+
"image-class": "lupa-related-query-image",
|
|
24631
|
+
item: firstResultItem.value,
|
|
24632
|
+
options: image.value
|
|
24633
|
+
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24634
|
+
]),
|
|
24635
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
24636
|
+
createBaseVNode("span", _hoisted_4$6, toDisplayString(_ctx.query), 1),
|
|
24637
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24638
|
+
])
|
|
24639
|
+
]);
|
|
24640
|
+
};
|
|
24641
|
+
}
|
|
24642
|
+
});
|
|
24643
|
+
const _hoisted_1$f = {
|
|
24644
|
+
key: 0,
|
|
24645
|
+
class: "lupa-related-queries"
|
|
24646
|
+
};
|
|
24647
|
+
const _hoisted_2$c = {
|
|
24648
|
+
key: 0,
|
|
24649
|
+
class: "lupa-related-queries-title"
|
|
24650
|
+
};
|
|
24651
|
+
const _hoisted_3$8 = ["onClick"];
|
|
24652
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24653
|
+
__name: "RelatedQueries",
|
|
24654
|
+
props: {
|
|
24655
|
+
options: {}
|
|
24656
|
+
},
|
|
24657
|
+
setup(__props) {
|
|
24658
|
+
const props = __props;
|
|
24659
|
+
const searchResultStore = useSearchResultStore();
|
|
24660
|
+
const paramsStore = useParamsStore();
|
|
24661
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
24662
|
+
const relatedQueries = computed(() => {
|
|
24663
|
+
if (!props.options || !searchResult.value) {
|
|
24664
|
+
return [];
|
|
24665
|
+
}
|
|
24666
|
+
return extractRelatedSource(props.options.source, searchResult.value);
|
|
24667
|
+
});
|
|
24668
|
+
const hasEnoughRelatedQueries = computed(() => {
|
|
24669
|
+
return relatedQueries.value.length > 1;
|
|
24670
|
+
});
|
|
24671
|
+
const goToResults = ({ searchText }) => {
|
|
24672
|
+
paramsStore.goToResults({ searchText });
|
|
24673
|
+
};
|
|
24674
|
+
return (_ctx, _cache) => {
|
|
24675
|
+
var _a, _b, _c, _d;
|
|
24676
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24677
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
24678
|
+
createBaseVNode("ul", null, [
|
|
24679
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
|
|
24680
|
+
return openBlock(), createElementBlock("li", { key: query }, [
|
|
24681
|
+
createBaseVNode("a", {
|
|
24682
|
+
onClick: ($event) => goToResults({ searchText: query })
|
|
24683
|
+
}, [
|
|
24684
|
+
createVNode(_sfc_main$i, {
|
|
24685
|
+
options: _ctx.options,
|
|
24686
|
+
query
|
|
24687
|
+
}, null, 8, ["options", "query"])
|
|
24688
|
+
], 8, _hoisted_3$8)
|
|
24689
|
+
]);
|
|
24690
|
+
}), 128))
|
|
24691
|
+
])
|
|
24692
|
+
])) : createCommentVNode("", true);
|
|
24693
|
+
};
|
|
24694
|
+
}
|
|
24695
|
+
});
|
|
24448
24696
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24449
24697
|
const _hoisted_2$b = {
|
|
24450
24698
|
class: "lupa-products",
|
|
@@ -24574,19 +24822,27 @@ and ensure you are accounting for this risk.
|
|
|
24574
24822
|
key: 0,
|
|
24575
24823
|
class: "lupa-loader"
|
|
24576
24824
|
})) : createCommentVNode("", true),
|
|
24825
|
+
createVNode(_sfc_main$l, {
|
|
24826
|
+
options: _ctx.options,
|
|
24827
|
+
location: "top",
|
|
24828
|
+
sdkOptions: _ctx.options.options
|
|
24829
|
+
}, null, 8, ["options", "sdkOptions"]),
|
|
24830
|
+
createVNode(_sfc_main$h, {
|
|
24831
|
+
options: _ctx.options.relatedQueries
|
|
24832
|
+
}, null, 8, ["options"]),
|
|
24577
24833
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24578
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24834
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
24579
24835
|
key: 0,
|
|
24580
24836
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24581
24837
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24582
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24838
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
24583
24839
|
key: 1,
|
|
24584
24840
|
class: "lupa-toolbar-mobile",
|
|
24585
24841
|
options: _ctx.options,
|
|
24586
24842
|
"pagination-location": "top",
|
|
24587
24843
|
onFilter: filter2
|
|
24588
24844
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24589
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24845
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
|
|
24590
24846
|
key: 2,
|
|
24591
24847
|
class: normalizeClass(currentFiltersClass.value),
|
|
24592
24848
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24594,18 +24850,13 @@ and ensure you are accounting for this risk.
|
|
|
24594
24850
|
expandable: !desktopFiltersExpanded.value
|
|
24595
24851
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24596
24852
|
], 64)) : createCommentVNode("", true),
|
|
24597
|
-
createVNode(_sfc_main$j, {
|
|
24598
|
-
options: _ctx.options,
|
|
24599
|
-
location: "top",
|
|
24600
|
-
sdkOptions: _ctx.options.options
|
|
24601
|
-
}, null, 8, ["options", "sdkOptions"]),
|
|
24602
24853
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24603
|
-
createVNode(_sfc_main$
|
|
24854
|
+
createVNode(_sfc_main$A, {
|
|
24604
24855
|
class: "lupa-toolbar-top",
|
|
24605
24856
|
options: _ctx.options,
|
|
24606
24857
|
"pagination-location": "top"
|
|
24607
24858
|
}, null, 8, ["options"]),
|
|
24608
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24859
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
|
|
24609
24860
|
key: 0,
|
|
24610
24861
|
class: normalizeClass(currentFiltersClass.value),
|
|
24611
24862
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24621,7 +24872,7 @@ and ensure you are accounting for this risk.
|
|
|
24621
24872
|
options: productCardOptions.value
|
|
24622
24873
|
});
|
|
24623
24874
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24624
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24875
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
24625
24876
|
style: normalizeStyle(columnSize.value),
|
|
24626
24877
|
key: getProductKeyAction(index, product),
|
|
24627
24878
|
product,
|
|
@@ -24637,12 +24888,12 @@ and ensure you are accounting for this risk.
|
|
|
24637
24888
|
onClick: goToFirstPage
|
|
24638
24889
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
24639
24890
|
])) : createCommentVNode("", true),
|
|
24640
|
-
createVNode(_sfc_main$
|
|
24891
|
+
createVNode(_sfc_main$A, {
|
|
24641
24892
|
class: "lupa-toolbar-bottom",
|
|
24642
24893
|
options: _ctx.options,
|
|
24643
24894
|
"pagination-location": "bottom"
|
|
24644
24895
|
}, null, 8, ["options"]),
|
|
24645
|
-
createVNode(_sfc_main$
|
|
24896
|
+
createVNode(_sfc_main$l, {
|
|
24646
24897
|
options: _ctx.options,
|
|
24647
24898
|
location: "bottom",
|
|
24648
24899
|
sdkOptions: _ctx.options.options
|
|
@@ -24652,14 +24903,14 @@ and ensure you are accounting for this risk.
|
|
|
24652
24903
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
24653
24904
|
])) : createCommentVNode("", true),
|
|
24654
24905
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
24655
|
-
createVNode(_sfc_main$
|
|
24906
|
+
createVNode(_sfc_main$n, {
|
|
24656
24907
|
labels: similarQueriesLabels.value,
|
|
24657
24908
|
columnSize: columnSize.value,
|
|
24658
24909
|
productCardOptions: productCardOptions.value
|
|
24659
24910
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
24660
24911
|
])) : createCommentVNode("", true),
|
|
24661
24912
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
24662
|
-
createVNode(_sfc_main$
|
|
24913
|
+
createVNode(_sfc_main$j, {
|
|
24663
24914
|
labels: similarResultsLabels.value,
|
|
24664
24915
|
columnSize: columnSize.value,
|
|
24665
24916
|
productCardOptions: productCardOptions.value
|
|
@@ -24728,14 +24979,14 @@ and ensure you are accounting for this risk.
|
|
|
24728
24979
|
])) : createCommentVNode("", true),
|
|
24729
24980
|
createBaseVNode("div", _hoisted_4$4, [
|
|
24730
24981
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
24731
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24982
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
24732
24983
|
key: getCategoryKey(child),
|
|
24733
24984
|
item: child,
|
|
24734
24985
|
options: categoryOptions.value
|
|
24735
24986
|
}, null, 8, ["item", "options"]);
|
|
24736
24987
|
}), 128))
|
|
24737
24988
|
]),
|
|
24738
|
-
createVNode(_sfc_main$
|
|
24989
|
+
createVNode(_sfc_main$A, {
|
|
24739
24990
|
class: "lupa-toolbar-mobile",
|
|
24740
24991
|
"pagination-location": "top",
|
|
24741
24992
|
options: _ctx.options
|
|
@@ -24967,8 +25218,8 @@ and ensure you are accounting for this risk.
|
|
|
24967
25218
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
24968
25219
|
}, [
|
|
24969
25220
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
24970
|
-
createVNode(_sfc_main$
|
|
24971
|
-
createVNode(_sfc_main$
|
|
25221
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25222
|
+
createVNode(_sfc_main$W, {
|
|
24972
25223
|
"show-summary": true,
|
|
24973
25224
|
options: _ctx.options,
|
|
24974
25225
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -24978,17 +25229,17 @@ and ensure you are accounting for this risk.
|
|
|
24978
25229
|
key: 1,
|
|
24979
25230
|
options: _ctx.options
|
|
24980
25231
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24981
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25232
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
|
|
24982
25233
|
key: 2,
|
|
24983
25234
|
options: _ctx.options.filters,
|
|
24984
25235
|
onFilter: handleParamsChange
|
|
24985
25236
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24986
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25237
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24987
25238
|
key: 3,
|
|
24988
25239
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
24989
25240
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
24990
25241
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
24991
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25242
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
24992
25243
|
key: 0,
|
|
24993
25244
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
24994
25245
|
ref_key: "searchResultsFilters",
|
|
@@ -24996,8 +25247,8 @@ and ensure you are accounting for this risk.
|
|
|
24996
25247
|
onFilter: handleParamsChange
|
|
24997
25248
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24998
25249
|
createBaseVNode("div", _hoisted_3$5, [
|
|
24999
|
-
createVNode(_sfc_main$
|
|
25000
|
-
createVNode(_sfc_main$
|
|
25250
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25251
|
+
createVNode(_sfc_main$W, {
|
|
25001
25252
|
options: _ctx.options,
|
|
25002
25253
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25003
25254
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25013,13 +25264,13 @@ and ensure you are accounting for this risk.
|
|
|
25013
25264
|
}, 8, ["options", "ssr"])
|
|
25014
25265
|
])
|
|
25015
25266
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25016
|
-
createVNode(_sfc_main$
|
|
25017
|
-
createVNode(_sfc_main$
|
|
25267
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25268
|
+
createVNode(_sfc_main$W, {
|
|
25018
25269
|
options: _ctx.options,
|
|
25019
25270
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25020
25271
|
}, null, 8, ["options", "is-product-list"]),
|
|
25021
25272
|
createBaseVNode("div", _hoisted_4$3, [
|
|
25022
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25273
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25023
25274
|
key: 0,
|
|
25024
25275
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25025
25276
|
ref_key: "searchResultsFilters",
|
|
@@ -30709,7 +30960,7 @@ and ensure you are accounting for this risk.
|
|
|
30709
30960
|
onClick: withModifiers(innerClick, ["stop"])
|
|
30710
30961
|
}, [
|
|
30711
30962
|
createBaseVNode("div", _hoisted_2$7, [
|
|
30712
|
-
createVNode(_sfc_main$
|
|
30963
|
+
createVNode(_sfc_main$Z, {
|
|
30713
30964
|
options: fullSearchBoxOptions.value,
|
|
30714
30965
|
"is-search-container": true,
|
|
30715
30966
|
ref_key: "searchBox",
|
|
@@ -31573,7 +31824,7 @@ and ensure you are accounting for this risk.
|
|
|
31573
31824
|
key: getProductKeyAction(index, product)
|
|
31574
31825
|
}, {
|
|
31575
31826
|
default: withCtx(() => [
|
|
31576
|
-
createVNode(_sfc_main$
|
|
31827
|
+
createVNode(_sfc_main$o, {
|
|
31577
31828
|
product,
|
|
31578
31829
|
options: _ctx.options,
|
|
31579
31830
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31586,7 +31837,7 @@ and ensure you are accounting for this risk.
|
|
|
31586
31837
|
_: 1
|
|
31587
31838
|
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31588
31839
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31589
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31840
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
31590
31841
|
style: normalizeStyle(columnSize.value),
|
|
31591
31842
|
key: getProductKeyAction(index, product),
|
|
31592
31843
|
product,
|
|
@@ -31849,7 +32100,7 @@ and ensure you are accounting for this risk.
|
|
|
31849
32100
|
createBaseVNode("a", {
|
|
31850
32101
|
href: getLink(product)
|
|
31851
32102
|
}, [
|
|
31852
|
-
createVNode(_sfc_main$
|
|
32103
|
+
createVNode(_sfc_main$z, {
|
|
31853
32104
|
item: product,
|
|
31854
32105
|
options: image.value
|
|
31855
32106
|
}, null, 8, ["item", "options"])
|
|
@@ -32013,7 +32264,7 @@ and ensure you are accounting for this risk.
|
|
|
32013
32264
|
return (_ctx, _cache) => {
|
|
32014
32265
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32015
32266
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32016
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32267
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
32017
32268
|
class: "lupa-chat-product-card",
|
|
32018
32269
|
key: getProductKeyAction(index, product),
|
|
32019
32270
|
product,
|
|
@@ -32206,7 +32457,7 @@ and ensure you are accounting for this risk.
|
|
|
32206
32457
|
key: 0,
|
|
32207
32458
|
class: "lupasearch-chat-content"
|
|
32208
32459
|
};
|
|
32209
|
-
const _sfc_main$
|
|
32460
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
32210
32461
|
__name: "ChatContainer",
|
|
32211
32462
|
props: {
|
|
32212
32463
|
options: {}
|
|
@@ -38224,7 +38475,7 @@ and ensure you are accounting for this risk.
|
|
|
38224
38475
|
};
|
|
38225
38476
|
__expose({ fetch: fetch2 });
|
|
38226
38477
|
return (_ctx, _cache) => {
|
|
38227
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38478
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
38228
38479
|
options: fullSearchBoxOptions.value,
|
|
38229
38480
|
ref_key: "searchBox",
|
|
38230
38481
|
ref: searchBox2
|
|
@@ -38751,7 +39002,7 @@ and ensure you are accounting for this risk.
|
|
|
38751
39002
|
const instance = createVue(
|
|
38752
39003
|
options.displayOptions.containerSelector,
|
|
38753
39004
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
38754
|
-
_sfc_main$
|
|
39005
|
+
_sfc_main$1t,
|
|
38755
39006
|
{
|
|
38756
39007
|
options
|
|
38757
39008
|
}
|