@getlupa/vue 0.17.13 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.js +811 -595
- package/dist/lupaSearch.mjs +811 -595
- package/dist/src/components/search-results/related-queries/RelatedQueriesApi.vue.d.ts +14 -0
- package/dist/src/components/search-results/related-queries/RelatedQueryPanelApi.vue.d.ts +23 -0
- package/dist/src/stores/searchResult.d.ts +16 -3
- package/dist/src/types/search-results/RelatedQueryOptions.d.ts +1 -1
- package/dist/src/types/search-results/SearchResultsOptions.d.ts +2 -1
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -1661,6 +1661,15 @@ const refiners = (queryKey, query, environment, customBaseUrl) => __awaiter(void
|
|
|
1661
1661
|
const errors = yield res.json();
|
|
1662
1662
|
return { success: false, errors };
|
|
1663
1663
|
});
|
|
1664
|
+
const relatedQueries = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1665
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
|
|
1666
|
+
if (res.status < 400) {
|
|
1667
|
+
const data = yield res.json();
|
|
1668
|
+
return Object.assign(Object.assign({}, data), { success: true });
|
|
1669
|
+
}
|
|
1670
|
+
const errors = yield res.json();
|
|
1671
|
+
return { success: false, errors };
|
|
1672
|
+
});
|
|
1664
1673
|
const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1665
1674
|
const idParam = ids.map((id) => `ids=${id}`).join("&");
|
|
1666
1675
|
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
|
|
@@ -1742,6 +1751,9 @@ const LupaSearchSdk = {
|
|
|
1742
1751
|
queryRefiners: (queryKey, publicQuery, options = null) => {
|
|
1743
1752
|
return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
1744
1753
|
},
|
|
1754
|
+
queryRelated: (queryKey, publicQuery, options = null) => {
|
|
1755
|
+
return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
1756
|
+
},
|
|
1745
1757
|
suggestions: (queryKey, suggestionQuery, options = null) => {
|
|
1746
1758
|
if (options === null || options === void 0 ? void 0 : options.customUrl) {
|
|
1747
1759
|
return suggestCustom(suggestionQuery, options);
|
|
@@ -9001,11 +9013,11 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
9001
9013
|
resetHighlightIndex
|
|
9002
9014
|
};
|
|
9003
9015
|
});
|
|
9004
|
-
const _hoisted_1$
|
|
9005
|
-
const _hoisted_2$
|
|
9006
|
-
const _hoisted_3$
|
|
9007
|
-
const _hoisted_4$
|
|
9008
|
-
const _hoisted_5$
|
|
9016
|
+
const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
|
|
9017
|
+
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
9018
|
+
const _hoisted_3$E = { id: "lupa-search-box-input" };
|
|
9019
|
+
const _hoisted_4$v = ["value"];
|
|
9020
|
+
const _hoisted_5$l = ["aria-label", "placeholder"];
|
|
9009
9021
|
const _hoisted_6$9 = /* @__PURE__ */ vue.createElementVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
9010
9022
|
const _hoisted_7$7 = [
|
|
9011
9023
|
_hoisted_6$9
|
|
@@ -9014,7 +9026,7 @@ const _hoisted_8$3 = {
|
|
|
9014
9026
|
key: 0,
|
|
9015
9027
|
class: "lupa-close-label"
|
|
9016
9028
|
};
|
|
9017
|
-
const _sfc_main$
|
|
9029
|
+
const _sfc_main$1x = /* @__PURE__ */ vue.defineComponent({
|
|
9018
9030
|
__name: "SearchBoxInput",
|
|
9019
9031
|
props: {
|
|
9020
9032
|
options: {},
|
|
@@ -9098,20 +9110,20 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
|
|
|
9098
9110
|
};
|
|
9099
9111
|
__expose({ focus });
|
|
9100
9112
|
return (_ctx, _cache) => {
|
|
9101
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9102
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
9113
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1k, [
|
|
9114
|
+
vue.createElementVNode("div", _hoisted_2$V, [
|
|
9103
9115
|
vue.createElementVNode("div", {
|
|
9104
9116
|
class: vue.normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
9105
9117
|
onClick: clear
|
|
9106
9118
|
}, null, 2)
|
|
9107
9119
|
]),
|
|
9108
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
9120
|
+
vue.createElementVNode("div", _hoisted_3$E, [
|
|
9109
9121
|
vue.createElementVNode("input", {
|
|
9110
9122
|
class: "lupa-hint",
|
|
9111
9123
|
"aria-hidden": "true",
|
|
9112
9124
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
9113
9125
|
disabled: ""
|
|
9114
|
-
}, null, 8, _hoisted_4$
|
|
9126
|
+
}, null, 8, _hoisted_4$v),
|
|
9115
9127
|
vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
|
|
9116
9128
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
9117
9129
|
}, inputAttributes.value, {
|
|
@@ -9125,7 +9137,7 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
|
|
|
9125
9137
|
placeholder: labels.value.placeholder,
|
|
9126
9138
|
onInput: handleInput,
|
|
9127
9139
|
onFocus: handleFocus
|
|
9128
|
-
}), null, 16, _hoisted_5$
|
|
9140
|
+
}), null, 16, _hoisted_5$l), [
|
|
9129
9141
|
[vue.vModelText, inputValue.value]
|
|
9130
9142
|
]),
|
|
9131
9143
|
_ctx.options.showSubmitButton ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
@@ -9144,7 +9156,7 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
|
|
|
9144
9156
|
};
|
|
9145
9157
|
}
|
|
9146
9158
|
});
|
|
9147
|
-
const _sfc_main$
|
|
9159
|
+
const _sfc_main$1w = /* @__PURE__ */ vue.defineComponent({
|
|
9148
9160
|
__name: "SearchBoxMoreResults",
|
|
9149
9161
|
props: {
|
|
9150
9162
|
labels: {},
|
|
@@ -9181,9 +9193,9 @@ const _sfc_main$1u = /* @__PURE__ */ vue.defineComponent({
|
|
|
9181
9193
|
};
|
|
9182
9194
|
}
|
|
9183
9195
|
});
|
|
9184
|
-
const _hoisted_1$
|
|
9185
|
-
const _hoisted_2$
|
|
9186
|
-
const _sfc_main$
|
|
9196
|
+
const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
|
|
9197
|
+
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
9198
|
+
const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
|
|
9187
9199
|
__name: "SearchBoxHistoryItem",
|
|
9188
9200
|
props: {
|
|
9189
9201
|
item: {},
|
|
@@ -9199,8 +9211,8 @@ const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
|
|
|
9199
9211
|
emit("click", { query: props.item });
|
|
9200
9212
|
};
|
|
9201
9213
|
return (_ctx, _cache) => {
|
|
9202
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9203
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
9214
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1j, [
|
|
9215
|
+
vue.createElementVNode("div", _hoisted_2$U, [
|
|
9204
9216
|
vue.createElementVNode("div", {
|
|
9205
9217
|
class: vue.normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
9206
9218
|
onClick: click2
|
|
@@ -9214,11 +9226,11 @@ const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
|
|
|
9214
9226
|
};
|
|
9215
9227
|
}
|
|
9216
9228
|
});
|
|
9217
|
-
const _hoisted_1$
|
|
9229
|
+
const _hoisted_1$1i = {
|
|
9218
9230
|
key: 0,
|
|
9219
9231
|
class: "lupa-search-box-history-panel"
|
|
9220
9232
|
};
|
|
9221
|
-
const _sfc_main$
|
|
9233
|
+
const _sfc_main$1u = /* @__PURE__ */ vue.defineComponent({
|
|
9222
9234
|
__name: "SearchBoxHistoryPanel",
|
|
9223
9235
|
props: {
|
|
9224
9236
|
options: {}
|
|
@@ -9268,9 +9280,9 @@ const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
|
|
|
9268
9280
|
}
|
|
9269
9281
|
};
|
|
9270
9282
|
return (_ctx, _cache) => {
|
|
9271
|
-
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9283
|
+
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1i, [
|
|
9272
9284
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(limitedHistory.value, (item, index) => {
|
|
9273
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9285
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1v, {
|
|
9274
9286
|
key: item,
|
|
9275
9287
|
item,
|
|
9276
9288
|
highlighted: index === highlightIndex.value,
|
|
@@ -9286,15 +9298,15 @@ const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
|
|
|
9286
9298
|
};
|
|
9287
9299
|
}
|
|
9288
9300
|
});
|
|
9289
|
-
const _hoisted_1$
|
|
9290
|
-
const _sfc_main$
|
|
9301
|
+
const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
|
|
9302
|
+
const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
|
|
9291
9303
|
__name: "SearchBoxNoResults",
|
|
9292
9304
|
props: {
|
|
9293
9305
|
labels: {}
|
|
9294
9306
|
},
|
|
9295
9307
|
setup(__props) {
|
|
9296
9308
|
return (_ctx, _cache) => {
|
|
9297
|
-
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$
|
|
9309
|
+
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$1h, vue.toDisplayString(_ctx.labels.noResults), 1);
|
|
9298
9310
|
};
|
|
9299
9311
|
}
|
|
9300
9312
|
});
|
|
@@ -9326,26 +9338,26 @@ const generateGridTemplate = (elements) => {
|
|
|
9326
9338
|
}
|
|
9327
9339
|
return gridTemplate.join(" ");
|
|
9328
9340
|
};
|
|
9329
|
-
const _hoisted_1$
|
|
9330
|
-
const _hoisted_2$
|
|
9341
|
+
const _hoisted_1$1g = ["innerHTML"];
|
|
9342
|
+
const _hoisted_2$T = {
|
|
9331
9343
|
key: 1,
|
|
9332
9344
|
"data-cy": "lupa-suggestion-value",
|
|
9333
9345
|
class: "lupa-suggestion-value"
|
|
9334
9346
|
};
|
|
9335
|
-
const _hoisted_3$
|
|
9347
|
+
const _hoisted_3$D = {
|
|
9336
9348
|
key: 2,
|
|
9337
9349
|
class: "lupa-suggestion-facet",
|
|
9338
9350
|
"data-cy": "lupa-suggestion-facet"
|
|
9339
9351
|
};
|
|
9340
|
-
const _hoisted_4$
|
|
9352
|
+
const _hoisted_4$u = {
|
|
9341
9353
|
class: "lupa-suggestion-facet-label",
|
|
9342
9354
|
"data-cy": "lupa-suggestion-facet-label"
|
|
9343
9355
|
};
|
|
9344
|
-
const _hoisted_5$
|
|
9356
|
+
const _hoisted_5$k = {
|
|
9345
9357
|
class: "lupa-suggestion-facet-value",
|
|
9346
9358
|
"data-cy": "lupa-suggestion-facet-value"
|
|
9347
9359
|
};
|
|
9348
|
-
const _sfc_main$
|
|
9360
|
+
const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
|
|
9349
9361
|
__name: "SearchBoxSuggestion",
|
|
9350
9362
|
props: {
|
|
9351
9363
|
suggestion: {},
|
|
@@ -9381,20 +9393,20 @@ const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
|
|
|
9381
9393
|
class: "lupa-suggestion-value",
|
|
9382
9394
|
"data-cy": "lupa-suggestion-value",
|
|
9383
9395
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
9384
|
-
}, null, 8, _hoisted_1$
|
|
9385
|
-
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
9386
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
9387
|
-
vue.createElementVNode("span", _hoisted_5$
|
|
9396
|
+
}, null, 8, _hoisted_1$1g)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$T, vue.toDisplayString(_ctx.suggestion.display), 1)),
|
|
9397
|
+
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$D, [
|
|
9398
|
+
vue.createElementVNode("span", _hoisted_4$u, vue.toDisplayString(facetLabel.value), 1),
|
|
9399
|
+
vue.createElementVNode("span", _hoisted_5$k, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
9388
9400
|
])) : vue.createCommentVNode("", true)
|
|
9389
9401
|
]);
|
|
9390
9402
|
};
|
|
9391
9403
|
}
|
|
9392
9404
|
});
|
|
9393
|
-
const _hoisted_1$
|
|
9405
|
+
const _hoisted_1$1f = {
|
|
9394
9406
|
id: "lupa-search-box-suggestions",
|
|
9395
9407
|
"data-cy": "lupa-search-box-suggestions"
|
|
9396
9408
|
};
|
|
9397
|
-
const _sfc_main$
|
|
9409
|
+
const _sfc_main$1r = /* @__PURE__ */ vue.defineComponent({
|
|
9398
9410
|
__name: "SearchBoxSuggestions",
|
|
9399
9411
|
props: {
|
|
9400
9412
|
items: {},
|
|
@@ -9454,9 +9466,9 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
|
|
|
9454
9466
|
});
|
|
9455
9467
|
});
|
|
9456
9468
|
return (_ctx, _cache) => {
|
|
9457
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9469
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1f, [
|
|
9458
9470
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
|
|
9459
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9471
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1s, {
|
|
9460
9472
|
key: getSuggestionKey(item),
|
|
9461
9473
|
class: vue.normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9462
9474
|
suggestion: item,
|
|
@@ -9484,7 +9496,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
9484
9496
|
}, timeout);
|
|
9485
9497
|
};
|
|
9486
9498
|
};
|
|
9487
|
-
const _sfc_main$
|
|
9499
|
+
const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
|
|
9488
9500
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9489
9501
|
props: {
|
|
9490
9502
|
panel: {},
|
|
@@ -9526,7 +9538,7 @@ const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
|
|
|
9526
9538
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9527
9539
|
vue.watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9528
9540
|
return (_ctx, _cache) => {
|
|
9529
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9541
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1r, {
|
|
9530
9542
|
items: searchResult.value,
|
|
9531
9543
|
highlight: _ctx.panel.highlight,
|
|
9532
9544
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18630,9 +18642,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
18630
18642
|
targetImage.src = placeholder;
|
|
18631
18643
|
}
|
|
18632
18644
|
};
|
|
18633
|
-
const _hoisted_1$
|
|
18634
|
-
const _hoisted_2$
|
|
18635
|
-
const _sfc_main$
|
|
18645
|
+
const _hoisted_1$1e = ["src"];
|
|
18646
|
+
const _hoisted_2$S = ["src"];
|
|
18647
|
+
const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
|
|
18636
18648
|
__name: "ProductImage",
|
|
18637
18649
|
props: {
|
|
18638
18650
|
item: {},
|
|
@@ -18774,7 +18786,7 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
|
|
|
18774
18786
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18775
18787
|
onError: replaceWithPlaceholder,
|
|
18776
18788
|
key: finalUrl.value
|
|
18777
|
-
}), null, 16, _hoisted_1$
|
|
18789
|
+
}), null, 16, _hoisted_1$1e))
|
|
18778
18790
|
]),
|
|
18779
18791
|
_: 1
|
|
18780
18792
|
})) : (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
@@ -18782,12 +18794,12 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
|
|
|
18782
18794
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
18783
18795
|
style: styleOverride.value,
|
|
18784
18796
|
src: finalMainImageUrl.value
|
|
18785
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
18797
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
|
|
18786
18798
|
], 38);
|
|
18787
18799
|
};
|
|
18788
18800
|
}
|
|
18789
18801
|
});
|
|
18790
|
-
const _sfc_main$
|
|
18802
|
+
const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
|
|
18791
18803
|
__name: "SearchBoxProductImage",
|
|
18792
18804
|
props: {
|
|
18793
18805
|
item: {},
|
|
@@ -18795,7 +18807,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
|
18795
18807
|
},
|
|
18796
18808
|
setup(__props) {
|
|
18797
18809
|
return (_ctx, _cache) => {
|
|
18798
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
18810
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
18799
18811
|
item: _ctx.item,
|
|
18800
18812
|
options: _ctx.options,
|
|
18801
18813
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18804,12 +18816,12 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
|
18804
18816
|
};
|
|
18805
18817
|
}
|
|
18806
18818
|
});
|
|
18807
|
-
const _hoisted_1$
|
|
18808
|
-
const _hoisted_2$
|
|
18819
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
18820
|
+
const _hoisted_2$R = {
|
|
18809
18821
|
key: 1,
|
|
18810
18822
|
class: "lupa-search-box-product-title"
|
|
18811
18823
|
};
|
|
18812
|
-
const _sfc_main$
|
|
18824
|
+
const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
|
|
18813
18825
|
__name: "SearchBoxProductTitle",
|
|
18814
18826
|
props: {
|
|
18815
18827
|
item: {},
|
|
@@ -18832,18 +18844,18 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
18832
18844
|
key: 0,
|
|
18833
18845
|
class: "lupa-search-box-product-title",
|
|
18834
18846
|
innerHTML: sanitizedTitle.value
|
|
18835
|
-
}, null, 8, _hoisted_1$
|
|
18847
|
+
}, null, 8, _hoisted_1$1d)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$R, [
|
|
18836
18848
|
vue.createElementVNode("strong", null, vue.toDisplayString(title.value), 1)
|
|
18837
18849
|
]));
|
|
18838
18850
|
};
|
|
18839
18851
|
}
|
|
18840
18852
|
});
|
|
18841
|
-
const _hoisted_1$
|
|
18842
|
-
const _hoisted_2$
|
|
18853
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
18854
|
+
const _hoisted_2$Q = {
|
|
18843
18855
|
key: 1,
|
|
18844
18856
|
class: "lupa-search-box-product-description"
|
|
18845
18857
|
};
|
|
18846
|
-
const _sfc_main$
|
|
18858
|
+
const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
18847
18859
|
__name: "SearchBoxProductDescription",
|
|
18848
18860
|
props: {
|
|
18849
18861
|
item: {},
|
|
@@ -18866,12 +18878,12 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
18866
18878
|
key: 0,
|
|
18867
18879
|
class: "lupa-search-box-product-description",
|
|
18868
18880
|
innerHTML: sanitizedDescription.value
|
|
18869
|
-
}, null, 8, _hoisted_1$
|
|
18881
|
+
}, null, 8, _hoisted_1$1c)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$Q, vue.toDisplayString(description.value), 1));
|
|
18870
18882
|
};
|
|
18871
18883
|
}
|
|
18872
18884
|
});
|
|
18873
|
-
const _hoisted_1$
|
|
18874
|
-
const _sfc_main$
|
|
18885
|
+
const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
|
|
18886
|
+
const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
18875
18887
|
__name: "SearchBoxProductPrice",
|
|
18876
18888
|
props: {
|
|
18877
18889
|
item: {},
|
|
@@ -18890,13 +18902,13 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
18890
18902
|
);
|
|
18891
18903
|
});
|
|
18892
18904
|
return (_ctx, _cache) => {
|
|
18893
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
18905
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1b, [
|
|
18894
18906
|
vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
|
|
18895
18907
|
]);
|
|
18896
18908
|
};
|
|
18897
18909
|
}
|
|
18898
18910
|
});
|
|
18899
|
-
const _sfc_main$
|
|
18911
|
+
const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
18900
18912
|
__name: "SearchBoxProductRegularPrice",
|
|
18901
18913
|
props: {
|
|
18902
18914
|
item: {},
|
|
@@ -18924,12 +18936,12 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
18924
18936
|
};
|
|
18925
18937
|
}
|
|
18926
18938
|
});
|
|
18927
|
-
const _hoisted_1$
|
|
18928
|
-
const _hoisted_2$
|
|
18929
|
-
const _hoisted_3$
|
|
18930
|
-
const _hoisted_4$
|
|
18931
|
-
const _hoisted_5$
|
|
18932
|
-
const _sfc_main$
|
|
18939
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
18940
|
+
const _hoisted_2$P = { key: 0 };
|
|
18941
|
+
const _hoisted_3$C = { key: 1 };
|
|
18942
|
+
const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
|
|
18943
|
+
const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
|
|
18944
|
+
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
18933
18945
|
__name: "SearchBoxProductCustom",
|
|
18934
18946
|
props: {
|
|
18935
18947
|
item: {},
|
|
@@ -18955,20 +18967,20 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
|
18955
18967
|
key: 0,
|
|
18956
18968
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18957
18969
|
innerHTML: text.value
|
|
18958
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18970
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
18959
18971
|
key: 1,
|
|
18960
18972
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18961
18973
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18962
|
-
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
18963
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
18964
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
18974
|
+
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$C, [
|
|
18975
|
+
vue.createElementVNode("div", _hoisted_4$t, vue.toDisplayString(label.value), 1),
|
|
18976
|
+
vue.createElementVNode("div", _hoisted_5$j, vue.toDisplayString(text.value), 1)
|
|
18965
18977
|
]))
|
|
18966
18978
|
], 16));
|
|
18967
18979
|
};
|
|
18968
18980
|
}
|
|
18969
18981
|
});
|
|
18970
|
-
const _hoisted_1$
|
|
18971
|
-
const _sfc_main$
|
|
18982
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
18983
|
+
const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
18972
18984
|
__name: "SearchBoxProductCustomHtml",
|
|
18973
18985
|
props: {
|
|
18974
18986
|
item: {},
|
|
@@ -18993,7 +19005,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
|
18993
19005
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
18994
19006
|
class: className.value,
|
|
18995
19007
|
innerHTML: text.value
|
|
18996
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
19008
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
|
|
18997
19009
|
};
|
|
18998
19010
|
}
|
|
18999
19011
|
});
|
|
@@ -19050,10 +19062,13 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
19050
19062
|
const loading = vue.ref(false);
|
|
19051
19063
|
const loadingFacets = vue.ref(false);
|
|
19052
19064
|
const loadingRefiners = vue.ref(false);
|
|
19065
|
+
const loadingRelatedQueries = vue.ref(false);
|
|
19053
19066
|
const isMobileSidebarVisible = vue.ref(false);
|
|
19054
19067
|
const relatedCategoryChildren = vue.ref([]);
|
|
19055
19068
|
const lastRequestId = vue.ref("");
|
|
19056
19069
|
const searchRequestResults = vue.ref({});
|
|
19070
|
+
const relatedQueriesResult = vue.ref({});
|
|
19071
|
+
const relatedQueriesApiEnabled = vue.ref(null);
|
|
19057
19072
|
const lastResultsSource = vue.ref(void 0);
|
|
19058
19073
|
const optionsStore = useOptionsStore();
|
|
19059
19074
|
const paramsStore = useParamsStore();
|
|
@@ -19207,6 +19222,9 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
19207
19222
|
const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
|
|
19208
19223
|
columnCount.value = grid.columns[screenWidth];
|
|
19209
19224
|
};
|
|
19225
|
+
const setRelatedQueriesApiEnabled = (enabled) => {
|
|
19226
|
+
relatedQueriesApiEnabled.value = enabled;
|
|
19227
|
+
};
|
|
19210
19228
|
const setAddToCartAmount = (newAddToCartAmount) => {
|
|
19211
19229
|
if (!newAddToCartAmount) {
|
|
19212
19230
|
return;
|
|
@@ -19237,6 +19255,27 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
19237
19255
|
const setRelatedCategoryChildren = (children) => {
|
|
19238
19256
|
relatedCategoryChildren.value = [...children];
|
|
19239
19257
|
};
|
|
19258
|
+
const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async(exports, null, function* () {
|
|
19259
|
+
var _a, _b;
|
|
19260
|
+
loadingRelatedQueries.value = true;
|
|
19261
|
+
const context = getLupaTrackingContext();
|
|
19262
|
+
const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
|
|
19263
|
+
const query = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, publicQuery), {
|
|
19264
|
+
searchText
|
|
19265
|
+
}), context), {
|
|
19266
|
+
modifiers: { facets: false, refiners: true }
|
|
19267
|
+
});
|
|
19268
|
+
LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
|
|
19269
|
+
if (!res.success) {
|
|
19270
|
+
return;
|
|
19271
|
+
}
|
|
19272
|
+
relatedQueriesResult.value = res;
|
|
19273
|
+
}).catch((err) => {
|
|
19274
|
+
console.error(err);
|
|
19275
|
+
}).finally(() => {
|
|
19276
|
+
loadingRelatedQueries.value = false;
|
|
19277
|
+
});
|
|
19278
|
+
});
|
|
19240
19279
|
return {
|
|
19241
19280
|
isMobileSidebarVisible,
|
|
19242
19281
|
searchResult,
|
|
@@ -19261,6 +19300,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
19261
19300
|
hideFiltersOnExactMatchForKeys,
|
|
19262
19301
|
relatedCategoryChildren,
|
|
19263
19302
|
searchRequestResults,
|
|
19303
|
+
relatedQueriesResult,
|
|
19304
|
+
relatedQueriesApiEnabled,
|
|
19264
19305
|
lastResultsSource,
|
|
19265
19306
|
setSidebarState,
|
|
19266
19307
|
queryFacet,
|
|
@@ -19273,15 +19314,17 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
19273
19314
|
setLoading,
|
|
19274
19315
|
clearSearchResult,
|
|
19275
19316
|
filterVisibleFilterValues,
|
|
19276
|
-
setRelatedCategoryChildren
|
|
19317
|
+
setRelatedCategoryChildren,
|
|
19318
|
+
queryRelatedQueries,
|
|
19319
|
+
setRelatedQueriesApiEnabled
|
|
19277
19320
|
};
|
|
19278
19321
|
});
|
|
19279
|
-
const _hoisted_1$
|
|
19280
|
-
const _hoisted_2$
|
|
19281
|
-
const _hoisted_3$
|
|
19282
|
-
const _hoisted_4$
|
|
19283
|
-
const _hoisted_5$
|
|
19284
|
-
const _sfc_main$
|
|
19322
|
+
const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
19323
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
19324
|
+
const _hoisted_3$B = ["disabled"];
|
|
19325
|
+
const _hoisted_4$s = ["href"];
|
|
19326
|
+
const _hoisted_5$i = ["onClick", "disabled"];
|
|
19327
|
+
const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
19285
19328
|
__name: "SearchBoxProductAddToCart",
|
|
19286
19329
|
props: {
|
|
19287
19330
|
item: {},
|
|
@@ -19319,45 +19362,45 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19319
19362
|
return Boolean(props.link && props.options.link);
|
|
19320
19363
|
});
|
|
19321
19364
|
return (_ctx, _cache) => {
|
|
19322
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19323
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
19365
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$18, [
|
|
19366
|
+
vue.createElementVNode("div", _hoisted_2$O, [
|
|
19324
19367
|
hasLink.value ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
19325
19368
|
key: 0,
|
|
19326
19369
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
19327
19370
|
"data-cy": "lupa-add-to-cart",
|
|
19328
19371
|
disabled: !inStockValue.value || loading.value
|
|
19329
19372
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
19330
|
-
vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$
|
|
19331
|
-
], 16, _hoisted_3$
|
|
19373
|
+
vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$s)
|
|
19374
|
+
], 16, _hoisted_3$B)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
19332
19375
|
key: 1,
|
|
19333
19376
|
onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
|
|
19334
19377
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
19335
19378
|
"data-cy": "lupa-add-to-cart",
|
|
19336
19379
|
type: "button",
|
|
19337
19380
|
disabled: !inStockValue.value || loading.value
|
|
19338
|
-
}, _ctx.dynamicAttributes), vue.toDisplayString(label.value), 17, _hoisted_5$
|
|
19381
|
+
}, _ctx.dynamicAttributes), vue.toDisplayString(label.value), 17, _hoisted_5$i))
|
|
19339
19382
|
])
|
|
19340
19383
|
]);
|
|
19341
19384
|
};
|
|
19342
19385
|
}
|
|
19343
19386
|
});
|
|
19344
|
-
const _hoisted_1$
|
|
19387
|
+
const _hoisted_1$17 = {
|
|
19345
19388
|
key: 1,
|
|
19346
19389
|
class: "lupa-search-box-element-badge-wrapper"
|
|
19347
19390
|
};
|
|
19348
19391
|
const __default__$4 = {
|
|
19349
19392
|
components: {
|
|
19350
|
-
SearchBoxProductImage: _sfc_main$
|
|
19351
|
-
SearchBoxProductTitle: _sfc_main$
|
|
19352
|
-
SearchBoxProductDescription: _sfc_main$
|
|
19353
|
-
SearchBoxProductPrice: _sfc_main$
|
|
19354
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
19355
|
-
SearchBoxProductCustom: _sfc_main$
|
|
19356
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
19357
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
19393
|
+
SearchBoxProductImage: _sfc_main$1o,
|
|
19394
|
+
SearchBoxProductTitle: _sfc_main$1n,
|
|
19395
|
+
SearchBoxProductDescription: _sfc_main$1m,
|
|
19396
|
+
SearchBoxProductPrice: _sfc_main$1l,
|
|
19397
|
+
SearchBoxProductRegularPrice: _sfc_main$1k,
|
|
19398
|
+
SearchBoxProductCustom: _sfc_main$1j,
|
|
19399
|
+
SearchBoxProductCustomHtml: _sfc_main$1i,
|
|
19400
|
+
SearchBoxProductAddToCart: _sfc_main$1h
|
|
19358
19401
|
}
|
|
19359
19402
|
};
|
|
19360
|
-
const _sfc_main$
|
|
19403
|
+
const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
|
|
19361
19404
|
__name: "SearchBoxProductElement",
|
|
19362
19405
|
props: {
|
|
19363
19406
|
item: {},
|
|
@@ -19429,7 +19472,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
19429
19472
|
"dynamic-attributes": dynamicAttributes.value,
|
|
19430
19473
|
link: _ctx.link
|
|
19431
19474
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : vue.createCommentVNode("", true)
|
|
19432
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19475
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$17, [
|
|
19433
19476
|
displayElement.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(elementComponent.value), {
|
|
19434
19477
|
key: 0,
|
|
19435
19478
|
item: enhancedItem.value,
|
|
@@ -19444,14 +19487,14 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
19444
19487
|
};
|
|
19445
19488
|
}
|
|
19446
19489
|
}));
|
|
19447
|
-
const _hoisted_1$
|
|
19448
|
-
const _hoisted_2$
|
|
19449
|
-
const _hoisted_3$
|
|
19450
|
-
const _hoisted_4$
|
|
19490
|
+
const _hoisted_1$16 = { class: "lupa-badge-title" };
|
|
19491
|
+
const _hoisted_2$N = ["src"];
|
|
19492
|
+
const _hoisted_3$A = { key: 1 };
|
|
19493
|
+
const _hoisted_4$r = {
|
|
19451
19494
|
key: 0,
|
|
19452
19495
|
class: "lupa-badge-full-text"
|
|
19453
19496
|
};
|
|
19454
|
-
const _sfc_main$
|
|
19497
|
+
const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
19455
19498
|
__name: "SearchResultGeneratedBadge",
|
|
19456
19499
|
props: {
|
|
19457
19500
|
options: {},
|
|
@@ -19484,20 +19527,20 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
19484
19527
|
class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
19485
19528
|
style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
19486
19529
|
}, [
|
|
19487
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
19530
|
+
vue.createElementVNode("span", _hoisted_1$16, [
|
|
19488
19531
|
image.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
19489
19532
|
key: 0,
|
|
19490
19533
|
src: image.value
|
|
19491
|
-
}, null, 8, _hoisted_2$
|
|
19492
|
-
hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
19534
|
+
}, null, 8, _hoisted_2$N)) : vue.createCommentVNode("", true),
|
|
19535
|
+
hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$A, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
|
|
19493
19536
|
]),
|
|
19494
|
-
hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
19537
|
+
hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$r, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
|
|
19495
19538
|
], 6);
|
|
19496
19539
|
};
|
|
19497
19540
|
}
|
|
19498
19541
|
});
|
|
19499
|
-
const _hoisted_1$
|
|
19500
|
-
const _sfc_main$
|
|
19542
|
+
const _hoisted_1$15 = { class: "lupa-generated-badges" };
|
|
19543
|
+
const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
19501
19544
|
__name: "SearchResultGeneratedBadges",
|
|
19502
19545
|
props: {
|
|
19503
19546
|
options: {}
|
|
@@ -19523,9 +19566,9 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
19523
19566
|
})).filter((b) => Boolean(b.id));
|
|
19524
19567
|
});
|
|
19525
19568
|
return (_ctx, _cache) => {
|
|
19526
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19569
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
|
|
19527
19570
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
|
|
19528
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
19571
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1f, {
|
|
19529
19572
|
key: badge.id,
|
|
19530
19573
|
badge,
|
|
19531
19574
|
options: _ctx.options
|
|
@@ -19535,8 +19578,8 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
19535
19578
|
};
|
|
19536
19579
|
}
|
|
19537
19580
|
});
|
|
19538
|
-
const _hoisted_1$
|
|
19539
|
-
const _sfc_main$
|
|
19581
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
19582
|
+
const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
19540
19583
|
__name: "CustomBadge",
|
|
19541
19584
|
props: {
|
|
19542
19585
|
badge: {}
|
|
@@ -19557,12 +19600,12 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
19557
19600
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19558
19601
|
class: vue.normalizeClass(className.value),
|
|
19559
19602
|
innerHTML: text.value
|
|
19560
|
-
}, null, 10, _hoisted_1$
|
|
19603
|
+
}, null, 10, _hoisted_1$14);
|
|
19561
19604
|
};
|
|
19562
19605
|
}
|
|
19563
19606
|
});
|
|
19564
|
-
const _hoisted_1$
|
|
19565
|
-
const _sfc_main$
|
|
19607
|
+
const _hoisted_1$13 = { class: "lupa-text-badges" };
|
|
19608
|
+
const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
19566
19609
|
__name: "TextBadge",
|
|
19567
19610
|
props: {
|
|
19568
19611
|
badge: {}
|
|
@@ -19576,7 +19619,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
19576
19619
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19577
19620
|
});
|
|
19578
19621
|
return (_ctx, _cache) => {
|
|
19579
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19622
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$13, [
|
|
19580
19623
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
19581
19624
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19582
19625
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19587,9 +19630,9 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
19587
19630
|
};
|
|
19588
19631
|
}
|
|
19589
19632
|
});
|
|
19590
|
-
const _hoisted_1$
|
|
19591
|
-
const _hoisted_2$
|
|
19592
|
-
const _sfc_main$
|
|
19633
|
+
const _hoisted_1$12 = { class: "lupa-image-badges" };
|
|
19634
|
+
const _hoisted_2$M = ["src"];
|
|
19635
|
+
const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
19593
19636
|
__name: "ImageBadge",
|
|
19594
19637
|
props: {
|
|
19595
19638
|
badge: {}
|
|
@@ -19609,7 +19652,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19609
19652
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19610
19653
|
};
|
|
19611
19654
|
return (_ctx, _cache) => {
|
|
19612
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19655
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, [
|
|
19613
19656
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
19614
19657
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19615
19658
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19617,14 +19660,14 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19617
19660
|
}, [
|
|
19618
19661
|
vue.createElementVNode("img", {
|
|
19619
19662
|
src: getImageUrl(item)
|
|
19620
|
-
}, null, 8, _hoisted_2$
|
|
19663
|
+
}, null, 8, _hoisted_2$M)
|
|
19621
19664
|
]);
|
|
19622
19665
|
}), 128))
|
|
19623
19666
|
]);
|
|
19624
19667
|
};
|
|
19625
19668
|
}
|
|
19626
19669
|
});
|
|
19627
|
-
const _sfc_main$
|
|
19670
|
+
const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
19628
19671
|
__name: "DiscountBadge",
|
|
19629
19672
|
props: {
|
|
19630
19673
|
badge: {}
|
|
@@ -19683,16 +19726,16 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19683
19726
|
};
|
|
19684
19727
|
}
|
|
19685
19728
|
});
|
|
19686
|
-
const _hoisted_1
|
|
19729
|
+
const _hoisted_1$11 = { id: "lupa-search-results-badges" };
|
|
19687
19730
|
const __default__$3 = {
|
|
19688
19731
|
components: {
|
|
19689
|
-
CustomBadge: _sfc_main$
|
|
19690
|
-
TextBadge: _sfc_main$
|
|
19691
|
-
ImageBadge: _sfc_main$
|
|
19692
|
-
DiscountBadge: _sfc_main$
|
|
19732
|
+
CustomBadge: _sfc_main$1d,
|
|
19733
|
+
TextBadge: _sfc_main$1c,
|
|
19734
|
+
ImageBadge: _sfc_main$1b,
|
|
19735
|
+
DiscountBadge: _sfc_main$1a
|
|
19693
19736
|
}
|
|
19694
19737
|
};
|
|
19695
|
-
const _sfc_main$
|
|
19738
|
+
const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
|
|
19696
19739
|
__name: "SearchResultsBadgeWrapper",
|
|
19697
19740
|
props: {
|
|
19698
19741
|
position: {},
|
|
@@ -19755,7 +19798,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
19755
19798
|
}
|
|
19756
19799
|
};
|
|
19757
19800
|
return (_ctx, _cache) => {
|
|
19758
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1
|
|
19801
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
|
|
19759
19802
|
vue.createElementVNode("div", {
|
|
19760
19803
|
id: "lupa-badges",
|
|
19761
19804
|
class: vue.normalizeClass(anchorPosition.value)
|
|
@@ -19766,7 +19809,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
19766
19809
|
badge
|
|
19767
19810
|
}, null, 8, ["badge"]);
|
|
19768
19811
|
}), 128)),
|
|
19769
|
-
positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
19812
|
+
positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$1e, {
|
|
19770
19813
|
key: 0,
|
|
19771
19814
|
options: _ctx.options
|
|
19772
19815
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true)
|
|
@@ -19775,13 +19818,13 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
19775
19818
|
};
|
|
19776
19819
|
}
|
|
19777
19820
|
}));
|
|
19778
|
-
const _hoisted_1$
|
|
19779
|
-
const _hoisted_2$
|
|
19780
|
-
const _hoisted_3$
|
|
19821
|
+
const _hoisted_1$10 = ["href"];
|
|
19822
|
+
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
19823
|
+
const _hoisted_3$z = {
|
|
19781
19824
|
key: 0,
|
|
19782
19825
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19783
19826
|
};
|
|
19784
|
-
const _sfc_main$
|
|
19827
|
+
const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
19785
19828
|
__name: "SearchBoxProduct",
|
|
19786
19829
|
props: {
|
|
19787
19830
|
item: {},
|
|
@@ -19867,7 +19910,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19867
19910
|
style: vue.normalizeStyle(imageStyleOverride.value)
|
|
19868
19911
|
}, [
|
|
19869
19912
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
|
|
19870
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
19913
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1g, {
|
|
19871
19914
|
class: "lupa-search-box-product-element",
|
|
19872
19915
|
item: _ctx.item,
|
|
19873
19916
|
element,
|
|
@@ -19877,10 +19920,10 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19877
19920
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
19878
19921
|
}), 128))
|
|
19879
19922
|
], 4),
|
|
19880
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
19923
|
+
vue.createElementVNode("div", _hoisted_2$L, [
|
|
19881
19924
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
|
|
19882
19925
|
var _a;
|
|
19883
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
19926
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1g, {
|
|
19884
19927
|
key: element.key,
|
|
19885
19928
|
class: "lupa-search-box-product-element",
|
|
19886
19929
|
item: _ctx.item,
|
|
@@ -19891,7 +19934,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19891
19934
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19892
19935
|
name: "badges",
|
|
19893
19936
|
fn: vue.withCtx(() => [
|
|
19894
|
-
vue.createVNode(_sfc_main$
|
|
19937
|
+
vue.createVNode(_sfc_main$19, {
|
|
19895
19938
|
options: badgeOptions.value,
|
|
19896
19939
|
position: "card"
|
|
19897
19940
|
}, null, 8, ["options"])
|
|
@@ -19901,8 +19944,8 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19901
19944
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
19902
19945
|
}), 128))
|
|
19903
19946
|
]),
|
|
19904
|
-
addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
19905
|
-
vue.createVNode(_sfc_main$
|
|
19947
|
+
addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
|
|
19948
|
+
vue.createVNode(_sfc_main$1g, {
|
|
19906
19949
|
class: "lupa-search-box-product-element",
|
|
19907
19950
|
item: _ctx.item,
|
|
19908
19951
|
element: addToCartElement.value,
|
|
@@ -19911,7 +19954,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19911
19954
|
isInStock: isInStock.value
|
|
19912
19955
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19913
19956
|
])) : vue.createCommentVNode("", true)
|
|
19914
|
-
], 16, _hoisted_1$
|
|
19957
|
+
], 16, _hoisted_1$10);
|
|
19915
19958
|
};
|
|
19916
19959
|
}
|
|
19917
19960
|
});
|
|
@@ -19983,8 +20026,8 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
19983
20026
|
};
|
|
19984
20027
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
19985
20028
|
});
|
|
19986
|
-
const _hoisted_1
|
|
19987
|
-
const _sfc_main$
|
|
20029
|
+
const _hoisted_1$$ = { id: "lupa-search-box-products" };
|
|
20030
|
+
const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
19988
20031
|
__name: "SearchBoxProducts",
|
|
19989
20032
|
props: {
|
|
19990
20033
|
items: {},
|
|
@@ -20055,7 +20098,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20055
20098
|
}
|
|
20056
20099
|
};
|
|
20057
20100
|
return (_ctx, _cache) => {
|
|
20058
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1
|
|
20101
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
|
|
20059
20102
|
_ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.items, (item, index) => {
|
|
20060
20103
|
return vue.renderSlot(_ctx.$slots, "productCard", {
|
|
20061
20104
|
key: index,
|
|
@@ -20067,7 +20110,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20067
20110
|
itemClicked: handleProductClick
|
|
20068
20111
|
});
|
|
20069
20112
|
}), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.items, (item, index) => {
|
|
20070
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
20113
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$18, {
|
|
20071
20114
|
key: index,
|
|
20072
20115
|
item,
|
|
20073
20116
|
panelOptions: _ctx.panelOptions,
|
|
@@ -20082,9 +20125,9 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20082
20125
|
};
|
|
20083
20126
|
}
|
|
20084
20127
|
});
|
|
20085
|
-
const _hoisted_1$
|
|
20086
|
-
const _hoisted_2$
|
|
20087
|
-
const _sfc_main$
|
|
20128
|
+
const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
20129
|
+
const _hoisted_2$K = { key: 0 };
|
|
20130
|
+
const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
20088
20131
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
20089
20132
|
props: {
|
|
20090
20133
|
options: {},
|
|
@@ -20114,13 +20157,13 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20114
20157
|
emit("goToResults");
|
|
20115
20158
|
};
|
|
20116
20159
|
return (_ctx, _cache) => {
|
|
20117
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20160
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
|
|
20118
20161
|
vue.createElementVNode("button", {
|
|
20119
20162
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
20120
20163
|
onClick: goToResults
|
|
20121
20164
|
}, [
|
|
20122
20165
|
vue.createTextVNode(vue.toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
20123
|
-
totalCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
20166
|
+
totalCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$K, " " + vue.toDisplayString(totalCount.value), 1)) : vue.createCommentVNode("", true)
|
|
20124
20167
|
])
|
|
20125
20168
|
]);
|
|
20126
20169
|
};
|
|
@@ -20207,7 +20250,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
20207
20250
|
}
|
|
20208
20251
|
return parsedObject;
|
|
20209
20252
|
};
|
|
20210
|
-
const _sfc_main$
|
|
20253
|
+
const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
20211
20254
|
__name: "SearchBoxProductsWrapper",
|
|
20212
20255
|
props: {
|
|
20213
20256
|
panel: {},
|
|
@@ -20276,7 +20319,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20276
20319
|
vue.watch(() => props.panel.limit, getItemsDebounced);
|
|
20277
20320
|
return (_ctx, _cache) => {
|
|
20278
20321
|
var _a, _b;
|
|
20279
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
20322
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$17, {
|
|
20280
20323
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
20281
20324
|
panelOptions: _ctx.panel,
|
|
20282
20325
|
labels: _ctx.labels,
|
|
@@ -20286,7 +20329,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20286
20329
|
default: vue.withCtx(() => {
|
|
20287
20330
|
var _a2;
|
|
20288
20331
|
return [
|
|
20289
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
20332
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$16, {
|
|
20290
20333
|
key: 0,
|
|
20291
20334
|
options: _ctx.searchBoxOptions,
|
|
20292
20335
|
panel: _ctx.panel,
|
|
@@ -20307,7 +20350,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20307
20350
|
};
|
|
20308
20351
|
}
|
|
20309
20352
|
});
|
|
20310
|
-
const _sfc_main$
|
|
20353
|
+
const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
20311
20354
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
20312
20355
|
props: {
|
|
20313
20356
|
panel: {},
|
|
@@ -20379,7 +20422,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20379
20422
|
});
|
|
20380
20423
|
return (_ctx, _cache) => {
|
|
20381
20424
|
var _a, _b;
|
|
20382
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
20425
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$17, {
|
|
20383
20426
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
20384
20427
|
panelOptions: documentPanelOptions.value,
|
|
20385
20428
|
labels: _ctx.labels,
|
|
@@ -20397,31 +20440,31 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20397
20440
|
};
|
|
20398
20441
|
}
|
|
20399
20442
|
});
|
|
20400
|
-
const _hoisted_1$
|
|
20443
|
+
const _hoisted_1$Z = {
|
|
20401
20444
|
key: 0,
|
|
20402
20445
|
id: "lupa-search-box-panel"
|
|
20403
20446
|
};
|
|
20404
|
-
const _hoisted_2$
|
|
20405
|
-
const _hoisted_3$
|
|
20447
|
+
const _hoisted_2$J = ["data-cy"];
|
|
20448
|
+
const _hoisted_3$y = {
|
|
20406
20449
|
key: 0,
|
|
20407
20450
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
20408
20451
|
};
|
|
20409
|
-
const _hoisted_4$
|
|
20452
|
+
const _hoisted_4$q = {
|
|
20410
20453
|
key: 1,
|
|
20411
20454
|
class: "lupa-panel-title"
|
|
20412
20455
|
};
|
|
20413
|
-
const _hoisted_5$
|
|
20456
|
+
const _hoisted_5$h = {
|
|
20414
20457
|
key: 1,
|
|
20415
20458
|
id: "lupa-search-box-panel"
|
|
20416
20459
|
};
|
|
20417
20460
|
const __default__$2 = {
|
|
20418
20461
|
components: {
|
|
20419
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
20420
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
20421
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
20462
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1q,
|
|
20463
|
+
SearchBoxProductsWrapper: _sfc_main$15,
|
|
20464
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$14
|
|
20422
20465
|
}
|
|
20423
20466
|
};
|
|
20424
|
-
const _sfc_main$
|
|
20467
|
+
const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
|
|
20425
20468
|
__name: "SearchBoxMainPanel",
|
|
20426
20469
|
props: {
|
|
20427
20470
|
options: {},
|
|
@@ -20576,7 +20619,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
20576
20619
|
ref_key: "panelContainer",
|
|
20577
20620
|
ref: panelContainer
|
|
20578
20621
|
}, [
|
|
20579
|
-
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20622
|
+
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
|
|
20580
20623
|
labels.value.closePanel ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
20581
20624
|
key: 0,
|
|
20582
20625
|
class: "lupa-search-box-close-panel",
|
|
@@ -20598,8 +20641,8 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
20598
20641
|
style: vue.normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
20599
20642
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
20600
20643
|
}, [
|
|
20601
|
-
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
20602
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
20644
|
+
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, vue.toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : vue.createCommentVNode("", true),
|
|
20645
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$q, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
|
|
20603
20646
|
panel.queryKey && canShowPanel(panel) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getComponent(panel.type)), {
|
|
20604
20647
|
key: 2,
|
|
20605
20648
|
panel,
|
|
@@ -20621,21 +20664,21 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
20621
20664
|
key: "0"
|
|
20622
20665
|
} : void 0
|
|
20623
20666
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : vue.createCommentVNode("", true)
|
|
20624
|
-
], 14, _hoisted_2$
|
|
20667
|
+
], 14, _hoisted_2$J);
|
|
20625
20668
|
}), 128))
|
|
20626
20669
|
], 4),
|
|
20627
|
-
!vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
20670
|
+
!vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$1t, {
|
|
20628
20671
|
key: 1,
|
|
20629
20672
|
labels: labels.value
|
|
20630
20673
|
}, null, 8, ["labels"])) : vue.createCommentVNode("", true),
|
|
20631
|
-
vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
20674
|
+
vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$1w, {
|
|
20632
20675
|
key: 2,
|
|
20633
20676
|
labels: labels.value,
|
|
20634
20677
|
options: _ctx.options,
|
|
20635
20678
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
20636
20679
|
}, null, 8, ["labels", "options"])) : vue.createCommentVNode("", true)
|
|
20637
|
-
])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
20638
|
-
vue.createVNode(_sfc_main$
|
|
20680
|
+
])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$h, [
|
|
20681
|
+
vue.createVNode(_sfc_main$1u, {
|
|
20639
20682
|
options: _ctx.options.history,
|
|
20640
20683
|
history: history.value,
|
|
20641
20684
|
onGoToResults: handleGoToResults,
|
|
@@ -20660,8 +20703,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
20660
20703
|
const elements = getElements(triggers);
|
|
20661
20704
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
20662
20705
|
};
|
|
20663
|
-
const _hoisted_1$
|
|
20664
|
-
const _sfc_main$
|
|
20706
|
+
const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
|
|
20707
|
+
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
20665
20708
|
__name: "SearchBox",
|
|
20666
20709
|
props: {
|
|
20667
20710
|
options: {},
|
|
@@ -20982,8 +21025,8 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20982
21025
|
id: "lupa-search-box",
|
|
20983
21026
|
class: vue.normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
20984
21027
|
}, [
|
|
20985
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
20986
|
-
vue.createVNode(_sfc_main$
|
|
21028
|
+
vue.createElementVNode("div", _hoisted_1$Y, [
|
|
21029
|
+
vue.createVNode(_sfc_main$1x, {
|
|
20987
21030
|
options: inputOptions.value,
|
|
20988
21031
|
suggestedValue: suggestedValue.value,
|
|
20989
21032
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20996,7 +21039,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20996
21039
|
onSearch: handleSearch,
|
|
20997
21040
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
20998
21041
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20999
|
-
opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
21042
|
+
opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$13, {
|
|
21000
21043
|
key: 0,
|
|
21001
21044
|
options: panelOptions.value,
|
|
21002
21045
|
inputValue: inputValue.value,
|
|
@@ -21101,20 +21144,20 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
|
|
|
21101
21144
|
options.options.onError(e2);
|
|
21102
21145
|
}
|
|
21103
21146
|
});
|
|
21104
|
-
const _hoisted_1$
|
|
21147
|
+
const _hoisted_1$X = {
|
|
21105
21148
|
key: 0,
|
|
21106
21149
|
id: "lupa-search-results-did-you-mean"
|
|
21107
21150
|
};
|
|
21108
|
-
const _hoisted_2$
|
|
21151
|
+
const _hoisted_2$I = {
|
|
21109
21152
|
key: 0,
|
|
21110
21153
|
"data-cy": "suggested-search-text-label"
|
|
21111
21154
|
};
|
|
21112
|
-
const _hoisted_3$
|
|
21155
|
+
const _hoisted_3$x = {
|
|
21113
21156
|
key: 1,
|
|
21114
21157
|
"data-cy": "did-you-mean-label"
|
|
21115
21158
|
};
|
|
21116
|
-
const _hoisted_4$
|
|
21117
|
-
const _sfc_main
|
|
21159
|
+
const _hoisted_4$p = { key: 1 };
|
|
21160
|
+
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
21118
21161
|
__name: "SearchResultsDidYouMean",
|
|
21119
21162
|
props: {
|
|
21120
21163
|
labels: {}
|
|
@@ -21146,8 +21189,8 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
21146
21189
|
paramStore.goToResults({ searchText, facet });
|
|
21147
21190
|
};
|
|
21148
21191
|
return (_ctx, _cache) => {
|
|
21149
|
-
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21150
|
-
vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
21192
|
+
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
21193
|
+
vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$I, [
|
|
21151
21194
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
21152
21195
|
return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
|
|
21153
21196
|
vue.createElementVNode("span", {
|
|
@@ -21156,7 +21199,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
21156
21199
|
]);
|
|
21157
21200
|
}), 128))
|
|
21158
21201
|
])) : vue.createCommentVNode("", true),
|
|
21159
|
-
didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
21202
|
+
didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$x, [
|
|
21160
21203
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
21161
21204
|
return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
|
|
21162
21205
|
label.includes("{1}") ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -21164,7 +21207,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
21164
21207
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
21165
21208
|
"data-cy": "did-you-mean-value",
|
|
21166
21209
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
21167
|
-
}, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
21210
|
+
}, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$p, vue.toDisplayString(label) + " ", 1))
|
|
21168
21211
|
]);
|
|
21169
21212
|
}), 128))
|
|
21170
21213
|
])) : vue.createCommentVNode("", true)
|
|
@@ -21172,12 +21215,12 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
21172
21215
|
};
|
|
21173
21216
|
}
|
|
21174
21217
|
});
|
|
21175
|
-
const _hoisted_1$
|
|
21218
|
+
const _hoisted_1$W = {
|
|
21176
21219
|
key: 0,
|
|
21177
21220
|
class: "lupa-search-results-summary"
|
|
21178
21221
|
};
|
|
21179
|
-
const _hoisted_2$
|
|
21180
|
-
const _sfc_main$
|
|
21222
|
+
const _hoisted_2$H = ["innerHTML"];
|
|
21223
|
+
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
21181
21224
|
__name: "SearchResultsSummary",
|
|
21182
21225
|
props: {
|
|
21183
21226
|
label: {},
|
|
@@ -21192,8 +21235,8 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
21192
21235
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
21193
21236
|
});
|
|
21194
21237
|
return (_ctx, _cache) => {
|
|
21195
|
-
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21196
|
-
vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
21238
|
+
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
|
|
21239
|
+
vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
|
|
21197
21240
|
_ctx.clearable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
21198
21241
|
key: 0,
|
|
21199
21242
|
class: "lupa-filter-clear",
|
|
@@ -21204,19 +21247,19 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
21204
21247
|
};
|
|
21205
21248
|
}
|
|
21206
21249
|
});
|
|
21207
|
-
const _hoisted_1$
|
|
21250
|
+
const _hoisted_1$V = {
|
|
21208
21251
|
key: 0,
|
|
21209
21252
|
class: "lupa-result-page-title",
|
|
21210
21253
|
"data-cy": "lupa-result-page-title"
|
|
21211
21254
|
};
|
|
21212
|
-
const _hoisted_2$
|
|
21213
|
-
const _hoisted_3$
|
|
21255
|
+
const _hoisted_2$G = { key: 0 };
|
|
21256
|
+
const _hoisted_3$w = {
|
|
21214
21257
|
key: 1,
|
|
21215
21258
|
class: "lupa-results-total-count"
|
|
21216
21259
|
};
|
|
21217
|
-
const _hoisted_4$
|
|
21218
|
-
const _hoisted_5$
|
|
21219
|
-
const _sfc_main
|
|
21260
|
+
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
21261
|
+
const _hoisted_5$g = ["innerHTML"];
|
|
21262
|
+
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
21220
21263
|
__name: "SearchResultsTitle",
|
|
21221
21264
|
props: {
|
|
21222
21265
|
options: {},
|
|
@@ -21259,16 +21302,16 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
21259
21302
|
});
|
|
21260
21303
|
return (_ctx, _cache) => {
|
|
21261
21304
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
21262
|
-
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$
|
|
21305
|
+
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$V, [
|
|
21263
21306
|
vue.createTextVNode(vue.toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
21264
|
-
queryText.value && !searchResultsTitleTemplate.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
21265
|
-
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
21307
|
+
queryText.value && !searchResultsTitleTemplate.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$G, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
|
|
21308
|
+
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$w, [
|
|
21266
21309
|
vue.createTextVNode("(" + vue.toDisplayString(searchResultsCountLabel.value), 1),
|
|
21267
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
21310
|
+
vue.createElementVNode("span", _hoisted_4$o, vue.toDisplayString(vue.unref(totalItems)), 1),
|
|
21268
21311
|
vue.createTextVNode(")")
|
|
21269
21312
|
])) : vue.createCommentVNode("", true)
|
|
21270
21313
|
])) : vue.createCommentVNode("", true),
|
|
21271
|
-
_ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
21314
|
+
_ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$10, {
|
|
21272
21315
|
key: 1,
|
|
21273
21316
|
label: summaryLabel.value
|
|
21274
21317
|
}, null, 8, ["label"])) : vue.createCommentVNode("", true),
|
|
@@ -21276,20 +21319,20 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
21276
21319
|
key: 2,
|
|
21277
21320
|
class: "lupa-result-page-description-top",
|
|
21278
21321
|
innerHTML: descriptionTop.value
|
|
21279
|
-
}, null, 8, _hoisted_5$
|
|
21322
|
+
}, null, 8, _hoisted_5$g)) : vue.createCommentVNode("", true)
|
|
21280
21323
|
]);
|
|
21281
21324
|
};
|
|
21282
21325
|
}
|
|
21283
21326
|
});
|
|
21284
|
-
const _hoisted_1$
|
|
21327
|
+
const _hoisted_1$U = {
|
|
21285
21328
|
class: "lupa-current-filter-label",
|
|
21286
21329
|
"data-cy": "lupa-current-filter-label"
|
|
21287
21330
|
};
|
|
21288
|
-
const _hoisted_2$
|
|
21331
|
+
const _hoisted_2$F = {
|
|
21289
21332
|
class: "lupa-current-filter-value",
|
|
21290
21333
|
"data-cy": "lupa-current-filter-value"
|
|
21291
21334
|
};
|
|
21292
|
-
const _sfc_main$
|
|
21335
|
+
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
21293
21336
|
__name: "CurrentFilterDisplay",
|
|
21294
21337
|
props: {
|
|
21295
21338
|
filter: {}
|
|
@@ -21311,23 +21354,23 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
21311
21354
|
class: "lupa-current-filter-action",
|
|
21312
21355
|
onClick: handleClick
|
|
21313
21356
|
}, "⨉"),
|
|
21314
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
21315
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
21357
|
+
vue.createElementVNode("div", _hoisted_1$U, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
21358
|
+
vue.createElementVNode("div", _hoisted_2$F, vue.toDisplayString(_ctx.filter.value), 1)
|
|
21316
21359
|
], 2);
|
|
21317
21360
|
};
|
|
21318
21361
|
}
|
|
21319
21362
|
});
|
|
21320
|
-
const _hoisted_1$
|
|
21321
|
-
const _hoisted_2$
|
|
21363
|
+
const _hoisted_1$T = { class: "lupa-filter-title-text" };
|
|
21364
|
+
const _hoisted_2$E = {
|
|
21322
21365
|
key: 0,
|
|
21323
21366
|
class: "lupa-filter-count"
|
|
21324
21367
|
};
|
|
21325
|
-
const _hoisted_3$
|
|
21368
|
+
const _hoisted_3$v = {
|
|
21326
21369
|
key: 0,
|
|
21327
21370
|
class: "filter-values"
|
|
21328
21371
|
};
|
|
21329
|
-
const _hoisted_4$
|
|
21330
|
-
const _sfc_main$
|
|
21372
|
+
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
21373
|
+
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
21331
21374
|
__name: "CurrentFilters",
|
|
21332
21375
|
props: {
|
|
21333
21376
|
options: {},
|
|
@@ -21400,19 +21443,19 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
21400
21443
|
class: "lupa-current-filter-title",
|
|
21401
21444
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
21402
21445
|
}, [
|
|
21403
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
21446
|
+
vue.createElementVNode("div", _hoisted_1$T, [
|
|
21404
21447
|
vue.createTextVNode(vue.toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
21405
|
-
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
21448
|
+
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$E, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
|
|
21406
21449
|
]),
|
|
21407
21450
|
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
21408
21451
|
key: 0,
|
|
21409
21452
|
class: vue.normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
21410
21453
|
}, null, 2)) : vue.createCommentVNode("", true)
|
|
21411
21454
|
]),
|
|
21412
|
-
!_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
21413
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
21455
|
+
!_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, [
|
|
21456
|
+
vue.createElementVNode("div", _hoisted_4$n, [
|
|
21414
21457
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentDisplayFilters.value, (filter2) => {
|
|
21415
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
21458
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$_, {
|
|
21416
21459
|
key: filter2.key + "_" + filter2.value,
|
|
21417
21460
|
filter: filter2,
|
|
21418
21461
|
onRemove: handleRemove
|
|
@@ -21429,8 +21472,8 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
21429
21472
|
};
|
|
21430
21473
|
}
|
|
21431
21474
|
});
|
|
21432
|
-
const _hoisted_1$
|
|
21433
|
-
const _sfc_main$
|
|
21475
|
+
const _hoisted_1$S = ["href"];
|
|
21476
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
21434
21477
|
__name: "CategoryFilterItem",
|
|
21435
21478
|
props: {
|
|
21436
21479
|
options: {},
|
|
@@ -21467,20 +21510,20 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
21467
21510
|
"data-cy": "lupa-child-category-item",
|
|
21468
21511
|
href: urlLink.value,
|
|
21469
21512
|
onClick: handleNavigation
|
|
21470
|
-
}, vue.toDisplayString(title.value), 9, _hoisted_1$
|
|
21513
|
+
}, vue.toDisplayString(title.value), 9, _hoisted_1$S)
|
|
21471
21514
|
], 2);
|
|
21472
21515
|
};
|
|
21473
21516
|
}
|
|
21474
21517
|
});
|
|
21475
|
-
const _hoisted_1$
|
|
21518
|
+
const _hoisted_1$R = {
|
|
21476
21519
|
class: "lupa-category-filter",
|
|
21477
21520
|
"data-cy": "lupa-category-filter"
|
|
21478
21521
|
};
|
|
21479
|
-
const _hoisted_2$
|
|
21480
|
-
const _hoisted_3$
|
|
21481
|
-
const _hoisted_4$
|
|
21482
|
-
const _hoisted_5$
|
|
21483
|
-
const _sfc_main$
|
|
21522
|
+
const _hoisted_2$D = { class: "lupa-category-back" };
|
|
21523
|
+
const _hoisted_3$u = ["href"];
|
|
21524
|
+
const _hoisted_4$m = ["href"];
|
|
21525
|
+
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
21526
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
21484
21527
|
__name: "CategoryFilter",
|
|
21485
21528
|
props: {
|
|
21486
21529
|
options: {}
|
|
@@ -21568,14 +21611,14 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
21568
21611
|
};
|
|
21569
21612
|
__expose({ fetch: fetch2 });
|
|
21570
21613
|
return (_ctx, _cache) => {
|
|
21571
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21572
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
21614
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
|
|
21615
|
+
vue.createElementVNode("div", _hoisted_2$D, [
|
|
21573
21616
|
hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
21574
21617
|
key: 0,
|
|
21575
21618
|
"data-cy": "lupa-category-back",
|
|
21576
21619
|
href: backUrlLink.value,
|
|
21577
21620
|
onClick: handleNavigationBack
|
|
21578
|
-
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
21621
|
+
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$u)) : vue.createCommentVNode("", true)
|
|
21579
21622
|
]),
|
|
21580
21623
|
vue.createElementVNode("div", {
|
|
21581
21624
|
class: vue.normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -21585,11 +21628,11 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
21585
21628
|
href: parentUrlLink.value,
|
|
21586
21629
|
class: vue.normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
21587
21630
|
onClick: handleNavigationParent
|
|
21588
|
-
}, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
21631
|
+
}, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$m)
|
|
21589
21632
|
], 2),
|
|
21590
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
21633
|
+
vue.createElementVNode("div", _hoisted_5$f, [
|
|
21591
21634
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
|
|
21592
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
21635
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$Y, {
|
|
21593
21636
|
key: getCategoryKey(child),
|
|
21594
21637
|
item: child,
|
|
21595
21638
|
options: _ctx.options
|
|
@@ -21600,14 +21643,14 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
21600
21643
|
};
|
|
21601
21644
|
}
|
|
21602
21645
|
});
|
|
21603
|
-
const _hoisted_1$
|
|
21646
|
+
const _hoisted_1$Q = {
|
|
21604
21647
|
class: "lupa-search-result-facet-term-values",
|
|
21605
21648
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
21606
21649
|
};
|
|
21607
|
-
const _hoisted_2$
|
|
21608
|
-
const _hoisted_3$
|
|
21609
|
-
const _hoisted_4$
|
|
21610
|
-
const _hoisted_5$
|
|
21650
|
+
const _hoisted_2$C = ["placeholder"];
|
|
21651
|
+
const _hoisted_3$t = { class: "lupa-terms-list" };
|
|
21652
|
+
const _hoisted_4$l = ["onClick"];
|
|
21653
|
+
const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
|
|
21611
21654
|
const _hoisted_6$8 = { class: "lupa-term-label" };
|
|
21612
21655
|
const _hoisted_7$6 = {
|
|
21613
21656
|
key: 0,
|
|
@@ -21615,7 +21658,7 @@ const _hoisted_7$6 = {
|
|
|
21615
21658
|
};
|
|
21616
21659
|
const _hoisted_8$2 = { key: 0 };
|
|
21617
21660
|
const _hoisted_9$2 = { key: 1 };
|
|
21618
|
-
const _sfc_main$
|
|
21661
|
+
const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
21619
21662
|
__name: "TermFacet",
|
|
21620
21663
|
props: {
|
|
21621
21664
|
options: {},
|
|
@@ -21704,17 +21747,17 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
21704
21747
|
}
|
|
21705
21748
|
};
|
|
21706
21749
|
return (_ctx, _cache) => {
|
|
21707
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21750
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
|
|
21708
21751
|
isFilterable.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
21709
21752
|
key: 0,
|
|
21710
21753
|
class: "lupa-term-filter",
|
|
21711
21754
|
"data-cy": "lupa-term-filter",
|
|
21712
21755
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
21713
21756
|
placeholder: _ctx.options.labels.facetFilter
|
|
21714
|
-
}, null, 8, _hoisted_2$
|
|
21757
|
+
}, null, 8, _hoisted_2$C)), [
|
|
21715
21758
|
[vue.vModelText, termFilter.value]
|
|
21716
21759
|
]) : vue.createCommentVNode("", true),
|
|
21717
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
21760
|
+
vue.createElementVNode("div", _hoisted_3$t, [
|
|
21718
21761
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
|
|
21719
21762
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21720
21763
|
class: vue.normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -21722,7 +21765,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
21722
21765
|
key: item.title,
|
|
21723
21766
|
onClick: ($event) => handleFacetClick(item)
|
|
21724
21767
|
}, [
|
|
21725
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
21768
|
+
vue.createElementVNode("div", _hoisted_5$e, [
|
|
21726
21769
|
vue.createElementVNode("span", {
|
|
21727
21770
|
class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
21728
21771
|
}, null, 2)
|
|
@@ -21733,7 +21776,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
21733
21776
|
vue.createElementVNode("span", _hoisted_6$8, vue.toDisplayString(getItemLabel(item)), 1),
|
|
21734
21777
|
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$6, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
21735
21778
|
], 2)
|
|
21736
|
-
], 10, _hoisted_4$
|
|
21779
|
+
], 10, _hoisted_4$l);
|
|
21737
21780
|
}), 128))
|
|
21738
21781
|
]),
|
|
21739
21782
|
displayShowMore.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -22724,20 +22767,20 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
22724
22767
|
m.render = function(e2, t, r, i, n, o) {
|
|
22725
22768
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
22726
22769
|
}, m.__file = "src/Slider.vue";
|
|
22727
|
-
const _hoisted_1$
|
|
22728
|
-
const _hoisted_2$
|
|
22770
|
+
const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
|
|
22771
|
+
const _hoisted_2$B = {
|
|
22729
22772
|
key: 0,
|
|
22730
22773
|
class: "lupa-stats-facet-summary"
|
|
22731
22774
|
};
|
|
22732
|
-
const _hoisted_3$
|
|
22775
|
+
const _hoisted_3$s = {
|
|
22733
22776
|
key: 1,
|
|
22734
22777
|
class: "lupa-stats-facet-summary-input"
|
|
22735
22778
|
};
|
|
22736
|
-
const _hoisted_4$
|
|
22779
|
+
const _hoisted_4$k = {
|
|
22737
22780
|
key: 0,
|
|
22738
22781
|
class: "lupa-stats-range-label"
|
|
22739
22782
|
};
|
|
22740
|
-
const _hoisted_5$
|
|
22783
|
+
const _hoisted_5$d = { class: "lupa-stats-from" };
|
|
22741
22784
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
22742
22785
|
const _hoisted_7$5 = { key: 0 };
|
|
22743
22786
|
const _hoisted_8$1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -22752,7 +22795,7 @@ const _hoisted_13 = {
|
|
|
22752
22795
|
key: 2,
|
|
22753
22796
|
class: "lupa-stats-slider-wrapper"
|
|
22754
22797
|
};
|
|
22755
|
-
const _sfc_main$
|
|
22798
|
+
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
22756
22799
|
__name: "StatsFacet",
|
|
22757
22800
|
props: {
|
|
22758
22801
|
options: {},
|
|
@@ -22933,11 +22976,11 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
22933
22976
|
innerSliderRange.value = value;
|
|
22934
22977
|
};
|
|
22935
22978
|
return (_ctx, _cache) => {
|
|
22936
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
22937
|
-
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
22979
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
|
|
22980
|
+
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$B, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
|
|
22938
22981
|
vue.createElementVNode("div", null, [
|
|
22939
|
-
rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
22940
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
22982
|
+
rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$k, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
|
|
22983
|
+
vue.createElementVNode("div", _hoisted_5$d, [
|
|
22941
22984
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
22942
22985
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
22943
22986
|
type: "text",
|
|
@@ -23000,17 +23043,17 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
23000
23043
|
};
|
|
23001
23044
|
}
|
|
23002
23045
|
});
|
|
23003
|
-
const _hoisted_1$
|
|
23004
|
-
const _hoisted_2$
|
|
23005
|
-
const _hoisted_3$
|
|
23046
|
+
const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
|
|
23047
|
+
const _hoisted_2$A = { class: "lupa-term-label" };
|
|
23048
|
+
const _hoisted_3$r = {
|
|
23006
23049
|
key: 0,
|
|
23007
23050
|
class: "lupa-term-count"
|
|
23008
23051
|
};
|
|
23009
|
-
const _hoisted_4$
|
|
23052
|
+
const _hoisted_4$j = {
|
|
23010
23053
|
key: 0,
|
|
23011
23054
|
class: "lupa-facet-level"
|
|
23012
23055
|
};
|
|
23013
|
-
const _sfc_main$
|
|
23056
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
23014
23057
|
__name: "HierarchyFacetLevel",
|
|
23015
23058
|
props: {
|
|
23016
23059
|
options: {},
|
|
@@ -23063,7 +23106,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
23063
23106
|
"data-cy": "lupa-facet-term",
|
|
23064
23107
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
23065
23108
|
}, [
|
|
23066
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
23109
|
+
vue.createElementVNode("div", _hoisted_1$O, [
|
|
23067
23110
|
vue.createElementVNode("span", {
|
|
23068
23111
|
class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
23069
23112
|
}, null, 2)
|
|
@@ -23071,11 +23114,11 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
23071
23114
|
vue.createElementVNode("div", {
|
|
23072
23115
|
class: vue.normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
|
|
23073
23116
|
}, [
|
|
23074
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
23075
|
-
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
23117
|
+
vue.createElementVNode("span", _hoisted_2$A, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
|
|
23118
|
+
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$r, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
23076
23119
|
], 2)
|
|
23077
23120
|
]),
|
|
23078
|
-
showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
23121
|
+
showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, [
|
|
23079
23122
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(treeItem.value.children, (itemChild) => {
|
|
23080
23123
|
return vue.openBlock(), vue.createBlock(_component_HierarchyFacetLevel, {
|
|
23081
23124
|
key: itemChild.title,
|
|
@@ -23091,13 +23134,13 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
23091
23134
|
};
|
|
23092
23135
|
}
|
|
23093
23136
|
});
|
|
23094
|
-
const _hoisted_1$
|
|
23137
|
+
const _hoisted_1$N = {
|
|
23095
23138
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
23096
23139
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
23097
23140
|
};
|
|
23098
|
-
const _hoisted_2$
|
|
23099
|
-
const _hoisted_3$
|
|
23100
|
-
const _sfc_main$
|
|
23141
|
+
const _hoisted_2$z = { key: 0 };
|
|
23142
|
+
const _hoisted_3$q = ["placeholder"];
|
|
23143
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
23101
23144
|
__name: "HierarchyFacet",
|
|
23102
23145
|
props: {
|
|
23103
23146
|
options: {},
|
|
@@ -23152,19 +23195,19 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
23152
23195
|
showAll.value = false;
|
|
23153
23196
|
};
|
|
23154
23197
|
return (_ctx, _cache) => {
|
|
23155
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
23156
|
-
isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
23198
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
|
|
23199
|
+
isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
|
|
23157
23200
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
23158
23201
|
class: "lupa-term-filter",
|
|
23159
23202
|
"data-cy": "lupa-term-filter",
|
|
23160
23203
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
23161
23204
|
placeholder: _ctx.options.labels.facetFilter
|
|
23162
|
-
}, null, 8, _hoisted_3$
|
|
23205
|
+
}, null, 8, _hoisted_3$q), [
|
|
23163
23206
|
[vue.vModelText, termFilter.value]
|
|
23164
23207
|
])
|
|
23165
23208
|
])) : vue.createCommentVNode("", true),
|
|
23166
23209
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
|
|
23167
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23210
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$U, {
|
|
23168
23211
|
key: item.title,
|
|
23169
23212
|
options: _ctx.options,
|
|
23170
23213
|
item,
|
|
@@ -23188,20 +23231,20 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
23188
23231
|
};
|
|
23189
23232
|
}
|
|
23190
23233
|
});
|
|
23191
|
-
const _hoisted_1$
|
|
23192
|
-
const _hoisted_2$
|
|
23234
|
+
const _hoisted_1$M = { class: "lupa-facet-label-text" };
|
|
23235
|
+
const _hoisted_2$y = {
|
|
23193
23236
|
key: 0,
|
|
23194
23237
|
class: "lupa-facet-content",
|
|
23195
23238
|
"data-cy": "lupa-facet-content"
|
|
23196
23239
|
};
|
|
23197
23240
|
const __default__$1 = {
|
|
23198
23241
|
components: {
|
|
23199
|
-
TermFacet: _sfc_main$
|
|
23200
|
-
StatsFacet: _sfc_main$
|
|
23201
|
-
HierarchyFacet: _sfc_main$
|
|
23242
|
+
TermFacet: _sfc_main$W,
|
|
23243
|
+
StatsFacet: _sfc_main$V,
|
|
23244
|
+
HierarchyFacet: _sfc_main$T
|
|
23202
23245
|
}
|
|
23203
23246
|
};
|
|
23204
|
-
const _sfc_main$
|
|
23247
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
23205
23248
|
__name: "FacetDisplay",
|
|
23206
23249
|
props: {
|
|
23207
23250
|
options: {},
|
|
@@ -23322,12 +23365,12 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
23322
23365
|
"data-cy": "lupa-search-result-facet-label",
|
|
23323
23366
|
onClick: toggleFacet
|
|
23324
23367
|
}, [
|
|
23325
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
23368
|
+
vue.createElementVNode("div", _hoisted_1$M, vue.toDisplayString(facetLabel.value), 1),
|
|
23326
23369
|
vue.createElementVNode("div", {
|
|
23327
23370
|
class: vue.normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
23328
23371
|
}, null, 2)
|
|
23329
23372
|
], 2),
|
|
23330
|
-
isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
23373
|
+
isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, [
|
|
23331
23374
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(facetType.value), {
|
|
23332
23375
|
facet: facet.value,
|
|
23333
23376
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -23345,12 +23388,12 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
23345
23388
|
};
|
|
23346
23389
|
}
|
|
23347
23390
|
}));
|
|
23348
|
-
const _hoisted_1$
|
|
23349
|
-
const _hoisted_2$
|
|
23391
|
+
const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
|
|
23392
|
+
const _hoisted_2$x = {
|
|
23350
23393
|
key: 0,
|
|
23351
23394
|
class: "lupa-facets-title"
|
|
23352
23395
|
};
|
|
23353
|
-
const _sfc_main$
|
|
23396
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
23354
23397
|
__name: "FacetList",
|
|
23355
23398
|
props: {
|
|
23356
23399
|
options: {},
|
|
@@ -23384,14 +23427,14 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
23384
23427
|
};
|
|
23385
23428
|
return (_ctx, _cache) => {
|
|
23386
23429
|
var _a;
|
|
23387
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
23388
|
-
_ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
23430
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
|
|
23431
|
+
_ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
|
|
23389
23432
|
vue.createElementVNode("div", {
|
|
23390
23433
|
class: vue.normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
23391
23434
|
}, [
|
|
23392
23435
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayFacets.value, (facet) => {
|
|
23393
23436
|
var _a2;
|
|
23394
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23437
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$S, {
|
|
23395
23438
|
key: facet.key,
|
|
23396
23439
|
facet,
|
|
23397
23440
|
currentFilters: currentFiltersValue.value,
|
|
@@ -23406,8 +23449,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
23406
23449
|
};
|
|
23407
23450
|
}
|
|
23408
23451
|
});
|
|
23409
|
-
const _hoisted_1$
|
|
23410
|
-
const _sfc_main$
|
|
23452
|
+
const _hoisted_1$K = ["onClick"];
|
|
23453
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
23411
23454
|
__name: "FacetsButton",
|
|
23412
23455
|
props: {
|
|
23413
23456
|
options: {}
|
|
@@ -23427,12 +23470,12 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
23427
23470
|
key: 0,
|
|
23428
23471
|
class: "lupa-facets-button-filter",
|
|
23429
23472
|
onClick: vue.withModifiers(handleClick, ["stop"])
|
|
23430
|
-
}, vue.toDisplayString(label.value), 9, _hoisted_1$
|
|
23473
|
+
}, vue.toDisplayString(label.value), 9, _hoisted_1$K)) : vue.createCommentVNode("", true);
|
|
23431
23474
|
};
|
|
23432
23475
|
}
|
|
23433
23476
|
});
|
|
23434
|
-
const _hoisted_1$
|
|
23435
|
-
const _sfc_main$
|
|
23477
|
+
const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
|
|
23478
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
23436
23479
|
__name: "Facets",
|
|
23437
23480
|
props: {
|
|
23438
23481
|
options: {},
|
|
@@ -23518,7 +23561,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
23518
23561
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
23519
23562
|
class: vue.normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": vue.unref(loadingFacets) }])
|
|
23520
23563
|
}, [
|
|
23521
|
-
regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23564
|
+
regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$R, {
|
|
23522
23565
|
key: 0,
|
|
23523
23566
|
options: _ctx.options,
|
|
23524
23567
|
facets: regularFacets.value,
|
|
@@ -23528,8 +23571,8 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
23528
23571
|
onSelect: handleFacetSelect,
|
|
23529
23572
|
onClear: clear
|
|
23530
23573
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : vue.createCommentVNode("", true),
|
|
23531
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
23532
|
-
showFilterButton.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23574
|
+
vue.createElementVNode("div", _hoisted_1$J, [
|
|
23575
|
+
showFilterButton.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Q, {
|
|
23533
23576
|
key: 0,
|
|
23534
23577
|
options: _ctx.options,
|
|
23535
23578
|
onFilter: filter2
|
|
@@ -23539,12 +23582,12 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
23539
23582
|
};
|
|
23540
23583
|
}
|
|
23541
23584
|
});
|
|
23542
|
-
const _hoisted_1$
|
|
23585
|
+
const _hoisted_1$I = {
|
|
23543
23586
|
key: 0,
|
|
23544
23587
|
id: "lupa-search-result-filters",
|
|
23545
23588
|
class: "lupa-search-result-filters"
|
|
23546
23589
|
};
|
|
23547
|
-
const _sfc_main$
|
|
23590
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
23548
23591
|
__name: "SearchResultsFilters",
|
|
23549
23592
|
props: {
|
|
23550
23593
|
options: {},
|
|
@@ -23581,19 +23624,19 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
23581
23624
|
__expose({ fetch: fetch2 });
|
|
23582
23625
|
return (_ctx, _cache) => {
|
|
23583
23626
|
var _a;
|
|
23584
|
-
return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
23585
|
-
showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23627
|
+
return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
23628
|
+
showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
|
|
23586
23629
|
key: 0,
|
|
23587
23630
|
options: _ctx.options.currentFilters,
|
|
23588
23631
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
23589
23632
|
}, null, 8, ["options", "expandable"])) : vue.createCommentVNode("", true),
|
|
23590
|
-
_ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23633
|
+
_ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
|
|
23591
23634
|
key: 1,
|
|
23592
23635
|
options: _ctx.options.categories,
|
|
23593
23636
|
ref_key: "categoryFilters",
|
|
23594
23637
|
ref: categoryFilters
|
|
23595
23638
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
23596
|
-
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23639
|
+
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
|
|
23597
23640
|
key: 2,
|
|
23598
23641
|
options: _ctx.options.facets,
|
|
23599
23642
|
onFilter: filter2
|
|
@@ -23602,20 +23645,20 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
23602
23645
|
};
|
|
23603
23646
|
}
|
|
23604
23647
|
});
|
|
23605
|
-
const _hoisted_1$
|
|
23648
|
+
const _hoisted_1$H = {
|
|
23606
23649
|
key: 0,
|
|
23607
23650
|
class: "lupa-mobile-filter-sidebar"
|
|
23608
23651
|
};
|
|
23609
|
-
const _hoisted_2$
|
|
23610
|
-
const _hoisted_3$
|
|
23611
|
-
const _hoisted_4$
|
|
23612
|
-
const _hoisted_5$
|
|
23652
|
+
const _hoisted_2$w = ["onClick"];
|
|
23653
|
+
const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
|
|
23654
|
+
const _hoisted_4$i = { class: "lupa-sidebar-top" };
|
|
23655
|
+
const _hoisted_5$c = { class: "lupa-sidebar-title" };
|
|
23613
23656
|
const _hoisted_6$6 = {
|
|
23614
23657
|
key: 0,
|
|
23615
23658
|
class: "lupa-sidebar-filter-count"
|
|
23616
23659
|
};
|
|
23617
23660
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
23618
|
-
const _sfc_main$
|
|
23661
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
23619
23662
|
__name: "MobileFilterSidebar",
|
|
23620
23663
|
props: {
|
|
23621
23664
|
options: {}
|
|
@@ -23646,14 +23689,14 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
23646
23689
|
handleMobileToggle();
|
|
23647
23690
|
};
|
|
23648
23691
|
return (_ctx, _cache) => {
|
|
23649
|
-
return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
23692
|
+
return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
|
|
23650
23693
|
vue.createElementVNode("div", {
|
|
23651
23694
|
class: "lupa-sidebar-close",
|
|
23652
23695
|
onClick: vue.withModifiers(handleMobileToggle, ["stop"])
|
|
23653
|
-
}, null, 8, _hoisted_2$
|
|
23654
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
23655
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
23656
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
23696
|
+
}, null, 8, _hoisted_2$w),
|
|
23697
|
+
vue.createElementVNode("div", _hoisted_3$p, [
|
|
23698
|
+
vue.createElementVNode("div", _hoisted_4$i, [
|
|
23699
|
+
vue.createElementVNode("div", _hoisted_5$c, [
|
|
23657
23700
|
vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
|
|
23658
23701
|
isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
|
|
23659
23702
|
]),
|
|
@@ -23663,7 +23706,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
23663
23706
|
})
|
|
23664
23707
|
]),
|
|
23665
23708
|
vue.createElementVNode("div", _hoisted_7$4, [
|
|
23666
|
-
vue.createVNode(_sfc_main$
|
|
23709
|
+
vue.createVNode(_sfc_main$O, {
|
|
23667
23710
|
options: _ctx.options,
|
|
23668
23711
|
expandable: isActiveFiltersExpanded.value,
|
|
23669
23712
|
onFilter: filter2
|
|
@@ -23674,14 +23717,14 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
23674
23717
|
};
|
|
23675
23718
|
}
|
|
23676
23719
|
});
|
|
23677
|
-
const _hoisted_1$
|
|
23678
|
-
const _hoisted_2$
|
|
23679
|
-
const _hoisted_3$
|
|
23720
|
+
const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
|
|
23721
|
+
const _hoisted_2$v = ["href", "onClick"];
|
|
23722
|
+
const _hoisted_3$o = {
|
|
23680
23723
|
key: 1,
|
|
23681
23724
|
class: "lupa-search-results-breadcrumb-text"
|
|
23682
23725
|
};
|
|
23683
|
-
const _hoisted_4$
|
|
23684
|
-
const _sfc_main$
|
|
23726
|
+
const _hoisted_4$h = { key: 2 };
|
|
23727
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
23685
23728
|
__name: "SearchResultsBreadcrumbs",
|
|
23686
23729
|
props: {
|
|
23687
23730
|
breadcrumbs: {}
|
|
@@ -23706,7 +23749,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
23706
23749
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
23707
23750
|
};
|
|
23708
23751
|
return (_ctx, _cache) => {
|
|
23709
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
23752
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
|
|
23710
23753
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
23711
23754
|
var _a;
|
|
23712
23755
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -23721,20 +23764,20 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
23721
23764
|
var _a2;
|
|
23722
23765
|
return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
|
|
23723
23766
|
}
|
|
23724
|
-
}, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
23725
|
-
index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
23767
|
+
}, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$o, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
23768
|
+
index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$h, vue.toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : vue.createCommentVNode("", true)
|
|
23726
23769
|
]);
|
|
23727
23770
|
}), 128))
|
|
23728
23771
|
]);
|
|
23729
23772
|
};
|
|
23730
23773
|
}
|
|
23731
23774
|
});
|
|
23732
|
-
const _hoisted_1$
|
|
23775
|
+
const _hoisted_1$F = {
|
|
23733
23776
|
key: 0,
|
|
23734
23777
|
id: "lupa-search-result-filters",
|
|
23735
23778
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
23736
23779
|
};
|
|
23737
|
-
const _sfc_main$
|
|
23780
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
23738
23781
|
__name: "FiltersTopDropdown",
|
|
23739
23782
|
props: {
|
|
23740
23783
|
options: {}
|
|
@@ -23751,8 +23794,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
23751
23794
|
});
|
|
23752
23795
|
return (_ctx, _cache) => {
|
|
23753
23796
|
var _a;
|
|
23754
|
-
return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
23755
|
-
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23797
|
+
return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
|
|
23798
|
+
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
|
|
23756
23799
|
key: 0,
|
|
23757
23800
|
options: _ctx.options.facets,
|
|
23758
23801
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -23763,8 +23806,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
23763
23806
|
};
|
|
23764
23807
|
}
|
|
23765
23808
|
});
|
|
23766
|
-
const _hoisted_1$
|
|
23767
|
-
const _sfc_main$
|
|
23809
|
+
const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
|
|
23810
|
+
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
23768
23811
|
__name: "SearchResultsLayoutSelection",
|
|
23769
23812
|
setup(__props) {
|
|
23770
23813
|
const searchResultStore = useSearchResultStore();
|
|
@@ -23775,7 +23818,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
23775
23818
|
searchResultStore.setLayout(layout2);
|
|
23776
23819
|
};
|
|
23777
23820
|
return (_ctx, _cache) => {
|
|
23778
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
23821
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
|
|
23779
23822
|
vue.createElementVNode("div", {
|
|
23780
23823
|
class: vue.normalizeClass([
|
|
23781
23824
|
"lupa-layout-selection-grid",
|
|
@@ -23797,11 +23840,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
23797
23840
|
};
|
|
23798
23841
|
}
|
|
23799
23842
|
});
|
|
23800
|
-
const _hoisted_1$
|
|
23843
|
+
const _hoisted_1$D = {
|
|
23801
23844
|
key: 0,
|
|
23802
23845
|
class: "lupa-mobile-toggle-filter-count"
|
|
23803
23846
|
};
|
|
23804
|
-
const _sfc_main$
|
|
23847
|
+
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
23805
23848
|
__name: "SearchResultsMobileToggle",
|
|
23806
23849
|
props: {
|
|
23807
23850
|
labels: {},
|
|
@@ -23849,12 +23892,12 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
23849
23892
|
onClick: handleMobileToggle
|
|
23850
23893
|
}, [
|
|
23851
23894
|
vue.createTextVNode(vue.toDisplayString(label.value) + " ", 1),
|
|
23852
|
-
_ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
23895
|
+
_ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$D, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
|
|
23853
23896
|
], 2);
|
|
23854
23897
|
};
|
|
23855
23898
|
}
|
|
23856
23899
|
});
|
|
23857
|
-
const _sfc_main$
|
|
23900
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
23858
23901
|
__name: "SearchResultsMobileFilterClose",
|
|
23859
23902
|
props: {
|
|
23860
23903
|
label: {}
|
|
@@ -23874,21 +23917,21 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
23874
23917
|
};
|
|
23875
23918
|
}
|
|
23876
23919
|
});
|
|
23877
|
-
const _hoisted_1$
|
|
23920
|
+
const _hoisted_1$C = {
|
|
23878
23921
|
key: 0,
|
|
23879
23922
|
id: "lupa-search-results-page-select",
|
|
23880
23923
|
"data-cy": "lupa-search-results-page-select"
|
|
23881
23924
|
};
|
|
23882
|
-
const _hoisted_2$
|
|
23925
|
+
const _hoisted_2$u = {
|
|
23883
23926
|
key: 0,
|
|
23884
23927
|
class: "lupa-page-number-separator"
|
|
23885
23928
|
};
|
|
23886
|
-
const _hoisted_3$
|
|
23887
|
-
const _hoisted_4$
|
|
23929
|
+
const _hoisted_3$n = ["onClick"];
|
|
23930
|
+
const _hoisted_4$g = {
|
|
23888
23931
|
key: 0,
|
|
23889
23932
|
class: "lupa-page-number-separator"
|
|
23890
23933
|
};
|
|
23891
|
-
const _sfc_main$
|
|
23934
|
+
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
23892
23935
|
__name: "SearchResultsPageSelect",
|
|
23893
23936
|
props: {
|
|
23894
23937
|
lastPageLabel: {},
|
|
@@ -23965,7 +24008,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
23965
24008
|
}
|
|
23966
24009
|
};
|
|
23967
24010
|
return (_ctx, _cache) => {
|
|
23968
|
-
return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
24011
|
+
return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
|
|
23969
24012
|
showBack.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
23970
24013
|
key: 0,
|
|
23971
24014
|
class: vue.normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23976,7 +24019,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
23976
24019
|
class: "lupa-page-number lupa-page-number-first",
|
|
23977
24020
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
23978
24021
|
}, " 1 "),
|
|
23979
|
-
showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
24022
|
+
showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, "...")) : vue.createCommentVNode("", true)
|
|
23980
24023
|
], 64)) : vue.createCommentVNode("", true),
|
|
23981
24024
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pages.value, (page) => {
|
|
23982
24025
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -23987,10 +24030,10 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
23987
24030
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
23988
24031
|
]),
|
|
23989
24032
|
"data-cy": "lupa-page-number"
|
|
23990
|
-
}, vue.toDisplayString(page), 11, _hoisted_3$
|
|
24033
|
+
}, vue.toDisplayString(page), 11, _hoisted_3$n);
|
|
23991
24034
|
}), 128)),
|
|
23992
24035
|
showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
23993
|
-
showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
24036
|
+
showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$g, "...")) : vue.createCommentVNode("", true),
|
|
23994
24037
|
vue.createElementVNode("div", {
|
|
23995
24038
|
class: "lupa-page-number lupa-page-number-last",
|
|
23996
24039
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -24009,15 +24052,15 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
24009
24052
|
};
|
|
24010
24053
|
}
|
|
24011
24054
|
});
|
|
24012
|
-
const _hoisted_1$
|
|
24055
|
+
const _hoisted_1$B = {
|
|
24013
24056
|
id: "lupa-search-results-page-size",
|
|
24014
24057
|
"data-cy": "lupa-search-results-page-size"
|
|
24015
24058
|
};
|
|
24016
|
-
const _hoisted_2$
|
|
24017
|
-
const _hoisted_3$
|
|
24018
|
-
const _hoisted_4$
|
|
24019
|
-
const _hoisted_5$
|
|
24020
|
-
const _sfc_main$
|
|
24059
|
+
const _hoisted_2$t = { id: "lupa-select" };
|
|
24060
|
+
const _hoisted_3$m = { class: "lupa-select-label" };
|
|
24061
|
+
const _hoisted_4$f = ["aria-label"];
|
|
24062
|
+
const _hoisted_5$b = ["value"];
|
|
24063
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
24021
24064
|
__name: "SearchResultsPageSize",
|
|
24022
24065
|
props: {
|
|
24023
24066
|
labels: {},
|
|
@@ -24045,9 +24088,9 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
24045
24088
|
});
|
|
24046
24089
|
};
|
|
24047
24090
|
return (_ctx, _cache) => {
|
|
24048
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
24049
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
24050
|
-
vue.createElementVNode("label", _hoisted_3$
|
|
24091
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
24092
|
+
vue.createElementVNode("div", _hoisted_2$t, [
|
|
24093
|
+
vue.createElementVNode("label", _hoisted_3$m, vue.toDisplayString(label.value), 1),
|
|
24051
24094
|
vue.createElementVNode("select", {
|
|
24052
24095
|
class: "lupa-select-dropdown",
|
|
24053
24096
|
"aria-label": label.value,
|
|
@@ -24060,23 +24103,23 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
24060
24103
|
return vue.openBlock(), vue.createElementBlock("option", {
|
|
24061
24104
|
key: option,
|
|
24062
24105
|
value: option
|
|
24063
|
-
}, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$
|
|
24106
|
+
}, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$b);
|
|
24064
24107
|
}), 128))
|
|
24065
|
-
], 40, _hoisted_4$
|
|
24108
|
+
], 40, _hoisted_4$f)
|
|
24066
24109
|
])
|
|
24067
24110
|
]);
|
|
24068
24111
|
};
|
|
24069
24112
|
}
|
|
24070
24113
|
});
|
|
24071
|
-
const _hoisted_1$
|
|
24114
|
+
const _hoisted_1$A = {
|
|
24072
24115
|
id: "lupa-search-results-sort",
|
|
24073
24116
|
class: "lupa-search-results-sort"
|
|
24074
24117
|
};
|
|
24075
|
-
const _hoisted_2$
|
|
24076
|
-
const _hoisted_3$
|
|
24077
|
-
const _hoisted_4$
|
|
24078
|
-
const _hoisted_5$
|
|
24079
|
-
const _sfc_main$
|
|
24118
|
+
const _hoisted_2$s = { id: "lupa-select" };
|
|
24119
|
+
const _hoisted_3$l = { class: "lupa-select-label" };
|
|
24120
|
+
const _hoisted_4$e = ["aria-label"];
|
|
24121
|
+
const _hoisted_5$a = ["value"];
|
|
24122
|
+
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
24080
24123
|
__name: "SearchResultsSort",
|
|
24081
24124
|
props: {
|
|
24082
24125
|
options: {},
|
|
@@ -24125,9 +24168,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
24125
24168
|
previousKey.value = selectedKey.value;
|
|
24126
24169
|
};
|
|
24127
24170
|
return (_ctx, _cache) => {
|
|
24128
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
24129
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
24130
|
-
vue.createElementVNode("label", _hoisted_3$
|
|
24171
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
24172
|
+
vue.createElementVNode("div", _hoisted_2$s, [
|
|
24173
|
+
vue.createElementVNode("label", _hoisted_3$l, vue.toDisplayString(_ctx.options.label), 1),
|
|
24131
24174
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
24132
24175
|
class: "lupa-select-dropdown",
|
|
24133
24176
|
"aria-label": _ctx.options.label,
|
|
@@ -24140,9 +24183,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
24140
24183
|
return vue.openBlock(), vue.createElementBlock("option", {
|
|
24141
24184
|
key: option.key,
|
|
24142
24185
|
value: option.key
|
|
24143
|
-
}, vue.toDisplayString(option.label), 9, _hoisted_5$
|
|
24186
|
+
}, vue.toDisplayString(option.label), 9, _hoisted_5$a);
|
|
24144
24187
|
}), 128))
|
|
24145
|
-
], 40, _hoisted_4$
|
|
24188
|
+
], 40, _hoisted_4$e), [
|
|
24146
24189
|
[vue.vModelSelect, selectedKey.value]
|
|
24147
24190
|
])
|
|
24148
24191
|
])
|
|
@@ -24150,14 +24193,14 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
24150
24193
|
};
|
|
24151
24194
|
}
|
|
24152
24195
|
});
|
|
24153
|
-
const _hoisted_1$
|
|
24154
|
-
const _hoisted_2$
|
|
24196
|
+
const _hoisted_1$z = { class: "lupa-toolbar-left" };
|
|
24197
|
+
const _hoisted_2$r = {
|
|
24155
24198
|
key: 0,
|
|
24156
24199
|
class: "lupa-toolbar-right-title"
|
|
24157
24200
|
};
|
|
24158
|
-
const _hoisted_3$
|
|
24159
|
-
const _hoisted_4$
|
|
24160
|
-
const _hoisted_5$
|
|
24201
|
+
const _hoisted_3$k = { key: 2 };
|
|
24202
|
+
const _hoisted_4$d = { key: 4 };
|
|
24203
|
+
const _hoisted_5$9 = { key: 6 };
|
|
24161
24204
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
24162
24205
|
const _hoisted_7$3 = {
|
|
24163
24206
|
key: 0,
|
|
@@ -24165,7 +24208,7 @@ const _hoisted_7$3 = {
|
|
|
24165
24208
|
};
|
|
24166
24209
|
const _hoisted_8 = { key: 2 };
|
|
24167
24210
|
const _hoisted_9 = { key: 4 };
|
|
24168
|
-
const _sfc_main$
|
|
24211
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
24169
24212
|
__name: "SearchResultsToolbar",
|
|
24170
24213
|
props: {
|
|
24171
24214
|
options: {},
|
|
@@ -24276,39 +24319,39 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
24276
24319
|
id: "lupa-search-results-toolbar",
|
|
24277
24320
|
class: vue.normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
24278
24321
|
}, [
|
|
24279
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
24280
|
-
toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
24281
|
-
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
24282
|
-
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
24322
|
+
vue.createElementVNode("div", _hoisted_1$z, [
|
|
24323
|
+
toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$r, vue.toDisplayString(toolbarLeftLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
24324
|
+
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$K, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$k)),
|
|
24325
|
+
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$10, {
|
|
24283
24326
|
key: 3,
|
|
24284
24327
|
label: searchSummaryLabel.value,
|
|
24285
24328
|
clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
|
|
24286
24329
|
onClear: handleClearAll
|
|
24287
|
-
}, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
24288
|
-
displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
24330
|
+
}, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d)),
|
|
24331
|
+
displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
|
|
24289
24332
|
key: 5,
|
|
24290
24333
|
options: paginationOptions.value.pageSelect,
|
|
24291
24334
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
24292
24335
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
24293
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
24336
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$9))
|
|
24294
24337
|
]),
|
|
24295
24338
|
vue.createElementVNode("div", _hoisted_6$5, [
|
|
24296
24339
|
toolbarRightLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, vue.toDisplayString(toolbarRightLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
24297
|
-
vue.createVNode(_sfc_main$
|
|
24340
|
+
vue.createVNode(_sfc_main$J, {
|
|
24298
24341
|
labels: optionsValue.value.labels,
|
|
24299
24342
|
"show-filter-count": showMobileFilterCount.value
|
|
24300
24343
|
}, null, 8, ["labels", "show-filter-count"]),
|
|
24301
|
-
paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
24344
|
+
paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
|
|
24302
24345
|
key: 1,
|
|
24303
24346
|
options: paginationOptions.value.pageSize,
|
|
24304
24347
|
labels: paginationOptions.value.labels
|
|
24305
24348
|
}, null, 8, ["options", "labels"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8)),
|
|
24306
|
-
sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
24349
|
+
sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
24307
24350
|
key: 3,
|
|
24308
24351
|
options: sortOptions.value,
|
|
24309
24352
|
callbacks: callbacks.value
|
|
24310
24353
|
}, null, 8, ["options", "callbacks"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9)),
|
|
24311
|
-
showFiltersCloseButton.value && vue.unref(isMobileSidebarVisible) ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
24354
|
+
showFiltersCloseButton.value && vue.unref(isMobileSidebarVisible) ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
24312
24355
|
key: 5,
|
|
24313
24356
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
24314
24357
|
}, null, 8, ["label"])) : vue.createCommentVNode("", true)
|
|
@@ -24317,7 +24360,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
24317
24360
|
};
|
|
24318
24361
|
}
|
|
24319
24362
|
});
|
|
24320
|
-
const _sfc_main$
|
|
24363
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
24321
24364
|
__name: "SearchResultsProductImage",
|
|
24322
24365
|
props: {
|
|
24323
24366
|
item: {},
|
|
@@ -24325,7 +24368,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
24325
24368
|
},
|
|
24326
24369
|
setup(__props) {
|
|
24327
24370
|
return (_ctx, _cache) => {
|
|
24328
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
24371
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
24329
24372
|
item: _ctx.item,
|
|
24330
24373
|
options: _ctx.options,
|
|
24331
24374
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -24334,16 +24377,16 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
24334
24377
|
};
|
|
24335
24378
|
}
|
|
24336
24379
|
});
|
|
24337
|
-
const _hoisted_1$
|
|
24338
|
-
const _hoisted_2$
|
|
24339
|
-
const _hoisted_3$
|
|
24340
|
-
const _hoisted_4$
|
|
24341
|
-
const _hoisted_5$
|
|
24380
|
+
const _hoisted_1$y = ["title", "innerHTML"];
|
|
24381
|
+
const _hoisted_2$q = ["title"];
|
|
24382
|
+
const _hoisted_3$j = ["href", "innerHTML"];
|
|
24383
|
+
const _hoisted_4$c = ["title"];
|
|
24384
|
+
const _hoisted_5$8 = {
|
|
24342
24385
|
key: 0,
|
|
24343
24386
|
class: "lupa-search-results-product-title-text"
|
|
24344
24387
|
};
|
|
24345
24388
|
const _hoisted_6$4 = ["href"];
|
|
24346
|
-
const _sfc_main$
|
|
24389
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
24347
24390
|
__name: "SearchResultsProductTitle",
|
|
24348
24391
|
props: {
|
|
24349
24392
|
item: {},
|
|
@@ -24380,7 +24423,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
24380
24423
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
24381
24424
|
title: sanitizedTitle.value,
|
|
24382
24425
|
innerHTML: sanitizedTitle.value
|
|
24383
|
-
}, null, 12, _hoisted_1$
|
|
24426
|
+
}, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
24384
24427
|
key: 1,
|
|
24385
24428
|
class: "lupa-search-results-product-title",
|
|
24386
24429
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -24391,26 +24434,26 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
24391
24434
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
24392
24435
|
innerHTML: sanitizedTitle.value,
|
|
24393
24436
|
onClick: handleNavigation
|
|
24394
|
-
}, null, 8, _hoisted_3$
|
|
24395
|
-
], 12, _hoisted_2$
|
|
24437
|
+
}, null, 8, _hoisted_3$j)
|
|
24438
|
+
], 12, _hoisted_2$q)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
24396
24439
|
key: 2,
|
|
24397
24440
|
class: "lupa-search-results-product-title",
|
|
24398
24441
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
24399
24442
|
title: title.value
|
|
24400
24443
|
}, [
|
|
24401
|
-
!_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
24444
|
+
!_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$8, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
|
|
24402
24445
|
_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
24403
24446
|
key: 1,
|
|
24404
24447
|
href: _ctx.link,
|
|
24405
24448
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
24406
24449
|
onClick: handleNavigation
|
|
24407
24450
|
}, vue.toDisplayString(title.value), 9, _hoisted_6$4)) : vue.createCommentVNode("", true)
|
|
24408
|
-
], 12, _hoisted_4$
|
|
24451
|
+
], 12, _hoisted_4$c));
|
|
24409
24452
|
};
|
|
24410
24453
|
}
|
|
24411
24454
|
});
|
|
24412
|
-
const _hoisted_1$
|
|
24413
|
-
const _sfc_main$
|
|
24455
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
24456
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
24414
24457
|
__name: "SearchResultsProductDescription",
|
|
24415
24458
|
props: {
|
|
24416
24459
|
item: {},
|
|
@@ -24437,7 +24480,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
24437
24480
|
class: "lupa-search-results-product-description",
|
|
24438
24481
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
24439
24482
|
innerHTML: sanitizedDescription.value
|
|
24440
|
-
}, null, 12, _hoisted_1$
|
|
24483
|
+
}, null, 12, _hoisted_1$x)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
24441
24484
|
key: 1,
|
|
24442
24485
|
class: "lupa-search-results-product-description",
|
|
24443
24486
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -24445,15 +24488,15 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
24445
24488
|
};
|
|
24446
24489
|
}
|
|
24447
24490
|
});
|
|
24448
|
-
const _hoisted_1$
|
|
24449
|
-
const _hoisted_2$
|
|
24450
|
-
const _hoisted_3$
|
|
24451
|
-
const _hoisted_4$
|
|
24452
|
-
const _hoisted_5$
|
|
24491
|
+
const _hoisted_1$w = { id: "lupa-search-results-rating" };
|
|
24492
|
+
const _hoisted_2$p = { class: "lupa-ratings" };
|
|
24493
|
+
const _hoisted_3$i = { class: "lupa-ratings-base" };
|
|
24494
|
+
const _hoisted_4$b = ["innerHTML"];
|
|
24495
|
+
const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
24453
24496
|
const _hoisted_6$3 = ["innerHTML"];
|
|
24454
24497
|
const _hoisted_7$2 = ["href"];
|
|
24455
24498
|
const STAR_COUNT = 5;
|
|
24456
|
-
const _sfc_main$
|
|
24499
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
24457
24500
|
__name: "SearchResultsProductRating",
|
|
24458
24501
|
props: {
|
|
24459
24502
|
item: {},
|
|
@@ -24490,18 +24533,18 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
24490
24533
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
24491
24534
|
});
|
|
24492
24535
|
return (_ctx, _cache) => {
|
|
24493
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
24494
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
24495
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
24536
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
|
|
24537
|
+
vue.createElementVNode("div", _hoisted_2$p, [
|
|
24538
|
+
vue.createElementVNode("div", _hoisted_3$i, [
|
|
24496
24539
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
|
|
24497
24540
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
24498
24541
|
key: index,
|
|
24499
24542
|
innerHTML: star,
|
|
24500
24543
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
24501
|
-
}, null, 8, _hoisted_4$
|
|
24544
|
+
}, null, 8, _hoisted_4$b);
|
|
24502
24545
|
}), 128))
|
|
24503
24546
|
]),
|
|
24504
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
24547
|
+
vue.createElementVNode("div", _hoisted_5$7, [
|
|
24505
24548
|
vue.createElementVNode("div", {
|
|
24506
24549
|
class: "lupa-ratings-highlighted",
|
|
24507
24550
|
style: vue.normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -24524,11 +24567,11 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
24524
24567
|
};
|
|
24525
24568
|
}
|
|
24526
24569
|
});
|
|
24527
|
-
const _hoisted_1$
|
|
24570
|
+
const _hoisted_1$v = {
|
|
24528
24571
|
class: "lupa-search-results-product-regular-price",
|
|
24529
24572
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
24530
24573
|
};
|
|
24531
|
-
const _sfc_main$
|
|
24574
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
24532
24575
|
__name: "SearchResultsProductRegularPrice",
|
|
24533
24576
|
props: {
|
|
24534
24577
|
item: {},
|
|
@@ -24547,11 +24590,11 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
24547
24590
|
);
|
|
24548
24591
|
});
|
|
24549
24592
|
return (_ctx, _cache) => {
|
|
24550
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
24593
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, vue.toDisplayString(price.value), 1);
|
|
24551
24594
|
};
|
|
24552
24595
|
}
|
|
24553
24596
|
});
|
|
24554
|
-
const _sfc_main$
|
|
24597
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
24555
24598
|
__name: "SearchResultsProductPrice",
|
|
24556
24599
|
props: {
|
|
24557
24600
|
item: {},
|
|
@@ -24582,12 +24625,12 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
24582
24625
|
};
|
|
24583
24626
|
}
|
|
24584
24627
|
});
|
|
24585
|
-
const _hoisted_1$
|
|
24586
|
-
const _hoisted_2$
|
|
24587
|
-
const _hoisted_3$
|
|
24588
|
-
const _hoisted_4$
|
|
24589
|
-
const _hoisted_5$
|
|
24590
|
-
const _sfc_main$
|
|
24628
|
+
const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
24629
|
+
const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
|
|
24630
|
+
const _hoisted_3$h = ["disabled"];
|
|
24631
|
+
const _hoisted_4$a = ["href"];
|
|
24632
|
+
const _hoisted_5$6 = ["id", "disabled", "onClick"];
|
|
24633
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
24591
24634
|
__name: "SearchResultsProductAddToCart",
|
|
24592
24635
|
props: {
|
|
24593
24636
|
item: {},
|
|
@@ -24630,16 +24673,16 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
24630
24673
|
return Boolean(props.link && props.options.link);
|
|
24631
24674
|
});
|
|
24632
24675
|
return (_ctx, _cache) => {
|
|
24633
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
24634
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
24676
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
|
|
24677
|
+
vue.createElementVNode("div", _hoisted_2$o, [
|
|
24635
24678
|
hasLink.value ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
24636
24679
|
key: 0,
|
|
24637
24680
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
24638
24681
|
"data-cy": "lupa-add-to-cart",
|
|
24639
24682
|
disabled: !inStockValue.value || loading.value
|
|
24640
24683
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
24641
|
-
vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$
|
|
24642
|
-
], 16, _hoisted_3$
|
|
24684
|
+
vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$a)
|
|
24685
|
+
], 16, _hoisted_3$h)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
24643
24686
|
key: 1,
|
|
24644
24687
|
id: id.value,
|
|
24645
24688
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
@@ -24647,18 +24690,18 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
24647
24690
|
disabled: !inStockValue.value || loading.value
|
|
24648
24691
|
}, _ctx.dynamicAttributes, {
|
|
24649
24692
|
onClick: vue.withModifiers(handleClick, ["stop"])
|
|
24650
|
-
}), vue.toDisplayString(label.value), 17, _hoisted_5$
|
|
24693
|
+
}), vue.toDisplayString(label.value), 17, _hoisted_5$6))
|
|
24651
24694
|
])
|
|
24652
24695
|
]);
|
|
24653
24696
|
};
|
|
24654
24697
|
}
|
|
24655
24698
|
});
|
|
24656
|
-
const _hoisted_1$
|
|
24657
|
-
const _hoisted_2$
|
|
24658
|
-
const _hoisted_3$
|
|
24659
|
-
const _hoisted_4$
|
|
24660
|
-
const _hoisted_5$
|
|
24661
|
-
const _sfc_main$
|
|
24699
|
+
const _hoisted_1$t = ["innerHTML"];
|
|
24700
|
+
const _hoisted_2$n = { key: 0 };
|
|
24701
|
+
const _hoisted_3$g = { key: 1 };
|
|
24702
|
+
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
24703
|
+
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
24704
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
24662
24705
|
__name: "SearchResultsProductCustom",
|
|
24663
24706
|
props: {
|
|
24664
24707
|
item: {},
|
|
@@ -24696,20 +24739,20 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
24696
24739
|
key: 0,
|
|
24697
24740
|
class: className.value,
|
|
24698
24741
|
innerHTML: text.value
|
|
24699
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24742
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
24700
24743
|
key: 1,
|
|
24701
24744
|
class: className.value
|
|
24702
24745
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24703
|
-
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
24704
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
24705
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
24746
|
+
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$n, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g, [
|
|
24747
|
+
vue.createElementVNode("div", _hoisted_4$9, vue.toDisplayString(label.value), 1),
|
|
24748
|
+
vue.createElementVNode("div", _hoisted_5$5, vue.toDisplayString(text.value), 1)
|
|
24706
24749
|
]))
|
|
24707
24750
|
], 16));
|
|
24708
24751
|
};
|
|
24709
24752
|
}
|
|
24710
24753
|
});
|
|
24711
|
-
const _hoisted_1$
|
|
24712
|
-
const _sfc_main$
|
|
24754
|
+
const _hoisted_1$s = ["innerHTML"];
|
|
24755
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
24713
24756
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
24714
24757
|
props: {
|
|
24715
24758
|
item: {},
|
|
@@ -24740,15 +24783,15 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
24740
24783
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
24741
24784
|
class: className.value,
|
|
24742
24785
|
innerHTML: text.value
|
|
24743
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24786
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
|
|
24744
24787
|
};
|
|
24745
24788
|
}
|
|
24746
24789
|
});
|
|
24747
|
-
const _hoisted_1$
|
|
24748
|
-
const _hoisted_2$
|
|
24749
|
-
const _hoisted_3$
|
|
24750
|
-
const _hoisted_4$
|
|
24751
|
-
const _sfc_main$
|
|
24790
|
+
const _hoisted_1$r = { id: "lupa-search-results-rating" };
|
|
24791
|
+
const _hoisted_2$m = ["innerHTML"];
|
|
24792
|
+
const _hoisted_3$f = { class: "lupa-ratings" };
|
|
24793
|
+
const _hoisted_4$8 = ["href"];
|
|
24794
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
24752
24795
|
__name: "SearchResultsProductSingleStarRating",
|
|
24753
24796
|
props: {
|
|
24754
24797
|
item: {},
|
|
@@ -24776,35 +24819,35 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
24776
24819
|
return RATING_STAR_HTML;
|
|
24777
24820
|
});
|
|
24778
24821
|
return (_ctx, _cache) => {
|
|
24779
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
24822
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
|
|
24780
24823
|
vue.createElementVNode("div", {
|
|
24781
24824
|
innerHTML: star.value,
|
|
24782
24825
|
class: "lupa-rating lupa-rating-highlighted"
|
|
24783
|
-
}, null, 8, _hoisted_2$
|
|
24784
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
24826
|
+
}, null, 8, _hoisted_2$m),
|
|
24827
|
+
vue.createElementVNode("div", _hoisted_3$f, vue.toDisplayString(rating.value), 1),
|
|
24785
24828
|
vue.createElementVNode("a", {
|
|
24786
24829
|
href: ratingLink.value,
|
|
24787
24830
|
class: "lupa-total-ratings"
|
|
24788
|
-
}, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
24831
|
+
}, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$8)
|
|
24789
24832
|
]);
|
|
24790
24833
|
};
|
|
24791
24834
|
}
|
|
24792
24835
|
});
|
|
24793
24836
|
const __default__ = {
|
|
24794
24837
|
components: {
|
|
24795
|
-
SearchResultsProductImage: _sfc_main$
|
|
24796
|
-
SearchResultsProductTitle: _sfc_main$
|
|
24797
|
-
SearchResultsProductDescription: _sfc_main$
|
|
24798
|
-
SearchResultsProductRating: _sfc_main$
|
|
24799
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
24800
|
-
SearchResultsProductPrice: _sfc_main$
|
|
24801
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
24802
|
-
SearchResultsProductCustom: _sfc_main$
|
|
24803
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
24804
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
24805
|
-
}
|
|
24806
|
-
};
|
|
24807
|
-
const _sfc_main$
|
|
24838
|
+
SearchResultsProductImage: _sfc_main$D,
|
|
24839
|
+
SearchResultsProductTitle: _sfc_main$C,
|
|
24840
|
+
SearchResultsProductDescription: _sfc_main$B,
|
|
24841
|
+
SearchResultsProductRating: _sfc_main$A,
|
|
24842
|
+
SearchResultsProductRegularPrice: _sfc_main$z,
|
|
24843
|
+
SearchResultsProductPrice: _sfc_main$y,
|
|
24844
|
+
SearchResultsProductAddToCart: _sfc_main$x,
|
|
24845
|
+
SearchResultsProductCustom: _sfc_main$w,
|
|
24846
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$v,
|
|
24847
|
+
SearchResultsProductSingleStarRating: _sfc_main$u
|
|
24848
|
+
}
|
|
24849
|
+
};
|
|
24850
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
24808
24851
|
__name: "SearchResultsProductCardElement",
|
|
24809
24852
|
props: {
|
|
24810
24853
|
item: {},
|
|
@@ -24886,14 +24929,14 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
24886
24929
|
};
|
|
24887
24930
|
}
|
|
24888
24931
|
}));
|
|
24889
|
-
const _hoisted_1$
|
|
24890
|
-
const _hoisted_2$
|
|
24891
|
-
const _hoisted_3$
|
|
24932
|
+
const _hoisted_1$q = ["onMouseup"];
|
|
24933
|
+
const _hoisted_2$l = ["href"];
|
|
24934
|
+
const _hoisted_3$e = {
|
|
24892
24935
|
key: 0,
|
|
24893
24936
|
class: "lupa-out-of-stock"
|
|
24894
24937
|
};
|
|
24895
|
-
const _hoisted_4$
|
|
24896
|
-
const _sfc_main$
|
|
24938
|
+
const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
|
|
24939
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
24897
24940
|
__name: "SearchResultsProductCard",
|
|
24898
24941
|
props: {
|
|
24899
24942
|
product: {},
|
|
@@ -25058,7 +25101,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
25058
25101
|
onClick: handleClick,
|
|
25059
25102
|
onMouseup: vue.withModifiers(handleClick, ["middle", "exact"])
|
|
25060
25103
|
}), [
|
|
25061
|
-
vue.createVNode(_sfc_main$
|
|
25104
|
+
vue.createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
25062
25105
|
vue.createElementVNode("div", {
|
|
25063
25106
|
class: vue.normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
25064
25107
|
}, [
|
|
@@ -25068,7 +25111,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
25068
25111
|
onClick: handleNavigation
|
|
25069
25112
|
}, [
|
|
25070
25113
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
|
|
25071
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25114
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
25072
25115
|
class: "lupa-search-results-product-element",
|
|
25073
25116
|
item: _ctx.product,
|
|
25074
25117
|
element,
|
|
@@ -25079,16 +25122,16 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
25079
25122
|
onProductEvent: handleProductEvent
|
|
25080
25123
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
25081
25124
|
}), 128)),
|
|
25082
|
-
vue.createVNode(_sfc_main$
|
|
25125
|
+
vue.createVNode(_sfc_main$19, {
|
|
25083
25126
|
options: badgesOptions.value,
|
|
25084
25127
|
position: "image",
|
|
25085
25128
|
class: "lupa-image-badges"
|
|
25086
25129
|
}, null, 8, ["options"]),
|
|
25087
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
25088
|
-
], 8, _hoisted_2$
|
|
25089
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
25130
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
|
|
25131
|
+
], 8, _hoisted_2$l),
|
|
25132
|
+
vue.createElementVNode("div", _hoisted_4$7, [
|
|
25090
25133
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
|
|
25091
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25134
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
25092
25135
|
class: "lupa-search-results-product-element",
|
|
25093
25136
|
item: _ctx.product,
|
|
25094
25137
|
element,
|
|
@@ -25106,7 +25149,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
25106
25149
|
class: vue.normalizeClass("lupa-element-group-" + group)
|
|
25107
25150
|
}, [
|
|
25108
25151
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getGroupElements(group), (element) => {
|
|
25109
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25152
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
25110
25153
|
class: "lupa-search-results-product-element",
|
|
25111
25154
|
item: _ctx.product,
|
|
25112
25155
|
element,
|
|
@@ -25120,27 +25163,27 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
25120
25163
|
], 2);
|
|
25121
25164
|
}), 128))
|
|
25122
25165
|
], 2)
|
|
25123
|
-
], 16, _hoisted_1$
|
|
25166
|
+
], 16, _hoisted_1$q);
|
|
25124
25167
|
};
|
|
25125
25168
|
}
|
|
25126
25169
|
});
|
|
25127
|
-
const _hoisted_1$
|
|
25170
|
+
const _hoisted_1$p = {
|
|
25128
25171
|
id: "lupa-search-results-similar-queries",
|
|
25129
25172
|
"data-cy": "lupa-search-results-similar-queries"
|
|
25130
25173
|
};
|
|
25131
|
-
const _hoisted_2$
|
|
25132
|
-
const _hoisted_3$
|
|
25174
|
+
const _hoisted_2$k = { class: "lupa-similar-queries-label" };
|
|
25175
|
+
const _hoisted_3$d = {
|
|
25133
25176
|
class: "lupa-similar-query-label",
|
|
25134
25177
|
"data-cy": "lupa-similar-query-label"
|
|
25135
25178
|
};
|
|
25136
|
-
const _hoisted_4$
|
|
25137
|
-
const _hoisted_5$
|
|
25179
|
+
const _hoisted_4$6 = ["onClick"];
|
|
25180
|
+
const _hoisted_5$4 = ["innerHTML"];
|
|
25138
25181
|
const _hoisted_6$2 = { key: 0 };
|
|
25139
25182
|
const _hoisted_7$1 = {
|
|
25140
25183
|
class: "lupa-products",
|
|
25141
25184
|
"data-cy": "lupa-products"
|
|
25142
25185
|
};
|
|
25143
|
-
const _sfc_main$
|
|
25186
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
25144
25187
|
__name: "SearchResultsSimilarQueries",
|
|
25145
25188
|
props: {
|
|
25146
25189
|
labels: {},
|
|
@@ -25178,11 +25221,11 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
25178
25221
|
};
|
|
25179
25222
|
};
|
|
25180
25223
|
return (_ctx, _cache) => {
|
|
25181
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25182
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
25224
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
|
|
25225
|
+
vue.createElementVNode("div", _hoisted_2$k, vue.toDisplayString(_ctx.labels.similarQueries), 1),
|
|
25183
25226
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQueries.value, (similarQuery, index) => {
|
|
25184
25227
|
return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
|
|
25185
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
25228
|
+
vue.createElementVNode("div", _hoisted_3$d, [
|
|
25186
25229
|
vue.createElementVNode("span", null, vue.toDisplayString(similarQueryLabel.value), 1),
|
|
25187
25230
|
vue.createElementVNode("span", {
|
|
25188
25231
|
id: "lupa-similar-query-text-component",
|
|
@@ -25192,13 +25235,13 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
25192
25235
|
}, [
|
|
25193
25236
|
vue.createElementVNode("span", {
|
|
25194
25237
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
25195
|
-
}, null, 8, _hoisted_5$
|
|
25238
|
+
}, null, 8, _hoisted_5$4),
|
|
25196
25239
|
similarQuery.count ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$2, " (" + vue.toDisplayString(similarQuery.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
25197
|
-
], 8, _hoisted_4$
|
|
25240
|
+
], 8, _hoisted_4$6)
|
|
25198
25241
|
]),
|
|
25199
25242
|
vue.createElementVNode("div", _hoisted_7$1, [
|
|
25200
25243
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQuery.items, (product, index2) => {
|
|
25201
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25244
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
25202
25245
|
style: vue.normalizeStyle(_ctx.columnSize),
|
|
25203
25246
|
key: getDocumentKey(index2, product),
|
|
25204
25247
|
product,
|
|
@@ -25213,15 +25256,15 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
25213
25256
|
};
|
|
25214
25257
|
}
|
|
25215
25258
|
});
|
|
25216
|
-
const _hoisted_1$
|
|
25259
|
+
const _hoisted_1$o = {
|
|
25217
25260
|
key: 0,
|
|
25218
25261
|
class: "lupa-results-additional-panel"
|
|
25219
25262
|
};
|
|
25220
|
-
const _hoisted_2$
|
|
25263
|
+
const _hoisted_2$j = {
|
|
25221
25264
|
class: "lupa-results-additional-panel-items",
|
|
25222
25265
|
"data-cy": "lupa-results-additional-panel-items"
|
|
25223
25266
|
};
|
|
25224
|
-
const _sfc_main$
|
|
25267
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
25225
25268
|
__name: "AdditionalPanel",
|
|
25226
25269
|
props: {
|
|
25227
25270
|
panel: {},
|
|
@@ -25294,10 +25337,10 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
25294
25337
|
handleQueryChange();
|
|
25295
25338
|
});
|
|
25296
25339
|
return (_ctx, _cache) => {
|
|
25297
|
-
return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25298
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
25340
|
+
return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
|
|
25341
|
+
vue.createElementVNode("div", _hoisted_2$j, [
|
|
25299
25342
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleItems.value, (item, index) => {
|
|
25300
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25343
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
25301
25344
|
key: index,
|
|
25302
25345
|
product: item,
|
|
25303
25346
|
options: _ctx.panel,
|
|
@@ -25315,11 +25358,11 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
25315
25358
|
};
|
|
25316
25359
|
}
|
|
25317
25360
|
});
|
|
25318
|
-
const _hoisted_1$
|
|
25361
|
+
const _hoisted_1$n = {
|
|
25319
25362
|
key: 0,
|
|
25320
25363
|
class: "lupa-results-additional-panels"
|
|
25321
25364
|
};
|
|
25322
|
-
const _sfc_main$
|
|
25365
|
+
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
25323
25366
|
__name: "AdditionalPanels",
|
|
25324
25367
|
props: {
|
|
25325
25368
|
options: {},
|
|
@@ -25336,9 +25379,9 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
25336
25379
|
return locationPanels.value.length > 0;
|
|
25337
25380
|
});
|
|
25338
25381
|
return (_ctx, _cache) => {
|
|
25339
|
-
return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25382
|
+
return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
25340
25383
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(locationPanels.value, (panel) => {
|
|
25341
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25384
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$q, {
|
|
25342
25385
|
key: panel.queryKey,
|
|
25343
25386
|
panel,
|
|
25344
25387
|
options: _ctx.sdkOptions
|
|
@@ -25355,29 +25398,29 @@ const _export_sfc = (sfc, props) => {
|
|
|
25355
25398
|
}
|
|
25356
25399
|
return target;
|
|
25357
25400
|
};
|
|
25358
|
-
const _sfc_main$
|
|
25359
|
-
const _hoisted_1$
|
|
25360
|
-
const _hoisted_2$
|
|
25401
|
+
const _sfc_main$o = {};
|
|
25402
|
+
const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
|
|
25403
|
+
const _hoisted_2$i = { class: "lupa-spinner" };
|
|
25361
25404
|
function _sfc_render(_ctx, _cache) {
|
|
25362
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25363
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
25405
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
|
|
25406
|
+
vue.createElementVNode("div", _hoisted_2$i, [
|
|
25364
25407
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(12, (x2) => {
|
|
25365
25408
|
return vue.createElementVNode("div", { key: x2 });
|
|
25366
25409
|
}), 64))
|
|
25367
25410
|
])
|
|
25368
25411
|
]);
|
|
25369
25412
|
}
|
|
25370
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25371
|
-
const _hoisted_1$
|
|
25413
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
|
|
25414
|
+
const _hoisted_1$l = {
|
|
25372
25415
|
id: "lupa-search-results-similar-results",
|
|
25373
25416
|
"data-cy": "lupa-search-results-similar-results"
|
|
25374
25417
|
};
|
|
25375
|
-
const _hoisted_2$
|
|
25376
|
-
const _hoisted_3$
|
|
25418
|
+
const _hoisted_2$h = { class: "lupa-similar-results-label" };
|
|
25419
|
+
const _hoisted_3$c = {
|
|
25377
25420
|
class: "lupa-products",
|
|
25378
25421
|
"data-cy": "lupa-products"
|
|
25379
25422
|
};
|
|
25380
|
-
const _sfc_main$
|
|
25423
|
+
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
25381
25424
|
__name: "SearchResultsSimilarResults",
|
|
25382
25425
|
props: {
|
|
25383
25426
|
columnSize: {},
|
|
@@ -25398,11 +25441,11 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
25398
25441
|
};
|
|
25399
25442
|
});
|
|
25400
25443
|
return (_ctx, _cache) => {
|
|
25401
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25402
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
25403
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
25444
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
|
|
25445
|
+
vue.createElementVNode("div", _hoisted_2$h, vue.toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
25446
|
+
vue.createElementVNode("div", _hoisted_3$c, [
|
|
25404
25447
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarResults.value.items, (product, index) => {
|
|
25405
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25448
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
25406
25449
|
style: vue.normalizeStyle(_ctx.columnSize),
|
|
25407
25450
|
key: getDocumentKey(index, product),
|
|
25408
25451
|
product,
|
|
@@ -25515,20 +25558,23 @@ const extractFacetsRelatedSourceFromOriginalQuery = (source, searchResults) => _
|
|
|
25515
25558
|
return [];
|
|
25516
25559
|
});
|
|
25517
25560
|
const extractRelatedSource = (source, searchResults, options, activeFilters) => __async(exports, null, function* () {
|
|
25561
|
+
if (!source) {
|
|
25562
|
+
return [];
|
|
25563
|
+
}
|
|
25518
25564
|
switch (source.type) {
|
|
25519
25565
|
case RelatedQuerySourceType.FACETS:
|
|
25520
25566
|
return extractFacetsRelatedSource(source, searchResults, options, activeFilters);
|
|
25521
25567
|
}
|
|
25522
25568
|
});
|
|
25523
|
-
const _hoisted_1$
|
|
25524
|
-
const _hoisted_2$
|
|
25525
|
-
const _hoisted_3$
|
|
25526
|
-
const _hoisted_4$
|
|
25527
|
-
const _hoisted_5$
|
|
25569
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
25570
|
+
const _hoisted_2$g = { class: "lupa-related-query-image" };
|
|
25571
|
+
const _hoisted_3$b = { class: "lupa-related-query-label" };
|
|
25572
|
+
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
25573
|
+
const _hoisted_5$3 = {
|
|
25528
25574
|
key: 0,
|
|
25529
25575
|
class: "lupa-related-query-count"
|
|
25530
25576
|
};
|
|
25531
|
-
const _sfc_main$
|
|
25577
|
+
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
25532
25578
|
__name: "RelatedQueryPanel",
|
|
25533
25579
|
props: {
|
|
25534
25580
|
query: {},
|
|
@@ -25623,9 +25669,9 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
25623
25669
|
});
|
|
25624
25670
|
return (_ctx, _cache) => {
|
|
25625
25671
|
var _a;
|
|
25626
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25627
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
25628
|
-
itemToDisplay.value && image.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
25672
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
|
|
25673
|
+
vue.createElementVNode("div", _hoisted_2$g, [
|
|
25674
|
+
itemToDisplay.value && image.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
25629
25675
|
key: 0,
|
|
25630
25676
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
25631
25677
|
"image-class": "lupa-related-query-image",
|
|
@@ -25633,24 +25679,24 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
25633
25679
|
options: image.value
|
|
25634
25680
|
}, null, 8, ["item", "options"])) : vue.createCommentVNode("", true)
|
|
25635
25681
|
]),
|
|
25636
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
25637
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
25638
|
-
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
25682
|
+
vue.createElementVNode("div", _hoisted_3$b, [
|
|
25683
|
+
vue.createElementVNode("span", _hoisted_4$5, vue.toDisplayString(_ctx.query), 1),
|
|
25684
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$3, "(" + vue.toDisplayString(totalItemCount.value) + ")", 1)) : vue.createCommentVNode("", true)
|
|
25639
25685
|
])
|
|
25640
25686
|
]);
|
|
25641
25687
|
};
|
|
25642
25688
|
}
|
|
25643
25689
|
});
|
|
25644
|
-
const _hoisted_1$
|
|
25690
|
+
const _hoisted_1$j = {
|
|
25645
25691
|
key: 0,
|
|
25646
25692
|
class: "lupa-related-queries"
|
|
25647
25693
|
};
|
|
25648
|
-
const _hoisted_2$
|
|
25694
|
+
const _hoisted_2$f = {
|
|
25649
25695
|
key: 0,
|
|
25650
25696
|
class: "lupa-related-queries-title"
|
|
25651
25697
|
};
|
|
25652
|
-
const _hoisted_3$
|
|
25653
|
-
const _sfc_main$
|
|
25698
|
+
const _hoisted_3$a = ["onClick"];
|
|
25699
|
+
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
25654
25700
|
__name: "RelatedQueries",
|
|
25655
25701
|
props: {
|
|
25656
25702
|
options: {}
|
|
@@ -25662,7 +25708,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
25662
25708
|
const optionsStore = useOptionsStore();
|
|
25663
25709
|
const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
|
|
25664
25710
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
25665
|
-
const
|
|
25711
|
+
const relatedQueries2 = vue.ref([]);
|
|
25666
25712
|
const allDisplayItems = vue.ref({});
|
|
25667
25713
|
const querySourceResultMap = vue.ref({});
|
|
25668
25714
|
const currentSearchText = vue.computed(() => {
|
|
@@ -25685,27 +25731,31 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
25685
25731
|
}
|
|
25686
25732
|
return filters;
|
|
25687
25733
|
});
|
|
25688
|
-
vue.watch(
|
|
25689
|
-
|
|
25690
|
-
|
|
25691
|
-
|
|
25692
|
-
|
|
25693
|
-
|
|
25694
|
-
|
|
25695
|
-
|
|
25696
|
-
|
|
25697
|
-
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25734
|
+
vue.watch(
|
|
25735
|
+
searchResult,
|
|
25736
|
+
() => __async(this, null, function* () {
|
|
25737
|
+
var _a;
|
|
25738
|
+
allDisplayItems.value = {};
|
|
25739
|
+
querySourceResultMap.value = {};
|
|
25740
|
+
if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
|
|
25741
|
+
return;
|
|
25742
|
+
}
|
|
25743
|
+
if (!props.options || !searchResult.value) {
|
|
25744
|
+
relatedQueries2.value = [];
|
|
25745
|
+
}
|
|
25746
|
+
const queries = yield extractRelatedSource(
|
|
25747
|
+
props.options.source,
|
|
25748
|
+
searchResult.value,
|
|
25749
|
+
searchResultOptions.value.options,
|
|
25750
|
+
currentFiltersWithoutQuerySources.value
|
|
25751
|
+
);
|
|
25752
|
+
relatedQueries2.value = queries;
|
|
25753
|
+
}),
|
|
25754
|
+
{ immediate: true }
|
|
25755
|
+
);
|
|
25706
25756
|
const hasEnoughRelatedQueries = vue.computed(() => {
|
|
25707
25757
|
var _a;
|
|
25708
|
-
return ((_a =
|
|
25758
|
+
return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
|
|
25709
25759
|
});
|
|
25710
25760
|
const handleRelatedQueryClick = (query) => {
|
|
25711
25761
|
var _a;
|
|
@@ -25740,10 +25790,10 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
25740
25790
|
};
|
|
25741
25791
|
return (_ctx, _cache) => {
|
|
25742
25792
|
var _a, _b, _c, _d;
|
|
25743
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25744
|
-
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$
|
|
25793
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
|
|
25794
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$f, vue.toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
|
|
25745
25795
|
vue.createElementVNode("ul", null, [
|
|
25746
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
25796
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(relatedQueries2.value, (query) => {
|
|
25747
25797
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
|
|
25748
25798
|
key: query.value + query.key + currentSearchText.value,
|
|
25749
25799
|
class: vue.normalizeClass(getSelectedFilterClass(query))
|
|
@@ -25751,14 +25801,14 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
25751
25801
|
vue.createElementVNode("a", {
|
|
25752
25802
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
25753
25803
|
}, [
|
|
25754
|
-
vue.createVNode(_sfc_main$
|
|
25804
|
+
vue.createVNode(_sfc_main$m, {
|
|
25755
25805
|
"source-key": query.key,
|
|
25756
25806
|
options: _ctx.options,
|
|
25757
25807
|
query: query.value,
|
|
25758
25808
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
25759
25809
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
25760
25810
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
25761
|
-
], 8, _hoisted_3$
|
|
25811
|
+
], 8, _hoisted_3$a)
|
|
25762
25812
|
], 2)), [
|
|
25763
25813
|
[vue.vShow, querySourceResultMap.value[query.value] !== false]
|
|
25764
25814
|
]);
|
|
@@ -25795,13 +25845,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
|
25795
25845
|
}
|
|
25796
25846
|
return null;
|
|
25797
25847
|
};
|
|
25798
|
-
const _hoisted_1$
|
|
25848
|
+
const _hoisted_1$i = {
|
|
25799
25849
|
key: 0,
|
|
25800
25850
|
class: "lupa-redirection-suggestion"
|
|
25801
25851
|
};
|
|
25802
|
-
const _hoisted_2$
|
|
25803
|
-
const _hoisted_3$
|
|
25804
|
-
const _sfc_main$
|
|
25852
|
+
const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
|
|
25853
|
+
const _hoisted_3$9 = ["href"];
|
|
25854
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
25805
25855
|
__name: "RedirectionSuggestions",
|
|
25806
25856
|
props: {
|
|
25807
25857
|
options: {}
|
|
@@ -25824,19 +25874,19 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
25824
25874
|
)
|
|
25825
25875
|
);
|
|
25826
25876
|
return (_ctx, _cache) => {
|
|
25827
|
-
return redirectionSuggestion.value && label.value && link.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25828
|
-
vue.createElementVNode("h4", _hoisted_2$
|
|
25829
|
-
vue.createElementVNode("a", { href: link.value }, vue.toDisplayString(label.value), 9, _hoisted_3$
|
|
25877
|
+
return redirectionSuggestion.value && label.value && link.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
|
|
25878
|
+
vue.createElementVNode("h4", _hoisted_2$e, [
|
|
25879
|
+
vue.createElementVNode("a", { href: link.value }, vue.toDisplayString(label.value), 9, _hoisted_3$9)
|
|
25830
25880
|
])
|
|
25831
25881
|
])) : vue.createCommentVNode("", true);
|
|
25832
25882
|
};
|
|
25833
25883
|
}
|
|
25834
25884
|
});
|
|
25835
|
-
const _hoisted_1$
|
|
25885
|
+
const _hoisted_1$h = {
|
|
25836
25886
|
key: 0,
|
|
25837
25887
|
class: "lupa-refiners-loading-notice"
|
|
25838
25888
|
};
|
|
25839
|
-
const _sfc_main$
|
|
25889
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
25840
25890
|
__name: "RefinersLoadingNotice",
|
|
25841
25891
|
props: {
|
|
25842
25892
|
labels: {}
|
|
@@ -25847,13 +25897,153 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
25847
25897
|
const { loadingRefiners } = storeToRefs(searchResultStore);
|
|
25848
25898
|
const label = vue.computed(() => props.labels.refinersLoadingNotice);
|
|
25849
25899
|
return (_ctx, _cache) => {
|
|
25850
|
-
return label.value && vue.unref(loadingRefiners) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25900
|
+
return label.value && vue.unref(loadingRefiners) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
|
|
25851
25901
|
vue.createElementVNode("p", null, vue.toDisplayString(label.value), 1),
|
|
25852
25902
|
vue.createVNode(Spinner)
|
|
25853
25903
|
])) : vue.createCommentVNode("", true);
|
|
25854
25904
|
};
|
|
25855
25905
|
}
|
|
25856
25906
|
});
|
|
25907
|
+
const _hoisted_1$g = { class: "lupa-related-query-item" };
|
|
25908
|
+
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
25909
|
+
const _hoisted_3$8 = { class: "lupa-related-query-label" };
|
|
25910
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
25911
|
+
const _hoisted_5$2 = {
|
|
25912
|
+
key: 0,
|
|
25913
|
+
class: "lupa-related-query-count"
|
|
25914
|
+
};
|
|
25915
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
25916
|
+
__name: "RelatedQueryPanelApi",
|
|
25917
|
+
props: {
|
|
25918
|
+
relatedQuery: {},
|
|
25919
|
+
options: {}
|
|
25920
|
+
},
|
|
25921
|
+
setup(__props) {
|
|
25922
|
+
const props = __props;
|
|
25923
|
+
const itemToDisplay = vue.computed(() => {
|
|
25924
|
+
var _a;
|
|
25925
|
+
return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
|
|
25926
|
+
});
|
|
25927
|
+
const optionsStore = useOptionsStore();
|
|
25928
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
25929
|
+
const mainImage = vue.computed(() => {
|
|
25930
|
+
var _a, _b, _c;
|
|
25931
|
+
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
25932
|
+
});
|
|
25933
|
+
const image = vue.computed(() => {
|
|
25934
|
+
var _a, _b, _c;
|
|
25935
|
+
return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
|
|
25936
|
+
});
|
|
25937
|
+
const query = vue.computed(() => {
|
|
25938
|
+
var _a;
|
|
25939
|
+
return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
|
|
25940
|
+
});
|
|
25941
|
+
const totalItemCount = vue.computed(() => {
|
|
25942
|
+
var _a;
|
|
25943
|
+
return (_a = props.relatedQuery.total) != null ? _a : 0;
|
|
25944
|
+
});
|
|
25945
|
+
return (_ctx, _cache) => {
|
|
25946
|
+
var _a;
|
|
25947
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
|
|
25948
|
+
vue.createElementVNode("div", _hoisted_2$d, [
|
|
25949
|
+
itemToDisplay.value && image.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
|
|
25950
|
+
key: 0,
|
|
25951
|
+
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
25952
|
+
"image-class": "lupa-related-query-image",
|
|
25953
|
+
item: itemToDisplay.value,
|
|
25954
|
+
options: image.value
|
|
25955
|
+
}, null, 8, ["item", "options"])) : vue.createCommentVNode("", true)
|
|
25956
|
+
]),
|
|
25957
|
+
vue.createElementVNode("div", _hoisted_3$8, [
|
|
25958
|
+
vue.createElementVNode("span", _hoisted_4$4, vue.toDisplayString(query.value), 1),
|
|
25959
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$2, "(" + vue.toDisplayString(totalItemCount.value) + ")", 1)) : vue.createCommentVNode("", true)
|
|
25960
|
+
])
|
|
25961
|
+
]);
|
|
25962
|
+
};
|
|
25963
|
+
}
|
|
25964
|
+
});
|
|
25965
|
+
const _hoisted_1$f = {
|
|
25966
|
+
key: 0,
|
|
25967
|
+
class: "lupa-related-queries"
|
|
25968
|
+
};
|
|
25969
|
+
const _hoisted_2$c = {
|
|
25970
|
+
key: 0,
|
|
25971
|
+
class: "lupa-related-queries-title"
|
|
25972
|
+
};
|
|
25973
|
+
const _hoisted_3$7 = ["onClick"];
|
|
25974
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
25975
|
+
__name: "RelatedQueriesApi",
|
|
25976
|
+
props: {
|
|
25977
|
+
options: {}
|
|
25978
|
+
},
|
|
25979
|
+
setup(__props) {
|
|
25980
|
+
const searchResultStore = useSearchResultStore();
|
|
25981
|
+
const paramsStore = useParamsStore();
|
|
25982
|
+
const optionsStore = useOptionsStore();
|
|
25983
|
+
const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
|
|
25984
|
+
const relatedQueries2 = vue.computed(() => {
|
|
25985
|
+
var _a, _b;
|
|
25986
|
+
return (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
|
|
25987
|
+
});
|
|
25988
|
+
const currentSearchText = vue.computed(() => {
|
|
25989
|
+
var _a, _b;
|
|
25990
|
+
return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
|
|
25991
|
+
});
|
|
25992
|
+
const hasEnoughRelatedQueries = vue.computed(() => {
|
|
25993
|
+
var _a;
|
|
25994
|
+
return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
|
|
25995
|
+
});
|
|
25996
|
+
const handleRelatedQueryClick = (relatedQuery) => {
|
|
25997
|
+
if (relatedQuery.action === "FILTER") {
|
|
25998
|
+
handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
|
|
25999
|
+
} else {
|
|
26000
|
+
paramsStore.goToResults({ searchText: relatedQuery.query });
|
|
26001
|
+
}
|
|
26002
|
+
};
|
|
26003
|
+
const handleFilter = (query) => {
|
|
26004
|
+
var _a;
|
|
26005
|
+
toggleTermFilter(
|
|
26006
|
+
paramsStore.appendParams,
|
|
26007
|
+
{ type: "terms", key: query.key, value: query.value },
|
|
26008
|
+
optionsStore.getQueryParamName,
|
|
26009
|
+
{},
|
|
26010
|
+
(_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
|
|
26011
|
+
);
|
|
26012
|
+
};
|
|
26013
|
+
const getSelectedFilterClass = (relatedQuery) => {
|
|
26014
|
+
var _a, _b, _c, _d, _e;
|
|
26015
|
+
if (relatedQuery.action !== "FILTER") {
|
|
26016
|
+
return "";
|
|
26017
|
+
}
|
|
26018
|
+
return Array.isArray((_b = (_a = searchResult.value) == null ? void 0 : _a.filters) == null ? void 0 : _b[relatedQuery.facetKey]) && ((_e = (_d = (_c = searchResult.value) == null ? void 0 : _c.filters) == null ? void 0 : _d[relatedQuery.facetKey]) == null ? void 0 : _e.includes(
|
|
26019
|
+
relatedQuery.filterValue
|
|
26020
|
+
)) ? "lupa-selected-related-query-filter" : "";
|
|
26021
|
+
};
|
|
26022
|
+
return (_ctx, _cache) => {
|
|
26023
|
+
var _a, _b, _c, _d;
|
|
26024
|
+
return hasEnoughRelatedQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
|
|
26025
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$c, vue.toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
|
|
26026
|
+
vue.createElementVNode("ul", null, [
|
|
26027
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(relatedQueries2.value, (query) => {
|
|
26028
|
+
return vue.openBlock(), vue.createElementBlock("li", {
|
|
26029
|
+
key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
|
|
26030
|
+
class: vue.normalizeClass(getSelectedFilterClass(query))
|
|
26031
|
+
}, [
|
|
26032
|
+
vue.createElementVNode("a", {
|
|
26033
|
+
onClick: ($event) => handleRelatedQueryClick(query)
|
|
26034
|
+
}, [
|
|
26035
|
+
vue.createVNode(_sfc_main$i, {
|
|
26036
|
+
relatedQuery: query,
|
|
26037
|
+
options: _ctx.options
|
|
26038
|
+
}, null, 8, ["relatedQuery", "options"])
|
|
26039
|
+
], 8, _hoisted_3$7)
|
|
26040
|
+
], 2);
|
|
26041
|
+
}), 128))
|
|
26042
|
+
])
|
|
26043
|
+
])) : vue.createCommentVNode("", true);
|
|
26044
|
+
};
|
|
26045
|
+
}
|
|
26046
|
+
});
|
|
25857
26047
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
25858
26048
|
const _hoisted_2$b = {
|
|
25859
26049
|
class: "lupa-products",
|
|
@@ -25865,12 +26055,12 @@ const _hoisted_3$6 = {
|
|
|
25865
26055
|
"data-cy": "lupa-no-results-in-page"
|
|
25866
26056
|
};
|
|
25867
26057
|
const _hoisted_4$3 = {
|
|
25868
|
-
key:
|
|
26058
|
+
key: 5,
|
|
25869
26059
|
class: "lupa-empty-results",
|
|
25870
26060
|
"data-cy": "lupa-no-results"
|
|
25871
26061
|
};
|
|
25872
|
-
const _hoisted_5$1 = { key:
|
|
25873
|
-
const _hoisted_6$1 = { key:
|
|
26062
|
+
const _hoisted_5$1 = { key: 6 };
|
|
26063
|
+
const _hoisted_6$1 = { key: 7 };
|
|
25874
26064
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
25875
26065
|
__name: "SearchResultsProducts",
|
|
25876
26066
|
props: {
|
|
@@ -25891,7 +26081,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
25891
26081
|
columnCount,
|
|
25892
26082
|
searchResult,
|
|
25893
26083
|
layout,
|
|
25894
|
-
loading
|
|
26084
|
+
loading,
|
|
26085
|
+
relatedQueriesApiEnabled
|
|
25895
26086
|
} = storeToRefs(searchResultStore);
|
|
25896
26087
|
const productCardOptions = vue.computed(() => {
|
|
25897
26088
|
return pick(props.options, [
|
|
@@ -25972,6 +26163,13 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
25972
26163
|
_lupaUpdatedQuery: searchResult.value.suggestedSearchText
|
|
25973
26164
|
} : void 0;
|
|
25974
26165
|
});
|
|
26166
|
+
const showLocalRelatedQueries = vue.computed(() => {
|
|
26167
|
+
var _a;
|
|
26168
|
+
return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
|
|
26169
|
+
});
|
|
26170
|
+
const showApiRelatedQueries = vue.computed(() => {
|
|
26171
|
+
return Boolean(relatedQueriesApiEnabled.value === true);
|
|
26172
|
+
});
|
|
25975
26173
|
const getProductKeyAction = (index, product) => {
|
|
25976
26174
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
25977
26175
|
};
|
|
@@ -25990,31 +26188,35 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
25990
26188
|
key: 0,
|
|
25991
26189
|
class: "lupa-loader"
|
|
25992
26190
|
})) : vue.createCommentVNode("", true),
|
|
25993
|
-
vue.createVNode(_sfc_main$
|
|
26191
|
+
vue.createVNode(_sfc_main$k, {
|
|
25994
26192
|
options: _ctx.options.redirectionSuggestions
|
|
25995
26193
|
}, null, 8, ["options"]),
|
|
25996
|
-
vue.createVNode(_sfc_main$
|
|
26194
|
+
vue.createVNode(_sfc_main$p, {
|
|
25997
26195
|
options: _ctx.options,
|
|
25998
26196
|
location: "top",
|
|
25999
26197
|
sdkOptions: _ctx.options.options
|
|
26000
26198
|
}, null, 8, ["options", "sdkOptions"]),
|
|
26001
|
-
|
|
26199
|
+
showLocalRelatedQueries.value ? (vue.openBlock(), vue.createBlock(_sfc_main$l, {
|
|
26002
26200
|
key: 1,
|
|
26003
26201
|
options: _ctx.options.relatedQueries
|
|
26004
26202
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
26005
|
-
|
|
26006
|
-
|
|
26203
|
+
showApiRelatedQueries.value ? (vue.openBlock(), vue.createBlock(_sfc_main$h, {
|
|
26204
|
+
key: 2,
|
|
26205
|
+
options: _ctx.options.relatedQueries
|
|
26206
|
+
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
26207
|
+
vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
26208
|
+
showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
|
|
26007
26209
|
key: 0,
|
|
26008
26210
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
26009
26211
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
26010
|
-
showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26212
|
+
showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
26011
26213
|
key: 1,
|
|
26012
26214
|
class: "lupa-toolbar-mobile",
|
|
26013
26215
|
options: _ctx.options,
|
|
26014
26216
|
"pagination-location": "top",
|
|
26015
26217
|
onFilter: filter2
|
|
26016
26218
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
26017
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26219
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
|
|
26018
26220
|
key: 2,
|
|
26019
26221
|
class: vue.normalizeClass(currentFiltersClass.value),
|
|
26020
26222
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -26022,13 +26224,13 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
26022
26224
|
expandable: !desktopFiltersExpanded.value
|
|
26023
26225
|
}, null, 8, ["class", "options", "expandable"])) : vue.createCommentVNode("", true)
|
|
26024
26226
|
], 64)) : vue.createCommentVNode("", true),
|
|
26025
|
-
vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
26026
|
-
vue.createVNode(_sfc_main$
|
|
26227
|
+
vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
|
|
26228
|
+
vue.createVNode(_sfc_main$E, {
|
|
26027
26229
|
class: "lupa-toolbar-top",
|
|
26028
26230
|
options: _ctx.options,
|
|
26029
26231
|
"pagination-location": "top"
|
|
26030
26232
|
}, null, 8, ["options"]),
|
|
26031
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26233
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
|
|
26032
26234
|
key: 0,
|
|
26033
26235
|
class: vue.normalizeClass(currentFiltersClass.value),
|
|
26034
26236
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -26044,7 +26246,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
26044
26246
|
options: productCardOptions.value
|
|
26045
26247
|
});
|
|
26046
26248
|
}), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(searchResult).items, (product, index) => {
|
|
26047
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26249
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
26048
26250
|
style: vue.normalizeStyle(columnSize.value),
|
|
26049
26251
|
key: getProductKeyAction(index, product),
|
|
26050
26252
|
product,
|
|
@@ -26061,12 +26263,12 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
26061
26263
|
onClick: goToFirstPage
|
|
26062
26264
|
}, vue.toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : vue.createCommentVNode("", true)
|
|
26063
26265
|
])) : vue.createCommentVNode("", true),
|
|
26064
|
-
vue.createVNode(_sfc_main$
|
|
26266
|
+
vue.createVNode(_sfc_main$E, {
|
|
26065
26267
|
class: "lupa-toolbar-bottom",
|
|
26066
26268
|
options: _ctx.options,
|
|
26067
26269
|
"pagination-location": "bottom"
|
|
26068
26270
|
}, null, 8, ["options"]),
|
|
26069
|
-
vue.createVNode(_sfc_main$
|
|
26271
|
+
vue.createVNode(_sfc_main$p, {
|
|
26070
26272
|
options: _ctx.options,
|
|
26071
26273
|
location: "bottom",
|
|
26072
26274
|
sdkOptions: _ctx.options.options
|
|
@@ -26075,18 +26277,18 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
26075
26277
|
vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
26076
26278
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(currentQueryText)), 1)
|
|
26077
26279
|
])) : vue.createCommentVNode("", true),
|
|
26078
|
-
vue.createVNode(_sfc_main$
|
|
26280
|
+
vue.createVNode(_sfc_main$j, {
|
|
26079
26281
|
labels: _ctx.options.labels
|
|
26080
26282
|
}, null, 8, ["labels"]),
|
|
26081
26283
|
hasSimilarQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
|
|
26082
|
-
vue.createVNode(_sfc_main$
|
|
26284
|
+
vue.createVNode(_sfc_main$r, {
|
|
26083
26285
|
labels: similarQueriesLabels.value,
|
|
26084
26286
|
columnSize: columnSize.value,
|
|
26085
26287
|
productCardOptions: productCardOptions.value
|
|
26086
26288
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
26087
26289
|
])) : vue.createCommentVNode("", true),
|
|
26088
26290
|
hasSimilarResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
|
|
26089
|
-
vue.createVNode(_sfc_main$
|
|
26291
|
+
vue.createVNode(_sfc_main$n, {
|
|
26090
26292
|
labels: similarResultsLabels.value,
|
|
26091
26293
|
columnSize: columnSize.value,
|
|
26092
26294
|
productCardOptions: productCardOptions.value
|
|
@@ -26165,14 +26367,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
26165
26367
|
])) : vue.createCommentVNode("", true),
|
|
26166
26368
|
hasRelatedCategoryChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
|
|
26167
26369
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(relatedCategoryChildren), (child) => {
|
|
26168
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26370
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$Y, {
|
|
26169
26371
|
key: getCategoryKey(child),
|
|
26170
26372
|
item: child,
|
|
26171
26373
|
options: categoryOptions.value
|
|
26172
26374
|
}, null, 8, ["item", "options"]);
|
|
26173
26375
|
}), 128))
|
|
26174
26376
|
])) : vue.createCommentVNode("", true),
|
|
26175
|
-
vue.createVNode(_sfc_main$
|
|
26377
|
+
vue.createVNode(_sfc_main$E, {
|
|
26176
26378
|
class: "lupa-toolbar-mobile",
|
|
26177
26379
|
"pagination-location": "top",
|
|
26178
26380
|
options: _ctx.options
|
|
@@ -26292,7 +26494,12 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26292
26494
|
const hasResults2 = Boolean(
|
|
26293
26495
|
results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
|
|
26294
26496
|
);
|
|
26295
|
-
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
26497
|
+
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
26498
|
+
queryKey,
|
|
26499
|
+
hasResults: hasResults2,
|
|
26500
|
+
params: paramStore.params,
|
|
26501
|
+
results
|
|
26502
|
+
});
|
|
26296
26503
|
if (!hasResults2) {
|
|
26297
26504
|
return;
|
|
26298
26505
|
}
|
|
@@ -26320,14 +26527,23 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26320
26527
|
return;
|
|
26321
26528
|
}
|
|
26322
26529
|
LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
|
|
26323
|
-
var _a, _b;
|
|
26530
|
+
var _a, _b, _c;
|
|
26324
26531
|
if (res.success) {
|
|
26325
26532
|
handleResults({ queryKey: props.options.queryKey, results: res });
|
|
26326
26533
|
searchResultStore.add(requestId, __spreadValues({}, res));
|
|
26534
|
+
searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
|
|
26535
|
+
if (res.hasRelatedQueries) {
|
|
26536
|
+
searchResultStore.queryRelatedQueries(
|
|
26537
|
+
props.options.queryKey,
|
|
26538
|
+
publicQuery,
|
|
26539
|
+
res,
|
|
26540
|
+
props.options.options
|
|
26541
|
+
);
|
|
26542
|
+
}
|
|
26327
26543
|
if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
|
|
26328
26544
|
queryRefiners(requestId, publicQuery);
|
|
26329
26545
|
}
|
|
26330
|
-
} else if ((
|
|
26546
|
+
} else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
|
|
26331
26547
|
props.options.options.onError(res);
|
|
26332
26548
|
}
|
|
26333
26549
|
}).catch((err) => {
|
|
@@ -26466,8 +26682,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26466
26682
|
class: vue.normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !vue.unref(hasResults) }])
|
|
26467
26683
|
}, [
|
|
26468
26684
|
_ctx.isContainer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
26469
|
-
vue.createVNode(_sfc_main
|
|
26470
|
-
vue.createVNode(_sfc_main
|
|
26685
|
+
vue.createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
26686
|
+
vue.createVNode(_sfc_main$$, {
|
|
26471
26687
|
"show-summary": true,
|
|
26472
26688
|
options: _ctx.options,
|
|
26473
26689
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -26477,12 +26693,12 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26477
26693
|
key: 1,
|
|
26478
26694
|
options: _ctx.options
|
|
26479
26695
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
26480
|
-
_ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26696
|
+
_ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$N, {
|
|
26481
26697
|
key: 2,
|
|
26482
26698
|
options: _ctx.options.filters,
|
|
26483
26699
|
onFilter: handleParamsChange
|
|
26484
26700
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
26485
|
-
vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26701
|
+
vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
|
|
26486
26702
|
key: 3,
|
|
26487
26703
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
26488
26704
|
}, null, 8, ["breadcrumbs"])) : vue.createCommentVNode("", true),
|
|
@@ -26491,7 +26707,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26491
26707
|
id: "lupa-search-results",
|
|
26492
26708
|
class: vue.normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
26493
26709
|
}, [
|
|
26494
|
-
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26710
|
+
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$O, {
|
|
26495
26711
|
key: 0,
|
|
26496
26712
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
26497
26713
|
ref_key: "searchResultsFilters",
|
|
@@ -26499,8 +26715,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26499
26715
|
onFilter: handleParamsChange
|
|
26500
26716
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
26501
26717
|
vue.createElementVNode("div", _hoisted_2$9, [
|
|
26502
|
-
vue.createVNode(_sfc_main
|
|
26503
|
-
vue.createVNode(_sfc_main
|
|
26718
|
+
vue.createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
26719
|
+
vue.createVNode(_sfc_main$$, {
|
|
26504
26720
|
options: _ctx.options,
|
|
26505
26721
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
26506
26722
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -26516,8 +26732,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26516
26732
|
}, 8, ["options", "ssr"])
|
|
26517
26733
|
])
|
|
26518
26734
|
], 2)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
|
|
26519
|
-
vue.createVNode(_sfc_main
|
|
26520
|
-
vue.createVNode(_sfc_main
|
|
26735
|
+
vue.createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
26736
|
+
vue.createVNode(_sfc_main$$, {
|
|
26521
26737
|
options: _ctx.options,
|
|
26522
26738
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
26523
26739
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -26525,7 +26741,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26525
26741
|
id: "lupa-search-results",
|
|
26526
26742
|
class: vue.normalizeClass(indicatorClasses.value)
|
|
26527
26743
|
}, [
|
|
26528
|
-
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
26744
|
+
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$O, {
|
|
26529
26745
|
key: 0,
|
|
26530
26746
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
26531
26747
|
ref_key: "searchResultsFilters",
|
|
@@ -26677,7 +26893,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
26677
26893
|
onClick: vue.withModifiers(innerClick, ["stop"])
|
|
26678
26894
|
}, [
|
|
26679
26895
|
vue.createElementVNode("div", _hoisted_2$7, [
|
|
26680
|
-
vue.createVNode(_sfc_main$
|
|
26896
|
+
vue.createVNode(_sfc_main$12, {
|
|
26681
26897
|
options: fullSearchBoxOptions.value,
|
|
26682
26898
|
"is-search-container": true,
|
|
26683
26899
|
ref_key: "searchBox",
|
|
@@ -27576,7 +27792,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
27576
27792
|
key: getProductKeyAction(index, product)
|
|
27577
27793
|
}, {
|
|
27578
27794
|
default: vue.withCtx(() => [
|
|
27579
|
-
vue.createVNode(_sfc_main$
|
|
27795
|
+
vue.createVNode(_sfc_main$s, {
|
|
27580
27796
|
product,
|
|
27581
27797
|
options: _ctx.options,
|
|
27582
27798
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -27591,7 +27807,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
27591
27807
|
_: 1
|
|
27592
27808
|
}, 16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, [
|
|
27593
27809
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(recommendations.value, (product, index) => {
|
|
27594
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
27810
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
27595
27811
|
style: vue.normalizeStyle(columnSize.value),
|
|
27596
27812
|
key: getProductKeyAction(index, product),
|
|
27597
27813
|
product,
|
|
@@ -27856,7 +28072,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27856
28072
|
vue.createElementVNode("a", {
|
|
27857
28073
|
href: getLink(product)
|
|
27858
28074
|
}, [
|
|
27859
|
-
vue.createVNode(_sfc_main$
|
|
28075
|
+
vue.createVNode(_sfc_main$D, {
|
|
27860
28076
|
item: product,
|
|
27861
28077
|
options: image.value
|
|
27862
28078
|
}, null, 8, ["item", "options"])
|
|
@@ -28020,7 +28236,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
28020
28236
|
return (_ctx, _cache) => {
|
|
28021
28237
|
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$3, [
|
|
28022
28238
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.searchResults, (product, index) => {
|
|
28023
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
28239
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
28024
28240
|
class: "lupa-chat-product-card",
|
|
28025
28241
|
key: getProductKeyAction(index, product),
|
|
28026
28242
|
product,
|
|
@@ -28351,7 +28567,7 @@ exports.DocumentElementType = DocumentElementType;
|
|
|
28351
28567
|
exports.LupaSearch = LupaSearch;
|
|
28352
28568
|
exports.ProductList = _sfc_main$c;
|
|
28353
28569
|
exports.Recommendations = _sfc_main$a;
|
|
28354
|
-
exports.SearchBox = _sfc_main$
|
|
28570
|
+
exports.SearchBox = _sfc_main$12;
|
|
28355
28571
|
exports.SearchBoxPanelType = SearchBoxPanelType;
|
|
28356
28572
|
exports.SearchContainer = _sfc_main$b;
|
|
28357
28573
|
exports.SearchResults = _sfc_main$e;
|