@getlupa/client 1.22.1 → 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 +1210 -780
- package/dist/lupaSearch.js +1210 -780
- package/dist/lupaSearch.mjs +1210 -780
- package/dist/lupaSearch.umd.js +1210 -780
- package/dist/style.css +1 -1
- package/dist/types/ResolvedOptions.d.ts +6 -0
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -18061,8 +18061,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18061
18061
|
);
|
|
18062
18062
|
const trackingOptions = ref({});
|
|
18063
18063
|
const searchResultInitialFilters = ref({});
|
|
18064
|
+
const expandedFacetsInner = ref([]);
|
|
18064
18065
|
const productRecommendationOptions = ref({});
|
|
18065
18066
|
const screenStore = useScreenStore();
|
|
18067
|
+
const expandedFacets = computed({
|
|
18068
|
+
get: () => {
|
|
18069
|
+
var _a25, _b25, _c, _d, _e;
|
|
18070
|
+
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 : [];
|
|
18071
|
+
},
|
|
18072
|
+
set: (value) => {
|
|
18073
|
+
expandedFacetsInner.value = value;
|
|
18074
|
+
}
|
|
18075
|
+
});
|
|
18066
18076
|
const envOptions = computed(
|
|
18067
18077
|
() => {
|
|
18068
18078
|
var _a25;
|
|
@@ -18162,6 +18172,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18162
18172
|
currentResolutionPageSizes,
|
|
18163
18173
|
productRecommendationOptions,
|
|
18164
18174
|
ariaLabels,
|
|
18175
|
+
expandedFacets,
|
|
18165
18176
|
setSearchBoxOptions,
|
|
18166
18177
|
setTrackingOptions,
|
|
18167
18178
|
setSearchResultOptions,
|
|
@@ -19580,7 +19591,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19580
19591
|
}
|
|
19581
19592
|
return Env[environment] || Env["production"];
|
|
19582
19593
|
};
|
|
19583
|
-
const _sfc_main$
|
|
19594
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
19584
19595
|
__name: "VoiceSearchProgressCircle",
|
|
19585
19596
|
props: {
|
|
19586
19597
|
isRecording: { type: Boolean },
|
|
@@ -19793,15 +19804,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19793
19804
|
closeSocket
|
|
19794
19805
|
};
|
|
19795
19806
|
}
|
|
19796
|
-
const _hoisted_1$
|
|
19807
|
+
const _hoisted_1$1o = {
|
|
19797
19808
|
key: 0,
|
|
19798
19809
|
class: "lupa-dialog-overlay"
|
|
19799
19810
|
};
|
|
19800
|
-
const _hoisted_2$
|
|
19801
|
-
const _hoisted_3$
|
|
19802
|
-
const _hoisted_4$
|
|
19803
|
-
const _hoisted_5$
|
|
19804
|
-
const _sfc_main$
|
|
19811
|
+
const _hoisted_2$Y = { class: "lupa-dialog-content" };
|
|
19812
|
+
const _hoisted_3$G = { class: "lupa-listening-text" };
|
|
19813
|
+
const _hoisted_4$w = { class: "lupa-mic-button-wrapper" };
|
|
19814
|
+
const _hoisted_5$m = ["aria-label"];
|
|
19815
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
19805
19816
|
__name: "VoiceSearchDialog",
|
|
19806
19817
|
props: {
|
|
19807
19818
|
isOpen: { type: Boolean },
|
|
@@ -19906,21 +19917,21 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19906
19917
|
return (_ctx, _cache) => {
|
|
19907
19918
|
var _a25, _b25;
|
|
19908
19919
|
return openBlock(), createElementBlock("div", null, [
|
|
19909
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19920
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
19910
19921
|
createBaseVNode("button", {
|
|
19911
19922
|
class: "lupa-dialog-box-close-button",
|
|
19912
19923
|
onClick: _cache[0] || (_cache[0] = () => emit2("close"))
|
|
19913
19924
|
}),
|
|
19914
|
-
createBaseVNode("div", _hoisted_2$
|
|
19915
|
-
createBaseVNode("p", _hoisted_3$
|
|
19916
|
-
createBaseVNode("div", _hoisted_4$
|
|
19925
|
+
createBaseVNode("div", _hoisted_2$Y, [
|
|
19926
|
+
createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
|
|
19927
|
+
createBaseVNode("div", _hoisted_4$w, [
|
|
19917
19928
|
createBaseVNode("button", {
|
|
19918
19929
|
class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
|
|
19919
19930
|
onClick: handleRecordingButtonClick,
|
|
19920
19931
|
"aria-controls": "voice-search-microphone",
|
|
19921
19932
|
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
19922
|
-
}, null, 10, _hoisted_5$
|
|
19923
|
-
createVNode(_sfc_main$
|
|
19933
|
+
}, null, 10, _hoisted_5$m),
|
|
19934
|
+
createVNode(_sfc_main$1G, {
|
|
19924
19935
|
ref_key: "voiceSearchProgressBar",
|
|
19925
19936
|
ref: voiceSearchProgressBar,
|
|
19926
19937
|
class: "lupa-progress-circle",
|
|
@@ -19935,18 +19946,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19935
19946
|
};
|
|
19936
19947
|
}
|
|
19937
19948
|
});
|
|
19938
|
-
const _hoisted_1$
|
|
19939
|
-
const _hoisted_2$
|
|
19940
|
-
const _hoisted_3$
|
|
19941
|
-
const _hoisted_4$
|
|
19942
|
-
const _hoisted_5$
|
|
19943
|
-
const _hoisted_6$
|
|
19949
|
+
const _hoisted_1$1n = { id: "lupa-search-box-input-container" };
|
|
19950
|
+
const _hoisted_2$X = { class: "lupa-input-clear" };
|
|
19951
|
+
const _hoisted_3$F = { id: "lupa-search-box-input" };
|
|
19952
|
+
const _hoisted_4$v = ["value"];
|
|
19953
|
+
const _hoisted_5$l = ["aria-label", "placeholder"];
|
|
19954
|
+
const _hoisted_6$7 = {
|
|
19944
19955
|
key: 0,
|
|
19945
19956
|
class: "lupa-close-label"
|
|
19946
19957
|
};
|
|
19947
19958
|
const _hoisted_7$5 = { key: 1 };
|
|
19948
19959
|
const _hoisted_8$3 = ["aria-label"];
|
|
19949
|
-
const _sfc_main$
|
|
19960
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
19950
19961
|
__name: "SearchBoxInput",
|
|
19951
19962
|
props: {
|
|
19952
19963
|
options: {},
|
|
@@ -20078,20 +20089,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20078
20089
|
};
|
|
20079
20090
|
__expose({ focus });
|
|
20080
20091
|
return (_ctx, _cache) => {
|
|
20081
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20082
|
-
createBaseVNode("div", _hoisted_2$
|
|
20092
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
20093
|
+
createBaseVNode("div", _hoisted_2$X, [
|
|
20083
20094
|
createBaseVNode("div", {
|
|
20084
20095
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
20085
20096
|
onClick: clear
|
|
20086
20097
|
}, null, 2)
|
|
20087
20098
|
]),
|
|
20088
|
-
createBaseVNode("div", _hoisted_3$
|
|
20099
|
+
createBaseVNode("div", _hoisted_3$F, [
|
|
20089
20100
|
createBaseVNode("input", {
|
|
20090
20101
|
class: "lupa-hint",
|
|
20091
20102
|
"aria-hidden": "true",
|
|
20092
20103
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
20093
20104
|
disabled: ""
|
|
20094
|
-
}, null, 8, _hoisted_4$
|
|
20105
|
+
}, null, 8, _hoisted_4$v),
|
|
20095
20106
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
20096
20107
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
20097
20108
|
}, inputAttributes.value, {
|
|
@@ -20105,7 +20116,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20105
20116
|
placeholder: labels.value.placeholder,
|
|
20106
20117
|
onInput: handleInput,
|
|
20107
20118
|
onFocus: handleFocus
|
|
20108
|
-
}), null, 16, _hoisted_5$
|
|
20119
|
+
}), null, 16, _hoisted_5$l), [
|
|
20109
20120
|
[vModelText, inputValue.value]
|
|
20110
20121
|
]),
|
|
20111
20122
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -20120,7 +20131,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20120
20131
|
class: "lupa-close-search-container",
|
|
20121
20132
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
20122
20133
|
}, [
|
|
20123
|
-
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
20134
|
+
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
|
|
20124
20135
|
])) : createCommentVNode("", true),
|
|
20125
20136
|
isVoiceSearchEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
20126
20137
|
createBaseVNode("button", {
|
|
@@ -20131,7 +20142,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20131
20142
|
"aria-label": voiceSearchAriaLabel.value
|
|
20132
20143
|
}, null, 8, _hoisted_8$3)
|
|
20133
20144
|
])) : createCommentVNode("", true),
|
|
20134
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
20145
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1F, {
|
|
20135
20146
|
key: 2,
|
|
20136
20147
|
ref_key: "voiceDialogOverlay",
|
|
20137
20148
|
ref: voiceDialogOverlay,
|
|
@@ -20145,7 +20156,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20145
20156
|
};
|
|
20146
20157
|
}
|
|
20147
20158
|
});
|
|
20148
|
-
const _sfc_main$
|
|
20159
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
20149
20160
|
__name: "SearchBoxMoreResults",
|
|
20150
20161
|
props: {
|
|
20151
20162
|
labels: {},
|
|
@@ -20183,9 +20194,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20183
20194
|
};
|
|
20184
20195
|
}
|
|
20185
20196
|
});
|
|
20186
|
-
const _hoisted_1$
|
|
20187
|
-
const _hoisted_2$
|
|
20188
|
-
const _sfc_main$
|
|
20197
|
+
const _hoisted_1$1m = { class: "lupa-search-box-history-item" };
|
|
20198
|
+
const _hoisted_2$W = { class: "lupa-search-box-history-item-content" };
|
|
20199
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
20189
20200
|
__name: "SearchBoxHistoryItem",
|
|
20190
20201
|
props: {
|
|
20191
20202
|
item: {},
|
|
@@ -20202,8 +20213,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20202
20213
|
emit2("click", { query: props.item });
|
|
20203
20214
|
};
|
|
20204
20215
|
return (_ctx, _cache) => {
|
|
20205
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20206
|
-
createBaseVNode("div", _hoisted_2$
|
|
20216
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1m, [
|
|
20217
|
+
createBaseVNode("div", _hoisted_2$W, [
|
|
20207
20218
|
createBaseVNode("div", {
|
|
20208
20219
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
20209
20220
|
onClick: click2
|
|
@@ -20217,11 +20228,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20217
20228
|
};
|
|
20218
20229
|
}
|
|
20219
20230
|
});
|
|
20220
|
-
const _hoisted_1$
|
|
20231
|
+
const _hoisted_1$1l = {
|
|
20221
20232
|
key: 0,
|
|
20222
20233
|
class: "lupa-search-box-history-panel"
|
|
20223
20234
|
};
|
|
20224
|
-
const _sfc_main$
|
|
20235
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
20225
20236
|
__name: "SearchBoxHistoryPanel",
|
|
20226
20237
|
props: {
|
|
20227
20238
|
options: {}
|
|
@@ -20272,9 +20283,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20272
20283
|
}
|
|
20273
20284
|
};
|
|
20274
20285
|
return (_ctx, _cache) => {
|
|
20275
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20286
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
|
|
20276
20287
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
20277
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20288
|
+
return openBlock(), createBlock(_sfc_main$1C, {
|
|
20278
20289
|
key: item,
|
|
20279
20290
|
item,
|
|
20280
20291
|
highlighted: index === highlightIndex.value,
|
|
@@ -20290,15 +20301,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20290
20301
|
};
|
|
20291
20302
|
}
|
|
20292
20303
|
});
|
|
20293
|
-
const _hoisted_1$
|
|
20294
|
-
const _sfc_main$
|
|
20304
|
+
const _hoisted_1$1k = { class: "lupa-search-box-no-results" };
|
|
20305
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
20295
20306
|
__name: "SearchBoxNoResults",
|
|
20296
20307
|
props: {
|
|
20297
20308
|
labels: {}
|
|
20298
20309
|
},
|
|
20299
20310
|
setup(__props) {
|
|
20300
20311
|
return (_ctx, _cache) => {
|
|
20301
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
20312
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1k, toDisplayString(_ctx.labels.noResults), 1);
|
|
20302
20313
|
};
|
|
20303
20314
|
}
|
|
20304
20315
|
});
|
|
@@ -20330,26 +20341,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20330
20341
|
}
|
|
20331
20342
|
return gridTemplate.join(" ");
|
|
20332
20343
|
};
|
|
20333
|
-
const _hoisted_1$
|
|
20334
|
-
const _hoisted_2$
|
|
20344
|
+
const _hoisted_1$1j = ["innerHTML"];
|
|
20345
|
+
const _hoisted_2$V = {
|
|
20335
20346
|
key: 1,
|
|
20336
20347
|
"data-cy": "lupa-suggestion-value",
|
|
20337
20348
|
class: "lupa-suggestion-value"
|
|
20338
20349
|
};
|
|
20339
|
-
const _hoisted_3$
|
|
20350
|
+
const _hoisted_3$E = {
|
|
20340
20351
|
key: 2,
|
|
20341
20352
|
class: "lupa-suggestion-facet",
|
|
20342
20353
|
"data-cy": "lupa-suggestion-facet"
|
|
20343
20354
|
};
|
|
20344
|
-
const _hoisted_4$
|
|
20355
|
+
const _hoisted_4$u = {
|
|
20345
20356
|
class: "lupa-suggestion-facet-label",
|
|
20346
20357
|
"data-cy": "lupa-suggestion-facet-label"
|
|
20347
20358
|
};
|
|
20348
|
-
const _hoisted_5$
|
|
20359
|
+
const _hoisted_5$k = {
|
|
20349
20360
|
class: "lupa-suggestion-facet-value",
|
|
20350
20361
|
"data-cy": "lupa-suggestion-facet-value"
|
|
20351
20362
|
};
|
|
20352
|
-
const _sfc_main$
|
|
20363
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
20353
20364
|
__name: "SearchBoxSuggestion",
|
|
20354
20365
|
props: {
|
|
20355
20366
|
suggestion: {},
|
|
@@ -20386,20 +20397,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20386
20397
|
class: "lupa-suggestion-value",
|
|
20387
20398
|
"data-cy": "lupa-suggestion-value",
|
|
20388
20399
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20389
|
-
}, null, 8, _hoisted_1$
|
|
20390
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20391
|
-
createBaseVNode("span", _hoisted_4$
|
|
20392
|
-
createBaseVNode("span", _hoisted_5$
|
|
20400
|
+
}, null, 8, _hoisted_1$1j)) : (openBlock(), createElementBlock("div", _hoisted_2$V, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20401
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
20402
|
+
createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
|
|
20403
|
+
createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
20393
20404
|
])) : createCommentVNode("", true)
|
|
20394
20405
|
]);
|
|
20395
20406
|
};
|
|
20396
20407
|
}
|
|
20397
20408
|
});
|
|
20398
|
-
const _hoisted_1$
|
|
20409
|
+
const _hoisted_1$1i = {
|
|
20399
20410
|
id: "lupa-search-box-suggestions",
|
|
20400
20411
|
"data-cy": "lupa-search-box-suggestions"
|
|
20401
20412
|
};
|
|
20402
|
-
const _sfc_main$
|
|
20413
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
20403
20414
|
__name: "SearchBoxSuggestions",
|
|
20404
20415
|
props: {
|
|
20405
20416
|
items: {},
|
|
@@ -20466,9 +20477,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20466
20477
|
});
|
|
20467
20478
|
});
|
|
20468
20479
|
return (_ctx, _cache) => {
|
|
20469
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20480
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1i, [
|
|
20470
20481
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
20471
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20482
|
+
return openBlock(), createBlock(_sfc_main$1z, {
|
|
20472
20483
|
key: getSuggestionKey(item),
|
|
20473
20484
|
class: normalizeClass([
|
|
20474
20485
|
"lupa-suggestion",
|
|
@@ -20500,7 +20511,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20500
20511
|
}, timeout);
|
|
20501
20512
|
};
|
|
20502
20513
|
};
|
|
20503
|
-
const _sfc_main$
|
|
20514
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
20504
20515
|
__name: "SearchBoxSuggestionsWrapper",
|
|
20505
20516
|
props: {
|
|
20506
20517
|
panel: {},
|
|
@@ -20543,7 +20554,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20543
20554
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
20544
20555
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
20545
20556
|
return (_ctx, _cache) => {
|
|
20546
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20557
|
+
return openBlock(), createBlock(_sfc_main$1y, {
|
|
20547
20558
|
items: searchResult.value,
|
|
20548
20559
|
highlight: _ctx.panel.highlight,
|
|
20549
20560
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -29825,9 +29836,9 @@ and ensure you are accounting for this risk.
|
|
|
29825
29836
|
targetImage.src = placeholder;
|
|
29826
29837
|
}
|
|
29827
29838
|
};
|
|
29828
|
-
const _hoisted_1$
|
|
29829
|
-
const _hoisted_2$
|
|
29830
|
-
const _sfc_main$
|
|
29839
|
+
const _hoisted_1$1h = ["src"];
|
|
29840
|
+
const _hoisted_2$U = ["src"];
|
|
29841
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
29831
29842
|
__name: "ProductImage",
|
|
29832
29843
|
props: {
|
|
29833
29844
|
item: {},
|
|
@@ -29969,7 +29980,7 @@ and ensure you are accounting for this risk.
|
|
|
29969
29980
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
29970
29981
|
onError: replaceWithPlaceholder,
|
|
29971
29982
|
key: finalUrl.value
|
|
29972
|
-
}), null, 16, _hoisted_1$
|
|
29983
|
+
}), null, 16, _hoisted_1$1h))
|
|
29973
29984
|
]),
|
|
29974
29985
|
_: 1
|
|
29975
29986
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -29977,12 +29988,12 @@ and ensure you are accounting for this risk.
|
|
|
29977
29988
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
29978
29989
|
style: styleOverride.value,
|
|
29979
29990
|
src: finalMainImageUrl.value
|
|
29980
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
29991
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$U))
|
|
29981
29992
|
], 38);
|
|
29982
29993
|
};
|
|
29983
29994
|
}
|
|
29984
29995
|
});
|
|
29985
|
-
const _sfc_main$
|
|
29996
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
29986
29997
|
__name: "SearchBoxProductImage",
|
|
29987
29998
|
props: {
|
|
29988
29999
|
item: {},
|
|
@@ -29990,7 +30001,7 @@ and ensure you are accounting for this risk.
|
|
|
29990
30001
|
},
|
|
29991
30002
|
setup(__props) {
|
|
29992
30003
|
return (_ctx, _cache) => {
|
|
29993
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30004
|
+
return openBlock(), createBlock(_sfc_main$1w, {
|
|
29994
30005
|
item: _ctx.item,
|
|
29995
30006
|
options: _ctx.options,
|
|
29996
30007
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -29999,12 +30010,12 @@ and ensure you are accounting for this risk.
|
|
|
29999
30010
|
};
|
|
30000
30011
|
}
|
|
30001
30012
|
});
|
|
30002
|
-
const _hoisted_1$
|
|
30003
|
-
const _hoisted_2$
|
|
30013
|
+
const _hoisted_1$1g = ["innerHTML"];
|
|
30014
|
+
const _hoisted_2$T = {
|
|
30004
30015
|
key: 1,
|
|
30005
30016
|
class: "lupa-search-box-product-title"
|
|
30006
30017
|
};
|
|
30007
|
-
const _sfc_main$
|
|
30018
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
30008
30019
|
__name: "SearchBoxProductTitle",
|
|
30009
30020
|
props: {
|
|
30010
30021
|
item: {},
|
|
@@ -30027,18 +30038,18 @@ and ensure you are accounting for this risk.
|
|
|
30027
30038
|
key: 0,
|
|
30028
30039
|
class: "lupa-search-box-product-title",
|
|
30029
30040
|
innerHTML: sanitizedTitle.value
|
|
30030
|
-
}, null, 8, _hoisted_1$
|
|
30041
|
+
}, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, [
|
|
30031
30042
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
30032
30043
|
]));
|
|
30033
30044
|
};
|
|
30034
30045
|
}
|
|
30035
30046
|
});
|
|
30036
|
-
const _hoisted_1$
|
|
30037
|
-
const _hoisted_2$
|
|
30047
|
+
const _hoisted_1$1f = ["innerHTML"];
|
|
30048
|
+
const _hoisted_2$S = {
|
|
30038
30049
|
key: 1,
|
|
30039
30050
|
class: "lupa-search-box-product-description"
|
|
30040
30051
|
};
|
|
30041
|
-
const _sfc_main$
|
|
30052
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
30042
30053
|
__name: "SearchBoxProductDescription",
|
|
30043
30054
|
props: {
|
|
30044
30055
|
item: {},
|
|
@@ -30061,12 +30072,12 @@ and ensure you are accounting for this risk.
|
|
|
30061
30072
|
key: 0,
|
|
30062
30073
|
class: "lupa-search-box-product-description",
|
|
30063
30074
|
innerHTML: sanitizedDescription.value
|
|
30064
|
-
}, null, 8, _hoisted_1$
|
|
30075
|
+
}, null, 8, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(description.value), 1));
|
|
30065
30076
|
};
|
|
30066
30077
|
}
|
|
30067
30078
|
});
|
|
30068
|
-
const _hoisted_1$
|
|
30069
|
-
const _sfc_main$
|
|
30079
|
+
const _hoisted_1$1e = { class: "lupa-search-box-product-price" };
|
|
30080
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
30070
30081
|
__name: "SearchBoxProductPrice",
|
|
30071
30082
|
props: {
|
|
30072
30083
|
item: {},
|
|
@@ -30088,13 +30099,13 @@ and ensure you are accounting for this risk.
|
|
|
30088
30099
|
);
|
|
30089
30100
|
});
|
|
30090
30101
|
return (_ctx, _cache) => {
|
|
30091
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30102
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
30092
30103
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
30093
30104
|
]);
|
|
30094
30105
|
};
|
|
30095
30106
|
}
|
|
30096
30107
|
});
|
|
30097
|
-
const _sfc_main$
|
|
30108
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
30098
30109
|
__name: "SearchBoxProductRegularPrice",
|
|
30099
30110
|
props: {
|
|
30100
30111
|
item: {},
|
|
@@ -30125,12 +30136,12 @@ and ensure you are accounting for this risk.
|
|
|
30125
30136
|
};
|
|
30126
30137
|
}
|
|
30127
30138
|
});
|
|
30128
|
-
const _hoisted_1$
|
|
30129
|
-
const _hoisted_2$
|
|
30130
|
-
const _hoisted_3$
|
|
30131
|
-
const _hoisted_4$
|
|
30132
|
-
const _hoisted_5$
|
|
30133
|
-
const _sfc_main$
|
|
30139
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
30140
|
+
const _hoisted_2$R = { key: 0 };
|
|
30141
|
+
const _hoisted_3$D = { key: 1 };
|
|
30142
|
+
const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
|
|
30143
|
+
const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
|
|
30144
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
30134
30145
|
__name: "SearchBoxProductCustom",
|
|
30135
30146
|
props: {
|
|
30136
30147
|
item: {},
|
|
@@ -30156,20 +30167,20 @@ and ensure you are accounting for this risk.
|
|
|
30156
30167
|
key: 0,
|
|
30157
30168
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
30158
30169
|
innerHTML: text.value
|
|
30159
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30170
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30160
30171
|
key: 1,
|
|
30161
30172
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30162
30173
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30163
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
30164
|
-
createBaseVNode("div", _hoisted_4$
|
|
30165
|
-
createBaseVNode("div", _hoisted_5$
|
|
30174
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
30175
|
+
createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
|
|
30176
|
+
createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
|
|
30166
30177
|
]))
|
|
30167
30178
|
], 16));
|
|
30168
30179
|
};
|
|
30169
30180
|
}
|
|
30170
30181
|
});
|
|
30171
|
-
const _hoisted_1$
|
|
30172
|
-
const _sfc_main$
|
|
30182
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
30183
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
30173
30184
|
__name: "SearchBoxProductCustomHtml",
|
|
30174
30185
|
props: {
|
|
30175
30186
|
item: {},
|
|
@@ -30194,7 +30205,7 @@ and ensure you are accounting for this risk.
|
|
|
30194
30205
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30195
30206
|
class: className.value,
|
|
30196
30207
|
innerHTML: text.value
|
|
30197
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30208
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1c);
|
|
30198
30209
|
};
|
|
30199
30210
|
}
|
|
30200
30211
|
});
|
|
@@ -30252,7 +30263,9 @@ and ensure you are accounting for this risk.
|
|
|
30252
30263
|
const loadingFacets = ref(false);
|
|
30253
30264
|
const loadingRefiners = ref(false);
|
|
30254
30265
|
const loadingRelatedQueries = ref(false);
|
|
30255
|
-
const
|
|
30266
|
+
const isFilterSidebarVisible = ref(false);
|
|
30267
|
+
const isSidebarClosing = ref(false);
|
|
30268
|
+
const isSortingSidebarVisible = ref(false);
|
|
30256
30269
|
const relatedCategoryChildren = ref([]);
|
|
30257
30270
|
const lastRequestId = ref("");
|
|
30258
30271
|
const searchRequestResults = ref({});
|
|
@@ -30334,16 +30347,36 @@ and ensure you are accounting for this risk.
|
|
|
30334
30347
|
return hasResults.value && ((_a25 = searchResult.value.offset) != null ? _a25 : 0) >= totalItems.value;
|
|
30335
30348
|
}
|
|
30336
30349
|
);
|
|
30350
|
+
const toggleSidebarState = ({
|
|
30351
|
+
visible,
|
|
30352
|
+
sidebar = "filter"
|
|
30353
|
+
}) => {
|
|
30354
|
+
if (sidebar === "sorting") {
|
|
30355
|
+
isSortingSidebarVisible.value = visible;
|
|
30356
|
+
return;
|
|
30357
|
+
}
|
|
30358
|
+
isFilterSidebarVisible.value = visible;
|
|
30359
|
+
};
|
|
30337
30360
|
const setSidebarState = ({
|
|
30338
30361
|
visible,
|
|
30339
|
-
disableBodyScrolling = true
|
|
30362
|
+
disableBodyScrolling = true,
|
|
30363
|
+
sidebar = "filter"
|
|
30340
30364
|
}) => {
|
|
30365
|
+
var _a25, _b25, _c, _d;
|
|
30341
30366
|
if (visible && disableBodyScrolling) {
|
|
30342
30367
|
disableBodyScroll();
|
|
30343
30368
|
} else {
|
|
30344
30369
|
enableBodyScroll();
|
|
30345
30370
|
}
|
|
30346
|
-
|
|
30371
|
+
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)) {
|
|
30372
|
+
toggleSidebarState({ visible, sidebar });
|
|
30373
|
+
} else {
|
|
30374
|
+
isSidebarClosing.value = true;
|
|
30375
|
+
setTimeout(() => {
|
|
30376
|
+
toggleSidebarState({ visible, sidebar });
|
|
30377
|
+
isSidebarClosing.value = false;
|
|
30378
|
+
}, searchResultOptions.value.filters.facets.style.drawer.sidebarCloseDelay);
|
|
30379
|
+
}
|
|
30347
30380
|
};
|
|
30348
30381
|
const queryFacet = (_0) => __async2(null, [_0], function* ({ queryKey, facetKey }) {
|
|
30349
30382
|
var _a25, _b25, _c, _d;
|
|
@@ -30445,13 +30478,28 @@ and ensure you are accounting for this risk.
|
|
|
30445
30478
|
const setRelatedCategoryChildren = (children) => {
|
|
30446
30479
|
relatedCategoryChildren.value = [...children];
|
|
30447
30480
|
};
|
|
30481
|
+
const preconfiguredRelatedQueryKeys = computed(() => {
|
|
30482
|
+
var _a25, _b25, _c, _d, _e;
|
|
30483
|
+
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 : [];
|
|
30484
|
+
});
|
|
30485
|
+
const relatedQueryFacetKeys = computed(() => {
|
|
30486
|
+
var _a25, _b25, _c;
|
|
30487
|
+
const keysFromRelatedResults = (_c = (_b25 = (_a25 = relatedQueriesResult.value) == null ? void 0 : _a25.relatedQueries) == null ? void 0 : _b25.map((rq) => rq.facetKey)) != null ? _c : [];
|
|
30488
|
+
return Array.from(/* @__PURE__ */ new Set([...preconfiguredRelatedQueryKeys.value, ...keysFromRelatedResults]));
|
|
30489
|
+
});
|
|
30448
30490
|
const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(null, null, function* () {
|
|
30449
|
-
var _a25, _b25;
|
|
30491
|
+
var _a25, _b25, _c;
|
|
30450
30492
|
loadingRelatedQueries.value = true;
|
|
30451
30493
|
const context = getLupaTrackingContext();
|
|
30452
30494
|
const searchText = (_b25 = (_a25 = result2.suggestedSearchText) != null ? _a25 : result2.searchText) != null ? _b25 : "";
|
|
30495
|
+
const publicQueryFiltersWithoutRelatedKeys = __spreadValues2({}, (_c = publicQuery.filters) != null ? _c : {});
|
|
30496
|
+
relatedQueryFacetKeys.value.forEach((facetKey) => {
|
|
30497
|
+
delete publicQueryFiltersWithoutRelatedKeys[facetKey];
|
|
30498
|
+
});
|
|
30499
|
+
const hasRemainingFilters = Object.keys(publicQueryFiltersWithoutRelatedKeys != null ? publicQueryFiltersWithoutRelatedKeys : {}).length > 0;
|
|
30453
30500
|
const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
|
|
30454
|
-
searchText
|
|
30501
|
+
searchText,
|
|
30502
|
+
filters: hasRemainingFilters ? publicQueryFiltersWithoutRelatedKeys : void 0
|
|
30455
30503
|
}), context), {
|
|
30456
30504
|
modifiers: { facets: false, refiners: true }
|
|
30457
30505
|
});
|
|
@@ -30467,7 +30515,9 @@ and ensure you are accounting for this risk.
|
|
|
30467
30515
|
});
|
|
30468
30516
|
});
|
|
30469
30517
|
return {
|
|
30470
|
-
|
|
30518
|
+
isFilterSidebarVisible,
|
|
30519
|
+
isSortingSidebarVisible,
|
|
30520
|
+
isSidebarClosing,
|
|
30471
30521
|
searchResult,
|
|
30472
30522
|
columnCount,
|
|
30473
30523
|
addToCartAmount,
|
|
@@ -30493,6 +30543,7 @@ and ensure you are accounting for this risk.
|
|
|
30493
30543
|
relatedQueriesResult,
|
|
30494
30544
|
relatedQueriesApiEnabled,
|
|
30495
30545
|
lastResultsSource,
|
|
30546
|
+
relatedQueryFacetKeys,
|
|
30496
30547
|
setSidebarState,
|
|
30497
30548
|
queryFacet,
|
|
30498
30549
|
setLastRequestId,
|
|
@@ -30509,12 +30560,12 @@ and ensure you are accounting for this risk.
|
|
|
30509
30560
|
setRelatedQueriesApiEnabled
|
|
30510
30561
|
};
|
|
30511
30562
|
});
|
|
30512
|
-
const _hoisted_1$
|
|
30513
|
-
const _hoisted_2$
|
|
30514
|
-
const _hoisted_3$
|
|
30515
|
-
const _hoisted_4$
|
|
30516
|
-
const _hoisted_5$
|
|
30517
|
-
const _sfc_main$
|
|
30563
|
+
const _hoisted_1$1b = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30564
|
+
const _hoisted_2$Q = { class: "lupa-search-box-product-addtocart" };
|
|
30565
|
+
const _hoisted_3$C = ["disabled"];
|
|
30566
|
+
const _hoisted_4$s = ["href"];
|
|
30567
|
+
const _hoisted_5$i = ["disabled"];
|
|
30568
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
30518
30569
|
__name: "SearchBoxProductAddToCart",
|
|
30519
30570
|
props: {
|
|
30520
30571
|
item: {},
|
|
@@ -30560,45 +30611,45 @@ and ensure you are accounting for this risk.
|
|
|
30560
30611
|
return Boolean(props.link && props.options.link);
|
|
30561
30612
|
});
|
|
30562
30613
|
return (_ctx, _cache) => {
|
|
30563
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30564
|
-
createBaseVNode("div", _hoisted_2$
|
|
30614
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
30615
|
+
createBaseVNode("div", _hoisted_2$Q, [
|
|
30565
30616
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30566
30617
|
key: 0,
|
|
30567
30618
|
class: addToCartButtonClass.value,
|
|
30568
30619
|
"data-cy": "lupa-add-to-cart",
|
|
30569
30620
|
disabled: !inStockValue.value || loading.value
|
|
30570
30621
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
30571
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
30572
|
-
], 16, _hoisted_3$
|
|
30622
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
|
|
30623
|
+
], 16, _hoisted_3$C)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
30573
30624
|
key: 1,
|
|
30574
30625
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
30575
30626
|
class: addToCartButtonClass.value,
|
|
30576
30627
|
"data-cy": "lupa-add-to-cart",
|
|
30577
30628
|
type: "button",
|
|
30578
30629
|
disabled: !inStockValue.value || loading.value
|
|
30579
|
-
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$
|
|
30630
|
+
}, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
|
|
30580
30631
|
])
|
|
30581
30632
|
]);
|
|
30582
30633
|
};
|
|
30583
30634
|
}
|
|
30584
30635
|
});
|
|
30585
|
-
const _hoisted_1$
|
|
30636
|
+
const _hoisted_1$1a = {
|
|
30586
30637
|
key: 1,
|
|
30587
30638
|
class: "lupa-search-box-element-badge-wrapper"
|
|
30588
30639
|
};
|
|
30589
30640
|
const __default__$4 = {
|
|
30590
30641
|
components: {
|
|
30591
|
-
SearchBoxProductImage: _sfc_main$
|
|
30592
|
-
SearchBoxProductTitle: _sfc_main$
|
|
30593
|
-
SearchBoxProductDescription: _sfc_main$
|
|
30594
|
-
SearchBoxProductPrice: _sfc_main$
|
|
30595
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
30596
|
-
SearchBoxProductCustom: _sfc_main$
|
|
30597
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
30598
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
30642
|
+
SearchBoxProductImage: _sfc_main$1v,
|
|
30643
|
+
SearchBoxProductTitle: _sfc_main$1u,
|
|
30644
|
+
SearchBoxProductDescription: _sfc_main$1t,
|
|
30645
|
+
SearchBoxProductPrice: _sfc_main$1s,
|
|
30646
|
+
SearchBoxProductRegularPrice: _sfc_main$1r,
|
|
30647
|
+
SearchBoxProductCustom: _sfc_main$1q,
|
|
30648
|
+
SearchBoxProductCustomHtml: _sfc_main$1p,
|
|
30649
|
+
SearchBoxProductAddToCart: _sfc_main$1o
|
|
30599
30650
|
}
|
|
30600
30651
|
};
|
|
30601
|
-
const _sfc_main$
|
|
30652
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
30602
30653
|
__name: "SearchBoxProductElement",
|
|
30603
30654
|
props: {
|
|
30604
30655
|
item: {},
|
|
@@ -30670,7 +30721,7 @@ and ensure you are accounting for this risk.
|
|
|
30670
30721
|
"dynamic-attributes": dynamicAttributes.value,
|
|
30671
30722
|
link: _ctx.link
|
|
30672
30723
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
30673
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30724
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
30674
30725
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
30675
30726
|
key: 0,
|
|
30676
30727
|
item: enhancedItem.value,
|
|
@@ -30685,14 +30736,14 @@ and ensure you are accounting for this risk.
|
|
|
30685
30736
|
};
|
|
30686
30737
|
}
|
|
30687
30738
|
}));
|
|
30688
|
-
const _hoisted_1$
|
|
30689
|
-
const _hoisted_2$
|
|
30690
|
-
const _hoisted_3$
|
|
30691
|
-
const _hoisted_4$
|
|
30739
|
+
const _hoisted_1$19 = { class: "lupa-badge-title" };
|
|
30740
|
+
const _hoisted_2$P = ["src"];
|
|
30741
|
+
const _hoisted_3$B = { key: 1 };
|
|
30742
|
+
const _hoisted_4$r = {
|
|
30692
30743
|
key: 0,
|
|
30693
30744
|
class: "lupa-badge-full-text"
|
|
30694
30745
|
};
|
|
30695
|
-
const _sfc_main$
|
|
30746
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
30696
30747
|
__name: "SearchResultGeneratedBadge",
|
|
30697
30748
|
props: {
|
|
30698
30749
|
options: {},
|
|
@@ -30725,20 +30776,20 @@ and ensure you are accounting for this risk.
|
|
|
30725
30776
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
30726
30777
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
30727
30778
|
}, [
|
|
30728
|
-
createBaseVNode("span", _hoisted_1$
|
|
30779
|
+
createBaseVNode("span", _hoisted_1$19, [
|
|
30729
30780
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
30730
30781
|
key: 0,
|
|
30731
30782
|
src: image.value
|
|
30732
|
-
}, null, 8, _hoisted_2$
|
|
30733
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
30783
|
+
}, null, 8, _hoisted_2$P)) : createCommentVNode("", true),
|
|
30784
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30734
30785
|
]),
|
|
30735
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
30786
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
30736
30787
|
], 6);
|
|
30737
30788
|
};
|
|
30738
30789
|
}
|
|
30739
30790
|
});
|
|
30740
|
-
const _hoisted_1$
|
|
30741
|
-
const _sfc_main$
|
|
30791
|
+
const _hoisted_1$18 = { class: "lupa-generated-badges" };
|
|
30792
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
30742
30793
|
__name: "SearchResultGeneratedBadges",
|
|
30743
30794
|
props: {
|
|
30744
30795
|
options: {}
|
|
@@ -30764,9 +30815,9 @@ and ensure you are accounting for this risk.
|
|
|
30764
30815
|
})).filter((b) => Boolean(b.id));
|
|
30765
30816
|
});
|
|
30766
30817
|
return (_ctx, _cache) => {
|
|
30767
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30818
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
30768
30819
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
30769
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30820
|
+
return openBlock(), createBlock(_sfc_main$1m, {
|
|
30770
30821
|
key: badge.id,
|
|
30771
30822
|
badge,
|
|
30772
30823
|
options: _ctx.options
|
|
@@ -30776,8 +30827,8 @@ and ensure you are accounting for this risk.
|
|
|
30776
30827
|
};
|
|
30777
30828
|
}
|
|
30778
30829
|
});
|
|
30779
|
-
const _hoisted_1$
|
|
30780
|
-
const _sfc_main$
|
|
30830
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
30831
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
30781
30832
|
__name: "CustomBadge",
|
|
30782
30833
|
props: {
|
|
30783
30834
|
badge: {}
|
|
@@ -30798,12 +30849,12 @@ and ensure you are accounting for this risk.
|
|
|
30798
30849
|
return openBlock(), createElementBlock("div", {
|
|
30799
30850
|
class: normalizeClass(className.value),
|
|
30800
30851
|
innerHTML: text.value
|
|
30801
|
-
}, null, 10, _hoisted_1$
|
|
30852
|
+
}, null, 10, _hoisted_1$17);
|
|
30802
30853
|
};
|
|
30803
30854
|
}
|
|
30804
30855
|
});
|
|
30805
|
-
const _hoisted_1$
|
|
30806
|
-
const _sfc_main$
|
|
30856
|
+
const _hoisted_1$16 = { class: "lupa-text-badges" };
|
|
30857
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
30807
30858
|
__name: "TextBadge",
|
|
30808
30859
|
props: {
|
|
30809
30860
|
badge: {}
|
|
@@ -30817,7 +30868,7 @@ and ensure you are accounting for this risk.
|
|
|
30817
30868
|
return badges.value.slice(0, props.badge.maxItems);
|
|
30818
30869
|
});
|
|
30819
30870
|
return (_ctx, _cache) => {
|
|
30820
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30871
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
30821
30872
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
30822
30873
|
return openBlock(), createElementBlock("div", {
|
|
30823
30874
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -30828,9 +30879,9 @@ and ensure you are accounting for this risk.
|
|
|
30828
30879
|
};
|
|
30829
30880
|
}
|
|
30830
30881
|
});
|
|
30831
|
-
const _hoisted_1$
|
|
30832
|
-
const _hoisted_2$
|
|
30833
|
-
const _sfc_main$
|
|
30882
|
+
const _hoisted_1$15 = { class: "lupa-image-badges" };
|
|
30883
|
+
const _hoisted_2$O = ["src"];
|
|
30884
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
30834
30885
|
__name: "ImageBadge",
|
|
30835
30886
|
props: {
|
|
30836
30887
|
badge: {}
|
|
@@ -30850,7 +30901,7 @@ and ensure you are accounting for this risk.
|
|
|
30850
30901
|
return `${props.badge.rootImageUrl}${src}`;
|
|
30851
30902
|
};
|
|
30852
30903
|
return (_ctx, _cache) => {
|
|
30853
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30904
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
30854
30905
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
30855
30906
|
return openBlock(), createElementBlock("div", {
|
|
30856
30907
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -30858,14 +30909,14 @@ and ensure you are accounting for this risk.
|
|
|
30858
30909
|
}, [
|
|
30859
30910
|
createBaseVNode("img", {
|
|
30860
30911
|
src: getImageUrl(item)
|
|
30861
|
-
}, null, 8, _hoisted_2$
|
|
30912
|
+
}, null, 8, _hoisted_2$O)
|
|
30862
30913
|
]);
|
|
30863
30914
|
}), 128))
|
|
30864
30915
|
]);
|
|
30865
30916
|
};
|
|
30866
30917
|
}
|
|
30867
30918
|
});
|
|
30868
|
-
const _sfc_main$
|
|
30919
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
30869
30920
|
__name: "DiscountBadge",
|
|
30870
30921
|
props: {
|
|
30871
30922
|
badge: {}
|
|
@@ -30927,16 +30978,16 @@ and ensure you are accounting for this risk.
|
|
|
30927
30978
|
};
|
|
30928
30979
|
}
|
|
30929
30980
|
});
|
|
30930
|
-
const _hoisted_1$
|
|
30981
|
+
const _hoisted_1$14 = { id: "lupa-search-results-badges" };
|
|
30931
30982
|
const __default__$3 = {
|
|
30932
30983
|
components: {
|
|
30933
|
-
CustomBadge: _sfc_main$
|
|
30934
|
-
TextBadge: _sfc_main$
|
|
30935
|
-
ImageBadge: _sfc_main$
|
|
30936
|
-
DiscountBadge: _sfc_main$
|
|
30984
|
+
CustomBadge: _sfc_main$1k,
|
|
30985
|
+
TextBadge: _sfc_main$1j,
|
|
30986
|
+
ImageBadge: _sfc_main$1i,
|
|
30987
|
+
DiscountBadge: _sfc_main$1h
|
|
30937
30988
|
}
|
|
30938
30989
|
};
|
|
30939
|
-
const _sfc_main$
|
|
30990
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
30940
30991
|
__name: "SearchResultsBadgeWrapper",
|
|
30941
30992
|
props: {
|
|
30942
30993
|
position: {},
|
|
@@ -30999,7 +31050,7 @@ and ensure you are accounting for this risk.
|
|
|
30999
31050
|
}
|
|
31000
31051
|
};
|
|
31001
31052
|
return (_ctx, _cache) => {
|
|
31002
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31053
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
31003
31054
|
createBaseVNode("div", {
|
|
31004
31055
|
id: "lupa-badges",
|
|
31005
31056
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -31010,7 +31061,7 @@ and ensure you are accounting for this risk.
|
|
|
31010
31061
|
badge
|
|
31011
31062
|
}, null, 8, ["badge"]);
|
|
31012
31063
|
}), 128)),
|
|
31013
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
31064
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
31014
31065
|
key: 0,
|
|
31015
31066
|
options: _ctx.options
|
|
31016
31067
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -31019,13 +31070,13 @@ and ensure you are accounting for this risk.
|
|
|
31019
31070
|
};
|
|
31020
31071
|
}
|
|
31021
31072
|
}));
|
|
31022
|
-
const _hoisted_1$
|
|
31023
|
-
const _hoisted_2$
|
|
31024
|
-
const _hoisted_3$
|
|
31073
|
+
const _hoisted_1$13 = ["href"];
|
|
31074
|
+
const _hoisted_2$N = { class: "lupa-search-box-product-details-section" };
|
|
31075
|
+
const _hoisted_3$A = {
|
|
31025
31076
|
key: 0,
|
|
31026
31077
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
31027
31078
|
};
|
|
31028
|
-
const _sfc_main$
|
|
31079
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
31029
31080
|
__name: "SearchBoxProduct",
|
|
31030
31081
|
props: {
|
|
31031
31082
|
item: {},
|
|
@@ -31131,7 +31182,7 @@ and ensure you are accounting for this risk.
|
|
|
31131
31182
|
style: normalizeStyle(imageStyleOverride.value)
|
|
31132
31183
|
}, [
|
|
31133
31184
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
31134
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31185
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
31135
31186
|
class: "lupa-search-box-product-element",
|
|
31136
31187
|
key: element.key,
|
|
31137
31188
|
item: _ctx.item,
|
|
@@ -31141,10 +31192,10 @@ and ensure you are accounting for this risk.
|
|
|
31141
31192
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
31142
31193
|
}), 128))
|
|
31143
31194
|
], 4),
|
|
31144
|
-
createBaseVNode("div", _hoisted_2$
|
|
31195
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
31145
31196
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
31146
31197
|
var _a25;
|
|
31147
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31198
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
31148
31199
|
class: "lupa-search-box-product-element",
|
|
31149
31200
|
key: element.key,
|
|
31150
31201
|
item: _ctx.item,
|
|
@@ -31155,7 +31206,7 @@ and ensure you are accounting for this risk.
|
|
|
31155
31206
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
31156
31207
|
name: "badges",
|
|
31157
31208
|
fn: withCtx(() => [
|
|
31158
|
-
createVNode(_sfc_main$
|
|
31209
|
+
createVNode(_sfc_main$1g, {
|
|
31159
31210
|
options: badgeOptions.value,
|
|
31160
31211
|
position: "card"
|
|
31161
31212
|
}, null, 8, ["options"])
|
|
@@ -31171,7 +31222,7 @@ and ensure you are accounting for this risk.
|
|
|
31171
31222
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
31172
31223
|
}, [
|
|
31173
31224
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
31174
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31225
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
31175
31226
|
class: "lupa-search-box-product-element",
|
|
31176
31227
|
key: element.key,
|
|
31177
31228
|
item: _ctx.item,
|
|
@@ -31183,8 +31234,8 @@ and ensure you are accounting for this risk.
|
|
|
31183
31234
|
}), 128))
|
|
31184
31235
|
], 2);
|
|
31185
31236
|
}), 128)),
|
|
31186
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
31187
|
-
createVNode(_sfc_main$
|
|
31237
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
31238
|
+
createVNode(_sfc_main$1n, {
|
|
31188
31239
|
class: "lupa-search-box-product-element",
|
|
31189
31240
|
item: _ctx.item,
|
|
31190
31241
|
element: addToCartElement.value,
|
|
@@ -31193,7 +31244,7 @@ and ensure you are accounting for this risk.
|
|
|
31193
31244
|
isInStock: isInStock.value
|
|
31194
31245
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
31195
31246
|
])) : createCommentVNode("", true)
|
|
31196
|
-
], 16, _hoisted_1$
|
|
31247
|
+
], 16, _hoisted_1$13);
|
|
31197
31248
|
};
|
|
31198
31249
|
}
|
|
31199
31250
|
});
|
|
@@ -31265,8 +31316,8 @@ and ensure you are accounting for this risk.
|
|
|
31265
31316
|
};
|
|
31266
31317
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
31267
31318
|
});
|
|
31268
|
-
const _hoisted_1
|
|
31269
|
-
const _sfc_main$
|
|
31319
|
+
const _hoisted_1$12 = { id: "lupa-search-box-products" };
|
|
31320
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
31270
31321
|
__name: "SearchBoxProducts",
|
|
31271
31322
|
props: {
|
|
31272
31323
|
items: {},
|
|
@@ -31338,7 +31389,7 @@ and ensure you are accounting for this risk.
|
|
|
31338
31389
|
}
|
|
31339
31390
|
};
|
|
31340
31391
|
return (_ctx, _cache) => {
|
|
31341
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
31392
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
31342
31393
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
31343
31394
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
31344
31395
|
key: index,
|
|
@@ -31350,7 +31401,7 @@ and ensure you are accounting for this risk.
|
|
|
31350
31401
|
itemClicked: handleProductClick
|
|
31351
31402
|
});
|
|
31352
31403
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
31353
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31404
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
31354
31405
|
key: index,
|
|
31355
31406
|
item,
|
|
31356
31407
|
panelOptions: _ctx.panelOptions,
|
|
@@ -31365,9 +31416,9 @@ and ensure you are accounting for this risk.
|
|
|
31365
31416
|
};
|
|
31366
31417
|
}
|
|
31367
31418
|
});
|
|
31368
|
-
const _hoisted_1$
|
|
31369
|
-
const _hoisted_2$
|
|
31370
|
-
const _sfc_main$
|
|
31419
|
+
const _hoisted_1$11 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
31420
|
+
const _hoisted_2$M = { key: 0 };
|
|
31421
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
31371
31422
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
31372
31423
|
props: {
|
|
31373
31424
|
options: {},
|
|
@@ -31398,13 +31449,13 @@ and ensure you are accounting for this risk.
|
|
|
31398
31449
|
emit2("goToResults");
|
|
31399
31450
|
};
|
|
31400
31451
|
return (_ctx, _cache) => {
|
|
31401
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31452
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
31402
31453
|
createBaseVNode("button", {
|
|
31403
31454
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
31404
31455
|
onClick: goToResults
|
|
31405
31456
|
}, [
|
|
31406
31457
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
31407
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31458
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$M, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
31408
31459
|
])
|
|
31409
31460
|
]);
|
|
31410
31461
|
};
|
|
@@ -31500,7 +31551,7 @@ and ensure you are accounting for this risk.
|
|
|
31500
31551
|
}
|
|
31501
31552
|
return parsedObject;
|
|
31502
31553
|
};
|
|
31503
|
-
const _sfc_main$
|
|
31554
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
31504
31555
|
__name: "SearchBoxProductsWrapper",
|
|
31505
31556
|
props: {
|
|
31506
31557
|
panel: {},
|
|
@@ -31570,7 +31621,7 @@ and ensure you are accounting for this risk.
|
|
|
31570
31621
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
31571
31622
|
return (_ctx, _cache) => {
|
|
31572
31623
|
var _a25, _b25;
|
|
31573
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31624
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
31574
31625
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31575
31626
|
panelOptions: _ctx.panel,
|
|
31576
31627
|
labels: _ctx.labels,
|
|
@@ -31580,7 +31631,7 @@ and ensure you are accounting for this risk.
|
|
|
31580
31631
|
default: withCtx(() => {
|
|
31581
31632
|
var _a26;
|
|
31582
31633
|
return [
|
|
31583
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
31634
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1d, {
|
|
31584
31635
|
key: 0,
|
|
31585
31636
|
options: _ctx.searchBoxOptions,
|
|
31586
31637
|
panel: _ctx.panel,
|
|
@@ -31601,7 +31652,7 @@ and ensure you are accounting for this risk.
|
|
|
31601
31652
|
};
|
|
31602
31653
|
}
|
|
31603
31654
|
});
|
|
31604
|
-
const _sfc_main$
|
|
31655
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
31605
31656
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
31606
31657
|
props: {
|
|
31607
31658
|
panel: {},
|
|
@@ -31673,7 +31724,7 @@ and ensure you are accounting for this risk.
|
|
|
31673
31724
|
});
|
|
31674
31725
|
return (_ctx, _cache) => {
|
|
31675
31726
|
var _a25, _b25;
|
|
31676
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31727
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
31677
31728
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31678
31729
|
panelOptions: documentPanelOptions.value,
|
|
31679
31730
|
labels: _ctx.labels,
|
|
@@ -31691,31 +31742,31 @@ and ensure you are accounting for this risk.
|
|
|
31691
31742
|
};
|
|
31692
31743
|
}
|
|
31693
31744
|
});
|
|
31694
|
-
const _hoisted_1$
|
|
31745
|
+
const _hoisted_1$10 = {
|
|
31695
31746
|
key: 0,
|
|
31696
31747
|
id: "lupa-search-box-panel"
|
|
31697
31748
|
};
|
|
31698
|
-
const _hoisted_2$
|
|
31699
|
-
const _hoisted_3$
|
|
31749
|
+
const _hoisted_2$L = ["data-cy"];
|
|
31750
|
+
const _hoisted_3$z = {
|
|
31700
31751
|
key: 0,
|
|
31701
31752
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31702
31753
|
};
|
|
31703
|
-
const _hoisted_4$
|
|
31754
|
+
const _hoisted_4$q = {
|
|
31704
31755
|
key: 1,
|
|
31705
31756
|
class: "lupa-panel-title"
|
|
31706
31757
|
};
|
|
31707
|
-
const _hoisted_5$
|
|
31758
|
+
const _hoisted_5$h = {
|
|
31708
31759
|
key: 1,
|
|
31709
31760
|
id: "lupa-search-box-panel"
|
|
31710
31761
|
};
|
|
31711
31762
|
const __default__$2 = {
|
|
31712
31763
|
components: {
|
|
31713
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
31714
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
31715
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
31764
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1x,
|
|
31765
|
+
SearchBoxProductsWrapper: _sfc_main$1c,
|
|
31766
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$1b
|
|
31716
31767
|
}
|
|
31717
31768
|
};
|
|
31718
|
-
const _sfc_main$
|
|
31769
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
31719
31770
|
__name: "SearchBoxMainPanel",
|
|
31720
31771
|
props: {
|
|
31721
31772
|
options: {},
|
|
@@ -31746,6 +31797,7 @@ and ensure you are accounting for this risk.
|
|
|
31746
31797
|
const searchBoxStore = useSearchBoxStore();
|
|
31747
31798
|
const { suggestionResults, hasAnyResults, panelItemCounts } = storeToRefs(searchBoxStore);
|
|
31748
31799
|
const emit2 = __emit;
|
|
31800
|
+
const isSearchEmpty = computed(() => !props.inputValue || props.inputValue.length < 1);
|
|
31749
31801
|
const displayResults = computed(() => {
|
|
31750
31802
|
var _a25;
|
|
31751
31803
|
return ((_a25 = props.inputValue) == null ? void 0 : _a25.length) >= props.options.minInputLength;
|
|
@@ -31756,6 +31808,12 @@ and ensure you are accounting for this risk.
|
|
|
31756
31808
|
return Boolean(props.options.history) && ((_a25 = props.inputValue) == null ? void 0 : _a25.length) < 1 && props.options.minInputLength > 0;
|
|
31757
31809
|
}
|
|
31758
31810
|
);
|
|
31811
|
+
const displayShowMoreResultsButton = computed(() => {
|
|
31812
|
+
if (isSearchEmpty.value && props.options.hideMoreResultsButtonOnEmptyQuery) {
|
|
31813
|
+
return false;
|
|
31814
|
+
}
|
|
31815
|
+
return hasAnyResults.value || !props.options.hideMoreResultsButtonOnNoResults;
|
|
31816
|
+
});
|
|
31759
31817
|
const displayPanels = computed(
|
|
31760
31818
|
() => props.isSearchContainer ? panels.value.filter((p2) => p2.type === SearchBoxPanelType.SUGGESTION) : panels.value
|
|
31761
31819
|
);
|
|
@@ -31873,7 +31931,7 @@ and ensure you are accounting for this risk.
|
|
|
31873
31931
|
ref_key: "panelContainer",
|
|
31874
31932
|
ref: panelContainer
|
|
31875
31933
|
}, [
|
|
31876
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31934
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
31877
31935
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
31878
31936
|
key: 0,
|
|
31879
31937
|
class: "lupa-search-box-close-panel",
|
|
@@ -31895,8 +31953,8 @@ and ensure you are accounting for this risk.
|
|
|
31895
31953
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
31896
31954
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
31897
31955
|
}, [
|
|
31898
|
-
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
31899
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
31956
|
+
((_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),
|
|
31957
|
+
((_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),
|
|
31900
31958
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
31901
31959
|
key: 2,
|
|
31902
31960
|
panel,
|
|
@@ -31918,21 +31976,21 @@ and ensure you are accounting for this risk.
|
|
|
31918
31976
|
key: "0"
|
|
31919
31977
|
} : void 0
|
|
31920
31978
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
31921
|
-
], 14, _hoisted_2$
|
|
31979
|
+
], 14, _hoisted_2$L);
|
|
31922
31980
|
}), 128))
|
|
31923
31981
|
], 4),
|
|
31924
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
31982
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
31925
31983
|
key: 1,
|
|
31926
31984
|
labels: labels.value
|
|
31927
31985
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
31928
|
-
|
|
31986
|
+
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
|
|
31929
31987
|
key: 2,
|
|
31930
31988
|
labels: labels.value,
|
|
31931
31989
|
options: _ctx.options,
|
|
31932
31990
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
31933
31991
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
31934
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
31935
|
-
createVNode(_sfc_main$
|
|
31992
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
|
|
31993
|
+
createVNode(_sfc_main$1B, {
|
|
31936
31994
|
options: _ctx.options.history,
|
|
31937
31995
|
history: history.value,
|
|
31938
31996
|
onGoToResults: handleGoToResults,
|
|
@@ -31957,8 +32015,8 @@ and ensure you are accounting for this risk.
|
|
|
31957
32015
|
const elements = getElements(triggers);
|
|
31958
32016
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
31959
32017
|
};
|
|
31960
|
-
const _hoisted_1
|
|
31961
|
-
const _sfc_main$
|
|
32018
|
+
const _hoisted_1$$ = { class: "lupa-search-box-wrapper" };
|
|
32019
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
31962
32020
|
__name: "SearchBox",
|
|
31963
32021
|
props: {
|
|
31964
32022
|
options: {},
|
|
@@ -32009,6 +32067,7 @@ and ensure you are accounting for this risk.
|
|
|
32009
32067
|
"debounce",
|
|
32010
32068
|
"showTotalCount",
|
|
32011
32069
|
"hideMoreResultsButtonOnNoResults",
|
|
32070
|
+
"hideMoreResultsButtonOnEmptyQuery",
|
|
32012
32071
|
"showNoResultsPanel",
|
|
32013
32072
|
"expandOnSinglePanel",
|
|
32014
32073
|
"showMoreResultsButton"
|
|
@@ -32280,8 +32339,8 @@ and ensure you are accounting for this risk.
|
|
|
32280
32339
|
id: "lupa-search-box",
|
|
32281
32340
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
32282
32341
|
}, [
|
|
32283
|
-
createBaseVNode("div", _hoisted_1
|
|
32284
|
-
createVNode(_sfc_main$
|
|
32342
|
+
createBaseVNode("div", _hoisted_1$$, [
|
|
32343
|
+
createVNode(_sfc_main$1E, {
|
|
32285
32344
|
options: inputOptions.value,
|
|
32286
32345
|
suggestedValue: suggestedValue.value,
|
|
32287
32346
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -32294,7 +32353,7 @@ and ensure you are accounting for this risk.
|
|
|
32294
32353
|
onSearch: handleSearch,
|
|
32295
32354
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
32296
32355
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
32297
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
32356
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1a, {
|
|
32298
32357
|
key: 0,
|
|
32299
32358
|
options: panelOptions.value,
|
|
32300
32359
|
inputValue: inputValue.value,
|
|
@@ -32382,20 +32441,20 @@ and ensure you are accounting for this risk.
|
|
|
32382
32441
|
}
|
|
32383
32442
|
return searchParams;
|
|
32384
32443
|
};
|
|
32385
|
-
const _hoisted_1$
|
|
32444
|
+
const _hoisted_1$_ = {
|
|
32386
32445
|
key: 0,
|
|
32387
32446
|
id: "lupa-search-results-did-you-mean"
|
|
32388
32447
|
};
|
|
32389
|
-
const _hoisted_2$
|
|
32448
|
+
const _hoisted_2$K = {
|
|
32390
32449
|
key: 0,
|
|
32391
32450
|
"data-cy": "suggested-search-text-label"
|
|
32392
32451
|
};
|
|
32393
|
-
const _hoisted_3$
|
|
32452
|
+
const _hoisted_3$y = {
|
|
32394
32453
|
key: 1,
|
|
32395
32454
|
"data-cy": "did-you-mean-label"
|
|
32396
32455
|
};
|
|
32397
|
-
const _hoisted_4$
|
|
32398
|
-
const _sfc_main$
|
|
32456
|
+
const _hoisted_4$p = { key: 1 };
|
|
32457
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
32399
32458
|
__name: "SearchResultsDidYouMean",
|
|
32400
32459
|
props: {
|
|
32401
32460
|
labels: {}
|
|
@@ -32427,8 +32486,8 @@ and ensure you are accounting for this risk.
|
|
|
32427
32486
|
paramStore.goToResults({ searchText, facet });
|
|
32428
32487
|
};
|
|
32429
32488
|
return (_ctx, _cache) => {
|
|
32430
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32431
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32489
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
32490
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
|
|
32432
32491
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
32433
32492
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32434
32493
|
createBaseVNode("span", {
|
|
@@ -32437,7 +32496,7 @@ and ensure you are accounting for this risk.
|
|
|
32437
32496
|
]);
|
|
32438
32497
|
}), 128))
|
|
32439
32498
|
])) : createCommentVNode("", true),
|
|
32440
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
32499
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
32441
32500
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
32442
32501
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32443
32502
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -32445,7 +32504,7 @@ and ensure you are accounting for this risk.
|
|
|
32445
32504
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
32446
32505
|
"data-cy": "did-you-mean-value",
|
|
32447
32506
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
32448
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
32507
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
|
|
32449
32508
|
]);
|
|
32450
32509
|
}), 128))
|
|
32451
32510
|
])) : createCommentVNode("", true)
|
|
@@ -32453,12 +32512,12 @@ and ensure you are accounting for this risk.
|
|
|
32453
32512
|
};
|
|
32454
32513
|
}
|
|
32455
32514
|
});
|
|
32456
|
-
const _hoisted_1$
|
|
32515
|
+
const _hoisted_1$Z = {
|
|
32457
32516
|
key: 0,
|
|
32458
32517
|
class: "lupa-search-results-summary"
|
|
32459
32518
|
};
|
|
32460
|
-
const _hoisted_2$
|
|
32461
|
-
const _sfc_main$
|
|
32519
|
+
const _hoisted_2$J = ["innerHTML"];
|
|
32520
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
32462
32521
|
__name: "SearchResultsSummary",
|
|
32463
32522
|
props: {
|
|
32464
32523
|
label: {},
|
|
@@ -32473,8 +32532,8 @@ and ensure you are accounting for this risk.
|
|
|
32473
32532
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
32474
32533
|
});
|
|
32475
32534
|
return (_ctx, _cache) => {
|
|
32476
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32477
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
32535
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
32536
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$J),
|
|
32478
32537
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
32479
32538
|
key: 0,
|
|
32480
32539
|
class: "lupa-filter-clear",
|
|
@@ -32485,19 +32544,19 @@ and ensure you are accounting for this risk.
|
|
|
32485
32544
|
};
|
|
32486
32545
|
}
|
|
32487
32546
|
});
|
|
32488
|
-
const _hoisted_1$
|
|
32547
|
+
const _hoisted_1$Y = {
|
|
32489
32548
|
key: 0,
|
|
32490
32549
|
class: "lupa-result-page-title",
|
|
32491
32550
|
"data-cy": "lupa-result-page-title"
|
|
32492
32551
|
};
|
|
32493
|
-
const _hoisted_2$
|
|
32494
|
-
const _hoisted_3$
|
|
32552
|
+
const _hoisted_2$I = { key: 0 };
|
|
32553
|
+
const _hoisted_3$x = {
|
|
32495
32554
|
key: 1,
|
|
32496
32555
|
class: "lupa-results-total-count"
|
|
32497
32556
|
};
|
|
32498
|
-
const _hoisted_4$
|
|
32499
|
-
const _hoisted_5$
|
|
32500
|
-
const _sfc_main$
|
|
32557
|
+
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
32558
|
+
const _hoisted_5$g = ["innerHTML"];
|
|
32559
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
32501
32560
|
__name: "SearchResultsTitle",
|
|
32502
32561
|
props: {
|
|
32503
32562
|
options: {},
|
|
@@ -32540,16 +32599,16 @@ and ensure you are accounting for this risk.
|
|
|
32540
32599
|
});
|
|
32541
32600
|
return (_ctx, _cache) => {
|
|
32542
32601
|
return openBlock(), createElementBlock("div", null, [
|
|
32543
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
32602
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Y, [
|
|
32544
32603
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32545
|
-
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
32546
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
32604
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32605
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
32547
32606
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32548
|
-
createBaseVNode("span", _hoisted_4$
|
|
32607
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
32549
32608
|
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32550
32609
|
])) : createCommentVNode("", true)
|
|
32551
32610
|
])) : createCommentVNode("", true),
|
|
32552
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
32611
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$17, {
|
|
32553
32612
|
key: 1,
|
|
32554
32613
|
label: summaryLabel.value
|
|
32555
32614
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -32557,20 +32616,20 @@ and ensure you are accounting for this risk.
|
|
|
32557
32616
|
key: 2,
|
|
32558
32617
|
class: "lupa-result-page-description-top",
|
|
32559
32618
|
innerHTML: descriptionTop.value
|
|
32560
|
-
}, null, 8, _hoisted_5$
|
|
32619
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
32561
32620
|
]);
|
|
32562
32621
|
};
|
|
32563
32622
|
}
|
|
32564
32623
|
});
|
|
32565
|
-
const _hoisted_1$
|
|
32624
|
+
const _hoisted_1$X = {
|
|
32566
32625
|
class: "lupa-current-filter-label",
|
|
32567
32626
|
"data-cy": "lupa-current-filter-label"
|
|
32568
32627
|
};
|
|
32569
|
-
const _hoisted_2$
|
|
32628
|
+
const _hoisted_2$H = {
|
|
32570
32629
|
class: "lupa-current-filter-value",
|
|
32571
32630
|
"data-cy": "lupa-current-filter-value"
|
|
32572
32631
|
};
|
|
32573
|
-
const _sfc_main
|
|
32632
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
32574
32633
|
__name: "CurrentFilterDisplay",
|
|
32575
32634
|
props: {
|
|
32576
32635
|
filter: {}
|
|
@@ -32612,23 +32671,23 @@ and ensure you are accounting for this risk.
|
|
|
32612
32671
|
onClick: handleClick,
|
|
32613
32672
|
"aria-label": "Remove filter"
|
|
32614
32673
|
}, "⨉"),
|
|
32615
|
-
createBaseVNode("div", _hoisted_1$
|
|
32616
|
-
createBaseVNode("div", _hoisted_2$
|
|
32674
|
+
createBaseVNode("div", _hoisted_1$X, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32675
|
+
createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32617
32676
|
], 2);
|
|
32618
32677
|
};
|
|
32619
32678
|
}
|
|
32620
32679
|
});
|
|
32621
|
-
const _hoisted_1$
|
|
32622
|
-
const _hoisted_2$
|
|
32680
|
+
const _hoisted_1$W = { class: "lupa-filter-title-text" };
|
|
32681
|
+
const _hoisted_2$G = {
|
|
32623
32682
|
key: 0,
|
|
32624
32683
|
class: "lupa-filter-count"
|
|
32625
32684
|
};
|
|
32626
|
-
const _hoisted_3$
|
|
32685
|
+
const _hoisted_3$w = {
|
|
32627
32686
|
key: 0,
|
|
32628
32687
|
class: "filter-values"
|
|
32629
32688
|
};
|
|
32630
|
-
const _hoisted_4$
|
|
32631
|
-
const _sfc_main$
|
|
32689
|
+
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
32690
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
32632
32691
|
__name: "CurrentFilters",
|
|
32633
32692
|
props: {
|
|
32634
32693
|
options: {},
|
|
@@ -32709,19 +32768,19 @@ and ensure you are accounting for this risk.
|
|
|
32709
32768
|
class: "lupa-current-filter-title",
|
|
32710
32769
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32711
32770
|
}, [
|
|
32712
|
-
createBaseVNode("div", _hoisted_1$
|
|
32771
|
+
createBaseVNode("div", _hoisted_1$W, [
|
|
32713
32772
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32714
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
32773
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32715
32774
|
]),
|
|
32716
32775
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
32717
32776
|
key: 0,
|
|
32718
32777
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
32719
32778
|
}, null, 2)) : createCommentVNode("", true)
|
|
32720
32779
|
]),
|
|
32721
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
32722
|
-
createBaseVNode("div", _hoisted_4$
|
|
32780
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
32781
|
+
createBaseVNode("div", _hoisted_4$n, [
|
|
32723
32782
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32724
|
-
return openBlock(), createBlock(_sfc_main
|
|
32783
|
+
return openBlock(), createBlock(_sfc_main$15, {
|
|
32725
32784
|
key: filter.key + "_" + filter.value,
|
|
32726
32785
|
filter,
|
|
32727
32786
|
units: units.value,
|
|
@@ -32739,8 +32798,8 @@ and ensure you are accounting for this risk.
|
|
|
32739
32798
|
};
|
|
32740
32799
|
}
|
|
32741
32800
|
});
|
|
32742
|
-
const _hoisted_1$
|
|
32743
|
-
const _sfc_main$
|
|
32801
|
+
const _hoisted_1$V = ["href"];
|
|
32802
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
32744
32803
|
__name: "CategoryFilterItem",
|
|
32745
32804
|
props: {
|
|
32746
32805
|
options: {},
|
|
@@ -32777,20 +32836,20 @@ and ensure you are accounting for this risk.
|
|
|
32777
32836
|
"data-cy": "lupa-child-category-item",
|
|
32778
32837
|
href: urlLink.value,
|
|
32779
32838
|
onClick: handleNavigation
|
|
32780
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
32839
|
+
}, toDisplayString(title.value), 9, _hoisted_1$V)
|
|
32781
32840
|
], 2);
|
|
32782
32841
|
};
|
|
32783
32842
|
}
|
|
32784
32843
|
});
|
|
32785
|
-
const _hoisted_1$
|
|
32844
|
+
const _hoisted_1$U = {
|
|
32786
32845
|
class: "lupa-category-filter",
|
|
32787
32846
|
"data-cy": "lupa-category-filter"
|
|
32788
32847
|
};
|
|
32789
|
-
const _hoisted_2$
|
|
32790
|
-
const _hoisted_3$
|
|
32791
|
-
const _hoisted_4$
|
|
32792
|
-
const _hoisted_5$
|
|
32793
|
-
const _sfc_main$
|
|
32848
|
+
const _hoisted_2$F = { class: "lupa-category-back" };
|
|
32849
|
+
const _hoisted_3$v = ["href"];
|
|
32850
|
+
const _hoisted_4$m = ["href"];
|
|
32851
|
+
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
32852
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
32794
32853
|
__name: "CategoryFilter",
|
|
32795
32854
|
props: {
|
|
32796
32855
|
options: {}
|
|
@@ -32878,14 +32937,14 @@ and ensure you are accounting for this risk.
|
|
|
32878
32937
|
};
|
|
32879
32938
|
__expose({ fetch: fetch2 });
|
|
32880
32939
|
return (_ctx, _cache) => {
|
|
32881
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32882
|
-
createBaseVNode("div", _hoisted_2$
|
|
32940
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
32941
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
32883
32942
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
32884
32943
|
key: 0,
|
|
32885
32944
|
"data-cy": "lupa-category-back",
|
|
32886
32945
|
href: backUrlLink.value,
|
|
32887
32946
|
onClick: handleNavigationBack
|
|
32888
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
32947
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$v)) : createCommentVNode("", true)
|
|
32889
32948
|
]),
|
|
32890
32949
|
createBaseVNode("div", {
|
|
32891
32950
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -32895,11 +32954,11 @@ and ensure you are accounting for this risk.
|
|
|
32895
32954
|
href: parentUrlLink.value,
|
|
32896
32955
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
32897
32956
|
onClick: handleNavigationParent
|
|
32898
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
32957
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
|
|
32899
32958
|
], 2),
|
|
32900
|
-
createBaseVNode("div", _hoisted_5$
|
|
32959
|
+
createBaseVNode("div", _hoisted_5$f, [
|
|
32901
32960
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
32902
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32961
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
32903
32962
|
key: getCategoryKey(child),
|
|
32904
32963
|
item: child,
|
|
32905
32964
|
options: _ctx.options
|
|
@@ -32910,22 +32969,22 @@ and ensure you are accounting for this risk.
|
|
|
32910
32969
|
};
|
|
32911
32970
|
}
|
|
32912
32971
|
});
|
|
32913
|
-
const _hoisted_1$
|
|
32972
|
+
const _hoisted_1$T = {
|
|
32914
32973
|
class: "lupa-search-result-facet-term-values",
|
|
32915
32974
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
32916
32975
|
};
|
|
32917
|
-
const _hoisted_2$
|
|
32918
|
-
const _hoisted_3$
|
|
32919
|
-
const _hoisted_4$
|
|
32920
|
-
const _hoisted_5$
|
|
32921
|
-
const _hoisted_6$
|
|
32976
|
+
const _hoisted_2$E = ["placeholder"];
|
|
32977
|
+
const _hoisted_3$u = { class: "lupa-terms-list" };
|
|
32978
|
+
const _hoisted_4$l = ["onClick"];
|
|
32979
|
+
const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
|
|
32980
|
+
const _hoisted_6$6 = { class: "lupa-term-label" };
|
|
32922
32981
|
const _hoisted_7$4 = {
|
|
32923
32982
|
key: 0,
|
|
32924
32983
|
class: "lupa-term-count"
|
|
32925
32984
|
};
|
|
32926
32985
|
const _hoisted_8$2 = { key: 0 };
|
|
32927
32986
|
const _hoisted_9$2 = { key: 1 };
|
|
32928
|
-
const _sfc_main$
|
|
32987
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
32929
32988
|
__name: "TermFacet",
|
|
32930
32989
|
props: {
|
|
32931
32990
|
options: {},
|
|
@@ -33019,17 +33078,17 @@ and ensure you are accounting for this risk.
|
|
|
33019
33078
|
}
|
|
33020
33079
|
};
|
|
33021
33080
|
return (_ctx, _cache) => {
|
|
33022
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33081
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
33023
33082
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
33024
33083
|
key: 0,
|
|
33025
33084
|
class: "lupa-term-filter",
|
|
33026
33085
|
"data-cy": "lupa-term-filter",
|
|
33027
33086
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
33028
33087
|
placeholder: _ctx.options.labels.facetFilter
|
|
33029
|
-
}, null, 8, _hoisted_2$
|
|
33088
|
+
}, null, 8, _hoisted_2$E)), [
|
|
33030
33089
|
[vModelText, termFilter.value]
|
|
33031
33090
|
]) : createCommentVNode("", true),
|
|
33032
|
-
createBaseVNode("div", _hoisted_3$
|
|
33091
|
+
createBaseVNode("div", _hoisted_3$u, [
|
|
33033
33092
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
33034
33093
|
return openBlock(), createElementBlock("div", {
|
|
33035
33094
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -33037,7 +33096,7 @@ and ensure you are accounting for this risk.
|
|
|
33037
33096
|
key: item.title,
|
|
33038
33097
|
onClick: ($event) => handleFacetClick(item)
|
|
33039
33098
|
}, [
|
|
33040
|
-
createBaseVNode("div", _hoisted_5$
|
|
33099
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
33041
33100
|
createBaseVNode("span", {
|
|
33042
33101
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
33043
33102
|
}, null, 2)
|
|
@@ -33045,10 +33104,10 @@ and ensure you are accounting for this risk.
|
|
|
33045
33104
|
createBaseVNode("div", {
|
|
33046
33105
|
class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(item)]: true }])
|
|
33047
33106
|
}, [
|
|
33048
|
-
createBaseVNode("span", _hoisted_6$
|
|
33107
|
+
createBaseVNode("span", _hoisted_6$6, toDisplayString(getItemLabel(item)), 1),
|
|
33049
33108
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$4, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
33050
33109
|
], 2)
|
|
33051
|
-
], 10, _hoisted_4$
|
|
33110
|
+
], 10, _hoisted_4$l);
|
|
33052
33111
|
}), 128))
|
|
33053
33112
|
]),
|
|
33054
33113
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -33956,21 +34015,33 @@ and ensure you are accounting for this risk.
|
|
|
33956
34015
|
m.render = function(e2, t, r, i, n, o) {
|
|
33957
34016
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
33958
34017
|
}, m.__file = "src/Slider.vue";
|
|
33959
|
-
const
|
|
33960
|
-
|
|
34018
|
+
const roundToMaxDecimals = (value, maxPrecision = 0.1) => {
|
|
34019
|
+
if (value === void 0 || value === null || Number.isNaN(value)) return "";
|
|
34020
|
+
const log = Math.log10(maxPrecision);
|
|
34021
|
+
const decimals = log < 0 ? Math.round(-log) : 0;
|
|
34022
|
+
const factor = Math.pow(10, decimals);
|
|
34023
|
+
const rounded = Math.round((value + Number.EPSILON) * factor) / factor;
|
|
34024
|
+
let out = rounded.toFixed(decimals);
|
|
34025
|
+
if (Number.isInteger(value)) {
|
|
34026
|
+
out = Math.trunc(value).toString();
|
|
34027
|
+
}
|
|
34028
|
+
return out;
|
|
34029
|
+
};
|
|
34030
|
+
const _hoisted_1$S = { class: "lupa-search-result-facet-stats-values" };
|
|
34031
|
+
const _hoisted_2$D = {
|
|
33961
34032
|
key: 0,
|
|
33962
34033
|
class: "lupa-stats-facet-summary"
|
|
33963
34034
|
};
|
|
33964
|
-
const _hoisted_3$
|
|
34035
|
+
const _hoisted_3$t = {
|
|
33965
34036
|
key: 1,
|
|
33966
34037
|
class: "lupa-stats-facet-summary-input"
|
|
33967
34038
|
};
|
|
33968
|
-
const _hoisted_4$
|
|
33969
|
-
const _hoisted_5$
|
|
34039
|
+
const _hoisted_4$k = { class: "lupa-stats-from" };
|
|
34040
|
+
const _hoisted_5$d = {
|
|
33970
34041
|
key: 0,
|
|
33971
34042
|
class: "lupa-stats-range-label"
|
|
33972
34043
|
};
|
|
33973
|
-
const _hoisted_6$
|
|
34044
|
+
const _hoisted_6$5 = ["min", "max", "pattern", "aria-label"];
|
|
33974
34045
|
const _hoisted_7$3 = { key: 1 };
|
|
33975
34046
|
const _hoisted_8$1 = { key: 2 };
|
|
33976
34047
|
const _hoisted_9$1 = { class: "lupa-stats-to" };
|
|
@@ -33985,7 +34056,7 @@ and ensure you are accounting for this risk.
|
|
|
33985
34056
|
key: 2,
|
|
33986
34057
|
class: "lupa-stats-slider-wrapper"
|
|
33987
34058
|
};
|
|
33988
|
-
const _sfc_main$
|
|
34059
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
33989
34060
|
__name: "StatsFacet",
|
|
33990
34061
|
props: {
|
|
33991
34062
|
options: {},
|
|
@@ -34104,7 +34175,7 @@ and ensure you are accounting for this risk.
|
|
|
34104
34175
|
const originalSliderRange = computed(() => {
|
|
34105
34176
|
return innerSliderRange.value.length === 2 && (currentFilters.value.gte || currentFilters.value.lte) ? [
|
|
34106
34177
|
Math.max(+currentFilters.value.gte, facetValue.value.min),
|
|
34107
|
-
Math.min(+currentFilters.value.lte, facetValue.value.max)
|
|
34178
|
+
Math.min(+(currentFilters.value.lt || currentFilters.value.lte), facetValue.value.max)
|
|
34108
34179
|
] : [facetValue.value.min, facetValue.value.max];
|
|
34109
34180
|
});
|
|
34110
34181
|
const fromValue = computed({
|
|
@@ -34160,6 +34231,7 @@ and ensure you are accounting for this risk.
|
|
|
34160
34231
|
}
|
|
34161
34232
|
);
|
|
34162
34233
|
const statsSummary = computed(() => {
|
|
34234
|
+
var _a25, _b25;
|
|
34163
34235
|
const [min, max] = originalSliderRange.value;
|
|
34164
34236
|
if (isPrice.value) {
|
|
34165
34237
|
return formatPriceSummary(
|
|
@@ -34170,10 +34242,12 @@ and ensure you are accounting for this risk.
|
|
|
34170
34242
|
multiCurrency.value
|
|
34171
34243
|
);
|
|
34172
34244
|
}
|
|
34245
|
+
const minValue = roundToMaxDecimals(min, (_a25 = customInterval.value) != null ? _a25 : 0.1);
|
|
34246
|
+
const maxValue = roundToMaxDecimals(max, (_b25 = customInterval.value) != null ? _b25 : 0.1);
|
|
34173
34247
|
if (unit.value) {
|
|
34174
|
-
return `${
|
|
34248
|
+
return `${minValue} ${unit.value} – ${maxValue} ${unit.value}`;
|
|
34175
34249
|
}
|
|
34176
|
-
return formatRange({ gte:
|
|
34250
|
+
return formatRange({ gte: minValue, lte: maxValue });
|
|
34177
34251
|
});
|
|
34178
34252
|
function handleInputChange() {
|
|
34179
34253
|
if (innerSliderRange.value.length < 2) return;
|
|
@@ -34201,10 +34275,10 @@ and ensure you are accounting for this risk.
|
|
|
34201
34275
|
}
|
|
34202
34276
|
);
|
|
34203
34277
|
return (_ctx, _cache) => {
|
|
34204
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34205
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34206
|
-
createBaseVNode("div", _hoisted_4$
|
|
34207
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
34278
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
34279
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
34280
|
+
createBaseVNode("div", _hoisted_4$k, [
|
|
34281
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
34208
34282
|
withDirectives(createBaseVNode("input", {
|
|
34209
34283
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
34210
34284
|
type: "text",
|
|
@@ -34213,7 +34287,7 @@ and ensure you are accounting for this risk.
|
|
|
34213
34287
|
max: facetMax.value,
|
|
34214
34288
|
pattern: sliderInputFormat.value,
|
|
34215
34289
|
"aria-label": ariaLabelFrom.value
|
|
34216
|
-
}, null, 8, _hoisted_6$
|
|
34290
|
+
}, null, 8, _hoisted_6$5), [
|
|
34217
34291
|
[
|
|
34218
34292
|
vModelText,
|
|
34219
34293
|
fromValue.value,
|
|
@@ -34266,17 +34340,17 @@ and ensure you are accounting for this risk.
|
|
|
34266
34340
|
};
|
|
34267
34341
|
}
|
|
34268
34342
|
});
|
|
34269
|
-
const _hoisted_1$
|
|
34270
|
-
const _hoisted_2$
|
|
34271
|
-
const _hoisted_3$
|
|
34343
|
+
const _hoisted_1$R = { class: "lupa-term-checkbox-wrapper" };
|
|
34344
|
+
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
34345
|
+
const _hoisted_3$s = {
|
|
34272
34346
|
key: 0,
|
|
34273
34347
|
class: "lupa-term-count"
|
|
34274
34348
|
};
|
|
34275
|
-
const _hoisted_4$
|
|
34349
|
+
const _hoisted_4$j = {
|
|
34276
34350
|
key: 0,
|
|
34277
34351
|
class: "lupa-facet-level"
|
|
34278
34352
|
};
|
|
34279
|
-
const _sfc_main
|
|
34353
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
34280
34354
|
__name: "HierarchyFacetLevel",
|
|
34281
34355
|
props: {
|
|
34282
34356
|
options: {},
|
|
@@ -34330,7 +34404,7 @@ and ensure you are accounting for this risk.
|
|
|
34330
34404
|
"data-cy": "lupa-facet-term",
|
|
34331
34405
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34332
34406
|
}, [
|
|
34333
|
-
createBaseVNode("div", _hoisted_1$
|
|
34407
|
+
createBaseVNode("div", _hoisted_1$R, [
|
|
34334
34408
|
createBaseVNode("span", {
|
|
34335
34409
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34336
34410
|
}, null, 2)
|
|
@@ -34338,11 +34412,11 @@ and ensure you are accounting for this risk.
|
|
|
34338
34412
|
createBaseVNode("div", {
|
|
34339
34413
|
class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
|
|
34340
34414
|
}, [
|
|
34341
|
-
createBaseVNode("span", _hoisted_2$
|
|
34342
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
34415
|
+
createBaseVNode("span", _hoisted_2$C, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
34416
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
34343
34417
|
], 2)
|
|
34344
34418
|
]),
|
|
34345
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
34419
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
|
|
34346
34420
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
34347
34421
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
34348
34422
|
key: itemChild.title,
|
|
@@ -34358,13 +34432,13 @@ and ensure you are accounting for this risk.
|
|
|
34358
34432
|
};
|
|
34359
34433
|
}
|
|
34360
34434
|
});
|
|
34361
|
-
const _hoisted_1$
|
|
34435
|
+
const _hoisted_1$Q = {
|
|
34362
34436
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34363
34437
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34364
34438
|
};
|
|
34365
|
-
const _hoisted_2$
|
|
34366
|
-
const _hoisted_3$
|
|
34367
|
-
const _sfc_main$
|
|
34439
|
+
const _hoisted_2$B = { key: 0 };
|
|
34440
|
+
const _hoisted_3$r = ["placeholder"];
|
|
34441
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
34368
34442
|
__name: "HierarchyFacet",
|
|
34369
34443
|
props: {
|
|
34370
34444
|
options: {},
|
|
@@ -34420,19 +34494,19 @@ and ensure you are accounting for this risk.
|
|
|
34420
34494
|
showAll.value = false;
|
|
34421
34495
|
};
|
|
34422
34496
|
return (_ctx, _cache) => {
|
|
34423
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34424
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34497
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
34498
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
34425
34499
|
withDirectives(createBaseVNode("input", {
|
|
34426
34500
|
class: "lupa-term-filter",
|
|
34427
34501
|
"data-cy": "lupa-term-filter",
|
|
34428
34502
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
34429
34503
|
placeholder: _ctx.options.labels.facetFilter
|
|
34430
|
-
}, null, 8, _hoisted_3$
|
|
34504
|
+
}, null, 8, _hoisted_3$r), [
|
|
34431
34505
|
[vModelText, termFilter.value]
|
|
34432
34506
|
])
|
|
34433
34507
|
])) : createCommentVNode("", true),
|
|
34434
34508
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34435
|
-
return openBlock(), createBlock(_sfc_main
|
|
34509
|
+
return openBlock(), createBlock(_sfc_main$$, {
|
|
34436
34510
|
key: item.title,
|
|
34437
34511
|
options: _ctx.options,
|
|
34438
34512
|
item,
|
|
@@ -34456,30 +34530,31 @@ and ensure you are accounting for this risk.
|
|
|
34456
34530
|
};
|
|
34457
34531
|
}
|
|
34458
34532
|
});
|
|
34459
|
-
const _hoisted_1$
|
|
34460
|
-
const _hoisted_2$
|
|
34533
|
+
const _hoisted_1$P = { class: "lupa-facet-label-text" };
|
|
34534
|
+
const _hoisted_2$A = {
|
|
34461
34535
|
key: 0,
|
|
34462
34536
|
class: "lupa-facet-content",
|
|
34463
34537
|
"data-cy": "lupa-facet-content"
|
|
34464
34538
|
};
|
|
34465
34539
|
const __default__$1 = {
|
|
34466
34540
|
components: {
|
|
34467
|
-
TermFacet: _sfc_main$
|
|
34468
|
-
StatsFacet: _sfc_main$
|
|
34469
|
-
HierarchyFacet: _sfc_main$
|
|
34541
|
+
TermFacet: _sfc_main$11,
|
|
34542
|
+
StatsFacet: _sfc_main$10,
|
|
34543
|
+
HierarchyFacet: _sfc_main$_
|
|
34470
34544
|
}
|
|
34471
34545
|
};
|
|
34472
|
-
const _sfc_main$
|
|
34546
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34473
34547
|
__name: "FacetDisplay",
|
|
34474
34548
|
props: {
|
|
34475
34549
|
options: {},
|
|
34476
34550
|
facet: {},
|
|
34477
34551
|
currentFilters: {},
|
|
34478
|
-
clearable: { type: Boolean }
|
|
34552
|
+
clearable: { type: Boolean },
|
|
34553
|
+
currentFacetStyle: {}
|
|
34479
34554
|
},
|
|
34480
|
-
emits: ["select", "clear"],
|
|
34555
|
+
emits: ["select", "clear", "expand"],
|
|
34481
34556
|
setup(__props, { emit: __emit }) {
|
|
34482
|
-
var _a25, _b25
|
|
34557
|
+
var _a25, _b25;
|
|
34483
34558
|
const props = __props;
|
|
34484
34559
|
const facet = computed(() => {
|
|
34485
34560
|
var _a26;
|
|
@@ -34493,17 +34568,17 @@ and ensure you are accounting for this risk.
|
|
|
34493
34568
|
const optionsStore = useOptionsStore();
|
|
34494
34569
|
const screenStore = useScreenStore();
|
|
34495
34570
|
const { currentFilterKeys } = storeToRefs(searchResultStore);
|
|
34496
|
-
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
34571
|
+
const { searchResultOptions, expandedFacets } = storeToRefs(optionsStore);
|
|
34497
34572
|
const { isMobileWidth } = storeToRefs(screenStore);
|
|
34498
34573
|
const emit2 = __emit;
|
|
34499
34574
|
const allExpanded = computed(() => {
|
|
34500
|
-
var _a26, _b26,
|
|
34575
|
+
var _a26, _b26, _c, _d, _e, _f;
|
|
34501
34576
|
if (isMobileWidth.value) {
|
|
34502
|
-
return (
|
|
34577
|
+
return (_c = (_b26 = (_a26 = props.options) == null ? void 0 : _a26.expandAll) == null ? void 0 : _b26.mobile) != null ? _c : false;
|
|
34503
34578
|
}
|
|
34504
34579
|
return (_f = (_e = (_d = props.options) == null ? void 0 : _d.expandAll) == null ? void 0 : _e.desktop) != null ? _f : false;
|
|
34505
34580
|
});
|
|
34506
|
-
const isOpen = ref((
|
|
34581
|
+
const isOpen = ref((_b25 = ((_a25 = expandedFacets.value) == null ? void 0 : _a25.includes(props.facet.key)) || allExpanded.value) != null ? _b25 : false);
|
|
34507
34582
|
const facetPanel = ref(null);
|
|
34508
34583
|
const facetType = computed(() => {
|
|
34509
34584
|
switch (facet.value.type) {
|
|
@@ -34545,9 +34620,16 @@ and ensure you are accounting for this risk.
|
|
|
34545
34620
|
var _a26;
|
|
34546
34621
|
return getTranslatedFacetKey(props.facet, (_a26 = searchResultOptions.value.filters) == null ? void 0 : _a26.translations);
|
|
34547
34622
|
});
|
|
34623
|
+
const expandSidebarOnFacetClick = computed(() => {
|
|
34624
|
+
var _a26, _b26, _c;
|
|
34625
|
+
if (!props.currentFacetStyle || props.currentFacetStyle === "sidebar") {
|
|
34626
|
+
return false;
|
|
34627
|
+
}
|
|
34628
|
+
return (_c = (_b26 = (_a26 = props.options.style) == null ? void 0 : _a26.drawer) == null ? void 0 : _b26.expandSidebarOnFacetClick) != null ? _c : false;
|
|
34629
|
+
});
|
|
34548
34630
|
onMounted(() => {
|
|
34549
|
-
var _a26;
|
|
34550
|
-
if (((_a26 = props.options.style) == null ? void 0 : _a26.type) === "top-dropdown") {
|
|
34631
|
+
var _a26, _b26, _c;
|
|
34632
|
+
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") {
|
|
34551
34633
|
window.addEventListener("click", handleMouseClick);
|
|
34552
34634
|
}
|
|
34553
34635
|
});
|
|
@@ -34556,7 +34638,7 @@ and ensure you are accounting for this risk.
|
|
|
34556
34638
|
});
|
|
34557
34639
|
const handleMouseClick = (e2) => {
|
|
34558
34640
|
const el = facetPanel.value;
|
|
34559
|
-
if (!el) {
|
|
34641
|
+
if (!el || !props.currentFacetStyle || props.currentFacetStyle === "sidebar") {
|
|
34560
34642
|
return;
|
|
34561
34643
|
}
|
|
34562
34644
|
const isOutsideElement = el && !el.contains(e2.target);
|
|
@@ -34568,6 +34650,11 @@ and ensure you are accounting for this risk.
|
|
|
34568
34650
|
handleFacetQueryFilter();
|
|
34569
34651
|
});
|
|
34570
34652
|
const toggleFacet = () => {
|
|
34653
|
+
if (expandSidebarOnFacetClick.value) {
|
|
34654
|
+
expandedFacets.value = [facet.value.key];
|
|
34655
|
+
emit2("expand");
|
|
34656
|
+
return;
|
|
34657
|
+
}
|
|
34571
34658
|
isOpen.value = !isOpen.value;
|
|
34572
34659
|
handleFacetQueryFilter();
|
|
34573
34660
|
};
|
|
@@ -34600,12 +34687,12 @@ and ensure you are accounting for this risk.
|
|
|
34600
34687
|
"data-cy": "lupa-search-result-facet-label",
|
|
34601
34688
|
onClick: toggleFacet
|
|
34602
34689
|
}, [
|
|
34603
|
-
createBaseVNode("div", _hoisted_1$
|
|
34690
|
+
createBaseVNode("div", _hoisted_1$P, toDisplayString(facetLabel.value), 1),
|
|
34604
34691
|
createBaseVNode("div", {
|
|
34605
34692
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34606
34693
|
}, null, 2)
|
|
34607
34694
|
], 2),
|
|
34608
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34695
|
+
isOpen.value && !expandSidebarOnFacetClick.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
34609
34696
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
34610
34697
|
facet: facet.value,
|
|
34611
34698
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -34623,12 +34710,154 @@ and ensure you are accounting for this risk.
|
|
|
34623
34710
|
};
|
|
34624
34711
|
}
|
|
34625
34712
|
}));
|
|
34626
|
-
const
|
|
34627
|
-
|
|
34713
|
+
const useSidebarToggle = () => {
|
|
34714
|
+
const searchResultStore = useSearchResultStore();
|
|
34715
|
+
const optionsStore = useOptionsStore();
|
|
34716
|
+
const { currentFilterCount, isFilterSidebarVisible, isSortingSidebarVisible } = storeToRefs(searchResultStore);
|
|
34717
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
34718
|
+
const labels = computed(() => {
|
|
34719
|
+
return searchResultOptions.value.labels;
|
|
34720
|
+
});
|
|
34721
|
+
const showMobileFilterCount = computed(
|
|
34722
|
+
() => {
|
|
34723
|
+
var _a25, _b25, _c, _d;
|
|
34724
|
+
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;
|
|
34725
|
+
}
|
|
34726
|
+
);
|
|
34727
|
+
const disableMobileBodyScrollLock = computed(
|
|
34728
|
+
() => {
|
|
34729
|
+
var _a25, _b25, _c;
|
|
34730
|
+
return (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.disableMobileBodyScrollLock) != null ? _c : false;
|
|
34731
|
+
}
|
|
34732
|
+
);
|
|
34733
|
+
const isSidebarVisible = computed(
|
|
34734
|
+
() => isFilterSidebarVisible.value || isSortingSidebarVisible.value
|
|
34735
|
+
);
|
|
34736
|
+
const sortLabel = computed(() => {
|
|
34737
|
+
var _a25, _b25;
|
|
34738
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.sortBy;
|
|
34739
|
+
});
|
|
34740
|
+
const defaultLabel = computed(() => {
|
|
34741
|
+
var _a25;
|
|
34742
|
+
return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButton;
|
|
34743
|
+
});
|
|
34744
|
+
const activeLabel = computed(() => {
|
|
34745
|
+
var _a25;
|
|
34746
|
+
return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButtonActive;
|
|
34747
|
+
});
|
|
34748
|
+
const openLabel = computed(() => {
|
|
34749
|
+
var _a25;
|
|
34750
|
+
return (_a25 = labels.value) == null ? void 0 : _a25.mobileFilterButtonOpen;
|
|
34751
|
+
});
|
|
34752
|
+
const label = computed(() => {
|
|
34753
|
+
if (isSidebarVisible.value && openLabel.value) {
|
|
34754
|
+
return openLabel.value;
|
|
34755
|
+
}
|
|
34756
|
+
if (hasActiveFilters.value && activeLabel.value) {
|
|
34757
|
+
return activeLabel.value;
|
|
34758
|
+
}
|
|
34759
|
+
return defaultLabel.value;
|
|
34760
|
+
});
|
|
34761
|
+
const sortToggleVisible = computed(() => {
|
|
34762
|
+
var _a25, _b25;
|
|
34763
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.sortStyle) == null ? void 0 : _b25.type) === "drawer";
|
|
34764
|
+
});
|
|
34765
|
+
const handleFilterSidebarToggle = () => {
|
|
34766
|
+
searchResultStore.setSidebarState({
|
|
34767
|
+
visible: !isSidebarVisible.value,
|
|
34768
|
+
disableBodyScrolling: !disableMobileBodyScrollLock.value,
|
|
34769
|
+
sidebar: "filter"
|
|
34770
|
+
});
|
|
34771
|
+
};
|
|
34772
|
+
const handleSortSidebarToggle = () => {
|
|
34773
|
+
searchResultStore.setSidebarState({
|
|
34774
|
+
visible: !isSortingSidebarVisible.value,
|
|
34775
|
+
disableBodyScrolling: !disableMobileBodyScrollLock.value,
|
|
34776
|
+
sidebar: "sorting"
|
|
34777
|
+
});
|
|
34778
|
+
};
|
|
34779
|
+
const hasActiveFilters = computed(() => currentFilterCount.value > 0);
|
|
34780
|
+
const checkCloseOnEscape = (e2) => {
|
|
34781
|
+
var _a25;
|
|
34782
|
+
if (!["Escape", "Esc"].includes((_a25 = e2.key) != null ? _a25 : "")) {
|
|
34783
|
+
return;
|
|
34784
|
+
}
|
|
34785
|
+
if (isSidebarVisible.value) {
|
|
34786
|
+
searchResultStore.setSidebarState({ visible: false, sidebar: "sorting" });
|
|
34787
|
+
searchResultStore.setSidebarState({ visible: false, sidebar: "filter" });
|
|
34788
|
+
}
|
|
34789
|
+
};
|
|
34790
|
+
onMounted(() => {
|
|
34791
|
+
window.addEventListener("keydown", checkCloseOnEscape);
|
|
34792
|
+
});
|
|
34793
|
+
onBeforeUnmount(() => {
|
|
34794
|
+
window.removeEventListener("keydown", checkCloseOnEscape);
|
|
34795
|
+
});
|
|
34796
|
+
return {
|
|
34797
|
+
isSidebarVisible,
|
|
34798
|
+
label,
|
|
34799
|
+
currentFilterCount,
|
|
34800
|
+
hasActiveFilters,
|
|
34801
|
+
showMobileFilterCount,
|
|
34802
|
+
sortLabel,
|
|
34803
|
+
sortToggleVisible,
|
|
34804
|
+
handleFilterSidebarToggle,
|
|
34805
|
+
handleSortSidebarToggle
|
|
34806
|
+
};
|
|
34807
|
+
};
|
|
34808
|
+
const _hoisted_1$O = {
|
|
34809
|
+
key: 0,
|
|
34810
|
+
class: "lupa-desktop-toggle-filter-count"
|
|
34811
|
+
};
|
|
34812
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
34813
|
+
__name: "DesktopFacetToggle",
|
|
34814
|
+
setup(__props) {
|
|
34815
|
+
const {
|
|
34816
|
+
isSidebarVisible,
|
|
34817
|
+
label,
|
|
34818
|
+
currentFilterCount,
|
|
34819
|
+
hasActiveFilters,
|
|
34820
|
+
showMobileFilterCount,
|
|
34821
|
+
handleFilterSidebarToggle
|
|
34822
|
+
} = useSidebarToggle();
|
|
34823
|
+
return (_ctx, _cache) => {
|
|
34824
|
+
return openBlock(), createElementBlock("div", {
|
|
34825
|
+
class: normalizeClass(["lupa-desktop-toggle", {
|
|
34826
|
+
"lupa-desktop-toggle-filters-empty": unref(currentFilterCount) < 1,
|
|
34827
|
+
"lupa-desktop-toggle-has-filters": unref(hasActiveFilters),
|
|
34828
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
34829
|
+
}]),
|
|
34830
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
34831
|
+
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
34832
|
+
}, [
|
|
34833
|
+
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
34834
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
34835
|
+
], 2);
|
|
34836
|
+
};
|
|
34837
|
+
}
|
|
34838
|
+
});
|
|
34839
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
34840
|
+
__name: "DesktopSortToggle",
|
|
34841
|
+
setup(__props) {
|
|
34842
|
+
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
34843
|
+
return (_ctx, _cache) => {
|
|
34844
|
+
return unref(sortToggleVisible) ? (openBlock(), createElementBlock("div", {
|
|
34845
|
+
key: 0,
|
|
34846
|
+
class: normalizeClass(["lupa-desktop-toggle lupa-desktop-sort-toggle", {
|
|
34847
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
34848
|
+
}]),
|
|
34849
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
34850
|
+
(...args) => unref(handleSortSidebarToggle) && unref(handleSortSidebarToggle)(...args))
|
|
34851
|
+
}, toDisplayString(unref(sortLabel)), 3)) : createCommentVNode("", true);
|
|
34852
|
+
};
|
|
34853
|
+
}
|
|
34854
|
+
});
|
|
34855
|
+
const _hoisted_1$N = { class: "lupa-search-result-facet-section" };
|
|
34856
|
+
const _hoisted_2$z = {
|
|
34628
34857
|
key: 0,
|
|
34629
34858
|
class: "lupa-facets-title"
|
|
34630
34859
|
};
|
|
34631
|
-
const _sfc_main$
|
|
34860
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
34632
34861
|
__name: "FacetList",
|
|
34633
34862
|
props: {
|
|
34634
34863
|
options: {},
|
|
@@ -34640,6 +34869,7 @@ and ensure you are accounting for this risk.
|
|
|
34640
34869
|
emits: ["select", "clear"],
|
|
34641
34870
|
setup(__props, { emit: __emit }) {
|
|
34642
34871
|
const props = __props;
|
|
34872
|
+
const { handleFilterSidebarToggle } = useSidebarToggle();
|
|
34643
34873
|
const emit2 = __emit;
|
|
34644
34874
|
const currentFiltersValue = computed(() => {
|
|
34645
34875
|
var _a25;
|
|
@@ -34655,6 +34885,12 @@ and ensure you are accounting for this risk.
|
|
|
34655
34885
|
return !((_a25 = props.options.exclude) == null ? void 0 : _a25.includes(f2.key));
|
|
34656
34886
|
}) : facetsValue.value;
|
|
34657
34887
|
});
|
|
34888
|
+
const displayFacetStyle = computed(() => {
|
|
34889
|
+
if (!props.facetStyle || props.facetStyle === "sidebar") {
|
|
34890
|
+
return "sidebar";
|
|
34891
|
+
}
|
|
34892
|
+
return "top-dropdown";
|
|
34893
|
+
});
|
|
34658
34894
|
const handleFacetSelect = (facetAction) => {
|
|
34659
34895
|
emit2("select", facetAction);
|
|
34660
34896
|
};
|
|
@@ -34663,29 +34899,33 @@ and ensure you are accounting for this risk.
|
|
|
34663
34899
|
};
|
|
34664
34900
|
return (_ctx, _cache) => {
|
|
34665
34901
|
var _a25;
|
|
34666
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34667
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34902
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
34903
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
34668
34904
|
createBaseVNode("div", {
|
|
34669
|
-
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 =
|
|
34905
|
+
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
34670
34906
|
}, [
|
|
34671
34907
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
34672
34908
|
var _a26;
|
|
34673
|
-
return openBlock(), createBlock(_sfc_main$
|
|
34909
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
34674
34910
|
key: facet.key,
|
|
34675
34911
|
facet,
|
|
34676
34912
|
currentFilters: currentFiltersValue.value,
|
|
34677
34913
|
options: _ctx.options,
|
|
34678
34914
|
clearable: (_a26 = _ctx.clearable) != null ? _a26 : false,
|
|
34915
|
+
"current-facet-style": _ctx.facetStyle,
|
|
34679
34916
|
onSelect: handleFacetSelect,
|
|
34680
|
-
onClear: clear
|
|
34681
|
-
|
|
34682
|
-
|
|
34917
|
+
onClear: clear,
|
|
34918
|
+
onExpand: unref(handleFilterSidebarToggle)
|
|
34919
|
+
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
34920
|
+
}), 128)),
|
|
34921
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Y, { key: 0 })) : createCommentVNode("", true),
|
|
34922
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$X, { key: 1 })) : createCommentVNode("", true)
|
|
34683
34923
|
], 2)
|
|
34684
34924
|
]);
|
|
34685
34925
|
};
|
|
34686
34926
|
}
|
|
34687
34927
|
});
|
|
34688
|
-
const _sfc_main$
|
|
34928
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
34689
34929
|
__name: "FacetsButton",
|
|
34690
34930
|
props: {
|
|
34691
34931
|
options: {}
|
|
@@ -34710,8 +34950,33 @@ and ensure you are accounting for this risk.
|
|
|
34710
34950
|
};
|
|
34711
34951
|
}
|
|
34712
34952
|
});
|
|
34713
|
-
const
|
|
34714
|
-
|
|
34953
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
34954
|
+
__name: "FacetsClearButton",
|
|
34955
|
+
props: {
|
|
34956
|
+
options: {}
|
|
34957
|
+
},
|
|
34958
|
+
emits: ["clear"],
|
|
34959
|
+
setup(__props, { emit: __emit }) {
|
|
34960
|
+
const props = __props;
|
|
34961
|
+
const emit2 = __emit;
|
|
34962
|
+
const label = computed(() => {
|
|
34963
|
+
var _a25, _b25;
|
|
34964
|
+
return (_b25 = (_a25 = props.options.labels) == null ? void 0 : _a25.facetClearAllButton) != null ? _b25 : "";
|
|
34965
|
+
});
|
|
34966
|
+
const handleClick = () => {
|
|
34967
|
+
emit2("clear");
|
|
34968
|
+
};
|
|
34969
|
+
return (_ctx, _cache) => {
|
|
34970
|
+
return label.value ? (openBlock(), createElementBlock("button", {
|
|
34971
|
+
key: 0,
|
|
34972
|
+
class: "lupa-facets-button-clear",
|
|
34973
|
+
onClick: withModifiers(handleClick, ["stop"])
|
|
34974
|
+
}, toDisplayString(label.value), 1)) : createCommentVNode("", true);
|
|
34975
|
+
};
|
|
34976
|
+
}
|
|
34977
|
+
});
|
|
34978
|
+
const _hoisted_1$M = { class: "lupa-facets-filter-button-wrapper" };
|
|
34979
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
34715
34980
|
__name: "Facets",
|
|
34716
34981
|
props: {
|
|
34717
34982
|
options: {},
|
|
@@ -34724,6 +34989,7 @@ and ensure you are accounting for this risk.
|
|
|
34724
34989
|
const paramStore = useParamsStore();
|
|
34725
34990
|
const searchResultStore = useSearchResultStore();
|
|
34726
34991
|
const optionsStore = useOptionsStore();
|
|
34992
|
+
const { handleFilterSidebarToggle } = useSidebarToggle();
|
|
34727
34993
|
const { filters } = storeToRefs(paramStore);
|
|
34728
34994
|
const { facets: facets2, loadingFacets } = storeToRefs(searchResultStore);
|
|
34729
34995
|
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
@@ -34751,7 +35017,7 @@ and ensure you are accounting for this risk.
|
|
|
34751
35017
|
};
|
|
34752
35018
|
});
|
|
34753
35019
|
const showFilterButton = computed(() => {
|
|
34754
|
-
return props.options.filterBehavior === "withFilterButton";
|
|
35020
|
+
return props.options.filterBehavior === "withFilterButton" && props.facetStyle === "sidebar";
|
|
34755
35021
|
});
|
|
34756
35022
|
const handleFacetSelect = (facetAction) => {
|
|
34757
35023
|
switch (facetAction.type) {
|
|
@@ -34792,6 +35058,10 @@ and ensure you are accounting for this risk.
|
|
|
34792
35058
|
const param = getFacetKey(facet.key, facet.type);
|
|
34793
35059
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
34794
35060
|
};
|
|
35061
|
+
const clearAll = () => {
|
|
35062
|
+
paramStore.removeAllFilters();
|
|
35063
|
+
handleFilterSidebarToggle();
|
|
35064
|
+
};
|
|
34795
35065
|
const filter = () => {
|
|
34796
35066
|
emit2("filter");
|
|
34797
35067
|
};
|
|
@@ -34799,7 +35069,7 @@ and ensure you are accounting for this risk.
|
|
|
34799
35069
|
return openBlock(), createElementBlock("div", {
|
|
34800
35070
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
34801
35071
|
}, [
|
|
34802
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
35072
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
34803
35073
|
key: 0,
|
|
34804
35074
|
options: _ctx.options,
|
|
34805
35075
|
facets: regularFacets.value,
|
|
@@ -34809,10 +35079,15 @@ and ensure you are accounting for this risk.
|
|
|
34809
35079
|
onSelect: handleFacetSelect,
|
|
34810
35080
|
onClear: clear
|
|
34811
35081
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
34812
|
-
createBaseVNode("div", _hoisted_1$
|
|
34813
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35082
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
35083
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
34814
35084
|
key: 0,
|
|
34815
35085
|
options: _ctx.options,
|
|
35086
|
+
onClear: clearAll
|
|
35087
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35088
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
35089
|
+
key: 1,
|
|
35090
|
+
options: _ctx.options,
|
|
34816
35091
|
onFilter: filter
|
|
34817
35092
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
34818
35093
|
])
|
|
@@ -34820,16 +35095,17 @@ and ensure you are accounting for this risk.
|
|
|
34820
35095
|
};
|
|
34821
35096
|
}
|
|
34822
35097
|
});
|
|
34823
|
-
const _hoisted_1$
|
|
35098
|
+
const _hoisted_1$L = {
|
|
34824
35099
|
key: 0,
|
|
34825
35100
|
id: "lupa-search-result-filters",
|
|
34826
35101
|
class: "lupa-search-result-filters"
|
|
34827
35102
|
};
|
|
34828
|
-
const _sfc_main$
|
|
35103
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
34829
35104
|
__name: "SearchResultsFilters",
|
|
34830
35105
|
props: {
|
|
34831
35106
|
options: {},
|
|
34832
|
-
expandable: { type: Boolean }
|
|
35107
|
+
expandable: { type: Boolean },
|
|
35108
|
+
style: {}
|
|
34833
35109
|
},
|
|
34834
35110
|
emits: ["filter"],
|
|
34835
35111
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -34863,40 +35139,37 @@ and ensure you are accounting for this risk.
|
|
|
34863
35139
|
__expose({ fetch: fetch2 });
|
|
34864
35140
|
return (_ctx, _cache) => {
|
|
34865
35141
|
var _a25;
|
|
34866
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
34867
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
35142
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
35143
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$14, {
|
|
34868
35144
|
key: 0,
|
|
34869
35145
|
options: _ctx.options.currentFilters,
|
|
34870
35146
|
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
34871
35147
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
34872
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
35148
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$12, {
|
|
34873
35149
|
key: 1,
|
|
34874
35150
|
options: _ctx.options.categories,
|
|
34875
35151
|
ref_key: "categoryFilters",
|
|
34876
35152
|
ref: categoryFilters
|
|
34877
35153
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
34878
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
35154
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
|
|
34879
35155
|
key: 2,
|
|
34880
35156
|
options: _ctx.options.facets,
|
|
35157
|
+
"facet-style": _ctx.style,
|
|
34881
35158
|
onFilter: filter
|
|
34882
|
-
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
35159
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
34883
35160
|
])) : createCommentVNode("", true);
|
|
34884
35161
|
};
|
|
34885
35162
|
}
|
|
34886
35163
|
});
|
|
34887
|
-
const _hoisted_1$
|
|
34888
|
-
|
|
34889
|
-
|
|
34890
|
-
|
|
34891
|
-
const _hoisted_2$w = { class: "lupa-mobile-sidebar-content" };
|
|
34892
|
-
const _hoisted_3$o = { class: "lupa-sidebar-top" };
|
|
34893
|
-
const _hoisted_4$g = { class: "lupa-sidebar-title" };
|
|
34894
|
-
const _hoisted_5$b = {
|
|
35164
|
+
const _hoisted_1$K = { class: "lupa-mobile-sidebar-content" };
|
|
35165
|
+
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
35166
|
+
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
35167
|
+
const _hoisted_4$i = {
|
|
34895
35168
|
key: 0,
|
|
34896
35169
|
class: "lupa-sidebar-filter-count"
|
|
34897
35170
|
};
|
|
34898
|
-
const
|
|
34899
|
-
const _sfc_main$
|
|
35171
|
+
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
35172
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
34900
35173
|
__name: "MobileFilterSidebar",
|
|
34901
35174
|
props: {
|
|
34902
35175
|
options: {}
|
|
@@ -34905,7 +35178,7 @@ and ensure you are accounting for this risk.
|
|
|
34905
35178
|
setup(__props, { emit: __emit }) {
|
|
34906
35179
|
const props = __props;
|
|
34907
35180
|
const searchResultStore = useSearchResultStore();
|
|
34908
|
-
const { currentFilterCount } = storeToRefs(searchResultStore);
|
|
35181
|
+
const { currentFilterCount, isFilterSidebarVisible, isSidebarClosing } = storeToRefs(searchResultStore);
|
|
34909
35182
|
const emit2 = __emit;
|
|
34910
35183
|
const sidebarTitle = computed(() => {
|
|
34911
35184
|
var _a25, _b25, _c;
|
|
@@ -34915,7 +35188,6 @@ and ensure you are accounting for this risk.
|
|
|
34915
35188
|
var _a25, _b25;
|
|
34916
35189
|
return Boolean((_b25 = (_a25 = props.options.currentFilters) == null ? void 0 : _a25.mobileSidebar) == null ? void 0 : _b25.showFilterCount) && currentFilterCount.value > 0;
|
|
34917
35190
|
});
|
|
34918
|
-
const isMobileSidebarVisible = computed(() => searchResultStore.isMobileSidebarVisible);
|
|
34919
35191
|
const isActiveFiltersExpanded = computed(() => {
|
|
34920
35192
|
var _a25, _b25;
|
|
34921
35193
|
return !((_b25 = (_a25 = props.options.currentFilters) == null ? void 0 : _a25.mobileSidebar) == null ? void 0 : _b25.activeFiltersExpanded);
|
|
@@ -34928,42 +35200,46 @@ and ensure you are accounting for this risk.
|
|
|
34928
35200
|
handleMobileToggle();
|
|
34929
35201
|
};
|
|
34930
35202
|
return (_ctx, _cache) => {
|
|
34931
|
-
return
|
|
35203
|
+
return unref(isFilterSidebarVisible) ? (openBlock(), createElementBlock("div", {
|
|
35204
|
+
key: 0,
|
|
35205
|
+
class: normalizeClass(["lupa-mobile-filter-sidebar", { "lupa-mobile-filter-sidebar-is-closing": unref(isSidebarClosing) }])
|
|
35206
|
+
}, [
|
|
34932
35207
|
createBaseVNode("div", {
|
|
34933
35208
|
class: "lupa-sidebar-close",
|
|
34934
35209
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
34935
35210
|
}),
|
|
34936
|
-
createBaseVNode("div",
|
|
34937
|
-
createBaseVNode("div",
|
|
34938
|
-
createBaseVNode("div",
|
|
35211
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
35212
|
+
createBaseVNode("div", _hoisted_2$y, [
|
|
35213
|
+
createBaseVNode("div", _hoisted_3$q, [
|
|
34939
35214
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
34940
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span",
|
|
35215
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_4$i, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
34941
35216
|
]),
|
|
34942
35217
|
createBaseVNode("div", {
|
|
34943
35218
|
class: "lupa-filter-toggle-mobile",
|
|
34944
35219
|
onClick: handleMobileToggle
|
|
34945
35220
|
})
|
|
34946
35221
|
]),
|
|
34947
|
-
createBaseVNode("div",
|
|
34948
|
-
createVNode(_sfc_main$
|
|
35222
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
35223
|
+
createVNode(_sfc_main$S, {
|
|
34949
35224
|
options: _ctx.options,
|
|
34950
35225
|
expandable: isActiveFiltersExpanded.value,
|
|
35226
|
+
style: "sidebar",
|
|
34951
35227
|
onFilter: filter
|
|
34952
35228
|
}, null, 8, ["options", "expandable"])
|
|
34953
35229
|
])
|
|
34954
35230
|
])
|
|
34955
|
-
])) : createCommentVNode("", true);
|
|
35231
|
+
], 2)) : createCommentVNode("", true);
|
|
34956
35232
|
};
|
|
34957
35233
|
}
|
|
34958
35234
|
});
|
|
34959
|
-
const _hoisted_1$
|
|
34960
|
-
const _hoisted_2$
|
|
34961
|
-
const _hoisted_3$
|
|
35235
|
+
const _hoisted_1$J = { id: "lupa-search-results-breadcrumbs" };
|
|
35236
|
+
const _hoisted_2$x = ["href", "onClick"];
|
|
35237
|
+
const _hoisted_3$p = {
|
|
34962
35238
|
key: 1,
|
|
34963
35239
|
class: "lupa-search-results-breadcrumb-text"
|
|
34964
35240
|
};
|
|
34965
|
-
const _hoisted_4$
|
|
34966
|
-
const _sfc_main$
|
|
35241
|
+
const _hoisted_4$h = { key: 2 };
|
|
35242
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
34967
35243
|
__name: "SearchResultsBreadcrumbs",
|
|
34968
35244
|
props: {
|
|
34969
35245
|
breadcrumbs: {}
|
|
@@ -34988,7 +35264,7 @@ and ensure you are accounting for this risk.
|
|
|
34988
35264
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
34989
35265
|
};
|
|
34990
35266
|
return (_ctx, _cache) => {
|
|
34991
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35267
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
34992
35268
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
34993
35269
|
var _a25;
|
|
34994
35270
|
return openBlock(), createElementBlock("span", {
|
|
@@ -35003,20 +35279,20 @@ and ensure you are accounting for this risk.
|
|
|
35003
35279
|
var _a26;
|
|
35004
35280
|
return handleNavigation(e2, (_a26 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a26 : "");
|
|
35005
35281
|
}
|
|
35006
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
35007
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
35282
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$x)) : (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
35283
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
35008
35284
|
]);
|
|
35009
35285
|
}), 128))
|
|
35010
35286
|
]);
|
|
35011
35287
|
};
|
|
35012
35288
|
}
|
|
35013
35289
|
});
|
|
35014
|
-
const _hoisted_1$
|
|
35290
|
+
const _hoisted_1$I = {
|
|
35015
35291
|
key: 0,
|
|
35016
35292
|
id: "lupa-search-result-filters",
|
|
35017
35293
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
35018
35294
|
};
|
|
35019
|
-
const _sfc_main$
|
|
35295
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
35020
35296
|
__name: "FiltersTopDropdown",
|
|
35021
35297
|
props: {
|
|
35022
35298
|
options: {}
|
|
@@ -35034,8 +35310,8 @@ and ensure you are accounting for this risk.
|
|
|
35034
35310
|
});
|
|
35035
35311
|
return (_ctx, _cache) => {
|
|
35036
35312
|
var _a25;
|
|
35037
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35038
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
35313
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
35314
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
|
|
35039
35315
|
key: 0,
|
|
35040
35316
|
options: _ctx.options.facets,
|
|
35041
35317
|
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
@@ -35046,8 +35322,8 @@ and ensure you are accounting for this risk.
|
|
|
35046
35322
|
};
|
|
35047
35323
|
}
|
|
35048
35324
|
});
|
|
35049
|
-
const _hoisted_1$
|
|
35050
|
-
const _sfc_main$
|
|
35325
|
+
const _hoisted_1$H = { id: "lupa-search-results-layout-selection" };
|
|
35326
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35051
35327
|
__name: "SearchResultsLayoutSelection",
|
|
35052
35328
|
setup(__props) {
|
|
35053
35329
|
const searchResultStore = useSearchResultStore();
|
|
@@ -35058,7 +35334,7 @@ and ensure you are accounting for this risk.
|
|
|
35058
35334
|
searchResultStore.setLayout(layout2);
|
|
35059
35335
|
};
|
|
35060
35336
|
return (_ctx, _cache) => {
|
|
35061
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35337
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
35062
35338
|
createBaseVNode("div", {
|
|
35063
35339
|
class: normalizeClass([
|
|
35064
35340
|
"lupa-layout-selection-grid",
|
|
@@ -35080,64 +35356,38 @@ and ensure you are accounting for this risk.
|
|
|
35080
35356
|
};
|
|
35081
35357
|
}
|
|
35082
35358
|
});
|
|
35083
|
-
const _hoisted_1$
|
|
35359
|
+
const _hoisted_1$G = {
|
|
35084
35360
|
key: 0,
|
|
35085
35361
|
class: "lupa-mobile-toggle-filter-count"
|
|
35086
35362
|
};
|
|
35087
|
-
const _sfc_main$
|
|
35363
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
35088
35364
|
__name: "SearchResultsMobileToggle",
|
|
35089
|
-
props: {
|
|
35090
|
-
labels: {},
|
|
35091
|
-
showFilterCount: { type: Boolean }
|
|
35092
|
-
},
|
|
35093
35365
|
setup(__props) {
|
|
35094
|
-
const
|
|
35095
|
-
|
|
35096
|
-
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
return (_c = (_b25 = (_a25 = searchResultOptions.value.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.disableMobileBodyScrollLock) != null ? _c : false;
|
|
35103
|
-
}
|
|
35104
|
-
);
|
|
35105
|
-
const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
|
|
35106
|
-
const defaultLabel = computed(() => props.labels.mobileFilterButton);
|
|
35107
|
-
const activeLabel = computed(() => props.labels.mobileFilterButtonActive);
|
|
35108
|
-
const openLabel = computed(() => props.labels.mobileFilterButtonOpen);
|
|
35109
|
-
const label = computed(() => {
|
|
35110
|
-
if (isSidebarVisible.value && openLabel.value) {
|
|
35111
|
-
return openLabel.value;
|
|
35112
|
-
}
|
|
35113
|
-
if (hasActiveFilters.value && activeLabel.value) {
|
|
35114
|
-
return activeLabel.value;
|
|
35115
|
-
}
|
|
35116
|
-
return defaultLabel.value;
|
|
35117
|
-
});
|
|
35118
|
-
const handleMobileToggle = () => {
|
|
35119
|
-
searchResultStore.setSidebarState({
|
|
35120
|
-
visible: !isSidebarVisible.value,
|
|
35121
|
-
disableBodyScrolling: !disableMobileBodyScrollLock.value
|
|
35122
|
-
});
|
|
35123
|
-
};
|
|
35124
|
-
const hasActiveFilters = computed(() => currentFilterCount.value > 0);
|
|
35366
|
+
const {
|
|
35367
|
+
isSidebarVisible,
|
|
35368
|
+
label,
|
|
35369
|
+
currentFilterCount,
|
|
35370
|
+
hasActiveFilters,
|
|
35371
|
+
showMobileFilterCount,
|
|
35372
|
+
handleFilterSidebarToggle
|
|
35373
|
+
} = useSidebarToggle();
|
|
35125
35374
|
return (_ctx, _cache) => {
|
|
35126
35375
|
return openBlock(), createElementBlock("div", {
|
|
35127
35376
|
class: normalizeClass(["lupa-mobile-toggle", {
|
|
35128
35377
|
"lupa-mobile-toggle-filters-empty": unref(currentFilterCount) < 1,
|
|
35129
|
-
"lupa-mobile-toggle-has-filters": hasActiveFilters
|
|
35130
|
-
"lupa-sidebar-open": isSidebarVisible
|
|
35378
|
+
"lupa-mobile-toggle-has-filters": unref(hasActiveFilters),
|
|
35379
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
35131
35380
|
}]),
|
|
35132
|
-
onClick:
|
|
35381
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
35382
|
+
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35133
35383
|
}, [
|
|
35134
|
-
createTextVNode(toDisplayString(label
|
|
35135
|
-
|
|
35384
|
+
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35385
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35136
35386
|
], 2);
|
|
35137
35387
|
};
|
|
35138
35388
|
}
|
|
35139
35389
|
});
|
|
35140
|
-
const _sfc_main$
|
|
35390
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
35141
35391
|
__name: "SearchResultsMobileFilterClose",
|
|
35142
35392
|
props: {
|
|
35143
35393
|
label: {}
|
|
@@ -35157,20 +35407,20 @@ and ensure you are accounting for this risk.
|
|
|
35157
35407
|
};
|
|
35158
35408
|
}
|
|
35159
35409
|
});
|
|
35160
|
-
const _hoisted_1$
|
|
35410
|
+
const _hoisted_1$F = {
|
|
35161
35411
|
key: 0,
|
|
35162
35412
|
id: "lupa-search-results-page-select",
|
|
35163
35413
|
"data-cy": "lupa-search-results-page-select"
|
|
35164
35414
|
};
|
|
35165
|
-
const _hoisted_2$
|
|
35415
|
+
const _hoisted_2$w = {
|
|
35166
35416
|
key: 0,
|
|
35167
35417
|
class: "lupa-page-number-separator"
|
|
35168
35418
|
};
|
|
35169
|
-
const _hoisted_3$
|
|
35419
|
+
const _hoisted_3$o = {
|
|
35170
35420
|
key: 0,
|
|
35171
35421
|
class: "lupa-page-number-separator"
|
|
35172
35422
|
};
|
|
35173
|
-
const _sfc_main$
|
|
35423
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
35174
35424
|
__name: "SearchResultsPageSelect",
|
|
35175
35425
|
props: {
|
|
35176
35426
|
lastPageLabel: {},
|
|
@@ -35265,7 +35515,7 @@ and ensure you are accounting for this risk.
|
|
|
35265
35515
|
};
|
|
35266
35516
|
return (_ctx, _cache) => {
|
|
35267
35517
|
var _a25;
|
|
35268
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35518
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
35269
35519
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35270
35520
|
key: 0,
|
|
35271
35521
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35289,7 +35539,7 @@ and ensure you are accounting for this risk.
|
|
|
35289
35539
|
_: 1,
|
|
35290
35540
|
__: [4]
|
|
35291
35541
|
}, 8, ["href"])),
|
|
35292
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
35542
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, "...")) : createCommentVNode("", true)
|
|
35293
35543
|
], 64)) : createCommentVNode("", true),
|
|
35294
35544
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
35295
35545
|
return openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
@@ -35309,7 +35559,7 @@ and ensure you are accounting for this risk.
|
|
|
35309
35559
|
}, 1032, ["href", "onClick", "class"]);
|
|
35310
35560
|
}), 128)),
|
|
35311
35561
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
35312
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
35562
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_3$o, "...")) : createCommentVNode("", true),
|
|
35313
35563
|
(openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35314
35564
|
href: getHref((_a25 = lastPage.value) != null ? _a25 : 1),
|
|
35315
35565
|
class: "lupa-page-number lupa-page-number-last",
|
|
@@ -35340,18 +35590,18 @@ and ensure you are accounting for this risk.
|
|
|
35340
35590
|
};
|
|
35341
35591
|
}
|
|
35342
35592
|
});
|
|
35343
|
-
const _hoisted_1$
|
|
35593
|
+
const _hoisted_1$E = {
|
|
35344
35594
|
id: "lupa-search-results-page-size",
|
|
35345
35595
|
"data-cy": "lupa-search-results-page-size"
|
|
35346
35596
|
};
|
|
35347
|
-
const _hoisted_2$
|
|
35348
|
-
const _hoisted_3$
|
|
35597
|
+
const _hoisted_2$v = { id: "lupa-select" };
|
|
35598
|
+
const _hoisted_3$n = {
|
|
35349
35599
|
class: "lupa-select-label",
|
|
35350
35600
|
for: "lupa-page-size-select-dropdown"
|
|
35351
35601
|
};
|
|
35352
|
-
const _hoisted_4$
|
|
35353
|
-
const _hoisted_5$
|
|
35354
|
-
const _sfc_main$
|
|
35602
|
+
const _hoisted_4$g = ["aria-label"];
|
|
35603
|
+
const _hoisted_5$b = ["value"];
|
|
35604
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35355
35605
|
__name: "SearchResultsPageSize",
|
|
35356
35606
|
props: {
|
|
35357
35607
|
labels: {},
|
|
@@ -35381,9 +35631,9 @@ and ensure you are accounting for this risk.
|
|
|
35381
35631
|
};
|
|
35382
35632
|
return (_ctx, _cache) => {
|
|
35383
35633
|
var _a25, _b25, _c;
|
|
35384
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35385
|
-
createBaseVNode("div", _hoisted_2$
|
|
35386
|
-
createBaseVNode("label", _hoisted_3$
|
|
35634
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
35635
|
+
createBaseVNode("div", _hoisted_2$v, [
|
|
35636
|
+
createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
35387
35637
|
createBaseVNode("select", {
|
|
35388
35638
|
id: "lupa-page-size-select-dropdown",
|
|
35389
35639
|
class: "lupa-select-dropdown",
|
|
@@ -35397,110 +35647,161 @@ and ensure you are accounting for this risk.
|
|
|
35397
35647
|
return openBlock(), createElementBlock("option", {
|
|
35398
35648
|
key: option,
|
|
35399
35649
|
value: option
|
|
35400
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
35650
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
|
|
35401
35651
|
}), 128))
|
|
35402
|
-
], 40, _hoisted_4$
|
|
35652
|
+
], 40, _hoisted_4$g)
|
|
35403
35653
|
])
|
|
35404
35654
|
]);
|
|
35405
35655
|
};
|
|
35406
35656
|
}
|
|
35407
35657
|
});
|
|
35408
|
-
const
|
|
35658
|
+
const useSorting = () => {
|
|
35659
|
+
const paramStore = useParamsStore();
|
|
35660
|
+
const optionStore = useOptionsStore();
|
|
35661
|
+
const { sort } = storeToRefs(paramStore);
|
|
35662
|
+
const { ariaLabels, searchResultOptions } = storeToRefs(optionStore);
|
|
35663
|
+
const selectedKey = ref("");
|
|
35664
|
+
const previousKey = ref("");
|
|
35665
|
+
const sortStyle = computed(() => {
|
|
35666
|
+
return searchResultOptions.value.sortStyle;
|
|
35667
|
+
});
|
|
35668
|
+
const sortOptions = computed(() => {
|
|
35669
|
+
return searchResultOptions.value.sort;
|
|
35670
|
+
});
|
|
35671
|
+
const callbacks = computed(() => {
|
|
35672
|
+
return searchResultOptions.value.callbacks;
|
|
35673
|
+
});
|
|
35674
|
+
const sotyByTitleLabel = computed(() => {
|
|
35675
|
+
var _a25;
|
|
35676
|
+
return (_a25 = searchResultOptions.value.labels) == null ? void 0 : _a25.sortBy;
|
|
35677
|
+
});
|
|
35678
|
+
const sortItems = computed(() => {
|
|
35679
|
+
if (sortOptions.value && sortOptions.value.length) {
|
|
35680
|
+
return sortOptions.value;
|
|
35681
|
+
} else {
|
|
35682
|
+
return [];
|
|
35683
|
+
}
|
|
35684
|
+
});
|
|
35685
|
+
const defaultSortValue = computed(() => {
|
|
35686
|
+
var _a25, _b25, _c;
|
|
35687
|
+
return (_c = (_a25 = sortOptions.value) == null ? void 0 : _a25.find((x) => x.default)) != null ? _c : (_b25 = sortItems.value) == null ? void 0 : _b25[0];
|
|
35688
|
+
});
|
|
35689
|
+
const setSortValue = () => {
|
|
35690
|
+
var _a25, _b25;
|
|
35691
|
+
const optionToSelect = (_a25 = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a25.key;
|
|
35692
|
+
selectedKey.value = optionToSelect != null ? optionToSelect : (_b25 = defaultSortValue.value) == null ? void 0 : _b25.key;
|
|
35693
|
+
previousKey.value = selectedKey.value;
|
|
35694
|
+
};
|
|
35695
|
+
watch(sort, () => setSortValue());
|
|
35696
|
+
const handleSelect = () => {
|
|
35697
|
+
var _a25, _b25, _c;
|
|
35698
|
+
const value = (_a25 = sortItems.value.find((x) => x.key === selectedKey.value)) == null ? void 0 : _a25.key;
|
|
35699
|
+
if (!value) {
|
|
35700
|
+
return;
|
|
35701
|
+
}
|
|
35702
|
+
paramStore.setSortSettings({ selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35703
|
+
(_c = (_b25 = callbacks.value) == null ? void 0 : _b25.onSortChange) == null ? void 0 : _c.call(_b25, { selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35704
|
+
paramStore.appendParams({
|
|
35705
|
+
params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.SORT), value }],
|
|
35706
|
+
paramsToRemove: [optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
|
|
35707
|
+
});
|
|
35708
|
+
previousKey.value = selectedKey.value;
|
|
35709
|
+
};
|
|
35710
|
+
return {
|
|
35711
|
+
sotyByTitleLabel,
|
|
35712
|
+
sortItems,
|
|
35713
|
+
selectedKey,
|
|
35714
|
+
ariaLabels,
|
|
35715
|
+
sortOptions,
|
|
35716
|
+
sortStyle,
|
|
35717
|
+
handleSelect,
|
|
35718
|
+
setSortValue
|
|
35719
|
+
};
|
|
35720
|
+
};
|
|
35721
|
+
const _hoisted_1$D = {
|
|
35722
|
+
key: 0,
|
|
35409
35723
|
id: "lupa-search-results-sort",
|
|
35410
35724
|
class: "lupa-search-results-sort"
|
|
35411
35725
|
};
|
|
35412
|
-
const _hoisted_2$
|
|
35413
|
-
const _hoisted_3$
|
|
35726
|
+
const _hoisted_2$u = { id: "lupa-select" };
|
|
35727
|
+
const _hoisted_3$m = {
|
|
35414
35728
|
class: "lupa-select-label",
|
|
35415
35729
|
for: "lupa-sort-select-dropdown"
|
|
35416
35730
|
};
|
|
35417
|
-
const _hoisted_4$
|
|
35418
|
-
const _hoisted_5$
|
|
35419
|
-
const _sfc_main$
|
|
35731
|
+
const _hoisted_4$f = ["aria-label"];
|
|
35732
|
+
const _hoisted_5$a = ["value"];
|
|
35733
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
35420
35734
|
__name: "SearchResultsSort",
|
|
35421
|
-
props: {
|
|
35422
|
-
options: {},
|
|
35423
|
-
callbacks: {}
|
|
35424
|
-
},
|
|
35425
35735
|
setup(__props) {
|
|
35426
|
-
const
|
|
35427
|
-
|
|
35428
|
-
|
|
35429
|
-
|
|
35430
|
-
|
|
35431
|
-
|
|
35432
|
-
|
|
35433
|
-
|
|
35434
|
-
|
|
35435
|
-
return props.options.options;
|
|
35436
|
-
} else {
|
|
35437
|
-
return [];
|
|
35438
|
-
}
|
|
35439
|
-
});
|
|
35440
|
-
const defaultSortValue = computed(() => {
|
|
35441
|
-
var _a25;
|
|
35442
|
-
return (_a25 = props.options.options.find((x) => x.default)) != null ? _a25 : props.options.options[0];
|
|
35443
|
-
});
|
|
35444
|
-
const setSortValue = () => {
|
|
35445
|
-
var _a25, _b25;
|
|
35446
|
-
const optionToSelect = (_a25 = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a25.key;
|
|
35447
|
-
selectedKey.value = optionToSelect != null ? optionToSelect : (_b25 = defaultSortValue.value) == null ? void 0 : _b25.key;
|
|
35448
|
-
previousKey.value = selectedKey.value;
|
|
35449
|
-
};
|
|
35450
|
-
watch(sort, () => setSortValue());
|
|
35736
|
+
const {
|
|
35737
|
+
sortItems,
|
|
35738
|
+
selectedKey,
|
|
35739
|
+
ariaLabels,
|
|
35740
|
+
sotyByTitleLabel,
|
|
35741
|
+
sortStyle,
|
|
35742
|
+
handleSelect,
|
|
35743
|
+
setSortValue
|
|
35744
|
+
} = useSorting();
|
|
35451
35745
|
onMounted(() => {
|
|
35452
35746
|
setSortValue();
|
|
35453
35747
|
});
|
|
35454
|
-
const
|
|
35455
|
-
var _a25
|
|
35456
|
-
|
|
35457
|
-
|
|
35458
|
-
return;
|
|
35459
|
-
}
|
|
35460
|
-
paramStore.setSortSettings({ selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35461
|
-
(_c = (_b25 = props.callbacks) == null ? void 0 : _b25.onSortChange) == null ? void 0 : _c.call(_b25, { selectedSortKey: value, previousSortKey: previousKey.value });
|
|
35462
|
-
paramStore.appendParams({
|
|
35463
|
-
params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS$1.SORT), value }],
|
|
35464
|
-
paramsToRemove: [optionStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
|
|
35465
|
-
});
|
|
35466
|
-
previousKey.value = selectedKey.value;
|
|
35467
|
-
};
|
|
35748
|
+
const showDefaultSort = computed(() => {
|
|
35749
|
+
var _a25;
|
|
35750
|
+
return !sortStyle.value || ((_a25 = sortStyle.value) == null ? void 0 : _a25.type) !== "drawer";
|
|
35751
|
+
});
|
|
35468
35752
|
return (_ctx, _cache) => {
|
|
35469
35753
|
var _a25, _b25;
|
|
35470
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35471
|
-
createBaseVNode("div", _hoisted_2$
|
|
35472
|
-
createBaseVNode("label", _hoisted_3$
|
|
35754
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
35755
|
+
createBaseVNode("div", _hoisted_2$u, [
|
|
35756
|
+
createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
35473
35757
|
withDirectives(createBaseVNode("select", {
|
|
35474
35758
|
id: "lupa-sort-select-dropdown",
|
|
35475
35759
|
class: "lupa-select-dropdown",
|
|
35476
|
-
"aria-label": (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.sortBySelect) != null ? _b25 :
|
|
35760
|
+
"aria-label": (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.sortBySelect) != null ? _b25 : unref(sotyByTitleLabel),
|
|
35477
35761
|
"data-cy": "lupa-sort-select-dropdown",
|
|
35478
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
|
|
35479
|
-
onChange:
|
|
35762
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(selectedKey) ? selectedKey.value = $event : null),
|
|
35763
|
+
onChange: _cache[1] || (_cache[1] = //@ts-ignore
|
|
35764
|
+
(...args) => unref(handleSelect) && unref(handleSelect)(...args)),
|
|
35480
35765
|
ref: "select"
|
|
35481
35766
|
}, [
|
|
35482
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(sortItems
|
|
35767
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sortItems), (option) => {
|
|
35483
35768
|
return openBlock(), createElementBlock("option", {
|
|
35484
35769
|
key: option.key,
|
|
35485
35770
|
value: option.key
|
|
35486
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
35771
|
+
}, toDisplayString(option.label), 9, _hoisted_5$a);
|
|
35487
35772
|
}), 128))
|
|
35488
|
-
], 40, _hoisted_4$
|
|
35489
|
-
[vModelSelect, selectedKey
|
|
35773
|
+
], 40, _hoisted_4$f), [
|
|
35774
|
+
[vModelSelect, unref(selectedKey)]
|
|
35490
35775
|
])
|
|
35491
35776
|
])
|
|
35492
|
-
]);
|
|
35777
|
+
])) : createCommentVNode("", true);
|
|
35778
|
+
};
|
|
35779
|
+
}
|
|
35780
|
+
});
|
|
35781
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
35782
|
+
__name: "SearchResultsSortDrawerToggle",
|
|
35783
|
+
setup(__props) {
|
|
35784
|
+
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
35785
|
+
return (_ctx, _cache) => {
|
|
35786
|
+
return unref(sortToggleVisible) ? (openBlock(), createElementBlock("div", {
|
|
35787
|
+
key: 0,
|
|
35788
|
+
class: normalizeClass(["lupa-mobile-toggle lupa-mobile-sort-toggle", {
|
|
35789
|
+
"lupa-sidebar-open": unref(isSidebarVisible)
|
|
35790
|
+
}]),
|
|
35791
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
35792
|
+
(...args) => unref(handleSortSidebarToggle) && unref(handleSortSidebarToggle)(...args))
|
|
35793
|
+
}, toDisplayString(unref(sortLabel)), 3)) : createCommentVNode("", true);
|
|
35493
35794
|
};
|
|
35494
35795
|
}
|
|
35495
35796
|
});
|
|
35496
|
-
const _hoisted_1$
|
|
35497
|
-
const _hoisted_2$
|
|
35797
|
+
const _hoisted_1$C = { class: "lupa-toolbar-left" };
|
|
35798
|
+
const _hoisted_2$t = {
|
|
35498
35799
|
key: 0,
|
|
35499
35800
|
class: "lupa-toolbar-right-title"
|
|
35500
35801
|
};
|
|
35501
|
-
const _hoisted_3$
|
|
35502
|
-
const _hoisted_4$
|
|
35503
|
-
const _hoisted_5$
|
|
35802
|
+
const _hoisted_3$l = { key: 2 };
|
|
35803
|
+
const _hoisted_4$e = { key: 4 };
|
|
35804
|
+
const _hoisted_5$9 = { key: 6 };
|
|
35504
35805
|
const _hoisted_6$4 = { class: "lupa-toolbar-right" };
|
|
35505
35806
|
const _hoisted_7$2 = {
|
|
35506
35807
|
key: 0,
|
|
@@ -35508,7 +35809,7 @@ and ensure you are accounting for this risk.
|
|
|
35508
35809
|
};
|
|
35509
35810
|
const _hoisted_8 = { key: 2 };
|
|
35510
35811
|
const _hoisted_9 = { key: 4 };
|
|
35511
|
-
const _sfc_main$
|
|
35812
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
35512
35813
|
__name: "SearchResultsToolbar",
|
|
35513
35814
|
props: {
|
|
35514
35815
|
options: {},
|
|
@@ -35524,7 +35825,7 @@ and ensure you are accounting for this risk.
|
|
|
35524
35825
|
const searchResultStore = useSearchResultStore();
|
|
35525
35826
|
const optionsStore = useOptionsStore();
|
|
35526
35827
|
const { page, limit } = storeToRefs(paramStore);
|
|
35527
|
-
const { hasAnyFilter, searchResult,
|
|
35828
|
+
const { hasAnyFilter, searchResult, isFilterSidebarVisible } = storeToRefs(searchResultStore);
|
|
35528
35829
|
const { currentResolutionPageSizes } = storeToRefs(optionsStore);
|
|
35529
35830
|
const isBottomLocation = computed(() => {
|
|
35530
35831
|
return props.paginationLocation === "bottom";
|
|
@@ -35602,7 +35903,7 @@ and ensure you are accounting for this risk.
|
|
|
35602
35903
|
var _a25;
|
|
35603
35904
|
return (_a25 = optionsValue.value.labels.toolbarRightLabel) != null ? _a25 : "";
|
|
35604
35905
|
});
|
|
35605
|
-
|
|
35906
|
+
computed(() => {
|
|
35606
35907
|
var _a25, _b25, _c;
|
|
35607
35908
|
return Boolean((_c = (_b25 = (_a25 = optionsValue.value.filters) == null ? void 0 : _a25.currentFilters) == null ? void 0 : _b25.mobileSidebar) == null ? void 0 : _c.showFilterCount);
|
|
35608
35909
|
});
|
|
@@ -35621,39 +35922,37 @@ and ensure you are accounting for this risk.
|
|
|
35621
35922
|
id: "lupa-search-results-toolbar",
|
|
35622
35923
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
35623
35924
|
}, [
|
|
35624
|
-
createBaseVNode("div", _hoisted_1$
|
|
35625
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
35626
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
35627
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
35925
|
+
createBaseVNode("div", _hoisted_1$C, [
|
|
35926
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
35927
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$O, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
35928
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$17, {
|
|
35628
35929
|
key: 3,
|
|
35629
35930
|
label: searchSummaryLabel.value,
|
|
35630
35931
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
35631
35932
|
onClear: handleClearAll
|
|
35632
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
35633
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
35933
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
35934
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
35634
35935
|
key: 5,
|
|
35635
35936
|
options: paginationOptions.value.pageSelect,
|
|
35636
35937
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
35637
35938
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
35638
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
35939
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
|
|
35639
35940
|
]),
|
|
35640
35941
|
createBaseVNode("div", _hoisted_6$4, [
|
|
35641
35942
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
35642
|
-
createVNode(_sfc_main$
|
|
35643
|
-
|
|
35644
|
-
|
|
35645
|
-
}, null, 8, ["labels", "show-filter-count"]),
|
|
35646
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$H, {
|
|
35943
|
+
createVNode(_sfc_main$N),
|
|
35944
|
+
createVNode(_sfc_main$I),
|
|
35945
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$K, {
|
|
35647
35946
|
key: 1,
|
|
35648
35947
|
options: paginationOptions.value.pageSize,
|
|
35649
35948
|
labels: paginationOptions.value.labels
|
|
35650
35949
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
35651
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
35950
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
35652
35951
|
key: 3,
|
|
35653
35952
|
options: sortOptions.value,
|
|
35654
35953
|
callbacks: callbacks.value
|
|
35655
35954
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
35656
|
-
showFiltersCloseButton.value && unref(
|
|
35955
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$M, {
|
|
35657
35956
|
key: 5,
|
|
35658
35957
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
35659
35958
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -35662,7 +35961,7 @@ and ensure you are accounting for this risk.
|
|
|
35662
35961
|
};
|
|
35663
35962
|
}
|
|
35664
35963
|
});
|
|
35665
|
-
const _sfc_main$
|
|
35964
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
35666
35965
|
__name: "SearchResultsProductImage",
|
|
35667
35966
|
props: {
|
|
35668
35967
|
item: {},
|
|
@@ -35670,7 +35969,7 @@ and ensure you are accounting for this risk.
|
|
|
35670
35969
|
},
|
|
35671
35970
|
setup(__props) {
|
|
35672
35971
|
return (_ctx, _cache) => {
|
|
35673
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35972
|
+
return openBlock(), createBlock(_sfc_main$1w, {
|
|
35674
35973
|
item: _ctx.item,
|
|
35675
35974
|
options: _ctx.options,
|
|
35676
35975
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -35679,16 +35978,16 @@ and ensure you are accounting for this risk.
|
|
|
35679
35978
|
};
|
|
35680
35979
|
}
|
|
35681
35980
|
});
|
|
35682
|
-
const _hoisted_1$
|
|
35683
|
-
const _hoisted_2$
|
|
35684
|
-
const _hoisted_3$
|
|
35685
|
-
const _hoisted_4$
|
|
35686
|
-
const _hoisted_5$
|
|
35981
|
+
const _hoisted_1$B = ["title", "innerHTML"];
|
|
35982
|
+
const _hoisted_2$s = ["title"];
|
|
35983
|
+
const _hoisted_3$k = ["href", "innerHTML"];
|
|
35984
|
+
const _hoisted_4$d = ["title"];
|
|
35985
|
+
const _hoisted_5$8 = {
|
|
35687
35986
|
key: 0,
|
|
35688
35987
|
class: "lupa-search-results-product-title-text"
|
|
35689
35988
|
};
|
|
35690
35989
|
const _hoisted_6$3 = ["href"];
|
|
35691
|
-
const _sfc_main$
|
|
35990
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
35692
35991
|
__name: "SearchResultsProductTitle",
|
|
35693
35992
|
props: {
|
|
35694
35993
|
item: {},
|
|
@@ -35725,7 +36024,7 @@ and ensure you are accounting for this risk.
|
|
|
35725
36024
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35726
36025
|
title: sanitizedTitle.value,
|
|
35727
36026
|
innerHTML: sanitizedTitle.value
|
|
35728
|
-
}, null, 12, _hoisted_1$
|
|
36027
|
+
}, null, 12, _hoisted_1$B)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
35729
36028
|
key: 1,
|
|
35730
36029
|
class: "lupa-search-results-product-title",
|
|
35731
36030
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -35736,26 +36035,26 @@ and ensure you are accounting for this risk.
|
|
|
35736
36035
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
35737
36036
|
innerHTML: sanitizedTitle.value,
|
|
35738
36037
|
onClick: handleNavigation
|
|
35739
|
-
}, null, 8, _hoisted_3$
|
|
35740
|
-
], 12, _hoisted_2$
|
|
36038
|
+
}, null, 8, _hoisted_3$k)
|
|
36039
|
+
], 12, _hoisted_2$s)) : (openBlock(), createElementBlock("div", {
|
|
35741
36040
|
key: 2,
|
|
35742
36041
|
class: "lupa-search-results-product-title",
|
|
35743
36042
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35744
36043
|
title: title.value
|
|
35745
36044
|
}, [
|
|
35746
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
36045
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
35747
36046
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
35748
36047
|
key: 1,
|
|
35749
36048
|
href: _ctx.link,
|
|
35750
36049
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
35751
36050
|
onClick: handleNavigation
|
|
35752
36051
|
}, toDisplayString(title.value), 9, _hoisted_6$3)) : createCommentVNode("", true)
|
|
35753
|
-
], 12, _hoisted_4$
|
|
36052
|
+
], 12, _hoisted_4$d));
|
|
35754
36053
|
};
|
|
35755
36054
|
}
|
|
35756
36055
|
});
|
|
35757
|
-
const _hoisted_1$
|
|
35758
|
-
const _sfc_main$
|
|
36056
|
+
const _hoisted_1$A = ["innerHTML"];
|
|
36057
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
35759
36058
|
__name: "SearchResultsProductDescription",
|
|
35760
36059
|
props: {
|
|
35761
36060
|
item: {},
|
|
@@ -35782,7 +36081,7 @@ and ensure you are accounting for this risk.
|
|
|
35782
36081
|
class: "lupa-search-results-product-description",
|
|
35783
36082
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35784
36083
|
innerHTML: sanitizedDescription.value
|
|
35785
|
-
}, null, 12, _hoisted_1$
|
|
36084
|
+
}, null, 12, _hoisted_1$A)) : (openBlock(), createElementBlock("div", {
|
|
35786
36085
|
key: 1,
|
|
35787
36086
|
class: "lupa-search-results-product-description",
|
|
35788
36087
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -35790,15 +36089,15 @@ and ensure you are accounting for this risk.
|
|
|
35790
36089
|
};
|
|
35791
36090
|
}
|
|
35792
36091
|
});
|
|
35793
|
-
const _hoisted_1$
|
|
35794
|
-
const _hoisted_2$
|
|
35795
|
-
const _hoisted_3$
|
|
35796
|
-
const _hoisted_4$
|
|
35797
|
-
const _hoisted_5$
|
|
36092
|
+
const _hoisted_1$z = { id: "lupa-search-results-rating" };
|
|
36093
|
+
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
36094
|
+
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
36095
|
+
const _hoisted_4$c = ["innerHTML"];
|
|
36096
|
+
const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
35798
36097
|
const _hoisted_6$2 = ["innerHTML"];
|
|
35799
36098
|
const _hoisted_7$1 = ["href"];
|
|
35800
36099
|
const STAR_COUNT = 5;
|
|
35801
|
-
const _sfc_main$
|
|
36100
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
35802
36101
|
__name: "SearchResultsProductRating",
|
|
35803
36102
|
props: {
|
|
35804
36103
|
item: {},
|
|
@@ -35835,18 +36134,18 @@ and ensure you are accounting for this risk.
|
|
|
35835
36134
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
35836
36135
|
});
|
|
35837
36136
|
return (_ctx, _cache) => {
|
|
35838
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35839
|
-
createBaseVNode("div", _hoisted_2$
|
|
35840
|
-
createBaseVNode("div", _hoisted_3$
|
|
36137
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
36138
|
+
createBaseVNode("div", _hoisted_2$r, [
|
|
36139
|
+
createBaseVNode("div", _hoisted_3$j, [
|
|
35841
36140
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
35842
36141
|
return openBlock(), createElementBlock("div", {
|
|
35843
36142
|
key: index,
|
|
35844
36143
|
innerHTML: star,
|
|
35845
36144
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
35846
|
-
}, null, 8, _hoisted_4$
|
|
36145
|
+
}, null, 8, _hoisted_4$c);
|
|
35847
36146
|
}), 128))
|
|
35848
36147
|
]),
|
|
35849
|
-
createBaseVNode("div", _hoisted_5$
|
|
36148
|
+
createBaseVNode("div", _hoisted_5$7, [
|
|
35850
36149
|
createBaseVNode("div", {
|
|
35851
36150
|
class: "lupa-ratings-highlighted",
|
|
35852
36151
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -35869,11 +36168,11 @@ and ensure you are accounting for this risk.
|
|
|
35869
36168
|
};
|
|
35870
36169
|
}
|
|
35871
36170
|
});
|
|
35872
|
-
const _hoisted_1$
|
|
36171
|
+
const _hoisted_1$y = {
|
|
35873
36172
|
class: "lupa-search-results-product-regular-price",
|
|
35874
36173
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
35875
36174
|
};
|
|
35876
|
-
const _sfc_main$
|
|
36175
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
35877
36176
|
__name: "SearchResultsProductRegularPrice",
|
|
35878
36177
|
props: {
|
|
35879
36178
|
item: {},
|
|
@@ -35895,11 +36194,11 @@ and ensure you are accounting for this risk.
|
|
|
35895
36194
|
);
|
|
35896
36195
|
});
|
|
35897
36196
|
return (_ctx, _cache) => {
|
|
35898
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36197
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, toDisplayString(price.value), 1);
|
|
35899
36198
|
};
|
|
35900
36199
|
}
|
|
35901
36200
|
});
|
|
35902
|
-
const _sfc_main$
|
|
36201
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
35903
36202
|
__name: "SearchResultsProductPrice",
|
|
35904
36203
|
props: {
|
|
35905
36204
|
item: {},
|
|
@@ -35933,12 +36232,12 @@ and ensure you are accounting for this risk.
|
|
|
35933
36232
|
};
|
|
35934
36233
|
}
|
|
35935
36234
|
});
|
|
35936
|
-
const _hoisted_1$
|
|
35937
|
-
const _hoisted_2$
|
|
35938
|
-
const _hoisted_3$
|
|
35939
|
-
const _hoisted_4$
|
|
35940
|
-
const _hoisted_5$
|
|
35941
|
-
const _sfc_main$
|
|
36235
|
+
const _hoisted_1$x = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
36236
|
+
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
36237
|
+
const _hoisted_3$i = ["disabled"];
|
|
36238
|
+
const _hoisted_4$b = ["href"];
|
|
36239
|
+
const _hoisted_5$6 = ["id", "disabled"];
|
|
36240
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
35942
36241
|
__name: "SearchResultsProductAddToCart",
|
|
35943
36242
|
props: {
|
|
35944
36243
|
item: {},
|
|
@@ -35997,16 +36296,16 @@ and ensure you are accounting for this risk.
|
|
|
35997
36296
|
loading.value = false;
|
|
35998
36297
|
});
|
|
35999
36298
|
return (_ctx, _cache) => {
|
|
36000
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36001
|
-
createBaseVNode("div", _hoisted_2$
|
|
36299
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
36300
|
+
createBaseVNode("div", _hoisted_2$q, [
|
|
36002
36301
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
36003
36302
|
key: 0,
|
|
36004
36303
|
class: addToCartButtonClass.value,
|
|
36005
36304
|
"data-cy": "lupa-add-to-cart",
|
|
36006
36305
|
disabled: !inStockValue.value || loading.value
|
|
36007
36306
|
}, _ctx.dynamicAttributes, { onClick: handleClick }), [
|
|
36008
|
-
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$
|
|
36009
|
-
], 16, _hoisted_3$
|
|
36307
|
+
createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$b)
|
|
36308
|
+
], 16, _hoisted_3$i)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
36010
36309
|
key: 1,
|
|
36011
36310
|
id: id.value,
|
|
36012
36311
|
class: addToCartButtonClass.value,
|
|
@@ -36014,18 +36313,18 @@ and ensure you are accounting for this risk.
|
|
|
36014
36313
|
disabled: !inStockValue.value || loading.value
|
|
36015
36314
|
}, _ctx.dynamicAttributes, {
|
|
36016
36315
|
onClick: withModifiers(handleClick, ["stop"])
|
|
36017
|
-
}), toDisplayString(label.value), 17, _hoisted_5$
|
|
36316
|
+
}), toDisplayString(label.value), 17, _hoisted_5$6))
|
|
36018
36317
|
])
|
|
36019
36318
|
]);
|
|
36020
36319
|
};
|
|
36021
36320
|
}
|
|
36022
36321
|
});
|
|
36023
|
-
const _hoisted_1$
|
|
36024
|
-
const _hoisted_2$
|
|
36025
|
-
const _hoisted_3$
|
|
36026
|
-
const _hoisted_4$
|
|
36027
|
-
const _hoisted_5$
|
|
36028
|
-
const _sfc_main$
|
|
36322
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
36323
|
+
const _hoisted_2$p = { key: 0 };
|
|
36324
|
+
const _hoisted_3$h = { key: 1 };
|
|
36325
|
+
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
36326
|
+
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
36327
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
36029
36328
|
__name: "SearchResultsProductCustom",
|
|
36030
36329
|
props: {
|
|
36031
36330
|
item: {},
|
|
@@ -36067,20 +36366,20 @@ and ensure you are accounting for this risk.
|
|
|
36067
36366
|
key: 0,
|
|
36068
36367
|
class: className.value,
|
|
36069
36368
|
innerHTML: text.value
|
|
36070
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36369
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
36071
36370
|
key: 1,
|
|
36072
36371
|
class: className.value
|
|
36073
36372
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
36074
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
36075
|
-
createBaseVNode("div", _hoisted_4$
|
|
36076
|
-
createBaseVNode("div", _hoisted_5$
|
|
36373
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
36374
|
+
createBaseVNode("div", _hoisted_4$a, toDisplayString(label.value), 1),
|
|
36375
|
+
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
36077
36376
|
]))
|
|
36078
36377
|
], 16));
|
|
36079
36378
|
};
|
|
36080
36379
|
}
|
|
36081
36380
|
});
|
|
36082
|
-
const _hoisted_1$
|
|
36083
|
-
const _sfc_main$
|
|
36381
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
36382
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
36084
36383
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
36085
36384
|
props: {
|
|
36086
36385
|
item: {},
|
|
@@ -36116,15 +36415,15 @@ and ensure you are accounting for this risk.
|
|
|
36116
36415
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
36117
36416
|
class: className.value,
|
|
36118
36417
|
innerHTML: text.value
|
|
36119
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36418
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$v);
|
|
36120
36419
|
};
|
|
36121
36420
|
}
|
|
36122
36421
|
});
|
|
36123
|
-
const _hoisted_1$
|
|
36124
|
-
const _hoisted_2$
|
|
36125
|
-
const _hoisted_3$
|
|
36126
|
-
const _hoisted_4$
|
|
36127
|
-
const _sfc_main$
|
|
36422
|
+
const _hoisted_1$u = { id: "lupa-search-results-rating" };
|
|
36423
|
+
const _hoisted_2$o = ["innerHTML"];
|
|
36424
|
+
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
36425
|
+
const _hoisted_4$9 = ["href"];
|
|
36426
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
36128
36427
|
__name: "SearchResultsProductSingleStarRating",
|
|
36129
36428
|
props: {
|
|
36130
36429
|
item: {},
|
|
@@ -36152,35 +36451,35 @@ and ensure you are accounting for this risk.
|
|
|
36152
36451
|
return RATING_STAR_HTML;
|
|
36153
36452
|
});
|
|
36154
36453
|
return (_ctx, _cache) => {
|
|
36155
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36454
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
36156
36455
|
createBaseVNode("div", {
|
|
36157
36456
|
innerHTML: star.value,
|
|
36158
36457
|
class: "lupa-rating lupa-rating-highlighted"
|
|
36159
|
-
}, null, 8, _hoisted_2$
|
|
36160
|
-
createBaseVNode("div", _hoisted_3$
|
|
36458
|
+
}, null, 8, _hoisted_2$o),
|
|
36459
|
+
createBaseVNode("div", _hoisted_3$g, toDisplayString(rating.value), 1),
|
|
36161
36460
|
createBaseVNode("a", {
|
|
36162
36461
|
href: ratingLink.value,
|
|
36163
36462
|
class: "lupa-total-ratings"
|
|
36164
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
36463
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$9)
|
|
36165
36464
|
]);
|
|
36166
36465
|
};
|
|
36167
36466
|
}
|
|
36168
36467
|
});
|
|
36169
36468
|
const __default__ = {
|
|
36170
36469
|
components: {
|
|
36171
|
-
SearchResultsProductImage: _sfc_main$
|
|
36172
|
-
SearchResultsProductTitle: _sfc_main$
|
|
36173
|
-
SearchResultsProductDescription: _sfc_main$
|
|
36174
|
-
SearchResultsProductRating: _sfc_main$
|
|
36175
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
36176
|
-
SearchResultsProductPrice: _sfc_main$
|
|
36177
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
36178
|
-
SearchResultsProductCustom: _sfc_main$
|
|
36179
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
36180
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
36181
|
-
}
|
|
36182
|
-
};
|
|
36183
|
-
const _sfc_main$
|
|
36470
|
+
SearchResultsProductImage: _sfc_main$G,
|
|
36471
|
+
SearchResultsProductTitle: _sfc_main$F,
|
|
36472
|
+
SearchResultsProductDescription: _sfc_main$E,
|
|
36473
|
+
SearchResultsProductRating: _sfc_main$D,
|
|
36474
|
+
SearchResultsProductRegularPrice: _sfc_main$C,
|
|
36475
|
+
SearchResultsProductPrice: _sfc_main$B,
|
|
36476
|
+
SearchResultsProductAddToCart: _sfc_main$A,
|
|
36477
|
+
SearchResultsProductCustom: _sfc_main$z,
|
|
36478
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$y,
|
|
36479
|
+
SearchResultsProductSingleStarRating: _sfc_main$x
|
|
36480
|
+
}
|
|
36481
|
+
};
|
|
36482
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36184
36483
|
__name: "SearchResultsProductCardElement",
|
|
36185
36484
|
props: {
|
|
36186
36485
|
item: {},
|
|
@@ -36258,13 +36557,13 @@ and ensure you are accounting for this risk.
|
|
|
36258
36557
|
};
|
|
36259
36558
|
}
|
|
36260
36559
|
}));
|
|
36261
|
-
const _hoisted_1$
|
|
36262
|
-
const _hoisted_2$
|
|
36560
|
+
const _hoisted_1$t = ["href"];
|
|
36561
|
+
const _hoisted_2$n = {
|
|
36263
36562
|
key: 0,
|
|
36264
36563
|
class: "lupa-out-of-stock"
|
|
36265
36564
|
};
|
|
36266
|
-
const _hoisted_3$
|
|
36267
|
-
const _sfc_main$
|
|
36565
|
+
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
36566
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
36268
36567
|
__name: "SearchResultsProductCard",
|
|
36269
36568
|
props: {
|
|
36270
36569
|
product: {},
|
|
@@ -36440,7 +36739,7 @@ and ensure you are accounting for this risk.
|
|
|
36440
36739
|
default: withCtx(() => {
|
|
36441
36740
|
var _a25;
|
|
36442
36741
|
return [
|
|
36443
|
-
createVNode(_sfc_main$
|
|
36742
|
+
createVNode(_sfc_main$1g, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36444
36743
|
createBaseVNode("div", {
|
|
36445
36744
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36446
36745
|
}, [
|
|
@@ -36450,7 +36749,7 @@ and ensure you are accounting for this risk.
|
|
|
36450
36749
|
onClick: handleNavigation
|
|
36451
36750
|
}, [
|
|
36452
36751
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36453
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36752
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
36454
36753
|
class: "lupa-search-results-product-element",
|
|
36455
36754
|
item: _ctx.product,
|
|
36456
36755
|
element,
|
|
@@ -36461,16 +36760,16 @@ and ensure you are accounting for this risk.
|
|
|
36461
36760
|
onProductEvent: handleProductEvent
|
|
36462
36761
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36463
36762
|
}), 128)),
|
|
36464
|
-
createVNode(_sfc_main$
|
|
36763
|
+
createVNode(_sfc_main$1g, {
|
|
36465
36764
|
options: badgesOptions.value,
|
|
36466
36765
|
position: "image",
|
|
36467
36766
|
class: "lupa-image-badges"
|
|
36468
36767
|
}, null, 8, ["options"]),
|
|
36469
|
-
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
36470
|
-
], 8, _hoisted_1$
|
|
36471
|
-
createBaseVNode("div", _hoisted_3$
|
|
36768
|
+
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
36769
|
+
], 8, _hoisted_1$t),
|
|
36770
|
+
createBaseVNode("div", _hoisted_3$f, [
|
|
36472
36771
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
36473
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36772
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
36474
36773
|
class: "lupa-search-results-product-element",
|
|
36475
36774
|
item: _ctx.product,
|
|
36476
36775
|
element,
|
|
@@ -36488,7 +36787,7 @@ and ensure you are accounting for this risk.
|
|
|
36488
36787
|
class: normalizeClass("lupa-element-group-" + group)
|
|
36489
36788
|
}, [
|
|
36490
36789
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
36491
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36790
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
36492
36791
|
class: "lupa-search-results-product-element",
|
|
36493
36792
|
item: _ctx.product,
|
|
36494
36793
|
element,
|
|
@@ -36509,23 +36808,23 @@ and ensure you are accounting for this risk.
|
|
|
36509
36808
|
};
|
|
36510
36809
|
}
|
|
36511
36810
|
});
|
|
36512
|
-
const _hoisted_1$
|
|
36811
|
+
const _hoisted_1$s = {
|
|
36513
36812
|
id: "lupa-search-results-similar-queries",
|
|
36514
36813
|
"data-cy": "lupa-search-results-similar-queries"
|
|
36515
36814
|
};
|
|
36516
|
-
const _hoisted_2$
|
|
36517
|
-
const _hoisted_3$
|
|
36815
|
+
const _hoisted_2$m = { class: "lupa-similar-queries-label" };
|
|
36816
|
+
const _hoisted_3$e = {
|
|
36518
36817
|
class: "lupa-similar-query-label",
|
|
36519
36818
|
"data-cy": "lupa-similar-query-label"
|
|
36520
36819
|
};
|
|
36521
|
-
const _hoisted_4$
|
|
36522
|
-
const _hoisted_5$
|
|
36820
|
+
const _hoisted_4$8 = ["onClick"];
|
|
36821
|
+
const _hoisted_5$4 = ["innerHTML"];
|
|
36523
36822
|
const _hoisted_6$1 = { key: 0 };
|
|
36524
36823
|
const _hoisted_7 = {
|
|
36525
36824
|
class: "lupa-products",
|
|
36526
36825
|
"data-cy": "lupa-products"
|
|
36527
36826
|
};
|
|
36528
|
-
const _sfc_main$
|
|
36827
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
36529
36828
|
__name: "SearchResultsSimilarQueries",
|
|
36530
36829
|
props: {
|
|
36531
36830
|
labels: {},
|
|
@@ -36563,11 +36862,11 @@ and ensure you are accounting for this risk.
|
|
|
36563
36862
|
};
|
|
36564
36863
|
};
|
|
36565
36864
|
return (_ctx, _cache) => {
|
|
36566
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36567
|
-
createBaseVNode("div", _hoisted_2$
|
|
36865
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
36866
|
+
createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
36568
36867
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
36569
36868
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
36570
|
-
createBaseVNode("div", _hoisted_3$
|
|
36869
|
+
createBaseVNode("div", _hoisted_3$e, [
|
|
36571
36870
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
36572
36871
|
createBaseVNode("span", {
|
|
36573
36872
|
id: "lupa-similar-query-text-component",
|
|
@@ -36577,13 +36876,13 @@ and ensure you are accounting for this risk.
|
|
|
36577
36876
|
}, [
|
|
36578
36877
|
createBaseVNode("span", {
|
|
36579
36878
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
36580
|
-
}, null, 8, _hoisted_5$
|
|
36879
|
+
}, null, 8, _hoisted_5$4),
|
|
36581
36880
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$1, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
36582
|
-
], 8, _hoisted_4$
|
|
36881
|
+
], 8, _hoisted_4$8)
|
|
36583
36882
|
]),
|
|
36584
36883
|
createBaseVNode("div", _hoisted_7, [
|
|
36585
36884
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
36586
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36885
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
36587
36886
|
style: normalizeStyle(_ctx.columnSize),
|
|
36588
36887
|
key: getDocumentKey(index2, product),
|
|
36589
36888
|
product,
|
|
@@ -36598,15 +36897,15 @@ and ensure you are accounting for this risk.
|
|
|
36598
36897
|
};
|
|
36599
36898
|
}
|
|
36600
36899
|
});
|
|
36601
|
-
const _hoisted_1$
|
|
36900
|
+
const _hoisted_1$r = {
|
|
36602
36901
|
key: 0,
|
|
36603
36902
|
class: "lupa-results-additional-panel"
|
|
36604
36903
|
};
|
|
36605
|
-
const _hoisted_2$
|
|
36904
|
+
const _hoisted_2$l = {
|
|
36606
36905
|
class: "lupa-results-additional-panel-items",
|
|
36607
36906
|
"data-cy": "lupa-results-additional-panel-items"
|
|
36608
36907
|
};
|
|
36609
|
-
const _sfc_main$
|
|
36908
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
36610
36909
|
__name: "AdditionalPanel",
|
|
36611
36910
|
props: {
|
|
36612
36911
|
panel: {},
|
|
@@ -36679,10 +36978,10 @@ and ensure you are accounting for this risk.
|
|
|
36679
36978
|
handleQueryChange();
|
|
36680
36979
|
});
|
|
36681
36980
|
return (_ctx, _cache) => {
|
|
36682
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36683
|
-
createBaseVNode("div", _hoisted_2$
|
|
36981
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
36982
|
+
createBaseVNode("div", _hoisted_2$l, [
|
|
36684
36983
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
36685
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36984
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
36686
36985
|
key: index,
|
|
36687
36986
|
product: item,
|
|
36688
36987
|
options: _ctx.panel,
|
|
@@ -36700,11 +36999,11 @@ and ensure you are accounting for this risk.
|
|
|
36700
36999
|
};
|
|
36701
37000
|
}
|
|
36702
37001
|
});
|
|
36703
|
-
const _hoisted_1$
|
|
37002
|
+
const _hoisted_1$q = {
|
|
36704
37003
|
key: 0,
|
|
36705
37004
|
class: "lupa-results-additional-panels"
|
|
36706
37005
|
};
|
|
36707
|
-
const _sfc_main$
|
|
37006
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
36708
37007
|
__name: "AdditionalPanels",
|
|
36709
37008
|
props: {
|
|
36710
37009
|
options: {},
|
|
@@ -36721,9 +37020,9 @@ and ensure you are accounting for this risk.
|
|
|
36721
37020
|
return locationPanels.value.length > 0;
|
|
36722
37021
|
});
|
|
36723
37022
|
return (_ctx, _cache) => {
|
|
36724
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37023
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
36725
37024
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
36726
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37025
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
36727
37026
|
key: panel.queryKey,
|
|
36728
37027
|
panel,
|
|
36729
37028
|
options: _ctx.sdkOptions
|
|
@@ -36740,29 +37039,29 @@ and ensure you are accounting for this risk.
|
|
|
36740
37039
|
}
|
|
36741
37040
|
return target2;
|
|
36742
37041
|
};
|
|
36743
|
-
const _sfc_main$
|
|
36744
|
-
const _hoisted_1$
|
|
36745
|
-
const _hoisted_2$
|
|
37042
|
+
const _sfc_main$r = {};
|
|
37043
|
+
const _hoisted_1$p = { class: "lupa-spinner-wrapper" };
|
|
37044
|
+
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
36746
37045
|
function _sfc_render(_ctx, _cache) {
|
|
36747
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36748
|
-
createBaseVNode("div", _hoisted_2$
|
|
37046
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
37047
|
+
createBaseVNode("div", _hoisted_2$k, [
|
|
36749
37048
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
36750
37049
|
return createBaseVNode("div", { key: x });
|
|
36751
37050
|
}), 64))
|
|
36752
37051
|
])
|
|
36753
37052
|
]);
|
|
36754
37053
|
}
|
|
36755
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36756
|
-
const _hoisted_1$
|
|
37054
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
|
|
37055
|
+
const _hoisted_1$o = {
|
|
36757
37056
|
id: "lupa-search-results-similar-results",
|
|
36758
37057
|
"data-cy": "lupa-search-results-similar-results"
|
|
36759
37058
|
};
|
|
36760
|
-
const _hoisted_2$
|
|
36761
|
-
const _hoisted_3$
|
|
37059
|
+
const _hoisted_2$j = { class: "lupa-similar-results-label" };
|
|
37060
|
+
const _hoisted_3$d = {
|
|
36762
37061
|
class: "lupa-products",
|
|
36763
37062
|
"data-cy": "lupa-products"
|
|
36764
37063
|
};
|
|
36765
|
-
const _sfc_main$
|
|
37064
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
36766
37065
|
__name: "SearchResultsSimilarResults",
|
|
36767
37066
|
props: {
|
|
36768
37067
|
columnSize: {},
|
|
@@ -36783,11 +37082,11 @@ and ensure you are accounting for this risk.
|
|
|
36783
37082
|
};
|
|
36784
37083
|
});
|
|
36785
37084
|
return (_ctx, _cache) => {
|
|
36786
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36787
|
-
createBaseVNode("div", _hoisted_2$
|
|
36788
|
-
createBaseVNode("div", _hoisted_3$
|
|
37085
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
37086
|
+
createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
37087
|
+
createBaseVNode("div", _hoisted_3$d, [
|
|
36789
37088
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
36790
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37089
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
36791
37090
|
style: normalizeStyle(_ctx.columnSize),
|
|
36792
37091
|
key: getDocumentKey(index, product),
|
|
36793
37092
|
product,
|
|
@@ -36908,15 +37207,15 @@ and ensure you are accounting for this risk.
|
|
|
36908
37207
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
36909
37208
|
}
|
|
36910
37209
|
});
|
|
36911
|
-
const _hoisted_1$
|
|
36912
|
-
const _hoisted_2$
|
|
36913
|
-
const _hoisted_3$
|
|
36914
|
-
const _hoisted_4$
|
|
36915
|
-
const _hoisted_5$
|
|
37210
|
+
const _hoisted_1$n = { class: "lupa-related-query-item" };
|
|
37211
|
+
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
37212
|
+
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
37213
|
+
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
37214
|
+
const _hoisted_5$3 = {
|
|
36916
37215
|
key: 0,
|
|
36917
37216
|
class: "lupa-related-query-count"
|
|
36918
37217
|
};
|
|
36919
|
-
const _sfc_main$
|
|
37218
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
36920
37219
|
__name: "RelatedQueryPanel",
|
|
36921
37220
|
props: {
|
|
36922
37221
|
query: {},
|
|
@@ -37012,9 +37311,9 @@ and ensure you are accounting for this risk.
|
|
|
37012
37311
|
});
|
|
37013
37312
|
return (_ctx, _cache) => {
|
|
37014
37313
|
var _a25;
|
|
37015
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37016
|
-
createBaseVNode("div", _hoisted_2$
|
|
37017
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37314
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
37315
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
37316
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
|
|
37018
37317
|
key: 0,
|
|
37019
37318
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37020
37319
|
"image-class": "lupa-related-query-image",
|
|
@@ -37022,24 +37321,24 @@ and ensure you are accounting for this risk.
|
|
|
37022
37321
|
options: image.value
|
|
37023
37322
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
37024
37323
|
]),
|
|
37025
|
-
createBaseVNode("div", _hoisted_3$
|
|
37026
|
-
createBaseVNode("span", _hoisted_4$
|
|
37027
|
-
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
37324
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
37325
|
+
createBaseVNode("span", _hoisted_4$7, toDisplayString(_ctx.query), 1),
|
|
37326
|
+
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
37028
37327
|
])
|
|
37029
37328
|
]);
|
|
37030
37329
|
};
|
|
37031
37330
|
}
|
|
37032
37331
|
});
|
|
37033
|
-
const _hoisted_1$
|
|
37332
|
+
const _hoisted_1$m = {
|
|
37034
37333
|
key: 0,
|
|
37035
37334
|
class: "lupa-related-queries"
|
|
37036
37335
|
};
|
|
37037
|
-
const _hoisted_2$
|
|
37336
|
+
const _hoisted_2$h = {
|
|
37038
37337
|
key: 0,
|
|
37039
37338
|
class: "lupa-related-queries-title"
|
|
37040
37339
|
};
|
|
37041
|
-
const _hoisted_3$
|
|
37042
|
-
const _sfc_main$
|
|
37340
|
+
const _hoisted_3$b = ["onClick"];
|
|
37341
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
37043
37342
|
__name: "RelatedQueries",
|
|
37044
37343
|
props: {
|
|
37045
37344
|
options: {}
|
|
@@ -37133,8 +37432,8 @@ and ensure you are accounting for this risk.
|
|
|
37133
37432
|
};
|
|
37134
37433
|
return (_ctx, _cache) => {
|
|
37135
37434
|
var _a25, _b25, _c, _d;
|
|
37136
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37137
|
-
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
37435
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
37436
|
+
((_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),
|
|
37138
37437
|
createBaseVNode("ul", null, [
|
|
37139
37438
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
37140
37439
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
@@ -37144,14 +37443,14 @@ and ensure you are accounting for this risk.
|
|
|
37144
37443
|
createBaseVNode("a", {
|
|
37145
37444
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37146
37445
|
}, [
|
|
37147
|
-
createVNode(_sfc_main$
|
|
37446
|
+
createVNode(_sfc_main$p, {
|
|
37148
37447
|
"source-key": query.key,
|
|
37149
37448
|
options: _ctx.options,
|
|
37150
37449
|
query: query.value,
|
|
37151
37450
|
"existing-items-from-other-queries": allDisplayItems.value,
|
|
37152
37451
|
onLoaded: (item) => processLoadedItem(query, item)
|
|
37153
37452
|
}, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
|
|
37154
|
-
], 8, _hoisted_3$
|
|
37453
|
+
], 8, _hoisted_3$b)
|
|
37155
37454
|
], 2)), [
|
|
37156
37455
|
[vShow, querySourceResultMap.value[query.value] !== false]
|
|
37157
37456
|
]);
|
|
@@ -37188,13 +37487,13 @@ and ensure you are accounting for this risk.
|
|
|
37188
37487
|
}
|
|
37189
37488
|
return null;
|
|
37190
37489
|
};
|
|
37191
|
-
const _hoisted_1$
|
|
37490
|
+
const _hoisted_1$l = {
|
|
37192
37491
|
key: 0,
|
|
37193
37492
|
class: "lupa-redirection-suggestion"
|
|
37194
37493
|
};
|
|
37195
|
-
const _hoisted_2$
|
|
37196
|
-
const _hoisted_3$
|
|
37197
|
-
const _sfc_main$
|
|
37494
|
+
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
37495
|
+
const _hoisted_3$a = ["href"];
|
|
37496
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37198
37497
|
__name: "RedirectionSuggestions",
|
|
37199
37498
|
props: {
|
|
37200
37499
|
options: {}
|
|
@@ -37217,19 +37516,19 @@ and ensure you are accounting for this risk.
|
|
|
37217
37516
|
)
|
|
37218
37517
|
);
|
|
37219
37518
|
return (_ctx, _cache) => {
|
|
37220
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37221
|
-
createBaseVNode("h4", _hoisted_2$
|
|
37222
|
-
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$
|
|
37519
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
37520
|
+
createBaseVNode("h4", _hoisted_2$g, [
|
|
37521
|
+
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
37223
37522
|
])
|
|
37224
37523
|
])) : createCommentVNode("", true);
|
|
37225
37524
|
};
|
|
37226
37525
|
}
|
|
37227
37526
|
});
|
|
37228
|
-
const _hoisted_1$
|
|
37527
|
+
const _hoisted_1$k = {
|
|
37229
37528
|
key: 0,
|
|
37230
37529
|
class: "lupa-refiners-loading-notice"
|
|
37231
37530
|
};
|
|
37232
|
-
const _sfc_main$
|
|
37531
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37233
37532
|
__name: "RefinersLoadingNotice",
|
|
37234
37533
|
props: {
|
|
37235
37534
|
labels: {}
|
|
@@ -37240,22 +37539,22 @@ and ensure you are accounting for this risk.
|
|
|
37240
37539
|
const props = __props;
|
|
37241
37540
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37242
37541
|
return (_ctx, _cache) => {
|
|
37243
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37542
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37244
37543
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37245
37544
|
createVNode(Spinner)
|
|
37246
37545
|
])) : createCommentVNode("", true);
|
|
37247
37546
|
};
|
|
37248
37547
|
}
|
|
37249
37548
|
});
|
|
37250
|
-
const _hoisted_1$
|
|
37251
|
-
const _hoisted_2$
|
|
37252
|
-
const _hoisted_3$
|
|
37253
|
-
const _hoisted_4$
|
|
37254
|
-
const _hoisted_5$
|
|
37549
|
+
const _hoisted_1$j = { class: "lupa-related-query-item" };
|
|
37550
|
+
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
37551
|
+
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
37552
|
+
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
37553
|
+
const _hoisted_5$2 = {
|
|
37255
37554
|
key: 0,
|
|
37256
37555
|
class: "lupa-related-query-count"
|
|
37257
37556
|
};
|
|
37258
|
-
const _sfc_main$
|
|
37557
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37259
37558
|
__name: "RelatedQueryPanelApi",
|
|
37260
37559
|
props: {
|
|
37261
37560
|
relatedQuery: {},
|
|
@@ -37287,9 +37586,9 @@ and ensure you are accounting for this risk.
|
|
|
37287
37586
|
});
|
|
37288
37587
|
return (_ctx, _cache) => {
|
|
37289
37588
|
var _a25;
|
|
37290
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37291
|
-
createBaseVNode("div", _hoisted_2$
|
|
37292
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37589
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37590
|
+
createBaseVNode("div", _hoisted_2$f, [
|
|
37591
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
|
|
37293
37592
|
key: 0,
|
|
37294
37593
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37295
37594
|
"image-class": "lupa-related-query-image",
|
|
@@ -37297,24 +37596,24 @@ and ensure you are accounting for this risk.
|
|
|
37297
37596
|
options: image.value
|
|
37298
37597
|
}, null, 8, ["item", "options"])) : createCommentVNode("", true)
|
|
37299
37598
|
]),
|
|
37300
|
-
createBaseVNode("div", _hoisted_3$
|
|
37301
|
-
createBaseVNode("span", _hoisted_4$
|
|
37302
|
-
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
37599
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
37600
|
+
createBaseVNode("span", _hoisted_4$6, toDisplayString(query.value), 1),
|
|
37601
|
+
((_a25 = _ctx.options) == null ? void 0 : _a25.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
37303
37602
|
])
|
|
37304
37603
|
]);
|
|
37305
37604
|
};
|
|
37306
37605
|
}
|
|
37307
37606
|
});
|
|
37308
|
-
const _hoisted_1$
|
|
37607
|
+
const _hoisted_1$i = {
|
|
37309
37608
|
key: 0,
|
|
37310
37609
|
class: "lupa-related-queries"
|
|
37311
37610
|
};
|
|
37312
|
-
const _hoisted_2$
|
|
37611
|
+
const _hoisted_2$e = {
|
|
37313
37612
|
key: 0,
|
|
37314
37613
|
class: "lupa-related-queries-title"
|
|
37315
37614
|
};
|
|
37316
|
-
const _hoisted_3$
|
|
37317
|
-
const _sfc_main$
|
|
37615
|
+
const _hoisted_3$8 = ["onClick"];
|
|
37616
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37318
37617
|
__name: "RelatedQueriesApi",
|
|
37319
37618
|
props: {
|
|
37320
37619
|
options: {}
|
|
@@ -37324,7 +37623,7 @@ and ensure you are accounting for this risk.
|
|
|
37324
37623
|
const searchResultStore = useSearchResultStore();
|
|
37325
37624
|
const paramsStore = useParamsStore();
|
|
37326
37625
|
const optionsStore = useOptionsStore();
|
|
37327
|
-
const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
|
|
37626
|
+
const { searchResult, relatedQueriesResult, relatedQueryFacetKeys } = storeToRefs(searchResultStore);
|
|
37328
37627
|
const relatedQueries2 = computed(() => {
|
|
37329
37628
|
var _a25, _b25, _c, _d;
|
|
37330
37629
|
const allQueries = (_b25 = (_a25 = relatedQueriesResult.value) == null ? void 0 : _a25.relatedQueries) != null ? _b25 : [];
|
|
@@ -37352,7 +37651,7 @@ and ensure you are accounting for this risk.
|
|
|
37352
37651
|
{ key: query.key, value: query.value },
|
|
37353
37652
|
optionsStore.getQueryParamName,
|
|
37354
37653
|
{},
|
|
37355
|
-
(_a25 =
|
|
37654
|
+
(_a25 = relatedQueryFacetKeys.value) == null ? void 0 : _a25.map((key) => `f.${key}`)
|
|
37356
37655
|
);
|
|
37357
37656
|
};
|
|
37358
37657
|
const getSelectedFilterClass = (relatedQuery) => {
|
|
@@ -37366,8 +37665,8 @@ and ensure you are accounting for this risk.
|
|
|
37366
37665
|
};
|
|
37367
37666
|
return (_ctx, _cache) => {
|
|
37368
37667
|
var _a25, _b25, _c, _d;
|
|
37369
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37370
|
-
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
37668
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37669
|
+
((_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),
|
|
37371
37670
|
createBaseVNode("ul", null, [
|
|
37372
37671
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
37373
37672
|
return openBlock(), createElementBlock("li", {
|
|
@@ -37377,11 +37676,11 @@ and ensure you are accounting for this risk.
|
|
|
37377
37676
|
createBaseVNode("a", {
|
|
37378
37677
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37379
37678
|
}, [
|
|
37380
|
-
createVNode(_sfc_main$
|
|
37679
|
+
createVNode(_sfc_main$l, {
|
|
37381
37680
|
relatedQuery: query,
|
|
37382
37681
|
options: _ctx.options
|
|
37383
37682
|
}, null, 8, ["relatedQuery", "options"])
|
|
37384
|
-
], 8, _hoisted_3$
|
|
37683
|
+
], 8, _hoisted_3$8)
|
|
37385
37684
|
], 2);
|
|
37386
37685
|
}), 128))
|
|
37387
37686
|
])
|
|
@@ -37389,9 +37688,9 @@ and ensure you are accounting for this risk.
|
|
|
37389
37688
|
};
|
|
37390
37689
|
}
|
|
37391
37690
|
});
|
|
37392
|
-
const _hoisted_1$
|
|
37393
|
-
const _hoisted_2$
|
|
37394
|
-
const _sfc_main$
|
|
37691
|
+
const _hoisted_1$h = { key: 0 };
|
|
37692
|
+
const _hoisted_2$d = ["innerHTML"];
|
|
37693
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
37395
37694
|
__name: "ZeroResults",
|
|
37396
37695
|
props: {
|
|
37397
37696
|
emptyResultsLabel: {},
|
|
@@ -37420,36 +37719,36 @@ and ensure you are accounting for this risk.
|
|
|
37420
37719
|
});
|
|
37421
37720
|
return (_ctx, _cache) => {
|
|
37422
37721
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37423
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37722
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
37424
37723
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37425
37724
|
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37426
37725
|
])) : createCommentVNode("", true),
|
|
37427
37726
|
showCustomZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", {
|
|
37428
37727
|
key: 1,
|
|
37429
37728
|
innerHTML: htmlTemplate.value
|
|
37430
|
-
}, null, 8, _hoisted_2$
|
|
37729
|
+
}, null, 8, _hoisted_2$d)) : createCommentVNode("", true)
|
|
37431
37730
|
], 64);
|
|
37432
37731
|
};
|
|
37433
37732
|
}
|
|
37434
37733
|
});
|
|
37435
|
-
const _hoisted_1$
|
|
37436
|
-
const _hoisted_2$
|
|
37734
|
+
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
37735
|
+
const _hoisted_2$c = {
|
|
37437
37736
|
class: "lupa-products",
|
|
37438
37737
|
"data-cy": "lupa-products"
|
|
37439
37738
|
};
|
|
37440
|
-
const _hoisted_3$
|
|
37739
|
+
const _hoisted_3$7 = {
|
|
37441
37740
|
key: 1,
|
|
37442
37741
|
class: "lupa-empty-results",
|
|
37443
37742
|
"data-cy": "lupa-no-results-in-page"
|
|
37444
37743
|
};
|
|
37445
|
-
const _hoisted_4$
|
|
37744
|
+
const _hoisted_4$5 = {
|
|
37446
37745
|
key: 5,
|
|
37447
37746
|
class: "lupa-empty-results",
|
|
37448
37747
|
"data-cy": "lupa-no-results"
|
|
37449
37748
|
};
|
|
37450
|
-
const _hoisted_5 = { key: 6 };
|
|
37749
|
+
const _hoisted_5$1 = { key: 6 };
|
|
37451
37750
|
const _hoisted_6 = { key: 7 };
|
|
37452
|
-
const _sfc_main$
|
|
37751
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37453
37752
|
__name: "SearchResultsProducts",
|
|
37454
37753
|
props: {
|
|
37455
37754
|
options: {},
|
|
@@ -37465,7 +37764,7 @@ and ensure you are accounting for this risk.
|
|
|
37465
37764
|
hasResults,
|
|
37466
37765
|
currentQueryText,
|
|
37467
37766
|
isPageEmpty,
|
|
37468
|
-
|
|
37767
|
+
isFilterSidebarVisible,
|
|
37469
37768
|
columnCount,
|
|
37470
37769
|
searchResult,
|
|
37471
37770
|
layout,
|
|
@@ -37496,7 +37795,7 @@ and ensure you are accounting for this risk.
|
|
|
37496
37795
|
});
|
|
37497
37796
|
const showTopFilters = computed(() => {
|
|
37498
37797
|
var _a25, _b25, _c;
|
|
37499
|
-
return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type)
|
|
37798
|
+
return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type) !== "sidebar";
|
|
37500
37799
|
});
|
|
37501
37800
|
const showMobileFilters = computed(() => {
|
|
37502
37801
|
return props.options.searchTitlePosition !== "search-results-top";
|
|
@@ -37573,40 +37872,40 @@ and ensure you are accounting for this risk.
|
|
|
37573
37872
|
};
|
|
37574
37873
|
return (_ctx, _cache) => {
|
|
37575
37874
|
var _a25, _b25, _c;
|
|
37576
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37577
|
-
unref(loading) && !unref(
|
|
37875
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
37876
|
+
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
37578
37877
|
key: 0,
|
|
37579
37878
|
class: "lupa-loader"
|
|
37580
37879
|
})) : createCommentVNode("", true),
|
|
37581
|
-
createVNode(_sfc_main$
|
|
37880
|
+
createVNode(_sfc_main$n, {
|
|
37582
37881
|
options: _ctx.options.redirectionSuggestions
|
|
37583
37882
|
}, null, 8, ["options"]),
|
|
37584
|
-
createVNode(_sfc_main$
|
|
37883
|
+
createVNode(_sfc_main$s, {
|
|
37585
37884
|
options: _ctx.options,
|
|
37586
37885
|
location: "top",
|
|
37587
37886
|
sdkOptions: _ctx.options.options
|
|
37588
37887
|
}, null, 8, ["options", "sdkOptions"]),
|
|
37589
|
-
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$
|
|
37888
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$o, {
|
|
37590
37889
|
key: 1,
|
|
37591
37890
|
options: _ctx.options.relatedQueries
|
|
37592
37891
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37593
|
-
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$
|
|
37892
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$k, {
|
|
37594
37893
|
key: 2,
|
|
37595
37894
|
options: _ctx.options.relatedQueries
|
|
37596
37895
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37597
37896
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
37598
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
37897
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
|
|
37599
37898
|
key: 0,
|
|
37600
37899
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
37601
37900
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37602
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
37901
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
37603
37902
|
key: 1,
|
|
37604
37903
|
class: "lupa-toolbar-mobile",
|
|
37605
37904
|
options: _ctx.options,
|
|
37606
37905
|
"pagination-location": "top",
|
|
37607
37906
|
onFilter: filter
|
|
37608
37907
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37609
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
37908
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$14, {
|
|
37610
37909
|
key: 2,
|
|
37611
37910
|
class: normalizeClass(currentFiltersClass.value),
|
|
37612
37911
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -37615,19 +37914,19 @@ and ensure you are accounting for this risk.
|
|
|
37615
37914
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
37616
37915
|
], 64)) : createCommentVNode("", true),
|
|
37617
37916
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
37618
|
-
createVNode(_sfc_main$
|
|
37917
|
+
createVNode(_sfc_main$H, {
|
|
37619
37918
|
class: "lupa-toolbar-top",
|
|
37620
37919
|
options: _ctx.options,
|
|
37621
37920
|
"pagination-location": "top"
|
|
37622
37921
|
}, null, 8, ["options"]),
|
|
37623
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
37922
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$14, {
|
|
37624
37923
|
key: 0,
|
|
37625
37924
|
class: normalizeClass(currentFiltersClass.value),
|
|
37626
37925
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
37627
37926
|
options: currentFilterOptions.value,
|
|
37628
37927
|
expandable: !desktopFiltersExpanded.value
|
|
37629
37928
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
37630
|
-
createBaseVNode("div", _hoisted_2$
|
|
37929
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
37631
37930
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
37632
37931
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
37633
37932
|
style: normalizeStyle(columnSize.value),
|
|
@@ -37636,7 +37935,7 @@ and ensure you are accounting for this risk.
|
|
|
37636
37935
|
options: productCardOptions.value
|
|
37637
37936
|
});
|
|
37638
37937
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
37639
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37938
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
37640
37939
|
style: normalizeStyle(columnSize.value),
|
|
37641
37940
|
key: getProductKeyAction(index, product),
|
|
37642
37941
|
product,
|
|
@@ -37645,7 +37944,7 @@ and ensure you are accounting for this risk.
|
|
|
37645
37944
|
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
37646
37945
|
}), 128))
|
|
37647
37946
|
]),
|
|
37648
|
-
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
37947
|
+
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
37649
37948
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
37650
37949
|
_ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
|
|
37651
37950
|
key: 0,
|
|
@@ -37653,36 +37952,36 @@ and ensure you are accounting for this risk.
|
|
|
37653
37952
|
onClick: goToFirstPage
|
|
37654
37953
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
37655
37954
|
])) : createCommentVNode("", true),
|
|
37656
|
-
createVNode(_sfc_main$
|
|
37955
|
+
createVNode(_sfc_main$H, {
|
|
37657
37956
|
class: "lupa-toolbar-bottom",
|
|
37658
37957
|
options: _ctx.options,
|
|
37659
37958
|
"pagination-location": "bottom"
|
|
37660
37959
|
}, null, 8, ["options"]),
|
|
37661
|
-
createVNode(_sfc_main$
|
|
37960
|
+
createVNode(_sfc_main$s, {
|
|
37662
37961
|
options: _ctx.options,
|
|
37663
37962
|
location: "bottom",
|
|
37664
37963
|
sdkOptions: _ctx.options.options
|
|
37665
37964
|
}, null, 8, ["options", "sdkOptions"])
|
|
37666
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
37667
|
-
createVNode(_sfc_main$
|
|
37965
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
37966
|
+
createVNode(_sfc_main$j, {
|
|
37668
37967
|
emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
|
|
37669
37968
|
currentQueryText: unref(currentQueryText),
|
|
37670
37969
|
hasSimilarQueries: hasSimilarQueries.value || hasSimilarResults.value,
|
|
37671
37970
|
zeroResults: (_c = _ctx.options) == null ? void 0 : _c.zeroResults
|
|
37672
37971
|
}, null, 8, ["emptyResultsLabel", "currentQueryText", "hasSimilarQueries", "zeroResults"])
|
|
37673
37972
|
])) : createCommentVNode("", true),
|
|
37674
|
-
createVNode(_sfc_main$
|
|
37973
|
+
createVNode(_sfc_main$m, {
|
|
37675
37974
|
labels: _ctx.options.labels
|
|
37676
37975
|
}, null, 8, ["labels"]),
|
|
37677
|
-
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
37678
|
-
createVNode(_sfc_main$
|
|
37976
|
+
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
37977
|
+
createVNode(_sfc_main$u, {
|
|
37679
37978
|
labels: similarQueriesLabels.value,
|
|
37680
37979
|
columnSize: columnSize.value,
|
|
37681
37980
|
productCardOptions: productCardOptions.value
|
|
37682
37981
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
37683
37982
|
])) : createCommentVNode("", true),
|
|
37684
37983
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
37685
|
-
createVNode(_sfc_main$
|
|
37984
|
+
createVNode(_sfc_main$q, {
|
|
37686
37985
|
labels: similarResultsLabels.value,
|
|
37687
37986
|
columnSize: columnSize.value,
|
|
37688
37987
|
productCardOptions: productCardOptions.value
|
|
@@ -37693,17 +37992,17 @@ and ensure you are accounting for this risk.
|
|
|
37693
37992
|
};
|
|
37694
37993
|
}
|
|
37695
37994
|
});
|
|
37696
|
-
const _hoisted_1$
|
|
37697
|
-
const _hoisted_2$
|
|
37995
|
+
const _hoisted_1$f = { class: "lupa-top-mobile-filter-wrapper" };
|
|
37996
|
+
const _hoisted_2$b = {
|
|
37698
37997
|
key: 0,
|
|
37699
37998
|
class: "lupa-category-back"
|
|
37700
37999
|
};
|
|
37701
|
-
const _hoisted_3$
|
|
37702
|
-
const _hoisted_4$
|
|
38000
|
+
const _hoisted_3$6 = ["href"];
|
|
38001
|
+
const _hoisted_4$4 = {
|
|
37703
38002
|
key: 1,
|
|
37704
38003
|
class: "lupa-child-category-list"
|
|
37705
38004
|
};
|
|
37706
|
-
const _sfc_main$
|
|
38005
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
37707
38006
|
__name: "CategoryTopFilters",
|
|
37708
38007
|
props: {
|
|
37709
38008
|
options: {}
|
|
@@ -37751,24 +38050,24 @@ and ensure you are accounting for this risk.
|
|
|
37751
38050
|
"has-related-category-children": hasRelatedCategoryChildren.value
|
|
37752
38051
|
}])
|
|
37753
38052
|
}, [
|
|
37754
|
-
createBaseVNode("div", _hoisted_1$
|
|
37755
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
38053
|
+
createBaseVNode("div", _hoisted_1$f, [
|
|
38054
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
37756
38055
|
createBaseVNode("a", {
|
|
37757
38056
|
"data-cy": "lupa-category-back",
|
|
37758
38057
|
href: backUrlLink.value,
|
|
37759
38058
|
onClick: handleNavigationBack
|
|
37760
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
38059
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
37761
38060
|
])) : createCommentVNode("", true),
|
|
37762
|
-
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
38061
|
+
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
37763
38062
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
37764
|
-
return openBlock(), createBlock(_sfc_main$
|
|
38063
|
+
return openBlock(), createBlock(_sfc_main$13, {
|
|
37765
38064
|
key: getCategoryKey(child),
|
|
37766
38065
|
item: child,
|
|
37767
38066
|
options: categoryOptions.value
|
|
37768
38067
|
}, null, 8, ["item", "options"]);
|
|
37769
38068
|
}), 128))
|
|
37770
38069
|
])) : createCommentVNode("", true),
|
|
37771
|
-
createVNode(_sfc_main$
|
|
38070
|
+
createVNode(_sfc_main$H, {
|
|
37772
38071
|
class: "lupa-toolbar-mobile",
|
|
37773
38072
|
"pagination-location": "top",
|
|
37774
38073
|
options: _ctx.options
|
|
@@ -37778,6 +38077,129 @@ and ensure you are accounting for this risk.
|
|
|
37778
38077
|
};
|
|
37779
38078
|
}
|
|
37780
38079
|
});
|
|
38080
|
+
const _hoisted_1$e = {
|
|
38081
|
+
id: "lupa-search-results-sort-list",
|
|
38082
|
+
class: "lupa-search-results-sort-list"
|
|
38083
|
+
};
|
|
38084
|
+
const _hoisted_2$a = ["onClick"];
|
|
38085
|
+
const _hoisted_3$5 = ["for"];
|
|
38086
|
+
const _hoisted_4$3 = ["id", "checked"];
|
|
38087
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
38088
|
+
__name: "SortList",
|
|
38089
|
+
setup(__props) {
|
|
38090
|
+
const { sortItems, selectedKey, handleSelect, setSortValue } = useSorting();
|
|
38091
|
+
onMounted(() => {
|
|
38092
|
+
setSortValue();
|
|
38093
|
+
});
|
|
38094
|
+
const selectValue = (key) => {
|
|
38095
|
+
selectedKey.value = key;
|
|
38096
|
+
handleSelect();
|
|
38097
|
+
};
|
|
38098
|
+
return (_ctx, _cache) => {
|
|
38099
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
38100
|
+
createBaseVNode("ul", null, [
|
|
38101
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sortItems), (option) => {
|
|
38102
|
+
return openBlock(), createElementBlock("li", {
|
|
38103
|
+
key: option.key,
|
|
38104
|
+
class: normalizeClass({ "lupa-sort-item-selected": option.key === unref(selectedKey) }),
|
|
38105
|
+
onClick: ($event) => selectValue(option.key)
|
|
38106
|
+
}, [
|
|
38107
|
+
createBaseVNode("label", {
|
|
38108
|
+
for: "lupa-sort-list-" + option.key
|
|
38109
|
+
}, toDisplayString(option.label), 9, _hoisted_3$5),
|
|
38110
|
+
createBaseVNode("input", {
|
|
38111
|
+
id: "lupa-sort-list-" + option.key,
|
|
38112
|
+
type: "radio",
|
|
38113
|
+
checked: option.key === unref(selectedKey)
|
|
38114
|
+
}, null, 8, _hoisted_4$3)
|
|
38115
|
+
], 10, _hoisted_2$a);
|
|
38116
|
+
}), 128))
|
|
38117
|
+
])
|
|
38118
|
+
]);
|
|
38119
|
+
};
|
|
38120
|
+
}
|
|
38121
|
+
});
|
|
38122
|
+
const _hoisted_1$d = { class: "lupa-sort-sidebar-content" };
|
|
38123
|
+
const _hoisted_2$9 = { class: "lupa-sidebar-top" };
|
|
38124
|
+
const _hoisted_3$4 = { class: "lupa-sidebar-title" };
|
|
38125
|
+
const _hoisted_4$2 = { class: "lupa-sidebar-sort-options" };
|
|
38126
|
+
const _hoisted_5 = { class: "lupa-sidebar-sort-actions" };
|
|
38127
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
38128
|
+
__name: "SortDrawer",
|
|
38129
|
+
setup(__props) {
|
|
38130
|
+
const optionsStore = useOptionsStore();
|
|
38131
|
+
const searchResultStore = useSearchResultStore();
|
|
38132
|
+
const paramStore = useParamsStore();
|
|
38133
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
38134
|
+
const { isSidebarClosing, isSortingSidebarVisible } = storeToRefs(searchResultStore);
|
|
38135
|
+
const { handleSortSidebarToggle } = useSidebarToggle();
|
|
38136
|
+
const sortStyleOptions = computed(() => {
|
|
38137
|
+
var _a25;
|
|
38138
|
+
return (_a25 = searchResultOptions.value) == null ? void 0 : _a25.sortStyle;
|
|
38139
|
+
});
|
|
38140
|
+
const sidebarTitle = 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.title) != null ? _d : "";
|
|
38143
|
+
});
|
|
38144
|
+
const clearSortLabel = 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.clearLabel) != null ? _d : "";
|
|
38147
|
+
});
|
|
38148
|
+
const applySortLabel = computed(() => {
|
|
38149
|
+
var _a25, _b25, _c, _d;
|
|
38150
|
+
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 : "";
|
|
38151
|
+
});
|
|
38152
|
+
const handleDrawerToggle = () => {
|
|
38153
|
+
searchResultStore.setSidebarState({ visible: false, sidebar: "sorting" });
|
|
38154
|
+
};
|
|
38155
|
+
const clearSort = () => {
|
|
38156
|
+
paramStore.removeParameters({
|
|
38157
|
+
paramsToRemove: [optionsStore.getQueryParamName(QUERY_PARAMS$1.SORT)]
|
|
38158
|
+
});
|
|
38159
|
+
handleSortSidebarToggle();
|
|
38160
|
+
};
|
|
38161
|
+
const applySort = () => {
|
|
38162
|
+
handleSortSidebarToggle();
|
|
38163
|
+
};
|
|
38164
|
+
return (_ctx, _cache) => {
|
|
38165
|
+
return unref(isSortingSidebarVisible) ? (openBlock(), createElementBlock("div", {
|
|
38166
|
+
key: 0,
|
|
38167
|
+
class: normalizeClass(["lupa-sort-sidebar", { "lupa-sort-is-closing": unref(isSidebarClosing) }])
|
|
38168
|
+
}, [
|
|
38169
|
+
createBaseVNode("div", {
|
|
38170
|
+
class: "lupa-sidebar-close",
|
|
38171
|
+
onClick: withModifiers(handleDrawerToggle, ["stop"])
|
|
38172
|
+
}),
|
|
38173
|
+
createBaseVNode("div", _hoisted_1$d, [
|
|
38174
|
+
createBaseVNode("div", _hoisted_2$9, [
|
|
38175
|
+
createBaseVNode("div", _hoisted_3$4, toDisplayString(sidebarTitle.value), 1),
|
|
38176
|
+
createBaseVNode("div", {
|
|
38177
|
+
class: "lupa-filter-toggle-mobile",
|
|
38178
|
+
onClick: handleDrawerToggle
|
|
38179
|
+
})
|
|
38180
|
+
]),
|
|
38181
|
+
createBaseVNode("div", _hoisted_4$2, [
|
|
38182
|
+
createVNode(_sfc_main$g)
|
|
38183
|
+
]),
|
|
38184
|
+
createBaseVNode("div", _hoisted_5, [
|
|
38185
|
+
clearSortLabel.value ? (openBlock(), createElementBlock("button", {
|
|
38186
|
+
key: 0,
|
|
38187
|
+
type: "button",
|
|
38188
|
+
class: "lupa-sidebar-sort-clear",
|
|
38189
|
+
onClick: withModifiers(clearSort, ["stop"])
|
|
38190
|
+
}, toDisplayString(clearSortLabel.value), 1)) : createCommentVNode("", true),
|
|
38191
|
+
applySortLabel.value ? (openBlock(), createElementBlock("button", {
|
|
38192
|
+
key: 1,
|
|
38193
|
+
type: "button",
|
|
38194
|
+
class: "lupa-sidebar-sort-apply",
|
|
38195
|
+
onClick: withModifiers(applySort, ["stop"])
|
|
38196
|
+
}, toDisplayString(applySortLabel.value), 1)) : createCommentVNode("", true)
|
|
38197
|
+
])
|
|
38198
|
+
])
|
|
38199
|
+
], 2)) : createCommentVNode("", true);
|
|
38200
|
+
};
|
|
38201
|
+
}
|
|
38202
|
+
});
|
|
37781
38203
|
const _hoisted_1$c = {
|
|
37782
38204
|
key: 0,
|
|
37783
38205
|
class: "lupa-container-title-summary-mobile"
|
|
@@ -37812,7 +38234,7 @@ and ensure you are accounting for this risk.
|
|
|
37812
38234
|
currentQueryText,
|
|
37813
38235
|
hasResults,
|
|
37814
38236
|
currentFilterCount,
|
|
37815
|
-
|
|
38237
|
+
isFilterSidebarVisible,
|
|
37816
38238
|
layout,
|
|
37817
38239
|
loadingFacets,
|
|
37818
38240
|
loadingRefiners
|
|
@@ -37834,7 +38256,7 @@ and ensure you are accounting for this risk.
|
|
|
37834
38256
|
});
|
|
37835
38257
|
const indicatorClasses = computed(() => {
|
|
37836
38258
|
return {
|
|
37837
|
-
"lupa-mobile-sidebar-visible":
|
|
38259
|
+
"lupa-mobile-sidebar-visible": isFilterSidebarVisible.value,
|
|
37838
38260
|
"lupa-layout-grid": !layout.value || layout.value === ResultsLayoutEnum.GRID,
|
|
37839
38261
|
"lupa-layout-list": layout.value === ResultsLayoutEnum.LIST
|
|
37840
38262
|
};
|
|
@@ -38076,32 +38498,33 @@ and ensure you are accounting for this risk.
|
|
|
38076
38498
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
38077
38499
|
}, [
|
|
38078
38500
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38079
|
-
createVNode(_sfc_main$
|
|
38080
|
-
createVNode(_sfc_main$
|
|
38501
|
+
createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38502
|
+
createVNode(_sfc_main$16, {
|
|
38081
38503
|
"show-summary": true,
|
|
38082
38504
|
options: _ctx.options,
|
|
38083
38505
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
38084
38506
|
}, null, 8, ["options", "is-product-list"])
|
|
38085
38507
|
])) : createCommentVNode("", true),
|
|
38086
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
38508
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$h, {
|
|
38087
38509
|
key: 1,
|
|
38088
38510
|
options: _ctx.options
|
|
38089
38511
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38090
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
38512
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$R, {
|
|
38091
38513
|
key: 2,
|
|
38092
38514
|
options: _ctx.options.filters,
|
|
38093
38515
|
onFilter: handleParamsChange
|
|
38094
38516
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38095
|
-
|
|
38096
|
-
|
|
38517
|
+
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
38518
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
38519
|
+
key: 4,
|
|
38097
38520
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
38098
38521
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
38099
38522
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", {
|
|
38100
|
-
key:
|
|
38523
|
+
key: 5,
|
|
38101
38524
|
id: "lupa-search-results",
|
|
38102
38525
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
38103
38526
|
}, [
|
|
38104
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38527
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38105
38528
|
key: 0,
|
|
38106
38529
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
38107
38530
|
ref_key: "searchResultsFilters",
|
|
@@ -38109,12 +38532,12 @@ and ensure you are accounting for this risk.
|
|
|
38109
38532
|
onFilter: handleParamsChange
|
|
38110
38533
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38111
38534
|
createBaseVNode("div", _hoisted_2$8, [
|
|
38112
|
-
createVNode(_sfc_main$
|
|
38113
|
-
createVNode(_sfc_main$
|
|
38535
|
+
createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38536
|
+
createVNode(_sfc_main$16, {
|
|
38114
38537
|
options: _ctx.options,
|
|
38115
38538
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
38116
38539
|
}, null, 8, ["options", "is-product-list"]),
|
|
38117
|
-
createVNode(_sfc_main$
|
|
38540
|
+
createVNode(_sfc_main$i, {
|
|
38118
38541
|
options: _ctx.options,
|
|
38119
38542
|
ssr: ssrEnabled.value,
|
|
38120
38543
|
onFilter: handleParamsChange
|
|
@@ -38125,9 +38548,9 @@ and ensure you are accounting for this risk.
|
|
|
38125
38548
|
_: 3
|
|
38126
38549
|
}, 8, ["options", "ssr"])
|
|
38127
38550
|
])
|
|
38128
|
-
], 2)) : (openBlock(), createElementBlock(Fragment, { key:
|
|
38129
|
-
createVNode(_sfc_main$
|
|
38130
|
-
createVNode(_sfc_main$
|
|
38551
|
+
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
38552
|
+
createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38553
|
+
createVNode(_sfc_main$16, {
|
|
38131
38554
|
options: _ctx.options,
|
|
38132
38555
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
38133
38556
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38135,14 +38558,14 @@ and ensure you are accounting for this risk.
|
|
|
38135
38558
|
id: "lupa-search-results",
|
|
38136
38559
|
class: normalizeClass(indicatorClasses.value)
|
|
38137
38560
|
}, [
|
|
38138
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38561
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38139
38562
|
key: 0,
|
|
38140
38563
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
38141
38564
|
ref_key: "searchResultsFilters",
|
|
38142
38565
|
ref: searchResultsFilters,
|
|
38143
38566
|
onFilter: handleParamsChange
|
|
38144
38567
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38145
|
-
createVNode(_sfc_main$
|
|
38568
|
+
createVNode(_sfc_main$i, {
|
|
38146
38569
|
options: _ctx.options,
|
|
38147
38570
|
ssr: ssrEnabled.value,
|
|
38148
38571
|
onFilter: handleParamsChange
|
|
@@ -38286,7 +38709,7 @@ and ensure you are accounting for this risk.
|
|
|
38286
38709
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38287
38710
|
}, [
|
|
38288
38711
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38289
|
-
createVNode(_sfc_main$
|
|
38712
|
+
createVNode(_sfc_main$19, {
|
|
38290
38713
|
options: fullSearchBoxOptions.value,
|
|
38291
38714
|
"is-search-container": true,
|
|
38292
38715
|
ref_key: "searchBox",
|
|
@@ -39874,7 +40297,7 @@ and ensure you are accounting for this risk.
|
|
|
39874
40297
|
key: getProductKeyAction(index, product)
|
|
39875
40298
|
}, {
|
|
39876
40299
|
default: withCtx(() => [
|
|
39877
|
-
createVNode(_sfc_main$
|
|
40300
|
+
createVNode(_sfc_main$v, {
|
|
39878
40301
|
product,
|
|
39879
40302
|
options: _ctx.options,
|
|
39880
40303
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -39889,7 +40312,7 @@ and ensure you are accounting for this risk.
|
|
|
39889
40312
|
_: 1
|
|
39890
40313
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
39891
40314
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
39892
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40315
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
39893
40316
|
style: normalizeStyle(columnSize.value),
|
|
39894
40317
|
key: getProductKeyAction(index, product),
|
|
39895
40318
|
product,
|
|
@@ -40135,7 +40558,7 @@ and ensure you are accounting for this risk.
|
|
|
40135
40558
|
createBaseVNode("a", {
|
|
40136
40559
|
href: getLink(product)
|
|
40137
40560
|
}, [
|
|
40138
|
-
createVNode(_sfc_main$
|
|
40561
|
+
createVNode(_sfc_main$G, {
|
|
40139
40562
|
item: product,
|
|
40140
40563
|
options: image.value
|
|
40141
40564
|
}, null, 8, ["item", "options"])
|
|
@@ -40300,7 +40723,7 @@ and ensure you are accounting for this risk.
|
|
|
40300
40723
|
return (_ctx, _cache) => {
|
|
40301
40724
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40302
40725
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40303
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40726
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
40304
40727
|
class: "lupa-chat-product-card",
|
|
40305
40728
|
key: getProductKeyAction(index, product),
|
|
40306
40729
|
product,
|
|
@@ -40496,7 +40919,7 @@ and ensure you are accounting for this risk.
|
|
|
40496
40919
|
key: 0,
|
|
40497
40920
|
class: "lupasearch-chat-content"
|
|
40498
40921
|
};
|
|
40499
|
-
const _sfc_main$
|
|
40922
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
40500
40923
|
__name: "ChatContainer",
|
|
40501
40924
|
props: {
|
|
40502
40925
|
options: {}
|
|
@@ -46520,7 +46943,7 @@ and ensure you are accounting for this risk.
|
|
|
46520
46943
|
};
|
|
46521
46944
|
__expose({ fetch: fetch2 });
|
|
46522
46945
|
return (_ctx, _cache) => {
|
|
46523
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
46946
|
+
return openBlock(), createBlock(unref(_sfc_main$19), {
|
|
46524
46947
|
ref_key: "searchBox",
|
|
46525
46948
|
ref: searchBox2,
|
|
46526
46949
|
options: fullSearchBoxOptions.value
|
|
@@ -47180,7 +47603,7 @@ and ensure you are accounting for this risk.
|
|
|
47180
47603
|
const instance = createVue(
|
|
47181
47604
|
options.displayOptions.containerSelector,
|
|
47182
47605
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
47183
|
-
_sfc_main$
|
|
47606
|
+
_sfc_main$1H,
|
|
47184
47607
|
{
|
|
47185
47608
|
options
|
|
47186
47609
|
}
|
|
@@ -47454,13 +47877,14 @@ and ensure you are accounting for this risk.
|
|
|
47454
47877
|
document.head.appendChild(styleElement);
|
|
47455
47878
|
});
|
|
47456
47879
|
const mountSearchBox = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47457
|
-
var _a25;
|
|
47880
|
+
var _a25, _b25;
|
|
47458
47881
|
if (!configuration.searchBox) {
|
|
47459
47882
|
return;
|
|
47460
47883
|
}
|
|
47461
47884
|
const resolvedConfiguration = JSON.parse(configuration.searchBox);
|
|
47462
47885
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47463
47886
|
const domPing = resolvedConfiguration.domPing;
|
|
47887
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47464
47888
|
const visible = yield waitForElementToBeVisible(
|
|
47465
47889
|
resolvedConfiguration.inputSelector,
|
|
47466
47890
|
0,
|
|
@@ -47474,18 +47898,19 @@ and ensure you are accounting for this risk.
|
|
|
47474
47898
|
}
|
|
47475
47899
|
const mergedOptions = PluginConfigurationMerger.mergeSearchBoxConfiguration(
|
|
47476
47900
|
resolvedConfiguration,
|
|
47477
|
-
(
|
|
47901
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _b25 : {}
|
|
47478
47902
|
);
|
|
47479
|
-
searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing });
|
|
47903
|
+
searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing, mountingBehavior });
|
|
47480
47904
|
});
|
|
47481
47905
|
const mountSearchResults = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47482
|
-
var _a25;
|
|
47906
|
+
var _a25, _b25;
|
|
47483
47907
|
if (!configuration.searchResults) {
|
|
47484
47908
|
return;
|
|
47485
47909
|
}
|
|
47486
47910
|
const resolvedConfiguration = JSON.parse(configuration.searchResults);
|
|
47487
47911
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47488
47912
|
const domPing = resolvedConfiguration.domPing;
|
|
47913
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47489
47914
|
const visible = yield waitForElementToBeVisible(
|
|
47490
47915
|
resolvedConfiguration.containerSelector,
|
|
47491
47916
|
0,
|
|
@@ -47499,12 +47924,15 @@ and ensure you are accounting for this risk.
|
|
|
47499
47924
|
}
|
|
47500
47925
|
const mergedOptions = PluginConfigurationMerger.mergeSearchResultsConfiguration(
|
|
47501
47926
|
resolvedConfiguration,
|
|
47502
|
-
(
|
|
47927
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _b25 : {}
|
|
47928
|
+
);
|
|
47929
|
+
searchResults(
|
|
47930
|
+
__spreadProps(__spreadValues({}, mergedOptions), { options }),
|
|
47931
|
+
{ fetch: fetch2, allowedMountUrls, domPing, mountingBehavior }
|
|
47503
47932
|
);
|
|
47504
|
-
searchResults(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, domPing });
|
|
47505
47933
|
});
|
|
47506
47934
|
const mountProductList = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47507
|
-
var _a25;
|
|
47935
|
+
var _a25, _b25;
|
|
47508
47936
|
if (!configuration.productList) {
|
|
47509
47937
|
return;
|
|
47510
47938
|
}
|
|
@@ -47513,6 +47941,7 @@ and ensure you are accounting for this risk.
|
|
|
47513
47941
|
);
|
|
47514
47942
|
const resolvedConfiguration = JSON.parse(configuration.productList);
|
|
47515
47943
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47944
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47516
47945
|
const visible = yield waitForElementToBeVisible(
|
|
47517
47946
|
resolvedConfiguration.containerSelector,
|
|
47518
47947
|
0,
|
|
@@ -47526,13 +47955,14 @@ and ensure you are accounting for this risk.
|
|
|
47526
47955
|
}
|
|
47527
47956
|
const mergedOptions = merge(
|
|
47528
47957
|
__spreadValues(__spreadValues({}, resolvedSearchResultsConfiguration), resolvedConfiguration),
|
|
47529
|
-
(
|
|
47958
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.productList) != null ? _b25 : {}
|
|
47530
47959
|
);
|
|
47531
|
-
productList(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
|
|
47960
|
+
productList(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, mountingBehavior });
|
|
47532
47961
|
});
|
|
47533
47962
|
const mountRecommendations = (resolvedSearchResultsConfiguration, resolvedConfiguration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47534
|
-
var _a25;
|
|
47963
|
+
var _a25, _b25;
|
|
47535
47964
|
const allowedMountUrls = resolvedConfiguration.allowedMountUrls;
|
|
47965
|
+
const mountingBehavior = (_a25 = resolvedConfiguration.mountingBehavior) != null ? _a25 : void 0;
|
|
47536
47966
|
const visible = yield waitForElementToBeVisible(
|
|
47537
47967
|
resolvedConfiguration.containerSelector,
|
|
47538
47968
|
0,
|
|
@@ -47546,9 +47976,9 @@ and ensure you are accounting for this risk.
|
|
|
47546
47976
|
}
|
|
47547
47977
|
const mergedOptions = merge(
|
|
47548
47978
|
__spreadValues(__spreadValues({}, resolvedSearchResultsConfiguration), resolvedConfiguration),
|
|
47549
|
-
(
|
|
47979
|
+
(_b25 = optionOverrides == null ? void 0 : optionOverrides.recommendations) != null ? _b25 : {}
|
|
47550
47980
|
);
|
|
47551
|
-
recommendations(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
|
|
47981
|
+
recommendations(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls, mountingBehavior });
|
|
47552
47982
|
});
|
|
47553
47983
|
const mountAllRecommendations = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(null, null, function* () {
|
|
47554
47984
|
if (!configuration.recommendations) {
|