@getlupa/client 1.17.14 → 1.18.1
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 +816 -596
- package/dist/lupaSearch.js +816 -596
- package/dist/lupaSearch.mjs +816 -596
- package/dist/lupaSearch.umd.js +816 -596
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -6955,6 +6955,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
6955
6955
|
const errors = yield res.json();
|
|
6956
6956
|
return { success: false, errors };
|
|
6957
6957
|
});
|
|
6958
|
+
const relatedQueries = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6959
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
|
|
6960
|
+
if (res.status < 400) {
|
|
6961
|
+
const data = yield res.json();
|
|
6962
|
+
return Object.assign(Object.assign({}, data), { success: true });
|
|
6963
|
+
}
|
|
6964
|
+
const errors = yield res.json();
|
|
6965
|
+
return { success: false, errors };
|
|
6966
|
+
});
|
|
6958
6967
|
const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6959
6968
|
const idParam = ids.map((id) => `ids=${id}`).join("&");
|
|
6960
6969
|
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
|
|
@@ -7036,6 +7045,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7036
7045
|
queryRefiners: (queryKey, publicQuery, options = null) => {
|
|
7037
7046
|
return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
7038
7047
|
},
|
|
7048
|
+
queryRelated: (queryKey, publicQuery, options = null) => {
|
|
7049
|
+
return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
7050
|
+
},
|
|
7039
7051
|
suggestions: (queryKey, suggestionQuery, options = null) => {
|
|
7040
7052
|
if (options === null || options === void 0 ? void 0 : options.customUrl) {
|
|
7041
7053
|
return suggestCustom(suggestionQuery, options);
|
|
@@ -13992,9 +14004,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
13992
14004
|
value: Array.isArray(singleFacetParam.value) ? singleFacetParam.value[0] : singleFacetParam.value
|
|
13993
14005
|
})
|
|
13994
14006
|
] : [];
|
|
14007
|
+
const limitParam = params.value[QUERY_PARAMS_PARSED.LIMIT] ? [
|
|
14008
|
+
{
|
|
14009
|
+
name: optionsStore.getQueryParamName(QUERY_PARAMS$1.LIMIT),
|
|
14010
|
+
value: limit.value.toString()
|
|
14011
|
+
}
|
|
14012
|
+
] : [];
|
|
13995
14013
|
appendParams({
|
|
13996
14014
|
params: [
|
|
13997
14015
|
{ name: optionsStore.getQueryParamName(QUERY_PARAMS$1.QUERY), value: searchText },
|
|
14016
|
+
...limitParam,
|
|
13998
14017
|
...facetParam
|
|
13999
14018
|
],
|
|
14000
14019
|
paramsToRemove: "all",
|
|
@@ -14295,11 +14314,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14295
14314
|
resetHighlightIndex
|
|
14296
14315
|
};
|
|
14297
14316
|
});
|
|
14298
|
-
const _hoisted_1$
|
|
14299
|
-
const _hoisted_2$
|
|
14300
|
-
const _hoisted_3$
|
|
14301
|
-
const _hoisted_4$
|
|
14302
|
-
const _hoisted_5$
|
|
14317
|
+
const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
|
|
14318
|
+
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
14319
|
+
const _hoisted_3$E = { id: "lupa-search-box-input" };
|
|
14320
|
+
const _hoisted_4$v = ["value"];
|
|
14321
|
+
const _hoisted_5$l = ["aria-label", "placeholder"];
|
|
14303
14322
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
14304
14323
|
const _hoisted_7$7 = [
|
|
14305
14324
|
_hoisted_6$9
|
|
@@ -14308,7 +14327,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14308
14327
|
key: 0,
|
|
14309
14328
|
class: "lupa-close-label"
|
|
14310
14329
|
};
|
|
14311
|
-
const _sfc_main$
|
|
14330
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
14312
14331
|
__name: "SearchBoxInput",
|
|
14313
14332
|
props: {
|
|
14314
14333
|
options: {},
|
|
@@ -14392,20 +14411,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14392
14411
|
};
|
|
14393
14412
|
__expose({ focus });
|
|
14394
14413
|
return (_ctx, _cache) => {
|
|
14395
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14396
|
-
createBaseVNode("div", _hoisted_2$
|
|
14414
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
14415
|
+
createBaseVNode("div", _hoisted_2$V, [
|
|
14397
14416
|
createBaseVNode("div", {
|
|
14398
14417
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
14399
14418
|
onClick: clear2
|
|
14400
14419
|
}, null, 2)
|
|
14401
14420
|
]),
|
|
14402
|
-
createBaseVNode("div", _hoisted_3$
|
|
14421
|
+
createBaseVNode("div", _hoisted_3$E, [
|
|
14403
14422
|
createBaseVNode("input", {
|
|
14404
14423
|
class: "lupa-hint",
|
|
14405
14424
|
"aria-hidden": "true",
|
|
14406
14425
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
14407
14426
|
disabled: ""
|
|
14408
|
-
}, null, 8, _hoisted_4$
|
|
14427
|
+
}, null, 8, _hoisted_4$v),
|
|
14409
14428
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
14410
14429
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
14411
14430
|
}, inputAttributes.value, {
|
|
@@ -14419,7 +14438,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14419
14438
|
placeholder: labels.value.placeholder,
|
|
14420
14439
|
onInput: handleInput,
|
|
14421
14440
|
onFocus: handleFocus
|
|
14422
|
-
}), null, 16, _hoisted_5$
|
|
14441
|
+
}), null, 16, _hoisted_5$l), [
|
|
14423
14442
|
[vModelText, inputValue.value]
|
|
14424
14443
|
]),
|
|
14425
14444
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -14438,7 +14457,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14438
14457
|
};
|
|
14439
14458
|
}
|
|
14440
14459
|
});
|
|
14441
|
-
const _sfc_main$
|
|
14460
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
14442
14461
|
__name: "SearchBoxMoreResults",
|
|
14443
14462
|
props: {
|
|
14444
14463
|
labels: {},
|
|
@@ -14475,9 +14494,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14475
14494
|
};
|
|
14476
14495
|
}
|
|
14477
14496
|
});
|
|
14478
|
-
const _hoisted_1$
|
|
14479
|
-
const _hoisted_2$
|
|
14480
|
-
const _sfc_main$
|
|
14497
|
+
const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
|
|
14498
|
+
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
14499
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
14481
14500
|
__name: "SearchBoxHistoryItem",
|
|
14482
14501
|
props: {
|
|
14483
14502
|
item: {},
|
|
@@ -14493,8 +14512,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14493
14512
|
emit2("click", { query: props.item });
|
|
14494
14513
|
};
|
|
14495
14514
|
return (_ctx, _cache) => {
|
|
14496
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14497
|
-
createBaseVNode("div", _hoisted_2$
|
|
14515
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1j, [
|
|
14516
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
14498
14517
|
createBaseVNode("div", {
|
|
14499
14518
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
14500
14519
|
onClick: click2
|
|
@@ -14508,11 +14527,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14508
14527
|
};
|
|
14509
14528
|
}
|
|
14510
14529
|
});
|
|
14511
|
-
const _hoisted_1$
|
|
14530
|
+
const _hoisted_1$1i = {
|
|
14512
14531
|
key: 0,
|
|
14513
14532
|
class: "lupa-search-box-history-panel"
|
|
14514
14533
|
};
|
|
14515
|
-
const _sfc_main$
|
|
14534
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
14516
14535
|
__name: "SearchBoxHistoryPanel",
|
|
14517
14536
|
props: {
|
|
14518
14537
|
options: {}
|
|
@@ -14562,9 +14581,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14562
14581
|
}
|
|
14563
14582
|
};
|
|
14564
14583
|
return (_ctx, _cache) => {
|
|
14565
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14584
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
|
|
14566
14585
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
14567
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14586
|
+
return openBlock(), createBlock(_sfc_main$1v, {
|
|
14568
14587
|
key: item,
|
|
14569
14588
|
item,
|
|
14570
14589
|
highlighted: index === highlightIndex.value,
|
|
@@ -14580,15 +14599,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14580
14599
|
};
|
|
14581
14600
|
}
|
|
14582
14601
|
});
|
|
14583
|
-
const _hoisted_1$
|
|
14584
|
-
const _sfc_main$
|
|
14602
|
+
const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
|
|
14603
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
14585
14604
|
__name: "SearchBoxNoResults",
|
|
14586
14605
|
props: {
|
|
14587
14606
|
labels: {}
|
|
14588
14607
|
},
|
|
14589
14608
|
setup(__props) {
|
|
14590
14609
|
return (_ctx, _cache) => {
|
|
14591
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
14610
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
|
|
14592
14611
|
};
|
|
14593
14612
|
}
|
|
14594
14613
|
});
|
|
@@ -14620,26 +14639,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14620
14639
|
}
|
|
14621
14640
|
return gridTemplate.join(" ");
|
|
14622
14641
|
};
|
|
14623
|
-
const _hoisted_1$
|
|
14624
|
-
const _hoisted_2$
|
|
14642
|
+
const _hoisted_1$1g = ["innerHTML"];
|
|
14643
|
+
const _hoisted_2$T = {
|
|
14625
14644
|
key: 1,
|
|
14626
14645
|
"data-cy": "lupa-suggestion-value",
|
|
14627
14646
|
class: "lupa-suggestion-value"
|
|
14628
14647
|
};
|
|
14629
|
-
const _hoisted_3$
|
|
14648
|
+
const _hoisted_3$D = {
|
|
14630
14649
|
key: 2,
|
|
14631
14650
|
class: "lupa-suggestion-facet",
|
|
14632
14651
|
"data-cy": "lupa-suggestion-facet"
|
|
14633
14652
|
};
|
|
14634
|
-
const _hoisted_4$
|
|
14653
|
+
const _hoisted_4$u = {
|
|
14635
14654
|
class: "lupa-suggestion-facet-label",
|
|
14636
14655
|
"data-cy": "lupa-suggestion-facet-label"
|
|
14637
14656
|
};
|
|
14638
|
-
const _hoisted_5$
|
|
14657
|
+
const _hoisted_5$k = {
|
|
14639
14658
|
class: "lupa-suggestion-facet-value",
|
|
14640
14659
|
"data-cy": "lupa-suggestion-facet-value"
|
|
14641
14660
|
};
|
|
14642
|
-
const _sfc_main$
|
|
14661
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
14643
14662
|
__name: "SearchBoxSuggestion",
|
|
14644
14663
|
props: {
|
|
14645
14664
|
suggestion: {},
|
|
@@ -14675,20 +14694,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14675
14694
|
class: "lupa-suggestion-value",
|
|
14676
14695
|
"data-cy": "lupa-suggestion-value",
|
|
14677
14696
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
14678
|
-
}, null, 8, _hoisted_1$
|
|
14679
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14680
|
-
createBaseVNode("span", _hoisted_4$
|
|
14681
|
-
createBaseVNode("span", _hoisted_5$
|
|
14697
|
+
}, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
14698
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
14699
|
+
createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
|
|
14700
|
+
createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
14682
14701
|
])) : createCommentVNode("", true)
|
|
14683
14702
|
]);
|
|
14684
14703
|
};
|
|
14685
14704
|
}
|
|
14686
14705
|
});
|
|
14687
|
-
const _hoisted_1$
|
|
14706
|
+
const _hoisted_1$1f = {
|
|
14688
14707
|
id: "lupa-search-box-suggestions",
|
|
14689
14708
|
"data-cy": "lupa-search-box-suggestions"
|
|
14690
14709
|
};
|
|
14691
|
-
const _sfc_main$
|
|
14710
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
14692
14711
|
__name: "SearchBoxSuggestions",
|
|
14693
14712
|
props: {
|
|
14694
14713
|
items: {},
|
|
@@ -14748,9 +14767,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14748
14767
|
});
|
|
14749
14768
|
});
|
|
14750
14769
|
return (_ctx, _cache) => {
|
|
14751
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14770
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
14752
14771
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
14753
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14772
|
+
return openBlock(), createBlock(_sfc_main$1s, {
|
|
14754
14773
|
key: getSuggestionKey(item),
|
|
14755
14774
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
14756
14775
|
suggestion: item,
|
|
@@ -14778,7 +14797,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14778
14797
|
}, timeout);
|
|
14779
14798
|
};
|
|
14780
14799
|
};
|
|
14781
|
-
const _sfc_main$
|
|
14800
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
14782
14801
|
__name: "SearchBoxSuggestionsWrapper",
|
|
14783
14802
|
props: {
|
|
14784
14803
|
panel: {},
|
|
@@ -14820,7 +14839,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14820
14839
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
14821
14840
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
14822
14841
|
return (_ctx, _cache) => {
|
|
14823
|
-
return openBlock(), createBlock(_sfc_main$
|
|
14842
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
14824
14843
|
items: searchResult.value,
|
|
14825
14844
|
highlight: _ctx.panel.highlight,
|
|
14826
14845
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -23874,9 +23893,9 @@ and ensure you are accounting for this risk.
|
|
|
23874
23893
|
targetImage.src = placeholder;
|
|
23875
23894
|
}
|
|
23876
23895
|
};
|
|
23877
|
-
const _hoisted_1$
|
|
23878
|
-
const _hoisted_2$
|
|
23879
|
-
const _sfc_main$
|
|
23896
|
+
const _hoisted_1$1e = ["src"];
|
|
23897
|
+
const _hoisted_2$S = ["src"];
|
|
23898
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
23880
23899
|
__name: "ProductImage",
|
|
23881
23900
|
props: {
|
|
23882
23901
|
item: {},
|
|
@@ -24018,7 +24037,7 @@ and ensure you are accounting for this risk.
|
|
|
24018
24037
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
24019
24038
|
onError: replaceWithPlaceholder,
|
|
24020
24039
|
key: finalUrl.value
|
|
24021
|
-
}), null, 16, _hoisted_1$
|
|
24040
|
+
}), null, 16, _hoisted_1$1e))
|
|
24022
24041
|
]),
|
|
24023
24042
|
_: 1
|
|
24024
24043
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -24026,12 +24045,12 @@ and ensure you are accounting for this risk.
|
|
|
24026
24045
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
24027
24046
|
style: styleOverride.value,
|
|
24028
24047
|
src: finalMainImageUrl.value
|
|
24029
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
24048
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
|
|
24030
24049
|
], 38);
|
|
24031
24050
|
};
|
|
24032
24051
|
}
|
|
24033
24052
|
});
|
|
24034
|
-
const _sfc_main$
|
|
24053
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
24035
24054
|
__name: "SearchBoxProductImage",
|
|
24036
24055
|
props: {
|
|
24037
24056
|
item: {},
|
|
@@ -24039,7 +24058,7 @@ and ensure you are accounting for this risk.
|
|
|
24039
24058
|
},
|
|
24040
24059
|
setup(__props) {
|
|
24041
24060
|
return (_ctx, _cache) => {
|
|
24042
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24061
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
24043
24062
|
item: _ctx.item,
|
|
24044
24063
|
options: _ctx.options,
|
|
24045
24064
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -24048,12 +24067,12 @@ and ensure you are accounting for this risk.
|
|
|
24048
24067
|
};
|
|
24049
24068
|
}
|
|
24050
24069
|
});
|
|
24051
|
-
const _hoisted_1$
|
|
24052
|
-
const _hoisted_2$
|
|
24070
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
24071
|
+
const _hoisted_2$R = {
|
|
24053
24072
|
key: 1,
|
|
24054
24073
|
class: "lupa-search-box-product-title"
|
|
24055
24074
|
};
|
|
24056
|
-
const _sfc_main$
|
|
24075
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
24057
24076
|
__name: "SearchBoxProductTitle",
|
|
24058
24077
|
props: {
|
|
24059
24078
|
item: {},
|
|
@@ -24076,18 +24095,18 @@ and ensure you are accounting for this risk.
|
|
|
24076
24095
|
key: 0,
|
|
24077
24096
|
class: "lupa-search-box-product-title",
|
|
24078
24097
|
innerHTML: sanitizedTitle.value
|
|
24079
|
-
}, null, 8, _hoisted_1$
|
|
24098
|
+
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
24080
24099
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
24081
24100
|
]));
|
|
24082
24101
|
};
|
|
24083
24102
|
}
|
|
24084
24103
|
});
|
|
24085
|
-
const _hoisted_1$
|
|
24086
|
-
const _hoisted_2$
|
|
24104
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
24105
|
+
const _hoisted_2$Q = {
|
|
24087
24106
|
key: 1,
|
|
24088
24107
|
class: "lupa-search-box-product-description"
|
|
24089
24108
|
};
|
|
24090
|
-
const _sfc_main$
|
|
24109
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
24091
24110
|
__name: "SearchBoxProductDescription",
|
|
24092
24111
|
props: {
|
|
24093
24112
|
item: {},
|
|
@@ -24110,12 +24129,12 @@ and ensure you are accounting for this risk.
|
|
|
24110
24129
|
key: 0,
|
|
24111
24130
|
class: "lupa-search-box-product-description",
|
|
24112
24131
|
innerHTML: sanitizedDescription.value
|
|
24113
|
-
}, null, 8, _hoisted_1$
|
|
24132
|
+
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
|
|
24114
24133
|
};
|
|
24115
24134
|
}
|
|
24116
24135
|
});
|
|
24117
|
-
const _hoisted_1$
|
|
24118
|
-
const _sfc_main$
|
|
24136
|
+
const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
|
|
24137
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
24119
24138
|
__name: "SearchBoxProductPrice",
|
|
24120
24139
|
props: {
|
|
24121
24140
|
item: {},
|
|
@@ -24134,13 +24153,13 @@ and ensure you are accounting for this risk.
|
|
|
24134
24153
|
);
|
|
24135
24154
|
});
|
|
24136
24155
|
return (_ctx, _cache) => {
|
|
24137
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24156
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
24138
24157
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
24139
24158
|
]);
|
|
24140
24159
|
};
|
|
24141
24160
|
}
|
|
24142
24161
|
});
|
|
24143
|
-
const _sfc_main$
|
|
24162
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
24144
24163
|
__name: "SearchBoxProductRegularPrice",
|
|
24145
24164
|
props: {
|
|
24146
24165
|
item: {},
|
|
@@ -24168,12 +24187,12 @@ and ensure you are accounting for this risk.
|
|
|
24168
24187
|
};
|
|
24169
24188
|
}
|
|
24170
24189
|
});
|
|
24171
|
-
const _hoisted_1$
|
|
24172
|
-
const _hoisted_2$
|
|
24173
|
-
const _hoisted_3$
|
|
24174
|
-
const _hoisted_4$
|
|
24175
|
-
const _hoisted_5$
|
|
24176
|
-
const _sfc_main$
|
|
24190
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
24191
|
+
const _hoisted_2$P = { key: 0 };
|
|
24192
|
+
const _hoisted_3$C = { key: 1 };
|
|
24193
|
+
const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
|
|
24194
|
+
const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
|
|
24195
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
24177
24196
|
__name: "SearchBoxProductCustom",
|
|
24178
24197
|
props: {
|
|
24179
24198
|
item: {},
|
|
@@ -24199,20 +24218,20 @@ and ensure you are accounting for this risk.
|
|
|
24199
24218
|
key: 0,
|
|
24200
24219
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
24201
24220
|
innerHTML: text.value
|
|
24202
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24221
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
24203
24222
|
key: 1,
|
|
24204
24223
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
24205
24224
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
24206
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24207
|
-
createBaseVNode("div", _hoisted_4$
|
|
24208
|
-
createBaseVNode("div", _hoisted_5$
|
|
24225
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
24226
|
+
createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
|
|
24227
|
+
createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
|
|
24209
24228
|
]))
|
|
24210
24229
|
], 16));
|
|
24211
24230
|
};
|
|
24212
24231
|
}
|
|
24213
24232
|
});
|
|
24214
|
-
const _hoisted_1$
|
|
24215
|
-
const _sfc_main$
|
|
24233
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
24234
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
24216
24235
|
__name: "SearchBoxProductCustomHtml",
|
|
24217
24236
|
props: {
|
|
24218
24237
|
item: {},
|
|
@@ -24237,7 +24256,7 @@ and ensure you are accounting for this risk.
|
|
|
24237
24256
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
24238
24257
|
class: className.value,
|
|
24239
24258
|
innerHTML: text.value
|
|
24240
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
24259
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
|
|
24241
24260
|
};
|
|
24242
24261
|
}
|
|
24243
24262
|
});
|
|
@@ -24294,10 +24313,13 @@ and ensure you are accounting for this risk.
|
|
|
24294
24313
|
const loading = ref(false);
|
|
24295
24314
|
const loadingFacets = ref(false);
|
|
24296
24315
|
const loadingRefiners = ref(false);
|
|
24316
|
+
const loadingRelatedQueries = ref(false);
|
|
24297
24317
|
const isMobileSidebarVisible = ref(false);
|
|
24298
24318
|
const relatedCategoryChildren = ref([]);
|
|
24299
24319
|
const lastRequestId = ref("");
|
|
24300
24320
|
const searchRequestResults = ref({});
|
|
24321
|
+
const relatedQueriesResult = ref({});
|
|
24322
|
+
const relatedQueriesApiEnabled = ref(null);
|
|
24301
24323
|
const lastResultsSource = ref(void 0);
|
|
24302
24324
|
const optionsStore = useOptionsStore();
|
|
24303
24325
|
const paramsStore = useParamsStore();
|
|
@@ -24451,6 +24473,9 @@ and ensure you are accounting for this risk.
|
|
|
24451
24473
|
const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
|
|
24452
24474
|
columnCount.value = grid.columns[screenWidth];
|
|
24453
24475
|
};
|
|
24476
|
+
const setRelatedQueriesApiEnabled = (enabled) => {
|
|
24477
|
+
relatedQueriesApiEnabled.value = enabled;
|
|
24478
|
+
};
|
|
24454
24479
|
const setAddToCartAmount = (newAddToCartAmount) => {
|
|
24455
24480
|
if (!newAddToCartAmount) {
|
|
24456
24481
|
return;
|
|
@@ -24481,6 +24506,27 @@ and ensure you are accounting for this risk.
|
|
|
24481
24506
|
const setRelatedCategoryChildren = (children) => {
|
|
24482
24507
|
relatedCategoryChildren.value = [...children];
|
|
24483
24508
|
};
|
|
24509
|
+
const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(void 0, null, function* () {
|
|
24510
|
+
var _a, _b;
|
|
24511
|
+
loadingRelatedQueries.value = true;
|
|
24512
|
+
const context = getLupaTrackingContext();
|
|
24513
|
+
const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
|
|
24514
|
+
const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
|
|
24515
|
+
searchText
|
|
24516
|
+
}), context), {
|
|
24517
|
+
modifiers: { facets: false, refiners: true }
|
|
24518
|
+
});
|
|
24519
|
+
LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
|
|
24520
|
+
if (!res.success) {
|
|
24521
|
+
return;
|
|
24522
|
+
}
|
|
24523
|
+
relatedQueriesResult.value = res;
|
|
24524
|
+
}).catch((err) => {
|
|
24525
|
+
console.error(err);
|
|
24526
|
+
}).finally(() => {
|
|
24527
|
+
loadingRelatedQueries.value = false;
|
|
24528
|
+
});
|
|
24529
|
+
});
|
|
24484
24530
|
return {
|
|
24485
24531
|
isMobileSidebarVisible,
|
|
24486
24532
|
searchResult,
|
|
@@ -24505,6 +24551,8 @@ and ensure you are accounting for this risk.
|
|
|
24505
24551
|
hideFiltersOnExactMatchForKeys,
|
|
24506
24552
|
relatedCategoryChildren,
|
|
24507
24553
|
searchRequestResults,
|
|
24554
|
+
relatedQueriesResult,
|
|
24555
|
+
relatedQueriesApiEnabled,
|
|
24508
24556
|
lastResultsSource,
|
|
24509
24557
|
setSidebarState,
|
|
24510
24558
|
queryFacet,
|
|
@@ -24517,15 +24565,17 @@ and ensure you are accounting for this risk.
|
|
|
24517
24565
|
setLoading,
|
|
24518
24566
|
clearSearchResult,
|
|
24519
24567
|
filterVisibleFilterValues,
|
|
24520
|
-
setRelatedCategoryChildren
|
|
24568
|
+
setRelatedCategoryChildren,
|
|
24569
|
+
queryRelatedQueries,
|
|
24570
|
+
setRelatedQueriesApiEnabled
|
|
24521
24571
|
};
|
|
24522
24572
|
});
|
|
24523
|
-
const _hoisted_1$
|
|
24524
|
-
const _hoisted_2$
|
|
24525
|
-
const _hoisted_3$
|
|
24526
|
-
const _hoisted_4$
|
|
24527
|
-
const _hoisted_5$
|
|
24528
|
-
const _sfc_main$
|
|
24573
|
+
const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
24574
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
24575
|
+
const _hoisted_3$B = ["disabled"];
|
|
24576
|
+
const _hoisted_4$s = ["href"];
|
|
24577
|
+
const _hoisted_5$i = ["onClick", "disabled"];
|
|
24578
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
24529
24579
|
__name: "SearchBoxProductAddToCart",
|
|
24530
24580
|
props: {
|
|
24531
24581
|
item: {},
|
|
@@ -24563,45 +24613,45 @@ and ensure you are accounting for this risk.
|
|
|
24563
24613
|
return Boolean(props.link && props.options.link);
|
|
24564
24614
|
});
|
|
24565
24615
|
return (_ctx, _cache) => {
|
|
24566
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24567
|
-
createBaseVNode("div", _hoisted_2$
|
|
24616
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
24617
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
24568
24618
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
24569
24619
|
key: 0,
|
|
24570
24620
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
24571
24621
|
"data-cy": "lupa-add-to-cart",
|
|
24572
24622
|
disabled: !inStockValue.value || loading.value
|
|
24573
24623
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
24574
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
24575
|
-
], 16, _hoisted_3$
|
|
24624
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
|
|
24625
|
+
], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
24576
24626
|
key: 1,
|
|
24577
24627
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
24578
24628
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
24579
24629
|
"data-cy": "lupa-add-to-cart",
|
|
24580
24630
|
type: "button",
|
|
24581
24631
|
disabled: !inStockValue.value || loading.value
|
|
24582
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$
|
|
24632
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
|
|
24583
24633
|
])
|
|
24584
24634
|
]);
|
|
24585
24635
|
};
|
|
24586
24636
|
}
|
|
24587
24637
|
});
|
|
24588
|
-
const _hoisted_1$
|
|
24638
|
+
const _hoisted_1$17 = {
|
|
24589
24639
|
key: 1,
|
|
24590
24640
|
class: "lupa-search-box-element-badge-wrapper"
|
|
24591
24641
|
};
|
|
24592
24642
|
const __default__$4 = {
|
|
24593
24643
|
components: {
|
|
24594
|
-
SearchBoxProductImage: _sfc_main$
|
|
24595
|
-
SearchBoxProductTitle: _sfc_main$
|
|
24596
|
-
SearchBoxProductDescription: _sfc_main$
|
|
24597
|
-
SearchBoxProductPrice: _sfc_main$
|
|
24598
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
24599
|
-
SearchBoxProductCustom: _sfc_main$
|
|
24600
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
24601
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
24644
|
+
SearchBoxProductImage: _sfc_main$1o,
|
|
24645
|
+
SearchBoxProductTitle: _sfc_main$1n,
|
|
24646
|
+
SearchBoxProductDescription: _sfc_main$1m,
|
|
24647
|
+
SearchBoxProductPrice: _sfc_main$1l,
|
|
24648
|
+
SearchBoxProductRegularPrice: _sfc_main$1k,
|
|
24649
|
+
SearchBoxProductCustom: _sfc_main$1j,
|
|
24650
|
+
SearchBoxProductCustomHtml: _sfc_main$1i,
|
|
24651
|
+
SearchBoxProductAddToCart: _sfc_main$1h
|
|
24602
24652
|
}
|
|
24603
24653
|
};
|
|
24604
|
-
const _sfc_main$
|
|
24654
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
24605
24655
|
__name: "SearchBoxProductElement",
|
|
24606
24656
|
props: {
|
|
24607
24657
|
item: {},
|
|
@@ -24673,7 +24723,7 @@ and ensure you are accounting for this risk.
|
|
|
24673
24723
|
"dynamic-attributes": dynamicAttributes.value,
|
|
24674
24724
|
link: _ctx.link
|
|
24675
24725
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
24676
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24726
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
24677
24727
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
24678
24728
|
key: 0,
|
|
24679
24729
|
item: enhancedItem.value,
|
|
@@ -24688,14 +24738,14 @@ and ensure you are accounting for this risk.
|
|
|
24688
24738
|
};
|
|
24689
24739
|
}
|
|
24690
24740
|
}));
|
|
24691
|
-
const _hoisted_1$
|
|
24692
|
-
const _hoisted_2$
|
|
24693
|
-
const _hoisted_3$
|
|
24694
|
-
const _hoisted_4$
|
|
24741
|
+
const _hoisted_1$16 = { class: "lupa-badge-title" };
|
|
24742
|
+
const _hoisted_2$N = ["src"];
|
|
24743
|
+
const _hoisted_3$A = { key: 1 };
|
|
24744
|
+
const _hoisted_4$r = {
|
|
24695
24745
|
key: 0,
|
|
24696
24746
|
class: "lupa-badge-full-text"
|
|
24697
24747
|
};
|
|
24698
|
-
const _sfc_main$
|
|
24748
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
24699
24749
|
__name: "SearchResultGeneratedBadge",
|
|
24700
24750
|
props: {
|
|
24701
24751
|
options: {},
|
|
@@ -24728,20 +24778,20 @@ and ensure you are accounting for this risk.
|
|
|
24728
24778
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
24729
24779
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
24730
24780
|
}, [
|
|
24731
|
-
createBaseVNode("span", _hoisted_1$
|
|
24781
|
+
createBaseVNode("span", _hoisted_1$16, [
|
|
24732
24782
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
24733
24783
|
key: 0,
|
|
24734
24784
|
src: image.value
|
|
24735
|
-
}, null, 8, _hoisted_2$
|
|
24736
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
24785
|
+
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
24786
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
24737
24787
|
]),
|
|
24738
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
24788
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
24739
24789
|
], 6);
|
|
24740
24790
|
};
|
|
24741
24791
|
}
|
|
24742
24792
|
});
|
|
24743
|
-
const _hoisted_1$
|
|
24744
|
-
const _sfc_main$
|
|
24793
|
+
const _hoisted_1$15 = { class: "lupa-generated-badges" };
|
|
24794
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
24745
24795
|
__name: "SearchResultGeneratedBadges",
|
|
24746
24796
|
props: {
|
|
24747
24797
|
options: {}
|
|
@@ -24767,9 +24817,9 @@ and ensure you are accounting for this risk.
|
|
|
24767
24817
|
})).filter((b) => Boolean(b.id));
|
|
24768
24818
|
});
|
|
24769
24819
|
return (_ctx, _cache) => {
|
|
24770
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24820
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
24771
24821
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
24772
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24822
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
24773
24823
|
key: badge.id,
|
|
24774
24824
|
badge,
|
|
24775
24825
|
options: _ctx.options
|
|
@@ -24779,8 +24829,8 @@ and ensure you are accounting for this risk.
|
|
|
24779
24829
|
};
|
|
24780
24830
|
}
|
|
24781
24831
|
});
|
|
24782
|
-
const _hoisted_1$
|
|
24783
|
-
const _sfc_main$
|
|
24832
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
24833
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
24784
24834
|
__name: "CustomBadge",
|
|
24785
24835
|
props: {
|
|
24786
24836
|
badge: {}
|
|
@@ -24801,12 +24851,12 @@ and ensure you are accounting for this risk.
|
|
|
24801
24851
|
return openBlock(), createElementBlock("div", {
|
|
24802
24852
|
class: normalizeClass(className.value),
|
|
24803
24853
|
innerHTML: text.value
|
|
24804
|
-
}, null, 10, _hoisted_1$
|
|
24854
|
+
}, null, 10, _hoisted_1$14);
|
|
24805
24855
|
};
|
|
24806
24856
|
}
|
|
24807
24857
|
});
|
|
24808
|
-
const _hoisted_1$
|
|
24809
|
-
const _sfc_main$
|
|
24858
|
+
const _hoisted_1$13 = { class: "lupa-text-badges" };
|
|
24859
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
24810
24860
|
__name: "TextBadge",
|
|
24811
24861
|
props: {
|
|
24812
24862
|
badge: {}
|
|
@@ -24820,7 +24870,7 @@ and ensure you are accounting for this risk.
|
|
|
24820
24870
|
return badges.value.slice(0, props.badge.maxItems);
|
|
24821
24871
|
});
|
|
24822
24872
|
return (_ctx, _cache) => {
|
|
24823
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24873
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
24824
24874
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
24825
24875
|
return openBlock(), createElementBlock("div", {
|
|
24826
24876
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -24831,9 +24881,9 @@ and ensure you are accounting for this risk.
|
|
|
24831
24881
|
};
|
|
24832
24882
|
}
|
|
24833
24883
|
});
|
|
24834
|
-
const _hoisted_1$
|
|
24835
|
-
const _hoisted_2$
|
|
24836
|
-
const _sfc_main$
|
|
24884
|
+
const _hoisted_1$12 = { class: "lupa-image-badges" };
|
|
24885
|
+
const _hoisted_2$M = ["src"];
|
|
24886
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
24837
24887
|
__name: "ImageBadge",
|
|
24838
24888
|
props: {
|
|
24839
24889
|
badge: {}
|
|
@@ -24853,7 +24903,7 @@ and ensure you are accounting for this risk.
|
|
|
24853
24903
|
return `${props.badge.rootImageUrl}${src}`;
|
|
24854
24904
|
};
|
|
24855
24905
|
return (_ctx, _cache) => {
|
|
24856
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24906
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
24857
24907
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
24858
24908
|
return openBlock(), createElementBlock("div", {
|
|
24859
24909
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -24861,14 +24911,14 @@ and ensure you are accounting for this risk.
|
|
|
24861
24911
|
}, [
|
|
24862
24912
|
createBaseVNode("img", {
|
|
24863
24913
|
src: getImageUrl(item)
|
|
24864
|
-
}, null, 8, _hoisted_2$
|
|
24914
|
+
}, null, 8, _hoisted_2$M)
|
|
24865
24915
|
]);
|
|
24866
24916
|
}), 128))
|
|
24867
24917
|
]);
|
|
24868
24918
|
};
|
|
24869
24919
|
}
|
|
24870
24920
|
});
|
|
24871
|
-
const _sfc_main$
|
|
24921
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
24872
24922
|
__name: "DiscountBadge",
|
|
24873
24923
|
props: {
|
|
24874
24924
|
badge: {}
|
|
@@ -24927,16 +24977,16 @@ and ensure you are accounting for this risk.
|
|
|
24927
24977
|
};
|
|
24928
24978
|
}
|
|
24929
24979
|
});
|
|
24930
|
-
const _hoisted_1
|
|
24980
|
+
const _hoisted_1$11 = { id: "lupa-search-results-badges" };
|
|
24931
24981
|
const __default__$3 = {
|
|
24932
24982
|
components: {
|
|
24933
|
-
CustomBadge: _sfc_main$
|
|
24934
|
-
TextBadge: _sfc_main$
|
|
24935
|
-
ImageBadge: _sfc_main$
|
|
24936
|
-
DiscountBadge: _sfc_main$
|
|
24983
|
+
CustomBadge: _sfc_main$1d,
|
|
24984
|
+
TextBadge: _sfc_main$1c,
|
|
24985
|
+
ImageBadge: _sfc_main$1b,
|
|
24986
|
+
DiscountBadge: _sfc_main$1a
|
|
24937
24987
|
}
|
|
24938
24988
|
};
|
|
24939
|
-
const _sfc_main$
|
|
24989
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
24940
24990
|
__name: "SearchResultsBadgeWrapper",
|
|
24941
24991
|
props: {
|
|
24942
24992
|
position: {},
|
|
@@ -24999,7 +25049,7 @@ and ensure you are accounting for this risk.
|
|
|
24999
25049
|
}
|
|
25000
25050
|
};
|
|
25001
25051
|
return (_ctx, _cache) => {
|
|
25002
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
25052
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
25003
25053
|
createBaseVNode("div", {
|
|
25004
25054
|
id: "lupa-badges",
|
|
25005
25055
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -25010,7 +25060,7 @@ and ensure you are accounting for this risk.
|
|
|
25010
25060
|
badge
|
|
25011
25061
|
}, null, 8, ["badge"]);
|
|
25012
25062
|
}), 128)),
|
|
25013
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
25063
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
25014
25064
|
key: 0,
|
|
25015
25065
|
options: _ctx.options
|
|
25016
25066
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -25019,13 +25069,13 @@ and ensure you are accounting for this risk.
|
|
|
25019
25069
|
};
|
|
25020
25070
|
}
|
|
25021
25071
|
}));
|
|
25022
|
-
const _hoisted_1$
|
|
25023
|
-
const _hoisted_2$
|
|
25024
|
-
const _hoisted_3$
|
|
25072
|
+
const _hoisted_1$10 = ["href"];
|
|
25073
|
+
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
25074
|
+
const _hoisted_3$z = {
|
|
25025
25075
|
key: 0,
|
|
25026
25076
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
25027
25077
|
};
|
|
25028
|
-
const _sfc_main$
|
|
25078
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
25029
25079
|
__name: "SearchBoxProduct",
|
|
25030
25080
|
props: {
|
|
25031
25081
|
item: {},
|
|
@@ -25111,7 +25161,7 @@ and ensure you are accounting for this risk.
|
|
|
25111
25161
|
style: normalizeStyle(imageStyleOverride.value)
|
|
25112
25162
|
}, [
|
|
25113
25163
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
25114
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25164
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
25115
25165
|
class: "lupa-search-box-product-element",
|
|
25116
25166
|
item: _ctx.item,
|
|
25117
25167
|
element,
|
|
@@ -25121,10 +25171,10 @@ and ensure you are accounting for this risk.
|
|
|
25121
25171
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
25122
25172
|
}), 128))
|
|
25123
25173
|
], 4),
|
|
25124
|
-
createBaseVNode("div", _hoisted_2$
|
|
25174
|
+
createBaseVNode("div", _hoisted_2$L, [
|
|
25125
25175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
25126
25176
|
var _a;
|
|
25127
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25177
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
25128
25178
|
key: element.key,
|
|
25129
25179
|
class: "lupa-search-box-product-element",
|
|
25130
25180
|
item: _ctx.item,
|
|
@@ -25135,7 +25185,7 @@ and ensure you are accounting for this risk.
|
|
|
25135
25185
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
25136
25186
|
name: "badges",
|
|
25137
25187
|
fn: withCtx(() => [
|
|
25138
|
-
createVNode(_sfc_main$
|
|
25188
|
+
createVNode(_sfc_main$19, {
|
|
25139
25189
|
options: badgeOptions.value,
|
|
25140
25190
|
position: "card"
|
|
25141
25191
|
}, null, 8, ["options"])
|
|
@@ -25145,8 +25195,8 @@ and ensure you are accounting for this risk.
|
|
|
25145
25195
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
25146
25196
|
}), 128))
|
|
25147
25197
|
]),
|
|
25148
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25149
|
-
createVNode(_sfc_main$
|
|
25198
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
25199
|
+
createVNode(_sfc_main$1g, {
|
|
25150
25200
|
class: "lupa-search-box-product-element",
|
|
25151
25201
|
item: _ctx.item,
|
|
25152
25202
|
element: addToCartElement.value,
|
|
@@ -25155,7 +25205,7 @@ and ensure you are accounting for this risk.
|
|
|
25155
25205
|
isInStock: isInStock.value
|
|
25156
25206
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
25157
25207
|
])) : createCommentVNode("", true)
|
|
25158
|
-
], 16, _hoisted_1$
|
|
25208
|
+
], 16, _hoisted_1$10);
|
|
25159
25209
|
};
|
|
25160
25210
|
}
|
|
25161
25211
|
});
|
|
@@ -25227,8 +25277,8 @@ and ensure you are accounting for this risk.
|
|
|
25227
25277
|
};
|
|
25228
25278
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
25229
25279
|
});
|
|
25230
|
-
const _hoisted_1
|
|
25231
|
-
const _sfc_main$
|
|
25280
|
+
const _hoisted_1$$ = { id: "lupa-search-box-products" };
|
|
25281
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
25232
25282
|
__name: "SearchBoxProducts",
|
|
25233
25283
|
props: {
|
|
25234
25284
|
items: {},
|
|
@@ -25299,7 +25349,7 @@ and ensure you are accounting for this risk.
|
|
|
25299
25349
|
}
|
|
25300
25350
|
};
|
|
25301
25351
|
return (_ctx, _cache) => {
|
|
25302
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
25352
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
25303
25353
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
25304
25354
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
25305
25355
|
key: index,
|
|
@@ -25311,7 +25361,7 @@ and ensure you are accounting for this risk.
|
|
|
25311
25361
|
itemClicked: handleProductClick
|
|
25312
25362
|
});
|
|
25313
25363
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
25314
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25364
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
25315
25365
|
key: index,
|
|
25316
25366
|
item,
|
|
25317
25367
|
panelOptions: _ctx.panelOptions,
|
|
@@ -25326,9 +25376,9 @@ and ensure you are accounting for this risk.
|
|
|
25326
25376
|
};
|
|
25327
25377
|
}
|
|
25328
25378
|
});
|
|
25329
|
-
const _hoisted_1$
|
|
25330
|
-
const _hoisted_2$
|
|
25331
|
-
const _sfc_main$
|
|
25379
|
+
const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
25380
|
+
const _hoisted_2$K = { key: 0 };
|
|
25381
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
25332
25382
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
25333
25383
|
props: {
|
|
25334
25384
|
options: {},
|
|
@@ -25358,13 +25408,13 @@ and ensure you are accounting for this risk.
|
|
|
25358
25408
|
emit2("goToResults");
|
|
25359
25409
|
};
|
|
25360
25410
|
return (_ctx, _cache) => {
|
|
25361
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25411
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
25362
25412
|
createBaseVNode("button", {
|
|
25363
25413
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
25364
25414
|
onClick: goToResults
|
|
25365
25415
|
}, [
|
|
25366
25416
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
25367
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
25417
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
25368
25418
|
])
|
|
25369
25419
|
]);
|
|
25370
25420
|
};
|
|
@@ -25451,7 +25501,7 @@ and ensure you are accounting for this risk.
|
|
|
25451
25501
|
}
|
|
25452
25502
|
return parsedObject;
|
|
25453
25503
|
};
|
|
25454
|
-
const _sfc_main$
|
|
25504
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
25455
25505
|
__name: "SearchBoxProductsWrapper",
|
|
25456
25506
|
props: {
|
|
25457
25507
|
panel: {},
|
|
@@ -25520,7 +25570,7 @@ and ensure you are accounting for this risk.
|
|
|
25520
25570
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
25521
25571
|
return (_ctx, _cache) => {
|
|
25522
25572
|
var _a, _b;
|
|
25523
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25573
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
25524
25574
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
25525
25575
|
panelOptions: _ctx.panel,
|
|
25526
25576
|
labels: _ctx.labels,
|
|
@@ -25530,7 +25580,7 @@ and ensure you are accounting for this risk.
|
|
|
25530
25580
|
default: withCtx(() => {
|
|
25531
25581
|
var _a2;
|
|
25532
25582
|
return [
|
|
25533
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
25583
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$16, {
|
|
25534
25584
|
key: 0,
|
|
25535
25585
|
options: _ctx.searchBoxOptions,
|
|
25536
25586
|
panel: _ctx.panel,
|
|
@@ -25551,7 +25601,7 @@ and ensure you are accounting for this risk.
|
|
|
25551
25601
|
};
|
|
25552
25602
|
}
|
|
25553
25603
|
});
|
|
25554
|
-
const _sfc_main$
|
|
25604
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
25555
25605
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
25556
25606
|
props: {
|
|
25557
25607
|
panel: {},
|
|
@@ -25623,7 +25673,7 @@ and ensure you are accounting for this risk.
|
|
|
25623
25673
|
});
|
|
25624
25674
|
return (_ctx, _cache) => {
|
|
25625
25675
|
var _a, _b;
|
|
25626
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25676
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
25627
25677
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
25628
25678
|
panelOptions: documentPanelOptions.value,
|
|
25629
25679
|
labels: _ctx.labels,
|
|
@@ -25641,31 +25691,31 @@ and ensure you are accounting for this risk.
|
|
|
25641
25691
|
};
|
|
25642
25692
|
}
|
|
25643
25693
|
});
|
|
25644
|
-
const _hoisted_1$
|
|
25694
|
+
const _hoisted_1$Z = {
|
|
25645
25695
|
key: 0,
|
|
25646
25696
|
id: "lupa-search-box-panel"
|
|
25647
25697
|
};
|
|
25648
|
-
const _hoisted_2$
|
|
25649
|
-
const _hoisted_3$
|
|
25698
|
+
const _hoisted_2$J = ["data-cy"];
|
|
25699
|
+
const _hoisted_3$y = {
|
|
25650
25700
|
key: 0,
|
|
25651
25701
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
25652
25702
|
};
|
|
25653
|
-
const _hoisted_4$
|
|
25703
|
+
const _hoisted_4$q = {
|
|
25654
25704
|
key: 1,
|
|
25655
25705
|
class: "lupa-panel-title"
|
|
25656
25706
|
};
|
|
25657
|
-
const _hoisted_5$
|
|
25707
|
+
const _hoisted_5$h = {
|
|
25658
25708
|
key: 1,
|
|
25659
25709
|
id: "lupa-search-box-panel"
|
|
25660
25710
|
};
|
|
25661
25711
|
const __default__$2 = {
|
|
25662
25712
|
components: {
|
|
25663
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
25664
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
25665
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
25713
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1q,
|
|
25714
|
+
SearchBoxProductsWrapper: _sfc_main$15,
|
|
25715
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$14
|
|
25666
25716
|
}
|
|
25667
25717
|
};
|
|
25668
|
-
const _sfc_main$
|
|
25718
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
25669
25719
|
__name: "SearchBoxMainPanel",
|
|
25670
25720
|
props: {
|
|
25671
25721
|
options: {},
|
|
@@ -25820,7 +25870,7 @@ and ensure you are accounting for this risk.
|
|
|
25820
25870
|
ref_key: "panelContainer",
|
|
25821
25871
|
ref: panelContainer
|
|
25822
25872
|
}, [
|
|
25823
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
25873
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
25824
25874
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
25825
25875
|
key: 0,
|
|
25826
25876
|
class: "lupa-search-box-close-panel",
|
|
@@ -25842,8 +25892,8 @@ and ensure you are accounting for this risk.
|
|
|
25842
25892
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
25843
25893
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
25844
25894
|
}, [
|
|
25845
|
-
((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25846
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25895
|
+
((_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),
|
|
25896
|
+
((_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),
|
|
25847
25897
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
25848
25898
|
key: 2,
|
|
25849
25899
|
panel,
|
|
@@ -25865,21 +25915,21 @@ and ensure you are accounting for this risk.
|
|
|
25865
25915
|
key: "0"
|
|
25866
25916
|
} : void 0
|
|
25867
25917
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
25868
|
-
], 14, _hoisted_2$
|
|
25918
|
+
], 14, _hoisted_2$J);
|
|
25869
25919
|
}), 128))
|
|
25870
25920
|
], 4),
|
|
25871
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
25921
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1t, {
|
|
25872
25922
|
key: 1,
|
|
25873
25923
|
labels: labels.value
|
|
25874
25924
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
25875
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
25925
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1w, {
|
|
25876
25926
|
key: 2,
|
|
25877
25927
|
labels: labels.value,
|
|
25878
25928
|
options: _ctx.options,
|
|
25879
25929
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
25880
25930
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
25881
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
25882
|
-
createVNode(_sfc_main$
|
|
25931
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
|
|
25932
|
+
createVNode(_sfc_main$1u, {
|
|
25883
25933
|
options: _ctx.options.history,
|
|
25884
25934
|
history: history.value,
|
|
25885
25935
|
onGoToResults: handleGoToResults,
|
|
@@ -25904,8 +25954,8 @@ and ensure you are accounting for this risk.
|
|
|
25904
25954
|
const elements = getElements(triggers);
|
|
25905
25955
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
25906
25956
|
};
|
|
25907
|
-
const _hoisted_1$
|
|
25908
|
-
const _sfc_main$
|
|
25957
|
+
const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
|
|
25958
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
25909
25959
|
__name: "SearchBox",
|
|
25910
25960
|
props: {
|
|
25911
25961
|
options: {},
|
|
@@ -26226,8 +26276,8 @@ and ensure you are accounting for this risk.
|
|
|
26226
26276
|
id: "lupa-search-box",
|
|
26227
26277
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
26228
26278
|
}, [
|
|
26229
|
-
createBaseVNode("div", _hoisted_1$
|
|
26230
|
-
createVNode(_sfc_main$
|
|
26279
|
+
createBaseVNode("div", _hoisted_1$Y, [
|
|
26280
|
+
createVNode(_sfc_main$1x, {
|
|
26231
26281
|
options: inputOptions.value,
|
|
26232
26282
|
suggestedValue: suggestedValue.value,
|
|
26233
26283
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -26240,7 +26290,7 @@ and ensure you are accounting for this risk.
|
|
|
26240
26290
|
onSearch: handleSearch,
|
|
26241
26291
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
26242
26292
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
26243
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
26293
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$13, {
|
|
26244
26294
|
key: 0,
|
|
26245
26295
|
options: panelOptions.value,
|
|
26246
26296
|
inputValue: inputValue.value,
|
|
@@ -26329,20 +26379,20 @@ and ensure you are accounting for this risk.
|
|
|
26329
26379
|
}
|
|
26330
26380
|
return searchParams;
|
|
26331
26381
|
};
|
|
26332
|
-
const _hoisted_1$
|
|
26382
|
+
const _hoisted_1$X = {
|
|
26333
26383
|
key: 0,
|
|
26334
26384
|
id: "lupa-search-results-did-you-mean"
|
|
26335
26385
|
};
|
|
26336
|
-
const _hoisted_2$
|
|
26386
|
+
const _hoisted_2$I = {
|
|
26337
26387
|
key: 0,
|
|
26338
26388
|
"data-cy": "suggested-search-text-label"
|
|
26339
26389
|
};
|
|
26340
|
-
const _hoisted_3$
|
|
26390
|
+
const _hoisted_3$x = {
|
|
26341
26391
|
key: 1,
|
|
26342
26392
|
"data-cy": "did-you-mean-label"
|
|
26343
26393
|
};
|
|
26344
|
-
const _hoisted_4$
|
|
26345
|
-
const _sfc_main
|
|
26394
|
+
const _hoisted_4$p = { key: 1 };
|
|
26395
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
26346
26396
|
__name: "SearchResultsDidYouMean",
|
|
26347
26397
|
props: {
|
|
26348
26398
|
labels: {}
|
|
@@ -26374,8 +26424,8 @@ and ensure you are accounting for this risk.
|
|
|
26374
26424
|
paramStore.goToResults({ searchText, facet });
|
|
26375
26425
|
};
|
|
26376
26426
|
return (_ctx, _cache) => {
|
|
26377
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26378
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
26427
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
26428
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
|
|
26379
26429
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
26380
26430
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
26381
26431
|
createBaseVNode("span", {
|
|
@@ -26384,7 +26434,7 @@ and ensure you are accounting for this risk.
|
|
|
26384
26434
|
]);
|
|
26385
26435
|
}), 128))
|
|
26386
26436
|
])) : createCommentVNode("", true),
|
|
26387
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
26437
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
26388
26438
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
26389
26439
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
26390
26440
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -26392,7 +26442,7 @@ and ensure you are accounting for this risk.
|
|
|
26392
26442
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
26393
26443
|
"data-cy": "did-you-mean-value",
|
|
26394
26444
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
26395
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
26445
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
|
|
26396
26446
|
]);
|
|
26397
26447
|
}), 128))
|
|
26398
26448
|
])) : createCommentVNode("", true)
|
|
@@ -26400,12 +26450,12 @@ and ensure you are accounting for this risk.
|
|
|
26400
26450
|
};
|
|
26401
26451
|
}
|
|
26402
26452
|
});
|
|
26403
|
-
const _hoisted_1$
|
|
26453
|
+
const _hoisted_1$W = {
|
|
26404
26454
|
key: 0,
|
|
26405
26455
|
class: "lupa-search-results-summary"
|
|
26406
26456
|
};
|
|
26407
|
-
const _hoisted_2$
|
|
26408
|
-
const _sfc_main$
|
|
26457
|
+
const _hoisted_2$H = ["innerHTML"];
|
|
26458
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
26409
26459
|
__name: "SearchResultsSummary",
|
|
26410
26460
|
props: {
|
|
26411
26461
|
label: {},
|
|
@@ -26420,8 +26470,8 @@ and ensure you are accounting for this risk.
|
|
|
26420
26470
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
26421
26471
|
});
|
|
26422
26472
|
return (_ctx, _cache) => {
|
|
26423
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26424
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
26473
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
26474
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
|
|
26425
26475
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
26426
26476
|
key: 0,
|
|
26427
26477
|
class: "lupa-filter-clear",
|
|
@@ -26432,19 +26482,19 @@ and ensure you are accounting for this risk.
|
|
|
26432
26482
|
};
|
|
26433
26483
|
}
|
|
26434
26484
|
});
|
|
26435
|
-
const _hoisted_1$
|
|
26485
|
+
const _hoisted_1$V = {
|
|
26436
26486
|
key: 0,
|
|
26437
26487
|
class: "lupa-result-page-title",
|
|
26438
26488
|
"data-cy": "lupa-result-page-title"
|
|
26439
26489
|
};
|
|
26440
|
-
const _hoisted_2$
|
|
26441
|
-
const _hoisted_3$
|
|
26490
|
+
const _hoisted_2$G = { key: 0 };
|
|
26491
|
+
const _hoisted_3$w = {
|
|
26442
26492
|
key: 1,
|
|
26443
26493
|
class: "lupa-results-total-count"
|
|
26444
26494
|
};
|
|
26445
|
-
const _hoisted_4$
|
|
26446
|
-
const _hoisted_5$
|
|
26447
|
-
const _sfc_main
|
|
26495
|
+
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
26496
|
+
const _hoisted_5$g = ["innerHTML"];
|
|
26497
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
26448
26498
|
__name: "SearchResultsTitle",
|
|
26449
26499
|
props: {
|
|
26450
26500
|
options: {},
|
|
@@ -26487,16 +26537,16 @@ and ensure you are accounting for this risk.
|
|
|
26487
26537
|
});
|
|
26488
26538
|
return (_ctx, _cache) => {
|
|
26489
26539
|
return openBlock(), createElementBlock("div", null, [
|
|
26490
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
26540
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
|
|
26491
26541
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
26492
|
-
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
26493
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
26542
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
26543
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
|
|
26494
26544
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
26495
|
-
createBaseVNode("span", _hoisted_4$
|
|
26545
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
26496
26546
|
createTextVNode(")")
|
|
26497
26547
|
])) : createCommentVNode("", true)
|
|
26498
26548
|
])) : createCommentVNode("", true),
|
|
26499
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
26549
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$10, {
|
|
26500
26550
|
key: 1,
|
|
26501
26551
|
label: summaryLabel.value
|
|
26502
26552
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -26504,20 +26554,20 @@ and ensure you are accounting for this risk.
|
|
|
26504
26554
|
key: 2,
|
|
26505
26555
|
class: "lupa-result-page-description-top",
|
|
26506
26556
|
innerHTML: descriptionTop.value
|
|
26507
|
-
}, null, 8, _hoisted_5$
|
|
26557
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
26508
26558
|
]);
|
|
26509
26559
|
};
|
|
26510
26560
|
}
|
|
26511
26561
|
});
|
|
26512
|
-
const _hoisted_1$
|
|
26562
|
+
const _hoisted_1$U = {
|
|
26513
26563
|
class: "lupa-current-filter-label",
|
|
26514
26564
|
"data-cy": "lupa-current-filter-label"
|
|
26515
26565
|
};
|
|
26516
|
-
const _hoisted_2$
|
|
26566
|
+
const _hoisted_2$F = {
|
|
26517
26567
|
class: "lupa-current-filter-value",
|
|
26518
26568
|
"data-cy": "lupa-current-filter-value"
|
|
26519
26569
|
};
|
|
26520
|
-
const _sfc_main$
|
|
26570
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
26521
26571
|
__name: "CurrentFilterDisplay",
|
|
26522
26572
|
props: {
|
|
26523
26573
|
filter: {}
|
|
@@ -26539,23 +26589,23 @@ and ensure you are accounting for this risk.
|
|
|
26539
26589
|
class: "lupa-current-filter-action",
|
|
26540
26590
|
onClick: handleClick
|
|
26541
26591
|
}, "⨉"),
|
|
26542
|
-
createBaseVNode("div", _hoisted_1$
|
|
26543
|
-
createBaseVNode("div", _hoisted_2$
|
|
26592
|
+
createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
26593
|
+
createBaseVNode("div", _hoisted_2$F, toDisplayString(_ctx.filter.value), 1)
|
|
26544
26594
|
], 2);
|
|
26545
26595
|
};
|
|
26546
26596
|
}
|
|
26547
26597
|
});
|
|
26548
|
-
const _hoisted_1$
|
|
26549
|
-
const _hoisted_2$
|
|
26598
|
+
const _hoisted_1$T = { class: "lupa-filter-title-text" };
|
|
26599
|
+
const _hoisted_2$E = {
|
|
26550
26600
|
key: 0,
|
|
26551
26601
|
class: "lupa-filter-count"
|
|
26552
26602
|
};
|
|
26553
|
-
const _hoisted_3$
|
|
26603
|
+
const _hoisted_3$v = {
|
|
26554
26604
|
key: 0,
|
|
26555
26605
|
class: "filter-values"
|
|
26556
26606
|
};
|
|
26557
|
-
const _hoisted_4$
|
|
26558
|
-
const _sfc_main$
|
|
26607
|
+
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
26608
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
26559
26609
|
__name: "CurrentFilters",
|
|
26560
26610
|
props: {
|
|
26561
26611
|
options: {},
|
|
@@ -26628,19 +26678,19 @@ and ensure you are accounting for this risk.
|
|
|
26628
26678
|
class: "lupa-current-filter-title",
|
|
26629
26679
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
26630
26680
|
}, [
|
|
26631
|
-
createBaseVNode("div", _hoisted_1$
|
|
26681
|
+
createBaseVNode("div", _hoisted_1$T, [
|
|
26632
26682
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
26633
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
26683
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
26634
26684
|
]),
|
|
26635
26685
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
26636
26686
|
key: 0,
|
|
26637
26687
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
26638
26688
|
}, null, 2)) : createCommentVNode("", true)
|
|
26639
26689
|
]),
|
|
26640
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
26641
|
-
createBaseVNode("div", _hoisted_4$
|
|
26690
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
26691
|
+
createBaseVNode("div", _hoisted_4$n, [
|
|
26642
26692
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
26643
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26693
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
26644
26694
|
key: filter2.key + "_" + filter2.value,
|
|
26645
26695
|
filter: filter2,
|
|
26646
26696
|
onRemove: handleRemove
|
|
@@ -26657,8 +26707,8 @@ and ensure you are accounting for this risk.
|
|
|
26657
26707
|
};
|
|
26658
26708
|
}
|
|
26659
26709
|
});
|
|
26660
|
-
const _hoisted_1$
|
|
26661
|
-
const _sfc_main$
|
|
26710
|
+
const _hoisted_1$S = ["href"];
|
|
26711
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
26662
26712
|
__name: "CategoryFilterItem",
|
|
26663
26713
|
props: {
|
|
26664
26714
|
options: {},
|
|
@@ -26695,20 +26745,20 @@ and ensure you are accounting for this risk.
|
|
|
26695
26745
|
"data-cy": "lupa-child-category-item",
|
|
26696
26746
|
href: urlLink.value,
|
|
26697
26747
|
onClick: handleNavigation
|
|
26698
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
26748
|
+
}, toDisplayString(title.value), 9, _hoisted_1$S)
|
|
26699
26749
|
], 2);
|
|
26700
26750
|
};
|
|
26701
26751
|
}
|
|
26702
26752
|
});
|
|
26703
|
-
const _hoisted_1$
|
|
26753
|
+
const _hoisted_1$R = {
|
|
26704
26754
|
class: "lupa-category-filter",
|
|
26705
26755
|
"data-cy": "lupa-category-filter"
|
|
26706
26756
|
};
|
|
26707
|
-
const _hoisted_2$
|
|
26708
|
-
const _hoisted_3$
|
|
26709
|
-
const _hoisted_4$
|
|
26710
|
-
const _hoisted_5$
|
|
26711
|
-
const _sfc_main$
|
|
26757
|
+
const _hoisted_2$D = { class: "lupa-category-back" };
|
|
26758
|
+
const _hoisted_3$u = ["href"];
|
|
26759
|
+
const _hoisted_4$m = ["href"];
|
|
26760
|
+
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
26761
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
26712
26762
|
__name: "CategoryFilter",
|
|
26713
26763
|
props: {
|
|
26714
26764
|
options: {}
|
|
@@ -26796,14 +26846,14 @@ and ensure you are accounting for this risk.
|
|
|
26796
26846
|
};
|
|
26797
26847
|
__expose({ fetch: fetch2 });
|
|
26798
26848
|
return (_ctx, _cache) => {
|
|
26799
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26800
|
-
createBaseVNode("div", _hoisted_2$
|
|
26849
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
26850
|
+
createBaseVNode("div", _hoisted_2$D, [
|
|
26801
26851
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
26802
26852
|
key: 0,
|
|
26803
26853
|
"data-cy": "lupa-category-back",
|
|
26804
26854
|
href: backUrlLink.value,
|
|
26805
26855
|
onClick: handleNavigationBack
|
|
26806
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
26856
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$u)) : createCommentVNode("", true)
|
|
26807
26857
|
]),
|
|
26808
26858
|
createBaseVNode("div", {
|
|
26809
26859
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -26813,11 +26863,11 @@ and ensure you are accounting for this risk.
|
|
|
26813
26863
|
href: parentUrlLink.value,
|
|
26814
26864
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
26815
26865
|
onClick: handleNavigationParent
|
|
26816
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
26866
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
|
|
26817
26867
|
], 2),
|
|
26818
|
-
createBaseVNode("div", _hoisted_5$
|
|
26868
|
+
createBaseVNode("div", _hoisted_5$f, [
|
|
26819
26869
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
26820
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26870
|
+
return openBlock(), createBlock(_sfc_main$Y, {
|
|
26821
26871
|
key: getCategoryKey(child),
|
|
26822
26872
|
item: child,
|
|
26823
26873
|
options: _ctx.options
|
|
@@ -26828,14 +26878,14 @@ and ensure you are accounting for this risk.
|
|
|
26828
26878
|
};
|
|
26829
26879
|
}
|
|
26830
26880
|
});
|
|
26831
|
-
const _hoisted_1$
|
|
26881
|
+
const _hoisted_1$Q = {
|
|
26832
26882
|
class: "lupa-search-result-facet-term-values",
|
|
26833
26883
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
26834
26884
|
};
|
|
26835
|
-
const _hoisted_2$
|
|
26836
|
-
const _hoisted_3$
|
|
26837
|
-
const _hoisted_4$
|
|
26838
|
-
const _hoisted_5$
|
|
26885
|
+
const _hoisted_2$C = ["placeholder"];
|
|
26886
|
+
const _hoisted_3$t = { class: "lupa-terms-list" };
|
|
26887
|
+
const _hoisted_4$l = ["onClick"];
|
|
26888
|
+
const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
|
|
26839
26889
|
const _hoisted_6$8 = { class: "lupa-term-label" };
|
|
26840
26890
|
const _hoisted_7$6 = {
|
|
26841
26891
|
key: 0,
|
|
@@ -26843,7 +26893,7 @@ and ensure you are accounting for this risk.
|
|
|
26843
26893
|
};
|
|
26844
26894
|
const _hoisted_8$2 = { key: 0 };
|
|
26845
26895
|
const _hoisted_9$2 = { key: 1 };
|
|
26846
|
-
const _sfc_main$
|
|
26896
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
26847
26897
|
__name: "TermFacet",
|
|
26848
26898
|
props: {
|
|
26849
26899
|
options: {},
|
|
@@ -26932,17 +26982,17 @@ and ensure you are accounting for this risk.
|
|
|
26932
26982
|
}
|
|
26933
26983
|
};
|
|
26934
26984
|
return (_ctx, _cache) => {
|
|
26935
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26985
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
26936
26986
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
26937
26987
|
key: 0,
|
|
26938
26988
|
class: "lupa-term-filter",
|
|
26939
26989
|
"data-cy": "lupa-term-filter",
|
|
26940
26990
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
26941
26991
|
placeholder: _ctx.options.labels.facetFilter
|
|
26942
|
-
}, null, 8, _hoisted_2$
|
|
26992
|
+
}, null, 8, _hoisted_2$C)), [
|
|
26943
26993
|
[vModelText, termFilter.value]
|
|
26944
26994
|
]) : createCommentVNode("", true),
|
|
26945
|
-
createBaseVNode("div", _hoisted_3$
|
|
26995
|
+
createBaseVNode("div", _hoisted_3$t, [
|
|
26946
26996
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
26947
26997
|
return openBlock(), createElementBlock("div", {
|
|
26948
26998
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -26950,7 +27000,7 @@ and ensure you are accounting for this risk.
|
|
|
26950
27000
|
key: item.title,
|
|
26951
27001
|
onClick: ($event) => handleFacetClick(item)
|
|
26952
27002
|
}, [
|
|
26953
|
-
createBaseVNode("div", _hoisted_5$
|
|
27003
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
26954
27004
|
createBaseVNode("span", {
|
|
26955
27005
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
26956
27006
|
}, null, 2)
|
|
@@ -26961,7 +27011,7 @@ and ensure you are accounting for this risk.
|
|
|
26961
27011
|
createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
|
|
26962
27012
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
26963
27013
|
], 2)
|
|
26964
|
-
], 10, _hoisted_4$
|
|
27014
|
+
], 10, _hoisted_4$l);
|
|
26965
27015
|
}), 128))
|
|
26966
27016
|
]),
|
|
26967
27017
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -27952,20 +28002,20 @@ and ensure you are accounting for this risk.
|
|
|
27952
28002
|
m.render = function(e2, t, r, i, n, o) {
|
|
27953
28003
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
27954
28004
|
}, m.__file = "src/Slider.vue";
|
|
27955
|
-
const _hoisted_1$
|
|
27956
|
-
const _hoisted_2$
|
|
28005
|
+
const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
|
|
28006
|
+
const _hoisted_2$B = {
|
|
27957
28007
|
key: 0,
|
|
27958
28008
|
class: "lupa-stats-facet-summary"
|
|
27959
28009
|
};
|
|
27960
|
-
const _hoisted_3$
|
|
28010
|
+
const _hoisted_3$s = {
|
|
27961
28011
|
key: 1,
|
|
27962
28012
|
class: "lupa-stats-facet-summary-input"
|
|
27963
28013
|
};
|
|
27964
|
-
const _hoisted_4$
|
|
28014
|
+
const _hoisted_4$k = {
|
|
27965
28015
|
key: 0,
|
|
27966
28016
|
class: "lupa-stats-range-label"
|
|
27967
28017
|
};
|
|
27968
|
-
const _hoisted_5$
|
|
28018
|
+
const _hoisted_5$d = { class: "lupa-stats-from" };
|
|
27969
28019
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
27970
28020
|
const _hoisted_7$5 = { key: 0 };
|
|
27971
28021
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -27980,7 +28030,7 @@ and ensure you are accounting for this risk.
|
|
|
27980
28030
|
key: 2,
|
|
27981
28031
|
class: "lupa-stats-slider-wrapper"
|
|
27982
28032
|
};
|
|
27983
|
-
const _sfc_main$
|
|
28033
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
27984
28034
|
__name: "StatsFacet",
|
|
27985
28035
|
props: {
|
|
27986
28036
|
options: {},
|
|
@@ -28161,11 +28211,11 @@ and ensure you are accounting for this risk.
|
|
|
28161
28211
|
innerSliderRange.value = value;
|
|
28162
28212
|
};
|
|
28163
28213
|
return (_ctx, _cache) => {
|
|
28164
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28165
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28214
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
28215
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
28166
28216
|
createBaseVNode("div", null, [
|
|
28167
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28168
|
-
createBaseVNode("div", _hoisted_5$
|
|
28217
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
28218
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
28169
28219
|
withDirectives(createBaseVNode("input", {
|
|
28170
28220
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
28171
28221
|
type: "text",
|
|
@@ -28228,17 +28278,17 @@ and ensure you are accounting for this risk.
|
|
|
28228
28278
|
};
|
|
28229
28279
|
}
|
|
28230
28280
|
});
|
|
28231
|
-
const _hoisted_1$
|
|
28232
|
-
const _hoisted_2$
|
|
28233
|
-
const _hoisted_3$
|
|
28281
|
+
const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
|
|
28282
|
+
const _hoisted_2$A = { class: "lupa-term-label" };
|
|
28283
|
+
const _hoisted_3$r = {
|
|
28234
28284
|
key: 0,
|
|
28235
28285
|
class: "lupa-term-count"
|
|
28236
28286
|
};
|
|
28237
|
-
const _hoisted_4$
|
|
28287
|
+
const _hoisted_4$j = {
|
|
28238
28288
|
key: 0,
|
|
28239
28289
|
class: "lupa-facet-level"
|
|
28240
28290
|
};
|
|
28241
|
-
const _sfc_main$
|
|
28291
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
28242
28292
|
__name: "HierarchyFacetLevel",
|
|
28243
28293
|
props: {
|
|
28244
28294
|
options: {},
|
|
@@ -28291,7 +28341,7 @@ and ensure you are accounting for this risk.
|
|
|
28291
28341
|
"data-cy": "lupa-facet-term",
|
|
28292
28342
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
28293
28343
|
}, [
|
|
28294
|
-
createBaseVNode("div", _hoisted_1$
|
|
28344
|
+
createBaseVNode("div", _hoisted_1$O, [
|
|
28295
28345
|
createBaseVNode("span", {
|
|
28296
28346
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
28297
28347
|
}, null, 2)
|
|
@@ -28299,11 +28349,11 @@ and ensure you are accounting for this risk.
|
|
|
28299
28349
|
createBaseVNode("div", {
|
|
28300
28350
|
class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
|
|
28301
28351
|
}, [
|
|
28302
|
-
createBaseVNode("span", _hoisted_2$
|
|
28303
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
28352
|
+
createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
28353
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
28304
28354
|
], 2)
|
|
28305
28355
|
]),
|
|
28306
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
28356
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
|
|
28307
28357
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
28308
28358
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
28309
28359
|
key: itemChild.title,
|
|
@@ -28319,13 +28369,13 @@ and ensure you are accounting for this risk.
|
|
|
28319
28369
|
};
|
|
28320
28370
|
}
|
|
28321
28371
|
});
|
|
28322
|
-
const _hoisted_1$
|
|
28372
|
+
const _hoisted_1$N = {
|
|
28323
28373
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
28324
28374
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
28325
28375
|
};
|
|
28326
|
-
const _hoisted_2$
|
|
28327
|
-
const _hoisted_3$
|
|
28328
|
-
const _sfc_main$
|
|
28376
|
+
const _hoisted_2$z = { key: 0 };
|
|
28377
|
+
const _hoisted_3$q = ["placeholder"];
|
|
28378
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
28329
28379
|
__name: "HierarchyFacet",
|
|
28330
28380
|
props: {
|
|
28331
28381
|
options: {},
|
|
@@ -28380,19 +28430,19 @@ and ensure you are accounting for this risk.
|
|
|
28380
28430
|
showAll.value = false;
|
|
28381
28431
|
};
|
|
28382
28432
|
return (_ctx, _cache) => {
|
|
28383
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28384
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28433
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
28434
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
28385
28435
|
withDirectives(createBaseVNode("input", {
|
|
28386
28436
|
class: "lupa-term-filter",
|
|
28387
28437
|
"data-cy": "lupa-term-filter",
|
|
28388
28438
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
28389
28439
|
placeholder: _ctx.options.labels.facetFilter
|
|
28390
|
-
}, null, 8, _hoisted_3$
|
|
28440
|
+
}, null, 8, _hoisted_3$q), [
|
|
28391
28441
|
[vModelText, termFilter.value]
|
|
28392
28442
|
])
|
|
28393
28443
|
])) : createCommentVNode("", true),
|
|
28394
28444
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
28395
|
-
return openBlock(), createBlock(_sfc_main$
|
|
28445
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
28396
28446
|
key: item.title,
|
|
28397
28447
|
options: _ctx.options,
|
|
28398
28448
|
item,
|
|
@@ -28416,20 +28466,20 @@ and ensure you are accounting for this risk.
|
|
|
28416
28466
|
};
|
|
28417
28467
|
}
|
|
28418
28468
|
});
|
|
28419
|
-
const _hoisted_1$
|
|
28420
|
-
const _hoisted_2$
|
|
28469
|
+
const _hoisted_1$M = { class: "lupa-facet-label-text" };
|
|
28470
|
+
const _hoisted_2$y = {
|
|
28421
28471
|
key: 0,
|
|
28422
28472
|
class: "lupa-facet-content",
|
|
28423
28473
|
"data-cy": "lupa-facet-content"
|
|
28424
28474
|
};
|
|
28425
28475
|
const __default__$1 = {
|
|
28426
28476
|
components: {
|
|
28427
|
-
TermFacet: _sfc_main$
|
|
28428
|
-
StatsFacet: _sfc_main$
|
|
28429
|
-
HierarchyFacet: _sfc_main$
|
|
28477
|
+
TermFacet: _sfc_main$W,
|
|
28478
|
+
StatsFacet: _sfc_main$V,
|
|
28479
|
+
HierarchyFacet: _sfc_main$T
|
|
28430
28480
|
}
|
|
28431
28481
|
};
|
|
28432
|
-
const _sfc_main$
|
|
28482
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
28433
28483
|
__name: "FacetDisplay",
|
|
28434
28484
|
props: {
|
|
28435
28485
|
options: {},
|
|
@@ -28550,12 +28600,12 @@ and ensure you are accounting for this risk.
|
|
|
28550
28600
|
"data-cy": "lupa-search-result-facet-label",
|
|
28551
28601
|
onClick: toggleFacet
|
|
28552
28602
|
}, [
|
|
28553
|
-
createBaseVNode("div", _hoisted_1$
|
|
28603
|
+
createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
|
|
28554
28604
|
createBaseVNode("div", {
|
|
28555
28605
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
28556
28606
|
}, null, 2)
|
|
28557
28607
|
], 2),
|
|
28558
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28608
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
28559
28609
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
28560
28610
|
facet: facet.value,
|
|
28561
28611
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -28573,12 +28623,12 @@ and ensure you are accounting for this risk.
|
|
|
28573
28623
|
};
|
|
28574
28624
|
}
|
|
28575
28625
|
}));
|
|
28576
|
-
const _hoisted_1$
|
|
28577
|
-
const _hoisted_2$
|
|
28626
|
+
const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
|
|
28627
|
+
const _hoisted_2$x = {
|
|
28578
28628
|
key: 0,
|
|
28579
28629
|
class: "lupa-facets-title"
|
|
28580
28630
|
};
|
|
28581
|
-
const _sfc_main$
|
|
28631
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
28582
28632
|
__name: "FacetList",
|
|
28583
28633
|
props: {
|
|
28584
28634
|
options: {},
|
|
@@ -28612,14 +28662,14 @@ and ensure you are accounting for this risk.
|
|
|
28612
28662
|
};
|
|
28613
28663
|
return (_ctx, _cache) => {
|
|
28614
28664
|
var _a;
|
|
28615
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28616
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
28665
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
28666
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
28617
28667
|
createBaseVNode("div", {
|
|
28618
28668
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
28619
28669
|
}, [
|
|
28620
28670
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
28621
28671
|
var _a2;
|
|
28622
|
-
return openBlock(), createBlock(_sfc_main$
|
|
28672
|
+
return openBlock(), createBlock(_sfc_main$S, {
|
|
28623
28673
|
key: facet.key,
|
|
28624
28674
|
facet,
|
|
28625
28675
|
currentFilters: currentFiltersValue.value,
|
|
@@ -28634,8 +28684,8 @@ and ensure you are accounting for this risk.
|
|
|
28634
28684
|
};
|
|
28635
28685
|
}
|
|
28636
28686
|
});
|
|
28637
|
-
const _hoisted_1$
|
|
28638
|
-
const _sfc_main$
|
|
28687
|
+
const _hoisted_1$K = ["onClick"];
|
|
28688
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
28639
28689
|
__name: "FacetsButton",
|
|
28640
28690
|
props: {
|
|
28641
28691
|
options: {}
|
|
@@ -28655,12 +28705,12 @@ and ensure you are accounting for this risk.
|
|
|
28655
28705
|
key: 0,
|
|
28656
28706
|
class: "lupa-facets-button-filter",
|
|
28657
28707
|
onClick: withModifiers(handleClick, ["stop"])
|
|
28658
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
28708
|
+
}, toDisplayString(label.value), 9, _hoisted_1$K)) : createCommentVNode("", true);
|
|
28659
28709
|
};
|
|
28660
28710
|
}
|
|
28661
28711
|
});
|
|
28662
|
-
const _hoisted_1$
|
|
28663
|
-
const _sfc_main$
|
|
28712
|
+
const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
|
|
28713
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
28664
28714
|
__name: "Facets",
|
|
28665
28715
|
props: {
|
|
28666
28716
|
options: {},
|
|
@@ -28746,7 +28796,7 @@ and ensure you are accounting for this risk.
|
|
|
28746
28796
|
return openBlock(), createElementBlock("div", {
|
|
28747
28797
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
28748
28798
|
}, [
|
|
28749
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
28799
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$R, {
|
|
28750
28800
|
key: 0,
|
|
28751
28801
|
options: _ctx.options,
|
|
28752
28802
|
facets: regularFacets.value,
|
|
@@ -28756,8 +28806,8 @@ and ensure you are accounting for this risk.
|
|
|
28756
28806
|
onSelect: handleFacetSelect,
|
|
28757
28807
|
onClear: clear2
|
|
28758
28808
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
28759
|
-
createBaseVNode("div", _hoisted_1$
|
|
28760
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
28809
|
+
createBaseVNode("div", _hoisted_1$J, [
|
|
28810
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
28761
28811
|
key: 0,
|
|
28762
28812
|
options: _ctx.options,
|
|
28763
28813
|
onFilter: filter2
|
|
@@ -28767,12 +28817,12 @@ and ensure you are accounting for this risk.
|
|
|
28767
28817
|
};
|
|
28768
28818
|
}
|
|
28769
28819
|
});
|
|
28770
|
-
const _hoisted_1$
|
|
28820
|
+
const _hoisted_1$I = {
|
|
28771
28821
|
key: 0,
|
|
28772
28822
|
id: "lupa-search-result-filters",
|
|
28773
28823
|
class: "lupa-search-result-filters"
|
|
28774
28824
|
};
|
|
28775
|
-
const _sfc_main$
|
|
28825
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
28776
28826
|
__name: "SearchResultsFilters",
|
|
28777
28827
|
props: {
|
|
28778
28828
|
options: {},
|
|
@@ -28809,19 +28859,19 @@ and ensure you are accounting for this risk.
|
|
|
28809
28859
|
__expose({ fetch: fetch2 });
|
|
28810
28860
|
return (_ctx, _cache) => {
|
|
28811
28861
|
var _a;
|
|
28812
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28813
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
28862
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
28863
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
28814
28864
|
key: 0,
|
|
28815
28865
|
options: _ctx.options.currentFilters,
|
|
28816
28866
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
28817
28867
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
28818
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
28868
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$X, {
|
|
28819
28869
|
key: 1,
|
|
28820
28870
|
options: _ctx.options.categories,
|
|
28821
28871
|
ref_key: "categoryFilters",
|
|
28822
28872
|
ref: categoryFilters
|
|
28823
28873
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
28824
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
28874
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
|
|
28825
28875
|
key: 2,
|
|
28826
28876
|
options: _ctx.options.facets,
|
|
28827
28877
|
onFilter: filter2
|
|
@@ -28830,20 +28880,20 @@ and ensure you are accounting for this risk.
|
|
|
28830
28880
|
};
|
|
28831
28881
|
}
|
|
28832
28882
|
});
|
|
28833
|
-
const _hoisted_1$
|
|
28883
|
+
const _hoisted_1$H = {
|
|
28834
28884
|
key: 0,
|
|
28835
28885
|
class: "lupa-mobile-filter-sidebar"
|
|
28836
28886
|
};
|
|
28837
|
-
const _hoisted_2$
|
|
28838
|
-
const _hoisted_3$
|
|
28839
|
-
const _hoisted_4$
|
|
28840
|
-
const _hoisted_5$
|
|
28887
|
+
const _hoisted_2$w = ["onClick"];
|
|
28888
|
+
const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
|
|
28889
|
+
const _hoisted_4$i = { class: "lupa-sidebar-top" };
|
|
28890
|
+
const _hoisted_5$c = { class: "lupa-sidebar-title" };
|
|
28841
28891
|
const _hoisted_6$6 = {
|
|
28842
28892
|
key: 0,
|
|
28843
28893
|
class: "lupa-sidebar-filter-count"
|
|
28844
28894
|
};
|
|
28845
28895
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
28846
|
-
const _sfc_main$
|
|
28896
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
28847
28897
|
__name: "MobileFilterSidebar",
|
|
28848
28898
|
props: {
|
|
28849
28899
|
options: {}
|
|
@@ -28874,14 +28924,14 @@ and ensure you are accounting for this risk.
|
|
|
28874
28924
|
handleMobileToggle();
|
|
28875
28925
|
};
|
|
28876
28926
|
return (_ctx, _cache) => {
|
|
28877
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28927
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
28878
28928
|
createBaseVNode("div", {
|
|
28879
28929
|
class: "lupa-sidebar-close",
|
|
28880
28930
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
28881
|
-
}, null, 8, _hoisted_2$
|
|
28882
|
-
createBaseVNode("div", _hoisted_3$
|
|
28883
|
-
createBaseVNode("div", _hoisted_4$
|
|
28884
|
-
createBaseVNode("div", _hoisted_5$
|
|
28931
|
+
}, null, 8, _hoisted_2$w),
|
|
28932
|
+
createBaseVNode("div", _hoisted_3$p, [
|
|
28933
|
+
createBaseVNode("div", _hoisted_4$i, [
|
|
28934
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
28885
28935
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
28886
28936
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
28887
28937
|
]),
|
|
@@ -28891,7 +28941,7 @@ and ensure you are accounting for this risk.
|
|
|
28891
28941
|
})
|
|
28892
28942
|
]),
|
|
28893
28943
|
createBaseVNode("div", _hoisted_7$4, [
|
|
28894
|
-
createVNode(_sfc_main$
|
|
28944
|
+
createVNode(_sfc_main$O, {
|
|
28895
28945
|
options: _ctx.options,
|
|
28896
28946
|
expandable: isActiveFiltersExpanded.value,
|
|
28897
28947
|
onFilter: filter2
|
|
@@ -28902,14 +28952,14 @@ and ensure you are accounting for this risk.
|
|
|
28902
28952
|
};
|
|
28903
28953
|
}
|
|
28904
28954
|
});
|
|
28905
|
-
const _hoisted_1$
|
|
28906
|
-
const _hoisted_2$
|
|
28907
|
-
const _hoisted_3$
|
|
28955
|
+
const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
|
|
28956
|
+
const _hoisted_2$v = ["href", "onClick"];
|
|
28957
|
+
const _hoisted_3$o = {
|
|
28908
28958
|
key: 1,
|
|
28909
28959
|
class: "lupa-search-results-breadcrumb-text"
|
|
28910
28960
|
};
|
|
28911
|
-
const _hoisted_4$
|
|
28912
|
-
const _sfc_main$
|
|
28961
|
+
const _hoisted_4$h = { key: 2 };
|
|
28962
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
28913
28963
|
__name: "SearchResultsBreadcrumbs",
|
|
28914
28964
|
props: {
|
|
28915
28965
|
breadcrumbs: {}
|
|
@@ -28934,7 +28984,7 @@ and ensure you are accounting for this risk.
|
|
|
28934
28984
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
28935
28985
|
};
|
|
28936
28986
|
return (_ctx, _cache) => {
|
|
28937
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28987
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
28938
28988
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
28939
28989
|
var _a;
|
|
28940
28990
|
return openBlock(), createElementBlock("span", {
|
|
@@ -28949,20 +28999,20 @@ and ensure you are accounting for this risk.
|
|
|
28949
28999
|
var _a2;
|
|
28950
29000
|
return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
|
|
28951
29001
|
}
|
|
28952
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
28953
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
29002
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
29003
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
|
|
28954
29004
|
]);
|
|
28955
29005
|
}), 128))
|
|
28956
29006
|
]);
|
|
28957
29007
|
};
|
|
28958
29008
|
}
|
|
28959
29009
|
});
|
|
28960
|
-
const _hoisted_1$
|
|
29010
|
+
const _hoisted_1$F = {
|
|
28961
29011
|
key: 0,
|
|
28962
29012
|
id: "lupa-search-result-filters",
|
|
28963
29013
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
28964
29014
|
};
|
|
28965
|
-
const _sfc_main$
|
|
29015
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
28966
29016
|
__name: "FiltersTopDropdown",
|
|
28967
29017
|
props: {
|
|
28968
29018
|
options: {}
|
|
@@ -28979,8 +29029,8 @@ and ensure you are accounting for this risk.
|
|
|
28979
29029
|
});
|
|
28980
29030
|
return (_ctx, _cache) => {
|
|
28981
29031
|
var _a;
|
|
28982
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28983
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
29032
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
29033
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
|
|
28984
29034
|
key: 0,
|
|
28985
29035
|
options: _ctx.options.facets,
|
|
28986
29036
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -28991,8 +29041,8 @@ and ensure you are accounting for this risk.
|
|
|
28991
29041
|
};
|
|
28992
29042
|
}
|
|
28993
29043
|
});
|
|
28994
|
-
const _hoisted_1$
|
|
28995
|
-
const _sfc_main$
|
|
29044
|
+
const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
|
|
29045
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
28996
29046
|
__name: "SearchResultsLayoutSelection",
|
|
28997
29047
|
setup(__props) {
|
|
28998
29048
|
const searchResultStore = useSearchResultStore();
|
|
@@ -29003,7 +29053,7 @@ and ensure you are accounting for this risk.
|
|
|
29003
29053
|
searchResultStore.setLayout(layout2);
|
|
29004
29054
|
};
|
|
29005
29055
|
return (_ctx, _cache) => {
|
|
29006
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29056
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
29007
29057
|
createBaseVNode("div", {
|
|
29008
29058
|
class: normalizeClass([
|
|
29009
29059
|
"lupa-layout-selection-grid",
|
|
@@ -29025,11 +29075,11 @@ and ensure you are accounting for this risk.
|
|
|
29025
29075
|
};
|
|
29026
29076
|
}
|
|
29027
29077
|
});
|
|
29028
|
-
const _hoisted_1$
|
|
29078
|
+
const _hoisted_1$D = {
|
|
29029
29079
|
key: 0,
|
|
29030
29080
|
class: "lupa-mobile-toggle-filter-count"
|
|
29031
29081
|
};
|
|
29032
|
-
const _sfc_main$
|
|
29082
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
29033
29083
|
__name: "SearchResultsMobileToggle",
|
|
29034
29084
|
props: {
|
|
29035
29085
|
labels: {},
|
|
@@ -29077,12 +29127,12 @@ and ensure you are accounting for this risk.
|
|
|
29077
29127
|
onClick: handleMobileToggle
|
|
29078
29128
|
}, [
|
|
29079
29129
|
createTextVNode(toDisplayString(label.value) + " ", 1),
|
|
29080
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
29130
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
29081
29131
|
], 2);
|
|
29082
29132
|
};
|
|
29083
29133
|
}
|
|
29084
29134
|
});
|
|
29085
|
-
const _sfc_main$
|
|
29135
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
29086
29136
|
__name: "SearchResultsMobileFilterClose",
|
|
29087
29137
|
props: {
|
|
29088
29138
|
label: {}
|
|
@@ -29102,21 +29152,21 @@ and ensure you are accounting for this risk.
|
|
|
29102
29152
|
};
|
|
29103
29153
|
}
|
|
29104
29154
|
});
|
|
29105
|
-
const _hoisted_1$
|
|
29155
|
+
const _hoisted_1$C = {
|
|
29106
29156
|
key: 0,
|
|
29107
29157
|
id: "lupa-search-results-page-select",
|
|
29108
29158
|
"data-cy": "lupa-search-results-page-select"
|
|
29109
29159
|
};
|
|
29110
|
-
const _hoisted_2$
|
|
29160
|
+
const _hoisted_2$u = {
|
|
29111
29161
|
key: 0,
|
|
29112
29162
|
class: "lupa-page-number-separator"
|
|
29113
29163
|
};
|
|
29114
|
-
const _hoisted_3$
|
|
29115
|
-
const _hoisted_4$
|
|
29164
|
+
const _hoisted_3$n = ["onClick"];
|
|
29165
|
+
const _hoisted_4$g = {
|
|
29116
29166
|
key: 0,
|
|
29117
29167
|
class: "lupa-page-number-separator"
|
|
29118
29168
|
};
|
|
29119
|
-
const _sfc_main$
|
|
29169
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
29120
29170
|
__name: "SearchResultsPageSelect",
|
|
29121
29171
|
props: {
|
|
29122
29172
|
lastPageLabel: {},
|
|
@@ -29193,7 +29243,7 @@ and ensure you are accounting for this risk.
|
|
|
29193
29243
|
}
|
|
29194
29244
|
};
|
|
29195
29245
|
return (_ctx, _cache) => {
|
|
29196
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
29246
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
29197
29247
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
29198
29248
|
key: 0,
|
|
29199
29249
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -29204,7 +29254,7 @@ and ensure you are accounting for this risk.
|
|
|
29204
29254
|
class: "lupa-page-number lupa-page-number-first",
|
|
29205
29255
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
29206
29256
|
}, " 1 "),
|
|
29207
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
29257
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
|
|
29208
29258
|
], 64)) : createCommentVNode("", true),
|
|
29209
29259
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
29210
29260
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29215,10 +29265,10 @@ and ensure you are accounting for this risk.
|
|
|
29215
29265
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
29216
29266
|
]),
|
|
29217
29267
|
"data-cy": "lupa-page-number"
|
|
29218
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
29268
|
+
}, toDisplayString(page), 11, _hoisted_3$n);
|
|
29219
29269
|
}), 128)),
|
|
29220
29270
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
29221
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29271
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
|
|
29222
29272
|
createBaseVNode("div", {
|
|
29223
29273
|
class: "lupa-page-number lupa-page-number-last",
|
|
29224
29274
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -29237,15 +29287,15 @@ and ensure you are accounting for this risk.
|
|
|
29237
29287
|
};
|
|
29238
29288
|
}
|
|
29239
29289
|
});
|
|
29240
|
-
const _hoisted_1$
|
|
29290
|
+
const _hoisted_1$B = {
|
|
29241
29291
|
id: "lupa-search-results-page-size",
|
|
29242
29292
|
"data-cy": "lupa-search-results-page-size"
|
|
29243
29293
|
};
|
|
29244
|
-
const _hoisted_2$
|
|
29245
|
-
const _hoisted_3$
|
|
29246
|
-
const _hoisted_4$
|
|
29247
|
-
const _hoisted_5$
|
|
29248
|
-
const _sfc_main$
|
|
29294
|
+
const _hoisted_2$t = { id: "lupa-select" };
|
|
29295
|
+
const _hoisted_3$m = { class: "lupa-select-label" };
|
|
29296
|
+
const _hoisted_4$f = ["aria-label"];
|
|
29297
|
+
const _hoisted_5$b = ["value"];
|
|
29298
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
29249
29299
|
__name: "SearchResultsPageSize",
|
|
29250
29300
|
props: {
|
|
29251
29301
|
labels: {},
|
|
@@ -29273,9 +29323,9 @@ and ensure you are accounting for this risk.
|
|
|
29273
29323
|
});
|
|
29274
29324
|
};
|
|
29275
29325
|
return (_ctx, _cache) => {
|
|
29276
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29277
|
-
createBaseVNode("div", _hoisted_2$
|
|
29278
|
-
createBaseVNode("label", _hoisted_3$
|
|
29326
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
29327
|
+
createBaseVNode("div", _hoisted_2$t, [
|
|
29328
|
+
createBaseVNode("label", _hoisted_3$m, toDisplayString(label.value), 1),
|
|
29279
29329
|
createBaseVNode("select", {
|
|
29280
29330
|
class: "lupa-select-dropdown",
|
|
29281
29331
|
"aria-label": label.value,
|
|
@@ -29288,23 +29338,23 @@ and ensure you are accounting for this risk.
|
|
|
29288
29338
|
return openBlock(), createElementBlock("option", {
|
|
29289
29339
|
key: option,
|
|
29290
29340
|
value: option
|
|
29291
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
29341
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
|
|
29292
29342
|
}), 128))
|
|
29293
|
-
], 40, _hoisted_4$
|
|
29343
|
+
], 40, _hoisted_4$f)
|
|
29294
29344
|
])
|
|
29295
29345
|
]);
|
|
29296
29346
|
};
|
|
29297
29347
|
}
|
|
29298
29348
|
});
|
|
29299
|
-
const _hoisted_1$
|
|
29349
|
+
const _hoisted_1$A = {
|
|
29300
29350
|
id: "lupa-search-results-sort",
|
|
29301
29351
|
class: "lupa-search-results-sort"
|
|
29302
29352
|
};
|
|
29303
|
-
const _hoisted_2$
|
|
29304
|
-
const _hoisted_3$
|
|
29305
|
-
const _hoisted_4$
|
|
29306
|
-
const _hoisted_5$
|
|
29307
|
-
const _sfc_main$
|
|
29353
|
+
const _hoisted_2$s = { id: "lupa-select" };
|
|
29354
|
+
const _hoisted_3$l = { class: "lupa-select-label" };
|
|
29355
|
+
const _hoisted_4$e = ["aria-label"];
|
|
29356
|
+
const _hoisted_5$a = ["value"];
|
|
29357
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
29308
29358
|
__name: "SearchResultsSort",
|
|
29309
29359
|
props: {
|
|
29310
29360
|
options: {},
|
|
@@ -29353,9 +29403,9 @@ and ensure you are accounting for this risk.
|
|
|
29353
29403
|
previousKey.value = selectedKey.value;
|
|
29354
29404
|
};
|
|
29355
29405
|
return (_ctx, _cache) => {
|
|
29356
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29357
|
-
createBaseVNode("div", _hoisted_2$
|
|
29358
|
-
createBaseVNode("label", _hoisted_3$
|
|
29406
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
29407
|
+
createBaseVNode("div", _hoisted_2$s, [
|
|
29408
|
+
createBaseVNode("label", _hoisted_3$l, toDisplayString(_ctx.options.label), 1),
|
|
29359
29409
|
withDirectives(createBaseVNode("select", {
|
|
29360
29410
|
class: "lupa-select-dropdown",
|
|
29361
29411
|
"aria-label": _ctx.options.label,
|
|
@@ -29368,9 +29418,9 @@ and ensure you are accounting for this risk.
|
|
|
29368
29418
|
return openBlock(), createElementBlock("option", {
|
|
29369
29419
|
key: option.key,
|
|
29370
29420
|
value: option.key
|
|
29371
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
29421
|
+
}, toDisplayString(option.label), 9, _hoisted_5$a);
|
|
29372
29422
|
}), 128))
|
|
29373
|
-
], 40, _hoisted_4$
|
|
29423
|
+
], 40, _hoisted_4$e), [
|
|
29374
29424
|
[vModelSelect, selectedKey.value]
|
|
29375
29425
|
])
|
|
29376
29426
|
])
|
|
@@ -29378,14 +29428,14 @@ and ensure you are accounting for this risk.
|
|
|
29378
29428
|
};
|
|
29379
29429
|
}
|
|
29380
29430
|
});
|
|
29381
|
-
const _hoisted_1$
|
|
29382
|
-
const _hoisted_2$
|
|
29431
|
+
const _hoisted_1$z = { class: "lupa-toolbar-left" };
|
|
29432
|
+
const _hoisted_2$r = {
|
|
29383
29433
|
key: 0,
|
|
29384
29434
|
class: "lupa-toolbar-right-title"
|
|
29385
29435
|
};
|
|
29386
|
-
const _hoisted_3$
|
|
29387
|
-
const _hoisted_4$
|
|
29388
|
-
const _hoisted_5$
|
|
29436
|
+
const _hoisted_3$k = { key: 2 };
|
|
29437
|
+
const _hoisted_4$d = { key: 4 };
|
|
29438
|
+
const _hoisted_5$9 = { key: 6 };
|
|
29389
29439
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
29390
29440
|
const _hoisted_7$3 = {
|
|
29391
29441
|
key: 0,
|
|
@@ -29393,7 +29443,7 @@ and ensure you are accounting for this risk.
|
|
|
29393
29443
|
};
|
|
29394
29444
|
const _hoisted_8 = { key: 2 };
|
|
29395
29445
|
const _hoisted_9 = { key: 4 };
|
|
29396
|
-
const _sfc_main$
|
|
29446
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
29397
29447
|
__name: "SearchResultsToolbar",
|
|
29398
29448
|
props: {
|
|
29399
29449
|
options: {},
|
|
@@ -29504,39 +29554,39 @@ and ensure you are accounting for this risk.
|
|
|
29504
29554
|
id: "lupa-search-results-toolbar",
|
|
29505
29555
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
29506
29556
|
}, [
|
|
29507
|
-
createBaseVNode("div", _hoisted_1$
|
|
29508
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
29509
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
29510
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
29557
|
+
createBaseVNode("div", _hoisted_1$z, [
|
|
29558
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
29559
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$K, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$k)),
|
|
29560
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
29511
29561
|
key: 3,
|
|
29512
29562
|
label: searchSummaryLabel.value,
|
|
29513
29563
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
29514
29564
|
onClear: handleClearAll
|
|
29515
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29516
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
29565
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
|
|
29566
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
29517
29567
|
key: 5,
|
|
29518
29568
|
options: paginationOptions.value.pageSelect,
|
|
29519
29569
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
29520
29570
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
29521
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
29571
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
|
|
29522
29572
|
]),
|
|
29523
29573
|
createBaseVNode("div", _hoisted_6$5, [
|
|
29524
29574
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
29525
|
-
createVNode(_sfc_main$
|
|
29575
|
+
createVNode(_sfc_main$J, {
|
|
29526
29576
|
labels: optionsValue.value.labels,
|
|
29527
29577
|
"show-filter-count": showMobileFilterCount.value
|
|
29528
29578
|
}, null, 8, ["labels", "show-filter-count"]),
|
|
29529
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
29579
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$G, {
|
|
29530
29580
|
key: 1,
|
|
29531
29581
|
options: paginationOptions.value.pageSize,
|
|
29532
29582
|
labels: paginationOptions.value.labels
|
|
29533
29583
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
29534
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
29584
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
29535
29585
|
key: 3,
|
|
29536
29586
|
options: sortOptions.value,
|
|
29537
29587
|
callbacks: callbacks.value
|
|
29538
29588
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
29539
|
-
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
29589
|
+
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$I, {
|
|
29540
29590
|
key: 5,
|
|
29541
29591
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
29542
29592
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -29545,7 +29595,7 @@ and ensure you are accounting for this risk.
|
|
|
29545
29595
|
};
|
|
29546
29596
|
}
|
|
29547
29597
|
});
|
|
29548
|
-
const _sfc_main$
|
|
29598
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
29549
29599
|
__name: "SearchResultsProductImage",
|
|
29550
29600
|
props: {
|
|
29551
29601
|
item: {},
|
|
@@ -29553,7 +29603,7 @@ and ensure you are accounting for this risk.
|
|
|
29553
29603
|
},
|
|
29554
29604
|
setup(__props) {
|
|
29555
29605
|
return (_ctx, _cache) => {
|
|
29556
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29606
|
+
return openBlock(), createBlock(_sfc_main$1p, {
|
|
29557
29607
|
item: _ctx.item,
|
|
29558
29608
|
options: _ctx.options,
|
|
29559
29609
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -29562,16 +29612,16 @@ and ensure you are accounting for this risk.
|
|
|
29562
29612
|
};
|
|
29563
29613
|
}
|
|
29564
29614
|
});
|
|
29565
|
-
const _hoisted_1$
|
|
29566
|
-
const _hoisted_2$
|
|
29567
|
-
const _hoisted_3$
|
|
29568
|
-
const _hoisted_4$
|
|
29569
|
-
const _hoisted_5$
|
|
29615
|
+
const _hoisted_1$y = ["title", "innerHTML"];
|
|
29616
|
+
const _hoisted_2$q = ["title"];
|
|
29617
|
+
const _hoisted_3$j = ["href", "innerHTML"];
|
|
29618
|
+
const _hoisted_4$c = ["title"];
|
|
29619
|
+
const _hoisted_5$8 = {
|
|
29570
29620
|
key: 0,
|
|
29571
29621
|
class: "lupa-search-results-product-title-text"
|
|
29572
29622
|
};
|
|
29573
29623
|
const _hoisted_6$4 = ["href"];
|
|
29574
|
-
const _sfc_main$
|
|
29624
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
29575
29625
|
__name: "SearchResultsProductTitle",
|
|
29576
29626
|
props: {
|
|
29577
29627
|
item: {},
|
|
@@ -29608,7 +29658,7 @@ and ensure you are accounting for this risk.
|
|
|
29608
29658
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29609
29659
|
title: sanitizedTitle.value,
|
|
29610
29660
|
innerHTML: sanitizedTitle.value
|
|
29611
|
-
}, null, 12, _hoisted_1$
|
|
29661
|
+
}, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
29612
29662
|
key: 1,
|
|
29613
29663
|
class: "lupa-search-results-product-title",
|
|
29614
29664
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -29619,26 +29669,26 @@ and ensure you are accounting for this risk.
|
|
|
29619
29669
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
29620
29670
|
innerHTML: sanitizedTitle.value,
|
|
29621
29671
|
onClick: handleNavigation
|
|
29622
|
-
}, null, 8, _hoisted_3$
|
|
29623
|
-
], 12, _hoisted_2$
|
|
29672
|
+
}, null, 8, _hoisted_3$j)
|
|
29673
|
+
], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
|
|
29624
29674
|
key: 2,
|
|
29625
29675
|
class: "lupa-search-results-product-title",
|
|
29626
29676
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29627
29677
|
title: title.value
|
|
29628
29678
|
}, [
|
|
29629
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
29679
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
29630
29680
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
29631
29681
|
key: 1,
|
|
29632
29682
|
href: _ctx.link,
|
|
29633
29683
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
29634
29684
|
onClick: handleNavigation
|
|
29635
29685
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
29636
|
-
], 12, _hoisted_4$
|
|
29686
|
+
], 12, _hoisted_4$c));
|
|
29637
29687
|
};
|
|
29638
29688
|
}
|
|
29639
29689
|
});
|
|
29640
|
-
const _hoisted_1$
|
|
29641
|
-
const _sfc_main$
|
|
29690
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
29691
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
29642
29692
|
__name: "SearchResultsProductDescription",
|
|
29643
29693
|
props: {
|
|
29644
29694
|
item: {},
|
|
@@ -29665,7 +29715,7 @@ and ensure you are accounting for this risk.
|
|
|
29665
29715
|
class: "lupa-search-results-product-description",
|
|
29666
29716
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
29667
29717
|
innerHTML: sanitizedDescription.value
|
|
29668
|
-
}, null, 12, _hoisted_1$
|
|
29718
|
+
}, null, 12, _hoisted_1$x)) : (openBlock(), createElementBlock("div", {
|
|
29669
29719
|
key: 1,
|
|
29670
29720
|
class: "lupa-search-results-product-description",
|
|
29671
29721
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -29673,15 +29723,15 @@ and ensure you are accounting for this risk.
|
|
|
29673
29723
|
};
|
|
29674
29724
|
}
|
|
29675
29725
|
});
|
|
29676
|
-
const _hoisted_1$
|
|
29677
|
-
const _hoisted_2$
|
|
29678
|
-
const _hoisted_3$
|
|
29679
|
-
const _hoisted_4$
|
|
29680
|
-
const _hoisted_5$
|
|
29726
|
+
const _hoisted_1$w = { id: "lupa-search-results-rating" };
|
|
29727
|
+
const _hoisted_2$p = { class: "lupa-ratings" };
|
|
29728
|
+
const _hoisted_3$i = { class: "lupa-ratings-base" };
|
|
29729
|
+
const _hoisted_4$b = ["innerHTML"];
|
|
29730
|
+
const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
29681
29731
|
const _hoisted_6$3 = ["innerHTML"];
|
|
29682
29732
|
const _hoisted_7$2 = ["href"];
|
|
29683
29733
|
const STAR_COUNT = 5;
|
|
29684
|
-
const _sfc_main$
|
|
29734
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
29685
29735
|
__name: "SearchResultsProductRating",
|
|
29686
29736
|
props: {
|
|
29687
29737
|
item: {},
|
|
@@ -29718,18 +29768,18 @@ and ensure you are accounting for this risk.
|
|
|
29718
29768
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
29719
29769
|
});
|
|
29720
29770
|
return (_ctx, _cache) => {
|
|
29721
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29722
|
-
createBaseVNode("div", _hoisted_2$
|
|
29723
|
-
createBaseVNode("div", _hoisted_3$
|
|
29771
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
29772
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
29773
|
+
createBaseVNode("div", _hoisted_3$i, [
|
|
29724
29774
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
29725
29775
|
return openBlock(), createElementBlock("div", {
|
|
29726
29776
|
key: index,
|
|
29727
29777
|
innerHTML: star,
|
|
29728
29778
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
29729
|
-
}, null, 8, _hoisted_4$
|
|
29779
|
+
}, null, 8, _hoisted_4$b);
|
|
29730
29780
|
}), 128))
|
|
29731
29781
|
]),
|
|
29732
|
-
createBaseVNode("div", _hoisted_5$
|
|
29782
|
+
createBaseVNode("div", _hoisted_5$7, [
|
|
29733
29783
|
createBaseVNode("div", {
|
|
29734
29784
|
class: "lupa-ratings-highlighted",
|
|
29735
29785
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -29752,11 +29802,11 @@ and ensure you are accounting for this risk.
|
|
|
29752
29802
|
};
|
|
29753
29803
|
}
|
|
29754
29804
|
});
|
|
29755
|
-
const _hoisted_1$
|
|
29805
|
+
const _hoisted_1$v = {
|
|
29756
29806
|
class: "lupa-search-results-product-regular-price",
|
|
29757
29807
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
29758
29808
|
};
|
|
29759
|
-
const _sfc_main$
|
|
29809
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
29760
29810
|
__name: "SearchResultsProductRegularPrice",
|
|
29761
29811
|
props: {
|
|
29762
29812
|
item: {},
|
|
@@ -29775,11 +29825,11 @@ and ensure you are accounting for this risk.
|
|
|
29775
29825
|
);
|
|
29776
29826
|
});
|
|
29777
29827
|
return (_ctx, _cache) => {
|
|
29778
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29828
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, toDisplayString(price.value), 1);
|
|
29779
29829
|
};
|
|
29780
29830
|
}
|
|
29781
29831
|
});
|
|
29782
|
-
const _sfc_main$
|
|
29832
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
29783
29833
|
__name: "SearchResultsProductPrice",
|
|
29784
29834
|
props: {
|
|
29785
29835
|
item: {},
|
|
@@ -29810,12 +29860,12 @@ and ensure you are accounting for this risk.
|
|
|
29810
29860
|
};
|
|
29811
29861
|
}
|
|
29812
29862
|
});
|
|
29813
|
-
const _hoisted_1$
|
|
29814
|
-
const _hoisted_2$
|
|
29815
|
-
const _hoisted_3$
|
|
29816
|
-
const _hoisted_4$
|
|
29817
|
-
const _hoisted_5$
|
|
29818
|
-
const _sfc_main$
|
|
29863
|
+
const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
29864
|
+
const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
|
|
29865
|
+
const _hoisted_3$h = ["disabled"];
|
|
29866
|
+
const _hoisted_4$a = ["href"];
|
|
29867
|
+
const _hoisted_5$6 = ["id", "disabled", "onClick"];
|
|
29868
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
29819
29869
|
__name: "SearchResultsProductAddToCart",
|
|
29820
29870
|
props: {
|
|
29821
29871
|
item: {},
|
|
@@ -29858,16 +29908,16 @@ and ensure you are accounting for this risk.
|
|
|
29858
29908
|
return Boolean(props.link && props.options.link);
|
|
29859
29909
|
});
|
|
29860
29910
|
return (_ctx, _cache) => {
|
|
29861
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
29862
|
-
createBaseVNode("div", _hoisted_2$
|
|
29911
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
29912
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
29863
29913
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
29864
29914
|
key: 0,
|
|
29865
29915
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
29866
29916
|
"data-cy": "lupa-add-to-cart",
|
|
29867
29917
|
disabled: !inStockValue.value || loading.value
|
|
29868
29918
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
29869
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
29870
|
-
], 16, _hoisted_3$
|
|
29919
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
|
|
29920
|
+
], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
29871
29921
|
key: 1,
|
|
29872
29922
|
id: id.value,
|
|
29873
29923
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
@@ -29875,18 +29925,18 @@ and ensure you are accounting for this risk.
|
|
|
29875
29925
|
disabled: !inStockValue.value || loading.value
|
|
29876
29926
|
}, _ctx.dynamicAttributes, {
|
|
29877
29927
|
onClick: withModifiers(handleClick, ["stop"])
|
|
29878
|
-
}), toDisplayString(label.value), 17, _hoisted_5$
|
|
29928
|
+
}), toDisplayString(label.value), 17, _hoisted_5$6))
|
|
29879
29929
|
])
|
|
29880
29930
|
]);
|
|
29881
29931
|
};
|
|
29882
29932
|
}
|
|
29883
29933
|
});
|
|
29884
|
-
const _hoisted_1$
|
|
29885
|
-
const _hoisted_2$
|
|
29886
|
-
const _hoisted_3$
|
|
29887
|
-
const _hoisted_4$
|
|
29888
|
-
const _hoisted_5$
|
|
29889
|
-
const _sfc_main$
|
|
29934
|
+
const _hoisted_1$t = ["innerHTML"];
|
|
29935
|
+
const _hoisted_2$n = { key: 0 };
|
|
29936
|
+
const _hoisted_3$g = { key: 1 };
|
|
29937
|
+
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
29938
|
+
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
29939
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
29890
29940
|
__name: "SearchResultsProductCustom",
|
|
29891
29941
|
props: {
|
|
29892
29942
|
item: {},
|
|
@@ -29924,20 +29974,20 @@ and ensure you are accounting for this risk.
|
|
|
29924
29974
|
key: 0,
|
|
29925
29975
|
class: className.value,
|
|
29926
29976
|
innerHTML: text.value
|
|
29927
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
29977
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
29928
29978
|
key: 1,
|
|
29929
29979
|
class: className.value
|
|
29930
29980
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
29931
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
29932
|
-
createBaseVNode("div", _hoisted_4$
|
|
29933
|
-
createBaseVNode("div", _hoisted_5$
|
|
29981
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
|
|
29982
|
+
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
29983
|
+
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
29934
29984
|
]))
|
|
29935
29985
|
], 16));
|
|
29936
29986
|
};
|
|
29937
29987
|
}
|
|
29938
29988
|
});
|
|
29939
|
-
const _hoisted_1$
|
|
29940
|
-
const _sfc_main$
|
|
29989
|
+
const _hoisted_1$s = ["innerHTML"];
|
|
29990
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
29941
29991
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
29942
29992
|
props: {
|
|
29943
29993
|
item: {},
|
|
@@ -29968,15 +30018,15 @@ and ensure you are accounting for this risk.
|
|
|
29968
30018
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
29969
30019
|
class: className.value,
|
|
29970
30020
|
innerHTML: text.value
|
|
29971
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
30021
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
|
|
29972
30022
|
};
|
|
29973
30023
|
}
|
|
29974
30024
|
});
|
|
29975
|
-
const _hoisted_1$
|
|
29976
|
-
const _hoisted_2$
|
|
29977
|
-
const _hoisted_3$
|
|
29978
|
-
const _hoisted_4$
|
|
29979
|
-
const _sfc_main$
|
|
30025
|
+
const _hoisted_1$r = { id: "lupa-search-results-rating" };
|
|
30026
|
+
const _hoisted_2$m = ["innerHTML"];
|
|
30027
|
+
const _hoisted_3$f = { class: "lupa-ratings" };
|
|
30028
|
+
const _hoisted_4$8 = ["href"];
|
|
30029
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
29980
30030
|
__name: "SearchResultsProductSingleStarRating",
|
|
29981
30031
|
props: {
|
|
29982
30032
|
item: {},
|
|
@@ -30004,35 +30054,35 @@ and ensure you are accounting for this risk.
|
|
|
30004
30054
|
return RATING_STAR_HTML;
|
|
30005
30055
|
});
|
|
30006
30056
|
return (_ctx, _cache) => {
|
|
30007
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30057
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
30008
30058
|
createBaseVNode("div", {
|
|
30009
30059
|
innerHTML: star.value,
|
|
30010
30060
|
class: "lupa-rating lupa-rating-highlighted"
|
|
30011
|
-
}, null, 8, _hoisted_2$
|
|
30012
|
-
createBaseVNode("div", _hoisted_3$
|
|
30061
|
+
}, null, 8, _hoisted_2$m),
|
|
30062
|
+
createBaseVNode("div", _hoisted_3$f, toDisplayString(rating.value), 1),
|
|
30013
30063
|
createBaseVNode("a", {
|
|
30014
30064
|
href: ratingLink.value,
|
|
30015
30065
|
class: "lupa-total-ratings"
|
|
30016
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
30066
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
|
|
30017
30067
|
]);
|
|
30018
30068
|
};
|
|
30019
30069
|
}
|
|
30020
30070
|
});
|
|
30021
30071
|
const __default__ = {
|
|
30022
30072
|
components: {
|
|
30023
|
-
SearchResultsProductImage: _sfc_main$
|
|
30024
|
-
SearchResultsProductTitle: _sfc_main$
|
|
30025
|
-
SearchResultsProductDescription: _sfc_main$
|
|
30026
|
-
SearchResultsProductRating: _sfc_main$
|
|
30027
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
30028
|
-
SearchResultsProductPrice: _sfc_main$
|
|
30029
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
30030
|
-
SearchResultsProductCustom: _sfc_main$
|
|
30031
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
30032
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
30033
|
-
}
|
|
30034
|
-
};
|
|
30035
|
-
const _sfc_main$
|
|
30073
|
+
SearchResultsProductImage: _sfc_main$D,
|
|
30074
|
+
SearchResultsProductTitle: _sfc_main$C,
|
|
30075
|
+
SearchResultsProductDescription: _sfc_main$B,
|
|
30076
|
+
SearchResultsProductRating: _sfc_main$A,
|
|
30077
|
+
SearchResultsProductRegularPrice: _sfc_main$z,
|
|
30078
|
+
SearchResultsProductPrice: _sfc_main$y,
|
|
30079
|
+
SearchResultsProductAddToCart: _sfc_main$x,
|
|
30080
|
+
SearchResultsProductCustom: _sfc_main$w,
|
|
30081
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$v,
|
|
30082
|
+
SearchResultsProductSingleStarRating: _sfc_main$u
|
|
30083
|
+
}
|
|
30084
|
+
};
|
|
30085
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
30036
30086
|
__name: "SearchResultsProductCardElement",
|
|
30037
30087
|
props: {
|
|
30038
30088
|
item: {},
|
|
@@ -30114,14 +30164,14 @@ and ensure you are accounting for this risk.
|
|
|
30114
30164
|
};
|
|
30115
30165
|
}
|
|
30116
30166
|
}));
|
|
30117
|
-
const _hoisted_1$
|
|
30118
|
-
const _hoisted_2$
|
|
30119
|
-
const _hoisted_3$
|
|
30167
|
+
const _hoisted_1$q = ["onMouseup"];
|
|
30168
|
+
const _hoisted_2$l = ["href"];
|
|
30169
|
+
const _hoisted_3$e = {
|
|
30120
30170
|
key: 0,
|
|
30121
30171
|
class: "lupa-out-of-stock"
|
|
30122
30172
|
};
|
|
30123
|
-
const _hoisted_4$
|
|
30124
|
-
const _sfc_main$
|
|
30173
|
+
const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
|
|
30174
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
30125
30175
|
__name: "SearchResultsProductCard",
|
|
30126
30176
|
props: {
|
|
30127
30177
|
product: {},
|
|
@@ -30286,7 +30336,7 @@ and ensure you are accounting for this risk.
|
|
|
30286
30336
|
onClick: handleClick,
|
|
30287
30337
|
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
30288
30338
|
}), [
|
|
30289
|
-
createVNode(_sfc_main$
|
|
30339
|
+
createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
30290
30340
|
createBaseVNode("div", {
|
|
30291
30341
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
30292
30342
|
}, [
|
|
@@ -30296,7 +30346,7 @@ and ensure you are accounting for this risk.
|
|
|
30296
30346
|
onClick: handleNavigation
|
|
30297
30347
|
}, [
|
|
30298
30348
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
30299
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30349
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
30300
30350
|
class: "lupa-search-results-product-element",
|
|
30301
30351
|
item: _ctx.product,
|
|
30302
30352
|
element,
|
|
@@ -30307,16 +30357,16 @@ and ensure you are accounting for this risk.
|
|
|
30307
30357
|
onProductEvent: handleProductEvent
|
|
30308
30358
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
30309
30359
|
}), 128)),
|
|
30310
|
-
createVNode(_sfc_main$
|
|
30360
|
+
createVNode(_sfc_main$19, {
|
|
30311
30361
|
options: badgesOptions.value,
|
|
30312
30362
|
position: "image",
|
|
30313
30363
|
class: "lupa-image-badges"
|
|
30314
30364
|
}, null, 8, ["options"]),
|
|
30315
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
30316
|
-
], 8, _hoisted_2$
|
|
30317
|
-
createBaseVNode("div", _hoisted_4$
|
|
30365
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
30366
|
+
], 8, _hoisted_2$l),
|
|
30367
|
+
createBaseVNode("div", _hoisted_4$7, [
|
|
30318
30368
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
30319
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30369
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
30320
30370
|
class: "lupa-search-results-product-element",
|
|
30321
30371
|
item: _ctx.product,
|
|
30322
30372
|
element,
|
|
@@ -30334,7 +30384,7 @@ and ensure you are accounting for this risk.
|
|
|
30334
30384
|
class: normalizeClass("lupa-element-group-" + group)
|
|
30335
30385
|
}, [
|
|
30336
30386
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
30337
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30387
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
30338
30388
|
class: "lupa-search-results-product-element",
|
|
30339
30389
|
item: _ctx.product,
|
|
30340
30390
|
element,
|
|
@@ -30348,27 +30398,27 @@ and ensure you are accounting for this risk.
|
|
|
30348
30398
|
], 2);
|
|
30349
30399
|
}), 128))
|
|
30350
30400
|
], 2)
|
|
30351
|
-
], 16, _hoisted_1$
|
|
30401
|
+
], 16, _hoisted_1$q);
|
|
30352
30402
|
};
|
|
30353
30403
|
}
|
|
30354
30404
|
});
|
|
30355
|
-
const _hoisted_1$
|
|
30405
|
+
const _hoisted_1$p = {
|
|
30356
30406
|
id: "lupa-search-results-similar-queries",
|
|
30357
30407
|
"data-cy": "lupa-search-results-similar-queries"
|
|
30358
30408
|
};
|
|
30359
|
-
const _hoisted_2$
|
|
30360
|
-
const _hoisted_3$
|
|
30409
|
+
const _hoisted_2$k = { class: "lupa-similar-queries-label" };
|
|
30410
|
+
const _hoisted_3$d = {
|
|
30361
30411
|
class: "lupa-similar-query-label",
|
|
30362
30412
|
"data-cy": "lupa-similar-query-label"
|
|
30363
30413
|
};
|
|
30364
|
-
const _hoisted_4$
|
|
30365
|
-
const _hoisted_5$
|
|
30414
|
+
const _hoisted_4$6 = ["onClick"];
|
|
30415
|
+
const _hoisted_5$4 = ["innerHTML"];
|
|
30366
30416
|
const _hoisted_6$2 = { key: 0 };
|
|
30367
30417
|
const _hoisted_7$1 = {
|
|
30368
30418
|
class: "lupa-products",
|
|
30369
30419
|
"data-cy": "lupa-products"
|
|
30370
30420
|
};
|
|
30371
|
-
const _sfc_main$
|
|
30421
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
30372
30422
|
__name: "SearchResultsSimilarQueries",
|
|
30373
30423
|
props: {
|
|
30374
30424
|
labels: {},
|
|
@@ -30406,11 +30456,11 @@ and ensure you are accounting for this risk.
|
|
|
30406
30456
|
};
|
|
30407
30457
|
};
|
|
30408
30458
|
return (_ctx, _cache) => {
|
|
30409
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30410
|
-
createBaseVNode("div", _hoisted_2$
|
|
30459
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
30460
|
+
createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
30411
30461
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
30412
30462
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
30413
|
-
createBaseVNode("div", _hoisted_3$
|
|
30463
|
+
createBaseVNode("div", _hoisted_3$d, [
|
|
30414
30464
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
30415
30465
|
createBaseVNode("span", {
|
|
30416
30466
|
id: "lupa-similar-query-text-component",
|
|
@@ -30420,13 +30470,13 @@ and ensure you are accounting for this risk.
|
|
|
30420
30470
|
}, [
|
|
30421
30471
|
createBaseVNode("span", {
|
|
30422
30472
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
30423
|
-
}, null, 8, _hoisted_5$
|
|
30473
|
+
}, null, 8, _hoisted_5$4),
|
|
30424
30474
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
30425
|
-
], 8, _hoisted_4$
|
|
30475
|
+
], 8, _hoisted_4$6)
|
|
30426
30476
|
]),
|
|
30427
30477
|
createBaseVNode("div", _hoisted_7$1, [
|
|
30428
30478
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
30429
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30479
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
30430
30480
|
style: normalizeStyle(_ctx.columnSize),
|
|
30431
30481
|
key: getDocumentKey(index2, product),
|
|
30432
30482
|
product,
|
|
@@ -30441,15 +30491,15 @@ and ensure you are accounting for this risk.
|
|
|
30441
30491
|
};
|
|
30442
30492
|
}
|
|
30443
30493
|
});
|
|
30444
|
-
const _hoisted_1$
|
|
30494
|
+
const _hoisted_1$o = {
|
|
30445
30495
|
key: 0,
|
|
30446
30496
|
class: "lupa-results-additional-panel"
|
|
30447
30497
|
};
|
|
30448
|
-
const _hoisted_2$
|
|
30498
|
+
const _hoisted_2$j = {
|
|
30449
30499
|
class: "lupa-results-additional-panel-items",
|
|
30450
30500
|
"data-cy": "lupa-results-additional-panel-items"
|
|
30451
30501
|
};
|
|
30452
|
-
const _sfc_main$
|
|
30502
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
30453
30503
|
__name: "AdditionalPanel",
|
|
30454
30504
|
props: {
|
|
30455
30505
|
panel: {},
|
|
@@ -30522,10 +30572,10 @@ and ensure you are accounting for this risk.
|
|
|
30522
30572
|
handleQueryChange();
|
|
30523
30573
|
});
|
|
30524
30574
|
return (_ctx, _cache) => {
|
|
30525
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30526
|
-
createBaseVNode("div", _hoisted_2$
|
|
30575
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
30576
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
30527
30577
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
30528
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30578
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
30529
30579
|
key: index,
|
|
30530
30580
|
product: item,
|
|
30531
30581
|
options: _ctx.panel,
|
|
@@ -30543,11 +30593,11 @@ and ensure you are accounting for this risk.
|
|
|
30543
30593
|
};
|
|
30544
30594
|
}
|
|
30545
30595
|
});
|
|
30546
|
-
const _hoisted_1$
|
|
30596
|
+
const _hoisted_1$n = {
|
|
30547
30597
|
key: 0,
|
|
30548
30598
|
class: "lupa-results-additional-panels"
|
|
30549
30599
|
};
|
|
30550
|
-
const _sfc_main$
|
|
30600
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
30551
30601
|
__name: "AdditionalPanels",
|
|
30552
30602
|
props: {
|
|
30553
30603
|
options: {},
|
|
@@ -30564,9 +30614,9 @@ and ensure you are accounting for this risk.
|
|
|
30564
30614
|
return locationPanels.value.length > 0;
|
|
30565
30615
|
});
|
|
30566
30616
|
return (_ctx, _cache) => {
|
|
30567
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30617
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
30568
30618
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
30569
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30619
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
30570
30620
|
key: panel.queryKey,
|
|
30571
30621
|
panel,
|
|
30572
30622
|
options: _ctx.sdkOptions
|
|
@@ -30583,29 +30633,29 @@ and ensure you are accounting for this risk.
|
|
|
30583
30633
|
}
|
|
30584
30634
|
return target;
|
|
30585
30635
|
};
|
|
30586
|
-
const _sfc_main$
|
|
30587
|
-
const _hoisted_1$
|
|
30588
|
-
const _hoisted_2$
|
|
30636
|
+
const _sfc_main$o = {};
|
|
30637
|
+
const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
|
|
30638
|
+
const _hoisted_2$i = { class: "lupa-spinner" };
|
|
30589
30639
|
function _sfc_render(_ctx, _cache) {
|
|
30590
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30591
|
-
createBaseVNode("div", _hoisted_2$
|
|
30640
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
30641
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
30592
30642
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
30593
30643
|
return createBaseVNode("div", { key: x2 });
|
|
30594
30644
|
}), 64))
|
|
30595
30645
|
])
|
|
30596
30646
|
]);
|
|
30597
30647
|
}
|
|
30598
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30599
|
-
const _hoisted_1$
|
|
30648
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
|
|
30649
|
+
const _hoisted_1$l = {
|
|
30600
30650
|
id: "lupa-search-results-similar-results",
|
|
30601
30651
|
"data-cy": "lupa-search-results-similar-results"
|
|
30602
30652
|
};
|
|
30603
|
-
const _hoisted_2$
|
|
30604
|
-
const _hoisted_3$
|
|
30653
|
+
const _hoisted_2$h = { class: "lupa-similar-results-label" };
|
|
30654
|
+
const _hoisted_3$c = {
|
|
30605
30655
|
class: "lupa-products",
|
|
30606
30656
|
"data-cy": "lupa-products"
|
|
30607
30657
|
};
|
|
30608
|
-
const _sfc_main$
|
|
30658
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
30609
30659
|
__name: "SearchResultsSimilarResults",
|
|
30610
30660
|
props: {
|
|
30611
30661
|
columnSize: {},
|
|
@@ -30626,11 +30676,11 @@ and ensure you are accounting for this risk.
|
|
|
30626
30676
|
};
|
|
30627
30677
|
});
|
|
30628
30678
|
return (_ctx, _cache) => {
|
|
30629
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30630
|
-
createBaseVNode("div", _hoisted_2$
|
|
30631
|
-
createBaseVNode("div", _hoisted_3$
|
|
30679
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
30680
|
+
createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
30681
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
30632
30682
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
30633
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30683
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
30634
30684
|
style: normalizeStyle(_ctx.columnSize),
|
|
30635
30685
|
key: getDocumentKey(index, product),
|
|
30636
30686
|
product,
|
|
@@ -30743,20 +30793,23 @@ and ensure you are accounting for this risk.
|
|
|
30743
30793
|
return [];
|
|
30744
30794
|
});
|
|
30745
30795
|
const extractRelatedSource = (source, searchResults2, options, activeFilters) => __async2(void 0, null, function* () {
|
|
30796
|
+
if (!source) {
|
|
30797
|
+
return [];
|
|
30798
|
+
}
|
|
30746
30799
|
switch (source.type) {
|
|
30747
30800
|
case RelatedQuerySourceType.FACETS:
|
|
30748
30801
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
30749
30802
|
}
|
|
30750
30803
|
});
|
|
30751
|
-
const _hoisted_1$
|
|
30752
|
-
const _hoisted_2$
|
|
30753
|
-
const _hoisted_3$
|
|
30754
|
-
const _hoisted_4$
|
|
30755
|
-
const _hoisted_5$
|
|
30804
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
30805
|
+
const _hoisted_2$g = { class: "lupa-related-query-image" };
|
|
30806
|
+
const _hoisted_3$b = { class: "lupa-related-query-label" };
|
|
30807
|
+
const _hoisted_4$5 = { class: "lupa-related-query-title" };
|
|
30808
|
+
const _hoisted_5$3 = {
|
|
30756
30809
|
key: 0,
|
|
30757
30810
|
class: "lupa-related-query-count"
|
|
30758
30811
|
};
|
|
30759
|
-
const _sfc_main$
|
|
30812
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
30760
30813
|
__name: "RelatedQueryPanel",
|
|
30761
30814
|
props: {
|
|
30762
30815
|
query: {},
|
|
@@ -30851,9 +30904,9 @@ and ensure you are accounting for this risk.
|
|
|
30851
30904
|
});
|
|
30852
30905
|
return (_ctx, _cache) => {
|
|
30853
30906
|
var _a;
|
|
30854
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30855
|
-
createBaseVNode("div", _hoisted_2$
|
|
30856
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
30907
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
30908
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
30909
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
30857
30910
|
key: 0,
|
|
30858
30911
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
30859
30912
|
"image-class": "lupa-related-query-image",
|
|
@@ -30861,24 +30914,24 @@ and ensure you are accounting for this risk.
|
|
|
30861
30914
|
options: image.value
|
|
30862
30915
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
30863
30916
|
]),
|
|
30864
|
-
createBaseVNode("div", _hoisted_3$
|
|
30865
|
-
createBaseVNode("span", _hoisted_4$
|
|
30866
|
-
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
30917
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
30918
|
+
createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
|
|
30919
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
30867
30920
|
])
|
|
30868
30921
|
]);
|
|
30869
30922
|
};
|
|
30870
30923
|
}
|
|
30871
30924
|
});
|
|
30872
|
-
const _hoisted_1$
|
|
30925
|
+
const _hoisted_1$j = {
|
|
30873
30926
|
key: 0,
|
|
30874
30927
|
class: "lupa-related-queries"
|
|
30875
30928
|
};
|
|
30876
|
-
const _hoisted_2$
|
|
30929
|
+
const _hoisted_2$f = {
|
|
30877
30930
|
key: 0,
|
|
30878
30931
|
class: "lupa-related-queries-title"
|
|
30879
30932
|
};
|
|
30880
|
-
const _hoisted_3$
|
|
30881
|
-
const _sfc_main$
|
|
30933
|
+
const _hoisted_3$a = ["onClick"];
|
|
30934
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
30882
30935
|
__name: "RelatedQueries",
|
|
30883
30936
|
props: {
|
|
30884
30937
|
options: {}
|
|
@@ -30890,7 +30943,7 @@ and ensure you are accounting for this risk.
|
|
|
30890
30943
|
const optionsStore = useOptionsStore();
|
|
30891
30944
|
const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
|
|
30892
30945
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
30893
|
-
const
|
|
30946
|
+
const relatedQueries2 = ref([]);
|
|
30894
30947
|
const allDisplayItems = ref({});
|
|
30895
30948
|
const querySourceResultMap = ref({});
|
|
30896
30949
|
const currentSearchText = computed(() => {
|
|
@@ -30913,27 +30966,31 @@ and ensure you are accounting for this risk.
|
|
|
30913
30966
|
}
|
|
30914
30967
|
return filters;
|
|
30915
30968
|
});
|
|
30916
|
-
watch(
|
|
30917
|
-
|
|
30918
|
-
|
|
30919
|
-
|
|
30920
|
-
|
|
30921
|
-
|
|
30922
|
-
|
|
30923
|
-
|
|
30924
|
-
|
|
30925
|
-
|
|
30926
|
-
|
|
30927
|
-
|
|
30928
|
-
|
|
30929
|
-
|
|
30930
|
-
|
|
30931
|
-
|
|
30932
|
-
|
|
30933
|
-
|
|
30969
|
+
watch(
|
|
30970
|
+
searchResult,
|
|
30971
|
+
() => __async2(this, null, function* () {
|
|
30972
|
+
var _a;
|
|
30973
|
+
allDisplayItems.value = {};
|
|
30974
|
+
querySourceResultMap.value = {};
|
|
30975
|
+
if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
|
|
30976
|
+
return;
|
|
30977
|
+
}
|
|
30978
|
+
if (!props.options || !searchResult.value) {
|
|
30979
|
+
relatedQueries2.value = [];
|
|
30980
|
+
}
|
|
30981
|
+
const queries = yield extractRelatedSource(
|
|
30982
|
+
props.options.source,
|
|
30983
|
+
searchResult.value,
|
|
30984
|
+
searchResultOptions.value.options,
|
|
30985
|
+
currentFiltersWithoutQuerySources.value
|
|
30986
|
+
);
|
|
30987
|
+
relatedQueries2.value = queries;
|
|
30988
|
+
}),
|
|
30989
|
+
{ immediate: true }
|
|
30990
|
+
);
|
|
30934
30991
|
const hasEnoughRelatedQueries = computed(() => {
|
|
30935
30992
|
var _a;
|
|
30936
|
-
return ((_a =
|
|
30993
|
+
return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
|
|
30937
30994
|
});
|
|
30938
30995
|
const handleRelatedQueryClick = (query) => {
|
|
30939
30996
|
var _a;
|
|
@@ -30968,10 +31025,10 @@ and ensure you are accounting for this risk.
|
|
|
30968
31025
|
};
|
|
30969
31026
|
return (_ctx, _cache) => {
|
|
30970
31027
|
var _a, _b, _c, _d;
|
|
30971
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30972
|
-
((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
31028
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
31029
|
+
((_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),
|
|
30973
31030
|
createBaseVNode("ul", null, [
|
|
30974
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
31031
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
30975
31032
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
30976
31033
|
key: query.value + query.key + currentSearchText.value,
|
|
30977
31034
|
class: normalizeClass(getSelectedFilterClass(query))
|
|
@@ -30979,14 +31036,14 @@ and ensure you are accounting for this risk.
|
|
|
30979
31036
|
createBaseVNode("a", {
|
|
30980
31037
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
30981
31038
|
}, [
|
|
30982
|
-
createVNode(_sfc_main$
|
|
31039
|
+
createVNode(_sfc_main$m, {
|
|
30983
31040
|
"source-key": query.key,
|
|
30984
31041
|
options: _ctx.options,
|
|
30985
31042
|
query: query.value,
|
|
30986
31043
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
30987
31044
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
30988
31045
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
30989
|
-
], 8, _hoisted_3$
|
|
31046
|
+
], 8, _hoisted_3$a)
|
|
30990
31047
|
], 2)), [
|
|
30991
31048
|
[vShow, querySourceResultMap.value[query.value] !== false]
|
|
30992
31049
|
]);
|
|
@@ -31023,13 +31080,13 @@ and ensure you are accounting for this risk.
|
|
|
31023
31080
|
}
|
|
31024
31081
|
return null;
|
|
31025
31082
|
};
|
|
31026
|
-
const _hoisted_1$
|
|
31083
|
+
const _hoisted_1$i = {
|
|
31027
31084
|
key: 0,
|
|
31028
31085
|
class: "lupa-redirection-suggestion"
|
|
31029
31086
|
};
|
|
31030
|
-
const _hoisted_2$
|
|
31031
|
-
const _hoisted_3$
|
|
31032
|
-
const _sfc_main$
|
|
31087
|
+
const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
|
|
31088
|
+
const _hoisted_3$9 = ["href"];
|
|
31089
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
31033
31090
|
__name: "RedirectionSuggestions",
|
|
31034
31091
|
props: {
|
|
31035
31092
|
options: {}
|
|
@@ -31052,19 +31109,19 @@ and ensure you are accounting for this risk.
|
|
|
31052
31109
|
)
|
|
31053
31110
|
);
|
|
31054
31111
|
return (_ctx, _cache) => {
|
|
31055
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31056
|
-
createBaseVNode("h4", _hoisted_2$
|
|
31057
|
-
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$
|
|
31112
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
31113
|
+
createBaseVNode("h4", _hoisted_2$e, [
|
|
31114
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$9)
|
|
31058
31115
|
])
|
|
31059
31116
|
])) : createCommentVNode("", true);
|
|
31060
31117
|
};
|
|
31061
31118
|
}
|
|
31062
31119
|
});
|
|
31063
|
-
const _hoisted_1$
|
|
31120
|
+
const _hoisted_1$h = {
|
|
31064
31121
|
key: 0,
|
|
31065
31122
|
class: "lupa-refiners-loading-notice"
|
|
31066
31123
|
};
|
|
31067
|
-
const _sfc_main$
|
|
31124
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
31068
31125
|
__name: "RefinersLoadingNotice",
|
|
31069
31126
|
props: {
|
|
31070
31127
|
labels: {}
|
|
@@ -31075,13 +31132,155 @@ and ensure you are accounting for this risk.
|
|
|
31075
31132
|
const { loadingRefiners } = storeToRefs(searchResultStore);
|
|
31076
31133
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
31077
31134
|
return (_ctx, _cache) => {
|
|
31078
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31135
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
31079
31136
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
31080
31137
|
createVNode(Spinner)
|
|
31081
31138
|
])) : createCommentVNode("", true);
|
|
31082
31139
|
};
|
|
31083
31140
|
}
|
|
31084
31141
|
});
|
|
31142
|
+
const _hoisted_1$g = { class: "lupa-related-query-item" };
|
|
31143
|
+
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
31144
|
+
const _hoisted_3$8 = { class: "lupa-related-query-label" };
|
|
31145
|
+
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
31146
|
+
const _hoisted_5$2 = {
|
|
31147
|
+
key: 0,
|
|
31148
|
+
class: "lupa-related-query-count"
|
|
31149
|
+
};
|
|
31150
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
31151
|
+
__name: "RelatedQueryPanelApi",
|
|
31152
|
+
props: {
|
|
31153
|
+
relatedQuery: {},
|
|
31154
|
+
options: {}
|
|
31155
|
+
},
|
|
31156
|
+
setup(__props) {
|
|
31157
|
+
const props = __props;
|
|
31158
|
+
const itemToDisplay = computed(() => {
|
|
31159
|
+
var _a;
|
|
31160
|
+
return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
|
|
31161
|
+
});
|
|
31162
|
+
const optionsStore = useOptionsStore();
|
|
31163
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
31164
|
+
const mainImage = computed(() => {
|
|
31165
|
+
var _a, _b, _c;
|
|
31166
|
+
return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
|
|
31167
|
+
});
|
|
31168
|
+
const image = computed(() => {
|
|
31169
|
+
var _a, _b, _c;
|
|
31170
|
+
return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
|
|
31171
|
+
});
|
|
31172
|
+
const query = computed(() => {
|
|
31173
|
+
var _a;
|
|
31174
|
+
return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
|
|
31175
|
+
});
|
|
31176
|
+
const totalItemCount = computed(() => {
|
|
31177
|
+
var _a;
|
|
31178
|
+
return (_a = props.relatedQuery.total) != null ? _a : 0;
|
|
31179
|
+
});
|
|
31180
|
+
return (_ctx, _cache) => {
|
|
31181
|
+
var _a;
|
|
31182
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
31183
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
31184
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
31185
|
+
key: 0,
|
|
31186
|
+
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
31187
|
+
"image-class": "lupa-related-query-image",
|
|
31188
|
+
item: itemToDisplay.value,
|
|
31189
|
+
options: image.value
|
|
31190
|
+
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
31191
|
+
]),
|
|
31192
|
+
createBaseVNode("div", _hoisted_3$8, [
|
|
31193
|
+
createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
|
|
31194
|
+
((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
31195
|
+
])
|
|
31196
|
+
]);
|
|
31197
|
+
};
|
|
31198
|
+
}
|
|
31199
|
+
});
|
|
31200
|
+
const _hoisted_1$f = {
|
|
31201
|
+
key: 0,
|
|
31202
|
+
class: "lupa-related-queries"
|
|
31203
|
+
};
|
|
31204
|
+
const _hoisted_2$c = {
|
|
31205
|
+
key: 0,
|
|
31206
|
+
class: "lupa-related-queries-title"
|
|
31207
|
+
};
|
|
31208
|
+
const _hoisted_3$7 = ["onClick"];
|
|
31209
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
31210
|
+
__name: "RelatedQueriesApi",
|
|
31211
|
+
props: {
|
|
31212
|
+
options: {}
|
|
31213
|
+
},
|
|
31214
|
+
setup(__props) {
|
|
31215
|
+
const props = __props;
|
|
31216
|
+
const searchResultStore = useSearchResultStore();
|
|
31217
|
+
const paramsStore = useParamsStore();
|
|
31218
|
+
const optionsStore = useOptionsStore();
|
|
31219
|
+
const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
|
|
31220
|
+
const relatedQueries2 = computed(() => {
|
|
31221
|
+
var _a, _b, _c, _d;
|
|
31222
|
+
const allQueries = (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
|
|
31223
|
+
return ((_d = (_c = props.options) == null ? void 0 : _c.source) == null ? void 0 : _d.count) ? allQueries.slice(0, props.options.source.count) : allQueries;
|
|
31224
|
+
});
|
|
31225
|
+
const currentSearchText = computed(() => {
|
|
31226
|
+
var _a, _b;
|
|
31227
|
+
return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
|
|
31228
|
+
});
|
|
31229
|
+
const hasEnoughRelatedQueries = computed(() => {
|
|
31230
|
+
var _a;
|
|
31231
|
+
return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
|
|
31232
|
+
});
|
|
31233
|
+
const handleRelatedQueryClick = (relatedQuery) => {
|
|
31234
|
+
if (relatedQuery.action === "FILTER") {
|
|
31235
|
+
handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
|
|
31236
|
+
} else {
|
|
31237
|
+
paramsStore.goToResults({ searchText: relatedQuery.query });
|
|
31238
|
+
}
|
|
31239
|
+
};
|
|
31240
|
+
const handleFilter = (query) => {
|
|
31241
|
+
var _a;
|
|
31242
|
+
toggleTermFilter(
|
|
31243
|
+
paramsStore.appendParams,
|
|
31244
|
+
{ type: "terms", key: query.key, value: query.value },
|
|
31245
|
+
optionsStore.getQueryParamName,
|
|
31246
|
+
{},
|
|
31247
|
+
(_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
|
|
31248
|
+
);
|
|
31249
|
+
};
|
|
31250
|
+
const getSelectedFilterClass = (relatedQuery) => {
|
|
31251
|
+
var _a, _b, _c, _d, _e;
|
|
31252
|
+
if (relatedQuery.action !== "FILTER") {
|
|
31253
|
+
return "";
|
|
31254
|
+
}
|
|
31255
|
+
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(
|
|
31256
|
+
relatedQuery.filterValue
|
|
31257
|
+
)) ? "lupa-selected-related-query-filter" : "";
|
|
31258
|
+
};
|
|
31259
|
+
return (_ctx, _cache) => {
|
|
31260
|
+
var _a, _b, _c, _d;
|
|
31261
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
31262
|
+
((_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),
|
|
31263
|
+
createBaseVNode("ul", null, [
|
|
31264
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
31265
|
+
return openBlock(), createElementBlock("li", {
|
|
31266
|
+
key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
|
|
31267
|
+
class: normalizeClass(getSelectedFilterClass(query))
|
|
31268
|
+
}, [
|
|
31269
|
+
createBaseVNode("a", {
|
|
31270
|
+
onClick: ($event) => handleRelatedQueryClick(query)
|
|
31271
|
+
}, [
|
|
31272
|
+
createVNode(_sfc_main$i, {
|
|
31273
|
+
relatedQuery: query,
|
|
31274
|
+
options: _ctx.options
|
|
31275
|
+
}, null, 8, ["relatedQuery", "options"])
|
|
31276
|
+
], 8, _hoisted_3$7)
|
|
31277
|
+
], 2);
|
|
31278
|
+
}), 128))
|
|
31279
|
+
])
|
|
31280
|
+
])) : createCommentVNode("", true);
|
|
31281
|
+
};
|
|
31282
|
+
}
|
|
31283
|
+
});
|
|
31085
31284
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
31086
31285
|
const _hoisted_2$b = {
|
|
31087
31286
|
class: "lupa-products",
|
|
@@ -31093,12 +31292,12 @@ and ensure you are accounting for this risk.
|
|
|
31093
31292
|
"data-cy": "lupa-no-results-in-page"
|
|
31094
31293
|
};
|
|
31095
31294
|
const _hoisted_4$3 = {
|
|
31096
|
-
key:
|
|
31295
|
+
key: 5,
|
|
31097
31296
|
class: "lupa-empty-results",
|
|
31098
31297
|
"data-cy": "lupa-no-results"
|
|
31099
31298
|
};
|
|
31100
|
-
const _hoisted_5$1 = { key:
|
|
31101
|
-
const _hoisted_6$1 = { key:
|
|
31299
|
+
const _hoisted_5$1 = { key: 6 };
|
|
31300
|
+
const _hoisted_6$1 = { key: 7 };
|
|
31102
31301
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
31103
31302
|
__name: "SearchResultsProducts",
|
|
31104
31303
|
props: {
|
|
@@ -31119,7 +31318,8 @@ and ensure you are accounting for this risk.
|
|
|
31119
31318
|
columnCount,
|
|
31120
31319
|
searchResult,
|
|
31121
31320
|
layout,
|
|
31122
|
-
loading
|
|
31321
|
+
loading,
|
|
31322
|
+
relatedQueriesApiEnabled
|
|
31123
31323
|
} = storeToRefs(searchResultStore);
|
|
31124
31324
|
const productCardOptions = computed(() => {
|
|
31125
31325
|
return pick(props.options, [
|
|
@@ -31200,6 +31400,13 @@ and ensure you are accounting for this risk.
|
|
|
31200
31400
|
_lupaUpdatedQuery: searchResult.value.suggestedSearchText
|
|
31201
31401
|
} : void 0;
|
|
31202
31402
|
});
|
|
31403
|
+
const showLocalRelatedQueries = computed(() => {
|
|
31404
|
+
var _a;
|
|
31405
|
+
return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
|
|
31406
|
+
});
|
|
31407
|
+
const showApiRelatedQueries = computed(() => {
|
|
31408
|
+
return Boolean(relatedQueriesApiEnabled.value === true) && Boolean(props.options.relatedQueries);
|
|
31409
|
+
});
|
|
31203
31410
|
const getProductKeyAction = (index, product) => {
|
|
31204
31411
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
31205
31412
|
};
|
|
@@ -31218,31 +31425,35 @@ and ensure you are accounting for this risk.
|
|
|
31218
31425
|
key: 0,
|
|
31219
31426
|
class: "lupa-loader"
|
|
31220
31427
|
})) : createCommentVNode("", true),
|
|
31221
|
-
createVNode(_sfc_main$
|
|
31428
|
+
createVNode(_sfc_main$k, {
|
|
31222
31429
|
options: _ctx.options.redirectionSuggestions
|
|
31223
31430
|
}, null, 8, ["options"]),
|
|
31224
|
-
createVNode(_sfc_main$
|
|
31431
|
+
createVNode(_sfc_main$p, {
|
|
31225
31432
|
options: _ctx.options,
|
|
31226
31433
|
location: "top",
|
|
31227
31434
|
sdkOptions: _ctx.options.options
|
|
31228
31435
|
}, null, 8, ["options", "sdkOptions"]),
|
|
31229
|
-
|
|
31436
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
31230
31437
|
key: 1,
|
|
31231
31438
|
options: _ctx.options.relatedQueries
|
|
31232
31439
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31233
|
-
|
|
31234
|
-
|
|
31440
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$h, {
|
|
31441
|
+
key: 2,
|
|
31442
|
+
options: _ctx.options.relatedQueries
|
|
31443
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31444
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
31445
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
31235
31446
|
key: 0,
|
|
31236
31447
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
31237
31448
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31238
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
31449
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
31239
31450
|
key: 1,
|
|
31240
31451
|
class: "lupa-toolbar-mobile",
|
|
31241
31452
|
options: _ctx.options,
|
|
31242
31453
|
"pagination-location": "top",
|
|
31243
31454
|
onFilter: filter2
|
|
31244
31455
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31245
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
31456
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
31246
31457
|
key: 2,
|
|
31247
31458
|
class: normalizeClass(currentFiltersClass.value),
|
|
31248
31459
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31250,13 +31461,13 @@ and ensure you are accounting for this risk.
|
|
|
31250
31461
|
expandable: !desktopFiltersExpanded.value
|
|
31251
31462
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
31252
31463
|
], 64)) : createCommentVNode("", true),
|
|
31253
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
31254
|
-
createVNode(_sfc_main$
|
|
31464
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
31465
|
+
createVNode(_sfc_main$E, {
|
|
31255
31466
|
class: "lupa-toolbar-top",
|
|
31256
31467
|
options: _ctx.options,
|
|
31257
31468
|
"pagination-location": "top"
|
|
31258
31469
|
}, null, 8, ["options"]),
|
|
31259
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
31470
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
31260
31471
|
key: 0,
|
|
31261
31472
|
class: normalizeClass(currentFiltersClass.value),
|
|
31262
31473
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -31272,7 +31483,7 @@ and ensure you are accounting for this risk.
|
|
|
31272
31483
|
options: productCardOptions.value
|
|
31273
31484
|
});
|
|
31274
31485
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
31275
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31486
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
31276
31487
|
style: normalizeStyle(columnSize.value),
|
|
31277
31488
|
key: getProductKeyAction(index, product),
|
|
31278
31489
|
product,
|
|
@@ -31289,12 +31500,12 @@ and ensure you are accounting for this risk.
|
|
|
31289
31500
|
onClick: goToFirstPage
|
|
31290
31501
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
31291
31502
|
])) : createCommentVNode("", true),
|
|
31292
|
-
createVNode(_sfc_main$
|
|
31503
|
+
createVNode(_sfc_main$E, {
|
|
31293
31504
|
class: "lupa-toolbar-bottom",
|
|
31294
31505
|
options: _ctx.options,
|
|
31295
31506
|
"pagination-location": "bottom"
|
|
31296
31507
|
}, null, 8, ["options"]),
|
|
31297
|
-
createVNode(_sfc_main$
|
|
31508
|
+
createVNode(_sfc_main$p, {
|
|
31298
31509
|
options: _ctx.options,
|
|
31299
31510
|
location: "bottom",
|
|
31300
31511
|
sdkOptions: _ctx.options.options
|
|
@@ -31303,18 +31514,18 @@ and ensure you are accounting for this risk.
|
|
|
31303
31514
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
31304
31515
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
31305
31516
|
])) : createCommentVNode("", true),
|
|
31306
|
-
createVNode(_sfc_main$
|
|
31517
|
+
createVNode(_sfc_main$j, {
|
|
31307
31518
|
labels: _ctx.options.labels
|
|
31308
31519
|
}, null, 8, ["labels"]),
|
|
31309
31520
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
31310
|
-
createVNode(_sfc_main$
|
|
31521
|
+
createVNode(_sfc_main$r, {
|
|
31311
31522
|
labels: similarQueriesLabels.value,
|
|
31312
31523
|
columnSize: columnSize.value,
|
|
31313
31524
|
productCardOptions: productCardOptions.value
|
|
31314
31525
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
31315
31526
|
])) : createCommentVNode("", true),
|
|
31316
31527
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
31317
|
-
createVNode(_sfc_main$
|
|
31528
|
+
createVNode(_sfc_main$n, {
|
|
31318
31529
|
labels: similarResultsLabels.value,
|
|
31319
31530
|
columnSize: columnSize.value,
|
|
31320
31531
|
productCardOptions: productCardOptions.value
|
|
@@ -31393,14 +31604,14 @@ and ensure you are accounting for this risk.
|
|
|
31393
31604
|
])) : createCommentVNode("", true),
|
|
31394
31605
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31395
31606
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
31396
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31607
|
+
return openBlock(), createBlock(_sfc_main$Y, {
|
|
31397
31608
|
key: getCategoryKey(child),
|
|
31398
31609
|
item: child,
|
|
31399
31610
|
options: categoryOptions.value
|
|
31400
31611
|
}, null, 8, ["item", "options"]);
|
|
31401
31612
|
}), 128))
|
|
31402
31613
|
])) : createCommentVNode("", true),
|
|
31403
|
-
createVNode(_sfc_main$
|
|
31614
|
+
createVNode(_sfc_main$E, {
|
|
31404
31615
|
class: "lupa-toolbar-mobile",
|
|
31405
31616
|
"pagination-location": "top",
|
|
31406
31617
|
options: _ctx.options
|
|
@@ -31553,14 +31764,23 @@ and ensure you are accounting for this risk.
|
|
|
31553
31764
|
return;
|
|
31554
31765
|
}
|
|
31555
31766
|
LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
|
|
31556
|
-
var _a, _b;
|
|
31767
|
+
var _a, _b, _c;
|
|
31557
31768
|
if (res.success) {
|
|
31558
31769
|
handleResults({ queryKey: props.options.queryKey, results: res });
|
|
31559
31770
|
searchResultStore.add(requestId, __spreadValues2({}, res));
|
|
31771
|
+
searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
|
|
31772
|
+
if (res.hasRelatedQueries) {
|
|
31773
|
+
searchResultStore.queryRelatedQueries(
|
|
31774
|
+
props.options.queryKey,
|
|
31775
|
+
publicQuery,
|
|
31776
|
+
res,
|
|
31777
|
+
props.options.options
|
|
31778
|
+
);
|
|
31779
|
+
}
|
|
31560
31780
|
if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
|
|
31561
31781
|
queryRefiners(requestId, publicQuery);
|
|
31562
31782
|
}
|
|
31563
|
-
} else if ((
|
|
31783
|
+
} else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
|
|
31564
31784
|
props.options.options.onError(res);
|
|
31565
31785
|
}
|
|
31566
31786
|
}).catch((err) => {
|
|
@@ -31699,8 +31919,8 @@ and ensure you are accounting for this risk.
|
|
|
31699
31919
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
31700
31920
|
}, [
|
|
31701
31921
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
31702
|
-
createVNode(_sfc_main
|
|
31703
|
-
createVNode(_sfc_main
|
|
31922
|
+
createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
31923
|
+
createVNode(_sfc_main$$, {
|
|
31704
31924
|
"show-summary": true,
|
|
31705
31925
|
options: _ctx.options,
|
|
31706
31926
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -31710,12 +31930,12 @@ and ensure you are accounting for this risk.
|
|
|
31710
31930
|
key: 1,
|
|
31711
31931
|
options: _ctx.options
|
|
31712
31932
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31713
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
31933
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$N, {
|
|
31714
31934
|
key: 2,
|
|
31715
31935
|
options: _ctx.options.filters,
|
|
31716
31936
|
onFilter: handleParamsChange
|
|
31717
31937
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31718
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
31938
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$M, {
|
|
31719
31939
|
key: 3,
|
|
31720
31940
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
31721
31941
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -31724,7 +31944,7 @@ and ensure you are accounting for this risk.
|
|
|
31724
31944
|
id: "lupa-search-results",
|
|
31725
31945
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
31726
31946
|
}, [
|
|
31727
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
31947
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
31728
31948
|
key: 0,
|
|
31729
31949
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
31730
31950
|
ref_key: "searchResultsFilters",
|
|
@@ -31732,8 +31952,8 @@ and ensure you are accounting for this risk.
|
|
|
31732
31952
|
onFilter: handleParamsChange
|
|
31733
31953
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
31734
31954
|
createBaseVNode("div", _hoisted_2$9, [
|
|
31735
|
-
createVNode(_sfc_main
|
|
31736
|
-
createVNode(_sfc_main
|
|
31955
|
+
createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
31956
|
+
createVNode(_sfc_main$$, {
|
|
31737
31957
|
options: _ctx.options,
|
|
31738
31958
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
31739
31959
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -31749,8 +31969,8 @@ and ensure you are accounting for this risk.
|
|
|
31749
31969
|
}, 8, ["options", "ssr"])
|
|
31750
31970
|
])
|
|
31751
31971
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
31752
|
-
createVNode(_sfc_main
|
|
31753
|
-
createVNode(_sfc_main
|
|
31972
|
+
createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
31973
|
+
createVNode(_sfc_main$$, {
|
|
31754
31974
|
options: _ctx.options,
|
|
31755
31975
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
31756
31976
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -31758,7 +31978,7 @@ and ensure you are accounting for this risk.
|
|
|
31758
31978
|
id: "lupa-search-results",
|
|
31759
31979
|
class: normalizeClass(indicatorClasses.value)
|
|
31760
31980
|
}, [
|
|
31761
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
31981
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
31762
31982
|
key: 0,
|
|
31763
31983
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
31764
31984
|
ref_key: "searchResultsFilters",
|
|
@@ -31910,7 +32130,7 @@ and ensure you are accounting for this risk.
|
|
|
31910
32130
|
onClick: withModifiers(innerClick, ["stop"])
|
|
31911
32131
|
}, [
|
|
31912
32132
|
createBaseVNode("div", _hoisted_2$7, [
|
|
31913
|
-
createVNode(_sfc_main$
|
|
32133
|
+
createVNode(_sfc_main$12, {
|
|
31914
32134
|
options: fullSearchBoxOptions.value,
|
|
31915
32135
|
"is-search-container": true,
|
|
31916
32136
|
ref_key: "searchBox",
|
|
@@ -32809,7 +33029,7 @@ and ensure you are accounting for this risk.
|
|
|
32809
33029
|
key: getProductKeyAction(index, product)
|
|
32810
33030
|
}, {
|
|
32811
33031
|
default: withCtx(() => [
|
|
32812
|
-
createVNode(_sfc_main$
|
|
33032
|
+
createVNode(_sfc_main$s, {
|
|
32813
33033
|
product,
|
|
32814
33034
|
options: _ctx.options,
|
|
32815
33035
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -32824,7 +33044,7 @@ and ensure you are accounting for this risk.
|
|
|
32824
33044
|
_: 1
|
|
32825
33045
|
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
32826
33046
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
32827
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33047
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
32828
33048
|
style: normalizeStyle(columnSize.value),
|
|
32829
33049
|
key: getProductKeyAction(index, product),
|
|
32830
33050
|
product,
|
|
@@ -33089,7 +33309,7 @@ and ensure you are accounting for this risk.
|
|
|
33089
33309
|
createBaseVNode("a", {
|
|
33090
33310
|
href: getLink(product)
|
|
33091
33311
|
}, [
|
|
33092
|
-
createVNode(_sfc_main$
|
|
33312
|
+
createVNode(_sfc_main$D, {
|
|
33093
33313
|
item: product,
|
|
33094
33314
|
options: image.value
|
|
33095
33315
|
}, null, 8, ["item", "options"])
|
|
@@ -33253,7 +33473,7 @@ and ensure you are accounting for this risk.
|
|
|
33253
33473
|
return (_ctx, _cache) => {
|
|
33254
33474
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
33255
33475
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
33256
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33476
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
33257
33477
|
class: "lupa-chat-product-card",
|
|
33258
33478
|
key: getProductKeyAction(index, product),
|
|
33259
33479
|
product,
|
|
@@ -33446,7 +33666,7 @@ and ensure you are accounting for this risk.
|
|
|
33446
33666
|
key: 0,
|
|
33447
33667
|
class: "lupasearch-chat-content"
|
|
33448
33668
|
};
|
|
33449
|
-
const _sfc_main$
|
|
33669
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
33450
33670
|
__name: "ChatContainer",
|
|
33451
33671
|
props: {
|
|
33452
33672
|
options: {}
|
|
@@ -39464,7 +39684,7 @@ and ensure you are accounting for this risk.
|
|
|
39464
39684
|
};
|
|
39465
39685
|
__expose({ fetch: fetch2 });
|
|
39466
39686
|
return (_ctx, _cache) => {
|
|
39467
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
39687
|
+
return openBlock(), createBlock(unref(_sfc_main$12), {
|
|
39468
39688
|
options: fullSearchBoxOptions.value,
|
|
39469
39689
|
ref_key: "searchBox",
|
|
39470
39690
|
ref: searchBox2
|
|
@@ -40100,7 +40320,7 @@ and ensure you are accounting for this risk.
|
|
|
40100
40320
|
const instance = createVue(
|
|
40101
40321
|
options.displayOptions.containerSelector,
|
|
40102
40322
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
40103
|
-
_sfc_main$
|
|
40323
|
+
_sfc_main$1y,
|
|
40104
40324
|
{
|
|
40105
40325
|
options
|
|
40106
40326
|
}
|