@getlupa/client 1.15.1 → 1.15.5
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 +606 -475
- package/dist/lupaSearch.js +606 -475
- package/dist/lupaSearch.mjs +606 -475
- package/dist/lupaSearch.umd.js +606 -475
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -8188,7 +8188,11 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
8188
8188
|
try {
|
|
8189
8189
|
localStorage.setItem(
|
|
8190
8190
|
CACHE_KEY,
|
|
8191
|
-
JSON.stringify({
|
|
8191
|
+
JSON.stringify({
|
|
8192
|
+
redirections: redirections.value,
|
|
8193
|
+
savedAt: Date.now(),
|
|
8194
|
+
queryKey: redirectionOptions.value.queryKey
|
|
8195
|
+
})
|
|
8192
8196
|
);
|
|
8193
8197
|
} catch (e2) {
|
|
8194
8198
|
}
|
|
@@ -8199,6 +8203,9 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
8199
8203
|
return false;
|
|
8200
8204
|
try {
|
|
8201
8205
|
const data = JSON.parse((_a = localStorage.getItem(CACHE_KEY)) != null ? _a : "");
|
|
8206
|
+
if (data.queryKey !== config.queryKey) {
|
|
8207
|
+
return false;
|
|
8208
|
+
}
|
|
8202
8209
|
if ((data == null ? void 0 : data.redirections) && Date.now() - data.savedAt < 1e3 * config.cacheSeconds) {
|
|
8203
8210
|
redirections.value = data.redirections;
|
|
8204
8211
|
return true;
|
|
@@ -8223,6 +8230,7 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
8223
8230
|
try {
|
|
8224
8231
|
const result2 = yield LupaSearchSdk.loadRedirectionRules(config.queryKey, options);
|
|
8225
8232
|
if (!((_d = result2 == null ? void 0 : result2.rules) == null ? void 0 : _d.length)) {
|
|
8233
|
+
redirections.value = { rules: [] };
|
|
8226
8234
|
return;
|
|
8227
8235
|
}
|
|
8228
8236
|
redirections.value = result2;
|
|
@@ -8660,9 +8668,9 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
8660
8668
|
resetHighlightIndex
|
|
8661
8669
|
};
|
|
8662
8670
|
});
|
|
8663
|
-
const _hoisted_1$
|
|
8664
|
-
const _hoisted_2$
|
|
8665
|
-
const _hoisted_3$
|
|
8671
|
+
const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
|
|
8672
|
+
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
8673
|
+
const _hoisted_3$E = { id: "lupa-search-box-input" };
|
|
8666
8674
|
const _hoisted_4$t = ["value"];
|
|
8667
8675
|
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8668
8676
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
@@ -8673,7 +8681,7 @@ const _hoisted_8$3 = {
|
|
|
8673
8681
|
key: 0,
|
|
8674
8682
|
class: "lupa-close-label"
|
|
8675
8683
|
};
|
|
8676
|
-
const _sfc_main$
|
|
8684
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
8677
8685
|
__name: "SearchBoxInput",
|
|
8678
8686
|
props: {
|
|
8679
8687
|
options: {},
|
|
@@ -8757,14 +8765,14 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
8757
8765
|
};
|
|
8758
8766
|
__expose({ focus });
|
|
8759
8767
|
return (_ctx, _cache) => {
|
|
8760
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8761
|
-
createBaseVNode("div", _hoisted_2$
|
|
8768
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1h, [
|
|
8769
|
+
createBaseVNode("div", _hoisted_2$V, [
|
|
8762
8770
|
createBaseVNode("div", {
|
|
8763
8771
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
8764
8772
|
onClick: clear2
|
|
8765
8773
|
}, null, 2)
|
|
8766
8774
|
]),
|
|
8767
|
-
createBaseVNode("div", _hoisted_3$
|
|
8775
|
+
createBaseVNode("div", _hoisted_3$E, [
|
|
8768
8776
|
createBaseVNode("input", {
|
|
8769
8777
|
class: "lupa-hint",
|
|
8770
8778
|
"aria-hidden": "true",
|
|
@@ -8803,7 +8811,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
8803
8811
|
};
|
|
8804
8812
|
}
|
|
8805
8813
|
});
|
|
8806
|
-
const _sfc_main$
|
|
8814
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
8807
8815
|
__name: "SearchBoxMoreResults",
|
|
8808
8816
|
props: {
|
|
8809
8817
|
labels: {},
|
|
@@ -8835,9 +8843,9 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
8835
8843
|
};
|
|
8836
8844
|
}
|
|
8837
8845
|
});
|
|
8838
|
-
const _hoisted_1$
|
|
8839
|
-
const _hoisted_2$
|
|
8840
|
-
const _sfc_main$
|
|
8846
|
+
const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
|
|
8847
|
+
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
8848
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
8841
8849
|
__name: "SearchBoxHistoryItem",
|
|
8842
8850
|
props: {
|
|
8843
8851
|
item: {},
|
|
@@ -8853,8 +8861,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
8853
8861
|
emit2("click", { query: props.item });
|
|
8854
8862
|
};
|
|
8855
8863
|
return (_ctx, _cache) => {
|
|
8856
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8857
|
-
createBaseVNode("div", _hoisted_2$
|
|
8864
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
8865
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
8858
8866
|
createBaseVNode("div", {
|
|
8859
8867
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
8860
8868
|
onClick: click2
|
|
@@ -8868,11 +8876,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
8868
8876
|
};
|
|
8869
8877
|
}
|
|
8870
8878
|
});
|
|
8871
|
-
const _hoisted_1$
|
|
8879
|
+
const _hoisted_1$1f = {
|
|
8872
8880
|
key: 0,
|
|
8873
8881
|
class: "lupa-search-box-history-panel"
|
|
8874
8882
|
};
|
|
8875
|
-
const _sfc_main$
|
|
8883
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
8876
8884
|
__name: "SearchBoxHistoryPanel",
|
|
8877
8885
|
props: {
|
|
8878
8886
|
options: {}
|
|
@@ -8913,9 +8921,9 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
8913
8921
|
}
|
|
8914
8922
|
};
|
|
8915
8923
|
return (_ctx, _cache) => {
|
|
8916
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8924
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
8917
8925
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8918
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8926
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
8919
8927
|
key: item,
|
|
8920
8928
|
item,
|
|
8921
8929
|
highlighted: index === highlightIndex.value,
|
|
@@ -8931,15 +8939,15 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
8931
8939
|
};
|
|
8932
8940
|
}
|
|
8933
8941
|
});
|
|
8934
|
-
const _hoisted_1$
|
|
8935
|
-
const _sfc_main$
|
|
8942
|
+
const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
|
|
8943
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8936
8944
|
__name: "SearchBoxNoResults",
|
|
8937
8945
|
props: {
|
|
8938
8946
|
labels: {}
|
|
8939
8947
|
},
|
|
8940
8948
|
setup(__props) {
|
|
8941
8949
|
return (_ctx, _cache) => {
|
|
8942
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8950
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1e, toDisplayString(_ctx.labels.noResults), 1);
|
|
8943
8951
|
};
|
|
8944
8952
|
}
|
|
8945
8953
|
});
|
|
@@ -8971,13 +8979,13 @@ const generateGridTemplate = (elements) => {
|
|
|
8971
8979
|
}
|
|
8972
8980
|
return gridTemplate.join(" ");
|
|
8973
8981
|
};
|
|
8974
|
-
const _hoisted_1$
|
|
8975
|
-
const _hoisted_2$
|
|
8982
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
8983
|
+
const _hoisted_2$T = {
|
|
8976
8984
|
key: 1,
|
|
8977
8985
|
"data-cy": "lupa-suggestion-value",
|
|
8978
8986
|
class: "lupa-suggestion-value"
|
|
8979
8987
|
};
|
|
8980
|
-
const _hoisted_3$
|
|
8988
|
+
const _hoisted_3$D = {
|
|
8981
8989
|
key: 2,
|
|
8982
8990
|
class: "lupa-suggestion-facet",
|
|
8983
8991
|
"data-cy": "lupa-suggestion-facet"
|
|
@@ -8990,7 +8998,7 @@ const _hoisted_5$i = {
|
|
|
8990
8998
|
class: "lupa-suggestion-facet-value",
|
|
8991
8999
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8992
9000
|
};
|
|
8993
|
-
const _sfc_main$
|
|
9001
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8994
9002
|
__name: "SearchBoxSuggestion",
|
|
8995
9003
|
props: {
|
|
8996
9004
|
suggestion: {},
|
|
@@ -9026,8 +9034,8 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
9026
9034
|
class: "lupa-suggestion-value",
|
|
9027
9035
|
"data-cy": "lupa-suggestion-value",
|
|
9028
9036
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
9029
|
-
}, null, 8, _hoisted_1$
|
|
9030
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9037
|
+
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
9038
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
9031
9039
|
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
9032
9040
|
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
9033
9041
|
])) : createCommentVNode("", true)
|
|
@@ -9035,11 +9043,11 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
9035
9043
|
};
|
|
9036
9044
|
}
|
|
9037
9045
|
});
|
|
9038
|
-
const _hoisted_1$
|
|
9046
|
+
const _hoisted_1$1c = {
|
|
9039
9047
|
id: "lupa-search-box-suggestions",
|
|
9040
9048
|
"data-cy": "lupa-search-box-suggestions"
|
|
9041
9049
|
};
|
|
9042
|
-
const _sfc_main$
|
|
9050
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
9043
9051
|
__name: "SearchBoxSuggestions",
|
|
9044
9052
|
props: {
|
|
9045
9053
|
items: {},
|
|
@@ -9099,9 +9107,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
9099
9107
|
});
|
|
9100
9108
|
});
|
|
9101
9109
|
return (_ctx, _cache) => {
|
|
9102
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9110
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
9103
9111
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9104
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9112
|
+
return openBlock(), createBlock(_sfc_main$1o, {
|
|
9105
9113
|
key: getSuggestionKey(item),
|
|
9106
9114
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9107
9115
|
suggestion: item,
|
|
@@ -9129,7 +9137,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
9129
9137
|
}, timeout);
|
|
9130
9138
|
};
|
|
9131
9139
|
};
|
|
9132
|
-
const _sfc_main$
|
|
9140
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
9133
9141
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9134
9142
|
props: {
|
|
9135
9143
|
panel: {},
|
|
@@ -9171,7 +9179,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
9171
9179
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9172
9180
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9173
9181
|
return (_ctx, _cache) => {
|
|
9174
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9182
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
9175
9183
|
items: searchResult.value,
|
|
9176
9184
|
highlight: _ctx.panel.highlight,
|
|
9177
9185
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18249,9 +18257,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
18249
18257
|
targetImage.src = placeholder;
|
|
18250
18258
|
}
|
|
18251
18259
|
};
|
|
18252
|
-
const _hoisted_1$
|
|
18253
|
-
const _hoisted_2$
|
|
18254
|
-
const _sfc_main$
|
|
18260
|
+
const _hoisted_1$1b = ["src"];
|
|
18261
|
+
const _hoisted_2$S = ["src"];
|
|
18262
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
18255
18263
|
__name: "ProductImage",
|
|
18256
18264
|
props: {
|
|
18257
18265
|
item: {},
|
|
@@ -18393,7 +18401,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
18393
18401
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18394
18402
|
onError: replaceWithPlaceholder,
|
|
18395
18403
|
key: finalUrl.value
|
|
18396
|
-
}), null, 16, _hoisted_1$
|
|
18404
|
+
}), null, 16, _hoisted_1$1b))
|
|
18397
18405
|
]),
|
|
18398
18406
|
_: 1
|
|
18399
18407
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18401,12 +18409,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
18401
18409
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
18402
18410
|
style: styleOverride.value,
|
|
18403
18411
|
src: finalMainImageUrl.value
|
|
18404
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
18412
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
|
|
18405
18413
|
], 38);
|
|
18406
18414
|
};
|
|
18407
18415
|
}
|
|
18408
18416
|
});
|
|
18409
|
-
const _sfc_main$
|
|
18417
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
18410
18418
|
__name: "SearchBoxProductImage",
|
|
18411
18419
|
props: {
|
|
18412
18420
|
item: {},
|
|
@@ -18414,7 +18422,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
18414
18422
|
},
|
|
18415
18423
|
setup(__props) {
|
|
18416
18424
|
return (_ctx, _cache) => {
|
|
18417
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18425
|
+
return openBlock(), createBlock(_sfc_main$1l, {
|
|
18418
18426
|
item: _ctx.item,
|
|
18419
18427
|
options: _ctx.options,
|
|
18420
18428
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18423,12 +18431,12 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
18423
18431
|
};
|
|
18424
18432
|
}
|
|
18425
18433
|
});
|
|
18426
|
-
const _hoisted_1$
|
|
18427
|
-
const _hoisted_2$
|
|
18434
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
18435
|
+
const _hoisted_2$R = {
|
|
18428
18436
|
key: 1,
|
|
18429
18437
|
class: "lupa-search-box-product-title"
|
|
18430
18438
|
};
|
|
18431
|
-
const _sfc_main$
|
|
18439
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
18432
18440
|
__name: "SearchBoxProductTitle",
|
|
18433
18441
|
props: {
|
|
18434
18442
|
item: {},
|
|
@@ -18451,18 +18459,18 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
18451
18459
|
key: 0,
|
|
18452
18460
|
class: "lupa-search-box-product-title",
|
|
18453
18461
|
innerHTML: sanitizedTitle.value
|
|
18454
|
-
}, null, 8, _hoisted_1$
|
|
18462
|
+
}, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
18455
18463
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18456
18464
|
]));
|
|
18457
18465
|
};
|
|
18458
18466
|
}
|
|
18459
18467
|
});
|
|
18460
|
-
const _hoisted_1$
|
|
18461
|
-
const _hoisted_2$
|
|
18468
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
18469
|
+
const _hoisted_2$Q = {
|
|
18462
18470
|
key: 1,
|
|
18463
18471
|
class: "lupa-search-box-product-description"
|
|
18464
18472
|
};
|
|
18465
|
-
const _sfc_main$
|
|
18473
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
18466
18474
|
__name: "SearchBoxProductDescription",
|
|
18467
18475
|
props: {
|
|
18468
18476
|
item: {},
|
|
@@ -18485,12 +18493,12 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
18485
18493
|
key: 0,
|
|
18486
18494
|
class: "lupa-search-box-product-description",
|
|
18487
18495
|
innerHTML: sanitizedDescription.value
|
|
18488
|
-
}, null, 8, _hoisted_1$
|
|
18496
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
|
|
18489
18497
|
};
|
|
18490
18498
|
}
|
|
18491
18499
|
});
|
|
18492
|
-
const _hoisted_1$
|
|
18493
|
-
const _sfc_main$
|
|
18500
|
+
const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
|
|
18501
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18494
18502
|
__name: "SearchBoxProductPrice",
|
|
18495
18503
|
props: {
|
|
18496
18504
|
item: {},
|
|
@@ -18508,13 +18516,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18508
18516
|
);
|
|
18509
18517
|
});
|
|
18510
18518
|
return (_ctx, _cache) => {
|
|
18511
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18519
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
18512
18520
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18513
18521
|
]);
|
|
18514
18522
|
};
|
|
18515
18523
|
}
|
|
18516
18524
|
});
|
|
18517
|
-
const _sfc_main$
|
|
18525
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18518
18526
|
__name: "SearchBoxProductRegularPrice",
|
|
18519
18527
|
props: {
|
|
18520
18528
|
item: {},
|
|
@@ -18541,12 +18549,12 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18541
18549
|
};
|
|
18542
18550
|
}
|
|
18543
18551
|
});
|
|
18544
|
-
const _hoisted_1$
|
|
18545
|
-
const _hoisted_2$
|
|
18546
|
-
const _hoisted_3$
|
|
18552
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
18553
|
+
const _hoisted_2$P = { key: 0 };
|
|
18554
|
+
const _hoisted_3$C = { key: 1 };
|
|
18547
18555
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
18548
18556
|
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18549
|
-
const _sfc_main$
|
|
18557
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18550
18558
|
__name: "SearchBoxProductCustom",
|
|
18551
18559
|
props: {
|
|
18552
18560
|
item: {},
|
|
@@ -18572,11 +18580,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18572
18580
|
key: 0,
|
|
18573
18581
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18574
18582
|
innerHTML: text.value
|
|
18575
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18583
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18576
18584
|
key: 1,
|
|
18577
18585
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18578
18586
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18579
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18587
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
18580
18588
|
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
18581
18589
|
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18582
18590
|
]))
|
|
@@ -18584,8 +18592,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18584
18592
|
};
|
|
18585
18593
|
}
|
|
18586
18594
|
});
|
|
18587
|
-
const _hoisted_1$
|
|
18588
|
-
const _sfc_main$
|
|
18595
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18596
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18589
18597
|
__name: "SearchBoxProductCustomHtml",
|
|
18590
18598
|
props: {
|
|
18591
18599
|
item: {},
|
|
@@ -18610,7 +18618,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18610
18618
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18611
18619
|
class: className.value,
|
|
18612
18620
|
innerHTML: text.value
|
|
18613
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18621
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16);
|
|
18614
18622
|
};
|
|
18615
18623
|
}
|
|
18616
18624
|
});
|
|
@@ -18844,10 +18852,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18844
18852
|
setRelatedCategoryChildren
|
|
18845
18853
|
};
|
|
18846
18854
|
});
|
|
18847
|
-
const _hoisted_1$
|
|
18848
|
-
const _hoisted_2$
|
|
18849
|
-
const _hoisted_3$
|
|
18850
|
-
const _sfc_main$
|
|
18855
|
+
const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18856
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
18857
|
+
const _hoisted_3$B = ["onClick", "disabled"];
|
|
18858
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18851
18859
|
__name: "SearchBoxProductAddToCart",
|
|
18852
18860
|
props: {
|
|
18853
18861
|
item: {},
|
|
@@ -18880,37 +18888,37 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
18880
18888
|
loading.value = false;
|
|
18881
18889
|
});
|
|
18882
18890
|
return (_ctx, _cache) => {
|
|
18883
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18884
|
-
createBaseVNode("div", _hoisted_2$
|
|
18891
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
18892
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
18885
18893
|
createBaseVNode("button", {
|
|
18886
18894
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
18887
18895
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
18888
18896
|
"data-cy": "lupa-add-to-cart",
|
|
18889
18897
|
type: "button",
|
|
18890
18898
|
disabled: !inStockValue.value || loading.value
|
|
18891
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
18899
|
+
}, toDisplayString(label.value), 11, _hoisted_3$B)
|
|
18892
18900
|
])
|
|
18893
18901
|
]);
|
|
18894
18902
|
};
|
|
18895
18903
|
}
|
|
18896
18904
|
});
|
|
18897
|
-
const _hoisted_1$
|
|
18905
|
+
const _hoisted_1$14 = {
|
|
18898
18906
|
key: 1,
|
|
18899
18907
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18900
18908
|
};
|
|
18901
18909
|
const __default__$4 = {
|
|
18902
18910
|
components: {
|
|
18903
|
-
SearchBoxProductImage: _sfc_main$
|
|
18904
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18905
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18906
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18907
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18908
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18909
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18910
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18911
|
+
SearchBoxProductImage: _sfc_main$1k,
|
|
18912
|
+
SearchBoxProductTitle: _sfc_main$1j,
|
|
18913
|
+
SearchBoxProductDescription: _sfc_main$1i,
|
|
18914
|
+
SearchBoxProductPrice: _sfc_main$1h,
|
|
18915
|
+
SearchBoxProductRegularPrice: _sfc_main$1g,
|
|
18916
|
+
SearchBoxProductCustom: _sfc_main$1f,
|
|
18917
|
+
SearchBoxProductCustomHtml: _sfc_main$1e,
|
|
18918
|
+
SearchBoxProductAddToCart: _sfc_main$1d
|
|
18911
18919
|
}
|
|
18912
18920
|
};
|
|
18913
|
-
const _sfc_main$
|
|
18921
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18914
18922
|
__name: "SearchBoxProductElement",
|
|
18915
18923
|
props: {
|
|
18916
18924
|
item: {},
|
|
@@ -18973,7 +18981,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18973
18981
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
18974
18982
|
inStock: _ctx.isInStock
|
|
18975
18983
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
18976
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18984
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
18977
18985
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18978
18986
|
key: 0,
|
|
18979
18987
|
item: enhancedItem.value,
|
|
@@ -18987,14 +18995,14 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18987
18995
|
};
|
|
18988
18996
|
}
|
|
18989
18997
|
}));
|
|
18990
|
-
const _hoisted_1$
|
|
18991
|
-
const _hoisted_2$
|
|
18992
|
-
const _hoisted_3$
|
|
18998
|
+
const _hoisted_1$13 = { class: "lupa-badge-title" };
|
|
18999
|
+
const _hoisted_2$N = ["src"];
|
|
19000
|
+
const _hoisted_3$A = { key: 1 };
|
|
18993
19001
|
const _hoisted_4$q = {
|
|
18994
19002
|
key: 0,
|
|
18995
19003
|
class: "lupa-badge-full-text"
|
|
18996
19004
|
};
|
|
18997
|
-
const _sfc_main$
|
|
19005
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
18998
19006
|
__name: "SearchResultGeneratedBadge",
|
|
18999
19007
|
props: {
|
|
19000
19008
|
options: {},
|
|
@@ -19027,20 +19035,20 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
19027
19035
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
19028
19036
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
19029
19037
|
}, [
|
|
19030
|
-
createBaseVNode("span", _hoisted_1$
|
|
19038
|
+
createBaseVNode("span", _hoisted_1$13, [
|
|
19031
19039
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
19032
19040
|
key: 0,
|
|
19033
19041
|
src: image.value
|
|
19034
|
-
}, null, 8, _hoisted_2$
|
|
19035
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
19042
|
+
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
19043
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
19036
19044
|
]),
|
|
19037
19045
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
19038
19046
|
], 6);
|
|
19039
19047
|
};
|
|
19040
19048
|
}
|
|
19041
19049
|
});
|
|
19042
|
-
const _hoisted_1$
|
|
19043
|
-
const _sfc_main$
|
|
19050
|
+
const _hoisted_1$12 = { class: "lupa-generated-badges" };
|
|
19051
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
19044
19052
|
__name: "SearchResultGeneratedBadges",
|
|
19045
19053
|
props: {
|
|
19046
19054
|
options: {}
|
|
@@ -19066,9 +19074,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
19066
19074
|
})).filter((b) => Boolean(b.id));
|
|
19067
19075
|
});
|
|
19068
19076
|
return (_ctx, _cache) => {
|
|
19069
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19077
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
19070
19078
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
19071
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19079
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
19072
19080
|
key: badge.id,
|
|
19073
19081
|
badge,
|
|
19074
19082
|
options: _ctx.options
|
|
@@ -19078,8 +19086,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
19078
19086
|
};
|
|
19079
19087
|
}
|
|
19080
19088
|
});
|
|
19081
|
-
const _hoisted_1$
|
|
19082
|
-
const _sfc_main$
|
|
19089
|
+
const _hoisted_1$11 = ["innerHTML"];
|
|
19090
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
19083
19091
|
__name: "CustomBadge",
|
|
19084
19092
|
props: {
|
|
19085
19093
|
badge: {}
|
|
@@ -19100,12 +19108,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
19100
19108
|
return openBlock(), createElementBlock("div", {
|
|
19101
19109
|
class: normalizeClass(className.value),
|
|
19102
19110
|
innerHTML: text.value
|
|
19103
|
-
}, null, 10, _hoisted_1$
|
|
19111
|
+
}, null, 10, _hoisted_1$11);
|
|
19104
19112
|
};
|
|
19105
19113
|
}
|
|
19106
19114
|
});
|
|
19107
|
-
const _hoisted_1
|
|
19108
|
-
const _sfc_main$
|
|
19115
|
+
const _hoisted_1$10 = { class: "lupa-text-badges" };
|
|
19116
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
19109
19117
|
__name: "TextBadge",
|
|
19110
19118
|
props: {
|
|
19111
19119
|
badge: {}
|
|
@@ -19119,7 +19127,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
19119
19127
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19120
19128
|
});
|
|
19121
19129
|
return (_ctx, _cache) => {
|
|
19122
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19130
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
19123
19131
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19124
19132
|
return openBlock(), createElementBlock("div", {
|
|
19125
19133
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19130,9 +19138,9 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
19130
19138
|
};
|
|
19131
19139
|
}
|
|
19132
19140
|
});
|
|
19133
|
-
const _hoisted_1
|
|
19134
|
-
const _hoisted_2$
|
|
19135
|
-
const _sfc_main$
|
|
19141
|
+
const _hoisted_1$$ = { class: "lupa-image-badges" };
|
|
19142
|
+
const _hoisted_2$M = ["src"];
|
|
19143
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19136
19144
|
__name: "ImageBadge",
|
|
19137
19145
|
props: {
|
|
19138
19146
|
badge: {}
|
|
@@ -19152,7 +19160,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
19152
19160
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19153
19161
|
};
|
|
19154
19162
|
return (_ctx, _cache) => {
|
|
19155
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
19163
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
19156
19164
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19157
19165
|
return openBlock(), createElementBlock("div", {
|
|
19158
19166
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19160,14 +19168,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
19160
19168
|
}, [
|
|
19161
19169
|
createBaseVNode("img", {
|
|
19162
19170
|
src: getImageUrl(item)
|
|
19163
|
-
}, null, 8, _hoisted_2$
|
|
19171
|
+
}, null, 8, _hoisted_2$M)
|
|
19164
19172
|
]);
|
|
19165
19173
|
}), 128))
|
|
19166
19174
|
]);
|
|
19167
19175
|
};
|
|
19168
19176
|
}
|
|
19169
19177
|
});
|
|
19170
|
-
const _sfc_main$
|
|
19178
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
19171
19179
|
__name: "DiscountBadge",
|
|
19172
19180
|
props: {
|
|
19173
19181
|
badge: {}
|
|
@@ -19225,16 +19233,16 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
19225
19233
|
};
|
|
19226
19234
|
}
|
|
19227
19235
|
});
|
|
19228
|
-
const _hoisted_1$
|
|
19236
|
+
const _hoisted_1$_ = { id: "lupa-search-results-badges" };
|
|
19229
19237
|
const __default__$3 = {
|
|
19230
19238
|
components: {
|
|
19231
|
-
CustomBadge: _sfc_main$
|
|
19232
|
-
TextBadge: _sfc_main$
|
|
19233
|
-
ImageBadge: _sfc_main$
|
|
19234
|
-
DiscountBadge: _sfc_main$
|
|
19239
|
+
CustomBadge: _sfc_main$19,
|
|
19240
|
+
TextBadge: _sfc_main$18,
|
|
19241
|
+
ImageBadge: _sfc_main$17,
|
|
19242
|
+
DiscountBadge: _sfc_main$16
|
|
19235
19243
|
}
|
|
19236
19244
|
};
|
|
19237
|
-
const _sfc_main$
|
|
19245
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19238
19246
|
__name: "SearchResultsBadgeWrapper",
|
|
19239
19247
|
props: {
|
|
19240
19248
|
position: {},
|
|
@@ -19297,7 +19305,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19297
19305
|
}
|
|
19298
19306
|
};
|
|
19299
19307
|
return (_ctx, _cache) => {
|
|
19300
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19308
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
19301
19309
|
createBaseVNode("div", {
|
|
19302
19310
|
id: "lupa-badges",
|
|
19303
19311
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19308,7 +19316,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19308
19316
|
badge
|
|
19309
19317
|
}, null, 8, ["badge"]);
|
|
19310
19318
|
}), 128)),
|
|
19311
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19319
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
|
|
19312
19320
|
key: 0,
|
|
19313
19321
|
options: _ctx.options
|
|
19314
19322
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19317,13 +19325,13 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19317
19325
|
};
|
|
19318
19326
|
}
|
|
19319
19327
|
}));
|
|
19320
|
-
const _hoisted_1$
|
|
19321
|
-
const _hoisted_2$
|
|
19322
|
-
const _hoisted_3$
|
|
19328
|
+
const _hoisted_1$Z = ["href"];
|
|
19329
|
+
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
19330
|
+
const _hoisted_3$z = {
|
|
19323
19331
|
key: 0,
|
|
19324
19332
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19325
19333
|
};
|
|
19326
|
-
const _sfc_main$
|
|
19334
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
19327
19335
|
__name: "SearchBoxProduct",
|
|
19328
19336
|
props: {
|
|
19329
19337
|
item: {},
|
|
@@ -19409,7 +19417,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19409
19417
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19410
19418
|
}, [
|
|
19411
19419
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19412
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19420
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19413
19421
|
class: "lupa-search-box-product-element",
|
|
19414
19422
|
item: _ctx.item,
|
|
19415
19423
|
element,
|
|
@@ -19419,10 +19427,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19419
19427
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
19420
19428
|
}), 128))
|
|
19421
19429
|
], 4),
|
|
19422
|
-
createBaseVNode("div", _hoisted_2$
|
|
19430
|
+
createBaseVNode("div", _hoisted_2$L, [
|
|
19423
19431
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19424
19432
|
var _a;
|
|
19425
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19433
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19426
19434
|
key: element.key,
|
|
19427
19435
|
class: "lupa-search-box-product-element",
|
|
19428
19436
|
item: _ctx.item,
|
|
@@ -19433,7 +19441,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19433
19441
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19434
19442
|
name: "badges",
|
|
19435
19443
|
fn: withCtx(() => [
|
|
19436
|
-
createVNode(_sfc_main$
|
|
19444
|
+
createVNode(_sfc_main$15, {
|
|
19437
19445
|
options: badgeOptions.value,
|
|
19438
19446
|
position: "card"
|
|
19439
19447
|
}, null, 8, ["options"])
|
|
@@ -19443,8 +19451,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19443
19451
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19444
19452
|
}), 128))
|
|
19445
19453
|
]),
|
|
19446
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19447
|
-
createVNode(_sfc_main$
|
|
19454
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
19455
|
+
createVNode(_sfc_main$1c, {
|
|
19448
19456
|
class: "lupa-search-box-product-element",
|
|
19449
19457
|
item: _ctx.item,
|
|
19450
19458
|
element: addToCartElement.value,
|
|
@@ -19453,7 +19461,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19453
19461
|
isInStock: isInStock.value
|
|
19454
19462
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19455
19463
|
])) : createCommentVNode("", true)
|
|
19456
|
-
], 16, _hoisted_1$
|
|
19464
|
+
], 16, _hoisted_1$Z);
|
|
19457
19465
|
};
|
|
19458
19466
|
}
|
|
19459
19467
|
});
|
|
@@ -19525,8 +19533,8 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
19525
19533
|
};
|
|
19526
19534
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
19527
19535
|
});
|
|
19528
|
-
const _hoisted_1$
|
|
19529
|
-
const _sfc_main$
|
|
19536
|
+
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
19537
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19530
19538
|
__name: "SearchBoxProducts",
|
|
19531
19539
|
props: {
|
|
19532
19540
|
items: {},
|
|
@@ -19594,7 +19602,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19594
19602
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19595
19603
|
};
|
|
19596
19604
|
return (_ctx, _cache) => {
|
|
19597
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19605
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
19598
19606
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19599
19607
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19600
19608
|
key: index,
|
|
@@ -19606,7 +19614,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19606
19614
|
itemClicked: handleProductClick
|
|
19607
19615
|
});
|
|
19608
19616
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19609
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19617
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19610
19618
|
key: index,
|
|
19611
19619
|
item,
|
|
19612
19620
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19621,9 +19629,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19621
19629
|
};
|
|
19622
19630
|
}
|
|
19623
19631
|
});
|
|
19624
|
-
const _hoisted_1$
|
|
19625
|
-
const _hoisted_2$
|
|
19626
|
-
const _sfc_main$
|
|
19632
|
+
const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19633
|
+
const _hoisted_2$K = { key: 0 };
|
|
19634
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
19627
19635
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19628
19636
|
props: {
|
|
19629
19637
|
options: {},
|
|
@@ -19653,19 +19661,19 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19653
19661
|
emit2("goToResults");
|
|
19654
19662
|
};
|
|
19655
19663
|
return (_ctx, _cache) => {
|
|
19656
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19664
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19657
19665
|
createBaseVNode("button", {
|
|
19658
19666
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19659
19667
|
onClick: goToResults
|
|
19660
19668
|
}, [
|
|
19661
19669
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
19662
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
19670
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
19663
19671
|
])
|
|
19664
19672
|
]);
|
|
19665
19673
|
};
|
|
19666
19674
|
}
|
|
19667
19675
|
});
|
|
19668
|
-
const _sfc_main$
|
|
19676
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19669
19677
|
__name: "SearchBoxProductsWrapper",
|
|
19670
19678
|
props: {
|
|
19671
19679
|
panel: {},
|
|
@@ -19722,7 +19730,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
19722
19730
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19723
19731
|
return (_ctx, _cache) => {
|
|
19724
19732
|
var _a, _b;
|
|
19725
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19733
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
19726
19734
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19727
19735
|
panelOptions: _ctx.panel,
|
|
19728
19736
|
labels: _ctx.labels,
|
|
@@ -19732,7 +19740,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
19732
19740
|
default: withCtx(() => {
|
|
19733
19741
|
var _a2;
|
|
19734
19742
|
return [
|
|
19735
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
19743
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
|
|
19736
19744
|
key: 0,
|
|
19737
19745
|
options: _ctx.searchBoxOptions,
|
|
19738
19746
|
panel: _ctx.panel,
|
|
@@ -19753,7 +19761,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
19753
19761
|
};
|
|
19754
19762
|
}
|
|
19755
19763
|
});
|
|
19756
|
-
const _sfc_main
|
|
19764
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19757
19765
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19758
19766
|
props: {
|
|
19759
19767
|
panel: {},
|
|
@@ -19825,7 +19833,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19825
19833
|
});
|
|
19826
19834
|
return (_ctx, _cache) => {
|
|
19827
19835
|
var _a, _b;
|
|
19828
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19836
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
19829
19837
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19830
19838
|
panelOptions: documentPanelOptions.value,
|
|
19831
19839
|
labels: _ctx.labels,
|
|
@@ -19843,12 +19851,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19843
19851
|
};
|
|
19844
19852
|
}
|
|
19845
19853
|
});
|
|
19846
|
-
const _hoisted_1$
|
|
19854
|
+
const _hoisted_1$W = {
|
|
19847
19855
|
key: 0,
|
|
19848
19856
|
id: "lupa-search-box-panel"
|
|
19849
19857
|
};
|
|
19850
|
-
const _hoisted_2$
|
|
19851
|
-
const _hoisted_3$
|
|
19858
|
+
const _hoisted_2$J = ["data-cy"];
|
|
19859
|
+
const _hoisted_3$y = {
|
|
19852
19860
|
key: 0,
|
|
19853
19861
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19854
19862
|
};
|
|
@@ -19862,12 +19870,12 @@ const _hoisted_5$g = {
|
|
|
19862
19870
|
};
|
|
19863
19871
|
const __default__$2 = {
|
|
19864
19872
|
components: {
|
|
19865
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19866
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19867
|
-
SearchBoxRelatedSourceWrapper: _sfc_main
|
|
19873
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1m,
|
|
19874
|
+
SearchBoxProductsWrapper: _sfc_main$11,
|
|
19875
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$10
|
|
19868
19876
|
}
|
|
19869
19877
|
};
|
|
19870
|
-
const _sfc_main
|
|
19878
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19871
19879
|
__name: "SearchBoxMainPanel",
|
|
19872
19880
|
props: {
|
|
19873
19881
|
options: {},
|
|
@@ -20023,7 +20031,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
20023
20031
|
ref_key: "panelContainer",
|
|
20024
20032
|
ref: panelContainer
|
|
20025
20033
|
}, [
|
|
20026
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20034
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
20027
20035
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
20028
20036
|
key: 0,
|
|
20029
20037
|
class: "lupa-search-box-close-panel",
|
|
@@ -20045,7 +20053,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
20045
20053
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
20046
20054
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
20047
20055
|
}, [
|
|
20048
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20056
|
+
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
20049
20057
|
((_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),
|
|
20050
20058
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
20051
20059
|
key: 2,
|
|
@@ -20068,21 +20076,21 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
20068
20076
|
key: "0"
|
|
20069
20077
|
} : void 0
|
|
20070
20078
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
20071
|
-
], 14, _hoisted_2$
|
|
20079
|
+
], 14, _hoisted_2$J);
|
|
20072
20080
|
}), 128))
|
|
20073
20081
|
], 4),
|
|
20074
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
20082
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
20075
20083
|
key: 1,
|
|
20076
20084
|
labels: labels.value
|
|
20077
20085
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
20078
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
20086
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
20079
20087
|
key: 2,
|
|
20080
20088
|
labels: labels.value,
|
|
20081
20089
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
20082
20090
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
20083
20091
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
20084
20092
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
20085
|
-
createVNode(_sfc_main$
|
|
20093
|
+
createVNode(_sfc_main$1q, {
|
|
20086
20094
|
options: _ctx.options.history,
|
|
20087
20095
|
history: history.value,
|
|
20088
20096
|
onGoToResults: handleGoToResults,
|
|
@@ -20107,9 +20115,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
20107
20115
|
const elements = getElements(triggers);
|
|
20108
20116
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
20109
20117
|
};
|
|
20110
|
-
const _hoisted_1$
|
|
20111
|
-
const _hoisted_2$
|
|
20112
|
-
const _sfc_main$
|
|
20118
|
+
const _hoisted_1$V = { id: "lupa-search-box" };
|
|
20119
|
+
const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
|
|
20120
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
20113
20121
|
__name: "SearchBox",
|
|
20114
20122
|
props: {
|
|
20115
20123
|
options: {},
|
|
@@ -20376,9 +20384,9 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
20376
20384
|
};
|
|
20377
20385
|
return (_ctx, _cache) => {
|
|
20378
20386
|
var _a2;
|
|
20379
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20380
|
-
createBaseVNode("div", _hoisted_2$
|
|
20381
|
-
createVNode(_sfc_main$
|
|
20387
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
20388
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
20389
|
+
createVNode(_sfc_main$1t, {
|
|
20382
20390
|
options: inputOptions.value,
|
|
20383
20391
|
suggestedValue: suggestedValue.value,
|
|
20384
20392
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20391,7 +20399,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
20391
20399
|
onSearch: handleSearch,
|
|
20392
20400
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20393
20401
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20394
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main
|
|
20402
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
|
|
20395
20403
|
key: 0,
|
|
20396
20404
|
options: panelOptions.value,
|
|
20397
20405
|
inputValue: inputValue.value,
|
|
@@ -20480,20 +20488,20 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
20480
20488
|
}
|
|
20481
20489
|
return searchParams;
|
|
20482
20490
|
};
|
|
20483
|
-
const _hoisted_1$
|
|
20491
|
+
const _hoisted_1$U = {
|
|
20484
20492
|
key: 0,
|
|
20485
20493
|
id: "lupa-search-results-did-you-mean"
|
|
20486
20494
|
};
|
|
20487
|
-
const _hoisted_2$
|
|
20495
|
+
const _hoisted_2$H = {
|
|
20488
20496
|
key: 0,
|
|
20489
20497
|
"data-cy": "suggested-search-text-label"
|
|
20490
20498
|
};
|
|
20491
|
-
const _hoisted_3$
|
|
20499
|
+
const _hoisted_3$x = {
|
|
20492
20500
|
key: 1,
|
|
20493
20501
|
"data-cy": "did-you-mean-label"
|
|
20494
20502
|
};
|
|
20495
20503
|
const _hoisted_4$o = { key: 1 };
|
|
20496
|
-
const _sfc_main$
|
|
20504
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
20497
20505
|
__name: "SearchResultsDidYouMean",
|
|
20498
20506
|
props: {
|
|
20499
20507
|
labels: {}
|
|
@@ -20525,8 +20533,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20525
20533
|
paramStore.goToResults({ searchText, facet });
|
|
20526
20534
|
};
|
|
20527
20535
|
return (_ctx, _cache) => {
|
|
20528
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20529
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20536
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
20537
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
|
|
20530
20538
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20531
20539
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20532
20540
|
createBaseVNode("span", {
|
|
@@ -20535,7 +20543,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20535
20543
|
]);
|
|
20536
20544
|
}), 128))
|
|
20537
20545
|
])) : createCommentVNode("", true),
|
|
20538
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20546
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
20539
20547
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
20540
20548
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
20541
20549
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -20551,12 +20559,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20551
20559
|
};
|
|
20552
20560
|
}
|
|
20553
20561
|
});
|
|
20554
|
-
const _hoisted_1$
|
|
20562
|
+
const _hoisted_1$T = {
|
|
20555
20563
|
key: 0,
|
|
20556
20564
|
class: "lupa-search-results-summary"
|
|
20557
20565
|
};
|
|
20558
|
-
const _hoisted_2$
|
|
20559
|
-
const _sfc_main$
|
|
20566
|
+
const _hoisted_2$G = ["innerHTML"];
|
|
20567
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20560
20568
|
__name: "SearchResultsSummary",
|
|
20561
20569
|
props: {
|
|
20562
20570
|
label: {},
|
|
@@ -20571,8 +20579,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
20571
20579
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20572
20580
|
});
|
|
20573
20581
|
return (_ctx, _cache) => {
|
|
20574
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20575
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
20582
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
20583
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$G),
|
|
20576
20584
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20577
20585
|
key: 0,
|
|
20578
20586
|
class: "lupa-filter-clear",
|
|
@@ -20583,19 +20591,19 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
20583
20591
|
};
|
|
20584
20592
|
}
|
|
20585
20593
|
});
|
|
20586
|
-
const _hoisted_1$
|
|
20594
|
+
const _hoisted_1$S = {
|
|
20587
20595
|
key: 0,
|
|
20588
20596
|
class: "lupa-result-page-title",
|
|
20589
20597
|
"data-cy": "lupa-result-page-title"
|
|
20590
20598
|
};
|
|
20591
|
-
const _hoisted_2$
|
|
20592
|
-
const _hoisted_3$
|
|
20599
|
+
const _hoisted_2$F = { key: 0 };
|
|
20600
|
+
const _hoisted_3$w = {
|
|
20593
20601
|
key: 1,
|
|
20594
20602
|
class: "lupa-results-total-count"
|
|
20595
20603
|
};
|
|
20596
20604
|
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
20597
20605
|
const _hoisted_5$f = ["innerHTML"];
|
|
20598
|
-
const _sfc_main$
|
|
20606
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
20599
20607
|
__name: "SearchResultsTitle",
|
|
20600
20608
|
props: {
|
|
20601
20609
|
options: {},
|
|
@@ -20634,16 +20642,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
20634
20642
|
});
|
|
20635
20643
|
return (_ctx, _cache) => {
|
|
20636
20644
|
return openBlock(), createElementBlock("div", null, [
|
|
20637
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20645
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
|
|
20638
20646
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20639
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20640
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
20647
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20648
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
|
|
20641
20649
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20642
20650
|
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
20643
20651
|
createTextVNode(")")
|
|
20644
20652
|
])) : createCommentVNode("", true)
|
|
20645
20653
|
])) : createCommentVNode("", true),
|
|
20646
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20654
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
20647
20655
|
key: 1,
|
|
20648
20656
|
label: summaryLabel.value
|
|
20649
20657
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20656,16 +20664,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
20656
20664
|
};
|
|
20657
20665
|
}
|
|
20658
20666
|
});
|
|
20659
|
-
const _hoisted_1$
|
|
20660
|
-
const _hoisted_2$
|
|
20667
|
+
const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
|
|
20668
|
+
const _hoisted_2$E = {
|
|
20661
20669
|
class: "lupa-current-filter-label",
|
|
20662
20670
|
"data-cy": "lupa-current-filter-label"
|
|
20663
20671
|
};
|
|
20664
|
-
const _hoisted_3$
|
|
20672
|
+
const _hoisted_3$v = {
|
|
20665
20673
|
class: "lupa-current-filter-value",
|
|
20666
20674
|
"data-cy": "lupa-current-filter-value"
|
|
20667
20675
|
};
|
|
20668
|
-
const _sfc_main$
|
|
20676
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20669
20677
|
__name: "CurrentFilterDisplay",
|
|
20670
20678
|
props: {
|
|
20671
20679
|
filter: {}
|
|
@@ -20677,28 +20685,28 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
20677
20685
|
emit2("remove", { filter: props.filter });
|
|
20678
20686
|
};
|
|
20679
20687
|
return (_ctx, _cache) => {
|
|
20680
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20688
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
20681
20689
|
createBaseVNode("div", {
|
|
20682
20690
|
class: "lupa-current-filter-action",
|
|
20683
20691
|
onClick: handleClick
|
|
20684
20692
|
}, "⨉"),
|
|
20685
|
-
createBaseVNode("div", _hoisted_2$
|
|
20686
|
-
createBaseVNode("div", _hoisted_3$
|
|
20693
|
+
createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
20694
|
+
createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
|
|
20687
20695
|
]);
|
|
20688
20696
|
};
|
|
20689
20697
|
}
|
|
20690
20698
|
});
|
|
20691
|
-
const _hoisted_1$
|
|
20692
|
-
const _hoisted_2$
|
|
20699
|
+
const _hoisted_1$Q = { class: "lupa-filter-title-text" };
|
|
20700
|
+
const _hoisted_2$D = {
|
|
20693
20701
|
key: 0,
|
|
20694
20702
|
class: "lupa-filter-count"
|
|
20695
20703
|
};
|
|
20696
|
-
const _hoisted_3$
|
|
20704
|
+
const _hoisted_3$u = {
|
|
20697
20705
|
key: 0,
|
|
20698
20706
|
class: "filter-values"
|
|
20699
20707
|
};
|
|
20700
20708
|
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
20701
|
-
const _sfc_main$
|
|
20709
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20702
20710
|
__name: "CurrentFilters",
|
|
20703
20711
|
props: {
|
|
20704
20712
|
options: {},
|
|
@@ -20771,19 +20779,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20771
20779
|
class: "lupa-current-filter-title",
|
|
20772
20780
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20773
20781
|
}, [
|
|
20774
|
-
createBaseVNode("div", _hoisted_1$
|
|
20782
|
+
createBaseVNode("div", _hoisted_1$Q, [
|
|
20775
20783
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20776
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
20784
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$D, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20777
20785
|
]),
|
|
20778
20786
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
20779
20787
|
key: 0,
|
|
20780
20788
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
20781
20789
|
}, null, 2)) : createCommentVNode("", true)
|
|
20782
20790
|
]),
|
|
20783
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20791
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
20784
20792
|
createBaseVNode("div", _hoisted_4$m, [
|
|
20785
20793
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20786
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20794
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
20787
20795
|
key: filter2.key + "_" + filter2.value,
|
|
20788
20796
|
filter: filter2,
|
|
20789
20797
|
onRemove: handleRemove
|
|
@@ -20800,8 +20808,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20800
20808
|
};
|
|
20801
20809
|
}
|
|
20802
20810
|
});
|
|
20803
|
-
const _hoisted_1$
|
|
20804
|
-
const _sfc_main$
|
|
20811
|
+
const _hoisted_1$P = ["href"];
|
|
20812
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20805
20813
|
__name: "CategoryFilterItem",
|
|
20806
20814
|
props: {
|
|
20807
20815
|
options: {},
|
|
@@ -20838,20 +20846,20 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
20838
20846
|
"data-cy": "lupa-child-category-item",
|
|
20839
20847
|
href: urlLink.value,
|
|
20840
20848
|
onClick: handleNavigation
|
|
20841
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20849
|
+
}, toDisplayString(title.value), 9, _hoisted_1$P)
|
|
20842
20850
|
], 2);
|
|
20843
20851
|
};
|
|
20844
20852
|
}
|
|
20845
20853
|
});
|
|
20846
|
-
const _hoisted_1$
|
|
20854
|
+
const _hoisted_1$O = {
|
|
20847
20855
|
class: "lupa-category-filter",
|
|
20848
20856
|
"data-cy": "lupa-category-filter"
|
|
20849
20857
|
};
|
|
20850
|
-
const _hoisted_2$
|
|
20851
|
-
const _hoisted_3$
|
|
20858
|
+
const _hoisted_2$C = { class: "lupa-category-back" };
|
|
20859
|
+
const _hoisted_3$t = ["href"];
|
|
20852
20860
|
const _hoisted_4$l = ["href"];
|
|
20853
20861
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20854
|
-
const _sfc_main$
|
|
20862
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20855
20863
|
__name: "CategoryFilter",
|
|
20856
20864
|
props: {
|
|
20857
20865
|
options: {}
|
|
@@ -20939,14 +20947,14 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20939
20947
|
};
|
|
20940
20948
|
__expose({ fetch: fetch2 });
|
|
20941
20949
|
return (_ctx, _cache) => {
|
|
20942
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20943
|
-
createBaseVNode("div", _hoisted_2$
|
|
20950
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
20951
|
+
createBaseVNode("div", _hoisted_2$C, [
|
|
20944
20952
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20945
20953
|
key: 0,
|
|
20946
20954
|
"data-cy": "lupa-category-back",
|
|
20947
20955
|
href: backUrlLink.value,
|
|
20948
20956
|
onClick: handleNavigationBack
|
|
20949
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
20957
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
|
|
20950
20958
|
]),
|
|
20951
20959
|
createBaseVNode("div", {
|
|
20952
20960
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -20960,7 +20968,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20960
20968
|
], 2),
|
|
20961
20969
|
createBaseVNode("div", _hoisted_5$e, [
|
|
20962
20970
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20963
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20971
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
20964
20972
|
key: getCategoryKey(child),
|
|
20965
20973
|
item: child,
|
|
20966
20974
|
options: _ctx.options
|
|
@@ -20971,12 +20979,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20971
20979
|
};
|
|
20972
20980
|
}
|
|
20973
20981
|
});
|
|
20974
|
-
const _hoisted_1$
|
|
20982
|
+
const _hoisted_1$N = {
|
|
20975
20983
|
class: "lupa-search-result-facet-term-values",
|
|
20976
20984
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20977
20985
|
};
|
|
20978
|
-
const _hoisted_2$
|
|
20979
|
-
const _hoisted_3$
|
|
20986
|
+
const _hoisted_2$B = ["placeholder"];
|
|
20987
|
+
const _hoisted_3$s = { class: "lupa-terms-list" };
|
|
20980
20988
|
const _hoisted_4$k = ["onClick"];
|
|
20981
20989
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
20982
20990
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
@@ -20987,7 +20995,7 @@ const _hoisted_8$2 = {
|
|
|
20987
20995
|
};
|
|
20988
20996
|
const _hoisted_9$2 = { key: 0 };
|
|
20989
20997
|
const _hoisted_10$1 = { key: 1 };
|
|
20990
|
-
const _sfc_main$
|
|
20998
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20991
20999
|
__name: "TermFacet",
|
|
20992
21000
|
props: {
|
|
20993
21001
|
options: {},
|
|
@@ -21058,17 +21066,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
21058
21066
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
21059
21067
|
};
|
|
21060
21068
|
return (_ctx, _cache) => {
|
|
21061
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21069
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
21062
21070
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
21063
21071
|
key: 0,
|
|
21064
21072
|
class: "lupa-term-filter",
|
|
21065
21073
|
"data-cy": "lupa-term-filter",
|
|
21066
21074
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
21067
21075
|
placeholder: _ctx.options.labels.facetFilter
|
|
21068
|
-
}, null, 8, _hoisted_2$
|
|
21076
|
+
}, null, 8, _hoisted_2$B)), [
|
|
21069
21077
|
[vModelText, termFilter.value]
|
|
21070
21078
|
]) : createCommentVNode("", true),
|
|
21071
|
-
createBaseVNode("div", _hoisted_3$
|
|
21079
|
+
createBaseVNode("div", _hoisted_3$s, [
|
|
21072
21080
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
21073
21081
|
return openBlock(), createElementBlock("div", {
|
|
21074
21082
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -22076,12 +22084,12 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
22076
22084
|
m.render = function(e2, t, r, i, n, o) {
|
|
22077
22085
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
22078
22086
|
}, m.__file = "src/Slider.vue";
|
|
22079
|
-
const _hoisted_1$
|
|
22080
|
-
const _hoisted_2$
|
|
22087
|
+
const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
|
|
22088
|
+
const _hoisted_2$A = {
|
|
22081
22089
|
key: 0,
|
|
22082
22090
|
class: "lupa-stats-facet-summary"
|
|
22083
22091
|
};
|
|
22084
|
-
const _hoisted_3$
|
|
22092
|
+
const _hoisted_3$r = {
|
|
22085
22093
|
key: 1,
|
|
22086
22094
|
class: "lupa-stats-facet-summary-input"
|
|
22087
22095
|
};
|
|
@@ -22104,7 +22112,7 @@ const _hoisted_13 = {
|
|
|
22104
22112
|
key: 2,
|
|
22105
22113
|
class: "lupa-stats-slider-wrapper"
|
|
22106
22114
|
};
|
|
22107
|
-
const _sfc_main$
|
|
22115
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
22108
22116
|
__name: "StatsFacet",
|
|
22109
22117
|
props: {
|
|
22110
22118
|
options: {},
|
|
@@ -22281,8 +22289,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22281
22289
|
innerSliderRange.value = value;
|
|
22282
22290
|
};
|
|
22283
22291
|
return (_ctx, _cache) => {
|
|
22284
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22285
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22292
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
22293
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
22286
22294
|
createBaseVNode("div", null, [
|
|
22287
22295
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22288
22296
|
createBaseVNode("div", _hoisted_5$c, [
|
|
@@ -22348,9 +22356,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22348
22356
|
};
|
|
22349
22357
|
}
|
|
22350
22358
|
});
|
|
22351
|
-
const _hoisted_1$
|
|
22352
|
-
const _hoisted_2$
|
|
22353
|
-
const _hoisted_3$
|
|
22359
|
+
const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
|
|
22360
|
+
const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
|
|
22361
|
+
const _hoisted_3$q = { class: "lupa-term-label" };
|
|
22354
22362
|
const _hoisted_4$i = {
|
|
22355
22363
|
key: 0,
|
|
22356
22364
|
class: "lupa-term-count"
|
|
@@ -22359,7 +22367,7 @@ const _hoisted_5$b = {
|
|
|
22359
22367
|
key: 0,
|
|
22360
22368
|
class: "lupa-facet-level"
|
|
22361
22369
|
};
|
|
22362
|
-
const _sfc_main$
|
|
22370
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
22363
22371
|
__name: "HierarchyFacetLevel",
|
|
22364
22372
|
props: {
|
|
22365
22373
|
options: {},
|
|
@@ -22405,13 +22413,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
22405
22413
|
"data-cy": "lupa-facet-term",
|
|
22406
22414
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22407
22415
|
}, [
|
|
22408
|
-
createBaseVNode("div", _hoisted_1$
|
|
22416
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
22409
22417
|
createBaseVNode("span", {
|
|
22410
22418
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22411
22419
|
}, null, 2)
|
|
22412
22420
|
]),
|
|
22413
|
-
createBaseVNode("div", _hoisted_2$
|
|
22414
|
-
createBaseVNode("span", _hoisted_3$
|
|
22421
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
22422
|
+
createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22415
22423
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22416
22424
|
])
|
|
22417
22425
|
]),
|
|
@@ -22431,13 +22439,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
22431
22439
|
};
|
|
22432
22440
|
}
|
|
22433
22441
|
});
|
|
22434
|
-
const _hoisted_1$
|
|
22442
|
+
const _hoisted_1$K = {
|
|
22435
22443
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22436
22444
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22437
22445
|
};
|
|
22438
|
-
const _hoisted_2$
|
|
22439
|
-
const _hoisted_3$
|
|
22440
|
-
const _sfc_main$
|
|
22446
|
+
const _hoisted_2$y = { key: 0 };
|
|
22447
|
+
const _hoisted_3$p = ["placeholder"];
|
|
22448
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
22441
22449
|
__name: "HierarchyFacet",
|
|
22442
22450
|
props: {
|
|
22443
22451
|
options: {},
|
|
@@ -22492,19 +22500,19 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
22492
22500
|
showAll.value = false;
|
|
22493
22501
|
};
|
|
22494
22502
|
return (_ctx, _cache) => {
|
|
22495
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22496
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22503
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
22504
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
22497
22505
|
withDirectives(createBaseVNode("input", {
|
|
22498
22506
|
class: "lupa-term-filter",
|
|
22499
22507
|
"data-cy": "lupa-term-filter",
|
|
22500
22508
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
22501
22509
|
placeholder: _ctx.options.labels.facetFilter
|
|
22502
|
-
}, null, 8, _hoisted_3$
|
|
22510
|
+
}, null, 8, _hoisted_3$p), [
|
|
22503
22511
|
[vModelText, termFilter.value]
|
|
22504
22512
|
])
|
|
22505
22513
|
])) : createCommentVNode("", true),
|
|
22506
22514
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22507
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22515
|
+
return openBlock(), createBlock(_sfc_main$Q, {
|
|
22508
22516
|
key: item.title,
|
|
22509
22517
|
options: _ctx.options,
|
|
22510
22518
|
item,
|
|
@@ -22528,20 +22536,20 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
22528
22536
|
};
|
|
22529
22537
|
}
|
|
22530
22538
|
});
|
|
22531
|
-
const _hoisted_1$
|
|
22532
|
-
const _hoisted_2$
|
|
22539
|
+
const _hoisted_1$J = { class: "lupa-facet-label-text" };
|
|
22540
|
+
const _hoisted_2$x = {
|
|
22533
22541
|
key: 0,
|
|
22534
22542
|
class: "lupa-facet-content",
|
|
22535
22543
|
"data-cy": "lupa-facet-content"
|
|
22536
22544
|
};
|
|
22537
22545
|
const __default__$1 = {
|
|
22538
22546
|
components: {
|
|
22539
|
-
TermFacet: _sfc_main$
|
|
22540
|
-
StatsFacet: _sfc_main$
|
|
22541
|
-
HierarchyFacet: _sfc_main$
|
|
22547
|
+
TermFacet: _sfc_main$S,
|
|
22548
|
+
StatsFacet: _sfc_main$R,
|
|
22549
|
+
HierarchyFacet: _sfc_main$P
|
|
22542
22550
|
}
|
|
22543
22551
|
};
|
|
22544
|
-
const _sfc_main$
|
|
22552
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22545
22553
|
__name: "FacetDisplay",
|
|
22546
22554
|
props: {
|
|
22547
22555
|
options: {},
|
|
@@ -22653,12 +22661,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22653
22661
|
"data-cy": "lupa-search-result-facet-label",
|
|
22654
22662
|
onClick: toggleFacet
|
|
22655
22663
|
}, [
|
|
22656
|
-
createBaseVNode("div", _hoisted_1$
|
|
22664
|
+
createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
|
|
22657
22665
|
createBaseVNode("div", {
|
|
22658
22666
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22659
22667
|
}, null, 2)
|
|
22660
22668
|
], 2),
|
|
22661
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22669
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
22662
22670
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
22663
22671
|
facet: facet.value,
|
|
22664
22672
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -22676,12 +22684,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22676
22684
|
};
|
|
22677
22685
|
}
|
|
22678
22686
|
}));
|
|
22679
|
-
const _hoisted_1$
|
|
22680
|
-
const _hoisted_2$
|
|
22687
|
+
const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
|
|
22688
|
+
const _hoisted_2$w = {
|
|
22681
22689
|
key: 0,
|
|
22682
22690
|
class: "lupa-facets-title"
|
|
22683
22691
|
};
|
|
22684
|
-
const _sfc_main$
|
|
22692
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22685
22693
|
__name: "FacetList",
|
|
22686
22694
|
props: {
|
|
22687
22695
|
options: {},
|
|
@@ -22715,14 +22723,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22715
22723
|
};
|
|
22716
22724
|
return (_ctx, _cache) => {
|
|
22717
22725
|
var _a;
|
|
22718
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22719
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22726
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
22727
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22720
22728
|
createBaseVNode("div", {
|
|
22721
22729
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22722
22730
|
}, [
|
|
22723
22731
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22724
22732
|
var _a2;
|
|
22725
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22733
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
22726
22734
|
key: facet.key,
|
|
22727
22735
|
facet,
|
|
22728
22736
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22737,8 +22745,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22737
22745
|
};
|
|
22738
22746
|
}
|
|
22739
22747
|
});
|
|
22740
|
-
const _hoisted_1$
|
|
22741
|
-
const _sfc_main$
|
|
22748
|
+
const _hoisted_1$H = ["onClick"];
|
|
22749
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22742
22750
|
__name: "FacetsButton",
|
|
22743
22751
|
props: {
|
|
22744
22752
|
options: {}
|
|
@@ -22758,13 +22766,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22758
22766
|
key: 0,
|
|
22759
22767
|
class: "lupa-facets-button-filter",
|
|
22760
22768
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22761
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22769
|
+
}, toDisplayString(label.value), 9, _hoisted_1$H)) : createCommentVNode("", true);
|
|
22762
22770
|
};
|
|
22763
22771
|
}
|
|
22764
22772
|
});
|
|
22765
|
-
const _hoisted_1$
|
|
22766
|
-
const _hoisted_2$
|
|
22767
|
-
const _sfc_main$
|
|
22773
|
+
const _hoisted_1$G = { class: "lupa-search-result-facets" };
|
|
22774
|
+
const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
|
|
22775
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
22768
22776
|
__name: "Facets",
|
|
22769
22777
|
props: {
|
|
22770
22778
|
options: {},
|
|
@@ -22847,8 +22855,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22847
22855
|
emit2("filter");
|
|
22848
22856
|
};
|
|
22849
22857
|
return (_ctx, _cache) => {
|
|
22850
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22851
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22858
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
22859
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
22852
22860
|
key: 0,
|
|
22853
22861
|
options: _ctx.options,
|
|
22854
22862
|
facets: regularFacets.value,
|
|
@@ -22858,8 +22866,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22858
22866
|
onSelect: handleFacetSelect,
|
|
22859
22867
|
onClear: clear2
|
|
22860
22868
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22861
|
-
createBaseVNode("div", _hoisted_2$
|
|
22862
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22869
|
+
createBaseVNode("div", _hoisted_2$v, [
|
|
22870
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
22863
22871
|
key: 0,
|
|
22864
22872
|
options: _ctx.options,
|
|
22865
22873
|
onFilter: filter2
|
|
@@ -22869,11 +22877,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22869
22877
|
};
|
|
22870
22878
|
}
|
|
22871
22879
|
});
|
|
22872
|
-
const _hoisted_1$
|
|
22880
|
+
const _hoisted_1$F = {
|
|
22873
22881
|
id: "lupa-search-result-filters",
|
|
22874
22882
|
class: "lupa-search-result-filters"
|
|
22875
22883
|
};
|
|
22876
|
-
const _sfc_main$
|
|
22884
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22877
22885
|
__name: "SearchResultsFilters",
|
|
22878
22886
|
props: {
|
|
22879
22887
|
options: {},
|
|
@@ -22906,19 +22914,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
22906
22914
|
__expose({ fetch: fetch2 });
|
|
22907
22915
|
return (_ctx, _cache) => {
|
|
22908
22916
|
var _a;
|
|
22909
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22910
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22917
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22918
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
22911
22919
|
key: 0,
|
|
22912
22920
|
options: _ctx.options.currentFilters,
|
|
22913
22921
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22914
22922
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22915
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22923
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
|
|
22916
22924
|
key: 1,
|
|
22917
22925
|
options: _ctx.options.categories,
|
|
22918
22926
|
ref_key: "categoryFilters",
|
|
22919
22927
|
ref: categoryFilters
|
|
22920
22928
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22921
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22929
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
22922
22930
|
key: 2,
|
|
22923
22931
|
options: _ctx.options.facets,
|
|
22924
22932
|
onFilter: filter2
|
|
@@ -22927,12 +22935,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
22927
22935
|
};
|
|
22928
22936
|
}
|
|
22929
22937
|
});
|
|
22930
|
-
const _hoisted_1$
|
|
22938
|
+
const _hoisted_1$E = {
|
|
22931
22939
|
key: 0,
|
|
22932
22940
|
class: "lupa-mobile-filter-sidebar"
|
|
22933
22941
|
};
|
|
22934
|
-
const _hoisted_2$
|
|
22935
|
-
const _hoisted_3$
|
|
22942
|
+
const _hoisted_2$u = ["onClick"];
|
|
22943
|
+
const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
|
|
22936
22944
|
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
22937
22945
|
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
22938
22946
|
const _hoisted_6$6 = {
|
|
@@ -22940,7 +22948,7 @@ const _hoisted_6$6 = {
|
|
|
22940
22948
|
class: "lupa-sidebar-filter-count"
|
|
22941
22949
|
};
|
|
22942
22950
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22943
|
-
const _sfc_main$
|
|
22951
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22944
22952
|
__name: "MobileFilterSidebar",
|
|
22945
22953
|
props: {
|
|
22946
22954
|
options: {}
|
|
@@ -22971,12 +22979,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22971
22979
|
handleMobileToggle();
|
|
22972
22980
|
};
|
|
22973
22981
|
return (_ctx, _cache) => {
|
|
22974
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22982
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
22975
22983
|
createBaseVNode("div", {
|
|
22976
22984
|
class: "lupa-sidebar-close",
|
|
22977
22985
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22978
|
-
}, null, 8, _hoisted_2$
|
|
22979
|
-
createBaseVNode("div", _hoisted_3$
|
|
22986
|
+
}, null, 8, _hoisted_2$u),
|
|
22987
|
+
createBaseVNode("div", _hoisted_3$o, [
|
|
22980
22988
|
createBaseVNode("div", _hoisted_4$h, [
|
|
22981
22989
|
createBaseVNode("div", _hoisted_5$a, [
|
|
22982
22990
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -22988,7 +22996,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22988
22996
|
})
|
|
22989
22997
|
]),
|
|
22990
22998
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22991
|
-
createVNode(_sfc_main$
|
|
22999
|
+
createVNode(_sfc_main$K, {
|
|
22992
23000
|
options: _ctx.options,
|
|
22993
23001
|
expandable: isActiveFiltersExpanded.value,
|
|
22994
23002
|
onFilter: filter2
|
|
@@ -22999,14 +23007,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22999
23007
|
};
|
|
23000
23008
|
}
|
|
23001
23009
|
});
|
|
23002
|
-
const _hoisted_1$
|
|
23003
|
-
const _hoisted_2$
|
|
23004
|
-
const _hoisted_3$
|
|
23010
|
+
const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
|
|
23011
|
+
const _hoisted_2$t = ["href", "onClick"];
|
|
23012
|
+
const _hoisted_3$n = {
|
|
23005
23013
|
key: 1,
|
|
23006
23014
|
class: "lupa-search-results-breadcrumb-text"
|
|
23007
23015
|
};
|
|
23008
23016
|
const _hoisted_4$g = { key: 2 };
|
|
23009
|
-
const _sfc_main$
|
|
23017
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
23010
23018
|
__name: "SearchResultsBreadcrumbs",
|
|
23011
23019
|
props: {
|
|
23012
23020
|
breadcrumbs: {}
|
|
@@ -23031,7 +23039,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
23031
23039
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
23032
23040
|
};
|
|
23033
23041
|
return (_ctx, _cache) => {
|
|
23034
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23042
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
23035
23043
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
23036
23044
|
return openBlock(), createElementBlock("span", {
|
|
23037
23045
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -23045,7 +23053,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
23045
23053
|
var _a;
|
|
23046
23054
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
23047
23055
|
}
|
|
23048
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
23056
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
23049
23057
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
|
|
23050
23058
|
]);
|
|
23051
23059
|
}), 128))
|
|
@@ -23053,11 +23061,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
23053
23061
|
};
|
|
23054
23062
|
}
|
|
23055
23063
|
});
|
|
23056
|
-
const _hoisted_1$
|
|
23064
|
+
const _hoisted_1$C = {
|
|
23057
23065
|
id: "lupa-search-result-filters",
|
|
23058
23066
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
23059
23067
|
};
|
|
23060
|
-
const _sfc_main$
|
|
23068
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
23061
23069
|
__name: "FiltersTopDropdown",
|
|
23062
23070
|
props: {
|
|
23063
23071
|
options: {}
|
|
@@ -23069,8 +23077,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
23069
23077
|
};
|
|
23070
23078
|
return (_ctx, _cache) => {
|
|
23071
23079
|
var _a;
|
|
23072
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23073
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
23080
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
23081
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
23074
23082
|
key: 0,
|
|
23075
23083
|
options: _ctx.options.facets,
|
|
23076
23084
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -23081,8 +23089,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
23081
23089
|
};
|
|
23082
23090
|
}
|
|
23083
23091
|
});
|
|
23084
|
-
const _hoisted_1$
|
|
23085
|
-
const _sfc_main$
|
|
23092
|
+
const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
|
|
23093
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23086
23094
|
__name: "SearchResultsLayoutSelection",
|
|
23087
23095
|
setup(__props) {
|
|
23088
23096
|
const searchResultStore = useSearchResultStore();
|
|
@@ -23093,7 +23101,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
23093
23101
|
searchResultStore.setLayout(layout2);
|
|
23094
23102
|
};
|
|
23095
23103
|
return (_ctx, _cache) => {
|
|
23096
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23104
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
23097
23105
|
createBaseVNode("div", {
|
|
23098
23106
|
class: normalizeClass([
|
|
23099
23107
|
"lupa-layout-selection-grid",
|
|
@@ -23115,11 +23123,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
23115
23123
|
};
|
|
23116
23124
|
}
|
|
23117
23125
|
});
|
|
23118
|
-
const _hoisted_1$
|
|
23126
|
+
const _hoisted_1$A = {
|
|
23119
23127
|
key: 0,
|
|
23120
23128
|
class: "lupa-mobile-toggle-filter-count"
|
|
23121
23129
|
};
|
|
23122
|
-
const _sfc_main$
|
|
23130
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
23123
23131
|
__name: "SearchResultsMobileToggle",
|
|
23124
23132
|
props: {
|
|
23125
23133
|
label: {},
|
|
@@ -23137,26 +23145,26 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
23137
23145
|
onClick: handleMobileToggle
|
|
23138
23146
|
}, [
|
|
23139
23147
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
23140
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
23148
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
23141
23149
|
], 2);
|
|
23142
23150
|
};
|
|
23143
23151
|
}
|
|
23144
23152
|
});
|
|
23145
|
-
const _hoisted_1$
|
|
23153
|
+
const _hoisted_1$z = {
|
|
23146
23154
|
key: 0,
|
|
23147
23155
|
id: "lupa-search-results-page-select",
|
|
23148
23156
|
"data-cy": "lupa-search-results-page-select"
|
|
23149
23157
|
};
|
|
23150
|
-
const _hoisted_2$
|
|
23158
|
+
const _hoisted_2$s = {
|
|
23151
23159
|
key: 0,
|
|
23152
23160
|
class: "lupa-page-number-separator"
|
|
23153
23161
|
};
|
|
23154
|
-
const _hoisted_3$
|
|
23162
|
+
const _hoisted_3$m = ["onClick"];
|
|
23155
23163
|
const _hoisted_4$f = {
|
|
23156
23164
|
key: 0,
|
|
23157
23165
|
class: "lupa-page-number-separator"
|
|
23158
23166
|
};
|
|
23159
|
-
const _sfc_main$
|
|
23167
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
23160
23168
|
__name: "SearchResultsPageSelect",
|
|
23161
23169
|
props: {
|
|
23162
23170
|
lastPageLabel: {},
|
|
@@ -23233,7 +23241,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23233
23241
|
}
|
|
23234
23242
|
};
|
|
23235
23243
|
return (_ctx, _cache) => {
|
|
23236
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23244
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
23237
23245
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23238
23246
|
key: 0,
|
|
23239
23247
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23244,7 +23252,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23244
23252
|
class: "lupa-page-number lupa-page-number-first",
|
|
23245
23253
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
23246
23254
|
}, " 1 "),
|
|
23247
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23255
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
|
|
23248
23256
|
], 64)) : createCommentVNode("", true),
|
|
23249
23257
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
23250
23258
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23255,7 +23263,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23255
23263
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23256
23264
|
]),
|
|
23257
23265
|
"data-cy": "lupa-page-number"
|
|
23258
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
23266
|
+
}, toDisplayString(page), 11, _hoisted_3$m);
|
|
23259
23267
|
}), 128)),
|
|
23260
23268
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23261
23269
|
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
@@ -23277,15 +23285,15 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23277
23285
|
};
|
|
23278
23286
|
}
|
|
23279
23287
|
});
|
|
23280
|
-
const _hoisted_1$
|
|
23288
|
+
const _hoisted_1$y = {
|
|
23281
23289
|
id: "lupa-search-results-page-size",
|
|
23282
23290
|
"data-cy": "lupa-search-results-page-size"
|
|
23283
23291
|
};
|
|
23284
|
-
const _hoisted_2$
|
|
23285
|
-
const _hoisted_3$
|
|
23292
|
+
const _hoisted_2$r = { id: "lupa-select" };
|
|
23293
|
+
const _hoisted_3$l = { class: "lupa-select-label" };
|
|
23286
23294
|
const _hoisted_4$e = ["aria-label"];
|
|
23287
23295
|
const _hoisted_5$9 = ["value"];
|
|
23288
|
-
const _sfc_main$
|
|
23296
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
23289
23297
|
__name: "SearchResultsPageSize",
|
|
23290
23298
|
props: {
|
|
23291
23299
|
labels: {},
|
|
@@ -23313,9 +23321,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23313
23321
|
});
|
|
23314
23322
|
};
|
|
23315
23323
|
return (_ctx, _cache) => {
|
|
23316
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23317
|
-
createBaseVNode("div", _hoisted_2$
|
|
23318
|
-
createBaseVNode("label", _hoisted_3$
|
|
23324
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23325
|
+
createBaseVNode("div", _hoisted_2$r, [
|
|
23326
|
+
createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
|
|
23319
23327
|
createBaseVNode("select", {
|
|
23320
23328
|
class: "lupa-select-dropdown",
|
|
23321
23329
|
"aria-label": label.value,
|
|
@@ -23336,15 +23344,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23336
23344
|
};
|
|
23337
23345
|
}
|
|
23338
23346
|
});
|
|
23339
|
-
const _hoisted_1$
|
|
23347
|
+
const _hoisted_1$x = {
|
|
23340
23348
|
id: "lupa-search-results-sort",
|
|
23341
23349
|
class: "lupa-search-results-sort"
|
|
23342
23350
|
};
|
|
23343
|
-
const _hoisted_2$
|
|
23344
|
-
const _hoisted_3$
|
|
23351
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
23352
|
+
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23345
23353
|
const _hoisted_4$d = ["aria-label"];
|
|
23346
23354
|
const _hoisted_5$8 = ["value"];
|
|
23347
|
-
const _sfc_main$
|
|
23355
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23348
23356
|
__name: "SearchResultsSort",
|
|
23349
23357
|
props: {
|
|
23350
23358
|
options: {},
|
|
@@ -23393,9 +23401,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23393
23401
|
previousKey.value = selectedKey.value;
|
|
23394
23402
|
};
|
|
23395
23403
|
return (_ctx, _cache) => {
|
|
23396
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23397
|
-
createBaseVNode("div", _hoisted_2$
|
|
23398
|
-
createBaseVNode("label", _hoisted_3$
|
|
23404
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23405
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
23406
|
+
createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
|
|
23399
23407
|
withDirectives(createBaseVNode("select", {
|
|
23400
23408
|
class: "lupa-select-dropdown",
|
|
23401
23409
|
"aria-label": _ctx.options.label,
|
|
@@ -23418,12 +23426,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23418
23426
|
};
|
|
23419
23427
|
}
|
|
23420
23428
|
});
|
|
23421
|
-
const _hoisted_1$
|
|
23422
|
-
const _hoisted_2$
|
|
23429
|
+
const _hoisted_1$w = { class: "lupa-toolbar-left" };
|
|
23430
|
+
const _hoisted_2$p = {
|
|
23423
23431
|
key: 0,
|
|
23424
23432
|
class: "lupa-toolbar-right-title"
|
|
23425
23433
|
};
|
|
23426
|
-
const _hoisted_3$
|
|
23434
|
+
const _hoisted_3$j = { key: 2 };
|
|
23427
23435
|
const _hoisted_4$c = { key: 4 };
|
|
23428
23436
|
const _hoisted_5$7 = { key: 6 };
|
|
23429
23437
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
@@ -23433,7 +23441,7 @@ const _hoisted_7$3 = {
|
|
|
23433
23441
|
};
|
|
23434
23442
|
const _hoisted_8 = { key: 2 };
|
|
23435
23443
|
const _hoisted_9 = { key: 4 };
|
|
23436
|
-
const _sfc_main$
|
|
23444
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23437
23445
|
__name: "SearchResultsToolbar",
|
|
23438
23446
|
props: {
|
|
23439
23447
|
options: {},
|
|
@@ -23540,16 +23548,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23540
23548
|
id: "lupa-search-results-toolbar",
|
|
23541
23549
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23542
23550
|
}, [
|
|
23543
|
-
createBaseVNode("div", _hoisted_1$
|
|
23544
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23545
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23546
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23551
|
+
createBaseVNode("div", _hoisted_1$w, [
|
|
23552
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23553
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
|
|
23554
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
23547
23555
|
key: 3,
|
|
23548
23556
|
label: searchSummaryLabel.value,
|
|
23549
23557
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23550
23558
|
onClear: handleClearAll
|
|
23551
23559
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
23552
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23560
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
23553
23561
|
key: 5,
|
|
23554
23562
|
options: paginationOptions.value.pageSelect,
|
|
23555
23563
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -23558,16 +23566,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23558
23566
|
]),
|
|
23559
23567
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23560
23568
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23561
|
-
createVNode(_sfc_main$
|
|
23569
|
+
createVNode(_sfc_main$F, {
|
|
23562
23570
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23563
23571
|
"show-filter-count": showMobileFilterCount.value
|
|
23564
23572
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23565
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23573
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23566
23574
|
key: 1,
|
|
23567
23575
|
options: paginationOptions.value.pageSize,
|
|
23568
23576
|
labels: paginationOptions.value.labels
|
|
23569
23577
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23570
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23578
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
23571
23579
|
key: 3,
|
|
23572
23580
|
options: sortOptions.value,
|
|
23573
23581
|
callbacks: callbacks.value
|
|
@@ -23577,7 +23585,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23577
23585
|
};
|
|
23578
23586
|
}
|
|
23579
23587
|
});
|
|
23580
|
-
const _sfc_main$
|
|
23588
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23581
23589
|
__name: "SearchResultsProductImage",
|
|
23582
23590
|
props: {
|
|
23583
23591
|
item: {},
|
|
@@ -23585,7 +23593,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23585
23593
|
},
|
|
23586
23594
|
setup(__props) {
|
|
23587
23595
|
return (_ctx, _cache) => {
|
|
23588
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23596
|
+
return openBlock(), createBlock(_sfc_main$1l, {
|
|
23589
23597
|
item: _ctx.item,
|
|
23590
23598
|
options: _ctx.options,
|
|
23591
23599
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23594,16 +23602,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23594
23602
|
};
|
|
23595
23603
|
}
|
|
23596
23604
|
});
|
|
23597
|
-
const _hoisted_1$
|
|
23598
|
-
const _hoisted_2$
|
|
23599
|
-
const _hoisted_3$
|
|
23605
|
+
const _hoisted_1$v = ["title", "innerHTML"];
|
|
23606
|
+
const _hoisted_2$o = ["title"];
|
|
23607
|
+
const _hoisted_3$i = ["href", "innerHTML"];
|
|
23600
23608
|
const _hoisted_4$b = ["title"];
|
|
23601
23609
|
const _hoisted_5$6 = {
|
|
23602
23610
|
key: 0,
|
|
23603
23611
|
class: "lupa-search-results-product-title-text"
|
|
23604
23612
|
};
|
|
23605
23613
|
const _hoisted_6$4 = ["href"];
|
|
23606
|
-
const _sfc_main$
|
|
23614
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23607
23615
|
__name: "SearchResultsProductTitle",
|
|
23608
23616
|
props: {
|
|
23609
23617
|
item: {},
|
|
@@ -23640,7 +23648,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23640
23648
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23641
23649
|
title: sanitizedTitle.value,
|
|
23642
23650
|
innerHTML: sanitizedTitle.value
|
|
23643
|
-
}, null, 12, _hoisted_1$
|
|
23651
|
+
}, null, 12, _hoisted_1$v)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23644
23652
|
key: 1,
|
|
23645
23653
|
class: "lupa-search-results-product-title",
|
|
23646
23654
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23651,8 +23659,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23651
23659
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23652
23660
|
innerHTML: sanitizedTitle.value,
|
|
23653
23661
|
onClick: handleNavigation
|
|
23654
|
-
}, null, 8, _hoisted_3$
|
|
23655
|
-
], 12, _hoisted_2$
|
|
23662
|
+
}, null, 8, _hoisted_3$i)
|
|
23663
|
+
], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
|
|
23656
23664
|
key: 2,
|
|
23657
23665
|
class: "lupa-search-results-product-title",
|
|
23658
23666
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23669,8 +23677,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23669
23677
|
};
|
|
23670
23678
|
}
|
|
23671
23679
|
});
|
|
23672
|
-
const _hoisted_1$
|
|
23673
|
-
const _sfc_main$
|
|
23680
|
+
const _hoisted_1$u = ["innerHTML"];
|
|
23681
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23674
23682
|
__name: "SearchResultsProductDescription",
|
|
23675
23683
|
props: {
|
|
23676
23684
|
item: {},
|
|
@@ -23697,7 +23705,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23697
23705
|
class: "lupa-search-results-product-description",
|
|
23698
23706
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23699
23707
|
innerHTML: sanitizedDescription.value
|
|
23700
|
-
}, null, 12, _hoisted_1$
|
|
23708
|
+
}, null, 12, _hoisted_1$u)) : (openBlock(), createElementBlock("div", {
|
|
23701
23709
|
key: 1,
|
|
23702
23710
|
class: "lupa-search-results-product-description",
|
|
23703
23711
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23705,15 +23713,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23705
23713
|
};
|
|
23706
23714
|
}
|
|
23707
23715
|
});
|
|
23708
|
-
const _hoisted_1$
|
|
23709
|
-
const _hoisted_2$
|
|
23710
|
-
const _hoisted_3$
|
|
23716
|
+
const _hoisted_1$t = { id: "lupa-search-results-rating" };
|
|
23717
|
+
const _hoisted_2$n = { class: "lupa-ratings" };
|
|
23718
|
+
const _hoisted_3$h = { class: "lupa-ratings-base" };
|
|
23711
23719
|
const _hoisted_4$a = ["innerHTML"];
|
|
23712
23720
|
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23713
23721
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23714
23722
|
const _hoisted_7$2 = ["href"];
|
|
23715
23723
|
const STAR_COUNT = 5;
|
|
23716
|
-
const _sfc_main$
|
|
23724
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23717
23725
|
__name: "SearchResultsProductRating",
|
|
23718
23726
|
props: {
|
|
23719
23727
|
item: {},
|
|
@@ -23750,9 +23758,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23750
23758
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23751
23759
|
});
|
|
23752
23760
|
return (_ctx, _cache) => {
|
|
23753
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23754
|
-
createBaseVNode("div", _hoisted_2$
|
|
23755
|
-
createBaseVNode("div", _hoisted_3$
|
|
23761
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
23762
|
+
createBaseVNode("div", _hoisted_2$n, [
|
|
23763
|
+
createBaseVNode("div", _hoisted_3$h, [
|
|
23756
23764
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
23757
23765
|
return openBlock(), createElementBlock("div", {
|
|
23758
23766
|
key: index,
|
|
@@ -23784,11 +23792,11 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23784
23792
|
};
|
|
23785
23793
|
}
|
|
23786
23794
|
});
|
|
23787
|
-
const _hoisted_1$
|
|
23795
|
+
const _hoisted_1$s = {
|
|
23788
23796
|
class: "lupa-search-results-product-regular-price",
|
|
23789
23797
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23790
23798
|
};
|
|
23791
|
-
const _sfc_main$
|
|
23799
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23792
23800
|
__name: "SearchResultsProductRegularPrice",
|
|
23793
23801
|
props: {
|
|
23794
23802
|
item: {},
|
|
@@ -23806,11 +23814,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23806
23814
|
);
|
|
23807
23815
|
});
|
|
23808
23816
|
return (_ctx, _cache) => {
|
|
23809
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23817
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, toDisplayString(price.value), 1);
|
|
23810
23818
|
};
|
|
23811
23819
|
}
|
|
23812
23820
|
});
|
|
23813
|
-
const _sfc_main$
|
|
23821
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23814
23822
|
__name: "SearchResultsProductPrice",
|
|
23815
23823
|
props: {
|
|
23816
23824
|
item: {},
|
|
@@ -23840,10 +23848,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
23840
23848
|
};
|
|
23841
23849
|
}
|
|
23842
23850
|
});
|
|
23843
|
-
const _hoisted_1$
|
|
23844
|
-
const _hoisted_2$
|
|
23845
|
-
const _hoisted_3$
|
|
23846
|
-
const _sfc_main$
|
|
23851
|
+
const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23852
|
+
const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
|
|
23853
|
+
const _hoisted_3$g = ["id", "disabled", "onClick"];
|
|
23854
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23847
23855
|
__name: "SearchResultsProductAddToCart",
|
|
23848
23856
|
props: {
|
|
23849
23857
|
item: {},
|
|
@@ -23881,26 +23889,26 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23881
23889
|
loading.value = false;
|
|
23882
23890
|
});
|
|
23883
23891
|
return (_ctx, _cache) => {
|
|
23884
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23885
|
-
createBaseVNode("div", _hoisted_2$
|
|
23892
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
23893
|
+
createBaseVNode("div", _hoisted_2$m, [
|
|
23886
23894
|
createBaseVNode("button", {
|
|
23887
23895
|
id: id.value,
|
|
23888
23896
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
23889
23897
|
"data-cy": "lupa-add-to-cart",
|
|
23890
23898
|
disabled: !inStockValue.value || loading.value,
|
|
23891
23899
|
onClick: withModifiers(handleClick, ["stop"])
|
|
23892
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
23900
|
+
}, toDisplayString(label.value), 11, _hoisted_3$g)
|
|
23893
23901
|
])
|
|
23894
23902
|
]);
|
|
23895
23903
|
};
|
|
23896
23904
|
}
|
|
23897
23905
|
});
|
|
23898
|
-
const _hoisted_1$
|
|
23899
|
-
const _hoisted_2$
|
|
23900
|
-
const _hoisted_3$
|
|
23906
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
23907
|
+
const _hoisted_2$l = { key: 0 };
|
|
23908
|
+
const _hoisted_3$f = { key: 1 };
|
|
23901
23909
|
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
23902
23910
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
23903
|
-
const _sfc_main$
|
|
23911
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23904
23912
|
__name: "SearchResultsProductCustom",
|
|
23905
23913
|
props: {
|
|
23906
23914
|
item: {},
|
|
@@ -23938,11 +23946,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23938
23946
|
key: 0,
|
|
23939
23947
|
class: className.value,
|
|
23940
23948
|
innerHTML: text.value
|
|
23941
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23949
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23942
23950
|
key: 1,
|
|
23943
23951
|
class: className.value
|
|
23944
23952
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23945
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23953
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
23946
23954
|
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
23947
23955
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
23948
23956
|
]))
|
|
@@ -23950,8 +23958,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23950
23958
|
};
|
|
23951
23959
|
}
|
|
23952
23960
|
});
|
|
23953
|
-
const _hoisted_1$
|
|
23954
|
-
const _sfc_main$
|
|
23961
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
23962
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23955
23963
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23956
23964
|
props: {
|
|
23957
23965
|
item: {},
|
|
@@ -23982,15 +23990,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23982
23990
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23983
23991
|
class: className.value,
|
|
23984
23992
|
innerHTML: text.value
|
|
23985
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23993
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p);
|
|
23986
23994
|
};
|
|
23987
23995
|
}
|
|
23988
23996
|
});
|
|
23989
|
-
const _hoisted_1$
|
|
23990
|
-
const _hoisted_2$
|
|
23991
|
-
const _hoisted_3$
|
|
23997
|
+
const _hoisted_1$o = { id: "lupa-search-results-rating" };
|
|
23998
|
+
const _hoisted_2$k = ["innerHTML"];
|
|
23999
|
+
const _hoisted_3$e = { class: "lupa-ratings" };
|
|
23992
24000
|
const _hoisted_4$8 = ["href"];
|
|
23993
|
-
const _sfc_main$
|
|
24001
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23994
24002
|
__name: "SearchResultsProductSingleStarRating",
|
|
23995
24003
|
props: {
|
|
23996
24004
|
item: {},
|
|
@@ -24018,12 +24026,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
24018
24026
|
return RATING_STAR_HTML;
|
|
24019
24027
|
});
|
|
24020
24028
|
return (_ctx, _cache) => {
|
|
24021
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24029
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
24022
24030
|
createBaseVNode("div", {
|
|
24023
24031
|
innerHTML: star.value,
|
|
24024
24032
|
class: "lupa-rating lupa-rating-highlighted"
|
|
24025
|
-
}, null, 8, _hoisted_2$
|
|
24026
|
-
createBaseVNode("div", _hoisted_3$
|
|
24033
|
+
}, null, 8, _hoisted_2$k),
|
|
24034
|
+
createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
|
|
24027
24035
|
createBaseVNode("a", {
|
|
24028
24036
|
href: ratingLink.value,
|
|
24029
24037
|
class: "lupa-total-ratings"
|
|
@@ -24034,19 +24042,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
24034
24042
|
});
|
|
24035
24043
|
const __default__ = {
|
|
24036
24044
|
components: {
|
|
24037
|
-
SearchResultsProductImage: _sfc_main$
|
|
24038
|
-
SearchResultsProductTitle: _sfc_main$
|
|
24039
|
-
SearchResultsProductDescription: _sfc_main$
|
|
24040
|
-
SearchResultsProductRating: _sfc_main$
|
|
24041
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
24042
|
-
SearchResultsProductPrice: _sfc_main$
|
|
24043
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
24044
|
-
SearchResultsProductCustom: _sfc_main$
|
|
24045
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
24046
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
24047
|
-
}
|
|
24048
|
-
};
|
|
24049
|
-
const _sfc_main$
|
|
24045
|
+
SearchResultsProductImage: _sfc_main$A,
|
|
24046
|
+
SearchResultsProductTitle: _sfc_main$z,
|
|
24047
|
+
SearchResultsProductDescription: _sfc_main$y,
|
|
24048
|
+
SearchResultsProductRating: _sfc_main$x,
|
|
24049
|
+
SearchResultsProductRegularPrice: _sfc_main$w,
|
|
24050
|
+
SearchResultsProductPrice: _sfc_main$v,
|
|
24051
|
+
SearchResultsProductAddToCart: _sfc_main$u,
|
|
24052
|
+
SearchResultsProductCustom: _sfc_main$t,
|
|
24053
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$s,
|
|
24054
|
+
SearchResultsProductSingleStarRating: _sfc_main$r
|
|
24055
|
+
}
|
|
24056
|
+
};
|
|
24057
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
24050
24058
|
__name: "SearchResultsProductCardElement",
|
|
24051
24059
|
props: {
|
|
24052
24060
|
item: {},
|
|
@@ -24122,14 +24130,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
24122
24130
|
};
|
|
24123
24131
|
}
|
|
24124
24132
|
}));
|
|
24125
|
-
const _hoisted_1$
|
|
24126
|
-
const _hoisted_2$
|
|
24127
|
-
const _hoisted_3$
|
|
24133
|
+
const _hoisted_1$n = ["onMouseup"];
|
|
24134
|
+
const _hoisted_2$j = ["href"];
|
|
24135
|
+
const _hoisted_3$d = {
|
|
24128
24136
|
key: 0,
|
|
24129
24137
|
class: "lupa-out-of-stock"
|
|
24130
24138
|
};
|
|
24131
24139
|
const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
|
|
24132
|
-
const _sfc_main$
|
|
24140
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24133
24141
|
__name: "SearchResultsProductCard",
|
|
24134
24142
|
props: {
|
|
24135
24143
|
product: {},
|
|
@@ -24290,7 +24298,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24290
24298
|
onClick: handleClick,
|
|
24291
24299
|
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
24292
24300
|
}), [
|
|
24293
|
-
createVNode(_sfc_main$
|
|
24301
|
+
createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24294
24302
|
createBaseVNode("div", {
|
|
24295
24303
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24296
24304
|
}, [
|
|
@@ -24300,7 +24308,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24300
24308
|
onClick: handleNavigation
|
|
24301
24309
|
}, [
|
|
24302
24310
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24303
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24311
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
24304
24312
|
class: "lupa-search-results-product-element",
|
|
24305
24313
|
item: _ctx.product,
|
|
24306
24314
|
element,
|
|
@@ -24311,16 +24319,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24311
24319
|
onProductEvent: handleProductEvent
|
|
24312
24320
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24313
24321
|
}), 128)),
|
|
24314
|
-
createVNode(_sfc_main$
|
|
24322
|
+
createVNode(_sfc_main$15, {
|
|
24315
24323
|
options: badgesOptions.value,
|
|
24316
24324
|
position: "image",
|
|
24317
24325
|
class: "lupa-image-badges"
|
|
24318
24326
|
}, null, 8, ["options"]),
|
|
24319
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
24320
|
-
], 8, _hoisted_2$
|
|
24327
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24328
|
+
], 8, _hoisted_2$j),
|
|
24321
24329
|
createBaseVNode("div", _hoisted_4$7, [
|
|
24322
24330
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24323
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24331
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
24324
24332
|
class: "lupa-search-results-product-element",
|
|
24325
24333
|
item: _ctx.product,
|
|
24326
24334
|
element,
|
|
@@ -24338,7 +24346,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24338
24346
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24339
24347
|
}, [
|
|
24340
24348
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24341
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24349
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
24342
24350
|
class: "lupa-search-results-product-element",
|
|
24343
24351
|
item: _ctx.product,
|
|
24344
24352
|
element,
|
|
@@ -24352,16 +24360,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24352
24360
|
], 2);
|
|
24353
24361
|
}), 128))
|
|
24354
24362
|
], 2)
|
|
24355
|
-
], 16, _hoisted_1$
|
|
24363
|
+
], 16, _hoisted_1$n);
|
|
24356
24364
|
};
|
|
24357
24365
|
}
|
|
24358
24366
|
});
|
|
24359
|
-
const _hoisted_1$
|
|
24367
|
+
const _hoisted_1$m = {
|
|
24360
24368
|
id: "lupa-search-results-similar-queries",
|
|
24361
24369
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24362
24370
|
};
|
|
24363
|
-
const _hoisted_2$
|
|
24364
|
-
const _hoisted_3$
|
|
24371
|
+
const _hoisted_2$i = { class: "lupa-similar-queries-label" };
|
|
24372
|
+
const _hoisted_3$c = {
|
|
24365
24373
|
class: "lupa-similar-query-label",
|
|
24366
24374
|
"data-cy": "lupa-similar-query-label"
|
|
24367
24375
|
};
|
|
@@ -24372,7 +24380,7 @@ const _hoisted_7$1 = {
|
|
|
24372
24380
|
class: "lupa-products",
|
|
24373
24381
|
"data-cy": "lupa-products"
|
|
24374
24382
|
};
|
|
24375
|
-
const _sfc_main$
|
|
24383
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
24376
24384
|
__name: "SearchResultsSimilarQueries",
|
|
24377
24385
|
props: {
|
|
24378
24386
|
labels: {},
|
|
@@ -24402,11 +24410,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24402
24410
|
paramsStore.goToResults({ searchText, facet });
|
|
24403
24411
|
};
|
|
24404
24412
|
return (_ctx, _cache) => {
|
|
24405
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24406
|
-
createBaseVNode("div", _hoisted_2$
|
|
24413
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
24414
|
+
createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24407
24415
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24408
24416
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
24409
|
-
createBaseVNode("div", _hoisted_3$
|
|
24417
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
24410
24418
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
24411
24419
|
createBaseVNode("span", {
|
|
24412
24420
|
id: "lupa-similar-query-text-component",
|
|
@@ -24422,7 +24430,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24422
24430
|
]),
|
|
24423
24431
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24424
24432
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24425
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24433
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24426
24434
|
style: normalizeStyle(_ctx.columnSize),
|
|
24427
24435
|
key: getDocumentKey(index2, product),
|
|
24428
24436
|
product,
|
|
@@ -24436,15 +24444,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24436
24444
|
};
|
|
24437
24445
|
}
|
|
24438
24446
|
});
|
|
24439
|
-
const _hoisted_1$
|
|
24447
|
+
const _hoisted_1$l = {
|
|
24440
24448
|
key: 0,
|
|
24441
24449
|
class: "lupa-results-additional-panel"
|
|
24442
24450
|
};
|
|
24443
|
-
const _hoisted_2$
|
|
24451
|
+
const _hoisted_2$h = {
|
|
24444
24452
|
class: "lupa-results-additional-panel-items",
|
|
24445
24453
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24446
24454
|
};
|
|
24447
|
-
const _sfc_main$
|
|
24455
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
24448
24456
|
__name: "AdditionalPanel",
|
|
24449
24457
|
props: {
|
|
24450
24458
|
panel: {},
|
|
@@ -24517,10 +24525,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24517
24525
|
handleQueryChange();
|
|
24518
24526
|
});
|
|
24519
24527
|
return (_ctx, _cache) => {
|
|
24520
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24521
|
-
createBaseVNode("div", _hoisted_2$
|
|
24528
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
24529
|
+
createBaseVNode("div", _hoisted_2$h, [
|
|
24522
24530
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24523
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24531
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24524
24532
|
key: index,
|
|
24525
24533
|
product: item,
|
|
24526
24534
|
options: _ctx.panel,
|
|
@@ -24538,11 +24546,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24538
24546
|
};
|
|
24539
24547
|
}
|
|
24540
24548
|
});
|
|
24541
|
-
const _hoisted_1$
|
|
24549
|
+
const _hoisted_1$k = {
|
|
24542
24550
|
key: 0,
|
|
24543
24551
|
class: "lupa-results-additional-panels"
|
|
24544
24552
|
};
|
|
24545
|
-
const _sfc_main$
|
|
24553
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
24546
24554
|
__name: "AdditionalPanels",
|
|
24547
24555
|
props: {
|
|
24548
24556
|
options: {},
|
|
@@ -24559,9 +24567,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24559
24567
|
return locationPanels.value.length > 0;
|
|
24560
24568
|
});
|
|
24561
24569
|
return (_ctx, _cache) => {
|
|
24562
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24570
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
24563
24571
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24564
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24572
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24565
24573
|
key: panel.queryKey,
|
|
24566
24574
|
panel,
|
|
24567
24575
|
options: _ctx.sdkOptions
|
|
@@ -24578,29 +24586,29 @@ const _export_sfc = (sfc, props) => {
|
|
|
24578
24586
|
}
|
|
24579
24587
|
return target;
|
|
24580
24588
|
};
|
|
24581
|
-
const _sfc_main$
|
|
24582
|
-
const _hoisted_1$
|
|
24583
|
-
const _hoisted_2$
|
|
24589
|
+
const _sfc_main$l = {};
|
|
24590
|
+
const _hoisted_1$j = { class: "lupa-spinner-wrapper" };
|
|
24591
|
+
const _hoisted_2$g = { class: "lupa-spinner" };
|
|
24584
24592
|
function _sfc_render(_ctx, _cache) {
|
|
24585
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24586
|
-
createBaseVNode("div", _hoisted_2$
|
|
24593
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24594
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
24587
24595
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24588
24596
|
return createBaseVNode("div", { key: x2 });
|
|
24589
24597
|
}), 64))
|
|
24590
24598
|
])
|
|
24591
24599
|
]);
|
|
24592
24600
|
}
|
|
24593
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24594
|
-
const _hoisted_1$
|
|
24601
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render]]);
|
|
24602
|
+
const _hoisted_1$i = {
|
|
24595
24603
|
id: "lupa-search-results-similar-results",
|
|
24596
24604
|
"data-cy": "lupa-search-results-similar-results"
|
|
24597
24605
|
};
|
|
24598
|
-
const _hoisted_2$
|
|
24599
|
-
const _hoisted_3$
|
|
24606
|
+
const _hoisted_2$f = { class: "lupa-similar-results-label" };
|
|
24607
|
+
const _hoisted_3$b = {
|
|
24600
24608
|
class: "lupa-products",
|
|
24601
24609
|
"data-cy": "lupa-products"
|
|
24602
24610
|
};
|
|
24603
|
-
const _sfc_main$
|
|
24611
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24604
24612
|
__name: "SearchResultsSimilarResults",
|
|
24605
24613
|
props: {
|
|
24606
24614
|
columnSize: {},
|
|
@@ -24616,11 +24624,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24616
24624
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24617
24625
|
};
|
|
24618
24626
|
return (_ctx, _cache) => {
|
|
24619
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24620
|
-
createBaseVNode("div", _hoisted_2$
|
|
24621
|
-
createBaseVNode("div", _hoisted_3$
|
|
24627
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24628
|
+
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24629
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
24622
24630
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24623
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24631
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24624
24632
|
style: normalizeStyle(_ctx.columnSize),
|
|
24625
24633
|
key: getDocumentKey(index, product),
|
|
24626
24634
|
product,
|
|
@@ -24656,15 +24664,15 @@ const extractRelatedSource = (source, searchResults2) => {
|
|
|
24656
24664
|
return extractFacetsRelatedSource(source, searchResults2);
|
|
24657
24665
|
}
|
|
24658
24666
|
};
|
|
24659
|
-
const _hoisted_1$
|
|
24660
|
-
const _hoisted_2$
|
|
24661
|
-
const _hoisted_3$
|
|
24667
|
+
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
24668
|
+
const _hoisted_2$e = { class: "lupa-related-query-image" };
|
|
24669
|
+
const _hoisted_3$a = { class: "lupa-related-query-label" };
|
|
24662
24670
|
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
24663
24671
|
const _hoisted_5$2 = {
|
|
24664
24672
|
key: 0,
|
|
24665
24673
|
class: "lupa-related-query-count"
|
|
24666
24674
|
};
|
|
24667
|
-
const _sfc_main$
|
|
24675
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24668
24676
|
__name: "RelatedQueryPanel",
|
|
24669
24677
|
props: {
|
|
24670
24678
|
query: {},
|
|
@@ -24675,7 +24683,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24675
24683
|
const loading = ref(false);
|
|
24676
24684
|
const relatedQueryResult = ref(null);
|
|
24677
24685
|
const optionsStore = useOptionsStore();
|
|
24686
|
+
const searchResultStore = useSearchResultStore();
|
|
24678
24687
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
24688
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
24679
24689
|
const mainImage = computed(() => {
|
|
24680
24690
|
var _a, _b, _c;
|
|
24681
24691
|
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
@@ -24700,24 +24710,34 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24700
24710
|
var _a, _b;
|
|
24701
24711
|
return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
|
|
24702
24712
|
});
|
|
24713
|
+
const searchText = computed(() => {
|
|
24714
|
+
var _a, _b, _c;
|
|
24715
|
+
return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? (_b = searchResult.value) == null ? void 0 : _b.searchText : (_c = props.query) == null ? void 0 : _c.toLowerCase();
|
|
24716
|
+
});
|
|
24717
|
+
const relatedQueryFilters = computed(() => {
|
|
24718
|
+
var _a, _b, _c;
|
|
24719
|
+
return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? {
|
|
24720
|
+
[(_c = (_b = props.options) == null ? void 0 : _b.source) == null ? void 0 : _c.key]: [props.query]
|
|
24721
|
+
} : {};
|
|
24722
|
+
});
|
|
24703
24723
|
const searchForRelatedQuery = () => __async2(this, null, function* () {
|
|
24704
|
-
var _a, _b, _c
|
|
24724
|
+
var _a, _b, _c;
|
|
24705
24725
|
if (!props.query) {
|
|
24706
24726
|
return;
|
|
24707
24727
|
}
|
|
24708
|
-
const lupaQuery = { searchText:
|
|
24728
|
+
const lupaQuery = { searchText: searchText.value, limit: 1, filters: relatedQueryFilters.value };
|
|
24709
24729
|
try {
|
|
24710
24730
|
loading.value = true;
|
|
24711
24731
|
const result2 = yield LupaSearchSdk.query(
|
|
24712
24732
|
queryKey.value,
|
|
24713
24733
|
lupaQuery,
|
|
24714
|
-
(
|
|
24734
|
+
(_a = searchResultOptions.value) == null ? void 0 : _a.options
|
|
24715
24735
|
);
|
|
24716
24736
|
if (result2.success) {
|
|
24717
24737
|
relatedQueryResult.value = result2;
|
|
24718
24738
|
}
|
|
24719
24739
|
} catch (error) {
|
|
24720
|
-
(
|
|
24740
|
+
(_c = (_b = searchResultOptions.value) == null ? void 0 : _b.options) == null ? void 0 : _c.onError(error);
|
|
24721
24741
|
} finally {
|
|
24722
24742
|
loading.value = false;
|
|
24723
24743
|
}
|
|
@@ -24733,9 +24753,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24733
24753
|
});
|
|
24734
24754
|
return (_ctx, _cache) => {
|
|
24735
24755
|
var _a;
|
|
24736
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24737
|
-
createBaseVNode("div", _hoisted_2$
|
|
24738
|
-
firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
24756
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24757
|
+
createBaseVNode("div", _hoisted_2$e, [
|
|
24758
|
+
firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
24739
24759
|
key: 0,
|
|
24740
24760
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
24741
24761
|
"image-class": "lupa-related-query-image",
|
|
@@ -24743,7 +24763,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24743
24763
|
options: image.value
|
|
24744
24764
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
24745
24765
|
]),
|
|
24746
|
-
createBaseVNode("div", _hoisted_3$
|
|
24766
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
24747
24767
|
createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
|
|
24748
24768
|
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
24749
24769
|
])
|
|
@@ -24751,16 +24771,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24751
24771
|
};
|
|
24752
24772
|
}
|
|
24753
24773
|
});
|
|
24754
|
-
const _hoisted_1$
|
|
24774
|
+
const _hoisted_1$g = {
|
|
24755
24775
|
key: 0,
|
|
24756
24776
|
class: "lupa-related-queries"
|
|
24757
24777
|
};
|
|
24758
|
-
const _hoisted_2$
|
|
24778
|
+
const _hoisted_2$d = {
|
|
24759
24779
|
key: 0,
|
|
24760
24780
|
class: "lupa-related-queries-title"
|
|
24761
24781
|
};
|
|
24762
|
-
const _hoisted_3$
|
|
24763
|
-
const _sfc_main$
|
|
24782
|
+
const _hoisted_3$9 = ["onClick"];
|
|
24783
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
24764
24784
|
__name: "RelatedQueries",
|
|
24765
24785
|
props: {
|
|
24766
24786
|
options: {}
|
|
@@ -24769,12 +24789,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24769
24789
|
const props = __props;
|
|
24770
24790
|
const searchResultStore = useSearchResultStore();
|
|
24771
24791
|
const paramsStore = useParamsStore();
|
|
24792
|
+
const optionsStore = useOptionsStore();
|
|
24772
24793
|
const { searchResult } = storeToRefs(searchResultStore);
|
|
24794
|
+
const currentSearchText = computed(() => {
|
|
24795
|
+
var _a, _b;
|
|
24796
|
+
return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
|
|
24797
|
+
});
|
|
24773
24798
|
const relatedQueries = computed(() => {
|
|
24774
24799
|
if (!props.options || !searchResult.value) {
|
|
24775
24800
|
return [];
|
|
24776
24801
|
}
|
|
24777
|
-
|
|
24802
|
+
const queries = extractRelatedSource(props.options.source, searchResult.value);
|
|
24803
|
+
return queries;
|
|
24778
24804
|
});
|
|
24779
24805
|
const hasEnoughRelatedQueries = computed(() => {
|
|
24780
24806
|
return relatedQueries.value.length > 1;
|
|
@@ -24782,28 +24808,130 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24782
24808
|
const goToResults = ({ searchText }) => {
|
|
24783
24809
|
paramsStore.goToResults({ searchText });
|
|
24784
24810
|
};
|
|
24811
|
+
const handleRelatedQueryClick = (query) => {
|
|
24812
|
+
var _a;
|
|
24813
|
+
if (((_a = props.options.source) == null ? void 0 : _a.mode) === "filter") {
|
|
24814
|
+
handleFilter(query);
|
|
24815
|
+
} else {
|
|
24816
|
+
goToResults({ searchText: query });
|
|
24817
|
+
}
|
|
24818
|
+
};
|
|
24819
|
+
const handleFilter = (query) => {
|
|
24820
|
+
var _a, _b;
|
|
24821
|
+
const facet = (_b = (_a = searchResult.value) == null ? void 0 : _a.facets) == null ? void 0 : _b.find(
|
|
24822
|
+
(facet2) => {
|
|
24823
|
+
var _a2, _b2;
|
|
24824
|
+
return facet2.key === ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.source) == null ? void 0 : _b2.key);
|
|
24825
|
+
}
|
|
24826
|
+
);
|
|
24827
|
+
if (!facet || facet.type !== "terms") {
|
|
24828
|
+
return [];
|
|
24829
|
+
}
|
|
24830
|
+
toggleTermFilter(
|
|
24831
|
+
paramsStore.appendParams,
|
|
24832
|
+
{ type: "terms", key: facet.key, value: query },
|
|
24833
|
+
optionsStore.getQueryParamName,
|
|
24834
|
+
{}
|
|
24835
|
+
);
|
|
24836
|
+
};
|
|
24837
|
+
const getSelectedFilterClass = (query) => {
|
|
24838
|
+
var _a, _b, _c, _d, _e, _f;
|
|
24839
|
+
if (((_a = props.options.source) == null ? void 0 : _a.mode) !== "filter") {
|
|
24840
|
+
return "";
|
|
24841
|
+
}
|
|
24842
|
+
return Array.isArray((_c = (_b = searchResult.value) == null ? void 0 : _b.filters) == null ? void 0 : _c[props.options.source.key]) && ((_f = (_e = (_d = searchResult.value) == null ? void 0 : _d.filters) == null ? void 0 : _e[props.options.source.key]) == null ? void 0 : _f.includes(
|
|
24843
|
+
query
|
|
24844
|
+
)) ? "lupa-selected-related-query-filter" : "";
|
|
24845
|
+
};
|
|
24785
24846
|
return (_ctx, _cache) => {
|
|
24786
24847
|
var _a, _b, _c, _d;
|
|
24787
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24788
|
-
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
24848
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24849
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$d, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
24789
24850
|
createBaseVNode("ul", null, [
|
|
24790
24851
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
|
|
24791
|
-
return openBlock(), createElementBlock("li", {
|
|
24852
|
+
return openBlock(), createElementBlock("li", {
|
|
24853
|
+
key: query + currentSearchText.value,
|
|
24854
|
+
class: normalizeClass(getSelectedFilterClass(query))
|
|
24855
|
+
}, [
|
|
24792
24856
|
createBaseVNode("a", {
|
|
24793
|
-
onClick: ($event) =>
|
|
24857
|
+
onClick: ($event) => handleRelatedQueryClick(query)
|
|
24794
24858
|
}, [
|
|
24795
|
-
createVNode(_sfc_main$
|
|
24859
|
+
createVNode(_sfc_main$j, {
|
|
24796
24860
|
options: _ctx.options,
|
|
24797
24861
|
query
|
|
24798
24862
|
}, null, 8, ["options", "query"])
|
|
24799
|
-
], 8, _hoisted_3$
|
|
24800
|
-
]);
|
|
24863
|
+
], 8, _hoisted_3$9)
|
|
24864
|
+
], 2);
|
|
24801
24865
|
}), 128))
|
|
24802
24866
|
])
|
|
24803
24867
|
])) : createCommentVNode("", true);
|
|
24804
24868
|
};
|
|
24805
24869
|
}
|
|
24806
24870
|
});
|
|
24871
|
+
const checkHasMatchCharacters = (option, searchText) => {
|
|
24872
|
+
var _a, _b;
|
|
24873
|
+
return (_b = (_a = option.matchCharacters) == null ? void 0 : _a.split("")) == null ? void 0 : _b.some((char) => searchText.includes(char));
|
|
24874
|
+
};
|
|
24875
|
+
const checkHasMatchWords = (option, searchText) => {
|
|
24876
|
+
var _a;
|
|
24877
|
+
return (_a = searchText.split(" ")) == null ? void 0 : _a.some((word) => {
|
|
24878
|
+
var _a2;
|
|
24879
|
+
return (_a2 = option.matchWords) == null ? void 0 : _a2.includes(word);
|
|
24880
|
+
});
|
|
24881
|
+
};
|
|
24882
|
+
const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
24883
|
+
for (const option of options || []) {
|
|
24884
|
+
const hasMatchCharacters = option.matchCharacters;
|
|
24885
|
+
const hasMatchWords = option.matchWords;
|
|
24886
|
+
if (hasMatchCharacters && !hasMatchWords && checkHasMatchCharacters(option, searchText)) {
|
|
24887
|
+
return option;
|
|
24888
|
+
}
|
|
24889
|
+
if (hasMatchWords && !hasMatchCharacters && checkHasMatchWords(option, searchText)) {
|
|
24890
|
+
return option;
|
|
24891
|
+
}
|
|
24892
|
+
if (hasMatchCharacters && hasMatchWords && checkHasMatchCharacters(option, searchText) && checkHasMatchWords(option, searchText)) {
|
|
24893
|
+
return option;
|
|
24894
|
+
}
|
|
24895
|
+
}
|
|
24896
|
+
return null;
|
|
24897
|
+
};
|
|
24898
|
+
const _hoisted_1$f = {
|
|
24899
|
+
key: 0,
|
|
24900
|
+
class: "lupa-redirection-suggestion"
|
|
24901
|
+
};
|
|
24902
|
+
const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
|
|
24903
|
+
const _hoisted_3$8 = ["href"];
|
|
24904
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24905
|
+
__name: "RedirectionSuggestions",
|
|
24906
|
+
props: {
|
|
24907
|
+
options: {}
|
|
24908
|
+
},
|
|
24909
|
+
setup(__props) {
|
|
24910
|
+
const props = __props;
|
|
24911
|
+
const searchResultStore = useSearchResultStore();
|
|
24912
|
+
const optionsStore = useOptionsStore();
|
|
24913
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
24914
|
+
const searchText = computed(() => searchResult.value.searchText);
|
|
24915
|
+
const redirectionSuggestion = computed(() => {
|
|
24916
|
+
return extractRedirectionSuggestion(searchText.value, props.options);
|
|
24917
|
+
});
|
|
24918
|
+
const label = computed(() => addParamsToLabel(redirectionSuggestion.value.label, searchText.value));
|
|
24919
|
+
const link = computed(
|
|
24920
|
+
() => generateResultLink(
|
|
24921
|
+
redirectionSuggestion.value.link,
|
|
24922
|
+
optionsStore.getQueryParamName,
|
|
24923
|
+
searchText.value
|
|
24924
|
+
)
|
|
24925
|
+
);
|
|
24926
|
+
return (_ctx, _cache) => {
|
|
24927
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24928
|
+
createBaseVNode("h4", _hoisted_2$c, [
|
|
24929
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
|
|
24930
|
+
])
|
|
24931
|
+
])) : createCommentVNode("", true);
|
|
24932
|
+
};
|
|
24933
|
+
}
|
|
24934
|
+
});
|
|
24807
24935
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24808
24936
|
const _hoisted_2$b = {
|
|
24809
24937
|
class: "lupa-products",
|
|
@@ -24933,27 +25061,30 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
24933
25061
|
key: 0,
|
|
24934
25062
|
class: "lupa-loader"
|
|
24935
25063
|
})) : createCommentVNode("", true),
|
|
24936
|
-
createVNode(_sfc_main$
|
|
25064
|
+
createVNode(_sfc_main$h, {
|
|
25065
|
+
options: _ctx.options.redirectionSuggestions
|
|
25066
|
+
}, null, 8, ["options"]),
|
|
25067
|
+
createVNode(_sfc_main$m, {
|
|
24937
25068
|
options: _ctx.options,
|
|
24938
25069
|
location: "top",
|
|
24939
25070
|
sdkOptions: _ctx.options.options
|
|
24940
25071
|
}, null, 8, ["options", "sdkOptions"]),
|
|
24941
|
-
createVNode(_sfc_main$
|
|
25072
|
+
createVNode(_sfc_main$i, {
|
|
24942
25073
|
options: _ctx.options.relatedQueries
|
|
24943
25074
|
}, null, 8, ["options"]),
|
|
24944
25075
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24945
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
25076
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24946
25077
|
key: 0,
|
|
24947
25078
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24948
25079
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24949
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
25080
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
24950
25081
|
key: 1,
|
|
24951
25082
|
class: "lupa-toolbar-mobile",
|
|
24952
25083
|
options: _ctx.options,
|
|
24953
25084
|
"pagination-location": "top",
|
|
24954
25085
|
onFilter: filter2
|
|
24955
25086
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24956
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25087
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
|
|
24957
25088
|
key: 2,
|
|
24958
25089
|
class: normalizeClass(currentFiltersClass.value),
|
|
24959
25090
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24962,12 +25093,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
24962
25093
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24963
25094
|
], 64)) : createCommentVNode("", true),
|
|
24964
25095
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24965
|
-
createVNode(_sfc_main$
|
|
25096
|
+
createVNode(_sfc_main$B, {
|
|
24966
25097
|
class: "lupa-toolbar-top",
|
|
24967
25098
|
options: _ctx.options,
|
|
24968
25099
|
"pagination-location": "top"
|
|
24969
25100
|
}, null, 8, ["options"]),
|
|
24970
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
25101
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
|
|
24971
25102
|
key: 0,
|
|
24972
25103
|
class: normalizeClass(currentFiltersClass.value),
|
|
24973
25104
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24983,7 +25114,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
24983
25114
|
options: productCardOptions.value
|
|
24984
25115
|
});
|
|
24985
25116
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24986
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25117
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
24987
25118
|
style: normalizeStyle(columnSize.value),
|
|
24988
25119
|
key: getProductKeyAction(index, product),
|
|
24989
25120
|
product,
|
|
@@ -24999,12 +25130,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
24999
25130
|
onClick: goToFirstPage
|
|
25000
25131
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
25001
25132
|
])) : createCommentVNode("", true),
|
|
25002
|
-
createVNode(_sfc_main$
|
|
25133
|
+
createVNode(_sfc_main$B, {
|
|
25003
25134
|
class: "lupa-toolbar-bottom",
|
|
25004
25135
|
options: _ctx.options,
|
|
25005
25136
|
"pagination-location": "bottom"
|
|
25006
25137
|
}, null, 8, ["options"]),
|
|
25007
|
-
createVNode(_sfc_main$
|
|
25138
|
+
createVNode(_sfc_main$m, {
|
|
25008
25139
|
options: _ctx.options,
|
|
25009
25140
|
location: "bottom",
|
|
25010
25141
|
sdkOptions: _ctx.options.options
|
|
@@ -25014,14 +25145,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
25014
25145
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
25015
25146
|
])) : createCommentVNode("", true),
|
|
25016
25147
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
25017
|
-
createVNode(_sfc_main$
|
|
25148
|
+
createVNode(_sfc_main$o, {
|
|
25018
25149
|
labels: similarQueriesLabels.value,
|
|
25019
25150
|
columnSize: columnSize.value,
|
|
25020
25151
|
productCardOptions: productCardOptions.value
|
|
25021
25152
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
25022
25153
|
])) : createCommentVNode("", true),
|
|
25023
25154
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
25024
|
-
createVNode(_sfc_main$
|
|
25155
|
+
createVNode(_sfc_main$k, {
|
|
25025
25156
|
labels: similarResultsLabels.value,
|
|
25026
25157
|
columnSize: columnSize.value,
|
|
25027
25158
|
productCardOptions: productCardOptions.value
|
|
@@ -25090,14 +25221,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
25090
25221
|
])) : createCommentVNode("", true),
|
|
25091
25222
|
createBaseVNode("div", _hoisted_4$3, [
|
|
25092
25223
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
25093
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25224
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
25094
25225
|
key: getCategoryKey(child),
|
|
25095
25226
|
item: child,
|
|
25096
25227
|
options: categoryOptions.value
|
|
25097
25228
|
}, null, 8, ["item", "options"]);
|
|
25098
25229
|
}), 128))
|
|
25099
25230
|
]),
|
|
25100
|
-
createVNode(_sfc_main$
|
|
25231
|
+
createVNode(_sfc_main$B, {
|
|
25101
25232
|
class: "lupa-toolbar-mobile",
|
|
25102
25233
|
"pagination-location": "top",
|
|
25103
25234
|
options: _ctx.options
|
|
@@ -25329,8 +25460,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25329
25460
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
25330
25461
|
}, [
|
|
25331
25462
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
25332
|
-
createVNode(_sfc_main$
|
|
25333
|
-
createVNode(_sfc_main$
|
|
25463
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25464
|
+
createVNode(_sfc_main$X, {
|
|
25334
25465
|
"show-summary": true,
|
|
25335
25466
|
options: _ctx.options,
|
|
25336
25467
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -25340,17 +25471,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25340
25471
|
key: 1,
|
|
25341
25472
|
options: _ctx.options
|
|
25342
25473
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25343
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
25474
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25344
25475
|
key: 2,
|
|
25345
25476
|
options: _ctx.options.filters,
|
|
25346
25477
|
onFilter: handleParamsChange
|
|
25347
25478
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25348
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
25479
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
|
|
25349
25480
|
key: 3,
|
|
25350
25481
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
25351
25482
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
25352
25483
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
25353
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25484
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25354
25485
|
key: 0,
|
|
25355
25486
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
25356
25487
|
ref_key: "searchResultsFilters",
|
|
@@ -25358,8 +25489,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25358
25489
|
onFilter: handleParamsChange
|
|
25359
25490
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
25360
25491
|
createBaseVNode("div", _hoisted_3$5, [
|
|
25361
|
-
createVNode(_sfc_main$
|
|
25362
|
-
createVNode(_sfc_main$
|
|
25492
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25493
|
+
createVNode(_sfc_main$X, {
|
|
25363
25494
|
options: _ctx.options,
|
|
25364
25495
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
25365
25496
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -25375,13 +25506,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25375
25506
|
}, 8, ["options", "ssr"])
|
|
25376
25507
|
])
|
|
25377
25508
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
25378
|
-
createVNode(_sfc_main$
|
|
25379
|
-
createVNode(_sfc_main$
|
|
25509
|
+
createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25510
|
+
createVNode(_sfc_main$X, {
|
|
25380
25511
|
options: _ctx.options,
|
|
25381
25512
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
25382
25513
|
}, null, 8, ["options", "is-product-list"]),
|
|
25383
25514
|
createBaseVNode("div", _hoisted_4$2, [
|
|
25384
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25515
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25385
25516
|
key: 0,
|
|
25386
25517
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
25387
25518
|
ref_key: "searchResultsFilters",
|
|
@@ -31071,7 +31202,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31071
31202
|
onClick: withModifiers(innerClick, ["stop"])
|
|
31072
31203
|
}, [
|
|
31073
31204
|
createBaseVNode("div", _hoisted_2$7, [
|
|
31074
|
-
createVNode(_sfc_main$
|
|
31205
|
+
createVNode(_sfc_main$_, {
|
|
31075
31206
|
options: fullSearchBoxOptions.value,
|
|
31076
31207
|
"is-search-container": true,
|
|
31077
31208
|
ref_key: "searchBox",
|
|
@@ -31961,7 +32092,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31961
32092
|
key: getProductKeyAction(index, product)
|
|
31962
32093
|
}, {
|
|
31963
32094
|
default: withCtx(() => [
|
|
31964
|
-
createVNode(_sfc_main$
|
|
32095
|
+
createVNode(_sfc_main$p, {
|
|
31965
32096
|
product,
|
|
31966
32097
|
options: _ctx.options,
|
|
31967
32098
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31974,7 +32105,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31974
32105
|
_: 1
|
|
31975
32106
|
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
31976
32107
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31977
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32108
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
31978
32109
|
style: normalizeStyle(columnSize.value),
|
|
31979
32110
|
key: getProductKeyAction(index, product),
|
|
31980
32111
|
product,
|
|
@@ -32238,7 +32369,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
32238
32369
|
createBaseVNode("a", {
|
|
32239
32370
|
href: getLink(product)
|
|
32240
32371
|
}, [
|
|
32241
|
-
createVNode(_sfc_main$
|
|
32372
|
+
createVNode(_sfc_main$A, {
|
|
32242
32373
|
item: product,
|
|
32243
32374
|
options: image.value
|
|
32244
32375
|
}, null, 8, ["item", "options"])
|
|
@@ -32402,7 +32533,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
32402
32533
|
return (_ctx, _cache) => {
|
|
32403
32534
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32404
32535
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32405
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32536
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
32406
32537
|
class: "lupa-chat-product-card",
|
|
32407
32538
|
key: getProductKeyAction(index, product),
|
|
32408
32539
|
product,
|
|
@@ -32595,7 +32726,7 @@ const _hoisted_4 = {
|
|
|
32595
32726
|
key: 0,
|
|
32596
32727
|
class: "lupasearch-chat-content"
|
|
32597
32728
|
};
|
|
32598
|
-
const _sfc_main$
|
|
32729
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
32599
32730
|
__name: "ChatContainer",
|
|
32600
32731
|
props: {
|
|
32601
32732
|
options: {}
|
|
@@ -38613,7 +38744,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38613
38744
|
};
|
|
38614
38745
|
__expose({ fetch: fetch2 });
|
|
38615
38746
|
return (_ctx, _cache) => {
|
|
38616
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38747
|
+
return openBlock(), createBlock(unref(_sfc_main$_), {
|
|
38617
38748
|
options: fullSearchBoxOptions.value,
|
|
38618
38749
|
ref_key: "searchBox",
|
|
38619
38750
|
ref: searchBox2
|
|
@@ -39168,7 +39299,7 @@ const chat = (options, mountOptions) => {
|
|
|
39168
39299
|
const instance = createVue(
|
|
39169
39300
|
options.displayOptions.containerSelector,
|
|
39170
39301
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
39171
|
-
_sfc_main$
|
|
39302
|
+
_sfc_main$1u,
|
|
39172
39303
|
{
|
|
39173
39304
|
options
|
|
39174
39305
|
}
|