@getlupa/client 1.17.14 → 1.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.iife.js +807 -596
- package/dist/lupaSearch.js +807 -596
- package/dist/lupaSearch.mjs +807 -596
- package/dist/lupaSearch.umd.js +807 -596
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -6953,6 +6953,15 @@ const refiners = (queryKey, query, environment, customBaseUrl) => __awaiter(void
|
|
|
6953
6953
|
const errors = yield res.json();
|
|
6954
6954
|
return { success: false, errors };
|
|
6955
6955
|
});
|
|
6956
|
+
const relatedQueries = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6957
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
|
|
6958
|
+
if (res.status < 400) {
|
|
6959
|
+
const data = yield res.json();
|
|
6960
|
+
return Object.assign(Object.assign({}, data), { success: true });
|
|
6961
|
+
}
|
|
6962
|
+
const errors = yield res.json();
|
|
6963
|
+
return { success: false, errors };
|
|
6964
|
+
});
|
|
6956
6965
|
const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6957
6966
|
const idParam = ids.map((id) => `ids=${id}`).join("&");
|
|
6958
6967
|
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
|
|
@@ -7034,6 +7043,9 @@ const LupaSearchSdk = {
|
|
|
7034
7043
|
queryRefiners: (queryKey, publicQuery, options = null) => {
|
|
7035
7044
|
return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
7036
7045
|
},
|
|
7046
|
+
queryRelated: (queryKey, publicQuery, options = null) => {
|
|
7047
|
+
return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
7048
|
+
},
|
|
7037
7049
|
suggestions: (queryKey, suggestionQuery, options = null) => {
|
|
7038
7050
|
if (options === null || options === void 0 ? void 0 : options.customUrl) {
|
|
7039
7051
|
return suggestCustom(suggestionQuery, options);
|
|
@@ -14293,11 +14305,11 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
14293
14305
|
resetHighlightIndex
|
|
14294
14306
|
};
|
|
14295
14307
|
});
|
|
14296
|
-
const _hoisted_1$
|
|
14297
|
-
const _hoisted_2$
|
|
14298
|
-
const _hoisted_3$
|
|
14299
|
-
const _hoisted_4$
|
|
14300
|
-
const _hoisted_5$
|
|
14308
|
+
const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
|
|
14309
|
+
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
14310
|
+
const _hoisted_3$E = { id: "lupa-search-box-input" };
|
|
14311
|
+
const _hoisted_4$v = ["value"];
|
|
14312
|
+
const _hoisted_5$l = ["aria-label", "placeholder"];
|
|
14301
14313
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
14302
14314
|
const _hoisted_7$7 = [
|
|
14303
14315
|
_hoisted_6$9
|
|
@@ -14306,7 +14318,7 @@ const _hoisted_8$3 = {
|
|
|
14306
14318
|
key: 0,
|
|
14307
14319
|
class: "lupa-close-label"
|
|
14308
14320
|
};
|
|
14309
|
-
const _sfc_main$
|
|
14321
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
14310
14322
|
__name: "SearchBoxInput",
|
|
14311
14323
|
props: {
|
|
14312
14324
|
options: {},
|
|
@@ -14390,20 +14402,20 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
14390
14402
|
};
|
|
14391
14403
|
__expose({ focus });
|
|
14392
14404
|
return (_ctx, _cache) => {
|
|
14393
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14394
|
-
createBaseVNode("div", _hoisted_2$
|
|
14405
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
14406
|
+
createBaseVNode("div", _hoisted_2$V, [
|
|
14395
14407
|
createBaseVNode("div", {
|
|
14396
14408
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
14397
14409
|
onClick: clear2
|
|
14398
14410
|
}, null, 2)
|
|
14399
14411
|
]),
|
|
14400
|
-
createBaseVNode("div", _hoisted_3$
|
|
14412
|
+
createBaseVNode("div", _hoisted_3$E, [
|
|
14401
14413
|
createBaseVNode("input", {
|
|
14402
14414
|
class: "lupa-hint",
|
|
14403
14415
|
"aria-hidden": "true",
|
|
14404
14416
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
14405
14417
|
disabled: ""
|
|
14406
|
-
}, null, 8, _hoisted_4$
|
|
14418
|
+
}, null, 8, _hoisted_4$v),
|
|
14407
14419
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
14408
14420
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
14409
14421
|
}, inputAttributes.value, {
|
|
@@ -14417,7 +14429,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
14417
14429
|
placeholder: labels.value.placeholder,
|
|
14418
14430
|
onInput: handleInput,
|
|
14419
14431
|
onFocus: handleFocus
|
|
14420
|
-
}), null, 16, _hoisted_5$
|
|
14432
|
+
}), null, 16, _hoisted_5$l), [
|
|
14421
14433
|
[vModelText, inputValue.value]
|
|
14422
14434
|
]),
|
|
14423
14435
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -14436,7 +14448,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
14436
14448
|
};
|
|
14437
14449
|
}
|
|
14438
14450
|
});
|
|
14439
|
-
const _sfc_main$
|
|
14451
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
14440
14452
|
__name: "SearchBoxMoreResults",
|
|
14441
14453
|
props: {
|
|
14442
14454
|
labels: {},
|
|
@@ -14473,9 +14485,9 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
14473
14485
|
};
|
|
14474
14486
|
}
|
|
14475
14487
|
});
|
|
14476
|
-
const _hoisted_1$
|
|
14477
|
-
const _hoisted_2$
|
|
14478
|
-
const _sfc_main$
|
|
14488
|
+
const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
|
|
14489
|
+
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
14490
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
14479
14491
|
__name: "SearchBoxHistoryItem",
|
|
14480
14492
|
props: {
|
|
14481
14493
|
item: {},
|
|
@@ -14491,8 +14503,8 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
14491
14503
|
emit2("click", { query: props.item });
|
|
14492
14504
|
};
|
|
14493
14505
|
return (_ctx, _cache) => {
|
|
14494
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14495
|
-
createBaseVNode("div", _hoisted_2$
|
|
14506
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1j, [
|
|
14507
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
14496
14508
|
createBaseVNode("div", {
|
|
14497
14509
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
14498
14510
|
onClick: click2
|
|
@@ -14506,11 +14518,11 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
14506
14518
|
};
|
|
14507
14519
|
}
|
|
14508
14520
|
});
|
|
14509
|
-
const _hoisted_1$
|
|
14521
|
+
const _hoisted_1$1i = {
|
|
14510
14522
|
key: 0,
|
|
14511
14523
|
class: "lupa-search-box-history-panel"
|
|
14512
14524
|
};
|
|
14513
|
-
const _sfc_main$
|
|
14525
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
14514
14526
|
__name: "SearchBoxHistoryPanel",
|
|
14515
14527
|
props: {
|
|
14516
14528
|
options: {}
|
|
@@ -14560,9 +14572,9 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
14560
14572
|
}
|
|
14561
14573
|
};
|
|
14562
14574
|
return (_ctx, _cache) => {
|
|
14563
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14575
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
|
|
14564
14576
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
14565
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14577
|
+
return openBlock(), createBlock(_sfc_main$1v, {
|
|
14566
14578
|
key: item,
|
|
14567
14579
|
item,
|
|
14568
14580
|
highlighted: index === highlightIndex.value,
|
|
@@ -14578,15 +14590,15 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
14578
14590
|
};
|
|
14579
14591
|
}
|
|
14580
14592
|
});
|
|
14581
|
-
const _hoisted_1$
|
|
14582
|
-
const _sfc_main$
|
|
14593
|
+
const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
|
|
14594
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
14583
14595
|
__name: "SearchBoxNoResults",
|
|
14584
14596
|
props: {
|
|
14585
14597
|
labels: {}
|
|
14586
14598
|
},
|
|
14587
14599
|
setup(__props) {
|
|
14588
14600
|
return (_ctx, _cache) => {
|
|
14589
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
14601
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
|
|
14590
14602
|
};
|
|
14591
14603
|
}
|
|
14592
14604
|
});
|
|
@@ -14618,26 +14630,26 @@ const generateGridTemplate = (elements) => {
|
|
|
14618
14630
|
}
|
|
14619
14631
|
return gridTemplate.join(" ");
|
|
14620
14632
|
};
|
|
14621
|
-
const _hoisted_1$
|
|
14622
|
-
const _hoisted_2$
|
|
14633
|
+
const _hoisted_1$1g = ["innerHTML"];
|
|
14634
|
+
const _hoisted_2$T = {
|
|
14623
14635
|
key: 1,
|
|
14624
14636
|
"data-cy": "lupa-suggestion-value",
|
|
14625
14637
|
class: "lupa-suggestion-value"
|
|
14626
14638
|
};
|
|
14627
|
-
const _hoisted_3$
|
|
14639
|
+
const _hoisted_3$D = {
|
|
14628
14640
|
key: 2,
|
|
14629
14641
|
class: "lupa-suggestion-facet",
|
|
14630
14642
|
"data-cy": "lupa-suggestion-facet"
|
|
14631
14643
|
};
|
|
14632
|
-
const _hoisted_4$
|
|
14644
|
+
const _hoisted_4$u = {
|
|
14633
14645
|
class: "lupa-suggestion-facet-label",
|
|
14634
14646
|
"data-cy": "lupa-suggestion-facet-label"
|
|
14635
14647
|
};
|
|
14636
|
-
const _hoisted_5$
|
|
14648
|
+
const _hoisted_5$k = {
|
|
14637
14649
|
class: "lupa-suggestion-facet-value",
|
|
14638
14650
|
"data-cy": "lupa-suggestion-facet-value"
|
|
14639
14651
|
};
|
|
14640
|
-
const _sfc_main$
|
|
14652
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
14641
14653
|
__name: "SearchBoxSuggestion",
|
|
14642
14654
|
props: {
|
|
14643
14655
|
suggestion: {},
|
|
@@ -14673,20 +14685,20 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
14673
14685
|
class: "lupa-suggestion-value",
|
|
14674
14686
|
"data-cy": "lupa-suggestion-value",
|
|
14675
14687
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
14676
|
-
}, null, 8, _hoisted_1$
|
|
14677
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14678
|
-
createBaseVNode("span", _hoisted_4$
|
|
14679
|
-
createBaseVNode("span", _hoisted_5$
|
|
14688
|
+
}, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
14689
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
14690
|
+
createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
|
|
14691
|
+
createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
14680
14692
|
])) : createCommentVNode("", true)
|
|
14681
14693
|
]);
|
|
14682
14694
|
};
|
|
14683
14695
|
}
|
|
14684
14696
|
});
|
|
14685
|
-
const _hoisted_1$
|
|
14697
|
+
const _hoisted_1$1f = {
|
|
14686
14698
|
id: "lupa-search-box-suggestions",
|
|
14687
14699
|
"data-cy": "lupa-search-box-suggestions"
|
|
14688
14700
|
};
|
|
14689
|
-
const _sfc_main$
|
|
14701
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
14690
14702
|
__name: "SearchBoxSuggestions",
|
|
14691
14703
|
props: {
|
|
14692
14704
|
items: {},
|
|
@@ -14746,9 +14758,9 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
14746
14758
|
});
|
|
14747
14759
|
});
|
|
14748
14760
|
return (_ctx, _cache) => {
|
|
14749
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14761
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
14750
14762
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
14751
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14763
|
+
return openBlock(), createBlock(_sfc_main$1s, {
|
|
14752
14764
|
key: getSuggestionKey(item),
|
|
14753
14765
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
14754
14766
|
suggestion: item,
|
|
@@ -14776,7 +14788,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
14776
14788
|
}, timeout);
|
|
14777
14789
|
};
|
|
14778
14790
|
};
|
|
14779
|
-
const _sfc_main$
|
|
14791
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
14780
14792
|
__name: "SearchBoxSuggestionsWrapper",
|
|
14781
14793
|
props: {
|
|
14782
14794
|
panel: {},
|
|
@@ -14818,7 +14830,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
14818
14830
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
14819
14831
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
14820
14832
|
return (_ctx, _cache) => {
|
|
14821
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14833
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
14822
14834
|
items: searchResult.value,
|
|
14823
14835
|
highlight: _ctx.panel.highlight,
|
|
14824
14836
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -23872,9 +23884,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
23872
23884
|
targetImage.src = placeholder;
|
|
23873
23885
|
}
|
|
23874
23886
|
};
|
|
23875
|
-
const _hoisted_1$
|
|
23876
|
-
const _hoisted_2$
|
|
23877
|
-
const _sfc_main$
|
|
23887
|
+
const _hoisted_1$1e = ["src"];
|
|
23888
|
+
const _hoisted_2$S = ["src"];
|
|
23889
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
23878
23890
|
__name: "ProductImage",
|
|
23879
23891
|
props: {
|
|
23880
23892
|
item: {},
|
|
@@ -24016,7 +24028,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
24016
24028
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
24017
24029
|
onError: replaceWithPlaceholder,
|
|
24018
24030
|
key: finalUrl.value
|
|
24019
|
-
}), null, 16, _hoisted_1$
|
|
24031
|
+
}), null, 16, _hoisted_1$1e))
|
|
24020
24032
|
]),
|
|
24021
24033
|
_: 1
|
|
24022
24034
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -24024,12 +24036,12 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
24024
24036
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
24025
24037
|
style: styleOverride.value,
|
|
24026
24038
|
src: finalMainImageUrl.value
|
|
24027
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
24039
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
|
|
24028
24040
|
], 38);
|
|
24029
24041
|
};
|
|
24030
24042
|
}
|
|
24031
24043
|
});
|
|
24032
|
-
const _sfc_main$
|
|
24044
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
24033
24045
|
__name: "SearchBoxProductImage",
|
|
24034
24046
|
props: {
|
|
24035
24047
|
item: {},
|
|
@@ -24037,7 +24049,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
24037
24049
|
},
|
|
24038
24050
|
setup(__props) {
|
|
24039
24051
|
return (_ctx, _cache) => {
|
|
24040
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24052
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
24041
24053
|
item: _ctx.item,
|
|
24042
24054
|
options: _ctx.options,
|
|
24043
24055
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -24046,12 +24058,12 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
24046
24058
|
};
|
|
24047
24059
|
}
|
|
24048
24060
|
});
|
|
24049
|
-
const _hoisted_1$
|
|
24050
|
-
const _hoisted_2$
|
|
24061
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
24062
|
+
const _hoisted_2$R = {
|
|
24051
24063
|
key: 1,
|
|
24052
24064
|
class: "lupa-search-box-product-title"
|
|
24053
24065
|
};
|
|
24054
|
-
const _sfc_main$
|
|
24066
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
24055
24067
|
__name: "SearchBoxProductTitle",
|
|
24056
24068
|
props: {
|
|
24057
24069
|
item: {},
|
|
@@ -24074,18 +24086,18 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
24074
24086
|
key: 0,
|
|
24075
24087
|
class: "lupa-search-box-product-title",
|
|
24076
24088
|
innerHTML: sanitizedTitle.value
|
|
24077
|
-
}, null, 8, _hoisted_1$
|
|
24089
|
+
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
24078
24090
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
24079
24091
|
]));
|
|
24080
24092
|
};
|
|
24081
24093
|
}
|
|
24082
24094
|
});
|
|
24083
|
-
const _hoisted_1$
|
|
24084
|
-
const _hoisted_2$
|
|
24095
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
24096
|
+
const _hoisted_2$Q = {
|
|
24085
24097
|
key: 1,
|
|
24086
24098
|
class: "lupa-search-box-product-description"
|
|
24087
24099
|
};
|
|
24088
|
-
const _sfc_main$
|
|
24100
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
24089
24101
|
__name: "SearchBoxProductDescription",
|
|
24090
24102
|
props: {
|
|
24091
24103
|
item: {},
|
|
@@ -24108,12 +24120,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
24108
24120
|
key: 0,
|
|
24109
24121
|
class: "lupa-search-box-product-description",
|
|
24110
24122
|
innerHTML: sanitizedDescription.value
|
|
24111
|
-
}, null, 8, _hoisted_1$
|
|
24123
|
+
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
|
|
24112
24124
|
};
|
|
24113
24125
|
}
|
|
24114
24126
|
});
|
|
24115
|
-
const _hoisted_1$
|
|
24116
|
-
const _sfc_main$
|
|
24127
|
+
const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
|
|
24128
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
24117
24129
|
__name: "SearchBoxProductPrice",
|
|
24118
24130
|
props: {
|
|
24119
24131
|
item: {},
|
|
@@ -24132,13 +24144,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
24132
24144
|
);
|
|
24133
24145
|
});
|
|
24134
24146
|
return (_ctx, _cache) => {
|
|
24135
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24147
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
24136
24148
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
24137
24149
|
]);
|
|
24138
24150
|
};
|
|
24139
24151
|
}
|
|
24140
24152
|
});
|
|
24141
|
-
const _sfc_main$
|
|
24153
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
24142
24154
|
__name: "SearchBoxProductRegularPrice",
|
|
24143
24155
|
props: {
|
|
24144
24156
|
item: {},
|
|
@@ -24166,12 +24178,12 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
24166
24178
|
};
|
|
24167
24179
|
}
|
|
24168
24180
|
});
|
|
24169
|
-
const _hoisted_1$
|
|
24170
|
-
const _hoisted_2$
|
|
24171
|
-
const _hoisted_3$
|
|
24172
|
-
const _hoisted_4$
|
|
24173
|
-
const _hoisted_5$
|
|
24174
|
-
const _sfc_main$
|
|
24181
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
24182
|
+
const _hoisted_2$P = { key: 0 };
|
|
24183
|
+
const _hoisted_3$C = { key: 1 };
|
|
24184
|
+
const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
|
|
24185
|
+
const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
|
|
24186
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
24175
24187
|
__name: "SearchBoxProductCustom",
|
|
24176
24188
|
props: {
|
|
24177
24189
|
item: {},
|
|
@@ -24197,20 +24209,20 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
24197
24209
|
key: 0,
|
|
24198
24210
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
24199
24211
|
innerHTML: text.value
|
|
24200
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24212
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
24201
24213
|
key: 1,
|
|
24202
24214
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
24203
24215
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24204
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24205
|
-
createBaseVNode("div", _hoisted_4$
|
|
24206
|
-
createBaseVNode("div", _hoisted_5$
|
|
24216
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
24217
|
+
createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
|
|
24218
|
+
createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
|
|
24207
24219
|
]))
|
|
24208
24220
|
], 16));
|
|
24209
24221
|
};
|
|
24210
24222
|
}
|
|
24211
24223
|
});
|
|
24212
|
-
const _hoisted_1$
|
|
24213
|
-
const _sfc_main$
|
|
24224
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
24225
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
24214
24226
|
__name: "SearchBoxProductCustomHtml",
|
|
24215
24227
|
props: {
|
|
24216
24228
|
item: {},
|
|
@@ -24235,7 +24247,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
24235
24247
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
24236
24248
|
class: className.value,
|
|
24237
24249
|
innerHTML: text.value
|
|
24238
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24250
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
|
|
24239
24251
|
};
|
|
24240
24252
|
}
|
|
24241
24253
|
});
|
|
@@ -24292,10 +24304,13 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
24292
24304
|
const loading = ref(false);
|
|
24293
24305
|
const loadingFacets = ref(false);
|
|
24294
24306
|
const loadingRefiners = ref(false);
|
|
24307
|
+
const loadingRelatedQueries = ref(false);
|
|
24295
24308
|
const isMobileSidebarVisible = ref(false);
|
|
24296
24309
|
const relatedCategoryChildren = ref([]);
|
|
24297
24310
|
const lastRequestId = ref("");
|
|
24298
24311
|
const searchRequestResults = ref({});
|
|
24312
|
+
const relatedQueriesResult = ref({});
|
|
24313
|
+
const relatedQueriesApiEnabled = ref(null);
|
|
24299
24314
|
const lastResultsSource = ref(void 0);
|
|
24300
24315
|
const optionsStore = useOptionsStore();
|
|
24301
24316
|
const paramsStore = useParamsStore();
|
|
@@ -24449,6 +24464,9 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
24449
24464
|
const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
|
|
24450
24465
|
columnCount.value = grid.columns[screenWidth];
|
|
24451
24466
|
};
|
|
24467
|
+
const setRelatedQueriesApiEnabled = (enabled) => {
|
|
24468
|
+
relatedQueriesApiEnabled.value = enabled;
|
|
24469
|
+
};
|
|
24452
24470
|
const setAddToCartAmount = (newAddToCartAmount) => {
|
|
24453
24471
|
if (!newAddToCartAmount) {
|
|
24454
24472
|
return;
|
|
@@ -24479,6 +24497,27 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
24479
24497
|
const setRelatedCategoryChildren = (children) => {
|
|
24480
24498
|
relatedCategoryChildren.value = [...children];
|
|
24481
24499
|
};
|
|
24500
|
+
const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(void 0, null, function* () {
|
|
24501
|
+
var _a, _b;
|
|
24502
|
+
loadingRelatedQueries.value = true;
|
|
24503
|
+
const context = getLupaTrackingContext();
|
|
24504
|
+
const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
|
|
24505
|
+
const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
|
|
24506
|
+
searchText
|
|
24507
|
+
}), context), {
|
|
24508
|
+
modifiers: { facets: false, refiners: true }
|
|
24509
|
+
});
|
|
24510
|
+
LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
|
|
24511
|
+
if (!res.success) {
|
|
24512
|
+
return;
|
|
24513
|
+
}
|
|
24514
|
+
relatedQueriesResult.value = res;
|
|
24515
|
+
}).catch((err) => {
|
|
24516
|
+
console.error(err);
|
|
24517
|
+
}).finally(() => {
|
|
24518
|
+
loadingRelatedQueries.value = false;
|
|
24519
|
+
});
|
|
24520
|
+
});
|
|
24482
24521
|
return {
|
|
24483
24522
|
isMobileSidebarVisible,
|
|
24484
24523
|
searchResult,
|
|
@@ -24503,6 +24542,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
24503
24542
|
hideFiltersOnExactMatchForKeys,
|
|
24504
24543
|
relatedCategoryChildren,
|
|
24505
24544
|
searchRequestResults,
|
|
24545
|
+
relatedQueriesResult,
|
|
24546
|
+
relatedQueriesApiEnabled,
|
|
24506
24547
|
lastResultsSource,
|
|
24507
24548
|
setSidebarState,
|
|
24508
24549
|
queryFacet,
|
|
@@ -24515,15 +24556,17 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
24515
24556
|
setLoading,
|
|
24516
24557
|
clearSearchResult,
|
|
24517
24558
|
filterVisibleFilterValues,
|
|
24518
|
-
setRelatedCategoryChildren
|
|
24559
|
+
setRelatedCategoryChildren,
|
|
24560
|
+
queryRelatedQueries,
|
|
24561
|
+
setRelatedQueriesApiEnabled
|
|
24519
24562
|
};
|
|
24520
24563
|
});
|
|
24521
|
-
const _hoisted_1$
|
|
24522
|
-
const _hoisted_2$
|
|
24523
|
-
const _hoisted_3$
|
|
24524
|
-
const _hoisted_4$
|
|
24525
|
-
const _hoisted_5$
|
|
24526
|
-
const _sfc_main$
|
|
24564
|
+
const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
24565
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
24566
|
+
const _hoisted_3$B = ["disabled"];
|
|
24567
|
+
const _hoisted_4$s = ["href"];
|
|
24568
|
+
const _hoisted_5$i = ["onClick", "disabled"];
|
|
24569
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
24527
24570
|
__name: "SearchBoxProductAddToCart",
|
|
24528
24571
|
props: {
|
|
24529
24572
|
item: {},
|
|
@@ -24561,45 +24604,45 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
24561
24604
|
return Boolean(props.link && props.options.link);
|
|
24562
24605
|
});
|
|
24563
24606
|
return (_ctx, _cache) => {
|
|
24564
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24565
|
-
createBaseVNode("div", _hoisted_2$
|
|
24607
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
24608
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
24566
24609
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
24567
24610
|
key: 0,
|
|
24568
24611
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
24569
24612
|
"data-cy": "lupa-add-to-cart",
|
|
24570
24613
|
disabled: !inStockValue.value || loading.value
|
|
24571
24614
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
24572
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
24573
|
-
], 16, _hoisted_3$
|
|
24615
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
|
|
24616
|
+
], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
24574
24617
|
key: 1,
|
|
24575
24618
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
24576
24619
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
24577
24620
|
"data-cy": "lupa-add-to-cart",
|
|
24578
24621
|
type: "button",
|
|
24579
24622
|
disabled: !inStockValue.value || loading.value
|
|
24580
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$
|
|
24623
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
|
|
24581
24624
|
])
|
|
24582
24625
|
]);
|
|
24583
24626
|
};
|
|
24584
24627
|
}
|
|
24585
24628
|
});
|
|
24586
|
-
const _hoisted_1$
|
|
24629
|
+
const _hoisted_1$17 = {
|
|
24587
24630
|
key: 1,
|
|
24588
24631
|
class: "lupa-search-box-element-badge-wrapper"
|
|
24589
24632
|
};
|
|
24590
24633
|
const __default__$4 = {
|
|
24591
24634
|
components: {
|
|
24592
|
-
SearchBoxProductImage: _sfc_main$
|
|
24593
|
-
SearchBoxProductTitle: _sfc_main$
|
|
24594
|
-
SearchBoxProductDescription: _sfc_main$
|
|
24595
|
-
SearchBoxProductPrice: _sfc_main$
|
|
24596
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
24597
|
-
SearchBoxProductCustom: _sfc_main$
|
|
24598
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
24599
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
24635
|
+
SearchBoxProductImage: _sfc_main$1o,
|
|
24636
|
+
SearchBoxProductTitle: _sfc_main$1n,
|
|
24637
|
+
SearchBoxProductDescription: _sfc_main$1m,
|
|
24638
|
+
SearchBoxProductPrice: _sfc_main$1l,
|
|
24639
|
+
SearchBoxProductRegularPrice: _sfc_main$1k,
|
|
24640
|
+
SearchBoxProductCustom: _sfc_main$1j,
|
|
24641
|
+
SearchBoxProductCustomHtml: _sfc_main$1i,
|
|
24642
|
+
SearchBoxProductAddToCart: _sfc_main$1h
|
|
24600
24643
|
}
|
|
24601
24644
|
};
|
|
24602
|
-
const _sfc_main$
|
|
24645
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
24603
24646
|
__name: "SearchBoxProductElement",
|
|
24604
24647
|
props: {
|
|
24605
24648
|
item: {},
|
|
@@ -24671,7 +24714,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
24671
24714
|
"dynamic-attributes": dynamicAttributes.value,
|
|
24672
24715
|
link: _ctx.link
|
|
24673
24716
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
24674
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24717
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
24675
24718
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
24676
24719
|
key: 0,
|
|
24677
24720
|
item: enhancedItem.value,
|
|
@@ -24686,14 +24729,14 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
24686
24729
|
};
|
|
24687
24730
|
}
|
|
24688
24731
|
}));
|
|
24689
|
-
const _hoisted_1$
|
|
24690
|
-
const _hoisted_2$
|
|
24691
|
-
const _hoisted_3$
|
|
24692
|
-
const _hoisted_4$
|
|
24732
|
+
const _hoisted_1$16 = { class: "lupa-badge-title" };
|
|
24733
|
+
const _hoisted_2$N = ["src"];
|
|
24734
|
+
const _hoisted_3$A = { key: 1 };
|
|
24735
|
+
const _hoisted_4$r = {
|
|
24693
24736
|
key: 0,
|
|
24694
24737
|
class: "lupa-badge-full-text"
|
|
24695
24738
|
};
|
|
24696
|
-
const _sfc_main$
|
|
24739
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
24697
24740
|
__name: "SearchResultGeneratedBadge",
|
|
24698
24741
|
props: {
|
|
24699
24742
|
options: {},
|
|
@@ -24726,20 +24769,20 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
24726
24769
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
24727
24770
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
24728
24771
|
}, [
|
|
24729
|
-
createBaseVNode("span", _hoisted_1$
|
|
24772
|
+
createBaseVNode("span", _hoisted_1$16, [
|
|
24730
24773
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
24731
24774
|
key: 0,
|
|
24732
24775
|
src: image.value
|
|
24733
|
-
}, null, 8, _hoisted_2$
|
|
24734
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
24776
|
+
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
24777
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
24735
24778
|
]),
|
|
24736
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
24779
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
24737
24780
|
], 6);
|
|
24738
24781
|
};
|
|
24739
24782
|
}
|
|
24740
24783
|
});
|
|
24741
|
-
const _hoisted_1$
|
|
24742
|
-
const _sfc_main$
|
|
24784
|
+
const _hoisted_1$15 = { class: "lupa-generated-badges" };
|
|
24785
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
24743
24786
|
__name: "SearchResultGeneratedBadges",
|
|
24744
24787
|
props: {
|
|
24745
24788
|
options: {}
|
|
@@ -24765,9 +24808,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
24765
24808
|
})).filter((b) => Boolean(b.id));
|
|
24766
24809
|
});
|
|
24767
24810
|
return (_ctx, _cache) => {
|
|
24768
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24811
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
24769
24812
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
24770
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24813
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
24771
24814
|
key: badge.id,
|
|
24772
24815
|
badge,
|
|
24773
24816
|
options: _ctx.options
|
|
@@ -24777,8 +24820,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
24777
24820
|
};
|
|
24778
24821
|
}
|
|
24779
24822
|
});
|
|
24780
|
-
const _hoisted_1$
|
|
24781
|
-
const _sfc_main$
|
|
24823
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
24824
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
24782
24825
|
__name: "CustomBadge",
|
|
24783
24826
|
props: {
|
|
24784
24827
|
badge: {}
|
|
@@ -24799,12 +24842,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
24799
24842
|
return openBlock(), createElementBlock("div", {
|
|
24800
24843
|
class: normalizeClass(className.value),
|
|
24801
24844
|
innerHTML: text.value
|
|
24802
|
-
}, null, 10, _hoisted_1$
|
|
24845
|
+
}, null, 10, _hoisted_1$14);
|
|
24803
24846
|
};
|
|
24804
24847
|
}
|
|
24805
24848
|
});
|
|
24806
|
-
const _hoisted_1$
|
|
24807
|
-
const _sfc_main$
|
|
24849
|
+
const _hoisted_1$13 = { class: "lupa-text-badges" };
|
|
24850
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
24808
24851
|
__name: "TextBadge",
|
|
24809
24852
|
props: {
|
|
24810
24853
|
badge: {}
|
|
@@ -24818,7 +24861,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
24818
24861
|
return badges.value.slice(0, props.badge.maxItems);
|
|
24819
24862
|
});
|
|
24820
24863
|
return (_ctx, _cache) => {
|
|
24821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24864
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
24822
24865
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
24823
24866
|
return openBlock(), createElementBlock("div", {
|
|
24824
24867
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -24829,9 +24872,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
24829
24872
|
};
|
|
24830
24873
|
}
|
|
24831
24874
|
});
|
|
24832
|
-
const _hoisted_1$
|
|
24833
|
-
const _hoisted_2$
|
|
24834
|
-
const _sfc_main$
|
|
24875
|
+
const _hoisted_1$12 = { class: "lupa-image-badges" };
|
|
24876
|
+
const _hoisted_2$M = ["src"];
|
|
24877
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
24835
24878
|
__name: "ImageBadge",
|
|
24836
24879
|
props: {
|
|
24837
24880
|
badge: {}
|
|
@@ -24851,7 +24894,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
24851
24894
|
return `${props.badge.rootImageUrl}${src}`;
|
|
24852
24895
|
};
|
|
24853
24896
|
return (_ctx, _cache) => {
|
|
24854
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24897
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
24855
24898
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
24856
24899
|
return openBlock(), createElementBlock("div", {
|
|
24857
24900
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -24859,14 +24902,14 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
24859
24902
|
}, [
|
|
24860
24903
|
createBaseVNode("img", {
|
|
24861
24904
|
src: getImageUrl(item)
|
|
24862
|
-
}, null, 8, _hoisted_2$
|
|
24905
|
+
}, null, 8, _hoisted_2$M)
|
|
24863
24906
|
]);
|
|
24864
24907
|
}), 128))
|
|
24865
24908
|
]);
|
|
24866
24909
|
};
|
|
24867
24910
|
}
|
|
24868
24911
|
});
|
|
24869
|
-
const _sfc_main$
|
|
24912
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
24870
24913
|
__name: "DiscountBadge",
|
|
24871
24914
|
props: {
|
|
24872
24915
|
badge: {}
|
|
@@ -24925,16 +24968,16 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
24925
24968
|
};
|
|
24926
24969
|
}
|
|
24927
24970
|
});
|
|
24928
|
-
const _hoisted_1
|
|
24971
|
+
const _hoisted_1$11 = { id: "lupa-search-results-badges" };
|
|
24929
24972
|
const __default__$3 = {
|
|
24930
24973
|
components: {
|
|
24931
|
-
CustomBadge: _sfc_main$
|
|
24932
|
-
TextBadge: _sfc_main$
|
|
24933
|
-
ImageBadge: _sfc_main$
|
|
24934
|
-
DiscountBadge: _sfc_main$
|
|
24974
|
+
CustomBadge: _sfc_main$1d,
|
|
24975
|
+
TextBadge: _sfc_main$1c,
|
|
24976
|
+
ImageBadge: _sfc_main$1b,
|
|
24977
|
+
DiscountBadge: _sfc_main$1a
|
|
24935
24978
|
}
|
|
24936
24979
|
};
|
|
24937
|
-
const _sfc_main$
|
|
24980
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
24938
24981
|
__name: "SearchResultsBadgeWrapper",
|
|
24939
24982
|
props: {
|
|
24940
24983
|
position: {},
|
|
@@ -24997,7 +25040,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
24997
25040
|
}
|
|
24998
25041
|
};
|
|
24999
25042
|
return (_ctx, _cache) => {
|
|
25000
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
25043
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
25001
25044
|
createBaseVNode("div", {
|
|
25002
25045
|
id: "lupa-badges",
|
|
25003
25046
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -25008,7 +25051,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
25008
25051
|
badge
|
|
25009
25052
|
}, null, 8, ["badge"]);
|
|
25010
25053
|
}), 128)),
|
|
25011
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
25054
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
25012
25055
|
key: 0,
|
|
25013
25056
|
options: _ctx.options
|
|
25014
25057
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -25017,13 +25060,13 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
25017
25060
|
};
|
|
25018
25061
|
}
|
|
25019
25062
|
}));
|
|
25020
|
-
const _hoisted_1$
|
|
25021
|
-
const _hoisted_2$
|
|
25022
|
-
const _hoisted_3$
|
|
25063
|
+
const _hoisted_1$10 = ["href"];
|
|
25064
|
+
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
25065
|
+
const _hoisted_3$z = {
|
|
25023
25066
|
key: 0,
|
|
25024
25067
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
25025
25068
|
};
|
|
25026
|
-
const _sfc_main$
|
|
25069
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
25027
25070
|
__name: "SearchBoxProduct",
|
|
25028
25071
|
props: {
|
|
25029
25072
|
item: {},
|
|
@@ -25109,7 +25152,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
25109
25152
|
style: normalizeStyle(imageStyleOverride.value)
|
|
25110
25153
|
}, [
|
|
25111
25154
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
25112
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25155
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
25113
25156
|
class: "lupa-search-box-product-element",
|
|
25114
25157
|
item: _ctx.item,
|
|
25115
25158
|
element,
|
|
@@ -25119,10 +25162,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
25119
25162
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
25120
25163
|
}), 128))
|
|
25121
25164
|
], 4),
|
|
25122
|
-
createBaseVNode("div", _hoisted_2$
|
|
25165
|
+
createBaseVNode("div", _hoisted_2$L, [
|
|
25123
25166
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
25124
25167
|
var _a;
|
|
25125
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25168
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
25126
25169
|
key: element.key,
|
|
25127
25170
|
class: "lupa-search-box-product-element",
|
|
25128
25171
|
item: _ctx.item,
|
|
@@ -25133,7 +25176,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
25133
25176
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
25134
25177
|
name: "badges",
|
|
25135
25178
|
fn: withCtx(() => [
|
|
25136
|
-
createVNode(_sfc_main$
|
|
25179
|
+
createVNode(_sfc_main$19, {
|
|
25137
25180
|
options: badgeOptions.value,
|
|
25138
25181
|
position: "card"
|
|
25139
25182
|
}, null, 8, ["options"])
|
|
@@ -25143,8 +25186,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
25143
25186
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
25144
25187
|
}), 128))
|
|
25145
25188
|
]),
|
|
25146
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25147
|
-
createVNode(_sfc_main$
|
|
25189
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
25190
|
+
createVNode(_sfc_main$1g, {
|
|
25148
25191
|
class: "lupa-search-box-product-element",
|
|
25149
25192
|
item: _ctx.item,
|
|
25150
25193
|
element: addToCartElement.value,
|
|
@@ -25153,7 +25196,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
25153
25196
|
isInStock: isInStock.value
|
|
25154
25197
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
25155
25198
|
])) : createCommentVNode("", true)
|
|
25156
|
-
], 16, _hoisted_1$
|
|
25199
|
+
], 16, _hoisted_1$10);
|
|
25157
25200
|
};
|
|
25158
25201
|
}
|
|
25159
25202
|
});
|
|
@@ -25225,8 +25268,8 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
25225
25268
|
};
|
|
25226
25269
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
25227
25270
|
});
|
|
25228
|
-
const _hoisted_1
|
|
25229
|
-
const _sfc_main$
|
|
25271
|
+
const _hoisted_1$$ = { id: "lupa-search-box-products" };
|
|
25272
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
25230
25273
|
__name: "SearchBoxProducts",
|
|
25231
25274
|
props: {
|
|
25232
25275
|
items: {},
|
|
@@ -25297,7 +25340,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
25297
25340
|
}
|
|
25298
25341
|
};
|
|
25299
25342
|
return (_ctx, _cache) => {
|
|
25300
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
25343
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
25301
25344
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
25302
25345
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
25303
25346
|
key: index,
|
|
@@ -25309,7 +25352,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
25309
25352
|
itemClicked: handleProductClick
|
|
25310
25353
|
});
|
|
25311
25354
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
25312
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25355
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
25313
25356
|
key: index,
|
|
25314
25357
|
item,
|
|
25315
25358
|
panelOptions: _ctx.panelOptions,
|
|
@@ -25324,9 +25367,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
25324
25367
|
};
|
|
25325
25368
|
}
|
|
25326
25369
|
});
|
|
25327
|
-
const _hoisted_1$
|
|
25328
|
-
const _hoisted_2$
|
|
25329
|
-
const _sfc_main$
|
|
25370
|
+
const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
25371
|
+
const _hoisted_2$K = { key: 0 };
|
|
25372
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
25330
25373
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
25331
25374
|
props: {
|
|
25332
25375
|
options: {},
|
|
@@ -25356,13 +25399,13 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
25356
25399
|
emit2("goToResults");
|
|
25357
25400
|
};
|
|
25358
25401
|
return (_ctx, _cache) => {
|
|
25359
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25402
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
25360
25403
|
createBaseVNode("button", {
|
|
25361
25404
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
25362
25405
|
onClick: goToResults
|
|
25363
25406
|
}, [
|
|
25364
25407
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
25365
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
25408
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
25366
25409
|
])
|
|
25367
25410
|
]);
|
|
25368
25411
|
};
|
|
@@ -25449,7 +25492,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
25449
25492
|
}
|
|
25450
25493
|
return parsedObject;
|
|
25451
25494
|
};
|
|
25452
|
-
const _sfc_main$
|
|
25495
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
25453
25496
|
__name: "SearchBoxProductsWrapper",
|
|
25454
25497
|
props: {
|
|
25455
25498
|
panel: {},
|
|
@@ -25518,7 +25561,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
25518
25561
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
25519
25562
|
return (_ctx, _cache) => {
|
|
25520
25563
|
var _a, _b;
|
|
25521
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25564
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
25522
25565
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
25523
25566
|
panelOptions: _ctx.panel,
|
|
25524
25567
|
labels: _ctx.labels,
|
|
@@ -25528,7 +25571,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
25528
25571
|
default: withCtx(() => {
|
|
25529
25572
|
var _a2;
|
|
25530
25573
|
return [
|
|
25531
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
25574
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$16, {
|
|
25532
25575
|
key: 0,
|
|
25533
25576
|
options: _ctx.searchBoxOptions,
|
|
25534
25577
|
panel: _ctx.panel,
|
|
@@ -25549,7 +25592,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
25549
25592
|
};
|
|
25550
25593
|
}
|
|
25551
25594
|
});
|
|
25552
|
-
const _sfc_main$
|
|
25595
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
25553
25596
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
25554
25597
|
props: {
|
|
25555
25598
|
panel: {},
|
|
@@ -25621,7 +25664,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
25621
25664
|
});
|
|
25622
25665
|
return (_ctx, _cache) => {
|
|
25623
25666
|
var _a, _b;
|
|
25624
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25667
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
25625
25668
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
25626
25669
|
panelOptions: documentPanelOptions.value,
|
|
25627
25670
|
labels: _ctx.labels,
|
|
@@ -25639,31 +25682,31 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
25639
25682
|
};
|
|
25640
25683
|
}
|
|
25641
25684
|
});
|
|
25642
|
-
const _hoisted_1$
|
|
25685
|
+
const _hoisted_1$Z = {
|
|
25643
25686
|
key: 0,
|
|
25644
25687
|
id: "lupa-search-box-panel"
|
|
25645
25688
|
};
|
|
25646
|
-
const _hoisted_2$
|
|
25647
|
-
const _hoisted_3$
|
|
25689
|
+
const _hoisted_2$J = ["data-cy"];
|
|
25690
|
+
const _hoisted_3$y = {
|
|
25648
25691
|
key: 0,
|
|
25649
25692
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
25650
25693
|
};
|
|
25651
|
-
const _hoisted_4$
|
|
25694
|
+
const _hoisted_4$q = {
|
|
25652
25695
|
key: 1,
|
|
25653
25696
|
class: "lupa-panel-title"
|
|
25654
25697
|
};
|
|
25655
|
-
const _hoisted_5$
|
|
25698
|
+
const _hoisted_5$h = {
|
|
25656
25699
|
key: 1,
|
|
25657
25700
|
id: "lupa-search-box-panel"
|
|
25658
25701
|
};
|
|
25659
25702
|
const __default__$2 = {
|
|
25660
25703
|
components: {
|
|
25661
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
25662
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
25663
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
25704
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1q,
|
|
25705
|
+
SearchBoxProductsWrapper: _sfc_main$15,
|
|
25706
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$14
|
|
25664
25707
|
}
|
|
25665
25708
|
};
|
|
25666
|
-
const _sfc_main$
|
|
25709
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
25667
25710
|
__name: "SearchBoxMainPanel",
|
|
25668
25711
|
props: {
|
|
25669
25712
|
options: {},
|
|
@@ -25818,7 +25861,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
25818
25861
|
ref_key: "panelContainer",
|
|
25819
25862
|
ref: panelContainer
|
|
25820
25863
|
}, [
|
|
25821
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
25864
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
25822
25865
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
25823
25866
|
key: 0,
|
|
25824
25867
|
class: "lupa-search-box-close-panel",
|
|
@@ -25840,8 +25883,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
25840
25883
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
25841
25884
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
25842
25885
|
}, [
|
|
25843
|
-
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25844
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25886
|
+
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
25887
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$q, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
25845
25888
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
25846
25889
|
key: 2,
|
|
25847
25890
|
panel,
|
|
@@ -25863,21 +25906,21 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
25863
25906
|
key: "0"
|
|
25864
25907
|
} : void 0
|
|
25865
25908
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
25866
|
-
], 14, _hoisted_2$
|
|
25909
|
+
], 14, _hoisted_2$J);
|
|
25867
25910
|
}), 128))
|
|
25868
25911
|
], 4),
|
|
25869
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
25912
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
25870
25913
|
key: 1,
|
|
25871
25914
|
labels: labels.value
|
|
25872
25915
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
25873
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
25916
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1w, {
|
|
25874
25917
|
key: 2,
|
|
25875
25918
|
labels: labels.value,
|
|
25876
25919
|
options: _ctx.options,
|
|
25877
25920
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
25878
25921
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
25879
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
25880
|
-
createVNode(_sfc_main$
|
|
25922
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
|
|
25923
|
+
createVNode(_sfc_main$1u, {
|
|
25881
25924
|
options: _ctx.options.history,
|
|
25882
25925
|
history: history.value,
|
|
25883
25926
|
onGoToResults: handleGoToResults,
|
|
@@ -25902,8 +25945,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
25902
25945
|
const elements = getElements(triggers);
|
|
25903
25946
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
25904
25947
|
};
|
|
25905
|
-
const _hoisted_1$
|
|
25906
|
-
const _sfc_main$
|
|
25948
|
+
const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
|
|
25949
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
25907
25950
|
__name: "SearchBox",
|
|
25908
25951
|
props: {
|
|
25909
25952
|
options: {},
|
|
@@ -26224,8 +26267,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
26224
26267
|
id: "lupa-search-box",
|
|
26225
26268
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
26226
26269
|
}, [
|
|
26227
|
-
createBaseVNode("div", _hoisted_1$
|
|
26228
|
-
createVNode(_sfc_main$
|
|
26270
|
+
createBaseVNode("div", _hoisted_1$Y, [
|
|
26271
|
+
createVNode(_sfc_main$1x, {
|
|
26229
26272
|
options: inputOptions.value,
|
|
26230
26273
|
suggestedValue: suggestedValue.value,
|
|
26231
26274
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -26238,7 +26281,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
26238
26281
|
onSearch: handleSearch,
|
|
26239
26282
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
26240
26283
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
26241
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
26284
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$13, {
|
|
26242
26285
|
key: 0,
|
|
26243
26286
|
options: panelOptions.value,
|
|
26244
26287
|
inputValue: inputValue.value,
|
|
@@ -26327,20 +26370,20 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
26327
26370
|
}
|
|
26328
26371
|
return searchParams;
|
|
26329
26372
|
};
|
|
26330
|
-
const _hoisted_1$
|
|
26373
|
+
const _hoisted_1$X = {
|
|
26331
26374
|
key: 0,
|
|
26332
26375
|
id: "lupa-search-results-did-you-mean"
|
|
26333
26376
|
};
|
|
26334
|
-
const _hoisted_2$
|
|
26377
|
+
const _hoisted_2$I = {
|
|
26335
26378
|
key: 0,
|
|
26336
26379
|
"data-cy": "suggested-search-text-label"
|
|
26337
26380
|
};
|
|
26338
|
-
const _hoisted_3$
|
|
26381
|
+
const _hoisted_3$x = {
|
|
26339
26382
|
key: 1,
|
|
26340
26383
|
"data-cy": "did-you-mean-label"
|
|
26341
26384
|
};
|
|
26342
|
-
const _hoisted_4$
|
|
26343
|
-
const _sfc_main
|
|
26385
|
+
const _hoisted_4$p = { key: 1 };
|
|
26386
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
26344
26387
|
__name: "SearchResultsDidYouMean",
|
|
26345
26388
|
props: {
|
|
26346
26389
|
labels: {}
|
|
@@ -26372,8 +26415,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
26372
26415
|
paramStore.goToResults({ searchText, facet });
|
|
26373
26416
|
};
|
|
26374
26417
|
return (_ctx, _cache) => {
|
|
26375
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26376
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
26418
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
26419
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
|
|
26377
26420
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
26378
26421
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
26379
26422
|
createBaseVNode("span", {
|
|
@@ -26382,7 +26425,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
26382
26425
|
]);
|
|
26383
26426
|
}), 128))
|
|
26384
26427
|
])) : createCommentVNode("", true),
|
|
26385
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
26428
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
26386
26429
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
26387
26430
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
26388
26431
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -26390,7 +26433,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
26390
26433
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
26391
26434
|
"data-cy": "did-you-mean-value",
|
|
26392
26435
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
26393
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
26436
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
|
|
26394
26437
|
]);
|
|
26395
26438
|
}), 128))
|
|
26396
26439
|
])) : createCommentVNode("", true)
|
|
@@ -26398,12 +26441,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
26398
26441
|
};
|
|
26399
26442
|
}
|
|
26400
26443
|
});
|
|
26401
|
-
const _hoisted_1$
|
|
26444
|
+
const _hoisted_1$W = {
|
|
26402
26445
|
key: 0,
|
|
26403
26446
|
class: "lupa-search-results-summary"
|
|
26404
26447
|
};
|
|
26405
|
-
const _hoisted_2$
|
|
26406
|
-
const _sfc_main$
|
|
26448
|
+
const _hoisted_2$H = ["innerHTML"];
|
|
26449
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
26407
26450
|
__name: "SearchResultsSummary",
|
|
26408
26451
|
props: {
|
|
26409
26452
|
label: {},
|
|
@@ -26418,8 +26461,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
26418
26461
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
26419
26462
|
});
|
|
26420
26463
|
return (_ctx, _cache) => {
|
|
26421
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26422
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
26464
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
26465
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
|
|
26423
26466
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
26424
26467
|
key: 0,
|
|
26425
26468
|
class: "lupa-filter-clear",
|
|
@@ -26430,19 +26473,19 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
26430
26473
|
};
|
|
26431
26474
|
}
|
|
26432
26475
|
});
|
|
26433
|
-
const _hoisted_1$
|
|
26476
|
+
const _hoisted_1$V = {
|
|
26434
26477
|
key: 0,
|
|
26435
26478
|
class: "lupa-result-page-title",
|
|
26436
26479
|
"data-cy": "lupa-result-page-title"
|
|
26437
26480
|
};
|
|
26438
|
-
const _hoisted_2$
|
|
26439
|
-
const _hoisted_3$
|
|
26481
|
+
const _hoisted_2$G = { key: 0 };
|
|
26482
|
+
const _hoisted_3$w = {
|
|
26440
26483
|
key: 1,
|
|
26441
26484
|
class: "lupa-results-total-count"
|
|
26442
26485
|
};
|
|
26443
|
-
const _hoisted_4$
|
|
26444
|
-
const _hoisted_5$
|
|
26445
|
-
const _sfc_main
|
|
26486
|
+
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
26487
|
+
const _hoisted_5$g = ["innerHTML"];
|
|
26488
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
26446
26489
|
__name: "SearchResultsTitle",
|
|
26447
26490
|
props: {
|
|
26448
26491
|
options: {},
|
|
@@ -26485,16 +26528,16 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
26485
26528
|
});
|
|
26486
26529
|
return (_ctx, _cache) => {
|
|
26487
26530
|
return openBlock(), createElementBlock("div", null, [
|
|
26488
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
26531
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
|
|
26489
26532
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
26490
|
-
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
26491
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
26533
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
26534
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
|
|
26492
26535
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
26493
|
-
createBaseVNode("span", _hoisted_4$
|
|
26536
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
26494
26537
|
createTextVNode(")")
|
|
26495
26538
|
])) : createCommentVNode("", true)
|
|
26496
26539
|
])) : createCommentVNode("", true),
|
|
26497
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
26540
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$10, {
|
|
26498
26541
|
key: 1,
|
|
26499
26542
|
label: summaryLabel.value
|
|
26500
26543
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -26502,20 +26545,20 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
26502
26545
|
key: 2,
|
|
26503
26546
|
class: "lupa-result-page-description-top",
|
|
26504
26547
|
innerHTML: descriptionTop.value
|
|
26505
|
-
}, null, 8, _hoisted_5$
|
|
26548
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
26506
26549
|
]);
|
|
26507
26550
|
};
|
|
26508
26551
|
}
|
|
26509
26552
|
});
|
|
26510
|
-
const _hoisted_1$
|
|
26553
|
+
const _hoisted_1$U = {
|
|
26511
26554
|
class: "lupa-current-filter-label",
|
|
26512
26555
|
"data-cy": "lupa-current-filter-label"
|
|
26513
26556
|
};
|
|
26514
|
-
const _hoisted_2$
|
|
26557
|
+
const _hoisted_2$F = {
|
|
26515
26558
|
class: "lupa-current-filter-value",
|
|
26516
26559
|
"data-cy": "lupa-current-filter-value"
|
|
26517
26560
|
};
|
|
26518
|
-
const _sfc_main$
|
|
26561
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
26519
26562
|
__name: "CurrentFilterDisplay",
|
|
26520
26563
|
props: {
|
|
26521
26564
|
filter: {}
|
|
@@ -26537,23 +26580,23 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
26537
26580
|
class: "lupa-current-filter-action",
|
|
26538
26581
|
onClick: handleClick
|
|
26539
26582
|
}, "⨉"),
|
|
26540
|
-
createBaseVNode("div", _hoisted_1$
|
|
26541
|
-
createBaseVNode("div", _hoisted_2$
|
|
26583
|
+
createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
26584
|
+
createBaseVNode("div", _hoisted_2$F, toDisplayString(_ctx.filter.value), 1)
|
|
26542
26585
|
], 2);
|
|
26543
26586
|
};
|
|
26544
26587
|
}
|
|
26545
26588
|
});
|
|
26546
|
-
const _hoisted_1$
|
|
26547
|
-
const _hoisted_2$
|
|
26589
|
+
const _hoisted_1$T = { class: "lupa-filter-title-text" };
|
|
26590
|
+
const _hoisted_2$E = {
|
|
26548
26591
|
key: 0,
|
|
26549
26592
|
class: "lupa-filter-count"
|
|
26550
26593
|
};
|
|
26551
|
-
const _hoisted_3$
|
|
26594
|
+
const _hoisted_3$v = {
|
|
26552
26595
|
key: 0,
|
|
26553
26596
|
class: "filter-values"
|
|
26554
26597
|
};
|
|
26555
|
-
const _hoisted_4$
|
|
26556
|
-
const _sfc_main$
|
|
26598
|
+
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
26599
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
26557
26600
|
__name: "CurrentFilters",
|
|
26558
26601
|
props: {
|
|
26559
26602
|
options: {},
|
|
@@ -26626,19 +26669,19 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
26626
26669
|
class: "lupa-current-filter-title",
|
|
26627
26670
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
26628
26671
|
}, [
|
|
26629
|
-
createBaseVNode("div", _hoisted_1$
|
|
26672
|
+
createBaseVNode("div", _hoisted_1$T, [
|
|
26630
26673
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
26631
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
26674
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
26632
26675
|
]),
|
|
26633
26676
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
26634
26677
|
key: 0,
|
|
26635
26678
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
26636
26679
|
}, null, 2)) : createCommentVNode("", true)
|
|
26637
26680
|
]),
|
|
26638
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
26639
|
-
createBaseVNode("div", _hoisted_4$
|
|
26681
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
26682
|
+
createBaseVNode("div", _hoisted_4$n, [
|
|
26640
26683
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
26641
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26684
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
26642
26685
|
key: filter2.key + "_" + filter2.value,
|
|
26643
26686
|
filter: filter2,
|
|
26644
26687
|
onRemove: handleRemove
|
|
@@ -26655,8 +26698,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
26655
26698
|
};
|
|
26656
26699
|
}
|
|
26657
26700
|
});
|
|
26658
|
-
const _hoisted_1$
|
|
26659
|
-
const _sfc_main$
|
|
26701
|
+
const _hoisted_1$S = ["href"];
|
|
26702
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
26660
26703
|
__name: "CategoryFilterItem",
|
|
26661
26704
|
props: {
|
|
26662
26705
|
options: {},
|
|
@@ -26693,20 +26736,20 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
26693
26736
|
"data-cy": "lupa-child-category-item",
|
|
26694
26737
|
href: urlLink.value,
|
|
26695
26738
|
onClick: handleNavigation
|
|
26696
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
26739
|
+
}, toDisplayString(title.value), 9, _hoisted_1$S)
|
|
26697
26740
|
], 2);
|
|
26698
26741
|
};
|
|
26699
26742
|
}
|
|
26700
26743
|
});
|
|
26701
|
-
const _hoisted_1$
|
|
26744
|
+
const _hoisted_1$R = {
|
|
26702
26745
|
class: "lupa-category-filter",
|
|
26703
26746
|
"data-cy": "lupa-category-filter"
|
|
26704
26747
|
};
|
|
26705
|
-
const _hoisted_2$
|
|
26706
|
-
const _hoisted_3$
|
|
26707
|
-
const _hoisted_4$
|
|
26708
|
-
const _hoisted_5$
|
|
26709
|
-
const _sfc_main$
|
|
26748
|
+
const _hoisted_2$D = { class: "lupa-category-back" };
|
|
26749
|
+
const _hoisted_3$u = ["href"];
|
|
26750
|
+
const _hoisted_4$m = ["href"];
|
|
26751
|
+
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
26752
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
26710
26753
|
__name: "CategoryFilter",
|
|
26711
26754
|
props: {
|
|
26712
26755
|
options: {}
|
|
@@ -26794,14 +26837,14 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
26794
26837
|
};
|
|
26795
26838
|
__expose({ fetch: fetch2 });
|
|
26796
26839
|
return (_ctx, _cache) => {
|
|
26797
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26798
|
-
createBaseVNode("div", _hoisted_2$
|
|
26840
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
26841
|
+
createBaseVNode("div", _hoisted_2$D, [
|
|
26799
26842
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
26800
26843
|
key: 0,
|
|
26801
26844
|
"data-cy": "lupa-category-back",
|
|
26802
26845
|
href: backUrlLink.value,
|
|
26803
26846
|
onClick: handleNavigationBack
|
|
26804
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
26847
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$u)) : createCommentVNode("", true)
|
|
26805
26848
|
]),
|
|
26806
26849
|
createBaseVNode("div", {
|
|
26807
26850
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -26811,11 +26854,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
26811
26854
|
href: parentUrlLink.value,
|
|
26812
26855
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
26813
26856
|
onClick: handleNavigationParent
|
|
26814
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
26857
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
|
|
26815
26858
|
], 2),
|
|
26816
|
-
createBaseVNode("div", _hoisted_5$
|
|
26859
|
+
createBaseVNode("div", _hoisted_5$f, [
|
|
26817
26860
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
26818
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26861
|
+
return openBlock(), createBlock(_sfc_main$Y, {
|
|
26819
26862
|
key: getCategoryKey(child),
|
|
26820
26863
|
item: child,
|
|
26821
26864
|
options: _ctx.options
|
|
@@ -26826,14 +26869,14 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
26826
26869
|
};
|
|
26827
26870
|
}
|
|
26828
26871
|
});
|
|
26829
|
-
const _hoisted_1$
|
|
26872
|
+
const _hoisted_1$Q = {
|
|
26830
26873
|
class: "lupa-search-result-facet-term-values",
|
|
26831
26874
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
26832
26875
|
};
|
|
26833
|
-
const _hoisted_2$
|
|
26834
|
-
const _hoisted_3$
|
|
26835
|
-
const _hoisted_4$
|
|
26836
|
-
const _hoisted_5$
|
|
26876
|
+
const _hoisted_2$C = ["placeholder"];
|
|
26877
|
+
const _hoisted_3$t = { class: "lupa-terms-list" };
|
|
26878
|
+
const _hoisted_4$l = ["onClick"];
|
|
26879
|
+
const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
|
|
26837
26880
|
const _hoisted_6$8 = { class: "lupa-term-label" };
|
|
26838
26881
|
const _hoisted_7$6 = {
|
|
26839
26882
|
key: 0,
|
|
@@ -26841,7 +26884,7 @@ const _hoisted_7$6 = {
|
|
|
26841
26884
|
};
|
|
26842
26885
|
const _hoisted_8$2 = { key: 0 };
|
|
26843
26886
|
const _hoisted_9$2 = { key: 1 };
|
|
26844
|
-
const _sfc_main$
|
|
26887
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
26845
26888
|
__name: "TermFacet",
|
|
26846
26889
|
props: {
|
|
26847
26890
|
options: {},
|
|
@@ -26930,17 +26973,17 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
26930
26973
|
}
|
|
26931
26974
|
};
|
|
26932
26975
|
return (_ctx, _cache) => {
|
|
26933
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26976
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
26934
26977
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
26935
26978
|
key: 0,
|
|
26936
26979
|
class: "lupa-term-filter",
|
|
26937
26980
|
"data-cy": "lupa-term-filter",
|
|
26938
26981
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
26939
26982
|
placeholder: _ctx.options.labels.facetFilter
|
|
26940
|
-
}, null, 8, _hoisted_2$
|
|
26983
|
+
}, null, 8, _hoisted_2$C)), [
|
|
26941
26984
|
[vModelText, termFilter.value]
|
|
26942
26985
|
]) : createCommentVNode("", true),
|
|
26943
|
-
createBaseVNode("div", _hoisted_3$
|
|
26986
|
+
createBaseVNode("div", _hoisted_3$t, [
|
|
26944
26987
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
26945
26988
|
return openBlock(), createElementBlock("div", {
|
|
26946
26989
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -26948,7 +26991,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
26948
26991
|
key: item.title,
|
|
26949
26992
|
onClick: ($event) => handleFacetClick(item)
|
|
26950
26993
|
}, [
|
|
26951
|
-
createBaseVNode("div", _hoisted_5$
|
|
26994
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
26952
26995
|
createBaseVNode("span", {
|
|
26953
26996
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
26954
26997
|
}, null, 2)
|
|
@@ -26959,7 +27002,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
26959
27002
|
createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
|
|
26960
27003
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
26961
27004
|
], 2)
|
|
26962
|
-
], 10, _hoisted_4$
|
|
27005
|
+
], 10, _hoisted_4$l);
|
|
26963
27006
|
}), 128))
|
|
26964
27007
|
]),
|
|
26965
27008
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -27950,20 +27993,20 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
27950
27993
|
m.render = function(e2, t, r, i, n, o) {
|
|
27951
27994
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
27952
27995
|
}, m.__file = "src/Slider.vue";
|
|
27953
|
-
const _hoisted_1$
|
|
27954
|
-
const _hoisted_2$
|
|
27996
|
+
const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
|
|
27997
|
+
const _hoisted_2$B = {
|
|
27955
27998
|
key: 0,
|
|
27956
27999
|
class: "lupa-stats-facet-summary"
|
|
27957
28000
|
};
|
|
27958
|
-
const _hoisted_3$
|
|
28001
|
+
const _hoisted_3$s = {
|
|
27959
28002
|
key: 1,
|
|
27960
28003
|
class: "lupa-stats-facet-summary-input"
|
|
27961
28004
|
};
|
|
27962
|
-
const _hoisted_4$
|
|
28005
|
+
const _hoisted_4$k = {
|
|
27963
28006
|
key: 0,
|
|
27964
28007
|
class: "lupa-stats-range-label"
|
|
27965
28008
|
};
|
|
27966
|
-
const _hoisted_5$
|
|
28009
|
+
const _hoisted_5$d = { class: "lupa-stats-from" };
|
|
27967
28010
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
27968
28011
|
const _hoisted_7$5 = { key: 0 };
|
|
27969
28012
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -27978,7 +28021,7 @@ const _hoisted_13 = {
|
|
|
27978
28021
|
key: 2,
|
|
27979
28022
|
class: "lupa-stats-slider-wrapper"
|
|
27980
28023
|
};
|
|
27981
|
-
const _sfc_main$
|
|
28024
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
27982
28025
|
__name: "StatsFacet",
|
|
27983
28026
|
props: {
|
|
27984
28027
|
options: {},
|
|
@@ -28159,11 +28202,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
28159
28202
|
innerSliderRange.value = value;
|
|
28160
28203
|
};
|
|
28161
28204
|
return (_ctx, _cache) => {
|
|
28162
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28163
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28205
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
28206
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
28164
28207
|
createBaseVNode("div", null, [
|
|
28165
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28166
|
-
createBaseVNode("div", _hoisted_5$
|
|
28208
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
28209
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
28167
28210
|
withDirectives(createBaseVNode("input", {
|
|
28168
28211
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
28169
28212
|
type: "text",
|
|
@@ -28226,17 +28269,17 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
28226
28269
|
};
|
|
28227
28270
|
}
|
|
28228
28271
|
});
|
|
28229
|
-
const _hoisted_1$
|
|
28230
|
-
const _hoisted_2$
|
|
28231
|
-
const _hoisted_3$
|
|
28272
|
+
const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
|
|
28273
|
+
const _hoisted_2$A = { class: "lupa-term-label" };
|
|
28274
|
+
const _hoisted_3$r = {
|
|
28232
28275
|
key: 0,
|
|
28233
28276
|
class: "lupa-term-count"
|
|
28234
28277
|
};
|
|
28235
|
-
const _hoisted_4$
|
|
28278
|
+
const _hoisted_4$j = {
|
|
28236
28279
|
key: 0,
|
|
28237
28280
|
class: "lupa-facet-level"
|
|
28238
28281
|
};
|
|
28239
|
-
const _sfc_main$
|
|
28282
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
28240
28283
|
__name: "HierarchyFacetLevel",
|
|
28241
28284
|
props: {
|
|
28242
28285
|
options: {},
|
|
@@ -28289,7 +28332,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
28289
28332
|
"data-cy": "lupa-facet-term",
|
|
28290
28333
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
28291
28334
|
}, [
|
|
28292
|
-
createBaseVNode("div", _hoisted_1$
|
|
28335
|
+
createBaseVNode("div", _hoisted_1$O, [
|
|
28293
28336
|
createBaseVNode("span", {
|
|
28294
28337
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
28295
28338
|
}, null, 2)
|
|
@@ -28297,11 +28340,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
28297
28340
|
createBaseVNode("div", {
|
|
28298
28341
|
class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
|
|
28299
28342
|
}, [
|
|
28300
|
-
createBaseVNode("span", _hoisted_2$
|
|
28301
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
28343
|
+
createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
28344
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
28302
28345
|
], 2)
|
|
28303
28346
|
]),
|
|
28304
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28347
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
|
|
28305
28348
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
28306
28349
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
28307
28350
|
key: itemChild.title,
|
|
@@ -28317,13 +28360,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
28317
28360
|
};
|
|
28318
28361
|
}
|
|
28319
28362
|
});
|
|
28320
|
-
const _hoisted_1$
|
|
28363
|
+
const _hoisted_1$N = {
|
|
28321
28364
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
28322
28365
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
28323
28366
|
};
|
|
28324
|
-
const _hoisted_2$
|
|
28325
|
-
const _hoisted_3$
|
|
28326
|
-
const _sfc_main$
|
|
28367
|
+
const _hoisted_2$z = { key: 0 };
|
|
28368
|
+
const _hoisted_3$q = ["placeholder"];
|
|
28369
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
28327
28370
|
__name: "HierarchyFacet",
|
|
28328
28371
|
props: {
|
|
28329
28372
|
options: {},
|
|
@@ -28378,19 +28421,19 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
28378
28421
|
showAll.value = false;
|
|
28379
28422
|
};
|
|
28380
28423
|
return (_ctx, _cache) => {
|
|
28381
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28382
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28424
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
28425
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
28383
28426
|
withDirectives(createBaseVNode("input", {
|
|
28384
28427
|
class: "lupa-term-filter",
|
|
28385
28428
|
"data-cy": "lupa-term-filter",
|
|
28386
28429
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
28387
28430
|
placeholder: _ctx.options.labels.facetFilter
|
|
28388
|
-
}, null, 8, _hoisted_3$
|
|
28431
|
+
}, null, 8, _hoisted_3$q), [
|
|
28389
28432
|
[vModelText, termFilter.value]
|
|
28390
28433
|
])
|
|
28391
28434
|
])) : createCommentVNode("", true),
|
|
28392
28435
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
28393
|
-
return openBlock(), createBlock(_sfc_main$
|
|
28436
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
28394
28437
|
key: item.title,
|
|
28395
28438
|
options: _ctx.options,
|
|
28396
28439
|
item,
|
|
@@ -28414,20 +28457,20 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
28414
28457
|
};
|
|
28415
28458
|
}
|
|
28416
28459
|
});
|
|
28417
|
-
const _hoisted_1$
|
|
28418
|
-
const _hoisted_2$
|
|
28460
|
+
const _hoisted_1$M = { class: "lupa-facet-label-text" };
|
|
28461
|
+
const _hoisted_2$y = {
|
|
28419
28462
|
key: 0,
|
|
28420
28463
|
class: "lupa-facet-content",
|
|
28421
28464
|
"data-cy": "lupa-facet-content"
|
|
28422
28465
|
};
|
|
28423
28466
|
const __default__$1 = {
|
|
28424
28467
|
components: {
|
|
28425
|
-
TermFacet: _sfc_main$
|
|
28426
|
-
StatsFacet: _sfc_main$
|
|
28427
|
-
HierarchyFacet: _sfc_main$
|
|
28468
|
+
TermFacet: _sfc_main$W,
|
|
28469
|
+
StatsFacet: _sfc_main$V,
|
|
28470
|
+
HierarchyFacet: _sfc_main$T
|
|
28428
28471
|
}
|
|
28429
28472
|
};
|
|
28430
|
-
const _sfc_main$
|
|
28473
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
28431
28474
|
__name: "FacetDisplay",
|
|
28432
28475
|
props: {
|
|
28433
28476
|
options: {},
|
|
@@ -28548,12 +28591,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
28548
28591
|
"data-cy": "lupa-search-result-facet-label",
|
|
28549
28592
|
onClick: toggleFacet
|
|
28550
28593
|
}, [
|
|
28551
|
-
createBaseVNode("div", _hoisted_1$
|
|
28594
|
+
createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
|
|
28552
28595
|
createBaseVNode("div", {
|
|
28553
28596
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
28554
28597
|
}, null, 2)
|
|
28555
28598
|
], 2),
|
|
28556
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28599
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
28557
28600
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
28558
28601
|
facet: facet.value,
|
|
28559
28602
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -28571,12 +28614,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
28571
28614
|
};
|
|
28572
28615
|
}
|
|
28573
28616
|
}));
|
|
28574
|
-
const _hoisted_1$
|
|
28575
|
-
const _hoisted_2$
|
|
28617
|
+
const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
|
|
28618
|
+
const _hoisted_2$x = {
|
|
28576
28619
|
key: 0,
|
|
28577
28620
|
class: "lupa-facets-title"
|
|
28578
28621
|
};
|
|
28579
|
-
const _sfc_main$
|
|
28622
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
28580
28623
|
__name: "FacetList",
|
|
28581
28624
|
props: {
|
|
28582
28625
|
options: {},
|
|
@@ -28610,14 +28653,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
28610
28653
|
};
|
|
28611
28654
|
return (_ctx, _cache) => {
|
|
28612
28655
|
var _a;
|
|
28613
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28614
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28656
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
28657
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
28615
28658
|
createBaseVNode("div", {
|
|
28616
28659
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
28617
28660
|
}, [
|
|
28618
28661
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
28619
28662
|
var _a2;
|
|
28620
|
-
return openBlock(), createBlock(_sfc_main$
|
|
28663
|
+
return openBlock(), createBlock(_sfc_main$S, {
|
|
28621
28664
|
key: facet.key,
|
|
28622
28665
|
facet,
|
|
28623
28666
|
currentFilters: currentFiltersValue.value,
|
|
@@ -28632,8 +28675,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
28632
28675
|
};
|
|
28633
28676
|
}
|
|
28634
28677
|
});
|
|
28635
|
-
const _hoisted_1$
|
|
28636
|
-
const _sfc_main$
|
|
28678
|
+
const _hoisted_1$K = ["onClick"];
|
|
28679
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
28637
28680
|
__name: "FacetsButton",
|
|
28638
28681
|
props: {
|
|
28639
28682
|
options: {}
|
|
@@ -28653,12 +28696,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
28653
28696
|
key: 0,
|
|
28654
28697
|
class: "lupa-facets-button-filter",
|
|
28655
28698
|
onClick: withModifiers(handleClick, ["stop"])
|
|
28656
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
28699
|
+
}, toDisplayString(label.value), 9, _hoisted_1$K)) : createCommentVNode("", true);
|
|
28657
28700
|
};
|
|
28658
28701
|
}
|
|
28659
28702
|
});
|
|
28660
|
-
const _hoisted_1$
|
|
28661
|
-
const _sfc_main$
|
|
28703
|
+
const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
|
|
28704
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
28662
28705
|
__name: "Facets",
|
|
28663
28706
|
props: {
|
|
28664
28707
|
options: {},
|
|
@@ -28744,7 +28787,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
28744
28787
|
return openBlock(), createElementBlock("div", {
|
|
28745
28788
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
28746
28789
|
}, [
|
|
28747
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
28790
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$R, {
|
|
28748
28791
|
key: 0,
|
|
28749
28792
|
options: _ctx.options,
|
|
28750
28793
|
facets: regularFacets.value,
|
|
@@ -28754,8 +28797,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
28754
28797
|
onSelect: handleFacetSelect,
|
|
28755
28798
|
onClear: clear2
|
|
28756
28799
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
28757
|
-
createBaseVNode("div", _hoisted_1$
|
|
28758
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
28800
|
+
createBaseVNode("div", _hoisted_1$J, [
|
|
28801
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
28759
28802
|
key: 0,
|
|
28760
28803
|
options: _ctx.options,
|
|
28761
28804
|
onFilter: filter2
|
|
@@ -28765,12 +28808,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
28765
28808
|
};
|
|
28766
28809
|
}
|
|
28767
28810
|
});
|
|
28768
|
-
const _hoisted_1$
|
|
28811
|
+
const _hoisted_1$I = {
|
|
28769
28812
|
key: 0,
|
|
28770
28813
|
id: "lupa-search-result-filters",
|
|
28771
28814
|
class: "lupa-search-result-filters"
|
|
28772
28815
|
};
|
|
28773
|
-
const _sfc_main$
|
|
28816
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
28774
28817
|
__name: "SearchResultsFilters",
|
|
28775
28818
|
props: {
|
|
28776
28819
|
options: {},
|
|
@@ -28807,19 +28850,19 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
28807
28850
|
__expose({ fetch: fetch2 });
|
|
28808
28851
|
return (_ctx, _cache) => {
|
|
28809
28852
|
var _a;
|
|
28810
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28811
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
28853
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
28854
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
28812
28855
|
key: 0,
|
|
28813
28856
|
options: _ctx.options.currentFilters,
|
|
28814
28857
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
28815
28858
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
28816
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
28859
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$X, {
|
|
28817
28860
|
key: 1,
|
|
28818
28861
|
options: _ctx.options.categories,
|
|
28819
28862
|
ref_key: "categoryFilters",
|
|
28820
28863
|
ref: categoryFilters
|
|
28821
28864
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
28822
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
28865
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
|
|
28823
28866
|
key: 2,
|
|
28824
28867
|
options: _ctx.options.facets,
|
|
28825
28868
|
onFilter: filter2
|
|
@@ -28828,20 +28871,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
28828
28871
|
};
|
|
28829
28872
|
}
|
|
28830
28873
|
});
|
|
28831
|
-
const _hoisted_1$
|
|
28874
|
+
const _hoisted_1$H = {
|
|
28832
28875
|
key: 0,
|
|
28833
28876
|
class: "lupa-mobile-filter-sidebar"
|
|
28834
28877
|
};
|
|
28835
|
-
const _hoisted_2$
|
|
28836
|
-
const _hoisted_3$
|
|
28837
|
-
const _hoisted_4$
|
|
28838
|
-
const _hoisted_5$
|
|
28878
|
+
const _hoisted_2$w = ["onClick"];
|
|
28879
|
+
const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
|
|
28880
|
+
const _hoisted_4$i = { class: "lupa-sidebar-top" };
|
|
28881
|
+
const _hoisted_5$c = { class: "lupa-sidebar-title" };
|
|
28839
28882
|
const _hoisted_6$6 = {
|
|
28840
28883
|
key: 0,
|
|
28841
28884
|
class: "lupa-sidebar-filter-count"
|
|
28842
28885
|
};
|
|
28843
28886
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
28844
|
-
const _sfc_main$
|
|
28887
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
28845
28888
|
__name: "MobileFilterSidebar",
|
|
28846
28889
|
props: {
|
|
28847
28890
|
options: {}
|
|
@@ -28872,14 +28915,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
28872
28915
|
handleMobileToggle();
|
|
28873
28916
|
};
|
|
28874
28917
|
return (_ctx, _cache) => {
|
|
28875
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28918
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
28876
28919
|
createBaseVNode("div", {
|
|
28877
28920
|
class: "lupa-sidebar-close",
|
|
28878
28921
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
28879
|
-
}, null, 8, _hoisted_2$
|
|
28880
|
-
createBaseVNode("div", _hoisted_3$
|
|
28881
|
-
createBaseVNode("div", _hoisted_4$
|
|
28882
|
-
createBaseVNode("div", _hoisted_5$
|
|
28922
|
+
}, null, 8, _hoisted_2$w),
|
|
28923
|
+
createBaseVNode("div", _hoisted_3$p, [
|
|
28924
|
+
createBaseVNode("div", _hoisted_4$i, [
|
|
28925
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
28883
28926
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
28884
28927
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
28885
28928
|
]),
|
|
@@ -28889,7 +28932,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
28889
28932
|
})
|
|
28890
28933
|
]),
|
|
28891
28934
|
createBaseVNode("div", _hoisted_7$4, [
|
|
28892
|
-
createVNode(_sfc_main$
|
|
28935
|
+
createVNode(_sfc_main$O, {
|
|
28893
28936
|
options: _ctx.options,
|
|
28894
28937
|
expandable: isActiveFiltersExpanded.value,
|
|
28895
28938
|
onFilter: filter2
|
|
@@ -28900,14 +28943,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
28900
28943
|
};
|
|
28901
28944
|
}
|
|
28902
28945
|
});
|
|
28903
|
-
const _hoisted_1$
|
|
28904
|
-
const _hoisted_2$
|
|
28905
|
-
const _hoisted_3$
|
|
28946
|
+
const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
|
|
28947
|
+
const _hoisted_2$v = ["href", "onClick"];
|
|
28948
|
+
const _hoisted_3$o = {
|
|
28906
28949
|
key: 1,
|
|
28907
28950
|
class: "lupa-search-results-breadcrumb-text"
|
|
28908
28951
|
};
|
|
28909
|
-
const _hoisted_4$
|
|
28910
|
-
const _sfc_main$
|
|
28952
|
+
const _hoisted_4$h = { key: 2 };
|
|
28953
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
28911
28954
|
__name: "SearchResultsBreadcrumbs",
|
|
28912
28955
|
props: {
|
|
28913
28956
|
breadcrumbs: {}
|
|
@@ -28932,7 +28975,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
28932
28975
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
28933
28976
|
};
|
|
28934
28977
|
return (_ctx, _cache) => {
|
|
28935
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28978
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
28936
28979
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
28937
28980
|
var _a;
|
|
28938
28981
|
return openBlock(), createElementBlock("span", {
|
|
@@ -28947,20 +28990,20 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
28947
28990
|
var _a2;
|
|
28948
28991
|
return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
|
|
28949
28992
|
}
|
|
28950
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
28951
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
28993
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
28994
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
|
|
28952
28995
|
]);
|
|
28953
28996
|
}), 128))
|
|
28954
28997
|
]);
|
|
28955
28998
|
};
|
|
28956
28999
|
}
|
|
28957
29000
|
});
|
|
28958
|
-
const _hoisted_1$
|
|
29001
|
+
const _hoisted_1$F = {
|
|
28959
29002
|
key: 0,
|
|
28960
29003
|
id: "lupa-search-result-filters",
|
|
28961
29004
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
28962
29005
|
};
|
|
28963
|
-
const _sfc_main$
|
|
29006
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
28964
29007
|
__name: "FiltersTopDropdown",
|
|
28965
29008
|
props: {
|
|
28966
29009
|
options: {}
|
|
@@ -28977,8 +29020,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
28977
29020
|
});
|
|
28978
29021
|
return (_ctx, _cache) => {
|
|
28979
29022
|
var _a;
|
|
28980
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28981
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
29023
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
29024
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
|
|
28982
29025
|
key: 0,
|
|
28983
29026
|
options: _ctx.options.facets,
|
|
28984
29027
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -28989,8 +29032,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
28989
29032
|
};
|
|
28990
29033
|
}
|
|
28991
29034
|
});
|
|
28992
|
-
const _hoisted_1$
|
|
28993
|
-
const _sfc_main$
|
|
29035
|
+
const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
|
|
29036
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
28994
29037
|
__name: "SearchResultsLayoutSelection",
|
|
28995
29038
|
setup(__props) {
|
|
28996
29039
|
const searchResultStore = useSearchResultStore();
|
|
@@ -29001,7 +29044,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
29001
29044
|
searchResultStore.setLayout(layout2);
|
|
29002
29045
|
};
|
|
29003
29046
|
return (_ctx, _cache) => {
|
|
29004
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29047
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
29005
29048
|
createBaseVNode("div", {
|
|
29006
29049
|
class: normalizeClass([
|
|
29007
29050
|
"lupa-layout-selection-grid",
|
|
@@ -29023,11 +29066,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
29023
29066
|
};
|
|
29024
29067
|
}
|
|
29025
29068
|
});
|
|
29026
|
-
const _hoisted_1$
|
|
29069
|
+
const _hoisted_1$D = {
|
|
29027
29070
|
key: 0,
|
|
29028
29071
|
class: "lupa-mobile-toggle-filter-count"
|
|
29029
29072
|
};
|
|
29030
|
-
const _sfc_main$
|
|
29073
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
29031
29074
|
__name: "SearchResultsMobileToggle",
|
|
29032
29075
|
props: {
|
|
29033
29076
|
labels: {},
|
|
@@ -29075,12 +29118,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
29075
29118
|
onClick: handleMobileToggle
|
|
29076
29119
|
}, [
|
|
29077
29120
|
createTextVNode(toDisplayString(label.value) + " ", 1),
|
|
29078
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
29121
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
29079
29122
|
], 2);
|
|
29080
29123
|
};
|
|
29081
29124
|
}
|
|
29082
29125
|
});
|
|
29083
|
-
const _sfc_main$
|
|
29126
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
29084
29127
|
__name: "SearchResultsMobileFilterClose",
|
|
29085
29128
|
props: {
|
|
29086
29129
|
label: {}
|
|
@@ -29100,21 +29143,21 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
29100
29143
|
};
|
|
29101
29144
|
}
|
|
29102
29145
|
});
|
|
29103
|
-
const _hoisted_1$
|
|
29146
|
+
const _hoisted_1$C = {
|
|
29104
29147
|
key: 0,
|
|
29105
29148
|
id: "lupa-search-results-page-select",
|
|
29106
29149
|
"data-cy": "lupa-search-results-page-select"
|
|
29107
29150
|
};
|
|
29108
|
-
const _hoisted_2$
|
|
29151
|
+
const _hoisted_2$u = {
|
|
29109
29152
|
key: 0,
|
|
29110
29153
|
class: "lupa-page-number-separator"
|
|
29111
29154
|
};
|
|
29112
|
-
const _hoisted_3$
|
|
29113
|
-
const _hoisted_4$
|
|
29155
|
+
const _hoisted_3$n = ["onClick"];
|
|
29156
|
+
const _hoisted_4$g = {
|
|
29114
29157
|
key: 0,
|
|
29115
29158
|
class: "lupa-page-number-separator"
|
|
29116
29159
|
};
|
|
29117
|
-
const _sfc_main$
|
|
29160
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
29118
29161
|
__name: "SearchResultsPageSelect",
|
|
29119
29162
|
props: {
|
|
29120
29163
|
lastPageLabel: {},
|
|
@@ -29191,7 +29234,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
29191
29234
|
}
|
|
29192
29235
|
};
|
|
29193
29236
|
return (_ctx, _cache) => {
|
|
29194
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
29237
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
29195
29238
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
29196
29239
|
key: 0,
|
|
29197
29240
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -29202,7 +29245,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
29202
29245
|
class: "lupa-page-number lupa-page-number-first",
|
|
29203
29246
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
29204
29247
|
}, " 1 "),
|
|
29205
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
29248
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
|
|
29206
29249
|
], 64)) : createCommentVNode("", true),
|
|
29207
29250
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
29208
29251
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29213,10 +29256,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
29213
29256
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
29214
29257
|
]),
|
|
29215
29258
|
"data-cy": "lupa-page-number"
|
|
29216
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
29259
|
+
}, toDisplayString(page), 11, _hoisted_3$n);
|
|
29217
29260
|
}), 128)),
|
|
29218
29261
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
29219
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29262
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
|
|
29220
29263
|
createBaseVNode("div", {
|
|
29221
29264
|
class: "lupa-page-number lupa-page-number-last",
|
|
29222
29265
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -29235,15 +29278,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
29235
29278
|
};
|
|
29236
29279
|
}
|
|
29237
29280
|
});
|
|
29238
|
-
const _hoisted_1$
|
|
29281
|
+
const _hoisted_1$B = {
|
|
29239
29282
|
id: "lupa-search-results-page-size",
|
|
29240
29283
|
"data-cy": "lupa-search-results-page-size"
|
|
29241
29284
|
};
|
|
29242
|
-
const _hoisted_2$
|
|
29243
|
-
const _hoisted_3$
|
|
29244
|
-
const _hoisted_4$
|
|
29245
|
-
const _hoisted_5$
|
|
29246
|
-
const _sfc_main$
|
|
29285
|
+
const _hoisted_2$t = { id: "lupa-select" };
|
|
29286
|
+
const _hoisted_3$m = { class: "lupa-select-label" };
|
|
29287
|
+
const _hoisted_4$f = ["aria-label"];
|
|
29288
|
+
const _hoisted_5$b = ["value"];
|
|
29289
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
29247
29290
|
__name: "SearchResultsPageSize",
|
|
29248
29291
|
props: {
|
|
29249
29292
|
labels: {},
|
|
@@ -29271,9 +29314,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
29271
29314
|
});
|
|
29272
29315
|
};
|
|
29273
29316
|
return (_ctx, _cache) => {
|
|
29274
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29275
|
-
createBaseVNode("div", _hoisted_2$
|
|
29276
|
-
createBaseVNode("label", _hoisted_3$
|
|
29317
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
29318
|
+
createBaseVNode("div", _hoisted_2$t, [
|
|
29319
|
+
createBaseVNode("label", _hoisted_3$m, toDisplayString(label.value), 1),
|
|
29277
29320
|
createBaseVNode("select", {
|
|
29278
29321
|
class: "lupa-select-dropdown",
|
|
29279
29322
|
"aria-label": label.value,
|
|
@@ -29286,23 +29329,23 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
29286
29329
|
return openBlock(), createElementBlock("option", {
|
|
29287
29330
|
key: option,
|
|
29288
29331
|
value: option
|
|
29289
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
29332
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
|
|
29290
29333
|
}), 128))
|
|
29291
|
-
], 40, _hoisted_4$
|
|
29334
|
+
], 40, _hoisted_4$f)
|
|
29292
29335
|
])
|
|
29293
29336
|
]);
|
|
29294
29337
|
};
|
|
29295
29338
|
}
|
|
29296
29339
|
});
|
|
29297
|
-
const _hoisted_1$
|
|
29340
|
+
const _hoisted_1$A = {
|
|
29298
29341
|
id: "lupa-search-results-sort",
|
|
29299
29342
|
class: "lupa-search-results-sort"
|
|
29300
29343
|
};
|
|
29301
|
-
const _hoisted_2$
|
|
29302
|
-
const _hoisted_3$
|
|
29303
|
-
const _hoisted_4$
|
|
29304
|
-
const _hoisted_5$
|
|
29305
|
-
const _sfc_main$
|
|
29344
|
+
const _hoisted_2$s = { id: "lupa-select" };
|
|
29345
|
+
const _hoisted_3$l = { class: "lupa-select-label" };
|
|
29346
|
+
const _hoisted_4$e = ["aria-label"];
|
|
29347
|
+
const _hoisted_5$a = ["value"];
|
|
29348
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
29306
29349
|
__name: "SearchResultsSort",
|
|
29307
29350
|
props: {
|
|
29308
29351
|
options: {},
|
|
@@ -29351,9 +29394,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
29351
29394
|
previousKey.value = selectedKey.value;
|
|
29352
29395
|
};
|
|
29353
29396
|
return (_ctx, _cache) => {
|
|
29354
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29355
|
-
createBaseVNode("div", _hoisted_2$
|
|
29356
|
-
createBaseVNode("label", _hoisted_3$
|
|
29397
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
29398
|
+
createBaseVNode("div", _hoisted_2$s, [
|
|
29399
|
+
createBaseVNode("label", _hoisted_3$l, toDisplayString(_ctx.options.label), 1),
|
|
29357
29400
|
withDirectives(createBaseVNode("select", {
|
|
29358
29401
|
class: "lupa-select-dropdown",
|
|
29359
29402
|
"aria-label": _ctx.options.label,
|
|
@@ -29366,9 +29409,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
29366
29409
|
return openBlock(), createElementBlock("option", {
|
|
29367
29410
|
key: option.key,
|
|
29368
29411
|
value: option.key
|
|
29369
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
29412
|
+
}, toDisplayString(option.label), 9, _hoisted_5$a);
|
|
29370
29413
|
}), 128))
|
|
29371
|
-
], 40, _hoisted_4$
|
|
29414
|
+
], 40, _hoisted_4$e), [
|
|
29372
29415
|
[vModelSelect, selectedKey.value]
|
|
29373
29416
|
])
|
|
29374
29417
|
])
|
|
@@ -29376,14 +29419,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
29376
29419
|
};
|
|
29377
29420
|
}
|
|
29378
29421
|
});
|
|
29379
|
-
const _hoisted_1$
|
|
29380
|
-
const _hoisted_2$
|
|
29422
|
+
const _hoisted_1$z = { class: "lupa-toolbar-left" };
|
|
29423
|
+
const _hoisted_2$r = {
|
|
29381
29424
|
key: 0,
|
|
29382
29425
|
class: "lupa-toolbar-right-title"
|
|
29383
29426
|
};
|
|
29384
|
-
const _hoisted_3$
|
|
29385
|
-
const _hoisted_4$
|
|
29386
|
-
const _hoisted_5$
|
|
29427
|
+
const _hoisted_3$k = { key: 2 };
|
|
29428
|
+
const _hoisted_4$d = { key: 4 };
|
|
29429
|
+
const _hoisted_5$9 = { key: 6 };
|
|
29387
29430
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
29388
29431
|
const _hoisted_7$3 = {
|
|
29389
29432
|
key: 0,
|
|
@@ -29391,7 +29434,7 @@ const _hoisted_7$3 = {
|
|
|
29391
29434
|
};
|
|
29392
29435
|
const _hoisted_8 = { key: 2 };
|
|
29393
29436
|
const _hoisted_9 = { key: 4 };
|
|
29394
|
-
const _sfc_main$
|
|
29437
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
29395
29438
|
__name: "SearchResultsToolbar",
|
|
29396
29439
|
props: {
|
|
29397
29440
|
options: {},
|
|
@@ -29502,39 +29545,39 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
29502
29545
|
id: "lupa-search-results-toolbar",
|
|
29503
29546
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
29504
29547
|
}, [
|
|
29505
|
-
createBaseVNode("div", _hoisted_1$
|
|
29506
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
29507
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
29508
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
29548
|
+
createBaseVNode("div", _hoisted_1$z, [
|
|
29549
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
29550
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$K, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$k)),
|
|
29551
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
29509
29552
|
key: 3,
|
|
29510
29553
|
label: searchSummaryLabel.value,
|
|
29511
29554
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
29512
29555
|
onClear: handleClearAll
|
|
29513
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29514
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
29556
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
|
|
29557
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
29515
29558
|
key: 5,
|
|
29516
29559
|
options: paginationOptions.value.pageSelect,
|
|
29517
29560
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
29518
29561
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
29519
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
29562
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
|
|
29520
29563
|
]),
|
|
29521
29564
|
createBaseVNode("div", _hoisted_6$5, [
|
|
29522
29565
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
29523
|
-
createVNode(_sfc_main$
|
|
29566
|
+
createVNode(_sfc_main$J, {
|
|
29524
29567
|
labels: optionsValue.value.labels,
|
|
29525
29568
|
"show-filter-count": showMobileFilterCount.value
|
|
29526
29569
|
}, null, 8, ["labels", "show-filter-count"]),
|
|
29527
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
29570
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$G, {
|
|
29528
29571
|
key: 1,
|
|
29529
29572
|
options: paginationOptions.value.pageSize,
|
|
29530
29573
|
labels: paginationOptions.value.labels
|
|
29531
29574
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
29532
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
29575
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
29533
29576
|
key: 3,
|
|
29534
29577
|
options: sortOptions.value,
|
|
29535
29578
|
callbacks: callbacks.value
|
|
29536
29579
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
29537
|
-
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
29580
|
+
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$I, {
|
|
29538
29581
|
key: 5,
|
|
29539
29582
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
29540
29583
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -29543,7 +29586,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
29543
29586
|
};
|
|
29544
29587
|
}
|
|
29545
29588
|
});
|
|
29546
|
-
const _sfc_main$
|
|
29589
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
29547
29590
|
__name: "SearchResultsProductImage",
|
|
29548
29591
|
props: {
|
|
29549
29592
|
item: {},
|
|
@@ -29551,7 +29594,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
29551
29594
|
},
|
|
29552
29595
|
setup(__props) {
|
|
29553
29596
|
return (_ctx, _cache) => {
|
|
29554
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29597
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
29555
29598
|
item: _ctx.item,
|
|
29556
29599
|
options: _ctx.options,
|
|
29557
29600
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -29560,16 +29603,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
29560
29603
|
};
|
|
29561
29604
|
}
|
|
29562
29605
|
});
|
|
29563
|
-
const _hoisted_1$
|
|
29564
|
-
const _hoisted_2$
|
|
29565
|
-
const _hoisted_3$
|
|
29566
|
-
const _hoisted_4$
|
|
29567
|
-
const _hoisted_5$
|
|
29606
|
+
const _hoisted_1$y = ["title", "innerHTML"];
|
|
29607
|
+
const _hoisted_2$q = ["title"];
|
|
29608
|
+
const _hoisted_3$j = ["href", "innerHTML"];
|
|
29609
|
+
const _hoisted_4$c = ["title"];
|
|
29610
|
+
const _hoisted_5$8 = {
|
|
29568
29611
|
key: 0,
|
|
29569
29612
|
class: "lupa-search-results-product-title-text"
|
|
29570
29613
|
};
|
|
29571
29614
|
const _hoisted_6$4 = ["href"];
|
|
29572
|
-
const _sfc_main$
|
|
29615
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
29573
29616
|
__name: "SearchResultsProductTitle",
|
|
29574
29617
|
props: {
|
|
29575
29618
|
item: {},
|
|
@@ -29606,7 +29649,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
29606
29649
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29607
29650
|
title: sanitizedTitle.value,
|
|
29608
29651
|
innerHTML: sanitizedTitle.value
|
|
29609
|
-
}, null, 12, _hoisted_1$
|
|
29652
|
+
}, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
29610
29653
|
key: 1,
|
|
29611
29654
|
class: "lupa-search-results-product-title",
|
|
29612
29655
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -29617,26 +29660,26 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
29617
29660
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
29618
29661
|
innerHTML: sanitizedTitle.value,
|
|
29619
29662
|
onClick: handleNavigation
|
|
29620
|
-
}, null, 8, _hoisted_3$
|
|
29621
|
-
], 12, _hoisted_2$
|
|
29663
|
+
}, null, 8, _hoisted_3$j)
|
|
29664
|
+
], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
|
|
29622
29665
|
key: 2,
|
|
29623
29666
|
class: "lupa-search-results-product-title",
|
|
29624
29667
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29625
29668
|
title: title.value
|
|
29626
29669
|
}, [
|
|
29627
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
29670
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
29628
29671
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
29629
29672
|
key: 1,
|
|
29630
29673
|
href: _ctx.link,
|
|
29631
29674
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
29632
29675
|
onClick: handleNavigation
|
|
29633
29676
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
29634
|
-
], 12, _hoisted_4$
|
|
29677
|
+
], 12, _hoisted_4$c));
|
|
29635
29678
|
};
|
|
29636
29679
|
}
|
|
29637
29680
|
});
|
|
29638
|
-
const _hoisted_1$
|
|
29639
|
-
const _sfc_main$
|
|
29681
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
29682
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
29640
29683
|
__name: "SearchResultsProductDescription",
|
|
29641
29684
|
props: {
|
|
29642
29685
|
item: {},
|
|
@@ -29663,7 +29706,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
29663
29706
|
class: "lupa-search-results-product-description",
|
|
29664
29707
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29665
29708
|
innerHTML: sanitizedDescription.value
|
|
29666
|
-
}, null, 12, _hoisted_1$
|
|
29709
|
+
}, null, 12, _hoisted_1$x)) : (openBlock(), createElementBlock("div", {
|
|
29667
29710
|
key: 1,
|
|
29668
29711
|
class: "lupa-search-results-product-description",
|
|
29669
29712
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -29671,15 +29714,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
29671
29714
|
};
|
|
29672
29715
|
}
|
|
29673
29716
|
});
|
|
29674
|
-
const _hoisted_1$
|
|
29675
|
-
const _hoisted_2$
|
|
29676
|
-
const _hoisted_3$
|
|
29677
|
-
const _hoisted_4$
|
|
29678
|
-
const _hoisted_5$
|
|
29717
|
+
const _hoisted_1$w = { id: "lupa-search-results-rating" };
|
|
29718
|
+
const _hoisted_2$p = { class: "lupa-ratings" };
|
|
29719
|
+
const _hoisted_3$i = { class: "lupa-ratings-base" };
|
|
29720
|
+
const _hoisted_4$b = ["innerHTML"];
|
|
29721
|
+
const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
29679
29722
|
const _hoisted_6$3 = ["innerHTML"];
|
|
29680
29723
|
const _hoisted_7$2 = ["href"];
|
|
29681
29724
|
const STAR_COUNT = 5;
|
|
29682
|
-
const _sfc_main$
|
|
29725
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
29683
29726
|
__name: "SearchResultsProductRating",
|
|
29684
29727
|
props: {
|
|
29685
29728
|
item: {},
|
|
@@ -29716,18 +29759,18 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
29716
29759
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
29717
29760
|
});
|
|
29718
29761
|
return (_ctx, _cache) => {
|
|
29719
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29720
|
-
createBaseVNode("div", _hoisted_2$
|
|
29721
|
-
createBaseVNode("div", _hoisted_3$
|
|
29762
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
29763
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
29764
|
+
createBaseVNode("div", _hoisted_3$i, [
|
|
29722
29765
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
29723
29766
|
return openBlock(), createElementBlock("div", {
|
|
29724
29767
|
key: index,
|
|
29725
29768
|
innerHTML: star,
|
|
29726
29769
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
29727
|
-
}, null, 8, _hoisted_4$
|
|
29770
|
+
}, null, 8, _hoisted_4$b);
|
|
29728
29771
|
}), 128))
|
|
29729
29772
|
]),
|
|
29730
|
-
createBaseVNode("div", _hoisted_5$
|
|
29773
|
+
createBaseVNode("div", _hoisted_5$7, [
|
|
29731
29774
|
createBaseVNode("div", {
|
|
29732
29775
|
class: "lupa-ratings-highlighted",
|
|
29733
29776
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -29750,11 +29793,11 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
29750
29793
|
};
|
|
29751
29794
|
}
|
|
29752
29795
|
});
|
|
29753
|
-
const _hoisted_1$
|
|
29796
|
+
const _hoisted_1$v = {
|
|
29754
29797
|
class: "lupa-search-results-product-regular-price",
|
|
29755
29798
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
29756
29799
|
};
|
|
29757
|
-
const _sfc_main$
|
|
29800
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
29758
29801
|
__name: "SearchResultsProductRegularPrice",
|
|
29759
29802
|
props: {
|
|
29760
29803
|
item: {},
|
|
@@ -29773,11 +29816,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
29773
29816
|
);
|
|
29774
29817
|
});
|
|
29775
29818
|
return (_ctx, _cache) => {
|
|
29776
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29819
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, toDisplayString(price.value), 1);
|
|
29777
29820
|
};
|
|
29778
29821
|
}
|
|
29779
29822
|
});
|
|
29780
|
-
const _sfc_main$
|
|
29823
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
29781
29824
|
__name: "SearchResultsProductPrice",
|
|
29782
29825
|
props: {
|
|
29783
29826
|
item: {},
|
|
@@ -29808,12 +29851,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
29808
29851
|
};
|
|
29809
29852
|
}
|
|
29810
29853
|
});
|
|
29811
|
-
const _hoisted_1$
|
|
29812
|
-
const _hoisted_2$
|
|
29813
|
-
const _hoisted_3$
|
|
29814
|
-
const _hoisted_4$
|
|
29815
|
-
const _hoisted_5$
|
|
29816
|
-
const _sfc_main$
|
|
29854
|
+
const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
29855
|
+
const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
|
|
29856
|
+
const _hoisted_3$h = ["disabled"];
|
|
29857
|
+
const _hoisted_4$a = ["href"];
|
|
29858
|
+
const _hoisted_5$6 = ["id", "disabled", "onClick"];
|
|
29859
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
29817
29860
|
__name: "SearchResultsProductAddToCart",
|
|
29818
29861
|
props: {
|
|
29819
29862
|
item: {},
|
|
@@ -29856,16 +29899,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
29856
29899
|
return Boolean(props.link && props.options.link);
|
|
29857
29900
|
});
|
|
29858
29901
|
return (_ctx, _cache) => {
|
|
29859
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29860
|
-
createBaseVNode("div", _hoisted_2$
|
|
29902
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
29903
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
29861
29904
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
29862
29905
|
key: 0,
|
|
29863
29906
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
29864
29907
|
"data-cy": "lupa-add-to-cart",
|
|
29865
29908
|
disabled: !inStockValue.value || loading.value
|
|
29866
29909
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
29867
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
29868
|
-
], 16, _hoisted_3$
|
|
29910
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
|
|
29911
|
+
], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
29869
29912
|
key: 1,
|
|
29870
29913
|
id: id.value,
|
|
29871
29914
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
@@ -29873,18 +29916,18 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
29873
29916
|
disabled: !inStockValue.value || loading.value
|
|
29874
29917
|
}, _ctx.dynamicAttributes, {
|
|
29875
29918
|
onClick: withModifiers(handleClick, ["stop"])
|
|
29876
|
-
}), toDisplayString(label.value), 17, _hoisted_5$
|
|
29919
|
+
}), toDisplayString(label.value), 17, _hoisted_5$6))
|
|
29877
29920
|
])
|
|
29878
29921
|
]);
|
|
29879
29922
|
};
|
|
29880
29923
|
}
|
|
29881
29924
|
});
|
|
29882
|
-
const _hoisted_1$
|
|
29883
|
-
const _hoisted_2$
|
|
29884
|
-
const _hoisted_3$
|
|
29885
|
-
const _hoisted_4$
|
|
29886
|
-
const _hoisted_5$
|
|
29887
|
-
const _sfc_main$
|
|
29925
|
+
const _hoisted_1$t = ["innerHTML"];
|
|
29926
|
+
const _hoisted_2$n = { key: 0 };
|
|
29927
|
+
const _hoisted_3$g = { key: 1 };
|
|
29928
|
+
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
29929
|
+
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
29930
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
29888
29931
|
__name: "SearchResultsProductCustom",
|
|
29889
29932
|
props: {
|
|
29890
29933
|
item: {},
|
|
@@ -29922,20 +29965,20 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
29922
29965
|
key: 0,
|
|
29923
29966
|
class: className.value,
|
|
29924
29967
|
innerHTML: text.value
|
|
29925
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
29968
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
29926
29969
|
key: 1,
|
|
29927
29970
|
class: className.value
|
|
29928
29971
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
29929
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
29930
|
-
createBaseVNode("div", _hoisted_4$
|
|
29931
|
-
createBaseVNode("div", _hoisted_5$
|
|
29972
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
|
|
29973
|
+
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
29974
|
+
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
29932
29975
|
]))
|
|
29933
29976
|
], 16));
|
|
29934
29977
|
};
|
|
29935
29978
|
}
|
|
29936
29979
|
});
|
|
29937
|
-
const _hoisted_1$
|
|
29938
|
-
const _sfc_main$
|
|
29980
|
+
const _hoisted_1$s = ["innerHTML"];
|
|
29981
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
29939
29982
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
29940
29983
|
props: {
|
|
29941
29984
|
item: {},
|
|
@@ -29966,15 +30009,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
29966
30009
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
29967
30010
|
class: className.value,
|
|
29968
30011
|
innerHTML: text.value
|
|
29969
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
30012
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
|
|
29970
30013
|
};
|
|
29971
30014
|
}
|
|
29972
30015
|
});
|
|
29973
|
-
const _hoisted_1$
|
|
29974
|
-
const _hoisted_2$
|
|
29975
|
-
const _hoisted_3$
|
|
29976
|
-
const _hoisted_4$
|
|
29977
|
-
const _sfc_main$
|
|
30016
|
+
const _hoisted_1$r = { id: "lupa-search-results-rating" };
|
|
30017
|
+
const _hoisted_2$m = ["innerHTML"];
|
|
30018
|
+
const _hoisted_3$f = { class: "lupa-ratings" };
|
|
30019
|
+
const _hoisted_4$8 = ["href"];
|
|
30020
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
29978
30021
|
__name: "SearchResultsProductSingleStarRating",
|
|
29979
30022
|
props: {
|
|
29980
30023
|
item: {},
|
|
@@ -30002,35 +30045,35 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
30002
30045
|
return RATING_STAR_HTML;
|
|
30003
30046
|
});
|
|
30004
30047
|
return (_ctx, _cache) => {
|
|
30005
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30048
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
30006
30049
|
createBaseVNode("div", {
|
|
30007
30050
|
innerHTML: star.value,
|
|
30008
30051
|
class: "lupa-rating lupa-rating-highlighted"
|
|
30009
|
-
}, null, 8, _hoisted_2$
|
|
30010
|
-
createBaseVNode("div", _hoisted_3$
|
|
30052
|
+
}, null, 8, _hoisted_2$m),
|
|
30053
|
+
createBaseVNode("div", _hoisted_3$f, toDisplayString(rating.value), 1),
|
|
30011
30054
|
createBaseVNode("a", {
|
|
30012
30055
|
href: ratingLink.value,
|
|
30013
30056
|
class: "lupa-total-ratings"
|
|
30014
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
30057
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
|
|
30015
30058
|
]);
|
|
30016
30059
|
};
|
|
30017
30060
|
}
|
|
30018
30061
|
});
|
|
30019
30062
|
const __default__ = {
|
|
30020
30063
|
components: {
|
|
30021
|
-
SearchResultsProductImage: _sfc_main$
|
|
30022
|
-
SearchResultsProductTitle: _sfc_main$
|
|
30023
|
-
SearchResultsProductDescription: _sfc_main$
|
|
30024
|
-
SearchResultsProductRating: _sfc_main$
|
|
30025
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
30026
|
-
SearchResultsProductPrice: _sfc_main$
|
|
30027
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
30028
|
-
SearchResultsProductCustom: _sfc_main$
|
|
30029
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
30030
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
30031
|
-
}
|
|
30032
|
-
};
|
|
30033
|
-
const _sfc_main$
|
|
30064
|
+
SearchResultsProductImage: _sfc_main$D,
|
|
30065
|
+
SearchResultsProductTitle: _sfc_main$C,
|
|
30066
|
+
SearchResultsProductDescription: _sfc_main$B,
|
|
30067
|
+
SearchResultsProductRating: _sfc_main$A,
|
|
30068
|
+
SearchResultsProductRegularPrice: _sfc_main$z,
|
|
30069
|
+
SearchResultsProductPrice: _sfc_main$y,
|
|
30070
|
+
SearchResultsProductAddToCart: _sfc_main$x,
|
|
30071
|
+
SearchResultsProductCustom: _sfc_main$w,
|
|
30072
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$v,
|
|
30073
|
+
SearchResultsProductSingleStarRating: _sfc_main$u
|
|
30074
|
+
}
|
|
30075
|
+
};
|
|
30076
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
30034
30077
|
__name: "SearchResultsProductCardElement",
|
|
30035
30078
|
props: {
|
|
30036
30079
|
item: {},
|
|
@@ -30112,14 +30155,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
30112
30155
|
};
|
|
30113
30156
|
}
|
|
30114
30157
|
}));
|
|
30115
|
-
const _hoisted_1$
|
|
30116
|
-
const _hoisted_2$
|
|
30117
|
-
const _hoisted_3$
|
|
30158
|
+
const _hoisted_1$q = ["onMouseup"];
|
|
30159
|
+
const _hoisted_2$l = ["href"];
|
|
30160
|
+
const _hoisted_3$e = {
|
|
30118
30161
|
key: 0,
|
|
30119
30162
|
class: "lupa-out-of-stock"
|
|
30120
30163
|
};
|
|
30121
|
-
const _hoisted_4$
|
|
30122
|
-
const _sfc_main$
|
|
30164
|
+
const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
|
|
30165
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
30123
30166
|
__name: "SearchResultsProductCard",
|
|
30124
30167
|
props: {
|
|
30125
30168
|
product: {},
|
|
@@ -30284,7 +30327,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
30284
30327
|
onClick: handleClick,
|
|
30285
30328
|
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
30286
30329
|
}), [
|
|
30287
|
-
createVNode(_sfc_main$
|
|
30330
|
+
createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
30288
30331
|
createBaseVNode("div", {
|
|
30289
30332
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
30290
30333
|
}, [
|
|
@@ -30294,7 +30337,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
30294
30337
|
onClick: handleNavigation
|
|
30295
30338
|
}, [
|
|
30296
30339
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
30297
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30340
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
30298
30341
|
class: "lupa-search-results-product-element",
|
|
30299
30342
|
item: _ctx.product,
|
|
30300
30343
|
element,
|
|
@@ -30305,16 +30348,16 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
30305
30348
|
onProductEvent: handleProductEvent
|
|
30306
30349
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
30307
30350
|
}), 128)),
|
|
30308
|
-
createVNode(_sfc_main$
|
|
30351
|
+
createVNode(_sfc_main$19, {
|
|
30309
30352
|
options: badgesOptions.value,
|
|
30310
30353
|
position: "image",
|
|
30311
30354
|
class: "lupa-image-badges"
|
|
30312
30355
|
}, null, 8, ["options"]),
|
|
30313
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
30314
|
-
], 8, _hoisted_2$
|
|
30315
|
-
createBaseVNode("div", _hoisted_4$
|
|
30356
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
30357
|
+
], 8, _hoisted_2$l),
|
|
30358
|
+
createBaseVNode("div", _hoisted_4$7, [
|
|
30316
30359
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
30317
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30360
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
30318
30361
|
class: "lupa-search-results-product-element",
|
|
30319
30362
|
item: _ctx.product,
|
|
30320
30363
|
element,
|
|
@@ -30332,7 +30375,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
30332
30375
|
class: normalizeClass("lupa-element-group-" + group)
|
|
30333
30376
|
}, [
|
|
30334
30377
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
30335
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30378
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
30336
30379
|
class: "lupa-search-results-product-element",
|
|
30337
30380
|
item: _ctx.product,
|
|
30338
30381
|
element,
|
|
@@ -30346,27 +30389,27 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
30346
30389
|
], 2);
|
|
30347
30390
|
}), 128))
|
|
30348
30391
|
], 2)
|
|
30349
|
-
], 16, _hoisted_1$
|
|
30392
|
+
], 16, _hoisted_1$q);
|
|
30350
30393
|
};
|
|
30351
30394
|
}
|
|
30352
30395
|
});
|
|
30353
|
-
const _hoisted_1$
|
|
30396
|
+
const _hoisted_1$p = {
|
|
30354
30397
|
id: "lupa-search-results-similar-queries",
|
|
30355
30398
|
"data-cy": "lupa-search-results-similar-queries"
|
|
30356
30399
|
};
|
|
30357
|
-
const _hoisted_2$
|
|
30358
|
-
const _hoisted_3$
|
|
30400
|
+
const _hoisted_2$k = { class: "lupa-similar-queries-label" };
|
|
30401
|
+
const _hoisted_3$d = {
|
|
30359
30402
|
class: "lupa-similar-query-label",
|
|
30360
30403
|
"data-cy": "lupa-similar-query-label"
|
|
30361
30404
|
};
|
|
30362
|
-
const _hoisted_4$
|
|
30363
|
-
const _hoisted_5$
|
|
30405
|
+
const _hoisted_4$6 = ["onClick"];
|
|
30406
|
+
const _hoisted_5$4 = ["innerHTML"];
|
|
30364
30407
|
const _hoisted_6$2 = { key: 0 };
|
|
30365
30408
|
const _hoisted_7$1 = {
|
|
30366
30409
|
class: "lupa-products",
|
|
30367
30410
|
"data-cy": "lupa-products"
|
|
30368
30411
|
};
|
|
30369
|
-
const _sfc_main$
|
|
30412
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
30370
30413
|
__name: "SearchResultsSimilarQueries",
|
|
30371
30414
|
props: {
|
|
30372
30415
|
labels: {},
|
|
@@ -30404,11 +30447,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
30404
30447
|
};
|
|
30405
30448
|
};
|
|
30406
30449
|
return (_ctx, _cache) => {
|
|
30407
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30408
|
-
createBaseVNode("div", _hoisted_2$
|
|
30450
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
30451
|
+
createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
30409
30452
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
30410
30453
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
30411
|
-
createBaseVNode("div", _hoisted_3$
|
|
30454
|
+
createBaseVNode("div", _hoisted_3$d, [
|
|
30412
30455
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
30413
30456
|
createBaseVNode("span", {
|
|
30414
30457
|
id: "lupa-similar-query-text-component",
|
|
@@ -30418,13 +30461,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
30418
30461
|
}, [
|
|
30419
30462
|
createBaseVNode("span", {
|
|
30420
30463
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
30421
|
-
}, null, 8, _hoisted_5$
|
|
30464
|
+
}, null, 8, _hoisted_5$4),
|
|
30422
30465
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
30423
|
-
], 8, _hoisted_4$
|
|
30466
|
+
], 8, _hoisted_4$6)
|
|
30424
30467
|
]),
|
|
30425
30468
|
createBaseVNode("div", _hoisted_7$1, [
|
|
30426
30469
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
30427
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30470
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
30428
30471
|
style: normalizeStyle(_ctx.columnSize),
|
|
30429
30472
|
key: getDocumentKey(index2, product),
|
|
30430
30473
|
product,
|
|
@@ -30439,15 +30482,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
30439
30482
|
};
|
|
30440
30483
|
}
|
|
30441
30484
|
});
|
|
30442
|
-
const _hoisted_1$
|
|
30485
|
+
const _hoisted_1$o = {
|
|
30443
30486
|
key: 0,
|
|
30444
30487
|
class: "lupa-results-additional-panel"
|
|
30445
30488
|
};
|
|
30446
|
-
const _hoisted_2$
|
|
30489
|
+
const _hoisted_2$j = {
|
|
30447
30490
|
class: "lupa-results-additional-panel-items",
|
|
30448
30491
|
"data-cy": "lupa-results-additional-panel-items"
|
|
30449
30492
|
};
|
|
30450
|
-
const _sfc_main$
|
|
30493
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
30451
30494
|
__name: "AdditionalPanel",
|
|
30452
30495
|
props: {
|
|
30453
30496
|
panel: {},
|
|
@@ -30520,10 +30563,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
30520
30563
|
handleQueryChange();
|
|
30521
30564
|
});
|
|
30522
30565
|
return (_ctx, _cache) => {
|
|
30523
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30524
|
-
createBaseVNode("div", _hoisted_2$
|
|
30566
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
30567
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
30525
30568
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
30526
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30569
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
30527
30570
|
key: index,
|
|
30528
30571
|
product: item,
|
|
30529
30572
|
options: _ctx.panel,
|
|
@@ -30541,11 +30584,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
30541
30584
|
};
|
|
30542
30585
|
}
|
|
30543
30586
|
});
|
|
30544
|
-
const _hoisted_1$
|
|
30587
|
+
const _hoisted_1$n = {
|
|
30545
30588
|
key: 0,
|
|
30546
30589
|
class: "lupa-results-additional-panels"
|
|
30547
30590
|
};
|
|
30548
|
-
const _sfc_main$
|
|
30591
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
30549
30592
|
__name: "AdditionalPanels",
|
|
30550
30593
|
props: {
|
|
30551
30594
|
options: {},
|
|
@@ -30562,9 +30605,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
30562
30605
|
return locationPanels.value.length > 0;
|
|
30563
30606
|
});
|
|
30564
30607
|
return (_ctx, _cache) => {
|
|
30565
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30608
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
30566
30609
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
30567
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30610
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
30568
30611
|
key: panel.queryKey,
|
|
30569
30612
|
panel,
|
|
30570
30613
|
options: _ctx.sdkOptions
|
|
@@ -30581,29 +30624,29 @@ const _export_sfc = (sfc, props) => {
|
|
|
30581
30624
|
}
|
|
30582
30625
|
return target;
|
|
30583
30626
|
};
|
|
30584
|
-
const _sfc_main$
|
|
30585
|
-
const _hoisted_1$
|
|
30586
|
-
const _hoisted_2$
|
|
30627
|
+
const _sfc_main$o = {};
|
|
30628
|
+
const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
|
|
30629
|
+
const _hoisted_2$i = { class: "lupa-spinner" };
|
|
30587
30630
|
function _sfc_render(_ctx, _cache) {
|
|
30588
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30589
|
-
createBaseVNode("div", _hoisted_2$
|
|
30631
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
30632
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
30590
30633
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
30591
30634
|
return createBaseVNode("div", { key: x2 });
|
|
30592
30635
|
}), 64))
|
|
30593
30636
|
])
|
|
30594
30637
|
]);
|
|
30595
30638
|
}
|
|
30596
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30597
|
-
const _hoisted_1$
|
|
30639
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
|
|
30640
|
+
const _hoisted_1$l = {
|
|
30598
30641
|
id: "lupa-search-results-similar-results",
|
|
30599
30642
|
"data-cy": "lupa-search-results-similar-results"
|
|
30600
30643
|
};
|
|
30601
|
-
const _hoisted_2$
|
|
30602
|
-
const _hoisted_3$
|
|
30644
|
+
const _hoisted_2$h = { class: "lupa-similar-results-label" };
|
|
30645
|
+
const _hoisted_3$c = {
|
|
30603
30646
|
class: "lupa-products",
|
|
30604
30647
|
"data-cy": "lupa-products"
|
|
30605
30648
|
};
|
|
30606
|
-
const _sfc_main$
|
|
30649
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
30607
30650
|
__name: "SearchResultsSimilarResults",
|
|
30608
30651
|
props: {
|
|
30609
30652
|
columnSize: {},
|
|
@@ -30624,11 +30667,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
30624
30667
|
};
|
|
30625
30668
|
});
|
|
30626
30669
|
return (_ctx, _cache) => {
|
|
30627
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30628
|
-
createBaseVNode("div", _hoisted_2$
|
|
30629
|
-
createBaseVNode("div", _hoisted_3$
|
|
30670
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
30671
|
+
createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
30672
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
30630
30673
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
30631
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30674
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
30632
30675
|
style: normalizeStyle(_ctx.columnSize),
|
|
30633
30676
|
key: getDocumentKey(index, product),
|
|
30634
30677
|
product,
|
|
@@ -30741,20 +30784,23 @@ const extractFacetsRelatedSourceFromOriginalQuery = (source, searchResults2) =>
|
|
|
30741
30784
|
return [];
|
|
30742
30785
|
});
|
|
30743
30786
|
const extractRelatedSource = (source, searchResults2, options, activeFilters) => __async2(void 0, null, function* () {
|
|
30787
|
+
if (!source) {
|
|
30788
|
+
return [];
|
|
30789
|
+
}
|
|
30744
30790
|
switch (source.type) {
|
|
30745
30791
|
case RelatedQuerySourceType.FACETS:
|
|
30746
30792
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
30747
30793
|
}
|
|
30748
30794
|
});
|
|
30749
|
-
const _hoisted_1$
|
|
30750
|
-
const _hoisted_2$
|
|
30751
|
-
const _hoisted_3$
|
|
30752
|
-
const _hoisted_4$
|
|
30753
|
-
const _hoisted_5$
|
|
30795
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
30796
|
+
const _hoisted_2$g = { class: "lupa-related-query-image" };
|
|
30797
|
+
const _hoisted_3$b = { class: "lupa-related-query-label" };
|
|
30798
|
+
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
30799
|
+
const _hoisted_5$3 = {
|
|
30754
30800
|
key: 0,
|
|
30755
30801
|
class: "lupa-related-query-count"
|
|
30756
30802
|
};
|
|
30757
|
-
const _sfc_main$
|
|
30803
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
30758
30804
|
__name: "RelatedQueryPanel",
|
|
30759
30805
|
props: {
|
|
30760
30806
|
query: {},
|
|
@@ -30849,9 +30895,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
30849
30895
|
});
|
|
30850
30896
|
return (_ctx, _cache) => {
|
|
30851
30897
|
var _a;
|
|
30852
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30853
|
-
createBaseVNode("div", _hoisted_2$
|
|
30854
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
30898
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
30899
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
30900
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
30855
30901
|
key: 0,
|
|
30856
30902
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
30857
30903
|
"image-class": "lupa-related-query-image",
|
|
@@ -30859,24 +30905,24 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
30859
30905
|
options: image.value
|
|
30860
30906
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
30861
30907
|
]),
|
|
30862
|
-
createBaseVNode("div", _hoisted_3$
|
|
30863
|
-
createBaseVNode("span", _hoisted_4$
|
|
30864
|
-
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
30908
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
30909
|
+
createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
|
|
30910
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
30865
30911
|
])
|
|
30866
30912
|
]);
|
|
30867
30913
|
};
|
|
30868
30914
|
}
|
|
30869
30915
|
});
|
|
30870
|
-
const _hoisted_1$
|
|
30916
|
+
const _hoisted_1$j = {
|
|
30871
30917
|
key: 0,
|
|
30872
30918
|
class: "lupa-related-queries"
|
|
30873
30919
|
};
|
|
30874
|
-
const _hoisted_2$
|
|
30920
|
+
const _hoisted_2$f = {
|
|
30875
30921
|
key: 0,
|
|
30876
30922
|
class: "lupa-related-queries-title"
|
|
30877
30923
|
};
|
|
30878
|
-
const _hoisted_3$
|
|
30879
|
-
const _sfc_main$
|
|
30924
|
+
const _hoisted_3$a = ["onClick"];
|
|
30925
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
30880
30926
|
__name: "RelatedQueries",
|
|
30881
30927
|
props: {
|
|
30882
30928
|
options: {}
|
|
@@ -30888,7 +30934,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
30888
30934
|
const optionsStore = useOptionsStore();
|
|
30889
30935
|
const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
|
|
30890
30936
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
30891
|
-
const
|
|
30937
|
+
const relatedQueries2 = ref([]);
|
|
30892
30938
|
const allDisplayItems = ref({});
|
|
30893
30939
|
const querySourceResultMap = ref({});
|
|
30894
30940
|
const currentSearchText = computed(() => {
|
|
@@ -30911,27 +30957,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
30911
30957
|
}
|
|
30912
30958
|
return filters;
|
|
30913
30959
|
});
|
|
30914
|
-
watch(
|
|
30915
|
-
|
|
30916
|
-
|
|
30917
|
-
|
|
30918
|
-
|
|
30919
|
-
|
|
30920
|
-
|
|
30921
|
-
|
|
30922
|
-
|
|
30923
|
-
|
|
30924
|
-
|
|
30925
|
-
|
|
30926
|
-
|
|
30927
|
-
|
|
30928
|
-
|
|
30929
|
-
|
|
30930
|
-
|
|
30931
|
-
|
|
30960
|
+
watch(
|
|
30961
|
+
searchResult,
|
|
30962
|
+
() => __async2(this, null, function* () {
|
|
30963
|
+
var _a;
|
|
30964
|
+
allDisplayItems.value = {};
|
|
30965
|
+
querySourceResultMap.value = {};
|
|
30966
|
+
if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
|
|
30967
|
+
return;
|
|
30968
|
+
}
|
|
30969
|
+
if (!props.options || !searchResult.value) {
|
|
30970
|
+
relatedQueries2.value = [];
|
|
30971
|
+
}
|
|
30972
|
+
const queries = yield extractRelatedSource(
|
|
30973
|
+
props.options.source,
|
|
30974
|
+
searchResult.value,
|
|
30975
|
+
searchResultOptions.value.options,
|
|
30976
|
+
currentFiltersWithoutQuerySources.value
|
|
30977
|
+
);
|
|
30978
|
+
relatedQueries2.value = queries;
|
|
30979
|
+
}),
|
|
30980
|
+
{ immediate: true }
|
|
30981
|
+
);
|
|
30932
30982
|
const hasEnoughRelatedQueries = computed(() => {
|
|
30933
30983
|
var _a;
|
|
30934
|
-
return ((_a =
|
|
30984
|
+
return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
|
|
30935
30985
|
});
|
|
30936
30986
|
const handleRelatedQueryClick = (query) => {
|
|
30937
30987
|
var _a;
|
|
@@ -30966,10 +31016,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
30966
31016
|
};
|
|
30967
31017
|
return (_ctx, _cache) => {
|
|
30968
31018
|
var _a, _b, _c, _d;
|
|
30969
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30970
|
-
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
31019
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
31020
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$f, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
30971
31021
|
createBaseVNode("ul", null, [
|
|
30972
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
31022
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
30973
31023
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
30974
31024
|
key: query.value + query.key + currentSearchText.value,
|
|
30975
31025
|
class: normalizeClass(getSelectedFilterClass(query))
|
|
@@ -30977,14 +31027,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
30977
31027
|
createBaseVNode("a", {
|
|
30978
31028
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
30979
31029
|
}, [
|
|
30980
|
-
createVNode(_sfc_main$
|
|
31030
|
+
createVNode(_sfc_main$m, {
|
|
30981
31031
|
"source-key": query.key,
|
|
30982
31032
|
options: _ctx.options,
|
|
30983
31033
|
query: query.value,
|
|
30984
31034
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
30985
31035
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
30986
31036
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
30987
|
-
], 8, _hoisted_3$
|
|
31037
|
+
], 8, _hoisted_3$a)
|
|
30988
31038
|
], 2)), [
|
|
30989
31039
|
[vShow, querySourceResultMap.value[query.value] !== false]
|
|
30990
31040
|
]);
|
|
@@ -31021,13 +31071,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
|
31021
31071
|
}
|
|
31022
31072
|
return null;
|
|
31023
31073
|
};
|
|
31024
|
-
const _hoisted_1$
|
|
31074
|
+
const _hoisted_1$i = {
|
|
31025
31075
|
key: 0,
|
|
31026
31076
|
class: "lupa-redirection-suggestion"
|
|
31027
31077
|
};
|
|
31028
|
-
const _hoisted_2$
|
|
31029
|
-
const _hoisted_3$
|
|
31030
|
-
const _sfc_main$
|
|
31078
|
+
const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
|
|
31079
|
+
const _hoisted_3$9 = ["href"];
|
|
31080
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
31031
31081
|
__name: "RedirectionSuggestions",
|
|
31032
31082
|
props: {
|
|
31033
31083
|
options: {}
|
|
@@ -31050,19 +31100,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
31050
31100
|
)
|
|
31051
31101
|
);
|
|
31052
31102
|
return (_ctx, _cache) => {
|
|
31053
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31054
|
-
createBaseVNode("h4", _hoisted_2$
|
|
31055
|
-
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$
|
|
31103
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
31104
|
+
createBaseVNode("h4", _hoisted_2$e, [
|
|
31105
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$9)
|
|
31056
31106
|
])
|
|
31057
31107
|
])) : createCommentVNode("", true);
|
|
31058
31108
|
};
|
|
31059
31109
|
}
|
|
31060
31110
|
});
|
|
31061
|
-
const _hoisted_1$
|
|
31111
|
+
const _hoisted_1$h = {
|
|
31062
31112
|
key: 0,
|
|
31063
31113
|
class: "lupa-refiners-loading-notice"
|
|
31064
31114
|
};
|
|
31065
|
-
const _sfc_main$
|
|
31115
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
31066
31116
|
__name: "RefinersLoadingNotice",
|
|
31067
31117
|
props: {
|
|
31068
31118
|
labels: {}
|
|
@@ -31073,13 +31123,153 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31073
31123
|
const { loadingRefiners } = storeToRefs(searchResultStore);
|
|
31074
31124
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
31075
31125
|
return (_ctx, _cache) => {
|
|
31076
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31126
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
31077
31127
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
31078
31128
|
createVNode(Spinner)
|
|
31079
31129
|
])) : createCommentVNode("", true);
|
|
31080
31130
|
};
|
|
31081
31131
|
}
|
|
31082
31132
|
});
|
|
31133
|
+
const _hoisted_1$g = { class: "lupa-related-query-item" };
|
|
31134
|
+
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
31135
|
+
const _hoisted_3$8 = { class: "lupa-related-query-label" };
|
|
31136
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
31137
|
+
const _hoisted_5$2 = {
|
|
31138
|
+
key: 0,
|
|
31139
|
+
class: "lupa-related-query-count"
|
|
31140
|
+
};
|
|
31141
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
31142
|
+
__name: "RelatedQueryPanelApi",
|
|
31143
|
+
props: {
|
|
31144
|
+
relatedQuery: {},
|
|
31145
|
+
options: {}
|
|
31146
|
+
},
|
|
31147
|
+
setup(__props) {
|
|
31148
|
+
const props = __props;
|
|
31149
|
+
const itemToDisplay = computed(() => {
|
|
31150
|
+
var _a;
|
|
31151
|
+
return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
|
|
31152
|
+
});
|
|
31153
|
+
const optionsStore = useOptionsStore();
|
|
31154
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
31155
|
+
const mainImage = computed(() => {
|
|
31156
|
+
var _a, _b, _c;
|
|
31157
|
+
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
31158
|
+
});
|
|
31159
|
+
const image = computed(() => {
|
|
31160
|
+
var _a, _b, _c;
|
|
31161
|
+
return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
|
|
31162
|
+
});
|
|
31163
|
+
const query = computed(() => {
|
|
31164
|
+
var _a;
|
|
31165
|
+
return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
|
|
31166
|
+
});
|
|
31167
|
+
const totalItemCount = computed(() => {
|
|
31168
|
+
var _a;
|
|
31169
|
+
return (_a = props.relatedQuery.total) != null ? _a : 0;
|
|
31170
|
+
});
|
|
31171
|
+
return (_ctx, _cache) => {
|
|
31172
|
+
var _a;
|
|
31173
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
31174
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
31175
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
31176
|
+
key: 0,
|
|
31177
|
+
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
31178
|
+
"image-class": "lupa-related-query-image",
|
|
31179
|
+
item: itemToDisplay.value,
|
|
31180
|
+
options: image.value
|
|
31181
|
+
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
31182
|
+
]),
|
|
31183
|
+
createBaseVNode("div", _hoisted_3$8, [
|
|
31184
|
+
createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
|
|
31185
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
31186
|
+
])
|
|
31187
|
+
]);
|
|
31188
|
+
};
|
|
31189
|
+
}
|
|
31190
|
+
});
|
|
31191
|
+
const _hoisted_1$f = {
|
|
31192
|
+
key: 0,
|
|
31193
|
+
class: "lupa-related-queries"
|
|
31194
|
+
};
|
|
31195
|
+
const _hoisted_2$c = {
|
|
31196
|
+
key: 0,
|
|
31197
|
+
class: "lupa-related-queries-title"
|
|
31198
|
+
};
|
|
31199
|
+
const _hoisted_3$7 = ["onClick"];
|
|
31200
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
31201
|
+
__name: "RelatedQueriesApi",
|
|
31202
|
+
props: {
|
|
31203
|
+
options: {}
|
|
31204
|
+
},
|
|
31205
|
+
setup(__props) {
|
|
31206
|
+
const searchResultStore = useSearchResultStore();
|
|
31207
|
+
const paramsStore = useParamsStore();
|
|
31208
|
+
const optionsStore = useOptionsStore();
|
|
31209
|
+
const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
|
|
31210
|
+
const relatedQueries2 = computed(() => {
|
|
31211
|
+
var _a, _b;
|
|
31212
|
+
return (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
|
|
31213
|
+
});
|
|
31214
|
+
const currentSearchText = computed(() => {
|
|
31215
|
+
var _a, _b;
|
|
31216
|
+
return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
|
|
31217
|
+
});
|
|
31218
|
+
const hasEnoughRelatedQueries = computed(() => {
|
|
31219
|
+
var _a;
|
|
31220
|
+
return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
|
|
31221
|
+
});
|
|
31222
|
+
const handleRelatedQueryClick = (relatedQuery) => {
|
|
31223
|
+
if (relatedQuery.action === "FILTER") {
|
|
31224
|
+
handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
|
|
31225
|
+
} else {
|
|
31226
|
+
paramsStore.goToResults({ searchText: relatedQuery.query });
|
|
31227
|
+
}
|
|
31228
|
+
};
|
|
31229
|
+
const handleFilter = (query) => {
|
|
31230
|
+
var _a;
|
|
31231
|
+
toggleTermFilter(
|
|
31232
|
+
paramsStore.appendParams,
|
|
31233
|
+
{ type: "terms", key: query.key, value: query.value },
|
|
31234
|
+
optionsStore.getQueryParamName,
|
|
31235
|
+
{},
|
|
31236
|
+
(_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
|
|
31237
|
+
);
|
|
31238
|
+
};
|
|
31239
|
+
const getSelectedFilterClass = (relatedQuery) => {
|
|
31240
|
+
var _a, _b, _c, _d, _e;
|
|
31241
|
+
if (relatedQuery.action !== "FILTER") {
|
|
31242
|
+
return "";
|
|
31243
|
+
}
|
|
31244
|
+
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(
|
|
31245
|
+
relatedQuery.filterValue
|
|
31246
|
+
)) ? "lupa-selected-related-query-filter" : "";
|
|
31247
|
+
};
|
|
31248
|
+
return (_ctx, _cache) => {
|
|
31249
|
+
var _a, _b, _c, _d;
|
|
31250
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
31251
|
+
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
31252
|
+
createBaseVNode("ul", null, [
|
|
31253
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
31254
|
+
return openBlock(), createElementBlock("li", {
|
|
31255
|
+
key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
|
|
31256
|
+
class: normalizeClass(getSelectedFilterClass(query))
|
|
31257
|
+
}, [
|
|
31258
|
+
createBaseVNode("a", {
|
|
31259
|
+
onClick: ($event) => handleRelatedQueryClick(query)
|
|
31260
|
+
}, [
|
|
31261
|
+
createVNode(_sfc_main$i, {
|
|
31262
|
+
relatedQuery: query,
|
|
31263
|
+
options: _ctx.options
|
|
31264
|
+
}, null, 8, ["relatedQuery", "options"])
|
|
31265
|
+
], 8, _hoisted_3$7)
|
|
31266
|
+
], 2);
|
|
31267
|
+
}), 128))
|
|
31268
|
+
])
|
|
31269
|
+
])) : createCommentVNode("", true);
|
|
31270
|
+
};
|
|
31271
|
+
}
|
|
31272
|
+
});
|
|
31083
31273
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
31084
31274
|
const _hoisted_2$b = {
|
|
31085
31275
|
class: "lupa-products",
|
|
@@ -31091,12 +31281,12 @@ const _hoisted_3$6 = {
|
|
|
31091
31281
|
"data-cy": "lupa-no-results-in-page"
|
|
31092
31282
|
};
|
|
31093
31283
|
const _hoisted_4$3 = {
|
|
31094
|
-
key:
|
|
31284
|
+
key: 5,
|
|
31095
31285
|
class: "lupa-empty-results",
|
|
31096
31286
|
"data-cy": "lupa-no-results"
|
|
31097
31287
|
};
|
|
31098
|
-
const _hoisted_5$1 = { key:
|
|
31099
|
-
const _hoisted_6$1 = { key:
|
|
31288
|
+
const _hoisted_5$1 = { key: 6 };
|
|
31289
|
+
const _hoisted_6$1 = { key: 7 };
|
|
31100
31290
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
31101
31291
|
__name: "SearchResultsProducts",
|
|
31102
31292
|
props: {
|
|
@@ -31117,7 +31307,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
31117
31307
|
columnCount,
|
|
31118
31308
|
searchResult,
|
|
31119
31309
|
layout,
|
|
31120
|
-
loading
|
|
31310
|
+
loading,
|
|
31311
|
+
relatedQueriesApiEnabled
|
|
31121
31312
|
} = storeToRefs(searchResultStore);
|
|
31122
31313
|
const productCardOptions = computed(() => {
|
|
31123
31314
|
return pick(props.options, [
|
|
@@ -31198,6 +31389,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
31198
31389
|
_lupaUpdatedQuery: searchResult.value.suggestedSearchText
|
|
31199
31390
|
} : void 0;
|
|
31200
31391
|
});
|
|
31392
|
+
const showLocalRelatedQueries = computed(() => {
|
|
31393
|
+
var _a;
|
|
31394
|
+
return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
|
|
31395
|
+
});
|
|
31396
|
+
const showApiRelatedQueries = computed(() => {
|
|
31397
|
+
return Boolean(relatedQueriesApiEnabled.value === true);
|
|
31398
|
+
});
|
|
31201
31399
|
const getProductKeyAction = (index, product) => {
|
|
31202
31400
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
31203
31401
|
};
|
|
@@ -31216,31 +31414,35 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
31216
31414
|
key: 0,
|
|
31217
31415
|
class: "lupa-loader"
|
|
31218
31416
|
})) : createCommentVNode("", true),
|
|
31219
|
-
createVNode(_sfc_main$
|
|
31417
|
+
createVNode(_sfc_main$k, {
|
|
31220
31418
|
options: _ctx.options.redirectionSuggestions
|
|
31221
31419
|
}, null, 8, ["options"]),
|
|
31222
|
-
createVNode(_sfc_main$
|
|
31420
|
+
createVNode(_sfc_main$p, {
|
|
31223
31421
|
options: _ctx.options,
|
|
31224
31422
|
location: "top",
|
|
31225
31423
|
sdkOptions: _ctx.options.options
|
|
31226
31424
|
}, null, 8, ["options", "sdkOptions"]),
|
|
31227
|
-
|
|
31425
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
31228
31426
|
key: 1,
|
|
31229
31427
|
options: _ctx.options.relatedQueries
|
|
31230
31428
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31231
|
-
|
|
31232
|
-
|
|
31429
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$h, {
|
|
31430
|
+
key: 2,
|
|
31431
|
+
options: _ctx.options.relatedQueries
|
|
31432
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31433
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
31434
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
31233
31435
|
key: 0,
|
|
31234
31436
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
31235
31437
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31236
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
31438
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
31237
31439
|
key: 1,
|
|
31238
31440
|
class: "lupa-toolbar-mobile",
|
|
31239
31441
|
options: _ctx.options,
|
|
31240
31442
|
"pagination-location": "top",
|
|
31241
31443
|
onFilter: filter2
|
|
31242
31444
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31243
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
31445
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
31244
31446
|
key: 2,
|
|
31245
31447
|
class: normalizeClass(currentFiltersClass.value),
|
|
31246
31448
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31248,13 +31450,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
31248
31450
|
expandable: !desktopFiltersExpanded.value
|
|
31249
31451
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
31250
31452
|
], 64)) : createCommentVNode("", true),
|
|
31251
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
31252
|
-
createVNode(_sfc_main$
|
|
31453
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
31454
|
+
createVNode(_sfc_main$E, {
|
|
31253
31455
|
class: "lupa-toolbar-top",
|
|
31254
31456
|
options: _ctx.options,
|
|
31255
31457
|
"pagination-location": "top"
|
|
31256
31458
|
}, null, 8, ["options"]),
|
|
31257
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
31459
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
31258
31460
|
key: 0,
|
|
31259
31461
|
class: normalizeClass(currentFiltersClass.value),
|
|
31260
31462
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31270,7 +31472,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
31270
31472
|
options: productCardOptions.value
|
|
31271
31473
|
});
|
|
31272
31474
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
31273
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31475
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
31274
31476
|
style: normalizeStyle(columnSize.value),
|
|
31275
31477
|
key: getProductKeyAction(index, product),
|
|
31276
31478
|
product,
|
|
@@ -31287,12 +31489,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
31287
31489
|
onClick: goToFirstPage
|
|
31288
31490
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
31289
31491
|
])) : createCommentVNode("", true),
|
|
31290
|
-
createVNode(_sfc_main$
|
|
31492
|
+
createVNode(_sfc_main$E, {
|
|
31291
31493
|
class: "lupa-toolbar-bottom",
|
|
31292
31494
|
options: _ctx.options,
|
|
31293
31495
|
"pagination-location": "bottom"
|
|
31294
31496
|
}, null, 8, ["options"]),
|
|
31295
|
-
createVNode(_sfc_main$
|
|
31497
|
+
createVNode(_sfc_main$p, {
|
|
31296
31498
|
options: _ctx.options,
|
|
31297
31499
|
location: "bottom",
|
|
31298
31500
|
sdkOptions: _ctx.options.options
|
|
@@ -31301,18 +31503,18 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
31301
31503
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
31302
31504
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
31303
31505
|
])) : createCommentVNode("", true),
|
|
31304
|
-
createVNode(_sfc_main$
|
|
31506
|
+
createVNode(_sfc_main$j, {
|
|
31305
31507
|
labels: _ctx.options.labels
|
|
31306
31508
|
}, null, 8, ["labels"]),
|
|
31307
31509
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
31308
|
-
createVNode(_sfc_main$
|
|
31510
|
+
createVNode(_sfc_main$r, {
|
|
31309
31511
|
labels: similarQueriesLabels.value,
|
|
31310
31512
|
columnSize: columnSize.value,
|
|
31311
31513
|
productCardOptions: productCardOptions.value
|
|
31312
31514
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
31313
31515
|
])) : createCommentVNode("", true),
|
|
31314
31516
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
31315
|
-
createVNode(_sfc_main$
|
|
31517
|
+
createVNode(_sfc_main$n, {
|
|
31316
31518
|
labels: similarResultsLabels.value,
|
|
31317
31519
|
columnSize: columnSize.value,
|
|
31318
31520
|
productCardOptions: productCardOptions.value
|
|
@@ -31391,14 +31593,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
31391
31593
|
])) : createCommentVNode("", true),
|
|
31392
31594
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31393
31595
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
31394
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31596
|
+
return openBlock(), createBlock(_sfc_main$Y, {
|
|
31395
31597
|
key: getCategoryKey(child),
|
|
31396
31598
|
item: child,
|
|
31397
31599
|
options: categoryOptions.value
|
|
31398
31600
|
}, null, 8, ["item", "options"]);
|
|
31399
31601
|
}), 128))
|
|
31400
31602
|
])) : createCommentVNode("", true),
|
|
31401
|
-
createVNode(_sfc_main$
|
|
31603
|
+
createVNode(_sfc_main$E, {
|
|
31402
31604
|
class: "lupa-toolbar-mobile",
|
|
31403
31605
|
"pagination-location": "top",
|
|
31404
31606
|
options: _ctx.options
|
|
@@ -31551,14 +31753,23 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31551
31753
|
return;
|
|
31552
31754
|
}
|
|
31553
31755
|
LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
|
|
31554
|
-
var _a, _b;
|
|
31756
|
+
var _a, _b, _c;
|
|
31555
31757
|
if (res.success) {
|
|
31556
31758
|
handleResults({ queryKey: props.options.queryKey, results: res });
|
|
31557
31759
|
searchResultStore.add(requestId, __spreadValues2({}, res));
|
|
31760
|
+
searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
|
|
31761
|
+
if (res.hasRelatedQueries) {
|
|
31762
|
+
searchResultStore.queryRelatedQueries(
|
|
31763
|
+
props.options.queryKey,
|
|
31764
|
+
publicQuery,
|
|
31765
|
+
res,
|
|
31766
|
+
props.options.options
|
|
31767
|
+
);
|
|
31768
|
+
}
|
|
31558
31769
|
if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
|
|
31559
31770
|
queryRefiners(requestId, publicQuery);
|
|
31560
31771
|
}
|
|
31561
|
-
} else if ((
|
|
31772
|
+
} else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
|
|
31562
31773
|
props.options.options.onError(res);
|
|
31563
31774
|
}
|
|
31564
31775
|
}).catch((err) => {
|
|
@@ -31697,8 +31908,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31697
31908
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
31698
31909
|
}, [
|
|
31699
31910
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
31700
|
-
createVNode(_sfc_main
|
|
31701
|
-
createVNode(_sfc_main
|
|
31911
|
+
createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
31912
|
+
createVNode(_sfc_main$$, {
|
|
31702
31913
|
"show-summary": true,
|
|
31703
31914
|
options: _ctx.options,
|
|
31704
31915
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -31708,12 +31919,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31708
31919
|
key: 1,
|
|
31709
31920
|
options: _ctx.options
|
|
31710
31921
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31711
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
31922
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$N, {
|
|
31712
31923
|
key: 2,
|
|
31713
31924
|
options: _ctx.options.filters,
|
|
31714
31925
|
onFilter: handleParamsChange
|
|
31715
31926
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31716
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
31927
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$M, {
|
|
31717
31928
|
key: 3,
|
|
31718
31929
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
31719
31930
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -31722,7 +31933,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31722
31933
|
id: "lupa-search-results",
|
|
31723
31934
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
31724
31935
|
}, [
|
|
31725
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
31936
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
31726
31937
|
key: 0,
|
|
31727
31938
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
31728
31939
|
ref_key: "searchResultsFilters",
|
|
@@ -31730,8 +31941,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31730
31941
|
onFilter: handleParamsChange
|
|
31731
31942
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31732
31943
|
createBaseVNode("div", _hoisted_2$9, [
|
|
31733
|
-
createVNode(_sfc_main
|
|
31734
|
-
createVNode(_sfc_main
|
|
31944
|
+
createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
31945
|
+
createVNode(_sfc_main$$, {
|
|
31735
31946
|
options: _ctx.options,
|
|
31736
31947
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
31737
31948
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -31747,8 +31958,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31747
31958
|
}, 8, ["options", "ssr"])
|
|
31748
31959
|
])
|
|
31749
31960
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
31750
|
-
createVNode(_sfc_main
|
|
31751
|
-
createVNode(_sfc_main
|
|
31961
|
+
createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
31962
|
+
createVNode(_sfc_main$$, {
|
|
31752
31963
|
options: _ctx.options,
|
|
31753
31964
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
31754
31965
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -31756,7 +31967,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
31756
31967
|
id: "lupa-search-results",
|
|
31757
31968
|
class: normalizeClass(indicatorClasses.value)
|
|
31758
31969
|
}, [
|
|
31759
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
31970
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
31760
31971
|
key: 0,
|
|
31761
31972
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
31762
31973
|
ref_key: "searchResultsFilters",
|
|
@@ -31908,7 +32119,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31908
32119
|
onClick: withModifiers(innerClick, ["stop"])
|
|
31909
32120
|
}, [
|
|
31910
32121
|
createBaseVNode("div", _hoisted_2$7, [
|
|
31911
|
-
createVNode(_sfc_main$
|
|
32122
|
+
createVNode(_sfc_main$12, {
|
|
31912
32123
|
options: fullSearchBoxOptions.value,
|
|
31913
32124
|
"is-search-container": true,
|
|
31914
32125
|
ref_key: "searchBox",
|
|
@@ -32807,7 +33018,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32807
33018
|
key: getProductKeyAction(index, product)
|
|
32808
33019
|
}, {
|
|
32809
33020
|
default: withCtx(() => [
|
|
32810
|
-
createVNode(_sfc_main$
|
|
33021
|
+
createVNode(_sfc_main$s, {
|
|
32811
33022
|
product,
|
|
32812
33023
|
options: _ctx.options,
|
|
32813
33024
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -32822,7 +33033,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32822
33033
|
_: 1
|
|
32823
33034
|
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
32824
33035
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
32825
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33036
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
32826
33037
|
style: normalizeStyle(columnSize.value),
|
|
32827
33038
|
key: getProductKeyAction(index, product),
|
|
32828
33039
|
product,
|
|
@@ -33087,7 +33298,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
33087
33298
|
createBaseVNode("a", {
|
|
33088
33299
|
href: getLink(product)
|
|
33089
33300
|
}, [
|
|
33090
|
-
createVNode(_sfc_main$
|
|
33301
|
+
createVNode(_sfc_main$D, {
|
|
33091
33302
|
item: product,
|
|
33092
33303
|
options: image.value
|
|
33093
33304
|
}, null, 8, ["item", "options"])
|
|
@@ -33251,7 +33462,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
33251
33462
|
return (_ctx, _cache) => {
|
|
33252
33463
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
33253
33464
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
33254
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33465
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
33255
33466
|
class: "lupa-chat-product-card",
|
|
33256
33467
|
key: getProductKeyAction(index, product),
|
|
33257
33468
|
product,
|
|
@@ -33444,7 +33655,7 @@ const _hoisted_4 = {
|
|
|
33444
33655
|
key: 0,
|
|
33445
33656
|
class: "lupasearch-chat-content"
|
|
33446
33657
|
};
|
|
33447
|
-
const _sfc_main$
|
|
33658
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
33448
33659
|
__name: "ChatContainer",
|
|
33449
33660
|
props: {
|
|
33450
33661
|
options: {}
|
|
@@ -39462,7 +39673,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
39462
39673
|
};
|
|
39463
39674
|
__expose({ fetch: fetch2 });
|
|
39464
39675
|
return (_ctx, _cache) => {
|
|
39465
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
39676
|
+
return openBlock(), createBlock(unref(_sfc_main$12), {
|
|
39466
39677
|
options: fullSearchBoxOptions.value,
|
|
39467
39678
|
ref_key: "searchBox",
|
|
39468
39679
|
ref: searchBox2
|
|
@@ -40098,7 +40309,7 @@ const chat = (options, mountOptions) => {
|
|
|
40098
40309
|
const instance = createVue(
|
|
40099
40310
|
options.displayOptions.containerSelector,
|
|
40100
40311
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
40101
|
-
_sfc_main$
|
|
40312
|
+
_sfc_main$1y,
|
|
40102
40313
|
{
|
|
40103
40314
|
options
|
|
40104
40315
|
}
|