@getlupa/client 1.22.3 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +1185 -778
- package/dist/lupaSearch.js +1185 -778
- package/dist/lupaSearch.mjs +1185 -778
- package/dist/lupaSearch.umd.js +1185 -778
- package/dist/style.css +1 -1
- package/dist/types/ResolvedOptions.d.ts +6 -0
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -18059,8 +18059,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18059
18059
|
);
|
|
18060
18060
|
const trackingOptions = ref({});
|
|
18061
18061
|
const searchResultInitialFilters = ref({});
|
|
18062
|
+
const expandedFacetsInner = ref([]);
|
|
18062
18063
|
const productRecommendationOptions = ref({});
|
|
18063
18064
|
const screenStore = useScreenStore();
|
|
18065
|
+
const expandedFacets = computed({
|
|
18066
|
+
get: () => {
|
|
18067
|
+
var _a25, _b25, _c, _d, _e;
|
|
18068
|
+
return ((_a25 = expandedFacetsInner.value) == null ? void 0 : _a25.length) ? expandedFacetsInner.value : (_e = (_d = (_c = (_b25 = searchResultOptions.value) == null ? void 0 : _b25.filters) == null ? void 0 : _c.facets) == null ? void 0 : _d.expand) != null ? _e : [];
|
|
18069
|
+
},
|
|
18070
|
+
set: (value) => {
|
|
18071
|
+
expandedFacetsInner.value = value;
|
|
18072
|
+
}
|
|
18073
|
+
});
|
|
18064
18074
|
const envOptions = computed(
|
|
18065
18075
|
() => {
|
|
18066
18076
|
var _a25;
|
|
@@ -18160,6 +18170,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18160
18170
|
currentResolutionPageSizes,
|
|
18161
18171
|
productRecommendationOptions,
|
|
18162
18172
|
ariaLabels,
|
|
18173
|
+
expandedFacets,
|
|
18163
18174
|
setSearchBoxOptions,
|
|
18164
18175
|
setTrackingOptions,
|
|
18165
18176
|
setSearchResultOptions,
|
|
@@ -19578,7 +19589,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19578
19589
|
}
|
|
19579
19590
|
return Env[environment] || Env["production"];
|
|
19580
19591
|
};
|
|
19581
|
-
const _sfc_main$
|
|
19592
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
19582
19593
|
__name: "VoiceSearchProgressCircle",
|
|
19583
19594
|
props: {
|
|
19584
19595
|
isRecording: { type: Boolean },
|
|
@@ -19791,15 +19802,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19791
19802
|
closeSocket
|
|
19792
19803
|
};
|
|
19793
19804
|
}
|
|
19794
|
-
const _hoisted_1$
|
|
19805
|
+
const _hoisted_1$1o = {
|
|
19795
19806
|
key: 0,
|
|
19796
19807
|
class: "lupa-dialog-overlay"
|
|
19797
19808
|
};
|
|
19798
|
-
const _hoisted_2$
|
|
19799
|
-
const _hoisted_3$
|
|
19800
|
-
const _hoisted_4$
|
|
19801
|
-
const _hoisted_5$
|
|
19802
|
-
const _sfc_main$
|
|
19809
|
+
const _hoisted_2$Y = { class: "lupa-dialog-content" };
|
|
19810
|
+
const _hoisted_3$G = { class: "lupa-listening-text" };
|
|
19811
|
+
const _hoisted_4$w = { class: "lupa-mic-button-wrapper" };
|
|
19812
|
+
const _hoisted_5$m = ["aria-label"];
|
|
19813
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
19803
19814
|
__name: "VoiceSearchDialog",
|
|
19804
19815
|
props: {
|
|
19805
19816
|
isOpen: { type: Boolean },
|
|
@@ -19904,21 +19915,21 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19904
19915
|
return (_ctx, _cache) => {
|
|
19905
19916
|
var _a25, _b25;
|
|
19906
19917
|
return openBlock(), createElementBlock("div", null, [
|
|
19907
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19918
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
19908
19919
|
createBaseVNode("button", {
|
|
19909
19920
|
class: "lupa-dialog-box-close-button",
|
|
19910
19921
|
onClick: _cache[0] || (_cache[0] = () => emit2("close"))
|
|
19911
19922
|
}),
|
|
19912
|
-
createBaseVNode("div", _hoisted_2$
|
|
19913
|
-
createBaseVNode("p", _hoisted_3$
|
|
19914
|
-
createBaseVNode("div", _hoisted_4$
|
|
19923
|
+
createBaseVNode("div", _hoisted_2$Y, [
|
|
19924
|
+
createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
|
|
19925
|
+
createBaseVNode("div", _hoisted_4$w, [
|
|
19915
19926
|
createBaseVNode("button", {
|
|
19916
19927
|
class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
|
|
19917
19928
|
onClick: handleRecordingButtonClick,
|
|
19918
19929
|
"aria-controls": "voice-search-microphone",
|
|
19919
19930
|
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
19920
|
-
}, null, 10, _hoisted_5$
|
|
19921
|
-
createVNode(_sfc_main$
|
|
19931
|
+
}, null, 10, _hoisted_5$m),
|
|
19932
|
+
createVNode(_sfc_main$1G, {
|
|
19922
19933
|
ref_key: "voiceSearchProgressBar",
|
|
19923
19934
|
ref: voiceSearchProgressBar,
|
|
19924
19935
|
class: "lupa-progress-circle",
|
|
@@ -19933,18 +19944,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19933
19944
|
};
|
|
19934
19945
|
}
|
|
19935
19946
|
});
|
|
19936
|
-
const _hoisted_1$
|
|
19937
|
-
const _hoisted_2$
|
|
19938
|
-
const _hoisted_3$
|
|
19939
|
-
const _hoisted_4$
|
|
19940
|
-
const _hoisted_5$
|
|
19941
|
-
const _hoisted_6$
|
|
19947
|
+
const _hoisted_1$1n = { id: "lupa-search-box-input-container" };
|
|
19948
|
+
const _hoisted_2$X = { class: "lupa-input-clear" };
|
|
19949
|
+
const _hoisted_3$F = { id: "lupa-search-box-input" };
|
|
19950
|
+
const _hoisted_4$v = ["value"];
|
|
19951
|
+
const _hoisted_5$l = ["aria-label", "placeholder"];
|
|
19952
|
+
const _hoisted_6$7 = {
|
|
19942
19953
|
key: 0,
|
|
19943
19954
|
class: "lupa-close-label"
|
|
19944
19955
|
};
|
|
19945
19956
|
const _hoisted_7$5 = { key: 1 };
|
|
19946
19957
|
const _hoisted_8$3 = ["aria-label"];
|
|
19947
|
-
const _sfc_main$
|
|
19958
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
19948
19959
|
__name: "SearchBoxInput",
|
|
19949
19960
|
props: {
|
|
19950
19961
|
options: {},
|
|
@@ -20076,20 +20087,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20076
20087
|
};
|
|
20077
20088
|
__expose({ focus });
|
|
20078
20089
|
return (_ctx, _cache) => {
|
|
20079
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20080
|
-
createBaseVNode("div", _hoisted_2$
|
|
20090
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
20091
|
+
createBaseVNode("div", _hoisted_2$X, [
|
|
20081
20092
|
createBaseVNode("div", {
|
|
20082
20093
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
20083
20094
|
onClick: clear
|
|
20084
20095
|
}, null, 2)
|
|
20085
20096
|
]),
|
|
20086
|
-
createBaseVNode("div", _hoisted_3$
|
|
20097
|
+
createBaseVNode("div", _hoisted_3$F, [
|
|
20087
20098
|
createBaseVNode("input", {
|
|
20088
20099
|
class: "lupa-hint",
|
|
20089
20100
|
"aria-hidden": "true",
|
|
20090
20101
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
20091
20102
|
disabled: ""
|
|
20092
|
-
}, null, 8, _hoisted_4$
|
|
20103
|
+
}, null, 8, _hoisted_4$v),
|
|
20093
20104
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
20094
20105
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
20095
20106
|
}, inputAttributes.value, {
|
|
@@ -20103,7 +20114,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20103
20114
|
placeholder: labels.value.placeholder,
|
|
20104
20115
|
onInput: handleInput,
|
|
20105
20116
|
onFocus: handleFocus
|
|
20106
|
-
}), null, 16, _hoisted_5$
|
|
20117
|
+
}), null, 16, _hoisted_5$l), [
|
|
20107
20118
|
[vModelText, inputValue.value]
|
|
20108
20119
|
]),
|
|
20109
20120
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -20118,7 +20129,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20118
20129
|
class: "lupa-close-search-container",
|
|
20119
20130
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
20120
20131
|
}, [
|
|
20121
|
-
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
20132
|
+
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
|
|
20122
20133
|
])) : createCommentVNode("", true),
|
|
20123
20134
|
isVoiceSearchEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
20124
20135
|
createBaseVNode("button", {
|
|
@@ -20129,7 +20140,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20129
20140
|
"aria-label": voiceSearchAriaLabel.value
|
|
20130
20141
|
}, null, 8, _hoisted_8$3)
|
|
20131
20142
|
])) : createCommentVNode("", true),
|
|
20132
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
20143
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1F, {
|
|
20133
20144
|
key: 2,
|
|
20134
20145
|
ref_key: "voiceDialogOverlay",
|
|
20135
20146
|
ref: voiceDialogOverlay,
|
|
@@ -20143,7 +20154,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20143
20154
|
};
|
|
20144
20155
|
}
|
|
20145
20156
|
});
|
|
20146
|
-
const _sfc_main$
|
|
20157
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
20147
20158
|
__name: "SearchBoxMoreResults",
|
|
20148
20159
|
props: {
|
|
20149
20160
|
labels: {},
|
|
@@ -20181,9 +20192,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20181
20192
|
};
|
|
20182
20193
|
}
|
|
20183
20194
|
});
|
|
20184
|
-
const _hoisted_1$
|
|
20185
|
-
const _hoisted_2$
|
|
20186
|
-
const _sfc_main$
|
|
20195
|
+
const _hoisted_1$1m = { class: "lupa-search-box-history-item" };
|
|
20196
|
+
const _hoisted_2$W = { class: "lupa-search-box-history-item-content" };
|
|
20197
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
20187
20198
|
__name: "SearchBoxHistoryItem",
|
|
20188
20199
|
props: {
|
|
20189
20200
|
item: {},
|
|
@@ -20200,8 +20211,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20200
20211
|
emit2("click", { query: props.item });
|
|
20201
20212
|
};
|
|
20202
20213
|
return (_ctx, _cache) => {
|
|
20203
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20204
|
-
createBaseVNode("div", _hoisted_2$
|
|
20214
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1m, [
|
|
20215
|
+
createBaseVNode("div", _hoisted_2$W, [
|
|
20205
20216
|
createBaseVNode("div", {
|
|
20206
20217
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
20207
20218
|
onClick: click2
|
|
@@ -20215,11 +20226,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20215
20226
|
};
|
|
20216
20227
|
}
|
|
20217
20228
|
});
|
|
20218
|
-
const _hoisted_1$
|
|
20229
|
+
const _hoisted_1$1l = {
|
|
20219
20230
|
key: 0,
|
|
20220
20231
|
class: "lupa-search-box-history-panel"
|
|
20221
20232
|
};
|
|
20222
|
-
const _sfc_main$
|
|
20233
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
20223
20234
|
__name: "SearchBoxHistoryPanel",
|
|
20224
20235
|
props: {
|
|
20225
20236
|
options: {}
|
|
@@ -20270,9 +20281,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20270
20281
|
}
|
|
20271
20282
|
};
|
|
20272
20283
|
return (_ctx, _cache) => {
|
|
20273
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20284
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
|
|
20274
20285
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
20275
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20286
|
+
return openBlock(), createBlock(_sfc_main$1C, {
|
|
20276
20287
|
key: item,
|
|
20277
20288
|
item,
|
|
20278
20289
|
highlighted: index === highlightIndex.value,
|
|
@@ -20288,15 +20299,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20288
20299
|
};
|
|
20289
20300
|
}
|
|
20290
20301
|
});
|
|
20291
|
-
const _hoisted_1$
|
|
20292
|
-
const _sfc_main$
|
|
20302
|
+
const _hoisted_1$1k = { class: "lupa-search-box-no-results" };
|
|
20303
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
20293
20304
|
__name: "SearchBoxNoResults",
|
|
20294
20305
|
props: {
|
|
20295
20306
|
labels: {}
|
|
20296
20307
|
},
|
|
20297
20308
|
setup(__props) {
|
|
20298
20309
|
return (_ctx, _cache) => {
|
|
20299
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
20310
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1k, toDisplayString(_ctx.labels.noResults), 1);
|
|
20300
20311
|
};
|
|
20301
20312
|
}
|
|
20302
20313
|
});
|
|
@@ -20328,26 +20339,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20328
20339
|
}
|
|
20329
20340
|
return gridTemplate.join(" ");
|
|
20330
20341
|
};
|
|
20331
|
-
const _hoisted_1$
|
|
20332
|
-
const _hoisted_2$
|
|
20342
|
+
const _hoisted_1$1j = ["innerHTML"];
|
|
20343
|
+
const _hoisted_2$V = {
|
|
20333
20344
|
key: 1,
|
|
20334
20345
|
"data-cy": "lupa-suggestion-value",
|
|
20335
20346
|
class: "lupa-suggestion-value"
|
|
20336
20347
|
};
|
|
20337
|
-
const _hoisted_3$
|
|
20348
|
+
const _hoisted_3$E = {
|
|
20338
20349
|
key: 2,
|
|
20339
20350
|
class: "lupa-suggestion-facet",
|
|
20340
20351
|
"data-cy": "lupa-suggestion-facet"
|
|
20341
20352
|
};
|
|
20342
|
-
const _hoisted_4$
|
|
20353
|
+
const _hoisted_4$u = {
|
|
20343
20354
|
class: "lupa-suggestion-facet-label",
|
|
20344
20355
|
"data-cy": "lupa-suggestion-facet-label"
|
|
20345
20356
|
};
|
|
20346
|
-
const _hoisted_5$
|
|
20357
|
+
const _hoisted_5$k = {
|
|
20347
20358
|
class: "lupa-suggestion-facet-value",
|
|
20348
20359
|
"data-cy": "lupa-suggestion-facet-value"
|
|
20349
20360
|
};
|
|
20350
|
-
const _sfc_main$
|
|
20361
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
20351
20362
|
__name: "SearchBoxSuggestion",
|
|
20352
20363
|
props: {
|
|
20353
20364
|
suggestion: {},
|
|
@@ -20384,20 +20395,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20384
20395
|
class: "lupa-suggestion-value",
|
|
20385
20396
|
"data-cy": "lupa-suggestion-value",
|
|
20386
20397
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20387
|
-
}, null, 8, _hoisted_1$
|
|
20388
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20389
|
-
createBaseVNode("span", _hoisted_4$
|
|
20390
|
-
createBaseVNode("span", _hoisted_5$
|
|
20398
|
+
}, null, 8, _hoisted_1$1j)) : (openBlock(), createElementBlock("div", _hoisted_2$V, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20399
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
20400
|
+
createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
|
|
20401
|
+
createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
20391
20402
|
])) : createCommentVNode("", true)
|
|
20392
20403
|
]);
|
|
20393
20404
|
};
|
|
20394
20405
|
}
|
|
20395
20406
|
});
|
|
20396
|
-
const _hoisted_1$
|
|
20407
|
+
const _hoisted_1$1i = {
|
|
20397
20408
|
id: "lupa-search-box-suggestions",
|
|
20398
20409
|
"data-cy": "lupa-search-box-suggestions"
|
|
20399
20410
|
};
|
|
20400
|
-
const _sfc_main$
|
|
20411
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
20401
20412
|
__name: "SearchBoxSuggestions",
|
|
20402
20413
|
props: {
|
|
20403
20414
|
items: {},
|
|
@@ -20464,9 +20475,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20464
20475
|
});
|
|
20465
20476
|
});
|
|
20466
20477
|
return (_ctx, _cache) => {
|
|
20467
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20478
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1i, [
|
|
20468
20479
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
20469
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20480
|
+
return openBlock(), createBlock(_sfc_main$1z, {
|
|
20470
20481
|
key: getSuggestionKey(item),
|
|
20471
20482
|
class: normalizeClass([
|
|
20472
20483
|
"lupa-suggestion",
|
|
@@ -20498,7 +20509,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20498
20509
|
}, timeout);
|
|
20499
20510
|
};
|
|
20500
20511
|
};
|
|
20501
|
-
const _sfc_main$
|
|
20512
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
20502
20513
|
__name: "SearchBoxSuggestionsWrapper",
|
|
20503
20514
|
props: {
|
|
20504
20515
|
panel: {},
|
|
@@ -20541,7 +20552,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20541
20552
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
20542
20553
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
20543
20554
|
return (_ctx, _cache) => {
|
|
20544
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20555
|
+
return openBlock(), createBlock(_sfc_main$1y, {
|
|
20545
20556
|
items: searchResult.value,
|
|
20546
20557
|
highlight: _ctx.panel.highlight,
|
|
20547
20558
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -29823,9 +29834,9 @@ and ensure you are accounting for this risk.
|
|
|
29823
29834
|
targetImage.src = placeholder;
|
|
29824
29835
|
}
|
|
29825
29836
|
};
|
|
29826
|
-
const _hoisted_1$
|
|
29827
|
-
const _hoisted_2$
|
|
29828
|
-
const _sfc_main$
|
|
29837
|
+
const _hoisted_1$1h = ["src"];
|
|
29838
|
+
const _hoisted_2$U = ["src"];
|
|
29839
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
29829
29840
|
__name: "ProductImage",
|
|
29830
29841
|
props: {
|
|
29831
29842
|
item: {},
|
|
@@ -29967,7 +29978,7 @@ and ensure you are accounting for this risk.
|
|
|
29967
29978
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
29968
29979
|
onError: replaceWithPlaceholder,
|
|
29969
29980
|
key: finalUrl.value
|
|
29970
|
-
}), null, 16, _hoisted_1$
|
|
29981
|
+
}), null, 16, _hoisted_1$1h))
|
|
29971
29982
|
]),
|
|
29972
29983
|
_: 1
|
|
29973
29984
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -29975,12 +29986,12 @@ and ensure you are accounting for this risk.
|
|
|
29975
29986
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
29976
29987
|
style: styleOverride.value,
|
|
29977
29988
|
src: finalMainImageUrl.value
|
|
29978
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
29989
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$U))
|
|
29979
29990
|
], 38);
|
|
29980
29991
|
};
|
|
29981
29992
|
}
|
|
29982
29993
|
});
|
|
29983
|
-
const _sfc_main$
|
|
29994
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
29984
29995
|
__name: "SearchBoxProductImage",
|
|
29985
29996
|
props: {
|
|
29986
29997
|
item: {},
|
|
@@ -29988,7 +29999,7 @@ and ensure you are accounting for this risk.
|
|
|
29988
29999
|
},
|
|
29989
30000
|
setup(__props) {
|
|
29990
30001
|
return (_ctx, _cache) => {
|
|
29991
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30002
|
+
return openBlock(), createBlock(_sfc_main$1w, {
|
|
29992
30003
|
item: _ctx.item,
|
|
29993
30004
|
options: _ctx.options,
|
|
29994
30005
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -29997,12 +30008,12 @@ and ensure you are accounting for this risk.
|
|
|
29997
30008
|
};
|
|
29998
30009
|
}
|
|
29999
30010
|
});
|
|
30000
|
-
const _hoisted_1$
|
|
30001
|
-
const _hoisted_2$
|
|
30011
|
+
const _hoisted_1$1g = ["innerHTML"];
|
|
30012
|
+
const _hoisted_2$T = {
|
|
30002
30013
|
key: 1,
|
|
30003
30014
|
class: "lupa-search-box-product-title"
|
|
30004
30015
|
};
|
|
30005
|
-
const _sfc_main$
|
|
30016
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
30006
30017
|
__name: "SearchBoxProductTitle",
|
|
30007
30018
|
props: {
|
|
30008
30019
|
item: {},
|
|
@@ -30025,18 +30036,18 @@ and ensure you are accounting for this risk.
|
|
|
30025
30036
|
key: 0,
|
|
30026
30037
|
class: "lupa-search-box-product-title",
|
|
30027
30038
|
innerHTML: sanitizedTitle.value
|
|
30028
|
-
}, null, 8, _hoisted_1$
|
|
30039
|
+
}, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, [
|
|
30029
30040
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
30030
30041
|
]));
|
|
30031
30042
|
};
|
|
30032
30043
|
}
|
|
30033
30044
|
});
|
|
30034
|
-
const _hoisted_1$
|
|
30035
|
-
const _hoisted_2$
|
|
30045
|
+
const _hoisted_1$1f = ["innerHTML"];
|
|
30046
|
+
const _hoisted_2$S = {
|
|
30036
30047
|
key: 1,
|
|
30037
30048
|
class: "lupa-search-box-product-description"
|
|
30038
30049
|
};
|
|
30039
|
-
const _sfc_main$
|
|
30050
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
30040
30051
|
__name: "SearchBoxProductDescription",
|
|
30041
30052
|
props: {
|
|
30042
30053
|
item: {},
|
|
@@ -30059,12 +30070,12 @@ and ensure you are accounting for this risk.
|
|
|
30059
30070
|
key: 0,
|
|
30060
30071
|
class: "lupa-search-box-product-description",
|
|
30061
30072
|
innerHTML: sanitizedDescription.value
|
|
30062
|
-
}, null, 8, _hoisted_1$
|
|
30073
|
+
}, null, 8, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(description.value), 1));
|
|
30063
30074
|
};
|
|
30064
30075
|
}
|
|
30065
30076
|
});
|
|
30066
|
-
const _hoisted_1$
|
|
30067
|
-
const _sfc_main$
|
|
30077
|
+
const _hoisted_1$1e = { class: "lupa-search-box-product-price" };
|
|
30078
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
30068
30079
|
__name: "SearchBoxProductPrice",
|
|
30069
30080
|
props: {
|
|
30070
30081
|
item: {},
|
|
@@ -30086,13 +30097,13 @@ and ensure you are accounting for this risk.
|
|
|
30086
30097
|
);
|
|
30087
30098
|
});
|
|
30088
30099
|
return (_ctx, _cache) => {
|
|
30089
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30100
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
30090
30101
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
30091
30102
|
]);
|
|
30092
30103
|
};
|
|
30093
30104
|
}
|
|
30094
30105
|
});
|
|
30095
|
-
const _sfc_main$
|
|
30106
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
30096
30107
|
__name: "SearchBoxProductRegularPrice",
|
|
30097
30108
|
props: {
|
|
30098
30109
|
item: {},
|
|
@@ -30123,12 +30134,12 @@ and ensure you are accounting for this risk.
|
|
|
30123
30134
|
};
|
|
30124
30135
|
}
|
|
30125
30136
|
});
|
|
30126
|
-
const _hoisted_1$
|
|
30127
|
-
const _hoisted_2$
|
|
30128
|
-
const _hoisted_3$
|
|
30129
|
-
const _hoisted_4$
|
|
30130
|
-
const _hoisted_5$
|
|
30131
|
-
const _sfc_main$
|
|
30137
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
30138
|
+
const _hoisted_2$R = { key: 0 };
|
|
30139
|
+
const _hoisted_3$D = { key: 1 };
|
|
30140
|
+
const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
|
|
30141
|
+
const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
|
|
30142
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
30132
30143
|
__name: "SearchBoxProductCustom",
|
|
30133
30144
|
props: {
|
|
30134
30145
|
item: {},
|
|
@@ -30154,20 +30165,20 @@ and ensure you are accounting for this risk.
|
|
|
30154
30165
|
key: 0,
|
|
30155
30166
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
30156
30167
|
innerHTML: text.value
|
|
30157
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30168
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30158
30169
|
key: 1,
|
|
30159
30170
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30160
30171
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30161
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
30162
|
-
createBaseVNode("div", _hoisted_4$
|
|
30163
|
-
createBaseVNode("div", _hoisted_5$
|
|
30172
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
30173
|
+
createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
|
|
30174
|
+
createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
|
|
30164
30175
|
]))
|
|
30165
30176
|
], 16));
|
|
30166
30177
|
};
|
|
30167
30178
|
}
|
|
30168
30179
|
});
|
|
30169
|
-
const _hoisted_1$
|
|
30170
|
-
const _sfc_main$
|
|
30180
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
30181
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
30171
30182
|
__name: "SearchBoxProductCustomHtml",
|
|
30172
30183
|
props: {
|
|
30173
30184
|
item: {},
|
|
@@ -30192,7 +30203,7 @@ and ensure you are accounting for this risk.
|
|
|
30192
30203
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30193
30204
|
class: className.value,
|
|
30194
30205
|
innerHTML: text.value
|
|
30195
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30206
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1c);
|
|
30196
30207
|
};
|
|
30197
30208
|
}
|
|
30198
30209
|
});
|
|
@@ -30250,7 +30261,9 @@ and ensure you are accounting for this risk.
|
|
|
30250
30261
|
const loadingFacets = ref(false);
|
|
30251
30262
|
const loadingRefiners = ref(false);
|
|
30252
30263
|
const loadingRelatedQueries = ref(false);
|
|
30253
|
-
const
|
|
30264
|
+
const isFilterSidebarVisible = ref(false);
|
|
30265
|
+
const isSidebarClosing = ref(false);
|
|
30266
|
+
const isSortingSidebarVisible = ref(false);
|
|
30254
30267
|
const relatedCategoryChildren = ref([]);
|
|
30255
30268
|
const lastRequestId = ref("");
|
|
30256
30269
|
const searchRequestResults = ref({});
|
|
@@ -30332,16 +30345,36 @@ and ensure you are accounting for this risk.
|
|
|
30332
30345
|
return hasResults.value && ((_a25 = searchResult.value.offset) != null ? _a25 : 0) >= totalItems.value;
|
|
30333
30346
|
}
|
|
30334
30347
|
);
|
|
30348
|
+
const toggleSidebarState = ({
|
|
30349
|
+
visible,
|
|
30350
|
+
sidebar = "filter"
|
|
30351
|
+
}) => {
|
|
30352
|
+
if (sidebar === "sorting") {
|
|
30353
|
+
isSortingSidebarVisible.value = visible;
|
|
30354
|
+
return;
|
|
30355
|
+
}
|
|
30356
|
+
isFilterSidebarVisible.value = visible;
|
|
30357
|
+
};
|
|
30335
30358
|
const setSidebarState = ({
|
|
30336
30359
|
visible,
|
|
30337
|
-
disableBodyScrolling = true
|
|
30360
|
+
disableBodyScrolling = true,
|
|
30361
|
+
sidebar = "filter"
|
|
30338
30362
|
}) => {
|
|
30363
|
+
var _a25, _b25, _c, _d;
|
|
30339
30364
|
if (visible && disableBodyScrolling) {
|
|
30340
30365
|
disableBodyScroll();
|
|
30341
30366
|
} else {
|
|
30342
30367
|
enableBodyScroll();
|
|
30343
30368
|
}
|
|
30344
|
-
|
|
30369
|
+
if (visible || !((_d = (_c = (_b25 = (_a25 = searchResultOptions == null ? void 0 : searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.drawer) == null ? void 0 : _d.sidebarCloseDelay)) {
|
|
30370
|
+
toggleSidebarState({ visible, sidebar });
|
|
30371
|
+
} else {
|
|
30372
|
+
isSidebarClosing.value = true;
|
|
30373
|
+
setTimeout(() => {
|
|
30374
|
+
toggleSidebarState({ visible, sidebar });
|
|
30375
|
+
isSidebarClosing.value = false;
|
|
30376
|
+
}, searchResultOptions.value.filters.facets.style.drawer.sidebarCloseDelay);
|
|
30377
|
+
}
|
|
30345
30378
|
};
|
|
30346
30379
|
const queryFacet = (_0) => __async2(null, [_0], function* ({ queryKey, facetKey }) {
|
|
30347
30380
|
var _a25, _b25, _c, _d;
|
|
@@ -30443,13 +30476,28 @@ and ensure you are accounting for this risk.
|
|
|
30443
30476
|
const setRelatedCategoryChildren = (children) => {
|
|
30444
30477
|
relatedCategoryChildren.value = [...children];
|
|
30445
30478
|
};
|
|
30479
|
+
const preconfiguredRelatedQueryKeys = computed(() => {
|
|
30480
|
+
var _a25, _b25, _c, _d, _e;
|
|
30481
|
+
return (_e = (_d = (_c = (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.relatedQueries) == null ? void 0 : _b25.source) == null ? void 0 : _c.queries) == null ? void 0 : _d.map((q) => q.facetKey)) != null ? _e : [];
|
|
30482
|
+
});
|
|
30483
|
+
const relatedQueryFacetKeys = computed(() => {
|
|
30484
|
+
var _a25, _b25, _c;
|
|
30485
|
+
const keysFromRelatedResults = (_c = (_b25 = (_a25 = relatedQueriesResult.value) == null ? void 0 : _a25.relatedQueries) == null ? void 0 : _b25.map((rq) => rq.facetKey)) != null ? _c : [];
|
|
30486
|
+
return Array.from(/* @__PURE__ */ new Set([...preconfiguredRelatedQueryKeys.value, ...keysFromRelatedResults]));
|
|
30487
|
+
});
|
|
30446
30488
|
const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(null, null, function* () {
|
|
30447
|
-
var _a25, _b25;
|
|
30489
|
+
var _a25, _b25, _c;
|
|
30448
30490
|
loadingRelatedQueries.value = true;
|
|
30449
30491
|
const context = getLupaTrackingContext();
|
|
30450
30492
|
const searchText = (_b25 = (_a25 = result2.suggestedSearchText) != null ? _a25 : result2.searchText) != null ? _b25 : "";
|
|
30493
|
+
const publicQueryFiltersWithoutRelatedKeys = __spreadValues2({}, (_c = publicQuery.filters) != null ? _c : {});
|
|
30494
|
+
relatedQueryFacetKeys.value.forEach((facetKey) => {
|
|
30495
|
+
delete publicQueryFiltersWithoutRelatedKeys[facetKey];
|
|
30496
|
+
});
|
|
30497
|
+
const hasRemainingFilters = Object.keys(publicQueryFiltersWithoutRelatedKeys != null ? publicQueryFiltersWithoutRelatedKeys : {}).length > 0;
|
|
30451
30498
|
const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
|
|
30452
|
-
searchText
|
|
30499
|
+
searchText,
|
|
30500
|
+
filters: hasRemainingFilters ? publicQueryFiltersWithoutRelatedKeys : void 0
|
|
30453
30501
|
}), context), {
|
|
30454
30502
|
modifiers: { facets: false, refiners: true }
|
|
30455
30503
|
});
|
|
@@ -30465,7 +30513,9 @@ and ensure you are accounting for this risk.
|
|
|
30465
30513
|
});
|
|
30466
30514
|
});
|
|
30467
30515
|
return {
|
|
30468
|
-
|
|
30516
|
+
isFilterSidebarVisible,
|
|
30517
|
+
isSortingSidebarVisible,
|
|
30518
|
+
isSidebarClosing,
|
|
30469
30519
|
searchResult,
|
|
30470
30520
|
columnCount,
|
|
30471
30521
|
addToCartAmount,
|
|
@@ -30491,6 +30541,7 @@ and ensure you are accounting for this risk.
|
|
|
30491
30541
|
relatedQueriesResult,
|
|
30492
30542
|
relatedQueriesApiEnabled,
|
|
30493
30543
|
lastResultsSource,
|
|
30544
|
+
relatedQueryFacetKeys,
|
|
30494
30545
|
setSidebarState,
|
|
30495
30546
|
queryFacet,
|
|
30496
30547
|
setLastRequestId,
|
|
@@ -30507,12 +30558,12 @@ and ensure you are accounting for this risk.
|
|
|
30507
30558
|
setRelatedQueriesApiEnabled
|
|
30508
30559
|
};
|
|
30509
30560
|
});
|
|
30510
|
-
const _hoisted_1$
|
|
30511
|
-
const _hoisted_2$
|
|
30512
|
-
const _hoisted_3$
|
|
30513
|
-
const _hoisted_4$
|
|
30514
|
-
const _hoisted_5$
|
|
30515
|
-
const _sfc_main$
|
|
30561
|
+
const _hoisted_1$1b = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30562
|
+
const _hoisted_2$Q = { class: "lupa-search-box-product-addtocart" };
|
|
30563
|
+
const _hoisted_3$C = ["disabled"];
|
|
30564
|
+
const _hoisted_4$s = ["href"];
|
|
30565
|
+
const _hoisted_5$i = ["disabled"];
|
|
30566
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
30516
30567
|
__name: "SearchBoxProductAddToCart",
|
|
30517
30568
|
props: {
|
|
30518
30569
|
item: {},
|
|
@@ -30558,45 +30609,45 @@ and ensure you are accounting for this risk.
|
|
|
30558
30609
|
return Boolean(props.link && props.options.link);
|
|
30559
30610
|
});
|
|
30560
30611
|
return (_ctx, _cache) => {
|
|
30561
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30562
|
-
createBaseVNode("div", _hoisted_2$
|
|
30612
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
30613
|
+
createBaseVNode("div", _hoisted_2$Q, [
|
|
30563
30614
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30564
30615
|
key: 0,
|
|
30565
30616
|
class: addToCartButtonClass.value,
|
|
30566
30617
|
"data-cy": "lupa-add-to-cart",
|
|
30567
30618
|
disabled: !inStockValue.value || loading.value
|
|
30568
30619
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
30569
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
30570
|
-
], 16, _hoisted_3$
|
|
30620
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
|
|
30621
|
+
], 16, _hoisted_3$C)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
30571
30622
|
key: 1,
|
|
30572
30623
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
30573
30624
|
class: addToCartButtonClass.value,
|
|
30574
30625
|
"data-cy": "lupa-add-to-cart",
|
|
30575
30626
|
type: "button",
|
|
30576
30627
|
disabled: !inStockValue.value || loading.value
|
|
30577
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$
|
|
30628
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
|
|
30578
30629
|
])
|
|
30579
30630
|
]);
|
|
30580
30631
|
};
|
|
30581
30632
|
}
|
|
30582
30633
|
});
|
|
30583
|
-
const _hoisted_1$
|
|
30634
|
+
const _hoisted_1$1a = {
|
|
30584
30635
|
key: 1,
|
|
30585
30636
|
class: "lupa-search-box-element-badge-wrapper"
|
|
30586
30637
|
};
|
|
30587
30638
|
const __default__$4 = {
|
|
30588
30639
|
components: {
|
|
30589
|
-
SearchBoxProductImage: _sfc_main$
|
|
30590
|
-
SearchBoxProductTitle: _sfc_main$
|
|
30591
|
-
SearchBoxProductDescription: _sfc_main$
|
|
30592
|
-
SearchBoxProductPrice: _sfc_main$
|
|
30593
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
30594
|
-
SearchBoxProductCustom: _sfc_main$
|
|
30595
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
30596
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
30640
|
+
SearchBoxProductImage: _sfc_main$1v,
|
|
30641
|
+
SearchBoxProductTitle: _sfc_main$1u,
|
|
30642
|
+
SearchBoxProductDescription: _sfc_main$1t,
|
|
30643
|
+
SearchBoxProductPrice: _sfc_main$1s,
|
|
30644
|
+
SearchBoxProductRegularPrice: _sfc_main$1r,
|
|
30645
|
+
SearchBoxProductCustom: _sfc_main$1q,
|
|
30646
|
+
SearchBoxProductCustomHtml: _sfc_main$1p,
|
|
30647
|
+
SearchBoxProductAddToCart: _sfc_main$1o
|
|
30597
30648
|
}
|
|
30598
30649
|
};
|
|
30599
|
-
const _sfc_main$
|
|
30650
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
30600
30651
|
__name: "SearchBoxProductElement",
|
|
30601
30652
|
props: {
|
|
30602
30653
|
item: {},
|
|
@@ -30668,7 +30719,7 @@ and ensure you are accounting for this risk.
|
|
|
30668
30719
|
"dynamic-attributes": dynamicAttributes.value,
|
|
30669
30720
|
link: _ctx.link
|
|
30670
30721
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
30671
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30722
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
30672
30723
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
30673
30724
|
key: 0,
|
|
30674
30725
|
item: enhancedItem.value,
|
|
@@ -30683,14 +30734,14 @@ and ensure you are accounting for this risk.
|
|
|
30683
30734
|
};
|
|
30684
30735
|
}
|
|
30685
30736
|
}));
|
|
30686
|
-
const _hoisted_1$
|
|
30687
|
-
const _hoisted_2$
|
|
30688
|
-
const _hoisted_3$
|
|
30689
|
-
const _hoisted_4$
|
|
30737
|
+
const _hoisted_1$19 = { class: "lupa-badge-title" };
|
|
30738
|
+
const _hoisted_2$P = ["src"];
|
|
30739
|
+
const _hoisted_3$B = { key: 1 };
|
|
30740
|
+
const _hoisted_4$r = {
|
|
30690
30741
|
key: 0,
|
|
30691
30742
|
class: "lupa-badge-full-text"
|
|
30692
30743
|
};
|
|
30693
|
-
const _sfc_main$
|
|
30744
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
30694
30745
|
__name: "SearchResultGeneratedBadge",
|
|
30695
30746
|
props: {
|
|
30696
30747
|
options: {},
|
|
@@ -30723,20 +30774,20 @@ and ensure you are accounting for this risk.
|
|
|
30723
30774
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
30724
30775
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
30725
30776
|
}, [
|
|
30726
|
-
createBaseVNode("span", _hoisted_1$
|
|
30777
|
+
createBaseVNode("span", _hoisted_1$19, [
|
|
30727
30778
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
30728
30779
|
key: 0,
|
|
30729
30780
|
src: image.value
|
|
30730
|
-
}, null, 8, _hoisted_2$
|
|
30731
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
30781
|
+
}, null, 8, _hoisted_2$P)) : createCommentVNode("", true),
|
|
30782
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30732
30783
|
]),
|
|
30733
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
30784
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
30734
30785
|
], 6);
|
|
30735
30786
|
};
|
|
30736
30787
|
}
|
|
30737
30788
|
});
|
|
30738
|
-
const _hoisted_1$
|
|
30739
|
-
const _sfc_main$
|
|
30789
|
+
const _hoisted_1$18 = { class: "lupa-generated-badges" };
|
|
30790
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
30740
30791
|
__name: "SearchResultGeneratedBadges",
|
|
30741
30792
|
props: {
|
|
30742
30793
|
options: {}
|
|
@@ -30762,9 +30813,9 @@ and ensure you are accounting for this risk.
|
|
|
30762
30813
|
})).filter((b) => Boolean(b.id));
|
|
30763
30814
|
});
|
|
30764
30815
|
return (_ctx, _cache) => {
|
|
30765
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30816
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
30766
30817
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
30767
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30818
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
30768
30819
|
key: badge.id,
|
|
30769
30820
|
badge,
|
|
30770
30821
|
options: _ctx.options
|
|
@@ -30774,8 +30825,8 @@ and ensure you are accounting for this risk.
|
|
|
30774
30825
|
};
|
|
30775
30826
|
}
|
|
30776
30827
|
});
|
|
30777
|
-
const _hoisted_1$
|
|
30778
|
-
const _sfc_main$
|
|
30828
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
30829
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
30779
30830
|
__name: "CustomBadge",
|
|
30780
30831
|
props: {
|
|
30781
30832
|
badge: {}
|
|
@@ -30796,12 +30847,12 @@ and ensure you are accounting for this risk.
|
|
|
30796
30847
|
return openBlock(), createElementBlock("div", {
|
|
30797
30848
|
class: normalizeClass(className.value),
|
|
30798
30849
|
innerHTML: text.value
|
|
30799
|
-
}, null, 10, _hoisted_1$
|
|
30850
|
+
}, null, 10, _hoisted_1$17);
|
|
30800
30851
|
};
|
|
30801
30852
|
}
|
|
30802
30853
|
});
|
|
30803
|
-
const _hoisted_1$
|
|
30804
|
-
const _sfc_main$
|
|
30854
|
+
const _hoisted_1$16 = { class: "lupa-text-badges" };
|
|
30855
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
30805
30856
|
__name: "TextBadge",
|
|
30806
30857
|
props: {
|
|
30807
30858
|
badge: {}
|
|
@@ -30815,7 +30866,7 @@ and ensure you are accounting for this risk.
|
|
|
30815
30866
|
return badges.value.slice(0, props.badge.maxItems);
|
|
30816
30867
|
});
|
|
30817
30868
|
return (_ctx, _cache) => {
|
|
30818
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30869
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
30819
30870
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
30820
30871
|
return openBlock(), createElementBlock("div", {
|
|
30821
30872
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -30826,9 +30877,9 @@ and ensure you are accounting for this risk.
|
|
|
30826
30877
|
};
|
|
30827
30878
|
}
|
|
30828
30879
|
});
|
|
30829
|
-
const _hoisted_1$
|
|
30830
|
-
const _hoisted_2$
|
|
30831
|
-
const _sfc_main$
|
|
30880
|
+
const _hoisted_1$15 = { class: "lupa-image-badges" };
|
|
30881
|
+
const _hoisted_2$O = ["src"];
|
|
30882
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
30832
30883
|
__name: "ImageBadge",
|
|
30833
30884
|
props: {
|
|
30834
30885
|
badge: {}
|
|
@@ -30848,7 +30899,7 @@ and ensure you are accounting for this risk.
|
|
|
30848
30899
|
return `${props.badge.rootImageUrl}${src}`;
|
|
30849
30900
|
};
|
|
30850
30901
|
return (_ctx, _cache) => {
|
|
30851
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30902
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
30852
30903
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
30853
30904
|
return openBlock(), createElementBlock("div", {
|
|
30854
30905
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -30856,14 +30907,14 @@ and ensure you are accounting for this risk.
|
|
|
30856
30907
|
}, [
|
|
30857
30908
|
createBaseVNode("img", {
|
|
30858
30909
|
src: getImageUrl(item)
|
|
30859
|
-
}, null, 8, _hoisted_2$
|
|
30910
|
+
}, null, 8, _hoisted_2$O)
|
|
30860
30911
|
]);
|
|
30861
30912
|
}), 128))
|
|
30862
30913
|
]);
|
|
30863
30914
|
};
|
|
30864
30915
|
}
|
|
30865
30916
|
});
|
|
30866
|
-
const _sfc_main$
|
|
30917
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
30867
30918
|
__name: "DiscountBadge",
|
|
30868
30919
|
props: {
|
|
30869
30920
|
badge: {}
|
|
@@ -30925,16 +30976,16 @@ and ensure you are accounting for this risk.
|
|
|
30925
30976
|
};
|
|
30926
30977
|
}
|
|
30927
30978
|
});
|
|
30928
|
-
const _hoisted_1$
|
|
30979
|
+
const _hoisted_1$14 = { id: "lupa-search-results-badges" };
|
|
30929
30980
|
const __default__$3 = {
|
|
30930
30981
|
components: {
|
|
30931
|
-
CustomBadge: _sfc_main$
|
|
30932
|
-
TextBadge: _sfc_main$
|
|
30933
|
-
ImageBadge: _sfc_main$
|
|
30934
|
-
DiscountBadge: _sfc_main$
|
|
30982
|
+
CustomBadge: _sfc_main$1k,
|
|
30983
|
+
TextBadge: _sfc_main$1j,
|
|
30984
|
+
ImageBadge: _sfc_main$1i,
|
|
30985
|
+
DiscountBadge: _sfc_main$1h
|
|
30935
30986
|
}
|
|
30936
30987
|
};
|
|
30937
|
-
const _sfc_main$
|
|
30988
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
30938
30989
|
__name: "SearchResultsBadgeWrapper",
|
|
30939
30990
|
props: {
|
|
30940
30991
|
position: {},
|
|
@@ -30997,7 +31048,7 @@ and ensure you are accounting for this risk.
|
|
|
30997
31048
|
}
|
|
30998
31049
|
};
|
|
30999
31050
|
return (_ctx, _cache) => {
|
|
31000
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31051
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
31001
31052
|
createBaseVNode("div", {
|
|
31002
31053
|
id: "lupa-badges",
|
|
31003
31054
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -31008,7 +31059,7 @@ and ensure you are accounting for this risk.
|
|
|
31008
31059
|
badge
|
|
31009
31060
|
}, null, 8, ["badge"]);
|
|
31010
31061
|
}), 128)),
|
|
31011
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
31062
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
31012
31063
|
key: 0,
|
|
31013
31064
|
options: _ctx.options
|
|
31014
31065
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -31017,13 +31068,13 @@ and ensure you are accounting for this risk.
|
|
|
31017
31068
|
};
|
|
31018
31069
|
}
|
|
31019
31070
|
}));
|
|
31020
|
-
const _hoisted_1$
|
|
31021
|
-
const _hoisted_2$
|
|
31022
|
-
const _hoisted_3$
|
|
31071
|
+
const _hoisted_1$13 = ["href"];
|
|
31072
|
+
const _hoisted_2$N = { class: "lupa-search-box-product-details-section" };
|
|
31073
|
+
const _hoisted_3$A = {
|
|
31023
31074
|
key: 0,
|
|
31024
31075
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
31025
31076
|
};
|
|
31026
|
-
const _sfc_main$
|
|
31077
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
31027
31078
|
__name: "SearchBoxProduct",
|
|
31028
31079
|
props: {
|
|
31029
31080
|
item: {},
|
|
@@ -31129,7 +31180,7 @@ and ensure you are accounting for this risk.
|
|
|
31129
31180
|
style: normalizeStyle(imageStyleOverride.value)
|
|
31130
31181
|
}, [
|
|
31131
31182
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
31132
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31183
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
31133
31184
|
class: "lupa-search-box-product-element",
|
|
31134
31185
|
key: element.key,
|
|
31135
31186
|
item: _ctx.item,
|
|
@@ -31139,10 +31190,10 @@ and ensure you are accounting for this risk.
|
|
|
31139
31190
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
31140
31191
|
}), 128))
|
|
31141
31192
|
], 4),
|
|
31142
|
-
createBaseVNode("div", _hoisted_2$
|
|
31193
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
31143
31194
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
31144
31195
|
var _a25;
|
|
31145
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31196
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
31146
31197
|
class: "lupa-search-box-product-element",
|
|
31147
31198
|
key: element.key,
|
|
31148
31199
|
item: _ctx.item,
|
|
@@ -31153,7 +31204,7 @@ and ensure you are accounting for this risk.
|
|
|
31153
31204
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
31154
31205
|
name: "badges",
|
|
31155
31206
|
fn: withCtx(() => [
|
|
31156
|
-
createVNode(_sfc_main$
|
|
31207
|
+
createVNode(_sfc_main$1g, {
|
|
31157
31208
|
options: badgeOptions.value,
|
|
31158
31209
|
position: "card"
|
|
31159
31210
|
}, null, 8, ["options"])
|
|
@@ -31169,7 +31220,7 @@ and ensure you are accounting for this risk.
|
|
|
31169
31220
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
31170
31221
|
}, [
|
|
31171
31222
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
31172
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31223
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
31173
31224
|
class: "lupa-search-box-product-element",
|
|
31174
31225
|
key: element.key,
|
|
31175
31226
|
item: _ctx.item,
|
|
@@ -31181,8 +31232,8 @@ and ensure you are accounting for this risk.
|
|
|
31181
31232
|
}), 128))
|
|
31182
31233
|
], 2);
|
|
31183
31234
|
}), 128)),
|
|
31184
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
31185
|
-
createVNode(_sfc_main$
|
|
31235
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
31236
|
+
createVNode(_sfc_main$1n, {
|
|
31186
31237
|
class: "lupa-search-box-product-element",
|
|
31187
31238
|
item: _ctx.item,
|
|
31188
31239
|
element: addToCartElement.value,
|
|
@@ -31191,7 +31242,7 @@ and ensure you are accounting for this risk.
|
|
|
31191
31242
|
isInStock: isInStock.value
|
|
31192
31243
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
31193
31244
|
])) : createCommentVNode("", true)
|
|
31194
|
-
], 16, _hoisted_1$
|
|
31245
|
+
], 16, _hoisted_1$13);
|
|
31195
31246
|
};
|
|
31196
31247
|
}
|
|
31197
31248
|
});
|
|
@@ -31263,8 +31314,8 @@ and ensure you are accounting for this risk.
|
|
|
31263
31314
|
};
|
|
31264
31315
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
31265
31316
|
});
|
|
31266
|
-
const _hoisted_1
|
|
31267
|
-
const _sfc_main$
|
|
31317
|
+
const _hoisted_1$12 = { id: "lupa-search-box-products" };
|
|
31318
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
31268
31319
|
__name: "SearchBoxProducts",
|
|
31269
31320
|
props: {
|
|
31270
31321
|
items: {},
|
|
@@ -31336,7 +31387,7 @@ and ensure you are accounting for this risk.
|
|
|
31336
31387
|
}
|
|
31337
31388
|
};
|
|
31338
31389
|
return (_ctx, _cache) => {
|
|
31339
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
31390
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
31340
31391
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
31341
31392
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
31342
31393
|
key: index,
|
|
@@ -31348,7 +31399,7 @@ and ensure you are accounting for this risk.
|
|
|
31348
31399
|
itemClicked: handleProductClick
|
|
31349
31400
|
});
|
|
31350
31401
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
31351
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31402
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
31352
31403
|
key: index,
|
|
31353
31404
|
item,
|
|
31354
31405
|
panelOptions: _ctx.panelOptions,
|
|
@@ -31363,9 +31414,9 @@ and ensure you are accounting for this risk.
|
|
|
31363
31414
|
};
|
|
31364
31415
|
}
|
|
31365
31416
|
});
|
|
31366
|
-
const _hoisted_1$
|
|
31367
|
-
const _hoisted_2$
|
|
31368
|
-
const _sfc_main$
|
|
31417
|
+
const _hoisted_1$11 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
31418
|
+
const _hoisted_2$M = { key: 0 };
|
|
31419
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
31369
31420
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
31370
31421
|
props: {
|
|
31371
31422
|
options: {},
|
|
@@ -31396,13 +31447,13 @@ and ensure you are accounting for this risk.
|
|
|
31396
31447
|
emit2("goToResults");
|
|
31397
31448
|
};
|
|
31398
31449
|
return (_ctx, _cache) => {
|
|
31399
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31450
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
31400
31451
|
createBaseVNode("button", {
|
|
31401
31452
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
31402
31453
|
onClick: goToResults
|
|
31403
31454
|
}, [
|
|
31404
31455
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
31405
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31456
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$M, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
31406
31457
|
])
|
|
31407
31458
|
]);
|
|
31408
31459
|
};
|
|
@@ -31498,7 +31549,7 @@ and ensure you are accounting for this risk.
|
|
|
31498
31549
|
}
|
|
31499
31550
|
return parsedObject;
|
|
31500
31551
|
};
|
|
31501
|
-
const _sfc_main$
|
|
31552
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
31502
31553
|
__name: "SearchBoxProductsWrapper",
|
|
31503
31554
|
props: {
|
|
31504
31555
|
panel: {},
|
|
@@ -31568,7 +31619,7 @@ and ensure you are accounting for this risk.
|
|
|
31568
31619
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
31569
31620
|
return (_ctx, _cache) => {
|
|
31570
31621
|
var _a25, _b25;
|
|
31571
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31622
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
31572
31623
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31573
31624
|
panelOptions: _ctx.panel,
|
|
31574
31625
|
labels: _ctx.labels,
|
|
@@ -31578,7 +31629,7 @@ and ensure you are accounting for this risk.
|
|
|
31578
31629
|
default: withCtx(() => {
|
|
31579
31630
|
var _a26;
|
|
31580
31631
|
return [
|
|
31581
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
31632
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1d, {
|
|
31582
31633
|
key: 0,
|
|
31583
31634
|
options: _ctx.searchBoxOptions,
|
|
31584
31635
|
panel: _ctx.panel,
|
|
@@ -31599,7 +31650,7 @@ and ensure you are accounting for this risk.
|
|
|
31599
31650
|
};
|
|
31600
31651
|
}
|
|
31601
31652
|
});
|
|
31602
|
-
const _sfc_main$
|
|
31653
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
31603
31654
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
31604
31655
|
props: {
|
|
31605
31656
|
panel: {},
|
|
@@ -31671,7 +31722,7 @@ and ensure you are accounting for this risk.
|
|
|
31671
31722
|
});
|
|
31672
31723
|
return (_ctx, _cache) => {
|
|
31673
31724
|
var _a25, _b25;
|
|
31674
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31725
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
31675
31726
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31676
31727
|
panelOptions: documentPanelOptions.value,
|
|
31677
31728
|
labels: _ctx.labels,
|
|
@@ -31689,31 +31740,31 @@ and ensure you are accounting for this risk.
|
|
|
31689
31740
|
};
|
|
31690
31741
|
}
|
|
31691
31742
|
});
|
|
31692
|
-
const _hoisted_1$
|
|
31743
|
+
const _hoisted_1$10 = {
|
|
31693
31744
|
key: 0,
|
|
31694
31745
|
id: "lupa-search-box-panel"
|
|
31695
31746
|
};
|
|
31696
|
-
const _hoisted_2$
|
|
31697
|
-
const _hoisted_3$
|
|
31747
|
+
const _hoisted_2$L = ["data-cy"];
|
|
31748
|
+
const _hoisted_3$z = {
|
|
31698
31749
|
key: 0,
|
|
31699
31750
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31700
31751
|
};
|
|
31701
|
-
const _hoisted_4$
|
|
31752
|
+
const _hoisted_4$q = {
|
|
31702
31753
|
key: 1,
|
|
31703
31754
|
class: "lupa-panel-title"
|
|
31704
31755
|
};
|
|
31705
|
-
const _hoisted_5$
|
|
31756
|
+
const _hoisted_5$h = {
|
|
31706
31757
|
key: 1,
|
|
31707
31758
|
id: "lupa-search-box-panel"
|
|
31708
31759
|
};
|
|
31709
31760
|
const __default__$2 = {
|
|
31710
31761
|
components: {
|
|
31711
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
31712
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
31713
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
31762
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1x,
|
|
31763
|
+
SearchBoxProductsWrapper: _sfc_main$1c,
|
|
31764
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$1b
|
|
31714
31765
|
}
|
|
31715
31766
|
};
|
|
31716
|
-
const _sfc_main$
|
|
31767
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
31717
31768
|
__name: "SearchBoxMainPanel",
|
|
31718
31769
|
props: {
|
|
31719
31770
|
options: {},
|
|
@@ -31878,7 +31929,7 @@ and ensure you are accounting for this risk.
|
|
|
31878
31929
|
ref_key: "panelContainer",
|
|
31879
31930
|
ref: panelContainer
|
|
31880
31931
|
}, [
|
|
31881
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31932
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
31882
31933
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
31883
31934
|
key: 0,
|
|
31884
31935
|
class: "lupa-search-box-close-panel",
|
|
@@ -31900,8 +31951,8 @@ and ensure you are accounting for this risk.
|
|
|
31900
31951
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
31901
31952
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
31902
31953
|
}, [
|
|
31903
|
-
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
31904
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
31954
|
+
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
31955
|
+
((_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),
|
|
31905
31956
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
31906
31957
|
key: 2,
|
|
31907
31958
|
panel,
|
|
@@ -31923,21 +31974,21 @@ and ensure you are accounting for this risk.
|
|
|
31923
31974
|
key: "0"
|
|
31924
31975
|
} : void 0
|
|
31925
31976
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
31926
|
-
], 14, _hoisted_2$
|
|
31977
|
+
], 14, _hoisted_2$L);
|
|
31927
31978
|
}), 128))
|
|
31928
31979
|
], 4),
|
|
31929
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
31980
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
31930
31981
|
key: 1,
|
|
31931
31982
|
labels: labels.value
|
|
31932
31983
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
31933
|
-
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
31984
|
+
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
31934
31985
|
key: 2,
|
|
31935
31986
|
labels: labels.value,
|
|
31936
31987
|
options: _ctx.options,
|
|
31937
31988
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
31938
31989
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
31939
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
31940
|
-
createVNode(_sfc_main$
|
|
31990
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
|
|
31991
|
+
createVNode(_sfc_main$1B, {
|
|
31941
31992
|
options: _ctx.options.history,
|
|
31942
31993
|
history: history.value,
|
|
31943
31994
|
onGoToResults: handleGoToResults,
|
|
@@ -31962,8 +32013,8 @@ and ensure you are accounting for this risk.
|
|
|
31962
32013
|
const elements = getElements(triggers);
|
|
31963
32014
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
31964
32015
|
};
|
|
31965
|
-
const _hoisted_1
|
|
31966
|
-
const _sfc_main$
|
|
32016
|
+
const _hoisted_1$$ = { class: "lupa-search-box-wrapper" };
|
|
32017
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
31967
32018
|
__name: "SearchBox",
|
|
31968
32019
|
props: {
|
|
31969
32020
|
options: {},
|
|
@@ -32286,8 +32337,8 @@ and ensure you are accounting for this risk.
|
|
|
32286
32337
|
id: "lupa-search-box",
|
|
32287
32338
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
32288
32339
|
}, [
|
|
32289
|
-
createBaseVNode("div", _hoisted_1
|
|
32290
|
-
createVNode(_sfc_main$
|
|
32340
|
+
createBaseVNode("div", _hoisted_1$$, [
|
|
32341
|
+
createVNode(_sfc_main$1E, {
|
|
32291
32342
|
options: inputOptions.value,
|
|
32292
32343
|
suggestedValue: suggestedValue.value,
|
|
32293
32344
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -32300,7 +32351,7 @@ and ensure you are accounting for this risk.
|
|
|
32300
32351
|
onSearch: handleSearch,
|
|
32301
32352
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
32302
32353
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
32303
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
32354
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1a, {
|
|
32304
32355
|
key: 0,
|
|
32305
32356
|
options: panelOptions.value,
|
|
32306
32357
|
inputValue: inputValue.value,
|
|
@@ -32388,20 +32439,20 @@ and ensure you are accounting for this risk.
|
|
|
32388
32439
|
}
|
|
32389
32440
|
return searchParams;
|
|
32390
32441
|
};
|
|
32391
|
-
const _hoisted_1$
|
|
32442
|
+
const _hoisted_1$_ = {
|
|
32392
32443
|
key: 0,
|
|
32393
32444
|
id: "lupa-search-results-did-you-mean"
|
|
32394
32445
|
};
|
|
32395
|
-
const _hoisted_2$
|
|
32446
|
+
const _hoisted_2$K = {
|
|
32396
32447
|
key: 0,
|
|
32397
32448
|
"data-cy": "suggested-search-text-label"
|
|
32398
32449
|
};
|
|
32399
|
-
const _hoisted_3$
|
|
32450
|
+
const _hoisted_3$y = {
|
|
32400
32451
|
key: 1,
|
|
32401
32452
|
"data-cy": "did-you-mean-label"
|
|
32402
32453
|
};
|
|
32403
|
-
const _hoisted_4$
|
|
32404
|
-
const _sfc_main$
|
|
32454
|
+
const _hoisted_4$p = { key: 1 };
|
|
32455
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
32405
32456
|
__name: "SearchResultsDidYouMean",
|
|
32406
32457
|
props: {
|
|
32407
32458
|
labels: {}
|
|
@@ -32433,8 +32484,8 @@ and ensure you are accounting for this risk.
|
|
|
32433
32484
|
paramStore.goToResults({ searchText, facet });
|
|
32434
32485
|
};
|
|
32435
32486
|
return (_ctx, _cache) => {
|
|
32436
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32437
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32487
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
32488
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
|
|
32438
32489
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
32439
32490
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32440
32491
|
createBaseVNode("span", {
|
|
@@ -32443,7 +32494,7 @@ and ensure you are accounting for this risk.
|
|
|
32443
32494
|
]);
|
|
32444
32495
|
}), 128))
|
|
32445
32496
|
])) : createCommentVNode("", true),
|
|
32446
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
32497
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
32447
32498
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
32448
32499
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32449
32500
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -32451,7 +32502,7 @@ and ensure you are accounting for this risk.
|
|
|
32451
32502
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
32452
32503
|
"data-cy": "did-you-mean-value",
|
|
32453
32504
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
32454
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
32505
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
|
|
32455
32506
|
]);
|
|
32456
32507
|
}), 128))
|
|
32457
32508
|
])) : createCommentVNode("", true)
|
|
@@ -32459,12 +32510,12 @@ and ensure you are accounting for this risk.
|
|
|
32459
32510
|
};
|
|
32460
32511
|
}
|
|
32461
32512
|
});
|
|
32462
|
-
const _hoisted_1$
|
|
32513
|
+
const _hoisted_1$Z = {
|
|
32463
32514
|
key: 0,
|
|
32464
32515
|
class: "lupa-search-results-summary"
|
|
32465
32516
|
};
|
|
32466
|
-
const _hoisted_2$
|
|
32467
|
-
const _sfc_main$
|
|
32517
|
+
const _hoisted_2$J = ["innerHTML"];
|
|
32518
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
32468
32519
|
__name: "SearchResultsSummary",
|
|
32469
32520
|
props: {
|
|
32470
32521
|
label: {},
|
|
@@ -32479,8 +32530,8 @@ and ensure you are accounting for this risk.
|
|
|
32479
32530
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
32480
32531
|
});
|
|
32481
32532
|
return (_ctx, _cache) => {
|
|
32482
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32483
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
32533
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
32534
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$J),
|
|
32484
32535
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
32485
32536
|
key: 0,
|
|
32486
32537
|
class: "lupa-filter-clear",
|
|
@@ -32491,19 +32542,19 @@ and ensure you are accounting for this risk.
|
|
|
32491
32542
|
};
|
|
32492
32543
|
}
|
|
32493
32544
|
});
|
|
32494
|
-
const _hoisted_1$
|
|
32545
|
+
const _hoisted_1$Y = {
|
|
32495
32546
|
key: 0,
|
|
32496
32547
|
class: "lupa-result-page-title",
|
|
32497
32548
|
"data-cy": "lupa-result-page-title"
|
|
32498
32549
|
};
|
|
32499
|
-
const _hoisted_2$
|
|
32500
|
-
const _hoisted_3$
|
|
32550
|
+
const _hoisted_2$I = { key: 0 };
|
|
32551
|
+
const _hoisted_3$x = {
|
|
32501
32552
|
key: 1,
|
|
32502
32553
|
class: "lupa-results-total-count"
|
|
32503
32554
|
};
|
|
32504
|
-
const _hoisted_4$
|
|
32505
|
-
const _hoisted_5$
|
|
32506
|
-
const _sfc_main$
|
|
32555
|
+
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
32556
|
+
const _hoisted_5$g = ["innerHTML"];
|
|
32557
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
32507
32558
|
__name: "SearchResultsTitle",
|
|
32508
32559
|
props: {
|
|
32509
32560
|
options: {},
|
|
@@ -32546,16 +32597,16 @@ and ensure you are accounting for this risk.
|
|
|
32546
32597
|
});
|
|
32547
32598
|
return (_ctx, _cache) => {
|
|
32548
32599
|
return openBlock(), createElementBlock("div", null, [
|
|
32549
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
32600
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Y, [
|
|
32550
32601
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32551
|
-
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
32552
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
32602
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32603
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
32553
32604
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32554
|
-
createBaseVNode("span", _hoisted_4$
|
|
32605
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
32555
32606
|
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32556
32607
|
])) : createCommentVNode("", true)
|
|
32557
32608
|
])) : createCommentVNode("", true),
|
|
32558
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
32609
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$17, {
|
|
32559
32610
|
key: 1,
|
|
32560
32611
|
label: summaryLabel.value
|
|
32561
32612
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -32563,20 +32614,20 @@ and ensure you are accounting for this risk.
|
|
|
32563
32614
|
key: 2,
|
|
32564
32615
|
class: "lupa-result-page-description-top",
|
|
32565
32616
|
innerHTML: descriptionTop.value
|
|
32566
|
-
}, null, 8, _hoisted_5$
|
|
32617
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
32567
32618
|
]);
|
|
32568
32619
|
};
|
|
32569
32620
|
}
|
|
32570
32621
|
});
|
|
32571
|
-
const _hoisted_1$
|
|
32622
|
+
const _hoisted_1$X = {
|
|
32572
32623
|
class: "lupa-current-filter-label",
|
|
32573
32624
|
"data-cy": "lupa-current-filter-label"
|
|
32574
32625
|
};
|
|
32575
|
-
const _hoisted_2$
|
|
32626
|
+
const _hoisted_2$H = {
|
|
32576
32627
|
class: "lupa-current-filter-value",
|
|
32577
32628
|
"data-cy": "lupa-current-filter-value"
|
|
32578
32629
|
};
|
|
32579
|
-
const _sfc_main
|
|
32630
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
32580
32631
|
__name: "CurrentFilterDisplay",
|
|
32581
32632
|
props: {
|
|
32582
32633
|
filter: {}
|
|
@@ -32618,23 +32669,23 @@ and ensure you are accounting for this risk.
|
|
|
32618
32669
|
onClick: handleClick,
|
|
32619
32670
|
"aria-label": "Remove filter"
|
|
32620
32671
|
}, "⨉"),
|
|
32621
|
-
createBaseVNode("div", _hoisted_1$
|
|
32622
|
-
createBaseVNode("div", _hoisted_2$
|
|
32672
|
+
createBaseVNode("div", _hoisted_1$X, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32673
|
+
createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32623
32674
|
], 2);
|
|
32624
32675
|
};
|
|
32625
32676
|
}
|
|
32626
32677
|
});
|
|
32627
|
-
const _hoisted_1$
|
|
32628
|
-
const _hoisted_2$
|
|
32678
|
+
const _hoisted_1$W = { class: "lupa-filter-title-text" };
|
|
32679
|
+
const _hoisted_2$G = {
|
|
32629
32680
|
key: 0,
|
|
32630
32681
|
class: "lupa-filter-count"
|
|
32631
32682
|
};
|
|
32632
|
-
const _hoisted_3$
|
|
32683
|
+
const _hoisted_3$w = {
|
|
32633
32684
|
key: 0,
|
|
32634
32685
|
class: "filter-values"
|
|
32635
32686
|
};
|
|
32636
|
-
const _hoisted_4$
|
|
32637
|
-
const _sfc_main$
|
|
32687
|
+
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
32688
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
32638
32689
|
__name: "CurrentFilters",
|
|
32639
32690
|
props: {
|
|
32640
32691
|
options: {},
|
|
@@ -32715,19 +32766,19 @@ and ensure you are accounting for this risk.
|
|
|
32715
32766
|
class: "lupa-current-filter-title",
|
|
32716
32767
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32717
32768
|
}, [
|
|
32718
|
-
createBaseVNode("div", _hoisted_1$
|
|
32769
|
+
createBaseVNode("div", _hoisted_1$W, [
|
|
32719
32770
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32720
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
32771
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32721
32772
|
]),
|
|
32722
32773
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
32723
32774
|
key: 0,
|
|
32724
32775
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
32725
32776
|
}, null, 2)) : createCommentVNode("", true)
|
|
32726
32777
|
]),
|
|
32727
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
32728
|
-
createBaseVNode("div", _hoisted_4$
|
|
32778
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
32779
|
+
createBaseVNode("div", _hoisted_4$n, [
|
|
32729
32780
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32730
|
-
return openBlock(), createBlock(_sfc_main
|
|
32781
|
+
return openBlock(), createBlock(_sfc_main$15, {
|
|
32731
32782
|
key: filter.key + "_" + filter.value,
|
|
32732
32783
|
filter,
|
|
32733
32784
|
units: units.value,
|
|
@@ -32745,8 +32796,8 @@ and ensure you are accounting for this risk.
|
|
|
32745
32796
|
};
|
|
32746
32797
|
}
|
|
32747
32798
|
});
|
|
32748
|
-
const _hoisted_1$
|
|
32749
|
-
const _sfc_main$
|
|
32799
|
+
const _hoisted_1$V = ["href"];
|
|
32800
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
32750
32801
|
__name: "CategoryFilterItem",
|
|
32751
32802
|
props: {
|
|
32752
32803
|
options: {},
|
|
@@ -32783,20 +32834,20 @@ and ensure you are accounting for this risk.
|
|
|
32783
32834
|
"data-cy": "lupa-child-category-item",
|
|
32784
32835
|
href: urlLink.value,
|
|
32785
32836
|
onClick: handleNavigation
|
|
32786
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
32837
|
+
}, toDisplayString(title.value), 9, _hoisted_1$V)
|
|
32787
32838
|
], 2);
|
|
32788
32839
|
};
|
|
32789
32840
|
}
|
|
32790
32841
|
});
|
|
32791
|
-
const _hoisted_1$
|
|
32842
|
+
const _hoisted_1$U = {
|
|
32792
32843
|
class: "lupa-category-filter",
|
|
32793
32844
|
"data-cy": "lupa-category-filter"
|
|
32794
32845
|
};
|
|
32795
|
-
const _hoisted_2$
|
|
32796
|
-
const _hoisted_3$
|
|
32797
|
-
const _hoisted_4$
|
|
32798
|
-
const _hoisted_5$
|
|
32799
|
-
const _sfc_main$
|
|
32846
|
+
const _hoisted_2$F = { class: "lupa-category-back" };
|
|
32847
|
+
const _hoisted_3$v = ["href"];
|
|
32848
|
+
const _hoisted_4$m = ["href"];
|
|
32849
|
+
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
32850
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
32800
32851
|
__name: "CategoryFilter",
|
|
32801
32852
|
props: {
|
|
32802
32853
|
options: {}
|
|
@@ -32884,14 +32935,14 @@ and ensure you are accounting for this risk.
|
|
|
32884
32935
|
};
|
|
32885
32936
|
__expose({ fetch: fetch2 });
|
|
32886
32937
|
return (_ctx, _cache) => {
|
|
32887
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32888
|
-
createBaseVNode("div", _hoisted_2$
|
|
32938
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
32939
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
32889
32940
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
32890
32941
|
key: 0,
|
|
32891
32942
|
"data-cy": "lupa-category-back",
|
|
32892
32943
|
href: backUrlLink.value,
|
|
32893
32944
|
onClick: handleNavigationBack
|
|
32894
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
32945
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$v)) : createCommentVNode("", true)
|
|
32895
32946
|
]),
|
|
32896
32947
|
createBaseVNode("div", {
|
|
32897
32948
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -32901,11 +32952,11 @@ and ensure you are accounting for this risk.
|
|
|
32901
32952
|
href: parentUrlLink.value,
|
|
32902
32953
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
32903
32954
|
onClick: handleNavigationParent
|
|
32904
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
32955
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
|
|
32905
32956
|
], 2),
|
|
32906
|
-
createBaseVNode("div", _hoisted_5$
|
|
32957
|
+
createBaseVNode("div", _hoisted_5$f, [
|
|
32907
32958
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
32908
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32959
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
32909
32960
|
key: getCategoryKey(child),
|
|
32910
32961
|
item: child,
|
|
32911
32962
|
options: _ctx.options
|
|
@@ -32916,22 +32967,22 @@ and ensure you are accounting for this risk.
|
|
|
32916
32967
|
};
|
|
32917
32968
|
}
|
|
32918
32969
|
});
|
|
32919
|
-
const _hoisted_1$
|
|
32970
|
+
const _hoisted_1$T = {
|
|
32920
32971
|
class: "lupa-search-result-facet-term-values",
|
|
32921
32972
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
32922
32973
|
};
|
|
32923
|
-
const _hoisted_2$
|
|
32924
|
-
const _hoisted_3$
|
|
32925
|
-
const _hoisted_4$
|
|
32926
|
-
const _hoisted_5$
|
|
32927
|
-
const _hoisted_6$
|
|
32974
|
+
const _hoisted_2$E = ["placeholder"];
|
|
32975
|
+
const _hoisted_3$u = { class: "lupa-terms-list" };
|
|
32976
|
+
const _hoisted_4$l = ["onClick"];
|
|
32977
|
+
const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
|
|
32978
|
+
const _hoisted_6$6 = { class: "lupa-term-label" };
|
|
32928
32979
|
const _hoisted_7$4 = {
|
|
32929
32980
|
key: 0,
|
|
32930
32981
|
class: "lupa-term-count"
|
|
32931
32982
|
};
|
|
32932
32983
|
const _hoisted_8$2 = { key: 0 };
|
|
32933
32984
|
const _hoisted_9$2 = { key: 1 };
|
|
32934
|
-
const _sfc_main$
|
|
32985
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
32935
32986
|
__name: "TermFacet",
|
|
32936
32987
|
props: {
|
|
32937
32988
|
options: {},
|
|
@@ -33025,17 +33076,17 @@ and ensure you are accounting for this risk.
|
|
|
33025
33076
|
}
|
|
33026
33077
|
};
|
|
33027
33078
|
return (_ctx, _cache) => {
|
|
33028
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33079
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
33029
33080
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
33030
33081
|
key: 0,
|
|
33031
33082
|
class: "lupa-term-filter",
|
|
33032
33083
|
"data-cy": "lupa-term-filter",
|
|
33033
33084
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
33034
33085
|
placeholder: _ctx.options.labels.facetFilter
|
|
33035
|
-
}, null, 8, _hoisted_2$
|
|
33086
|
+
}, null, 8, _hoisted_2$E)), [
|
|
33036
33087
|
[vModelText, termFilter.value]
|
|
33037
33088
|
]) : createCommentVNode("", true),
|
|
33038
|
-
createBaseVNode("div", _hoisted_3$
|
|
33089
|
+
createBaseVNode("div", _hoisted_3$u, [
|
|
33039
33090
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
33040
33091
|
return openBlock(), createElementBlock("div", {
|
|
33041
33092
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -33043,7 +33094,7 @@ and ensure you are accounting for this risk.
|
|
|
33043
33094
|
key: item.title,
|
|
33044
33095
|
onClick: ($event) => handleFacetClick(item)
|
|
33045
33096
|
}, [
|
|
33046
|
-
createBaseVNode("div", _hoisted_5$
|
|
33097
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
33047
33098
|
createBaseVNode("span", {
|
|
33048
33099
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
33049
33100
|
}, null, 2)
|
|
@@ -33051,10 +33102,10 @@ and ensure you are accounting for this risk.
|
|
|
33051
33102
|
createBaseVNode("div", {
|
|
33052
33103
|
class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(item)]: true }])
|
|
33053
33104
|
}, [
|
|
33054
|
-
createBaseVNode("span", _hoisted_6$
|
|
33105
|
+
createBaseVNode("span", _hoisted_6$6, toDisplayString(getItemLabel(item)), 1),
|
|
33055
33106
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$4, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
33056
33107
|
], 2)
|
|
33057
|
-
], 10, _hoisted_4$
|
|
33108
|
+
], 10, _hoisted_4$l);
|
|
33058
33109
|
}), 128))
|
|
33059
33110
|
]),
|
|
33060
33111
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -33974,21 +34025,21 @@ and ensure you are accounting for this risk.
|
|
|
33974
34025
|
}
|
|
33975
34026
|
return out;
|
|
33976
34027
|
};
|
|
33977
|
-
const _hoisted_1$
|
|
33978
|
-
const _hoisted_2$
|
|
34028
|
+
const _hoisted_1$S = { class: "lupa-search-result-facet-stats-values" };
|
|
34029
|
+
const _hoisted_2$D = {
|
|
33979
34030
|
key: 0,
|
|
33980
34031
|
class: "lupa-stats-facet-summary"
|
|
33981
34032
|
};
|
|
33982
|
-
const _hoisted_3$
|
|
34033
|
+
const _hoisted_3$t = {
|
|
33983
34034
|
key: 1,
|
|
33984
34035
|
class: "lupa-stats-facet-summary-input"
|
|
33985
34036
|
};
|
|
33986
|
-
const _hoisted_4$
|
|
33987
|
-
const _hoisted_5$
|
|
34037
|
+
const _hoisted_4$k = { class: "lupa-stats-from" };
|
|
34038
|
+
const _hoisted_5$d = {
|
|
33988
34039
|
key: 0,
|
|
33989
34040
|
class: "lupa-stats-range-label"
|
|
33990
34041
|
};
|
|
33991
|
-
const _hoisted_6$
|
|
34042
|
+
const _hoisted_6$5 = ["min", "max", "pattern", "aria-label"];
|
|
33992
34043
|
const _hoisted_7$3 = { key: 1 };
|
|
33993
34044
|
const _hoisted_8$1 = { key: 2 };
|
|
33994
34045
|
const _hoisted_9$1 = { class: "lupa-stats-to" };
|
|
@@ -34003,7 +34054,7 @@ and ensure you are accounting for this risk.
|
|
|
34003
34054
|
key: 2,
|
|
34004
34055
|
class: "lupa-stats-slider-wrapper"
|
|
34005
34056
|
};
|
|
34006
|
-
const _sfc_main$
|
|
34057
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
34007
34058
|
__name: "StatsFacet",
|
|
34008
34059
|
props: {
|
|
34009
34060
|
options: {},
|
|
@@ -34222,10 +34273,10 @@ and ensure you are accounting for this risk.
|
|
|
34222
34273
|
}
|
|
34223
34274
|
);
|
|
34224
34275
|
return (_ctx, _cache) => {
|
|
34225
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34226
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34227
|
-
createBaseVNode("div", _hoisted_4$
|
|
34228
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
34276
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
34277
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
34278
|
+
createBaseVNode("div", _hoisted_4$k, [
|
|
34279
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
34229
34280
|
withDirectives(createBaseVNode("input", {
|
|
34230
34281
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
34231
34282
|
type: "text",
|
|
@@ -34234,7 +34285,7 @@ and ensure you are accounting for this risk.
|
|
|
34234
34285
|
max: facetMax.value,
|
|
34235
34286
|
pattern: sliderInputFormat.value,
|
|
34236
34287
|
"aria-label": ariaLabelFrom.value
|
|
34237
|
-
}, null, 8, _hoisted_6$
|
|
34288
|
+
}, null, 8, _hoisted_6$5), [
|
|
34238
34289
|
[
|
|
34239
34290
|
vModelText,
|
|
34240
34291
|
fromValue.value,
|
|
@@ -34287,17 +34338,17 @@ and ensure you are accounting for this risk.
|
|
|
34287
34338
|
};
|
|
34288
34339
|
}
|
|
34289
34340
|
});
|
|
34290
|
-
const _hoisted_1$
|
|
34291
|
-
const _hoisted_2$
|
|
34292
|
-
const _hoisted_3$
|
|
34341
|
+
const _hoisted_1$R = { class: "lupa-term-checkbox-wrapper" };
|
|
34342
|
+
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
34343
|
+
const _hoisted_3$s = {
|
|
34293
34344
|
key: 0,
|
|
34294
34345
|
class: "lupa-term-count"
|
|
34295
34346
|
};
|
|
34296
|
-
const _hoisted_4$
|
|
34347
|
+
const _hoisted_4$j = {
|
|
34297
34348
|
key: 0,
|
|
34298
34349
|
class: "lupa-facet-level"
|
|
34299
34350
|
};
|
|
34300
|
-
const _sfc_main
|
|
34351
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
34301
34352
|
__name: "HierarchyFacetLevel",
|
|
34302
34353
|
props: {
|
|
34303
34354
|
options: {},
|
|
@@ -34351,7 +34402,7 @@ and ensure you are accounting for this risk.
|
|
|
34351
34402
|
"data-cy": "lupa-facet-term",
|
|
34352
34403
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34353
34404
|
}, [
|
|
34354
|
-
createBaseVNode("div", _hoisted_1$
|
|
34405
|
+
createBaseVNode("div", _hoisted_1$R, [
|
|
34355
34406
|
createBaseVNode("span", {
|
|
34356
34407
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34357
34408
|
}, null, 2)
|
|
@@ -34359,11 +34410,11 @@ and ensure you are accounting for this risk.
|
|
|
34359
34410
|
createBaseVNode("div", {
|
|
34360
34411
|
class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
|
|
34361
34412
|
}, [
|
|
34362
|
-
createBaseVNode("span", _hoisted_2$
|
|
34363
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
34413
|
+
createBaseVNode("span", _hoisted_2$C, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
34414
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
34364
34415
|
], 2)
|
|
34365
34416
|
]),
|
|
34366
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
34417
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
|
|
34367
34418
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
34368
34419
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
34369
34420
|
key: itemChild.title,
|
|
@@ -34379,13 +34430,13 @@ and ensure you are accounting for this risk.
|
|
|
34379
34430
|
};
|
|
34380
34431
|
}
|
|
34381
34432
|
});
|
|
34382
|
-
const _hoisted_1$
|
|
34433
|
+
const _hoisted_1$Q = {
|
|
34383
34434
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34384
34435
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34385
34436
|
};
|
|
34386
|
-
const _hoisted_2$
|
|
34387
|
-
const _hoisted_3$
|
|
34388
|
-
const _sfc_main$
|
|
34437
|
+
const _hoisted_2$B = { key: 0 };
|
|
34438
|
+
const _hoisted_3$r = ["placeholder"];
|
|
34439
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
34389
34440
|
__name: "HierarchyFacet",
|
|
34390
34441
|
props: {
|
|
34391
34442
|
options: {},
|
|
@@ -34441,19 +34492,19 @@ and ensure you are accounting for this risk.
|
|
|
34441
34492
|
showAll.value = false;
|
|
34442
34493
|
};
|
|
34443
34494
|
return (_ctx, _cache) => {
|
|
34444
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34445
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34495
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
34496
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
34446
34497
|
withDirectives(createBaseVNode("input", {
|
|
34447
34498
|
class: "lupa-term-filter",
|
|
34448
34499
|
"data-cy": "lupa-term-filter",
|
|
34449
34500
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
34450
34501
|
placeholder: _ctx.options.labels.facetFilter
|
|
34451
|
-
}, null, 8, _hoisted_3$
|
|
34502
|
+
}, null, 8, _hoisted_3$r), [
|
|
34452
34503
|
[vModelText, termFilter.value]
|
|
34453
34504
|
])
|
|
34454
34505
|
])) : createCommentVNode("", true),
|
|
34455
34506
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34456
|
-
return openBlock(), createBlock(_sfc_main
|
|
34507
|
+
return openBlock(), createBlock(_sfc_main$$, {
|
|
34457
34508
|
key: item.title,
|
|
34458
34509
|
options: _ctx.options,
|
|
34459
34510
|
item,
|
|
@@ -34477,30 +34528,31 @@ and ensure you are accounting for this risk.
|
|
|
34477
34528
|
};
|
|
34478
34529
|
}
|
|
34479
34530
|
});
|
|
34480
|
-
const _hoisted_1$
|
|
34481
|
-
const _hoisted_2$
|
|
34531
|
+
const _hoisted_1$P = { class: "lupa-facet-label-text" };
|
|
34532
|
+
const _hoisted_2$A = {
|
|
34482
34533
|
key: 0,
|
|
34483
34534
|
class: "lupa-facet-content",
|
|
34484
34535
|
"data-cy": "lupa-facet-content"
|
|
34485
34536
|
};
|
|
34486
34537
|
const __default__$1 = {
|
|
34487
34538
|
components: {
|
|
34488
|
-
TermFacet: _sfc_main$
|
|
34489
|
-
StatsFacet: _sfc_main$
|
|
34490
|
-
HierarchyFacet: _sfc_main$
|
|
34539
|
+
TermFacet: _sfc_main$11,
|
|
34540
|
+
StatsFacet: _sfc_main$10,
|
|
34541
|
+
HierarchyFacet: _sfc_main$_
|
|
34491
34542
|
}
|
|
34492
34543
|
};
|
|
34493
|
-
const _sfc_main$
|
|
34544
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34494
34545
|
__name: "FacetDisplay",
|
|
34495
34546
|
props: {
|
|
34496
34547
|
options: {},
|
|
34497
34548
|
facet: {},
|
|
34498
34549
|
currentFilters: {},
|
|
34499
|
-
clearable: { type: Boolean }
|
|
34550
|
+
clearable: { type: Boolean },
|
|
34551
|
+
currentFacetStyle: {}
|
|
34500
34552
|
},
|
|
34501
|
-
emits: ["select", "clear"],
|
|
34553
|
+
emits: ["select", "clear", "expand"],
|
|
34502
34554
|
setup(__props, { emit: __emit }) {
|
|
34503
|
-
var _a25, _b25
|
|
34555
|
+
var _a25, _b25;
|
|
34504
34556
|
const props = __props;
|
|
34505
34557
|
const facet = computed(() => {
|
|
34506
34558
|
var _a26;
|
|
@@ -34514,17 +34566,17 @@ and ensure you are accounting for this risk.
|
|
|
34514
34566
|
const optionsStore = useOptionsStore();
|
|
34515
34567
|
const screenStore = useScreenStore();
|
|
34516
34568
|
const { currentFilterKeys } = storeToRefs(searchResultStore);
|
|
34517
|
-
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
34569
|
+
const { searchResultOptions, expandedFacets } = storeToRefs(optionsStore);
|
|
34518
34570
|
const { isMobileWidth } = storeToRefs(screenStore);
|
|
34519
34571
|
const emit2 = __emit;
|
|
34520
34572
|
const allExpanded = computed(() => {
|
|
34521
|
-
var _a26, _b26,
|
|
34573
|
+
var _a26, _b26, _c, _d, _e, _f;
|
|
34522
34574
|
if (isMobileWidth.value) {
|
|
34523
|
-
return (
|
|
34575
|
+
return (_c = (_b26 = (_a26 = props.options) == null ? void 0 : _a26.expandAll) == null ? void 0 : _b26.mobile) != null ? _c : false;
|
|
34524
34576
|
}
|
|
34525
34577
|
return (_f = (_e = (_d = props.options) == null ? void 0 : _d.expandAll) == null ? void 0 : _e.desktop) != null ? _f : false;
|
|
34526
34578
|
});
|
|
34527
|
-
const isOpen = ref((
|
|
34579
|
+
const isOpen = ref((_b25 = ((_a25 = expandedFacets.value) == null ? void 0 : _a25.includes(props.facet.key)) || allExpanded.value) != null ? _b25 : false);
|
|
34528
34580
|
const facetPanel = ref(null);
|
|
34529
34581
|
const facetType = computed(() => {
|
|
34530
34582
|
switch (facet.value.type) {
|
|
@@ -34566,9 +34618,16 @@ and ensure you are accounting for this risk.
|
|
|
34566
34618
|
var _a26;
|
|
34567
34619
|
return getTranslatedFacetKey(props.facet, (_a26 = searchResultOptions.value.filters) == null ? void 0 : _a26.translations);
|
|
34568
34620
|
});
|
|
34621
|
+
const expandSidebarOnFacetClick = computed(() => {
|
|
34622
|
+
var _a26, _b26, _c;
|
|
34623
|
+
if (!props.currentFacetStyle || props.currentFacetStyle === "sidebar") {
|
|
34624
|
+
return false;
|
|
34625
|
+
}
|
|
34626
|
+
return (_c = (_b26 = (_a26 = props.options.style) == null ? void 0 : _a26.drawer) == null ? void 0 : _b26.expandSidebarOnFacetClick) != null ? _c : false;
|
|
34627
|
+
});
|
|
34569
34628
|
onMounted(() => {
|
|
34570
|
-
var _a26;
|
|
34571
|
-
if (((_a26 = props.options.style) == null ? void 0 : _a26.type) === "top-dropdown") {
|
|
34629
|
+
var _a26, _b26, _c;
|
|
34630
|
+
if (((_a26 = props.options.style) == null ? void 0 : _a26.type) === "top-dropdown" || ((_c = (_b26 = props.options) == null ? void 0 : _b26.style) == null ? void 0 : _c.type) === "drawer") {
|
|
34572
34631
|
window.addEventListener("click", handleMouseClick);
|
|
34573
34632
|
}
|
|
34574
34633
|
});
|
|
@@ -34577,7 +34636,7 @@ and ensure you are accounting for this risk.
|
|
|
34577
34636
|
});
|
|
34578
34637
|
const handleMouseClick = (e2) => {
|
|
34579
34638
|
const el = facetPanel.value;
|
|
34580
|
-
if (!el) {
|
|
34639
|
+
if (!el || !props.currentFacetStyle || props.currentFacetStyle === "sidebar") {
|
|
34581
34640
|
return;
|
|
34582
34641
|
}
|
|
34583
34642
|
const isOutsideElement = el && !el.contains(e2.target);
|
|
@@ -34589,6 +34648,11 @@ and ensure you are accounting for this risk.
|
|
|
34589
34648
|
handleFacetQueryFilter();
|
|
34590
34649
|
});
|
|
34591
34650
|
const toggleFacet = () => {
|
|
34651
|
+
if (expandSidebarOnFacetClick.value) {
|
|
34652
|
+
expandedFacets.value = [facet.value.key];
|
|
34653
|
+
emit2("expand");
|
|
34654
|
+
return;
|
|
34655
|
+
}
|
|
34592
34656
|
isOpen.value = !isOpen.value;
|
|
34593
34657
|
handleFacetQueryFilter();
|
|
34594
34658
|
};
|
|
@@ -34621,12 +34685,12 @@ and ensure you are accounting for this risk.
|
|
|
34621
34685
|
"data-cy": "lupa-search-result-facet-label",
|
|
34622
34686
|
onClick: toggleFacet
|
|
34623
34687
|
}, [
|
|
34624
|
-
createBaseVNode("div", _hoisted_1$
|
|
34688
|
+
createBaseVNode("div", _hoisted_1$P, toDisplayString(facetLabel.value), 1),
|
|
34625
34689
|
createBaseVNode("div", {
|
|
34626
34690
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34627
34691
|
}, null, 2)
|
|
34628
34692
|
], 2),
|
|
34629
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34693
|
+
isOpen.value && !expandSidebarOnFacetClick.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
34630
34694
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
34631
34695
|
facet: facet.value,
|
|
34632
34696
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -34644,12 +34708,154 @@ and ensure you are accounting for this risk.
|
|
|
34644
34708
|
};
|
|
34645
34709
|
}
|
|
34646
34710
|
}));
|
|
34647
|
-
const
|
|
34648
|
-
|
|
34711
|
+
const useSidebarToggle = () => {
|
|
34712
|
+
const searchResultStore = useSearchResultStore();
|
|
34713
|
+
const optionsStore = useOptionsStore();
|
|
34714
|
+
const { currentFilterCount, isFilterSidebarVisible, isSortingSidebarVisible } = storeToRefs(searchResultStore);
|
|
34715
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
34716
|
+
const labels = computed(() => {
|
|
34717
|
+
return searchResultOptions.value.labels;
|
|
34718
|
+
});
|
|
34719
|
+
const showMobileFilterCount = computed(
|
|
34720
|
+
() => {
|
|
34721
|
+
var _a25, _b25, _c, _d;
|
|
34722
|
+
return (_d = (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.currentFilters) == null ? void 0 : _b25.mobileSidebar) == null ? void 0 : _c.showFilterCount) != null ? _d : false;
|
|
34723
|
+
}
|
|
34724
|
+
);
|
|
34725
|
+
const disableMobileBodyScrollLock = computed(
|
|
34726
|
+
() => {
|
|
34727
|
+
var _a25, _b25, _c;
|
|
34728
|
+
return (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.disableMobileBodyScrollLock) != null ? _c : false;
|
|
34729
|
+
}
|
|
34730
|
+
);
|
|
34731
|
+
const isSidebarVisible = computed(
|
|
34732
|
+
() => isFilterSidebarVisible.value || isSortingSidebarVisible.value
|
|
34733
|
+
);
|
|
34734
|
+
const sortLabel = computed(() => {
|
|
34735
|
+
var _a25, _b25;
|
|
34736
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.sortBy;
|
|
34737
|
+
});
|
|
34738
|
+
const defaultLabel = computed(() => {
|
|
34739
|
+
var _a25;
|
|
34740
|
+
return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButton;
|
|
34741
|
+
});
|
|
34742
|
+
const activeLabel = computed(() => {
|
|
34743
|
+
var _a25;
|
|
34744
|
+
return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButtonActive;
|
|
34745
|
+
});
|
|
34746
|
+
const openLabel = computed(() => {
|
|
34747
|
+
var _a25;
|
|
34748
|
+
return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButtonOpen;
|
|
34749
|
+
});
|
|
34750
|
+
const label = computed(() => {
|
|
34751
|
+
if (isSidebarVisible.value && openLabel.value) {
|
|
34752
|
+
return openLabel.value;
|
|
34753
|
+
}
|
|
34754
|
+
if (hasActiveFilters.value && activeLabel.value) {
|
|
34755
|
+
return activeLabel.value;
|
|
34756
|
+
}
|
|
34757
|
+
return defaultLabel.value;
|
|
34758
|
+
});
|
|
34759
|
+
const sortToggleVisible = computed(() => {
|
|
34760
|
+
var _a25, _b25;
|
|
34761
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.sortStyle) == null ? void 0 : _b25.type) === "drawer";
|
|
34762
|
+
});
|
|
34763
|
+
const handleFilterSidebarToggle = () => {
|
|
34764
|
+
searchResultStore.setSidebarState({
|
|
34765
|
+
visible: !isSidebarVisible.value,
|
|
34766
|
+
disableBodyScrolling: !disableMobileBodyScrollLock.value,
|
|
34767
|
+
sidebar: "filter"
|
|
34768
|
+
});
|
|
34769
|
+
};
|
|
34770
|
+
const handleSortSidebarToggle = () => {
|
|
34771
|
+
searchResultStore.setSidebarState({
|
|
34772
|
+
visible: !isSortingSidebarVisible.value,
|
|
34773
|
+
disableBodyScrolling: !disableMobileBodyScrollLock.value,
|
|
34774
|
+
sidebar: "sorting"
|
|
34775
|
+
});
|
|
34776
|
+
};
|
|
34777
|
+
const hasActiveFilters = computed(() => currentFilterCount.value > 0);
|
|
34778
|
+
const checkCloseOnEscape = (e2) => {
|
|
34779
|
+
var _a25;
|
|
34780
|
+
if (!["Escape", "Esc"].includes((_a25 = e2.key) != null ? _a25 : "")) {
|
|
34781
|
+
return;
|
|
34782
|
+
}
|
|
34783
|
+
if (isSidebarVisible.value) {
|
|
34784
|
+
searchResultStore.setSidebarState({ visible: false, sidebar: "sorting" });
|
|
34785
|
+
searchResultStore.setSidebarState({ visible: false, sidebar: "filter" });
|
|
34786
|
+
}
|
|
34787
|
+
};
|
|
34788
|
+
onMounted(() => {
|
|
34789
|
+
window.addEventListener("keydown", checkCloseOnEscape);
|
|
34790
|
+
});
|
|
34791
|
+
onBeforeUnmount(() => {
|
|
34792
|
+
window.removeEventListener("keydown", checkCloseOnEscape);
|
|
34793
|
+
});
|
|
34794
|
+
return {
|
|
34795
|
+
isSidebarVisible,
|
|
34796
|
+
label,
|
|
34797
|
+
currentFilterCount,
|
|
34798
|
+
hasActiveFilters,
|
|
34799
|
+
showMobileFilterCount,
|
|
34800
|
+
sortLabel,
|
|
34801
|
+
sortToggleVisible,
|
|
34802
|
+
handleFilterSidebarToggle,
|
|
34803
|
+
handleSortSidebarToggle
|
|
34804
|
+
};
|
|
34805
|
+
};
|
|
34806
|
+
const _hoisted_1$O = {
|
|
34807
|
+
key: 0,
|
|
34808
|
+
class: "lupa-desktop-toggle-filter-count"
|
|
34809
|
+
};
|
|
34810
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
34811
|
+
__name: "DesktopFacetToggle",
|
|
34812
|
+
setup(__props) {
|
|
34813
|
+
const {
|
|
34814
|
+
isSidebarVisible,
|
|
34815
|
+
label,
|
|
34816
|
+
currentFilterCount,
|
|
34817
|
+
hasActiveFilters,
|
|
34818
|
+
showMobileFilterCount,
|
|
34819
|
+
handleFilterSidebarToggle
|
|
34820
|
+
} = useSidebarToggle();
|
|
34821
|
+
return (_ctx, _cache) => {
|
|
34822
|
+
return openBlock(), createElementBlock("div", {
|
|
34823
|
+
class: normalizeClass(["lupa-desktop-toggle", {
|
|
34824
|
+
"lupa-desktop-toggle-filters-empty": unref(currentFilterCount) < 1,
|
|
34825
|
+
"lupa-desktop-toggle-has-filters": unref(hasActiveFilters),
|
|
34826
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
34827
|
+
}]),
|
|
34828
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
34829
|
+
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
34830
|
+
}, [
|
|
34831
|
+
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
34832
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
34833
|
+
], 2);
|
|
34834
|
+
};
|
|
34835
|
+
}
|
|
34836
|
+
});
|
|
34837
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
34838
|
+
__name: "DesktopSortToggle",
|
|
34839
|
+
setup(__props) {
|
|
34840
|
+
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
34841
|
+
return (_ctx, _cache) => {
|
|
34842
|
+
return unref(sortToggleVisible) ? (openBlock(), createElementBlock("div", {
|
|
34843
|
+
key: 0,
|
|
34844
|
+
class: normalizeClass(["lupa-desktop-toggle lupa-desktop-sort-toggle", {
|
|
34845
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
34846
|
+
}]),
|
|
34847
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
34848
|
+
(...args) => unref(handleSortSidebarToggle) && unref(handleSortSidebarToggle)(...args))
|
|
34849
|
+
}, toDisplayString(unref(sortLabel)), 3)) : createCommentVNode("", true);
|
|
34850
|
+
};
|
|
34851
|
+
}
|
|
34852
|
+
});
|
|
34853
|
+
const _hoisted_1$N = { class: "lupa-search-result-facet-section" };
|
|
34854
|
+
const _hoisted_2$z = {
|
|
34649
34855
|
key: 0,
|
|
34650
34856
|
class: "lupa-facets-title"
|
|
34651
34857
|
};
|
|
34652
|
-
const _sfc_main$
|
|
34858
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
34653
34859
|
__name: "FacetList",
|
|
34654
34860
|
props: {
|
|
34655
34861
|
options: {},
|
|
@@ -34661,6 +34867,7 @@ and ensure you are accounting for this risk.
|
|
|
34661
34867
|
emits: ["select", "clear"],
|
|
34662
34868
|
setup(__props, { emit: __emit }) {
|
|
34663
34869
|
const props = __props;
|
|
34870
|
+
const { handleFilterSidebarToggle } = useSidebarToggle();
|
|
34664
34871
|
const emit2 = __emit;
|
|
34665
34872
|
const currentFiltersValue = computed(() => {
|
|
34666
34873
|
var _a25;
|
|
@@ -34676,6 +34883,12 @@ and ensure you are accounting for this risk.
|
|
|
34676
34883
|
return !((_a25 = props.options.exclude) == null ? void 0 : _a25.includes(f2.key));
|
|
34677
34884
|
}) : facetsValue.value;
|
|
34678
34885
|
});
|
|
34886
|
+
const displayFacetStyle = computed(() => {
|
|
34887
|
+
if (!props.facetStyle || props.facetStyle === "sidebar") {
|
|
34888
|
+
return "sidebar";
|
|
34889
|
+
}
|
|
34890
|
+
return "top-dropdown";
|
|
34891
|
+
});
|
|
34679
34892
|
const handleFacetSelect = (facetAction) => {
|
|
34680
34893
|
emit2("select", facetAction);
|
|
34681
34894
|
};
|
|
@@ -34684,29 +34897,33 @@ and ensure you are accounting for this risk.
|
|
|
34684
34897
|
};
|
|
34685
34898
|
return (_ctx, _cache) => {
|
|
34686
34899
|
var _a25;
|
|
34687
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34688
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34900
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
34901
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
34689
34902
|
createBaseVNode("div", {
|
|
34690
|
-
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 =
|
|
34903
|
+
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
34691
34904
|
}, [
|
|
34692
34905
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
34693
34906
|
var _a26;
|
|
34694
|
-
return openBlock(), createBlock(_sfc_main$
|
|
34907
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
34695
34908
|
key: facet.key,
|
|
34696
34909
|
facet,
|
|
34697
34910
|
currentFilters: currentFiltersValue.value,
|
|
34698
34911
|
options: _ctx.options,
|
|
34699
34912
|
clearable: (_a26 = _ctx.clearable) != null ? _a26 : false,
|
|
34913
|
+
"current-facet-style": _ctx.facetStyle,
|
|
34700
34914
|
onSelect: handleFacetSelect,
|
|
34701
|
-
onClear: clear
|
|
34702
|
-
|
|
34703
|
-
|
|
34915
|
+
onClear: clear,
|
|
34916
|
+
onExpand: unref(handleFilterSidebarToggle)
|
|
34917
|
+
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
34918
|
+
}), 128)),
|
|
34919
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Y, { key: 0 })) : createCommentVNode("", true),
|
|
34920
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$X, { key: 1 })) : createCommentVNode("", true)
|
|
34704
34921
|
], 2)
|
|
34705
34922
|
]);
|
|
34706
34923
|
};
|
|
34707
34924
|
}
|
|
34708
34925
|
});
|
|
34709
|
-
const _sfc_main$
|
|
34926
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
34710
34927
|
__name: "FacetsButton",
|
|
34711
34928
|
props: {
|
|
34712
34929
|
options: {}
|
|
@@ -34731,8 +34948,33 @@ and ensure you are accounting for this risk.
|
|
|
34731
34948
|
};
|
|
34732
34949
|
}
|
|
34733
34950
|
});
|
|
34734
|
-
const
|
|
34735
|
-
|
|
34951
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
34952
|
+
__name: "FacetsClearButton",
|
|
34953
|
+
props: {
|
|
34954
|
+
options: {}
|
|
34955
|
+
},
|
|
34956
|
+
emits: ["clear"],
|
|
34957
|
+
setup(__props, { emit: __emit }) {
|
|
34958
|
+
const props = __props;
|
|
34959
|
+
const emit2 = __emit;
|
|
34960
|
+
const label = computed(() => {
|
|
34961
|
+
var _a25, _b25;
|
|
34962
|
+
return (_b25 = (_a25 = props.options.labels) == null ? void 0 : _a25.facetClearAllButton) != null ? _b25 : "";
|
|
34963
|
+
});
|
|
34964
|
+
const handleClick = () => {
|
|
34965
|
+
emit2("clear");
|
|
34966
|
+
};
|
|
34967
|
+
return (_ctx, _cache) => {
|
|
34968
|
+
return label.value ? (openBlock(), createElementBlock("button", {
|
|
34969
|
+
key: 0,
|
|
34970
|
+
class: "lupa-facets-button-clear",
|
|
34971
|
+
onClick: withModifiers(handleClick, ["stop"])
|
|
34972
|
+
}, toDisplayString(label.value), 1)) : createCommentVNode("", true);
|
|
34973
|
+
};
|
|
34974
|
+
}
|
|
34975
|
+
});
|
|
34976
|
+
const _hoisted_1$M = { class: "lupa-facets-filter-button-wrapper" };
|
|
34977
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
34736
34978
|
__name: "Facets",
|
|
34737
34979
|
props: {
|
|
34738
34980
|
options: {},
|
|
@@ -34745,6 +34987,7 @@ and ensure you are accounting for this risk.
|
|
|
34745
34987
|
const paramStore = useParamsStore();
|
|
34746
34988
|
const searchResultStore = useSearchResultStore();
|
|
34747
34989
|
const optionsStore = useOptionsStore();
|
|
34990
|
+
const { handleFilterSidebarToggle } = useSidebarToggle();
|
|
34748
34991
|
const { filters } = storeToRefs(paramStore);
|
|
34749
34992
|
const { facets: facets2, loadingFacets } = storeToRefs(searchResultStore);
|
|
34750
34993
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
@@ -34772,7 +35015,7 @@ and ensure you are accounting for this risk.
|
|
|
34772
35015
|
};
|
|
34773
35016
|
});
|
|
34774
35017
|
const showFilterButton = computed(() => {
|
|
34775
|
-
return props.options.filterBehavior === "withFilterButton";
|
|
35018
|
+
return props.options.filterBehavior === "withFilterButton" && props.facetStyle === "sidebar";
|
|
34776
35019
|
});
|
|
34777
35020
|
const handleFacetSelect = (facetAction) => {
|
|
34778
35021
|
switch (facetAction.type) {
|
|
@@ -34813,6 +35056,10 @@ and ensure you are accounting for this risk.
|
|
|
34813
35056
|
const param = getFacetKey(facet.key, facet.type);
|
|
34814
35057
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
34815
35058
|
};
|
|
35059
|
+
const clearAll = () => {
|
|
35060
|
+
paramStore.removeAllFilters();
|
|
35061
|
+
handleFilterSidebarToggle();
|
|
35062
|
+
};
|
|
34816
35063
|
const filter = () => {
|
|
34817
35064
|
emit2("filter");
|
|
34818
35065
|
};
|
|
@@ -34820,7 +35067,7 @@ and ensure you are accounting for this risk.
|
|
|
34820
35067
|
return openBlock(), createElementBlock("div", {
|
|
34821
35068
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
34822
35069
|
}, [
|
|
34823
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
35070
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
34824
35071
|
key: 0,
|
|
34825
35072
|
options: _ctx.options,
|
|
34826
35073
|
facets: regularFacets.value,
|
|
@@ -34830,10 +35077,15 @@ and ensure you are accounting for this risk.
|
|
|
34830
35077
|
onSelect: handleFacetSelect,
|
|
34831
35078
|
onClear: clear
|
|
34832
35079
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
34833
|
-
createBaseVNode("div", _hoisted_1$
|
|
34834
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35080
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
35081
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
34835
35082
|
key: 0,
|
|
34836
35083
|
options: _ctx.options,
|
|
35084
|
+
onClear: clearAll
|
|
35085
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35086
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
35087
|
+
key: 1,
|
|
35088
|
+
options: _ctx.options,
|
|
34837
35089
|
onFilter: filter
|
|
34838
35090
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
34839
35091
|
])
|
|
@@ -34841,16 +35093,17 @@ and ensure you are accounting for this risk.
|
|
|
34841
35093
|
};
|
|
34842
35094
|
}
|
|
34843
35095
|
});
|
|
34844
|
-
const _hoisted_1$
|
|
35096
|
+
const _hoisted_1$L = {
|
|
34845
35097
|
key: 0,
|
|
34846
35098
|
id: "lupa-search-result-filters",
|
|
34847
35099
|
class: "lupa-search-result-filters"
|
|
34848
35100
|
};
|
|
34849
|
-
const _sfc_main$
|
|
35101
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
34850
35102
|
__name: "SearchResultsFilters",
|
|
34851
35103
|
props: {
|
|
34852
35104
|
options: {},
|
|
34853
|
-
expandable: { type: Boolean }
|
|
35105
|
+
expandable: { type: Boolean },
|
|
35106
|
+
style: {}
|
|
34854
35107
|
},
|
|
34855
35108
|
emits: ["filter"],
|
|
34856
35109
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -34884,40 +35137,37 @@ and ensure you are accounting for this risk.
|
|
|
34884
35137
|
__expose({ fetch: fetch2 });
|
|
34885
35138
|
return (_ctx, _cache) => {
|
|
34886
35139
|
var _a25;
|
|
34887
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
34888
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
35140
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
35141
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$14, {
|
|
34889
35142
|
key: 0,
|
|
34890
35143
|
options: _ctx.options.currentFilters,
|
|
34891
35144
|
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
34892
35145
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
34893
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
35146
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$12, {
|
|
34894
35147
|
key: 1,
|
|
34895
35148
|
options: _ctx.options.categories,
|
|
34896
35149
|
ref_key: "categoryFilters",
|
|
34897
35150
|
ref: categoryFilters
|
|
34898
35151
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
34899
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
35152
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
|
|
34900
35153
|
key: 2,
|
|
34901
35154
|
options: _ctx.options.facets,
|
|
35155
|
+
"facet-style": _ctx.style,
|
|
34902
35156
|
onFilter: filter
|
|
34903
|
-
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
35157
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
34904
35158
|
])) : createCommentVNode("", true);
|
|
34905
35159
|
};
|
|
34906
35160
|
}
|
|
34907
35161
|
});
|
|
34908
|
-
const _hoisted_1$
|
|
35162
|
+
const _hoisted_1$K = { class: "lupa-mobile-sidebar-content" };
|
|
35163
|
+
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
35164
|
+
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
35165
|
+
const _hoisted_4$i = {
|
|
34909
35166
|
key: 0,
|
|
34910
|
-
class: "lupa-
|
|
35167
|
+
class: "lupa-sidebar-filter-count"
|
|
34911
35168
|
};
|
|
34912
|
-
const
|
|
34913
|
-
const
|
|
34914
|
-
const _hoisted_4$g = { class: "lupa-sidebar-title" };
|
|
34915
|
-
const _hoisted_5$b = {
|
|
34916
|
-
key: 0,
|
|
34917
|
-
class: "lupa-sidebar-filter-count"
|
|
34918
|
-
};
|
|
34919
|
-
const _hoisted_6$5 = { class: "lupa-sidebar-filter-options" };
|
|
34920
|
-
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35169
|
+
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
35170
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
34921
35171
|
__name: "MobileFilterSidebar",
|
|
34922
35172
|
props: {
|
|
34923
35173
|
options: {}
|
|
@@ -34926,7 +35176,7 @@ and ensure you are accounting for this risk.
|
|
|
34926
35176
|
setup(__props, { emit: __emit }) {
|
|
34927
35177
|
const props = __props;
|
|
34928
35178
|
const searchResultStore = useSearchResultStore();
|
|
34929
|
-
const { currentFilterCount } = storeToRefs(searchResultStore);
|
|
35179
|
+
const { currentFilterCount, isFilterSidebarVisible, isSidebarClosing } = storeToRefs(searchResultStore);
|
|
34930
35180
|
const emit2 = __emit;
|
|
34931
35181
|
const sidebarTitle = computed(() => {
|
|
34932
35182
|
var _a25, _b25, _c;
|
|
@@ -34936,7 +35186,6 @@ and ensure you are accounting for this risk.
|
|
|
34936
35186
|
var _a25, _b25;
|
|
34937
35187
|
return Boolean((_b25 = (_a25 = props.options.currentFilters) == null ? void 0 : _a25.mobileSidebar) == null ? void 0 : _b25.showFilterCount) && currentFilterCount.value > 0;
|
|
34938
35188
|
});
|
|
34939
|
-
const isMobileSidebarVisible = computed(() => searchResultStore.isMobileSidebarVisible);
|
|
34940
35189
|
const isActiveFiltersExpanded = computed(() => {
|
|
34941
35190
|
var _a25, _b25;
|
|
34942
35191
|
return !((_b25 = (_a25 = props.options.currentFilters) == null ? void 0 : _a25.mobileSidebar) == null ? void 0 : _b25.activeFiltersExpanded);
|
|
@@ -34949,42 +35198,46 @@ and ensure you are accounting for this risk.
|
|
|
34949
35198
|
handleMobileToggle();
|
|
34950
35199
|
};
|
|
34951
35200
|
return (_ctx, _cache) => {
|
|
34952
|
-
return
|
|
35201
|
+
return unref(isFilterSidebarVisible) ? (openBlock(), createElementBlock("div", {
|
|
35202
|
+
key: 0,
|
|
35203
|
+
class: normalizeClass(["lupa-mobile-filter-sidebar", { "lupa-mobile-filter-sidebar-is-closing": unref(isSidebarClosing) }])
|
|
35204
|
+
}, [
|
|
34953
35205
|
createBaseVNode("div", {
|
|
34954
35206
|
class: "lupa-sidebar-close",
|
|
34955
35207
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
34956
35208
|
}),
|
|
34957
|
-
createBaseVNode("div",
|
|
34958
|
-
createBaseVNode("div",
|
|
34959
|
-
createBaseVNode("div",
|
|
35209
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
35210
|
+
createBaseVNode("div", _hoisted_2$y, [
|
|
35211
|
+
createBaseVNode("div", _hoisted_3$q, [
|
|
34960
35212
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
34961
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span",
|
|
35213
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_4$i, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
34962
35214
|
]),
|
|
34963
35215
|
createBaseVNode("div", {
|
|
34964
35216
|
class: "lupa-filter-toggle-mobile",
|
|
34965
35217
|
onClick: handleMobileToggle
|
|
34966
35218
|
})
|
|
34967
35219
|
]),
|
|
34968
|
-
createBaseVNode("div",
|
|
34969
|
-
createVNode(_sfc_main$
|
|
35220
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
35221
|
+
createVNode(_sfc_main$S, {
|
|
34970
35222
|
options: _ctx.options,
|
|
34971
35223
|
expandable: isActiveFiltersExpanded.value,
|
|
35224
|
+
style: "sidebar",
|
|
34972
35225
|
onFilter: filter
|
|
34973
35226
|
}, null, 8, ["options", "expandable"])
|
|
34974
35227
|
])
|
|
34975
35228
|
])
|
|
34976
|
-
])) : createCommentVNode("", true);
|
|
35229
|
+
], 2)) : createCommentVNode("", true);
|
|
34977
35230
|
};
|
|
34978
35231
|
}
|
|
34979
35232
|
});
|
|
34980
|
-
const _hoisted_1$
|
|
34981
|
-
const _hoisted_2$
|
|
34982
|
-
const _hoisted_3$
|
|
35233
|
+
const _hoisted_1$J = { id: "lupa-search-results-breadcrumbs" };
|
|
35234
|
+
const _hoisted_2$x = ["href", "onClick"];
|
|
35235
|
+
const _hoisted_3$p = {
|
|
34983
35236
|
key: 1,
|
|
34984
35237
|
class: "lupa-search-results-breadcrumb-text"
|
|
34985
35238
|
};
|
|
34986
|
-
const _hoisted_4$
|
|
34987
|
-
const _sfc_main$
|
|
35239
|
+
const _hoisted_4$h = { key: 2 };
|
|
35240
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
34988
35241
|
__name: "SearchResultsBreadcrumbs",
|
|
34989
35242
|
props: {
|
|
34990
35243
|
breadcrumbs: {}
|
|
@@ -35009,7 +35262,7 @@ and ensure you are accounting for this risk.
|
|
|
35009
35262
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
35010
35263
|
};
|
|
35011
35264
|
return (_ctx, _cache) => {
|
|
35012
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35265
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
35013
35266
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
35014
35267
|
var _a25;
|
|
35015
35268
|
return openBlock(), createElementBlock("span", {
|
|
@@ -35024,20 +35277,20 @@ and ensure you are accounting for this risk.
|
|
|
35024
35277
|
var _a26;
|
|
35025
35278
|
return handleNavigation(e2, (_a26 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a26 : "");
|
|
35026
35279
|
}
|
|
35027
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
35028
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
35280
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$x)) : (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
35281
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
35029
35282
|
]);
|
|
35030
35283
|
}), 128))
|
|
35031
35284
|
]);
|
|
35032
35285
|
};
|
|
35033
35286
|
}
|
|
35034
35287
|
});
|
|
35035
|
-
const _hoisted_1$
|
|
35288
|
+
const _hoisted_1$I = {
|
|
35036
35289
|
key: 0,
|
|
35037
35290
|
id: "lupa-search-result-filters",
|
|
35038
35291
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
35039
35292
|
};
|
|
35040
|
-
const _sfc_main$
|
|
35293
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
35041
35294
|
__name: "FiltersTopDropdown",
|
|
35042
35295
|
props: {
|
|
35043
35296
|
options: {}
|
|
@@ -35055,8 +35308,8 @@ and ensure you are accounting for this risk.
|
|
|
35055
35308
|
});
|
|
35056
35309
|
return (_ctx, _cache) => {
|
|
35057
35310
|
var _a25;
|
|
35058
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35059
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
35311
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
35312
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
|
|
35060
35313
|
key: 0,
|
|
35061
35314
|
options: _ctx.options.facets,
|
|
35062
35315
|
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
@@ -35067,8 +35320,8 @@ and ensure you are accounting for this risk.
|
|
|
35067
35320
|
};
|
|
35068
35321
|
}
|
|
35069
35322
|
});
|
|
35070
|
-
const _hoisted_1$
|
|
35071
|
-
const _sfc_main$
|
|
35323
|
+
const _hoisted_1$H = { id: "lupa-search-results-layout-selection" };
|
|
35324
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35072
35325
|
__name: "SearchResultsLayoutSelection",
|
|
35073
35326
|
setup(__props) {
|
|
35074
35327
|
const searchResultStore = useSearchResultStore();
|
|
@@ -35079,7 +35332,7 @@ and ensure you are accounting for this risk.
|
|
|
35079
35332
|
searchResultStore.setLayout(layout2);
|
|
35080
35333
|
};
|
|
35081
35334
|
return (_ctx, _cache) => {
|
|
35082
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35335
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
35083
35336
|
createBaseVNode("div", {
|
|
35084
35337
|
class: normalizeClass([
|
|
35085
35338
|
"lupa-layout-selection-grid",
|
|
@@ -35101,64 +35354,38 @@ and ensure you are accounting for this risk.
|
|
|
35101
35354
|
};
|
|
35102
35355
|
}
|
|
35103
35356
|
});
|
|
35104
|
-
const _hoisted_1$
|
|
35357
|
+
const _hoisted_1$G = {
|
|
35105
35358
|
key: 0,
|
|
35106
35359
|
class: "lupa-mobile-toggle-filter-count"
|
|
35107
35360
|
};
|
|
35108
|
-
const _sfc_main$
|
|
35361
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
35109
35362
|
__name: "SearchResultsMobileToggle",
|
|
35110
|
-
props: {
|
|
35111
|
-
labels: {},
|
|
35112
|
-
showFilterCount: { type: Boolean }
|
|
35113
|
-
},
|
|
35114
35363
|
setup(__props) {
|
|
35115
|
-
const
|
|
35116
|
-
|
|
35117
|
-
|
|
35118
|
-
|
|
35119
|
-
|
|
35120
|
-
|
|
35121
|
-
|
|
35122
|
-
|
|
35123
|
-
return (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.disableMobileBodyScrollLock) != null ? _c : false;
|
|
35124
|
-
}
|
|
35125
|
-
);
|
|
35126
|
-
const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
|
|
35127
|
-
const defaultLabel = computed(() => props.labels.mobileFilterButton);
|
|
35128
|
-
const activeLabel = computed(() => props.labels.mobileFilterButtonActive);
|
|
35129
|
-
const openLabel = computed(() => props.labels.mobileFilterButtonOpen);
|
|
35130
|
-
const label = computed(() => {
|
|
35131
|
-
if (isSidebarVisible.value && openLabel.value) {
|
|
35132
|
-
return openLabel.value;
|
|
35133
|
-
}
|
|
35134
|
-
if (hasActiveFilters.value && activeLabel.value) {
|
|
35135
|
-
return activeLabel.value;
|
|
35136
|
-
}
|
|
35137
|
-
return defaultLabel.value;
|
|
35138
|
-
});
|
|
35139
|
-
const handleMobileToggle = () => {
|
|
35140
|
-
searchResultStore.setSidebarState({
|
|
35141
|
-
visible: !isSidebarVisible.value,
|
|
35142
|
-
disableBodyScrolling: !disableMobileBodyScrollLock.value
|
|
35143
|
-
});
|
|
35144
|
-
};
|
|
35145
|
-
const hasActiveFilters = computed(() => currentFilterCount.value > 0);
|
|
35364
|
+
const {
|
|
35365
|
+
isSidebarVisible,
|
|
35366
|
+
label,
|
|
35367
|
+
currentFilterCount,
|
|
35368
|
+
hasActiveFilters,
|
|
35369
|
+
showMobileFilterCount,
|
|
35370
|
+
handleFilterSidebarToggle
|
|
35371
|
+
} = useSidebarToggle();
|
|
35146
35372
|
return (_ctx, _cache) => {
|
|
35147
35373
|
return openBlock(), createElementBlock("div", {
|
|
35148
35374
|
class: normalizeClass(["lupa-mobile-toggle", {
|
|
35149
35375
|
"lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
|
|
35150
|
-
"lupa-mobile-toggle-has-filters": hasActiveFilters
|
|
35151
|
-
"lupa-sidebar-open": isSidebarVisible
|
|
35376
|
+
"lupa-mobile-toggle-has-filters": unref(hasActiveFilters),
|
|
35377
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
35152
35378
|
}]),
|
|
35153
|
-
onClick:
|
|
35379
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
35380
|
+
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35154
35381
|
}, [
|
|
35155
|
-
createTextVNode(toDisplayString(label
|
|
35156
|
-
|
|
35382
|
+
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35383
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35157
35384
|
], 2);
|
|
35158
35385
|
};
|
|
35159
35386
|
}
|
|
35160
35387
|
});
|
|
35161
|
-
const _sfc_main$
|
|
35388
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
35162
35389
|
__name: "SearchResultsMobileFilterClose",
|
|
35163
35390
|
props: {
|
|
35164
35391
|
label: {}
|
|
@@ -35178,20 +35405,20 @@ and ensure you are accounting for this risk.
|
|
|
35178
35405
|
};
|
|
35179
35406
|
}
|
|
35180
35407
|
});
|
|
35181
|
-
const _hoisted_1$
|
|
35408
|
+
const _hoisted_1$F = {
|
|
35182
35409
|
key: 0,
|
|
35183
35410
|
id: "lupa-search-results-page-select",
|
|
35184
35411
|
"data-cy": "lupa-search-results-page-select"
|
|
35185
35412
|
};
|
|
35186
|
-
const _hoisted_2$
|
|
35413
|
+
const _hoisted_2$w = {
|
|
35187
35414
|
key: 0,
|
|
35188
35415
|
class: "lupa-page-number-separator"
|
|
35189
35416
|
};
|
|
35190
|
-
const _hoisted_3$
|
|
35417
|
+
const _hoisted_3$o = {
|
|
35191
35418
|
key: 0,
|
|
35192
35419
|
class: "lupa-page-number-separator"
|
|
35193
35420
|
};
|
|
35194
|
-
const _sfc_main$
|
|
35421
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
35195
35422
|
__name: "SearchResultsPageSelect",
|
|
35196
35423
|
props: {
|
|
35197
35424
|
lastPageLabel: {},
|
|
@@ -35286,7 +35513,7 @@ and ensure you are accounting for this risk.
|
|
|
35286
35513
|
};
|
|
35287
35514
|
return (_ctx, _cache) => {
|
|
35288
35515
|
var _a25;
|
|
35289
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35516
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
35290
35517
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35291
35518
|
key: 0,
|
|
35292
35519
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35310,7 +35537,7 @@ and ensure you are accounting for this risk.
|
|
|
35310
35537
|
_: 1,
|
|
35311
35538
|
__: [4]
|
|
35312
35539
|
}, 8, ["href"])),
|
|
35313
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
35540
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, "...")) : createCommentVNode("", true)
|
|
35314
35541
|
], 64)) : createCommentVNode("", true),
|
|
35315
35542
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
35316
35543
|
return openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
@@ -35330,7 +35557,7 @@ and ensure you are accounting for this risk.
|
|
|
35330
35557
|
}, 1032, ["href", "onClick", "class"]);
|
|
35331
35558
|
}), 128)),
|
|
35332
35559
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
35333
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
35560
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_3$o, "...")) : createCommentVNode("", true),
|
|
35334
35561
|
(openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35335
35562
|
href: getHref((_a25 = lastPage.value) != null ? _a25 : 1),
|
|
35336
35563
|
class: "lupa-page-number lupa-page-number-last",
|
|
@@ -35361,18 +35588,18 @@ and ensure you are accounting for this risk.
|
|
|
35361
35588
|
};
|
|
35362
35589
|
}
|
|
35363
35590
|
});
|
|
35364
|
-
const _hoisted_1$
|
|
35591
|
+
const _hoisted_1$E = {
|
|
35365
35592
|
id: "lupa-search-results-page-size",
|
|
35366
35593
|
"data-cy": "lupa-search-results-page-size"
|
|
35367
35594
|
};
|
|
35368
|
-
const _hoisted_2$
|
|
35369
|
-
const _hoisted_3$
|
|
35595
|
+
const _hoisted_2$v = { id: "lupa-select" };
|
|
35596
|
+
const _hoisted_3$n = {
|
|
35370
35597
|
class: "lupa-select-label",
|
|
35371
35598
|
for: "lupa-page-size-select-dropdown"
|
|
35372
35599
|
};
|
|
35373
|
-
const _hoisted_4$
|
|
35374
|
-
const _hoisted_5$
|
|
35375
|
-
const _sfc_main$
|
|
35600
|
+
const _hoisted_4$g = ["aria-label"];
|
|
35601
|
+
const _hoisted_5$b = ["value"];
|
|
35602
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35376
35603
|
__name: "SearchResultsPageSize",
|
|
35377
35604
|
props: {
|
|
35378
35605
|
labels: {},
|
|
@@ -35402,9 +35629,9 @@ and ensure you are accounting for this risk.
|
|
|
35402
35629
|
};
|
|
35403
35630
|
return (_ctx, _cache) => {
|
|
35404
35631
|
var _a25, _b25, _c;
|
|
35405
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35406
|
-
createBaseVNode("div", _hoisted_2$
|
|
35407
|
-
createBaseVNode("label", _hoisted_3$
|
|
35632
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
35633
|
+
createBaseVNode("div", _hoisted_2$v, [
|
|
35634
|
+
createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
35408
35635
|
createBaseVNode("select", {
|
|
35409
35636
|
id: "lupa-page-size-select-dropdown",
|
|
35410
35637
|
class: "lupa-select-dropdown",
|
|
@@ -35418,110 +35645,161 @@ and ensure you are accounting for this risk.
|
|
|
35418
35645
|
return openBlock(), createElementBlock("option", {
|
|
35419
35646
|
key: option,
|
|
35420
35647
|
value: option
|
|
35421
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
35648
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
|
|
35422
35649
|
}), 128))
|
|
35423
|
-
], 40, _hoisted_4$
|
|
35650
|
+
], 40, _hoisted_4$g)
|
|
35424
35651
|
])
|
|
35425
35652
|
]);
|
|
35426
35653
|
};
|
|
35427
35654
|
}
|
|
35428
35655
|
});
|
|
35429
|
-
const
|
|
35656
|
+
const useSorting = () => {
|
|
35657
|
+
const paramStore = useParamsStore();
|
|
35658
|
+
const optionStore = useOptionsStore();
|
|
35659
|
+
const { sort } = storeToRefs(paramStore);
|
|
35660
|
+
const { ariaLabels, searchResultOptions } = storeToRefs(optionStore);
|
|
35661
|
+
const selectedKey = ref("");
|
|
35662
|
+
const previousKey = ref("");
|
|
35663
|
+
const sortStyle = computed(() => {
|
|
35664
|
+
return searchResultOptions.value.sortStyle;
|
|
35665
|
+
});
|
|
35666
|
+
const sortOptions = computed(() => {
|
|
35667
|
+
return searchResultOptions.value.sort;
|
|
35668
|
+
});
|
|
35669
|
+
const callbacks = computed(() => {
|
|
35670
|
+
return searchResultOptions.value.callbacks;
|
|
35671
|
+
});
|
|
35672
|
+
const sotyByTitleLabel = computed(() => {
|
|
35673
|
+
var _a25;
|
|
35674
|
+
return (_a25 = searchResultOptions.value.labels) == null ? void 0 : _a25.sortBy;
|
|
35675
|
+
});
|
|
35676
|
+
const sortItems = computed(() => {
|
|
35677
|
+
if (sortOptions.value && sortOptions.value.length) {
|
|
35678
|
+
return sortOptions.value;
|
|
35679
|
+
} else {
|
|
35680
|
+
return [];
|
|
35681
|
+
}
|
|
35682
|
+
});
|
|
35683
|
+
const defaultSortValue = computed(() => {
|
|
35684
|
+
var _a25, _b25, _c;
|
|
35685
|
+
return (_c = (_a25 = sortOptions.value) == null ? void 0 : _a25.find((x) => x.default)) != null ? _c : (_b25 = sortItems.value) == null ? void 0 : _b25[0];
|
|
35686
|
+
});
|
|
35687
|
+
const setSortValue = () => {
|
|
35688
|
+
var _a25, _b25;
|
|
35689
|
+
const optionToSelect = (_a25 = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a25.key;
|
|
35690
|
+
selectedKey.value = optionToSelect != null ? optionToSelect : (_b25 = defaultSortValue.value) == null ? void 0 : _b25.key;
|
|
35691
|
+
previousKey.value = selectedKey.value;
|
|
35692
|
+
};
|
|
35693
|
+
watch(sort, () => setSortValue());
|
|
35694
|
+
const handleSelect = () => {
|
|
35695
|
+
var _a25, _b25, _c;
|
|
35696
|
+
const value = (_a25 = sortItems.value.find((x) => x.key === selectedKey.value)) == null ? void 0 : _a25.key;
|
|
35697
|
+
if (!value) {
|
|
35698
|
+
return;
|
|
35699
|
+
}
|
|
35700
|
+
paramStore.setSortSettings({ selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35701
|
+
(_c = (_b25 = callbacks.value) == null ? void 0 : _b25.onSortChange) == null ? void 0 : _c.call(_b25, { selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35702
|
+
paramStore.appendParams({
|
|
35703
|
+
params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.SORT), value }],
|
|
35704
|
+
paramsToRemove: [optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
|
|
35705
|
+
});
|
|
35706
|
+
previousKey.value = selectedKey.value;
|
|
35707
|
+
};
|
|
35708
|
+
return {
|
|
35709
|
+
sotyByTitleLabel,
|
|
35710
|
+
sortItems,
|
|
35711
|
+
selectedKey,
|
|
35712
|
+
ariaLabels,
|
|
35713
|
+
sortOptions,
|
|
35714
|
+
sortStyle,
|
|
35715
|
+
handleSelect,
|
|
35716
|
+
setSortValue
|
|
35717
|
+
};
|
|
35718
|
+
};
|
|
35719
|
+
const _hoisted_1$D = {
|
|
35720
|
+
key: 0,
|
|
35430
35721
|
id: "lupa-search-results-sort",
|
|
35431
35722
|
class: "lupa-search-results-sort"
|
|
35432
35723
|
};
|
|
35433
|
-
const _hoisted_2$
|
|
35434
|
-
const _hoisted_3$
|
|
35724
|
+
const _hoisted_2$u = { id: "lupa-select" };
|
|
35725
|
+
const _hoisted_3$m = {
|
|
35435
35726
|
class: "lupa-select-label",
|
|
35436
35727
|
for: "lupa-sort-select-dropdown"
|
|
35437
35728
|
};
|
|
35438
|
-
const _hoisted_4$
|
|
35439
|
-
const _hoisted_5$
|
|
35440
|
-
const _sfc_main$
|
|
35729
|
+
const _hoisted_4$f = ["aria-label"];
|
|
35730
|
+
const _hoisted_5$a = ["value"];
|
|
35731
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
35441
35732
|
__name: "SearchResultsSort",
|
|
35442
|
-
props: {
|
|
35443
|
-
options: {},
|
|
35444
|
-
callbacks: {}
|
|
35445
|
-
},
|
|
35446
35733
|
setup(__props) {
|
|
35447
|
-
const
|
|
35448
|
-
|
|
35449
|
-
|
|
35450
|
-
|
|
35451
|
-
|
|
35452
|
-
|
|
35453
|
-
|
|
35454
|
-
|
|
35455
|
-
|
|
35456
|
-
return props.options.options;
|
|
35457
|
-
} else {
|
|
35458
|
-
return [];
|
|
35459
|
-
}
|
|
35460
|
-
});
|
|
35461
|
-
const defaultSortValue = computed(() => {
|
|
35462
|
-
var _a25;
|
|
35463
|
-
return (_a25 = props.options.options.find((x) => x.default)) != null ? _a25 : props.options.options[0];
|
|
35464
|
-
});
|
|
35465
|
-
const setSortValue = () => {
|
|
35466
|
-
var _a25, _b25;
|
|
35467
|
-
const optionToSelect = (_a25 = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a25.key;
|
|
35468
|
-
selectedKey.value = optionToSelect != null ? optionToSelect : (_b25 = defaultSortValue.value) == null ? void 0 : _b25.key;
|
|
35469
|
-
previousKey.value = selectedKey.value;
|
|
35470
|
-
};
|
|
35471
|
-
watch(sort, () => setSortValue());
|
|
35734
|
+
const {
|
|
35735
|
+
sortItems,
|
|
35736
|
+
selectedKey,
|
|
35737
|
+
ariaLabels,
|
|
35738
|
+
sotyByTitleLabel,
|
|
35739
|
+
sortStyle,
|
|
35740
|
+
handleSelect,
|
|
35741
|
+
setSortValue
|
|
35742
|
+
} = useSorting();
|
|
35472
35743
|
onMounted(() => {
|
|
35473
35744
|
setSortValue();
|
|
35474
35745
|
});
|
|
35475
|
-
const
|
|
35476
|
-
var _a25
|
|
35477
|
-
|
|
35478
|
-
|
|
35479
|
-
return;
|
|
35480
|
-
}
|
|
35481
|
-
paramStore.setSortSettings({ selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35482
|
-
(_c = (_b25 = props.callbacks) == null ? void 0 : _b25.onSortChange) == null ? void 0 : _c.call(_b25, { selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35483
|
-
paramStore.appendParams({
|
|
35484
|
-
params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.SORT), value }],
|
|
35485
|
-
paramsToRemove: [optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
|
|
35486
|
-
});
|
|
35487
|
-
previousKey.value = selectedKey.value;
|
|
35488
|
-
};
|
|
35746
|
+
const showDefaultSort = computed(() => {
|
|
35747
|
+
var _a25;
|
|
35748
|
+
return !sortStyle.value || ((_a25 = sortStyle.value) == null ? void 0 : _a25.type) !== "drawer";
|
|
35749
|
+
});
|
|
35489
35750
|
return (_ctx, _cache) => {
|
|
35490
35751
|
var _a25, _b25;
|
|
35491
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35492
|
-
createBaseVNode("div", _hoisted_2$
|
|
35493
|
-
createBaseVNode("label", _hoisted_3$
|
|
35752
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
35753
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
35754
|
+
createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
35494
35755
|
withDirectives(createBaseVNode("select", {
|
|
35495
35756
|
id: "lupa-sort-select-dropdown",
|
|
35496
35757
|
class: "lupa-select-dropdown",
|
|
35497
|
-
"aria-label": (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.sortBySelect) != null ? _b25 :
|
|
35758
|
+
"aria-label": (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.sortBySelect) != null ? _b25 : unref(sotyByTitleLabel),
|
|
35498
35759
|
"data-cy": "lupa-sort-select-dropdown",
|
|
35499
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
|
|
35500
|
-
onChange:
|
|
35760
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(selectedKey) ? selectedKey.value = $event : null),
|
|
35761
|
+
onChange: _cache[1] || (_cache[1] = //@ts-ignore
|
|
35762
|
+
(...args) => unref(handleSelect) && unref(handleSelect)(...args)),
|
|
35501
35763
|
ref: "select"
|
|
35502
35764
|
}, [
|
|
35503
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(sortItems
|
|
35765
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sortItems), (option) => {
|
|
35504
35766
|
return openBlock(), createElementBlock("option", {
|
|
35505
35767
|
key: option.key,
|
|
35506
35768
|
value: option.key
|
|
35507
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
35769
|
+
}, toDisplayString(option.label), 9, _hoisted_5$a);
|
|
35508
35770
|
}), 128))
|
|
35509
|
-
], 40, _hoisted_4$
|
|
35510
|
-
[vModelSelect, selectedKey
|
|
35771
|
+
], 40, _hoisted_4$f), [
|
|
35772
|
+
[vModelSelect, unref(selectedKey)]
|
|
35511
35773
|
])
|
|
35512
35774
|
])
|
|
35513
|
-
]);
|
|
35775
|
+
])) : createCommentVNode("", true);
|
|
35776
|
+
};
|
|
35777
|
+
}
|
|
35778
|
+
});
|
|
35779
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
35780
|
+
__name: "SearchResultsSortDrawerToggle",
|
|
35781
|
+
setup(__props) {
|
|
35782
|
+
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
35783
|
+
return (_ctx, _cache) => {
|
|
35784
|
+
return unref(sortToggleVisible) ? (openBlock(), createElementBlock("div", {
|
|
35785
|
+
key: 0,
|
|
35786
|
+
class: normalizeClass(["lupa-mobile-toggle lupa-mobile-sort-toggle", {
|
|
35787
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
35788
|
+
}]),
|
|
35789
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
35790
|
+
(...args) => unref(handleSortSidebarToggle) && unref(handleSortSidebarToggle)(...args))
|
|
35791
|
+
}, toDisplayString(unref(sortLabel)), 3)) : createCommentVNode("", true);
|
|
35514
35792
|
};
|
|
35515
35793
|
}
|
|
35516
35794
|
});
|
|
35517
|
-
const _hoisted_1$
|
|
35518
|
-
const _hoisted_2$
|
|
35795
|
+
const _hoisted_1$C = { class: "lupa-toolbar-left" };
|
|
35796
|
+
const _hoisted_2$t = {
|
|
35519
35797
|
key: 0,
|
|
35520
35798
|
class: "lupa-toolbar-right-title"
|
|
35521
35799
|
};
|
|
35522
|
-
const _hoisted_3$
|
|
35523
|
-
const _hoisted_4$
|
|
35524
|
-
const _hoisted_5$
|
|
35800
|
+
const _hoisted_3$l = { key: 2 };
|
|
35801
|
+
const _hoisted_4$e = { key: 4 };
|
|
35802
|
+
const _hoisted_5$9 = { key: 6 };
|
|
35525
35803
|
const _hoisted_6$4 = { class: "lupa-toolbar-right" };
|
|
35526
35804
|
const _hoisted_7$2 = {
|
|
35527
35805
|
key: 0,
|
|
@@ -35529,7 +35807,7 @@ and ensure you are accounting for this risk.
|
|
|
35529
35807
|
};
|
|
35530
35808
|
const _hoisted_8 = { key: 2 };
|
|
35531
35809
|
const _hoisted_9 = { key: 4 };
|
|
35532
|
-
const _sfc_main$
|
|
35810
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
35533
35811
|
__name: "SearchResultsToolbar",
|
|
35534
35812
|
props: {
|
|
35535
35813
|
options: {},
|
|
@@ -35545,7 +35823,7 @@ and ensure you are accounting for this risk.
|
|
|
35545
35823
|
const searchResultStore = useSearchResultStore();
|
|
35546
35824
|
const optionsStore = useOptionsStore();
|
|
35547
35825
|
const { page, limit } = storeToRefs(paramStore);
|
|
35548
|
-
const { hasAnyFilter, searchResult,
|
|
35826
|
+
const { hasAnyFilter, searchResult, isFilterSidebarVisible } = storeToRefs(searchResultStore);
|
|
35549
35827
|
const { currentResolutionPageSizes } = storeToRefs(optionsStore);
|
|
35550
35828
|
const isBottomLocation = computed(() => {
|
|
35551
35829
|
return props.paginationLocation === "bottom";
|
|
@@ -35623,7 +35901,7 @@ and ensure you are accounting for this risk.
|
|
|
35623
35901
|
var _a25;
|
|
35624
35902
|
return (_a25 = optionsValue.value.labels.toolbarRightLabel) != null ? _a25 : "";
|
|
35625
35903
|
});
|
|
35626
|
-
|
|
35904
|
+
computed(() => {
|
|
35627
35905
|
var _a25, _b25, _c;
|
|
35628
35906
|
return Boolean((_c = (_b25 = (_a25 = optionsValue.value.filters) == null ? void 0 : _a25.currentFilters) == null ? void 0 : _b25.mobileSidebar) == null ? void 0 : _c.showFilterCount);
|
|
35629
35907
|
});
|
|
@@ -35642,39 +35920,37 @@ and ensure you are accounting for this risk.
|
|
|
35642
35920
|
id: "lupa-search-results-toolbar",
|
|
35643
35921
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
35644
35922
|
}, [
|
|
35645
|
-
createBaseVNode("div", _hoisted_1$
|
|
35646
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
35647
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
35648
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
35923
|
+
createBaseVNode("div", _hoisted_1$C, [
|
|
35924
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
35925
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$O, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
35926
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$17, {
|
|
35649
35927
|
key: 3,
|
|
35650
35928
|
label: searchSummaryLabel.value,
|
|
35651
35929
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
35652
35930
|
onClear: handleClearAll
|
|
35653
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
35654
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
35931
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
35932
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
35655
35933
|
key: 5,
|
|
35656
35934
|
options: paginationOptions.value.pageSelect,
|
|
35657
35935
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
35658
35936
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
35659
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
35937
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
|
|
35660
35938
|
]),
|
|
35661
35939
|
createBaseVNode("div", _hoisted_6$4, [
|
|
35662
35940
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
35663
|
-
createVNode(_sfc_main$
|
|
35664
|
-
|
|
35665
|
-
|
|
35666
|
-
}, null, 8, ["labels", "show-filter-count"]),
|
|
35667
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$H, {
|
|
35941
|
+
createVNode(_sfc_main$N),
|
|
35942
|
+
createVNode(_sfc_main$I),
|
|
35943
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$K, {
|
|
35668
35944
|
key: 1,
|
|
35669
35945
|
options: paginationOptions.value.pageSize,
|
|
35670
35946
|
labels: paginationOptions.value.labels
|
|
35671
35947
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
35672
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
35948
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
35673
35949
|
key: 3,
|
|
35674
35950
|
options: sortOptions.value,
|
|
35675
35951
|
callbacks: callbacks.value
|
|
35676
35952
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
35677
|
-
showFiltersCloseButton.value && unref(
|
|
35953
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$M, {
|
|
35678
35954
|
key: 5,
|
|
35679
35955
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
35680
35956
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -35683,7 +35959,7 @@ and ensure you are accounting for this risk.
|
|
|
35683
35959
|
};
|
|
35684
35960
|
}
|
|
35685
35961
|
});
|
|
35686
|
-
const _sfc_main$
|
|
35962
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
35687
35963
|
__name: "SearchResultsProductImage",
|
|
35688
35964
|
props: {
|
|
35689
35965
|
item: {},
|
|
@@ -35691,7 +35967,7 @@ and ensure you are accounting for this risk.
|
|
|
35691
35967
|
},
|
|
35692
35968
|
setup(__props) {
|
|
35693
35969
|
return (_ctx, _cache) => {
|
|
35694
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35970
|
+
return openBlock(), createBlock(_sfc_main$1w, {
|
|
35695
35971
|
item: _ctx.item,
|
|
35696
35972
|
options: _ctx.options,
|
|
35697
35973
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -35700,16 +35976,16 @@ and ensure you are accounting for this risk.
|
|
|
35700
35976
|
};
|
|
35701
35977
|
}
|
|
35702
35978
|
});
|
|
35703
|
-
const _hoisted_1$
|
|
35704
|
-
const _hoisted_2$
|
|
35705
|
-
const _hoisted_3$
|
|
35706
|
-
const _hoisted_4$
|
|
35707
|
-
const _hoisted_5$
|
|
35979
|
+
const _hoisted_1$B = ["title", "innerHTML"];
|
|
35980
|
+
const _hoisted_2$s = ["title"];
|
|
35981
|
+
const _hoisted_3$k = ["href", "innerHTML"];
|
|
35982
|
+
const _hoisted_4$d = ["title"];
|
|
35983
|
+
const _hoisted_5$8 = {
|
|
35708
35984
|
key: 0,
|
|
35709
35985
|
class: "lupa-search-results-product-title-text"
|
|
35710
35986
|
};
|
|
35711
35987
|
const _hoisted_6$3 = ["href"];
|
|
35712
|
-
const _sfc_main$
|
|
35988
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
35713
35989
|
__name: "SearchResultsProductTitle",
|
|
35714
35990
|
props: {
|
|
35715
35991
|
item: {},
|
|
@@ -35746,7 +36022,7 @@ and ensure you are accounting for this risk.
|
|
|
35746
36022
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35747
36023
|
title: sanitizedTitle.value,
|
|
35748
36024
|
innerHTML: sanitizedTitle.value
|
|
35749
|
-
}, null, 12, _hoisted_1$
|
|
36025
|
+
}, null, 12, _hoisted_1$B)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
35750
36026
|
key: 1,
|
|
35751
36027
|
class: "lupa-search-results-product-title",
|
|
35752
36028
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -35757,26 +36033,26 @@ and ensure you are accounting for this risk.
|
|
|
35757
36033
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
35758
36034
|
innerHTML: sanitizedTitle.value,
|
|
35759
36035
|
onClick: handleNavigation
|
|
35760
|
-
}, null, 8, _hoisted_3$
|
|
35761
|
-
], 12, _hoisted_2$
|
|
36036
|
+
}, null, 8, _hoisted_3$k)
|
|
36037
|
+
], 12, _hoisted_2$s)) : (openBlock(), createElementBlock("div", {
|
|
35762
36038
|
key: 2,
|
|
35763
36039
|
class: "lupa-search-results-product-title",
|
|
35764
36040
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35765
36041
|
title: title.value
|
|
35766
36042
|
}, [
|
|
35767
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
36043
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
35768
36044
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
35769
36045
|
key: 1,
|
|
35770
36046
|
href: _ctx.link,
|
|
35771
36047
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
35772
36048
|
onClick: handleNavigation
|
|
35773
36049
|
}, toDisplayString(title.value), 9, _hoisted_6$3)) : createCommentVNode("", true)
|
|
35774
|
-
], 12, _hoisted_4$
|
|
36050
|
+
], 12, _hoisted_4$d));
|
|
35775
36051
|
};
|
|
35776
36052
|
}
|
|
35777
36053
|
});
|
|
35778
|
-
const _hoisted_1$
|
|
35779
|
-
const _sfc_main$
|
|
36054
|
+
const _hoisted_1$A = ["innerHTML"];
|
|
36055
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
35780
36056
|
__name: "SearchResultsProductDescription",
|
|
35781
36057
|
props: {
|
|
35782
36058
|
item: {},
|
|
@@ -35803,7 +36079,7 @@ and ensure you are accounting for this risk.
|
|
|
35803
36079
|
class: "lupa-search-results-product-description",
|
|
35804
36080
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35805
36081
|
innerHTML: sanitizedDescription.value
|
|
35806
|
-
}, null, 12, _hoisted_1$
|
|
36082
|
+
}, null, 12, _hoisted_1$A)) : (openBlock(), createElementBlock("div", {
|
|
35807
36083
|
key: 1,
|
|
35808
36084
|
class: "lupa-search-results-product-description",
|
|
35809
36085
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -35811,15 +36087,15 @@ and ensure you are accounting for this risk.
|
|
|
35811
36087
|
};
|
|
35812
36088
|
}
|
|
35813
36089
|
});
|
|
35814
|
-
const _hoisted_1$
|
|
35815
|
-
const _hoisted_2$
|
|
35816
|
-
const _hoisted_3$
|
|
35817
|
-
const _hoisted_4$
|
|
35818
|
-
const _hoisted_5$
|
|
36090
|
+
const _hoisted_1$z = { id: "lupa-search-results-rating" };
|
|
36091
|
+
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
36092
|
+
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
36093
|
+
const _hoisted_4$c = ["innerHTML"];
|
|
36094
|
+
const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
35819
36095
|
const _hoisted_6$2 = ["innerHTML"];
|
|
35820
36096
|
const _hoisted_7$1 = ["href"];
|
|
35821
36097
|
const STAR_COUNT = 5;
|
|
35822
|
-
const _sfc_main$
|
|
36098
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
35823
36099
|
__name: "SearchResultsProductRating",
|
|
35824
36100
|
props: {
|
|
35825
36101
|
item: {},
|
|
@@ -35856,18 +36132,18 @@ and ensure you are accounting for this risk.
|
|
|
35856
36132
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
35857
36133
|
});
|
|
35858
36134
|
return (_ctx, _cache) => {
|
|
35859
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35860
|
-
createBaseVNode("div", _hoisted_2$
|
|
35861
|
-
createBaseVNode("div", _hoisted_3$
|
|
36135
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
36136
|
+
createBaseVNode("div", _hoisted_2$r, [
|
|
36137
|
+
createBaseVNode("div", _hoisted_3$j, [
|
|
35862
36138
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
35863
36139
|
return openBlock(), createElementBlock("div", {
|
|
35864
36140
|
key: index,
|
|
35865
36141
|
innerHTML: star,
|
|
35866
36142
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
35867
|
-
}, null, 8, _hoisted_4$
|
|
36143
|
+
}, null, 8, _hoisted_4$c);
|
|
35868
36144
|
}), 128))
|
|
35869
36145
|
]),
|
|
35870
|
-
createBaseVNode("div", _hoisted_5$
|
|
36146
|
+
createBaseVNode("div", _hoisted_5$7, [
|
|
35871
36147
|
createBaseVNode("div", {
|
|
35872
36148
|
class: "lupa-ratings-highlighted",
|
|
35873
36149
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -35890,11 +36166,11 @@ and ensure you are accounting for this risk.
|
|
|
35890
36166
|
};
|
|
35891
36167
|
}
|
|
35892
36168
|
});
|
|
35893
|
-
const _hoisted_1$
|
|
36169
|
+
const _hoisted_1$y = {
|
|
35894
36170
|
class: "lupa-search-results-product-regular-price",
|
|
35895
36171
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
35896
36172
|
};
|
|
35897
|
-
const _sfc_main$
|
|
36173
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
35898
36174
|
__name: "SearchResultsProductRegularPrice",
|
|
35899
36175
|
props: {
|
|
35900
36176
|
item: {},
|
|
@@ -35916,11 +36192,11 @@ and ensure you are accounting for this risk.
|
|
|
35916
36192
|
);
|
|
35917
36193
|
});
|
|
35918
36194
|
return (_ctx, _cache) => {
|
|
35919
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36195
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, toDisplayString(price.value), 1);
|
|
35920
36196
|
};
|
|
35921
36197
|
}
|
|
35922
36198
|
});
|
|
35923
|
-
const _sfc_main$
|
|
36199
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
35924
36200
|
__name: "SearchResultsProductPrice",
|
|
35925
36201
|
props: {
|
|
35926
36202
|
item: {},
|
|
@@ -35954,12 +36230,12 @@ and ensure you are accounting for this risk.
|
|
|
35954
36230
|
};
|
|
35955
36231
|
}
|
|
35956
36232
|
});
|
|
35957
|
-
const _hoisted_1$
|
|
35958
|
-
const _hoisted_2$
|
|
35959
|
-
const _hoisted_3$
|
|
35960
|
-
const _hoisted_4$
|
|
35961
|
-
const _hoisted_5$
|
|
35962
|
-
const _sfc_main$
|
|
36233
|
+
const _hoisted_1$x = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
36234
|
+
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
36235
|
+
const _hoisted_3$i = ["disabled"];
|
|
36236
|
+
const _hoisted_4$b = ["href"];
|
|
36237
|
+
const _hoisted_5$6 = ["id", "disabled"];
|
|
36238
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
35963
36239
|
__name: "SearchResultsProductAddToCart",
|
|
35964
36240
|
props: {
|
|
35965
36241
|
item: {},
|
|
@@ -36018,16 +36294,16 @@ and ensure you are accounting for this risk.
|
|
|
36018
36294
|
loading.value = false;
|
|
36019
36295
|
});
|
|
36020
36296
|
return (_ctx, _cache) => {
|
|
36021
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36022
|
-
createBaseVNode("div", _hoisted_2$
|
|
36297
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
36298
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
36023
36299
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
36024
36300
|
key: 0,
|
|
36025
36301
|
class: addToCartButtonClass.value,
|
|
36026
36302
|
"data-cy": "lupa-add-to-cart",
|
|
36027
36303
|
disabled: !inStockValue.value || loading.value
|
|
36028
36304
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
36029
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
36030
|
-
], 16, _hoisted_3$
|
|
36305
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$b)
|
|
36306
|
+
], 16, _hoisted_3$i)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
36031
36307
|
key: 1,
|
|
36032
36308
|
id: id.value,
|
|
36033
36309
|
class: addToCartButtonClass.value,
|
|
@@ -36035,18 +36311,18 @@ and ensure you are accounting for this risk.
|
|
|
36035
36311
|
disabled: !inStockValue.value || loading.value
|
|
36036
36312
|
}, _ctx.dynamicAttributes, {
|
|
36037
36313
|
onClick: withModifiers(handleClick, ["stop"])
|
|
36038
|
-
}), toDisplayString(label.value), 17, _hoisted_5$
|
|
36314
|
+
}), toDisplayString(label.value), 17, _hoisted_5$6))
|
|
36039
36315
|
])
|
|
36040
36316
|
]);
|
|
36041
36317
|
};
|
|
36042
36318
|
}
|
|
36043
36319
|
});
|
|
36044
|
-
const _hoisted_1$
|
|
36045
|
-
const _hoisted_2$
|
|
36046
|
-
const _hoisted_3$
|
|
36047
|
-
const _hoisted_4$
|
|
36048
|
-
const _hoisted_5$
|
|
36049
|
-
const _sfc_main$
|
|
36320
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
36321
|
+
const _hoisted_2$p = { key: 0 };
|
|
36322
|
+
const _hoisted_3$h = { key: 1 };
|
|
36323
|
+
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
36324
|
+
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
36325
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
36050
36326
|
__name: "SearchResultsProductCustom",
|
|
36051
36327
|
props: {
|
|
36052
36328
|
item: {},
|
|
@@ -36088,20 +36364,20 @@ and ensure you are accounting for this risk.
|
|
|
36088
36364
|
key: 0,
|
|
36089
36365
|
class: className.value,
|
|
36090
36366
|
innerHTML: text.value
|
|
36091
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36367
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
36092
36368
|
key: 1,
|
|
36093
36369
|
class: className.value
|
|
36094
36370
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
36095
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
36096
|
-
createBaseVNode("div", _hoisted_4$
|
|
36097
|
-
createBaseVNode("div", _hoisted_5$
|
|
36371
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
36372
|
+
createBaseVNode("div", _hoisted_4$a, toDisplayString(label.value), 1),
|
|
36373
|
+
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
36098
36374
|
]))
|
|
36099
36375
|
], 16));
|
|
36100
36376
|
};
|
|
36101
36377
|
}
|
|
36102
36378
|
});
|
|
36103
|
-
const _hoisted_1$
|
|
36104
|
-
const _sfc_main$
|
|
36379
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
36380
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
36105
36381
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
36106
36382
|
props: {
|
|
36107
36383
|
item: {},
|
|
@@ -36137,15 +36413,15 @@ and ensure you are accounting for this risk.
|
|
|
36137
36413
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
36138
36414
|
class: className.value,
|
|
36139
36415
|
innerHTML: text.value
|
|
36140
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36416
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$v);
|
|
36141
36417
|
};
|
|
36142
36418
|
}
|
|
36143
36419
|
});
|
|
36144
|
-
const _hoisted_1$
|
|
36145
|
-
const _hoisted_2$
|
|
36146
|
-
const _hoisted_3$
|
|
36147
|
-
const _hoisted_4$
|
|
36148
|
-
const _sfc_main$
|
|
36420
|
+
const _hoisted_1$u = { id: "lupa-search-results-rating" };
|
|
36421
|
+
const _hoisted_2$o = ["innerHTML"];
|
|
36422
|
+
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
36423
|
+
const _hoisted_4$9 = ["href"];
|
|
36424
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
36149
36425
|
__name: "SearchResultsProductSingleStarRating",
|
|
36150
36426
|
props: {
|
|
36151
36427
|
item: {},
|
|
@@ -36173,35 +36449,35 @@ and ensure you are accounting for this risk.
|
|
|
36173
36449
|
return RATING_STAR_HTML;
|
|
36174
36450
|
});
|
|
36175
36451
|
return (_ctx, _cache) => {
|
|
36176
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36452
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
36177
36453
|
createBaseVNode("div", {
|
|
36178
36454
|
innerHTML: star.value,
|
|
36179
36455
|
class: "lupa-rating lupa-rating-highlighted"
|
|
36180
|
-
}, null, 8, _hoisted_2$
|
|
36181
|
-
createBaseVNode("div", _hoisted_3$
|
|
36456
|
+
}, null, 8, _hoisted_2$o),
|
|
36457
|
+
createBaseVNode("div", _hoisted_3$g, toDisplayString(rating.value), 1),
|
|
36182
36458
|
createBaseVNode("a", {
|
|
36183
36459
|
href: ratingLink.value,
|
|
36184
36460
|
class: "lupa-total-ratings"
|
|
36185
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
36461
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$9)
|
|
36186
36462
|
]);
|
|
36187
36463
|
};
|
|
36188
36464
|
}
|
|
36189
36465
|
});
|
|
36190
36466
|
const __default__ = {
|
|
36191
36467
|
components: {
|
|
36192
|
-
SearchResultsProductImage: _sfc_main$
|
|
36193
|
-
SearchResultsProductTitle: _sfc_main$
|
|
36194
|
-
SearchResultsProductDescription: _sfc_main$
|
|
36195
|
-
SearchResultsProductRating: _sfc_main$
|
|
36196
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
36197
|
-
SearchResultsProductPrice: _sfc_main$
|
|
36198
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
36199
|
-
SearchResultsProductCustom: _sfc_main$
|
|
36200
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
36201
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
36202
|
-
}
|
|
36203
|
-
};
|
|
36204
|
-
const _sfc_main$
|
|
36468
|
+
SearchResultsProductImage: _sfc_main$G,
|
|
36469
|
+
SearchResultsProductTitle: _sfc_main$F,
|
|
36470
|
+
SearchResultsProductDescription: _sfc_main$E,
|
|
36471
|
+
SearchResultsProductRating: _sfc_main$D,
|
|
36472
|
+
SearchResultsProductRegularPrice: _sfc_main$C,
|
|
36473
|
+
SearchResultsProductPrice: _sfc_main$B,
|
|
36474
|
+
SearchResultsProductAddToCart: _sfc_main$A,
|
|
36475
|
+
SearchResultsProductCustom: _sfc_main$z,
|
|
36476
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$y,
|
|
36477
|
+
SearchResultsProductSingleStarRating: _sfc_main$x
|
|
36478
|
+
}
|
|
36479
|
+
};
|
|
36480
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36205
36481
|
__name: "SearchResultsProductCardElement",
|
|
36206
36482
|
props: {
|
|
36207
36483
|
item: {},
|
|
@@ -36279,13 +36555,13 @@ and ensure you are accounting for this risk.
|
|
|
36279
36555
|
};
|
|
36280
36556
|
}
|
|
36281
36557
|
}));
|
|
36282
|
-
const _hoisted_1$
|
|
36283
|
-
const _hoisted_2$
|
|
36558
|
+
const _hoisted_1$t = ["href"];
|
|
36559
|
+
const _hoisted_2$n = {
|
|
36284
36560
|
key: 0,
|
|
36285
36561
|
class: "lupa-out-of-stock"
|
|
36286
36562
|
};
|
|
36287
|
-
const _hoisted_3$
|
|
36288
|
-
const _sfc_main$
|
|
36563
|
+
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
36564
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
36289
36565
|
__name: "SearchResultsProductCard",
|
|
36290
36566
|
props: {
|
|
36291
36567
|
product: {},
|
|
@@ -36461,7 +36737,7 @@ and ensure you are accounting for this risk.
|
|
|
36461
36737
|
default: withCtx(() => {
|
|
36462
36738
|
var _a25;
|
|
36463
36739
|
return [
|
|
36464
|
-
createVNode(_sfc_main$
|
|
36740
|
+
createVNode(_sfc_main$1g, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36465
36741
|
createBaseVNode("div", {
|
|
36466
36742
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36467
36743
|
}, [
|
|
@@ -36471,7 +36747,7 @@ and ensure you are accounting for this risk.
|
|
|
36471
36747
|
onClick: handleNavigation
|
|
36472
36748
|
}, [
|
|
36473
36749
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36474
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36750
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
36475
36751
|
class: "lupa-search-results-product-element",
|
|
36476
36752
|
item: _ctx.product,
|
|
36477
36753
|
element,
|
|
@@ -36482,16 +36758,16 @@ and ensure you are accounting for this risk.
|
|
|
36482
36758
|
onProductEvent: handleProductEvent
|
|
36483
36759
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36484
36760
|
}), 128)),
|
|
36485
|
-
createVNode(_sfc_main$
|
|
36761
|
+
createVNode(_sfc_main$1g, {
|
|
36486
36762
|
options: badgesOptions.value,
|
|
36487
36763
|
position: "image",
|
|
36488
36764
|
class: "lupa-image-badges"
|
|
36489
36765
|
}, null, 8, ["options"]),
|
|
36490
|
-
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
36491
|
-
], 8, _hoisted_1$
|
|
36492
|
-
createBaseVNode("div", _hoisted_3$
|
|
36766
|
+
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
36767
|
+
], 8, _hoisted_1$t),
|
|
36768
|
+
createBaseVNode("div", _hoisted_3$f, [
|
|
36493
36769
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
36494
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36770
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
36495
36771
|
class: "lupa-search-results-product-element",
|
|
36496
36772
|
item: _ctx.product,
|
|
36497
36773
|
element,
|
|
@@ -36509,7 +36785,7 @@ and ensure you are accounting for this risk.
|
|
|
36509
36785
|
class: normalizeClass("lupa-element-group-" + group)
|
|
36510
36786
|
}, [
|
|
36511
36787
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
36512
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36788
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
36513
36789
|
class: "lupa-search-results-product-element",
|
|
36514
36790
|
item: _ctx.product,
|
|
36515
36791
|
element,
|
|
@@ -36530,23 +36806,23 @@ and ensure you are accounting for this risk.
|
|
|
36530
36806
|
};
|
|
36531
36807
|
}
|
|
36532
36808
|
});
|
|
36533
|
-
const _hoisted_1$
|
|
36809
|
+
const _hoisted_1$s = {
|
|
36534
36810
|
id: "lupa-search-results-similar-queries",
|
|
36535
36811
|
"data-cy": "lupa-search-results-similar-queries"
|
|
36536
36812
|
};
|
|
36537
|
-
const _hoisted_2$
|
|
36538
|
-
const _hoisted_3$
|
|
36813
|
+
const _hoisted_2$m = { class: "lupa-similar-queries-label" };
|
|
36814
|
+
const _hoisted_3$e = {
|
|
36539
36815
|
class: "lupa-similar-query-label",
|
|
36540
36816
|
"data-cy": "lupa-similar-query-label"
|
|
36541
36817
|
};
|
|
36542
|
-
const _hoisted_4$
|
|
36543
|
-
const _hoisted_5$
|
|
36818
|
+
const _hoisted_4$8 = ["onClick"];
|
|
36819
|
+
const _hoisted_5$4 = ["innerHTML"];
|
|
36544
36820
|
const _hoisted_6$1 = { key: 0 };
|
|
36545
36821
|
const _hoisted_7 = {
|
|
36546
36822
|
class: "lupa-products",
|
|
36547
36823
|
"data-cy": "lupa-products"
|
|
36548
36824
|
};
|
|
36549
|
-
const _sfc_main$
|
|
36825
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
36550
36826
|
__name: "SearchResultsSimilarQueries",
|
|
36551
36827
|
props: {
|
|
36552
36828
|
labels: {},
|
|
@@ -36584,11 +36860,11 @@ and ensure you are accounting for this risk.
|
|
|
36584
36860
|
};
|
|
36585
36861
|
};
|
|
36586
36862
|
return (_ctx, _cache) => {
|
|
36587
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36588
|
-
createBaseVNode("div", _hoisted_2$
|
|
36863
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
36864
|
+
createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
36589
36865
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
36590
36866
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
36591
|
-
createBaseVNode("div", _hoisted_3$
|
|
36867
|
+
createBaseVNode("div", _hoisted_3$e, [
|
|
36592
36868
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
36593
36869
|
createBaseVNode("span", {
|
|
36594
36870
|
id: "lupa-similar-query-text-component",
|
|
@@ -36598,13 +36874,13 @@ and ensure you are accounting for this risk.
|
|
|
36598
36874
|
}, [
|
|
36599
36875
|
createBaseVNode("span", {
|
|
36600
36876
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
36601
|
-
}, null, 8, _hoisted_5$
|
|
36877
|
+
}, null, 8, _hoisted_5$4),
|
|
36602
36878
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$1, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
36603
|
-
], 8, _hoisted_4$
|
|
36879
|
+
], 8, _hoisted_4$8)
|
|
36604
36880
|
]),
|
|
36605
36881
|
createBaseVNode("div", _hoisted_7, [
|
|
36606
36882
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
36607
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36883
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
36608
36884
|
style: normalizeStyle(_ctx.columnSize),
|
|
36609
36885
|
key: getDocumentKey(index2, product),
|
|
36610
36886
|
product,
|
|
@@ -36619,15 +36895,15 @@ and ensure you are accounting for this risk.
|
|
|
36619
36895
|
};
|
|
36620
36896
|
}
|
|
36621
36897
|
});
|
|
36622
|
-
const _hoisted_1$
|
|
36898
|
+
const _hoisted_1$r = {
|
|
36623
36899
|
key: 0,
|
|
36624
36900
|
class: "lupa-results-additional-panel"
|
|
36625
36901
|
};
|
|
36626
|
-
const _hoisted_2$
|
|
36902
|
+
const _hoisted_2$l = {
|
|
36627
36903
|
class: "lupa-results-additional-panel-items",
|
|
36628
36904
|
"data-cy": "lupa-results-additional-panel-items"
|
|
36629
36905
|
};
|
|
36630
|
-
const _sfc_main$
|
|
36906
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
36631
36907
|
__name: "AdditionalPanel",
|
|
36632
36908
|
props: {
|
|
36633
36909
|
panel: {},
|
|
@@ -36700,10 +36976,10 @@ and ensure you are accounting for this risk.
|
|
|
36700
36976
|
handleQueryChange();
|
|
36701
36977
|
});
|
|
36702
36978
|
return (_ctx, _cache) => {
|
|
36703
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36704
|
-
createBaseVNode("div", _hoisted_2$
|
|
36979
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
36980
|
+
createBaseVNode("div", _hoisted_2$l, [
|
|
36705
36981
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
36706
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36982
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
36707
36983
|
key: index,
|
|
36708
36984
|
product: item,
|
|
36709
36985
|
options: _ctx.panel,
|
|
@@ -36721,11 +36997,11 @@ and ensure you are accounting for this risk.
|
|
|
36721
36997
|
};
|
|
36722
36998
|
}
|
|
36723
36999
|
});
|
|
36724
|
-
const _hoisted_1$
|
|
37000
|
+
const _hoisted_1$q = {
|
|
36725
37001
|
key: 0,
|
|
36726
37002
|
class: "lupa-results-additional-panels"
|
|
36727
37003
|
};
|
|
36728
|
-
const _sfc_main$
|
|
37004
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
36729
37005
|
__name: "AdditionalPanels",
|
|
36730
37006
|
props: {
|
|
36731
37007
|
options: {},
|
|
@@ -36742,9 +37018,9 @@ and ensure you are accounting for this risk.
|
|
|
36742
37018
|
return locationPanels.value.length > 0;
|
|
36743
37019
|
});
|
|
36744
37020
|
return (_ctx, _cache) => {
|
|
36745
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37021
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
36746
37022
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
36747
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37023
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
36748
37024
|
key: panel.queryKey,
|
|
36749
37025
|
panel,
|
|
36750
37026
|
options: _ctx.sdkOptions
|
|
@@ -36761,29 +37037,29 @@ and ensure you are accounting for this risk.
|
|
|
36761
37037
|
}
|
|
36762
37038
|
return target2;
|
|
36763
37039
|
};
|
|
36764
|
-
const _sfc_main$
|
|
36765
|
-
const _hoisted_1$
|
|
36766
|
-
const _hoisted_2$
|
|
37040
|
+
const _sfc_main$r = {};
|
|
37041
|
+
const _hoisted_1$p = { class: "lupa-spinner-wrapper" };
|
|
37042
|
+
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
36767
37043
|
function _sfc_render(_ctx, _cache) {
|
|
36768
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36769
|
-
createBaseVNode("div", _hoisted_2$
|
|
37044
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
37045
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
36770
37046
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
36771
37047
|
return createBaseVNode("div", { key: x });
|
|
36772
37048
|
}), 64))
|
|
36773
37049
|
])
|
|
36774
37050
|
]);
|
|
36775
37051
|
}
|
|
36776
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36777
|
-
const _hoisted_1$
|
|
37052
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
|
|
37053
|
+
const _hoisted_1$o = {
|
|
36778
37054
|
id: "lupa-search-results-similar-results",
|
|
36779
37055
|
"data-cy": "lupa-search-results-similar-results"
|
|
36780
37056
|
};
|
|
36781
|
-
const _hoisted_2$
|
|
36782
|
-
const _hoisted_3$
|
|
37057
|
+
const _hoisted_2$j = { class: "lupa-similar-results-label" };
|
|
37058
|
+
const _hoisted_3$d = {
|
|
36783
37059
|
class: "lupa-products",
|
|
36784
37060
|
"data-cy": "lupa-products"
|
|
36785
37061
|
};
|
|
36786
|
-
const _sfc_main$
|
|
37062
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
36787
37063
|
__name: "SearchResultsSimilarResults",
|
|
36788
37064
|
props: {
|
|
36789
37065
|
columnSize: {},
|
|
@@ -36804,11 +37080,11 @@ and ensure you are accounting for this risk.
|
|
|
36804
37080
|
};
|
|
36805
37081
|
});
|
|
36806
37082
|
return (_ctx, _cache) => {
|
|
36807
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36808
|
-
createBaseVNode("div", _hoisted_2$
|
|
36809
|
-
createBaseVNode("div", _hoisted_3$
|
|
37083
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
37084
|
+
createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
37085
|
+
createBaseVNode("div", _hoisted_3$d, [
|
|
36810
37086
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
36811
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37087
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
36812
37088
|
style: normalizeStyle(_ctx.columnSize),
|
|
36813
37089
|
key: getDocumentKey(index, product),
|
|
36814
37090
|
product,
|
|
@@ -36929,15 +37205,15 @@ and ensure you are accounting for this risk.
|
|
|
36929
37205
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
36930
37206
|
}
|
|
36931
37207
|
});
|
|
36932
|
-
const _hoisted_1$
|
|
36933
|
-
const _hoisted_2$
|
|
36934
|
-
const _hoisted_3$
|
|
36935
|
-
const _hoisted_4$
|
|
36936
|
-
const _hoisted_5$
|
|
37208
|
+
const _hoisted_1$n = { class: "lupa-related-query-item" };
|
|
37209
|
+
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
37210
|
+
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
37211
|
+
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
37212
|
+
const _hoisted_5$3 = {
|
|
36937
37213
|
key: 0,
|
|
36938
37214
|
class: "lupa-related-query-count"
|
|
36939
37215
|
};
|
|
36940
|
-
const _sfc_main$
|
|
37216
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
36941
37217
|
__name: "RelatedQueryPanel",
|
|
36942
37218
|
props: {
|
|
36943
37219
|
query: {},
|
|
@@ -37033,9 +37309,9 @@ and ensure you are accounting for this risk.
|
|
|
37033
37309
|
});
|
|
37034
37310
|
return (_ctx, _cache) => {
|
|
37035
37311
|
var _a25;
|
|
37036
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37037
|
-
createBaseVNode("div", _hoisted_2$
|
|
37038
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37312
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
37313
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
37314
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
|
|
37039
37315
|
key: 0,
|
|
37040
37316
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37041
37317
|
"image-class": "lupa-related-query-image",
|
|
@@ -37043,24 +37319,24 @@ and ensure you are accounting for this risk.
|
|
|
37043
37319
|
options: image.value
|
|
37044
37320
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
37045
37321
|
]),
|
|
37046
|
-
createBaseVNode("div", _hoisted_3$
|
|
37047
|
-
createBaseVNode("span", _hoisted_4$
|
|
37048
|
-
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
37322
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
37323
|
+
createBaseVNode("span", _hoisted_4$7, toDisplayString(_ctx.query), 1),
|
|
37324
|
+
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
37049
37325
|
])
|
|
37050
37326
|
]);
|
|
37051
37327
|
};
|
|
37052
37328
|
}
|
|
37053
37329
|
});
|
|
37054
|
-
const _hoisted_1$
|
|
37330
|
+
const _hoisted_1$m = {
|
|
37055
37331
|
key: 0,
|
|
37056
37332
|
class: "lupa-related-queries"
|
|
37057
37333
|
};
|
|
37058
|
-
const _hoisted_2$
|
|
37334
|
+
const _hoisted_2$h = {
|
|
37059
37335
|
key: 0,
|
|
37060
37336
|
class: "lupa-related-queries-title"
|
|
37061
37337
|
};
|
|
37062
|
-
const _hoisted_3$
|
|
37063
|
-
const _sfc_main$
|
|
37338
|
+
const _hoisted_3$b = ["onClick"];
|
|
37339
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
37064
37340
|
__name: "RelatedQueries",
|
|
37065
37341
|
props: {
|
|
37066
37342
|
options: {}
|
|
@@ -37154,8 +37430,8 @@ and ensure you are accounting for this risk.
|
|
|
37154
37430
|
};
|
|
37155
37431
|
return (_ctx, _cache) => {
|
|
37156
37432
|
var _a25, _b25, _c, _d;
|
|
37157
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37158
|
-
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
37433
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
37434
|
+
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$h, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
37159
37435
|
createBaseVNode("ul", null, [
|
|
37160
37436
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
37161
37437
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
@@ -37165,14 +37441,14 @@ and ensure you are accounting for this risk.
|
|
|
37165
37441
|
createBaseVNode("a", {
|
|
37166
37442
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37167
37443
|
}, [
|
|
37168
|
-
createVNode(_sfc_main$
|
|
37444
|
+
createVNode(_sfc_main$p, {
|
|
37169
37445
|
"source-key": query.key,
|
|
37170
37446
|
options: _ctx.options,
|
|
37171
37447
|
query: query.value,
|
|
37172
37448
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
37173
37449
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
37174
37450
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
37175
|
-
], 8, _hoisted_3$
|
|
37451
|
+
], 8, _hoisted_3$b)
|
|
37176
37452
|
], 2)), [
|
|
37177
37453
|
[vShow, querySourceResultMap.value[query.value] !== false]
|
|
37178
37454
|
]);
|
|
@@ -37209,13 +37485,13 @@ and ensure you are accounting for this risk.
|
|
|
37209
37485
|
}
|
|
37210
37486
|
return null;
|
|
37211
37487
|
};
|
|
37212
|
-
const _hoisted_1$
|
|
37488
|
+
const _hoisted_1$l = {
|
|
37213
37489
|
key: 0,
|
|
37214
37490
|
class: "lupa-redirection-suggestion"
|
|
37215
37491
|
};
|
|
37216
|
-
const _hoisted_2$
|
|
37217
|
-
const _hoisted_3$
|
|
37218
|
-
const _sfc_main$
|
|
37492
|
+
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
37493
|
+
const _hoisted_3$a = ["href"];
|
|
37494
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37219
37495
|
__name: "RedirectionSuggestions",
|
|
37220
37496
|
props: {
|
|
37221
37497
|
options: {}
|
|
@@ -37238,19 +37514,19 @@ and ensure you are accounting for this risk.
|
|
|
37238
37514
|
)
|
|
37239
37515
|
);
|
|
37240
37516
|
return (_ctx, _cache) => {
|
|
37241
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37242
|
-
createBaseVNode("h4", _hoisted_2$
|
|
37243
|
-
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$
|
|
37517
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
37518
|
+
createBaseVNode("h4", _hoisted_2$g, [
|
|
37519
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
37244
37520
|
])
|
|
37245
37521
|
])) : createCommentVNode("", true);
|
|
37246
37522
|
};
|
|
37247
37523
|
}
|
|
37248
37524
|
});
|
|
37249
|
-
const _hoisted_1$
|
|
37525
|
+
const _hoisted_1$k = {
|
|
37250
37526
|
key: 0,
|
|
37251
37527
|
class: "lupa-refiners-loading-notice"
|
|
37252
37528
|
};
|
|
37253
|
-
const _sfc_main$
|
|
37529
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37254
37530
|
__name: "RefinersLoadingNotice",
|
|
37255
37531
|
props: {
|
|
37256
37532
|
labels: {}
|
|
@@ -37261,22 +37537,22 @@ and ensure you are accounting for this risk.
|
|
|
37261
37537
|
const props = __props;
|
|
37262
37538
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37263
37539
|
return (_ctx, _cache) => {
|
|
37264
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37540
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37265
37541
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37266
37542
|
createVNode(Spinner)
|
|
37267
37543
|
])) : createCommentVNode("", true);
|
|
37268
37544
|
};
|
|
37269
37545
|
}
|
|
37270
37546
|
});
|
|
37271
|
-
const _hoisted_1$
|
|
37272
|
-
const _hoisted_2$
|
|
37273
|
-
const _hoisted_3$
|
|
37274
|
-
const _hoisted_4$
|
|
37275
|
-
const _hoisted_5$
|
|
37547
|
+
const _hoisted_1$j = { class: "lupa-related-query-item" };
|
|
37548
|
+
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
37549
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
37550
|
+
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
37551
|
+
const _hoisted_5$2 = {
|
|
37276
37552
|
key: 0,
|
|
37277
37553
|
class: "lupa-related-query-count"
|
|
37278
37554
|
};
|
|
37279
|
-
const _sfc_main$
|
|
37555
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37280
37556
|
__name: "RelatedQueryPanelApi",
|
|
37281
37557
|
props: {
|
|
37282
37558
|
relatedQuery: {},
|
|
@@ -37308,9 +37584,9 @@ and ensure you are accounting for this risk.
|
|
|
37308
37584
|
});
|
|
37309
37585
|
return (_ctx, _cache) => {
|
|
37310
37586
|
var _a25;
|
|
37311
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37312
|
-
createBaseVNode("div", _hoisted_2$
|
|
37313
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37587
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37588
|
+
createBaseVNode("div", _hoisted_2$f, [
|
|
37589
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
|
|
37314
37590
|
key: 0,
|
|
37315
37591
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37316
37592
|
"image-class": "lupa-related-query-image",
|
|
@@ -37318,24 +37594,24 @@ and ensure you are accounting for this risk.
|
|
|
37318
37594
|
options: image.value
|
|
37319
37595
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
37320
37596
|
]),
|
|
37321
|
-
createBaseVNode("div", _hoisted_3$
|
|
37322
|
-
createBaseVNode("span", _hoisted_4$
|
|
37323
|
-
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
37597
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
37598
|
+
createBaseVNode("span", _hoisted_4$6, toDisplayString(query.value), 1),
|
|
37599
|
+
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
37324
37600
|
])
|
|
37325
37601
|
]);
|
|
37326
37602
|
};
|
|
37327
37603
|
}
|
|
37328
37604
|
});
|
|
37329
|
-
const _hoisted_1$
|
|
37605
|
+
const _hoisted_1$i = {
|
|
37330
37606
|
key: 0,
|
|
37331
37607
|
class: "lupa-related-queries"
|
|
37332
37608
|
};
|
|
37333
|
-
const _hoisted_2$
|
|
37609
|
+
const _hoisted_2$e = {
|
|
37334
37610
|
key: 0,
|
|
37335
37611
|
class: "lupa-related-queries-title"
|
|
37336
37612
|
};
|
|
37337
|
-
const _hoisted_3$
|
|
37338
|
-
const _sfc_main$
|
|
37613
|
+
const _hoisted_3$8 = ["onClick"];
|
|
37614
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37339
37615
|
__name: "RelatedQueriesApi",
|
|
37340
37616
|
props: {
|
|
37341
37617
|
options: {}
|
|
@@ -37345,7 +37621,7 @@ and ensure you are accounting for this risk.
|
|
|
37345
37621
|
const searchResultStore = useSearchResultStore();
|
|
37346
37622
|
const paramsStore = useParamsStore();
|
|
37347
37623
|
const optionsStore = useOptionsStore();
|
|
37348
|
-
const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
|
|
37624
|
+
const { searchResult, relatedQueriesResult, relatedQueryFacetKeys } = storeToRefs(searchResultStore);
|
|
37349
37625
|
const relatedQueries2 = computed(() => {
|
|
37350
37626
|
var _a25, _b25, _c, _d;
|
|
37351
37627
|
const allQueries = (_b25 = (_a25 = relatedQueriesResult.value) == null ? void 0 : _a25.relatedQueries) != null ? _b25 : [];
|
|
@@ -37373,7 +37649,7 @@ and ensure you are accounting for this risk.
|
|
|
37373
37649
|
{ key: query.key, value: query.value },
|
|
37374
37650
|
optionsStore.getQueryParamName,
|
|
37375
37651
|
{},
|
|
37376
|
-
(_a25 =
|
|
37652
|
+
(_a25 = relatedQueryFacetKeys.value) == null ? void 0 : _a25.map((key) => `f.${key}`)
|
|
37377
37653
|
);
|
|
37378
37654
|
};
|
|
37379
37655
|
const getSelectedFilterClass = (relatedQuery) => {
|
|
@@ -37387,8 +37663,8 @@ and ensure you are accounting for this risk.
|
|
|
37387
37663
|
};
|
|
37388
37664
|
return (_ctx, _cache) => {
|
|
37389
37665
|
var _a25, _b25, _c, _d;
|
|
37390
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37391
|
-
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
37666
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37667
|
+
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$e, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
37392
37668
|
createBaseVNode("ul", null, [
|
|
37393
37669
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
37394
37670
|
return openBlock(), createElementBlock("li", {
|
|
@@ -37398,11 +37674,11 @@ and ensure you are accounting for this risk.
|
|
|
37398
37674
|
createBaseVNode("a", {
|
|
37399
37675
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37400
37676
|
}, [
|
|
37401
|
-
createVNode(_sfc_main$
|
|
37677
|
+
createVNode(_sfc_main$l, {
|
|
37402
37678
|
relatedQuery: query,
|
|
37403
37679
|
options: _ctx.options
|
|
37404
37680
|
}, null, 8, ["relatedQuery", "options"])
|
|
37405
|
-
], 8, _hoisted_3$
|
|
37681
|
+
], 8, _hoisted_3$8)
|
|
37406
37682
|
], 2);
|
|
37407
37683
|
}), 128))
|
|
37408
37684
|
])
|
|
@@ -37410,9 +37686,9 @@ and ensure you are accounting for this risk.
|
|
|
37410
37686
|
};
|
|
37411
37687
|
}
|
|
37412
37688
|
});
|
|
37413
|
-
const _hoisted_1$
|
|
37414
|
-
const _hoisted_2$
|
|
37415
|
-
const _sfc_main$
|
|
37689
|
+
const _hoisted_1$h = { key: 0 };
|
|
37690
|
+
const _hoisted_2$d = ["innerHTML"];
|
|
37691
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
37416
37692
|
__name: "ZeroResults",
|
|
37417
37693
|
props: {
|
|
37418
37694
|
emptyResultsLabel: {},
|
|
@@ -37441,36 +37717,36 @@ and ensure you are accounting for this risk.
|
|
|
37441
37717
|
});
|
|
37442
37718
|
return (_ctx, _cache) => {
|
|
37443
37719
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37444
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37720
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
37445
37721
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37446
37722
|
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37447
37723
|
])) : createCommentVNode("", true),
|
|
37448
37724
|
showCustomZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", {
|
|
37449
37725
|
key: 1,
|
|
37450
37726
|
innerHTML: htmlTemplate.value
|
|
37451
|
-
}, null, 8, _hoisted_2$
|
|
37727
|
+
}, null, 8, _hoisted_2$d)) : createCommentVNode("", true)
|
|
37452
37728
|
], 64);
|
|
37453
37729
|
};
|
|
37454
37730
|
}
|
|
37455
37731
|
});
|
|
37456
|
-
const _hoisted_1$
|
|
37457
|
-
const _hoisted_2$
|
|
37732
|
+
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
37733
|
+
const _hoisted_2$c = {
|
|
37458
37734
|
class: "lupa-products",
|
|
37459
37735
|
"data-cy": "lupa-products"
|
|
37460
37736
|
};
|
|
37461
|
-
const _hoisted_3$
|
|
37737
|
+
const _hoisted_3$7 = {
|
|
37462
37738
|
key: 1,
|
|
37463
37739
|
class: "lupa-empty-results",
|
|
37464
37740
|
"data-cy": "lupa-no-results-in-page"
|
|
37465
37741
|
};
|
|
37466
|
-
const _hoisted_4$
|
|
37742
|
+
const _hoisted_4$5 = {
|
|
37467
37743
|
key: 5,
|
|
37468
37744
|
class: "lupa-empty-results",
|
|
37469
37745
|
"data-cy": "lupa-no-results"
|
|
37470
37746
|
};
|
|
37471
|
-
const _hoisted_5 = { key: 6 };
|
|
37747
|
+
const _hoisted_5$1 = { key: 6 };
|
|
37472
37748
|
const _hoisted_6 = { key: 7 };
|
|
37473
|
-
const _sfc_main$
|
|
37749
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37474
37750
|
__name: "SearchResultsProducts",
|
|
37475
37751
|
props: {
|
|
37476
37752
|
options: {},
|
|
@@ -37486,7 +37762,7 @@ and ensure you are accounting for this risk.
|
|
|
37486
37762
|
hasResults,
|
|
37487
37763
|
currentQueryText,
|
|
37488
37764
|
isPageEmpty,
|
|
37489
|
-
|
|
37765
|
+
isFilterSidebarVisible,
|
|
37490
37766
|
columnCount,
|
|
37491
37767
|
searchResult,
|
|
37492
37768
|
layout,
|
|
@@ -37517,7 +37793,7 @@ and ensure you are accounting for this risk.
|
|
|
37517
37793
|
});
|
|
37518
37794
|
const showTopFilters = computed(() => {
|
|
37519
37795
|
var _a25, _b25, _c;
|
|
37520
|
-
return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type)
|
|
37796
|
+
return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type) !== "sidebar";
|
|
37521
37797
|
});
|
|
37522
37798
|
const showMobileFilters = computed(() => {
|
|
37523
37799
|
return props.options.searchTitlePosition !== "search-results-top";
|
|
@@ -37594,40 +37870,40 @@ and ensure you are accounting for this risk.
|
|
|
37594
37870
|
};
|
|
37595
37871
|
return (_ctx, _cache) => {
|
|
37596
37872
|
var _a25, _b25, _c;
|
|
37597
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37598
|
-
unref(loading) && !unref(
|
|
37873
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
37874
|
+
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
37599
37875
|
key: 0,
|
|
37600
37876
|
class: "lupa-loader"
|
|
37601
37877
|
})) : createCommentVNode("", true),
|
|
37602
|
-
createVNode(_sfc_main$
|
|
37878
|
+
createVNode(_sfc_main$n, {
|
|
37603
37879
|
options: _ctx.options.redirectionSuggestions
|
|
37604
37880
|
}, null, 8, ["options"]),
|
|
37605
|
-
createVNode(_sfc_main$
|
|
37881
|
+
createVNode(_sfc_main$s, {
|
|
37606
37882
|
options: _ctx.options,
|
|
37607
37883
|
location: "top",
|
|
37608
37884
|
sdkOptions: _ctx.options.options
|
|
37609
37885
|
}, null, 8, ["options", "sdkOptions"]),
|
|
37610
|
-
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$
|
|
37886
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$o, {
|
|
37611
37887
|
key: 1,
|
|
37612
37888
|
options: _ctx.options.relatedQueries
|
|
37613
37889
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37614
|
-
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$
|
|
37890
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$k, {
|
|
37615
37891
|
key: 2,
|
|
37616
37892
|
options: _ctx.options.relatedQueries
|
|
37617
37893
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37618
37894
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
37619
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
37895
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
|
|
37620
37896
|
key: 0,
|
|
37621
37897
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
37622
37898
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37623
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
37899
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
37624
37900
|
key: 1,
|
|
37625
37901
|
class: "lupa-toolbar-mobile",
|
|
37626
37902
|
options: _ctx.options,
|
|
37627
37903
|
"pagination-location": "top",
|
|
37628
37904
|
onFilter: filter
|
|
37629
37905
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37630
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
37906
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$14, {
|
|
37631
37907
|
key: 2,
|
|
37632
37908
|
class: normalizeClass(currentFiltersClass.value),
|
|
37633
37909
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -37636,19 +37912,19 @@ and ensure you are accounting for this risk.
|
|
|
37636
37912
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
37637
37913
|
], 64)) : createCommentVNode("", true),
|
|
37638
37914
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
37639
|
-
createVNode(_sfc_main$
|
|
37915
|
+
createVNode(_sfc_main$H, {
|
|
37640
37916
|
class: "lupa-toolbar-top",
|
|
37641
37917
|
options: _ctx.options,
|
|
37642
37918
|
"pagination-location": "top"
|
|
37643
37919
|
}, null, 8, ["options"]),
|
|
37644
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
37920
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$14, {
|
|
37645
37921
|
key: 0,
|
|
37646
37922
|
class: normalizeClass(currentFiltersClass.value),
|
|
37647
37923
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
37648
37924
|
options: currentFilterOptions.value,
|
|
37649
37925
|
expandable: !desktopFiltersExpanded.value
|
|
37650
37926
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
37651
|
-
createBaseVNode("div", _hoisted_2$
|
|
37927
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
37652
37928
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
37653
37929
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
37654
37930
|
style: normalizeStyle(columnSize.value),
|
|
@@ -37657,7 +37933,7 @@ and ensure you are accounting for this risk.
|
|
|
37657
37933
|
options: productCardOptions.value
|
|
37658
37934
|
});
|
|
37659
37935
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
37660
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37936
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
37661
37937
|
style: normalizeStyle(columnSize.value),
|
|
37662
37938
|
key: getProductKeyAction(index, product),
|
|
37663
37939
|
product,
|
|
@@ -37666,7 +37942,7 @@ and ensure you are accounting for this risk.
|
|
|
37666
37942
|
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
37667
37943
|
}), 128))
|
|
37668
37944
|
]),
|
|
37669
|
-
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
37945
|
+
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
37670
37946
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
37671
37947
|
_ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
|
|
37672
37948
|
key: 0,
|
|
@@ -37674,36 +37950,36 @@ and ensure you are accounting for this risk.
|
|
|
37674
37950
|
onClick: goToFirstPage
|
|
37675
37951
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
37676
37952
|
])) : createCommentVNode("", true),
|
|
37677
|
-
createVNode(_sfc_main$
|
|
37953
|
+
createVNode(_sfc_main$H, {
|
|
37678
37954
|
class: "lupa-toolbar-bottom",
|
|
37679
37955
|
options: _ctx.options,
|
|
37680
37956
|
"pagination-location": "bottom"
|
|
37681
37957
|
}, null, 8, ["options"]),
|
|
37682
|
-
createVNode(_sfc_main$
|
|
37958
|
+
createVNode(_sfc_main$s, {
|
|
37683
37959
|
options: _ctx.options,
|
|
37684
37960
|
location: "bottom",
|
|
37685
37961
|
sdkOptions: _ctx.options.options
|
|
37686
37962
|
}, null, 8, ["options", "sdkOptions"])
|
|
37687
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
37688
|
-
createVNode(_sfc_main$
|
|
37963
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
37964
|
+
createVNode(_sfc_main$j, {
|
|
37689
37965
|
emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
|
|
37690
37966
|
currentQueryText: unref(currentQueryText),
|
|
37691
37967
|
hasSimilarQueries: hasSimilarQueries.value || hasSimilarResults.value,
|
|
37692
37968
|
zeroResults: (_c = _ctx.options) == null ? void 0 : _c.zeroResults
|
|
37693
37969
|
}, null, 8, ["emptyResultsLabel", "currentQueryText", "hasSimilarQueries", "zeroResults"])
|
|
37694
37970
|
])) : createCommentVNode("", true),
|
|
37695
|
-
createVNode(_sfc_main$
|
|
37971
|
+
createVNode(_sfc_main$m, {
|
|
37696
37972
|
labels: _ctx.options.labels
|
|
37697
37973
|
}, null, 8, ["labels"]),
|
|
37698
|
-
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
37699
|
-
createVNode(_sfc_main$
|
|
37974
|
+
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
37975
|
+
createVNode(_sfc_main$u, {
|
|
37700
37976
|
labels: similarQueriesLabels.value,
|
|
37701
37977
|
columnSize: columnSize.value,
|
|
37702
37978
|
productCardOptions: productCardOptions.value
|
|
37703
37979
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
37704
37980
|
])) : createCommentVNode("", true),
|
|
37705
37981
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
37706
|
-
createVNode(_sfc_main$
|
|
37982
|
+
createVNode(_sfc_main$q, {
|
|
37707
37983
|
labels: similarResultsLabels.value,
|
|
37708
37984
|
columnSize: columnSize.value,
|
|
37709
37985
|
productCardOptions: productCardOptions.value
|
|
@@ -37714,17 +37990,17 @@ and ensure you are accounting for this risk.
|
|
|
37714
37990
|
};
|
|
37715
37991
|
}
|
|
37716
37992
|
});
|
|
37717
|
-
const _hoisted_1$
|
|
37718
|
-
const _hoisted_2$
|
|
37993
|
+
const _hoisted_1$f = { class: "lupa-top-mobile-filter-wrapper" };
|
|
37994
|
+
const _hoisted_2$b = {
|
|
37719
37995
|
key: 0,
|
|
37720
37996
|
class: "lupa-category-back"
|
|
37721
37997
|
};
|
|
37722
|
-
const _hoisted_3$
|
|
37723
|
-
const _hoisted_4$
|
|
37998
|
+
const _hoisted_3$6 = ["href"];
|
|
37999
|
+
const _hoisted_4$4 = {
|
|
37724
38000
|
key: 1,
|
|
37725
38001
|
class: "lupa-child-category-list"
|
|
37726
38002
|
};
|
|
37727
|
-
const _sfc_main$
|
|
38003
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
37728
38004
|
__name: "CategoryTopFilters",
|
|
37729
38005
|
props: {
|
|
37730
38006
|
options: {}
|
|
@@ -37772,24 +38048,24 @@ and ensure you are accounting for this risk.
|
|
|
37772
38048
|
"has-related-category-children": hasRelatedCategoryChildren.value
|
|
37773
38049
|
}])
|
|
37774
38050
|
}, [
|
|
37775
|
-
createBaseVNode("div", _hoisted_1$
|
|
37776
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
38051
|
+
createBaseVNode("div", _hoisted_1$f, [
|
|
38052
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
37777
38053
|
createBaseVNode("a", {
|
|
37778
38054
|
"data-cy": "lupa-category-back",
|
|
37779
38055
|
href: backUrlLink.value,
|
|
37780
38056
|
onClick: handleNavigationBack
|
|
37781
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
38057
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
37782
38058
|
])) : createCommentVNode("", true),
|
|
37783
|
-
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
38059
|
+
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
37784
38060
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
37785
|
-
return openBlock(), createBlock(_sfc_main$
|
|
38061
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
37786
38062
|
key: getCategoryKey(child),
|
|
37787
38063
|
item: child,
|
|
37788
38064
|
options: categoryOptions.value
|
|
37789
38065
|
}, null, 8, ["item", "options"]);
|
|
37790
38066
|
}), 128))
|
|
37791
38067
|
])) : createCommentVNode("", true),
|
|
37792
|
-
createVNode(_sfc_main$
|
|
38068
|
+
createVNode(_sfc_main$H, {
|
|
37793
38069
|
class: "lupa-toolbar-mobile",
|
|
37794
38070
|
"pagination-location": "top",
|
|
37795
38071
|
options: _ctx.options
|
|
@@ -37799,6 +38075,129 @@ and ensure you are accounting for this risk.
|
|
|
37799
38075
|
};
|
|
37800
38076
|
}
|
|
37801
38077
|
});
|
|
38078
|
+
const _hoisted_1$e = {
|
|
38079
|
+
id: "lupa-search-results-sort-list",
|
|
38080
|
+
class: "lupa-search-results-sort-list"
|
|
38081
|
+
};
|
|
38082
|
+
const _hoisted_2$a = ["onClick"];
|
|
38083
|
+
const _hoisted_3$5 = ["for"];
|
|
38084
|
+
const _hoisted_4$3 = ["id", "checked"];
|
|
38085
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
38086
|
+
__name: "SortList",
|
|
38087
|
+
setup(__props) {
|
|
38088
|
+
const { sortItems, selectedKey, handleSelect, setSortValue } = useSorting();
|
|
38089
|
+
onMounted(() => {
|
|
38090
|
+
setSortValue();
|
|
38091
|
+
});
|
|
38092
|
+
const selectValue = (key) => {
|
|
38093
|
+
selectedKey.value = key;
|
|
38094
|
+
handleSelect();
|
|
38095
|
+
};
|
|
38096
|
+
return (_ctx, _cache) => {
|
|
38097
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
38098
|
+
createBaseVNode("ul", null, [
|
|
38099
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sortItems), (option) => {
|
|
38100
|
+
return openBlock(), createElementBlock("li", {
|
|
38101
|
+
key: option.key,
|
|
38102
|
+
class: normalizeClass({ "lupa-sort-item-selected": option.key === unref(selectedKey) }),
|
|
38103
|
+
onClick: ($event) => selectValue(option.key)
|
|
38104
|
+
}, [
|
|
38105
|
+
createBaseVNode("label", {
|
|
38106
|
+
for: "lupa-sort-list-" + option.key
|
|
38107
|
+
}, toDisplayString(option.label), 9, _hoisted_3$5),
|
|
38108
|
+
createBaseVNode("input", {
|
|
38109
|
+
id: "lupa-sort-list-" + option.key,
|
|
38110
|
+
type: "radio",
|
|
38111
|
+
checked: option.key === unref(selectedKey)
|
|
38112
|
+
}, null, 8, _hoisted_4$3)
|
|
38113
|
+
], 10, _hoisted_2$a);
|
|
38114
|
+
}), 128))
|
|
38115
|
+
])
|
|
38116
|
+
]);
|
|
38117
|
+
};
|
|
38118
|
+
}
|
|
38119
|
+
});
|
|
38120
|
+
const _hoisted_1$d = { class: "lupa-sort-sidebar-content" };
|
|
38121
|
+
const _hoisted_2$9 = { class: "lupa-sidebar-top" };
|
|
38122
|
+
const _hoisted_3$4 = { class: "lupa-sidebar-title" };
|
|
38123
|
+
const _hoisted_4$2 = { class: "lupa-sidebar-sort-options" };
|
|
38124
|
+
const _hoisted_5 = { class: "lupa-sidebar-sort-actions" };
|
|
38125
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
38126
|
+
__name: "SortDrawer",
|
|
38127
|
+
setup(__props) {
|
|
38128
|
+
const optionsStore = useOptionsStore();
|
|
38129
|
+
const searchResultStore = useSearchResultStore();
|
|
38130
|
+
const paramStore = useParamsStore();
|
|
38131
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
38132
|
+
const { isSidebarClosing, isSortingSidebarVisible } = storeToRefs(searchResultStore);
|
|
38133
|
+
const { handleSortSidebarToggle } = useSidebarToggle();
|
|
38134
|
+
const sortStyleOptions = computed(() => {
|
|
38135
|
+
var _a25;
|
|
38136
|
+
return (_a25 = searchResultOptions.value) == null ? void 0 : _a25.sortStyle;
|
|
38137
|
+
});
|
|
38138
|
+
const sidebarTitle = computed(() => {
|
|
38139
|
+
var _a25, _b25, _c, _d;
|
|
38140
|
+
return (_d = (_c = (_b25 = (_a25 = sortStyleOptions == null ? void 0 : sortStyleOptions.value) == null ? void 0 : _a25.drawer) == null ? void 0 : _b25.labels) == null ? void 0 : _c.title) != null ? _d : "";
|
|
38141
|
+
});
|
|
38142
|
+
const clearSortLabel = computed(() => {
|
|
38143
|
+
var _a25, _b25, _c, _d;
|
|
38144
|
+
return (_d = (_c = (_b25 = (_a25 = sortStyleOptions == null ? void 0 : sortStyleOptions.value) == null ? void 0 : _a25.drawer) == null ? void 0 : _b25.labels) == null ? void 0 : _c.clearLabel) != null ? _d : "";
|
|
38145
|
+
});
|
|
38146
|
+
const applySortLabel = computed(() => {
|
|
38147
|
+
var _a25, _b25, _c, _d;
|
|
38148
|
+
return (_d = (_c = (_b25 = (_a25 = sortStyleOptions == null ? void 0 : sortStyleOptions.value) == null ? void 0 : _a25.drawer) == null ? void 0 : _b25.labels) == null ? void 0 : _c.applyLabel) != null ? _d : "";
|
|
38149
|
+
});
|
|
38150
|
+
const handleDrawerToggle = () => {
|
|
38151
|
+
searchResultStore.setSidebarState({ visible: false, sidebar: "sorting" });
|
|
38152
|
+
};
|
|
38153
|
+
const clearSort = () => {
|
|
38154
|
+
paramStore.removeParameters({
|
|
38155
|
+
paramsToRemove: [optionsStore.getQueryParamName(QUERY_PARAMS$1.SORT)]
|
|
38156
|
+
});
|
|
38157
|
+
handleSortSidebarToggle();
|
|
38158
|
+
};
|
|
38159
|
+
const applySort = () => {
|
|
38160
|
+
handleSortSidebarToggle();
|
|
38161
|
+
};
|
|
38162
|
+
return (_ctx, _cache) => {
|
|
38163
|
+
return unref(isSortingSidebarVisible) ? (openBlock(), createElementBlock("div", {
|
|
38164
|
+
key: 0,
|
|
38165
|
+
class: normalizeClass(["lupa-sort-sidebar", { "lupa-sort-is-closing": unref(isSidebarClosing) }])
|
|
38166
|
+
}, [
|
|
38167
|
+
createBaseVNode("div", {
|
|
38168
|
+
class: "lupa-sidebar-close",
|
|
38169
|
+
onClick: withModifiers(handleDrawerToggle, ["stop"])
|
|
38170
|
+
}),
|
|
38171
|
+
createBaseVNode("div", _hoisted_1$d, [
|
|
38172
|
+
createBaseVNode("div", _hoisted_2$9, [
|
|
38173
|
+
createBaseVNode("div", _hoisted_3$4, toDisplayString(sidebarTitle.value), 1),
|
|
38174
|
+
createBaseVNode("div", {
|
|
38175
|
+
class: "lupa-filter-toggle-mobile",
|
|
38176
|
+
onClick: handleDrawerToggle
|
|
38177
|
+
})
|
|
38178
|
+
]),
|
|
38179
|
+
createBaseVNode("div", _hoisted_4$2, [
|
|
38180
|
+
createVNode(_sfc_main$g)
|
|
38181
|
+
]),
|
|
38182
|
+
createBaseVNode("div", _hoisted_5, [
|
|
38183
|
+
clearSortLabel.value ? (openBlock(), createElementBlock("button", {
|
|
38184
|
+
key: 0,
|
|
38185
|
+
type: "button",
|
|
38186
|
+
class: "lupa-sidebar-sort-clear",
|
|
38187
|
+
onClick: withModifiers(clearSort, ["stop"])
|
|
38188
|
+
}, toDisplayString(clearSortLabel.value), 1)) : createCommentVNode("", true),
|
|
38189
|
+
applySortLabel.value ? (openBlock(), createElementBlock("button", {
|
|
38190
|
+
key: 1,
|
|
38191
|
+
type: "button",
|
|
38192
|
+
class: "lupa-sidebar-sort-apply",
|
|
38193
|
+
onClick: withModifiers(applySort, ["stop"])
|
|
38194
|
+
}, toDisplayString(applySortLabel.value), 1)) : createCommentVNode("", true)
|
|
38195
|
+
])
|
|
38196
|
+
])
|
|
38197
|
+
], 2)) : createCommentVNode("", true);
|
|
38198
|
+
};
|
|
38199
|
+
}
|
|
38200
|
+
});
|
|
37802
38201
|
const _hoisted_1$c = {
|
|
37803
38202
|
key: 0,
|
|
37804
38203
|
class: "lupa-container-title-summary-mobile"
|
|
@@ -37833,7 +38232,7 @@ and ensure you are accounting for this risk.
|
|
|
37833
38232
|
currentQueryText,
|
|
37834
38233
|
hasResults,
|
|
37835
38234
|
currentFilterCount,
|
|
37836
|
-
|
|
38235
|
+
isFilterSidebarVisible,
|
|
37837
38236
|
layout,
|
|
37838
38237
|
loadingFacets,
|
|
37839
38238
|
loadingRefiners
|
|
@@ -37855,7 +38254,7 @@ and ensure you are accounting for this risk.
|
|
|
37855
38254
|
});
|
|
37856
38255
|
const indicatorClasses = computed(() => {
|
|
37857
38256
|
return {
|
|
37858
|
-
"lupa-mobile-sidebar-visible":
|
|
38257
|
+
"lupa-mobile-sidebar-visible": isFilterSidebarVisible.value,
|
|
37859
38258
|
"lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
|
|
37860
38259
|
"lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
|
|
37861
38260
|
};
|
|
@@ -38097,32 +38496,33 @@ and ensure you are accounting for this risk.
|
|
|
38097
38496
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
38098
38497
|
}, [
|
|
38099
38498
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38100
|
-
createVNode(_sfc_main$
|
|
38101
|
-
createVNode(_sfc_main$
|
|
38499
|
+
createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38500
|
+
createVNode(_sfc_main$16, {
|
|
38102
38501
|
"show-summary": true,
|
|
38103
38502
|
options: _ctx.options,
|
|
38104
38503
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
38105
38504
|
}, null, 8, ["options", "is-product-list"])
|
|
38106
38505
|
])) : createCommentVNode("", true),
|
|
38107
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
38506
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$h, {
|
|
38108
38507
|
key: 1,
|
|
38109
38508
|
options: _ctx.options
|
|
38110
38509
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38111
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
38510
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$R, {
|
|
38112
38511
|
key: 2,
|
|
38113
38512
|
options: _ctx.options.filters,
|
|
38114
38513
|
onFilter: handleParamsChange
|
|
38115
38514
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38116
|
-
|
|
38117
|
-
|
|
38515
|
+
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
38516
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
38517
|
+
key: 4,
|
|
38118
38518
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
38119
38519
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
38120
38520
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
|
|
38121
|
-
key:
|
|
38521
|
+
key: 5,
|
|
38122
38522
|
id: "lupa-search-results",
|
|
38123
38523
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
38124
38524
|
}, [
|
|
38125
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38525
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38126
38526
|
key: 0,
|
|
38127
38527
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
38128
38528
|
ref_key: "searchResultsFilters",
|
|
@@ -38130,12 +38530,12 @@ and ensure you are accounting for this risk.
|
|
|
38130
38530
|
onFilter: handleParamsChange
|
|
38131
38531
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38132
38532
|
createBaseVNode("div", _hoisted_2$8, [
|
|
38133
|
-
createVNode(_sfc_main$
|
|
38134
|
-
createVNode(_sfc_main$
|
|
38533
|
+
createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38534
|
+
createVNode(_sfc_main$16, {
|
|
38135
38535
|
options: _ctx.options,
|
|
38136
38536
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
38137
38537
|
}, null, 8, ["options", "is-product-list"]),
|
|
38138
|
-
createVNode(_sfc_main$
|
|
38538
|
+
createVNode(_sfc_main$i, {
|
|
38139
38539
|
options: _ctx.options,
|
|
38140
38540
|
ssr: ssrEnabled.value,
|
|
38141
38541
|
onFilter: handleParamsChange
|
|
@@ -38146,9 +38546,9 @@ and ensure you are accounting for this risk.
|
|
|
38146
38546
|
_: 3
|
|
38147
38547
|
}, 8, ["options", "ssr"])
|
|
38148
38548
|
])
|
|
38149
|
-
], 2)) : (openBlock(), createElementBlock(Fragment, { key:
|
|
38150
|
-
createVNode(_sfc_main$
|
|
38151
|
-
createVNode(_sfc_main$
|
|
38549
|
+
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
38550
|
+
createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38551
|
+
createVNode(_sfc_main$16, {
|
|
38152
38552
|
options: _ctx.options,
|
|
38153
38553
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
38154
38554
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38156,14 +38556,14 @@ and ensure you are accounting for this risk.
|
|
|
38156
38556
|
id: "lupa-search-results",
|
|
38157
38557
|
class: normalizeClass(indicatorClasses.value)
|
|
38158
38558
|
}, [
|
|
38159
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38559
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38160
38560
|
key: 0,
|
|
38161
38561
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
38162
38562
|
ref_key: "searchResultsFilters",
|
|
38163
38563
|
ref: searchResultsFilters,
|
|
38164
38564
|
onFilter: handleParamsChange
|
|
38165
38565
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38166
|
-
createVNode(_sfc_main$
|
|
38566
|
+
createVNode(_sfc_main$i, {
|
|
38167
38567
|
options: _ctx.options,
|
|
38168
38568
|
ssr: ssrEnabled.value,
|
|
38169
38569
|
onFilter: handleParamsChange
|
|
@@ -38307,7 +38707,7 @@ and ensure you are accounting for this risk.
|
|
|
38307
38707
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38308
38708
|
}, [
|
|
38309
38709
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38310
|
-
createVNode(_sfc_main$
|
|
38710
|
+
createVNode(_sfc_main$19, {
|
|
38311
38711
|
options: fullSearchBoxOptions.value,
|
|
38312
38712
|
"is-search-container": true,
|
|
38313
38713
|
ref_key: "searchBox",
|
|
@@ -39895,7 +40295,7 @@ and ensure you are accounting for this risk.
|
|
|
39895
40295
|
key: getProductKeyAction(index, product)
|
|
39896
40296
|
}, {
|
|
39897
40297
|
default: withCtx(() => [
|
|
39898
|
-
createVNode(_sfc_main$
|
|
40298
|
+
createVNode(_sfc_main$v, {
|
|
39899
40299
|
product,
|
|
39900
40300
|
options: _ctx.options,
|
|
39901
40301
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -39910,7 +40310,7 @@ and ensure you are accounting for this risk.
|
|
|
39910
40310
|
_: 1
|
|
39911
40311
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
39912
40312
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
39913
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40313
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
39914
40314
|
style: normalizeStyle(columnSize.value),
|
|
39915
40315
|
key: getProductKeyAction(index, product),
|
|
39916
40316
|
product,
|
|
@@ -40156,7 +40556,7 @@ and ensure you are accounting for this risk.
|
|
|
40156
40556
|
createBaseVNode("a", {
|
|
40157
40557
|
href: getLink(product)
|
|
40158
40558
|
}, [
|
|
40159
|
-
createVNode(_sfc_main$
|
|
40559
|
+
createVNode(_sfc_main$G, {
|
|
40160
40560
|
item: product,
|
|
40161
40561
|
options: image.value
|
|
40162
40562
|
}, null, 8, ["item", "options"])
|
|
@@ -40321,7 +40721,7 @@ and ensure you are accounting for this risk.
|
|
|
40321
40721
|
return (_ctx, _cache) => {
|
|
40322
40722
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40323
40723
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40324
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40724
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
40325
40725
|
class: "lupa-chat-product-card",
|
|
40326
40726
|
key: getProductKeyAction(index, product),
|
|
40327
40727
|
product,
|
|
@@ -40517,7 +40917,7 @@ and ensure you are accounting for this risk.
|
|
|
40517
40917
|
key: 0,
|
|
40518
40918
|
class: "lupasearch-chat-content"
|
|
40519
40919
|
};
|
|
40520
|
-
const _sfc_main$
|
|
40920
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
40521
40921
|
__name: "ChatContainer",
|
|
40522
40922
|
props: {
|
|
40523
40923
|
options: {}
|
|
@@ -46541,7 +46941,7 @@ and ensure you are accounting for this risk.
|
|
|
46541
46941
|
};
|
|
46542
46942
|
__expose({ fetch: fetch2 });
|
|
46543
46943
|
return (_ctx, _cache) => {
|
|
46544
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
46944
|
+
return openBlock(), createBlock(unref(_sfc_main$19), {
|
|
46545
46945
|
ref_key: "searchBox",
|
|
46546
46946
|
ref: searchBox2,
|
|
46547
46947
|
options: fullSearchBoxOptions.value
|
|
@@ -47201,7 +47601,7 @@ and ensure you are accounting for this risk.
|
|
|
47201
47601
|
const instance = createVue(
|
|
47202
47602
|
options.displayOptions.containerSelector,
|
|
47203
47603
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
47204
|
-
_sfc_main$
|
|
47604
|
+
_sfc_main$1H,
|
|
47205
47605
|
{
|
|
47206
47606
|
options
|
|
47207
47607
|
}
|
|
@@ -47475,13 +47875,14 @@ and ensure you are accounting for this risk.
|
|
|
47475
47875
|
document.head.appendChild(styleElement);
|
|
47476
47876
|
});
|
|
47477
47877
|
const mountSearchBox = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47478
|
-
var _a25;
|
|
47878
|
+
var _a25, _b25;
|
|
47479
47879
|
if (!configuration.searchBox) {
|
|
47480
47880
|
return;
|
|
47481
47881
|
}
|
|
47482
47882
|
const resolvedConfiguration = JSON.parse(configuration.searchBox);
|
|
47483
47883
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47484
47884
|
const domPing = resolvedConfiguration.domPing;
|
|
47885
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47485
47886
|
const visible = yield waitForElementToBeVisible(
|
|
47486
47887
|
resolvedConfiguration.inputSelector,
|
|
47487
47888
|
0,
|
|
@@ -47495,18 +47896,19 @@ and ensure you are accounting for this risk.
|
|
|
47495
47896
|
}
|
|
47496
47897
|
const mergedOptions = PluginConfigurationMerger.mergeSearchBoxConfiguration(
|
|
47497
47898
|
resolvedConfiguration,
|
|
47498
|
-
(
|
|
47899
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _b25 : {}
|
|
47499
47900
|
);
|
|
47500
|
-
searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing });
|
|
47901
|
+
searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing, mountingBehavior });
|
|
47501
47902
|
});
|
|
47502
47903
|
const mountSearchResults = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47503
|
-
var _a25;
|
|
47904
|
+
var _a25, _b25;
|
|
47504
47905
|
if (!configuration.searchResults) {
|
|
47505
47906
|
return;
|
|
47506
47907
|
}
|
|
47507
47908
|
const resolvedConfiguration = JSON.parse(configuration.searchResults);
|
|
47508
47909
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47509
47910
|
const domPing = resolvedConfiguration.domPing;
|
|
47911
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47510
47912
|
const visible = yield waitForElementToBeVisible(
|
|
47511
47913
|
resolvedConfiguration.containerSelector,
|
|
47512
47914
|
0,
|
|
@@ -47520,12 +47922,15 @@ and ensure you are accounting for this risk.
|
|
|
47520
47922
|
}
|
|
47521
47923
|
const mergedOptions = PluginConfigurationMerger.mergeSearchResultsConfiguration(
|
|
47522
47924
|
resolvedConfiguration,
|
|
47523
|
-
(
|
|
47925
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _b25 : {}
|
|
47926
|
+
);
|
|
47927
|
+
searchResults(
|
|
47928
|
+
__spreadProps(__spreadValues({}, mergedOptions), { options }),
|
|
47929
|
+
{ fetch: fetch2, allowedMountUrls, domPing, mountingBehavior }
|
|
47524
47930
|
);
|
|
47525
|
-
searchResults(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing });
|
|
47526
47931
|
});
|
|
47527
47932
|
const mountProductList = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47528
|
-
var _a25;
|
|
47933
|
+
var _a25, _b25;
|
|
47529
47934
|
if (!configuration.productList) {
|
|
47530
47935
|
return;
|
|
47531
47936
|
}
|
|
@@ -47534,6 +47939,7 @@ and ensure you are accounting for this risk.
|
|
|
47534
47939
|
);
|
|
47535
47940
|
const resolvedConfiguration = JSON.parse(configuration.productList);
|
|
47536
47941
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47942
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47537
47943
|
const visible = yield waitForElementToBeVisible(
|
|
47538
47944
|
resolvedConfiguration.containerSelector,
|
|
47539
47945
|
0,
|
|
@@ -47547,13 +47953,14 @@ and ensure you are accounting for this risk.
|
|
|
47547
47953
|
}
|
|
47548
47954
|
const mergedOptions = merge(
|
|
47549
47955
|
__spreadValues(__spreadValues({}, resolvedSearchResultsConfiguration), resolvedConfiguration),
|
|
47550
|
-
(
|
|
47956
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.productList) != null ? _b25 : {}
|
|
47551
47957
|
);
|
|
47552
|
-
productList(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
|
|
47958
|
+
productList(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, mountingBehavior });
|
|
47553
47959
|
});
|
|
47554
47960
|
const mountRecommendations = (resolvedSearchResultsConfiguration, resolvedConfiguration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47555
|
-
var _a25;
|
|
47961
|
+
var _a25, _b25;
|
|
47556
47962
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47963
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47557
47964
|
const visible = yield waitForElementToBeVisible(
|
|
47558
47965
|
resolvedConfiguration.containerSelector,
|
|
47559
47966
|
0,
|
|
@@ -47567,9 +47974,9 @@ and ensure you are accounting for this risk.
|
|
|
47567
47974
|
}
|
|
47568
47975
|
const mergedOptions = merge(
|
|
47569
47976
|
__spreadValues(__spreadValues({}, resolvedSearchResultsConfiguration), resolvedConfiguration),
|
|
47570
|
-
(
|
|
47977
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.recommendations) != null ? _b25 : {}
|
|
47571
47978
|
);
|
|
47572
|
-
recommendations(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
|
|
47979
|
+
recommendations(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, mountingBehavior });
|
|
47573
47980
|
});
|
|
47574
47981
|
const mountAllRecommendations = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47575
47982
|
if (!configuration.recommendations) {
|