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