@getlupa/client 1.20.6 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +531 -451
- package/dist/lupaSearch.js +531 -451
- package/dist/lupaSearch.mjs +531 -451
- package/dist/lupaSearch.umd.js +531 -451
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -18100,6 +18100,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18100
18100
|
return (_b25 = (_a25 = currentResolutionPageSizes.value) == null ? void 0 : _a25[0]) != null ? _b25 : DEFAULT_PAGE_SIZE;
|
|
18101
18101
|
}
|
|
18102
18102
|
);
|
|
18103
|
+
const ariaLabels = computed(() => {
|
|
18104
|
+
var _a25, _b25;
|
|
18105
|
+
return (_b25 = (_a25 = searchResultOptions.value.labels) == null ? void 0 : _a25.aria) != null ? _b25 : {};
|
|
18106
|
+
});
|
|
18103
18107
|
const currentResolutionPageSizes = computed(() => {
|
|
18104
18108
|
var _a25, _b25, _c, _d;
|
|
18105
18109
|
const pageSizes = (_d = (_c = (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.pagination) == null ? void 0 : _b25.sizeSelection) == null ? void 0 : _c.sizes) != null ? _d : DEFAULT_PAGE_SIZE_SELECTION;
|
|
@@ -18155,6 +18159,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18155
18159
|
defaultSearchResultPageSize,
|
|
18156
18160
|
currentResolutionPageSizes,
|
|
18157
18161
|
productRecommendationOptions,
|
|
18162
|
+
ariaLabels,
|
|
18158
18163
|
setSearchBoxOptions,
|
|
18159
18164
|
setTrackingOptions,
|
|
18160
18165
|
setSearchResultOptions,
|
|
@@ -19547,7 +19552,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19547
19552
|
}
|
|
19548
19553
|
return Env[environment] || Env["production"];
|
|
19549
19554
|
};
|
|
19550
|
-
const _sfc_main$
|
|
19555
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
19551
19556
|
__name: "VoiceSearchProgressCircle",
|
|
19552
19557
|
props: {
|
|
19553
19558
|
isRecording: { type: Boolean },
|
|
@@ -19760,14 +19765,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19760
19765
|
closeSocket
|
|
19761
19766
|
};
|
|
19762
19767
|
}
|
|
19763
|
-
const _hoisted_1$
|
|
19768
|
+
const _hoisted_1$1l = {
|
|
19764
19769
|
key: 0,
|
|
19765
19770
|
class: "lupa-dialog-overlay"
|
|
19766
19771
|
};
|
|
19767
|
-
const _hoisted_2$
|
|
19772
|
+
const _hoisted_2$W = { class: "lupa-dialog-content" };
|
|
19768
19773
|
const _hoisted_3$E = { class: "lupa-listening-text" };
|
|
19769
19774
|
const _hoisted_4$u = { class: "lupa-mic-button-wrapper" };
|
|
19770
|
-
const
|
|
19775
|
+
const _hoisted_5$l = ["aria-label"];
|
|
19776
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
19771
19777
|
__name: "VoiceSearchDialog",
|
|
19772
19778
|
props: {
|
|
19773
19779
|
isOpen: { type: Boolean },
|
|
@@ -19870,20 +19876,23 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19870
19876
|
reset: dialogReset
|
|
19871
19877
|
});
|
|
19872
19878
|
return (_ctx, _cache) => {
|
|
19879
|
+
var _a25, _b25;
|
|
19873
19880
|
return openBlock(), createElementBlock("div", null, [
|
|
19874
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19881
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
|
|
19875
19882
|
createBaseVNode("button", {
|
|
19876
19883
|
class: "lupa-dialog-box-close-button",
|
|
19877
19884
|
onClick: _cache[0] || (_cache[0] = () => emit2("close"))
|
|
19878
19885
|
}),
|
|
19879
|
-
createBaseVNode("div", _hoisted_2$
|
|
19886
|
+
createBaseVNode("div", _hoisted_2$W, [
|
|
19880
19887
|
createBaseVNode("p", _hoisted_3$E, toDisplayString(description.value), 1),
|
|
19881
19888
|
createBaseVNode("div", _hoisted_4$u, [
|
|
19882
19889
|
createBaseVNode("button", {
|
|
19883
19890
|
class: normalizeClass(["lupa-mic-button", { recording: unref(isRecording) }]),
|
|
19884
|
-
onClick: handleRecordingButtonClick
|
|
19885
|
-
|
|
19886
|
-
|
|
19891
|
+
onClick: handleRecordingButtonClick,
|
|
19892
|
+
"aria-controls": "voice-search-microphone",
|
|
19893
|
+
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
19894
|
+
}, null, 10, _hoisted_5$l),
|
|
19895
|
+
createVNode(_sfc_main$1A, {
|
|
19887
19896
|
ref_key: "voiceSearchProgressBar",
|
|
19888
19897
|
ref: voiceSearchProgressBar,
|
|
19889
19898
|
class: "lupa-progress-circle",
|
|
@@ -19898,8 +19907,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19898
19907
|
};
|
|
19899
19908
|
}
|
|
19900
19909
|
});
|
|
19901
|
-
const _hoisted_1$
|
|
19902
|
-
const _hoisted_2$
|
|
19910
|
+
const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
|
|
19911
|
+
const _hoisted_2$V = { class: "lupa-input-clear" };
|
|
19903
19912
|
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
19904
19913
|
const _hoisted_4$t = ["value"];
|
|
19905
19914
|
const _hoisted_5$k = ["aria-label", "placeholder"];
|
|
@@ -19908,7 +19917,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19908
19917
|
class: "lupa-close-label"
|
|
19909
19918
|
};
|
|
19910
19919
|
const _hoisted_7$5 = { key: 1 };
|
|
19911
|
-
const
|
|
19920
|
+
const _hoisted_8$3 = ["aria-label"];
|
|
19921
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
19912
19922
|
__name: "SearchBoxInput",
|
|
19913
19923
|
props: {
|
|
19914
19924
|
options: {},
|
|
@@ -19963,6 +19973,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19963
19973
|
var _a25;
|
|
19964
19974
|
return (_a25 = labels.value.searchInputAriaLabel) != null ? _a25 : "Search input";
|
|
19965
19975
|
});
|
|
19976
|
+
const voiceSearchAriaLabel = computed(() => {
|
|
19977
|
+
var _a25, _b25, _c, _d;
|
|
19978
|
+
return (_d = (_c = (_b25 = (_a25 = props.options.voiceSearch) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.aria) == null ? void 0 : _c.openDialog) != null ? _d : "Open voice search dialog";
|
|
19979
|
+
});
|
|
19966
19980
|
onMounted(() => {
|
|
19967
19981
|
document.addEventListener("click", handleClickOutsideVoiceDialogOverlay);
|
|
19968
19982
|
});
|
|
@@ -20036,8 +20050,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20036
20050
|
};
|
|
20037
20051
|
__expose({ focus });
|
|
20038
20052
|
return (_ctx, _cache) => {
|
|
20039
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20040
|
-
createBaseVNode("div", _hoisted_2$
|
|
20053
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
20054
|
+
createBaseVNode("div", _hoisted_2$V, [
|
|
20041
20055
|
createBaseVNode("div", {
|
|
20042
20056
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
20043
20057
|
onClick: clear
|
|
@@ -20083,10 +20097,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20083
20097
|
isVoiceSearchEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
20084
20098
|
createBaseVNode("button", {
|
|
20085
20099
|
onClick: openVoiceSearchDialog,
|
|
20086
|
-
class: "lupa-voice-search-button"
|
|
20087
|
-
|
|
20100
|
+
class: "lupa-voice-search-button",
|
|
20101
|
+
"aria-haspopup": "dialog",
|
|
20102
|
+
"aria-controls": "voice-search-dialog",
|
|
20103
|
+
"aria-label": voiceSearchAriaLabel.value
|
|
20104
|
+
}, null, 8, _hoisted_8$3)
|
|
20088
20105
|
])) : createCommentVNode("", true),
|
|
20089
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
20106
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1z, {
|
|
20090
20107
|
key: 2,
|
|
20091
20108
|
ref_key: "voiceDialogOverlay",
|
|
20092
20109
|
ref: voiceDialogOverlay,
|
|
@@ -20100,7 +20117,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20100
20117
|
};
|
|
20101
20118
|
}
|
|
20102
20119
|
});
|
|
20103
|
-
const _sfc_main$
|
|
20120
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
20104
20121
|
__name: "SearchBoxMoreResults",
|
|
20105
20122
|
props: {
|
|
20106
20123
|
labels: {},
|
|
@@ -20138,9 +20155,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20138
20155
|
};
|
|
20139
20156
|
}
|
|
20140
20157
|
});
|
|
20141
|
-
const _hoisted_1$
|
|
20142
|
-
const _hoisted_2$
|
|
20143
|
-
const _sfc_main$
|
|
20158
|
+
const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
|
|
20159
|
+
const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
|
|
20160
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
20144
20161
|
__name: "SearchBoxHistoryItem",
|
|
20145
20162
|
props: {
|
|
20146
20163
|
item: {},
|
|
@@ -20157,8 +20174,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20157
20174
|
emit2("click", { query: props.item });
|
|
20158
20175
|
};
|
|
20159
20176
|
return (_ctx, _cache) => {
|
|
20160
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20161
|
-
createBaseVNode("div", _hoisted_2$
|
|
20177
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1j, [
|
|
20178
|
+
createBaseVNode("div", _hoisted_2$U, [
|
|
20162
20179
|
createBaseVNode("div", {
|
|
20163
20180
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
20164
20181
|
onClick: click2
|
|
@@ -20172,11 +20189,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20172
20189
|
};
|
|
20173
20190
|
}
|
|
20174
20191
|
});
|
|
20175
|
-
const _hoisted_1$
|
|
20192
|
+
const _hoisted_1$1i = {
|
|
20176
20193
|
key: 0,
|
|
20177
20194
|
class: "lupa-search-box-history-panel"
|
|
20178
20195
|
};
|
|
20179
|
-
const _sfc_main$
|
|
20196
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
20180
20197
|
__name: "SearchBoxHistoryPanel",
|
|
20181
20198
|
props: {
|
|
20182
20199
|
options: {}
|
|
@@ -20227,9 +20244,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20227
20244
|
}
|
|
20228
20245
|
};
|
|
20229
20246
|
return (_ctx, _cache) => {
|
|
20230
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20247
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
|
|
20231
20248
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
20232
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20249
|
+
return openBlock(), createBlock(_sfc_main$1w, {
|
|
20233
20250
|
key: item,
|
|
20234
20251
|
item,
|
|
20235
20252
|
highlighted: index === highlightIndex.value,
|
|
@@ -20245,15 +20262,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20245
20262
|
};
|
|
20246
20263
|
}
|
|
20247
20264
|
});
|
|
20248
|
-
const _hoisted_1$
|
|
20249
|
-
const _sfc_main$
|
|
20265
|
+
const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
|
|
20266
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
20250
20267
|
__name: "SearchBoxNoResults",
|
|
20251
20268
|
props: {
|
|
20252
20269
|
labels: {}
|
|
20253
20270
|
},
|
|
20254
20271
|
setup(__props) {
|
|
20255
20272
|
return (_ctx, _cache) => {
|
|
20256
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
20273
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
|
|
20257
20274
|
};
|
|
20258
20275
|
}
|
|
20259
20276
|
});
|
|
@@ -20285,8 +20302,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20285
20302
|
}
|
|
20286
20303
|
return gridTemplate.join(" ");
|
|
20287
20304
|
};
|
|
20288
|
-
const _hoisted_1$
|
|
20289
|
-
const _hoisted_2$
|
|
20305
|
+
const _hoisted_1$1g = ["innerHTML"];
|
|
20306
|
+
const _hoisted_2$T = {
|
|
20290
20307
|
key: 1,
|
|
20291
20308
|
"data-cy": "lupa-suggestion-value",
|
|
20292
20309
|
class: "lupa-suggestion-value"
|
|
@@ -20304,7 +20321,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20304
20321
|
class: "lupa-suggestion-facet-value",
|
|
20305
20322
|
"data-cy": "lupa-suggestion-facet-value"
|
|
20306
20323
|
};
|
|
20307
|
-
const _sfc_main$
|
|
20324
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
20308
20325
|
__name: "SearchBoxSuggestion",
|
|
20309
20326
|
props: {
|
|
20310
20327
|
suggestion: {},
|
|
@@ -20341,7 +20358,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20341
20358
|
class: "lupa-suggestion-value",
|
|
20342
20359
|
"data-cy": "lupa-suggestion-value",
|
|
20343
20360
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20344
|
-
}, null, 8, _hoisted_1$
|
|
20361
|
+
}, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20345
20362
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
20346
20363
|
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
20347
20364
|
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -20350,11 +20367,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20350
20367
|
};
|
|
20351
20368
|
}
|
|
20352
20369
|
});
|
|
20353
|
-
const _hoisted_1$
|
|
20370
|
+
const _hoisted_1$1f = {
|
|
20354
20371
|
id: "lupa-search-box-suggestions",
|
|
20355
20372
|
"data-cy": "lupa-search-box-suggestions"
|
|
20356
20373
|
};
|
|
20357
|
-
const _sfc_main$
|
|
20374
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
20358
20375
|
__name: "SearchBoxSuggestions",
|
|
20359
20376
|
props: {
|
|
20360
20377
|
items: {},
|
|
@@ -20421,9 +20438,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20421
20438
|
});
|
|
20422
20439
|
});
|
|
20423
20440
|
return (_ctx, _cache) => {
|
|
20424
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20441
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
20425
20442
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
20426
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20443
|
+
return openBlock(), createBlock(_sfc_main$1t, {
|
|
20427
20444
|
key: getSuggestionKey(item),
|
|
20428
20445
|
class: normalizeClass([
|
|
20429
20446
|
"lupa-suggestion",
|
|
@@ -20455,7 +20472,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20455
20472
|
}, timeout);
|
|
20456
20473
|
};
|
|
20457
20474
|
};
|
|
20458
|
-
const _sfc_main$
|
|
20475
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
20459
20476
|
__name: "SearchBoxSuggestionsWrapper",
|
|
20460
20477
|
props: {
|
|
20461
20478
|
panel: {},
|
|
@@ -20498,7 +20515,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20498
20515
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
20499
20516
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
20500
20517
|
return (_ctx, _cache) => {
|
|
20501
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20518
|
+
return openBlock(), createBlock(_sfc_main$1s, {
|
|
20502
20519
|
items: searchResult.value,
|
|
20503
20520
|
highlight: _ctx.panel.highlight,
|
|
20504
20521
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -29780,9 +29797,9 @@ and ensure you are accounting for this risk.
|
|
|
29780
29797
|
targetImage.src = placeholder;
|
|
29781
29798
|
}
|
|
29782
29799
|
};
|
|
29783
|
-
const _hoisted_1$
|
|
29784
|
-
const _hoisted_2$
|
|
29785
|
-
const _sfc_main$
|
|
29800
|
+
const _hoisted_1$1e = ["src"];
|
|
29801
|
+
const _hoisted_2$S = ["src"];
|
|
29802
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
29786
29803
|
__name: "ProductImage",
|
|
29787
29804
|
props: {
|
|
29788
29805
|
item: {},
|
|
@@ -29924,7 +29941,7 @@ and ensure you are accounting for this risk.
|
|
|
29924
29941
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
29925
29942
|
onError: replaceWithPlaceholder,
|
|
29926
29943
|
key: finalUrl.value
|
|
29927
|
-
}), null, 16, _hoisted_1$
|
|
29944
|
+
}), null, 16, _hoisted_1$1e))
|
|
29928
29945
|
]),
|
|
29929
29946
|
_: 1
|
|
29930
29947
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -29932,12 +29949,12 @@ and ensure you are accounting for this risk.
|
|
|
29932
29949
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
29933
29950
|
style: styleOverride.value,
|
|
29934
29951
|
src: finalMainImageUrl.value
|
|
29935
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
29952
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
|
|
29936
29953
|
], 38);
|
|
29937
29954
|
};
|
|
29938
29955
|
}
|
|
29939
29956
|
});
|
|
29940
|
-
const _sfc_main$
|
|
29957
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
29941
29958
|
__name: "SearchBoxProductImage",
|
|
29942
29959
|
props: {
|
|
29943
29960
|
item: {},
|
|
@@ -29945,7 +29962,7 @@ and ensure you are accounting for this risk.
|
|
|
29945
29962
|
},
|
|
29946
29963
|
setup(__props) {
|
|
29947
29964
|
return (_ctx, _cache) => {
|
|
29948
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29965
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
29949
29966
|
item: _ctx.item,
|
|
29950
29967
|
options: _ctx.options,
|
|
29951
29968
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -29954,12 +29971,12 @@ and ensure you are accounting for this risk.
|
|
|
29954
29971
|
};
|
|
29955
29972
|
}
|
|
29956
29973
|
});
|
|
29957
|
-
const _hoisted_1$
|
|
29958
|
-
const _hoisted_2$
|
|
29974
|
+
const _hoisted_1$1d = ["innerHTML"];
|
|
29975
|
+
const _hoisted_2$R = {
|
|
29959
29976
|
key: 1,
|
|
29960
29977
|
class: "lupa-search-box-product-title"
|
|
29961
29978
|
};
|
|
29962
|
-
const _sfc_main$
|
|
29979
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
29963
29980
|
__name: "SearchBoxProductTitle",
|
|
29964
29981
|
props: {
|
|
29965
29982
|
item: {},
|
|
@@ -29982,18 +29999,18 @@ and ensure you are accounting for this risk.
|
|
|
29982
29999
|
key: 0,
|
|
29983
30000
|
class: "lupa-search-box-product-title",
|
|
29984
30001
|
innerHTML: sanitizedTitle.value
|
|
29985
|
-
}, null, 8, _hoisted_1$
|
|
30002
|
+
}, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
29986
30003
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
29987
30004
|
]));
|
|
29988
30005
|
};
|
|
29989
30006
|
}
|
|
29990
30007
|
});
|
|
29991
|
-
const _hoisted_1$
|
|
29992
|
-
const _hoisted_2$
|
|
30008
|
+
const _hoisted_1$1c = ["innerHTML"];
|
|
30009
|
+
const _hoisted_2$Q = {
|
|
29993
30010
|
key: 1,
|
|
29994
30011
|
class: "lupa-search-box-product-description"
|
|
29995
30012
|
};
|
|
29996
|
-
const _sfc_main$
|
|
30013
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
29997
30014
|
__name: "SearchBoxProductDescription",
|
|
29998
30015
|
props: {
|
|
29999
30016
|
item: {},
|
|
@@ -30016,12 +30033,12 @@ and ensure you are accounting for this risk.
|
|
|
30016
30033
|
key: 0,
|
|
30017
30034
|
class: "lupa-search-box-product-description",
|
|
30018
30035
|
innerHTML: sanitizedDescription.value
|
|
30019
|
-
}, null, 8, _hoisted_1$
|
|
30036
|
+
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
|
|
30020
30037
|
};
|
|
30021
30038
|
}
|
|
30022
30039
|
});
|
|
30023
|
-
const _hoisted_1$
|
|
30024
|
-
const _sfc_main$
|
|
30040
|
+
const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
|
|
30041
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
30025
30042
|
__name: "SearchBoxProductPrice",
|
|
30026
30043
|
props: {
|
|
30027
30044
|
item: {},
|
|
@@ -30043,13 +30060,13 @@ and ensure you are accounting for this risk.
|
|
|
30043
30060
|
);
|
|
30044
30061
|
});
|
|
30045
30062
|
return (_ctx, _cache) => {
|
|
30046
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30063
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
30047
30064
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
30048
30065
|
]);
|
|
30049
30066
|
};
|
|
30050
30067
|
}
|
|
30051
30068
|
});
|
|
30052
|
-
const _sfc_main$
|
|
30069
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
30053
30070
|
__name: "SearchBoxProductRegularPrice",
|
|
30054
30071
|
props: {
|
|
30055
30072
|
item: {},
|
|
@@ -30080,12 +30097,12 @@ and ensure you are accounting for this risk.
|
|
|
30080
30097
|
};
|
|
30081
30098
|
}
|
|
30082
30099
|
});
|
|
30083
|
-
const _hoisted_1$
|
|
30084
|
-
const _hoisted_2$
|
|
30100
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
30101
|
+
const _hoisted_2$P = { key: 0 };
|
|
30085
30102
|
const _hoisted_3$B = { key: 1 };
|
|
30086
30103
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
30087
30104
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
30088
|
-
const _sfc_main$
|
|
30105
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
30089
30106
|
__name: "SearchBoxProductCustom",
|
|
30090
30107
|
props: {
|
|
30091
30108
|
item: {},
|
|
@@ -30111,11 +30128,11 @@ and ensure you are accounting for this risk.
|
|
|
30111
30128
|
key: 0,
|
|
30112
30129
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
30113
30130
|
innerHTML: text.value
|
|
30114
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30131
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30115
30132
|
key: 1,
|
|
30116
30133
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30117
30134
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30118
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
30135
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
30119
30136
|
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
30120
30137
|
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
30121
30138
|
]))
|
|
@@ -30123,8 +30140,8 @@ and ensure you are accounting for this risk.
|
|
|
30123
30140
|
};
|
|
30124
30141
|
}
|
|
30125
30142
|
});
|
|
30126
|
-
const _hoisted_1$
|
|
30127
|
-
const _sfc_main$
|
|
30143
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
30144
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
30128
30145
|
__name: "SearchBoxProductCustomHtml",
|
|
30129
30146
|
props: {
|
|
30130
30147
|
item: {},
|
|
@@ -30149,7 +30166,7 @@ and ensure you are accounting for this risk.
|
|
|
30149
30166
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30150
30167
|
class: className.value,
|
|
30151
30168
|
innerHTML: text.value
|
|
30152
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30169
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$19);
|
|
30153
30170
|
};
|
|
30154
30171
|
}
|
|
30155
30172
|
});
|
|
@@ -30464,12 +30481,12 @@ and ensure you are accounting for this risk.
|
|
|
30464
30481
|
setRelatedQueriesApiEnabled
|
|
30465
30482
|
};
|
|
30466
30483
|
});
|
|
30467
|
-
const _hoisted_1$
|
|
30468
|
-
const _hoisted_2$
|
|
30484
|
+
const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30485
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
|
|
30469
30486
|
const _hoisted_3$A = ["disabled"];
|
|
30470
30487
|
const _hoisted_4$q = ["href"];
|
|
30471
30488
|
const _hoisted_5$h = ["disabled"];
|
|
30472
|
-
const _sfc_main$
|
|
30489
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
30473
30490
|
__name: "SearchBoxProductAddToCart",
|
|
30474
30491
|
props: {
|
|
30475
30492
|
item: {},
|
|
@@ -30508,8 +30525,8 @@ and ensure you are accounting for this risk.
|
|
|
30508
30525
|
return Boolean(props.link && props.options.link);
|
|
30509
30526
|
});
|
|
30510
30527
|
return (_ctx, _cache) => {
|
|
30511
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30512
|
-
createBaseVNode("div", _hoisted_2$
|
|
30528
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
30529
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
30513
30530
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30514
30531
|
key: 0,
|
|
30515
30532
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
@@ -30530,23 +30547,23 @@ and ensure you are accounting for this risk.
|
|
|
30530
30547
|
};
|
|
30531
30548
|
}
|
|
30532
30549
|
});
|
|
30533
|
-
const _hoisted_1$
|
|
30550
|
+
const _hoisted_1$17 = {
|
|
30534
30551
|
key: 1,
|
|
30535
30552
|
class: "lupa-search-box-element-badge-wrapper"
|
|
30536
30553
|
};
|
|
30537
30554
|
const __default__$4 = {
|
|
30538
30555
|
components: {
|
|
30539
|
-
SearchBoxProductImage: _sfc_main$
|
|
30540
|
-
SearchBoxProductTitle: _sfc_main$
|
|
30541
|
-
SearchBoxProductDescription: _sfc_main$
|
|
30542
|
-
SearchBoxProductPrice: _sfc_main$
|
|
30543
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
30544
|
-
SearchBoxProductCustom: _sfc_main$
|
|
30545
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
30546
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
30556
|
+
SearchBoxProductImage: _sfc_main$1p,
|
|
30557
|
+
SearchBoxProductTitle: _sfc_main$1o,
|
|
30558
|
+
SearchBoxProductDescription: _sfc_main$1n,
|
|
30559
|
+
SearchBoxProductPrice: _sfc_main$1m,
|
|
30560
|
+
SearchBoxProductRegularPrice: _sfc_main$1l,
|
|
30561
|
+
SearchBoxProductCustom: _sfc_main$1k,
|
|
30562
|
+
SearchBoxProductCustomHtml: _sfc_main$1j,
|
|
30563
|
+
SearchBoxProductAddToCart: _sfc_main$1i
|
|
30547
30564
|
}
|
|
30548
30565
|
};
|
|
30549
|
-
const _sfc_main$
|
|
30566
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
30550
30567
|
__name: "SearchBoxProductElement",
|
|
30551
30568
|
props: {
|
|
30552
30569
|
item: {},
|
|
@@ -30618,7 +30635,7 @@ and ensure you are accounting for this risk.
|
|
|
30618
30635
|
"dynamic-attributes": dynamicAttributes.value,
|
|
30619
30636
|
link: _ctx.link
|
|
30620
30637
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
30621
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30638
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
30622
30639
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
30623
30640
|
key: 0,
|
|
30624
30641
|
item: enhancedItem.value,
|
|
@@ -30633,14 +30650,14 @@ and ensure you are accounting for this risk.
|
|
|
30633
30650
|
};
|
|
30634
30651
|
}
|
|
30635
30652
|
}));
|
|
30636
|
-
const _hoisted_1$
|
|
30637
|
-
const _hoisted_2$
|
|
30653
|
+
const _hoisted_1$16 = { class: "lupa-badge-title" };
|
|
30654
|
+
const _hoisted_2$N = ["src"];
|
|
30638
30655
|
const _hoisted_3$z = { key: 1 };
|
|
30639
30656
|
const _hoisted_4$p = {
|
|
30640
30657
|
key: 0,
|
|
30641
30658
|
class: "lupa-badge-full-text"
|
|
30642
30659
|
};
|
|
30643
|
-
const _sfc_main$
|
|
30660
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
30644
30661
|
__name: "SearchResultGeneratedBadge",
|
|
30645
30662
|
props: {
|
|
30646
30663
|
options: {},
|
|
@@ -30673,11 +30690,11 @@ and ensure you are accounting for this risk.
|
|
|
30673
30690
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
30674
30691
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
30675
30692
|
}, [
|
|
30676
|
-
createBaseVNode("span", _hoisted_1$
|
|
30693
|
+
createBaseVNode("span", _hoisted_1$16, [
|
|
30677
30694
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
30678
30695
|
key: 0,
|
|
30679
30696
|
src: image.value
|
|
30680
|
-
}, null, 8, _hoisted_2$
|
|
30697
|
+
}, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
|
|
30681
30698
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30682
30699
|
]),
|
|
30683
30700
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -30685,8 +30702,8 @@ and ensure you are accounting for this risk.
|
|
|
30685
30702
|
};
|
|
30686
30703
|
}
|
|
30687
30704
|
});
|
|
30688
|
-
const _hoisted_1$
|
|
30689
|
-
const _sfc_main$
|
|
30705
|
+
const _hoisted_1$15 = { class: "lupa-generated-badges" };
|
|
30706
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
30690
30707
|
__name: "SearchResultGeneratedBadges",
|
|
30691
30708
|
props: {
|
|
30692
30709
|
options: {}
|
|
@@ -30712,9 +30729,9 @@ and ensure you are accounting for this risk.
|
|
|
30712
30729
|
})).filter((b) => Boolean(b.id));
|
|
30713
30730
|
});
|
|
30714
30731
|
return (_ctx, _cache) => {
|
|
30715
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30732
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
30716
30733
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
30717
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30734
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
30718
30735
|
key: badge.id,
|
|
30719
30736
|
badge,
|
|
30720
30737
|
options: _ctx.options
|
|
@@ -30724,8 +30741,8 @@ and ensure you are accounting for this risk.
|
|
|
30724
30741
|
};
|
|
30725
30742
|
}
|
|
30726
30743
|
});
|
|
30727
|
-
const _hoisted_1$
|
|
30728
|
-
const _sfc_main$
|
|
30744
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
30745
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
30729
30746
|
__name: "CustomBadge",
|
|
30730
30747
|
props: {
|
|
30731
30748
|
badge: {}
|
|
@@ -30746,12 +30763,12 @@ and ensure you are accounting for this risk.
|
|
|
30746
30763
|
return openBlock(), createElementBlock("div", {
|
|
30747
30764
|
class: normalizeClass(className.value),
|
|
30748
30765
|
innerHTML: text.value
|
|
30749
|
-
}, null, 10, _hoisted_1$
|
|
30766
|
+
}, null, 10, _hoisted_1$14);
|
|
30750
30767
|
};
|
|
30751
30768
|
}
|
|
30752
30769
|
});
|
|
30753
|
-
const _hoisted_1$
|
|
30754
|
-
const _sfc_main$
|
|
30770
|
+
const _hoisted_1$13 = { class: "lupa-text-badges" };
|
|
30771
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
30755
30772
|
__name: "TextBadge",
|
|
30756
30773
|
props: {
|
|
30757
30774
|
badge: {}
|
|
@@ -30765,7 +30782,7 @@ and ensure you are accounting for this risk.
|
|
|
30765
30782
|
return badges.value.slice(0, props.badge.maxItems);
|
|
30766
30783
|
});
|
|
30767
30784
|
return (_ctx, _cache) => {
|
|
30768
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30785
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
30769
30786
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
30770
30787
|
return openBlock(), createElementBlock("div", {
|
|
30771
30788
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -30776,9 +30793,9 @@ and ensure you are accounting for this risk.
|
|
|
30776
30793
|
};
|
|
30777
30794
|
}
|
|
30778
30795
|
});
|
|
30779
|
-
const _hoisted_1$
|
|
30780
|
-
const _hoisted_2$
|
|
30781
|
-
const _sfc_main$
|
|
30796
|
+
const _hoisted_1$12 = { class: "lupa-image-badges" };
|
|
30797
|
+
const _hoisted_2$M = ["src"];
|
|
30798
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
30782
30799
|
__name: "ImageBadge",
|
|
30783
30800
|
props: {
|
|
30784
30801
|
badge: {}
|
|
@@ -30798,7 +30815,7 @@ and ensure you are accounting for this risk.
|
|
|
30798
30815
|
return `${props.badge.rootImageUrl}${src}`;
|
|
30799
30816
|
};
|
|
30800
30817
|
return (_ctx, _cache) => {
|
|
30801
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30818
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
30802
30819
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
30803
30820
|
return openBlock(), createElementBlock("div", {
|
|
30804
30821
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -30806,14 +30823,14 @@ and ensure you are accounting for this risk.
|
|
|
30806
30823
|
}, [
|
|
30807
30824
|
createBaseVNode("img", {
|
|
30808
30825
|
src: getImageUrl(item)
|
|
30809
|
-
}, null, 8, _hoisted_2$
|
|
30826
|
+
}, null, 8, _hoisted_2$M)
|
|
30810
30827
|
]);
|
|
30811
30828
|
}), 128))
|
|
30812
30829
|
]);
|
|
30813
30830
|
};
|
|
30814
30831
|
}
|
|
30815
30832
|
});
|
|
30816
|
-
const _sfc_main$
|
|
30833
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
30817
30834
|
__name: "DiscountBadge",
|
|
30818
30835
|
props: {
|
|
30819
30836
|
badge: {}
|
|
@@ -30875,16 +30892,16 @@ and ensure you are accounting for this risk.
|
|
|
30875
30892
|
};
|
|
30876
30893
|
}
|
|
30877
30894
|
});
|
|
30878
|
-
const _hoisted_1$
|
|
30895
|
+
const _hoisted_1$11 = { id: "lupa-search-results-badges" };
|
|
30879
30896
|
const __default__$3 = {
|
|
30880
30897
|
components: {
|
|
30881
|
-
CustomBadge: _sfc_main$
|
|
30882
|
-
TextBadge: _sfc_main$
|
|
30883
|
-
ImageBadge: _sfc_main$
|
|
30884
|
-
DiscountBadge: _sfc_main$
|
|
30898
|
+
CustomBadge: _sfc_main$1e,
|
|
30899
|
+
TextBadge: _sfc_main$1d,
|
|
30900
|
+
ImageBadge: _sfc_main$1c,
|
|
30901
|
+
DiscountBadge: _sfc_main$1b
|
|
30885
30902
|
}
|
|
30886
30903
|
};
|
|
30887
|
-
const _sfc_main$
|
|
30904
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
30888
30905
|
__name: "SearchResultsBadgeWrapper",
|
|
30889
30906
|
props: {
|
|
30890
30907
|
position: {},
|
|
@@ -30947,7 +30964,7 @@ and ensure you are accounting for this risk.
|
|
|
30947
30964
|
}
|
|
30948
30965
|
};
|
|
30949
30966
|
return (_ctx, _cache) => {
|
|
30950
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30967
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
30951
30968
|
createBaseVNode("div", {
|
|
30952
30969
|
id: "lupa-badges",
|
|
30953
30970
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -30958,7 +30975,7 @@ and ensure you are accounting for this risk.
|
|
|
30958
30975
|
badge
|
|
30959
30976
|
}, null, 8, ["badge"]);
|
|
30960
30977
|
}), 128)),
|
|
30961
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
30978
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1f, {
|
|
30962
30979
|
key: 0,
|
|
30963
30980
|
options: _ctx.options
|
|
30964
30981
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -30967,13 +30984,13 @@ and ensure you are accounting for this risk.
|
|
|
30967
30984
|
};
|
|
30968
30985
|
}
|
|
30969
30986
|
}));
|
|
30970
|
-
const _hoisted_1
|
|
30971
|
-
const _hoisted_2$
|
|
30987
|
+
const _hoisted_1$10 = ["href"];
|
|
30988
|
+
const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
|
|
30972
30989
|
const _hoisted_3$y = {
|
|
30973
30990
|
key: 0,
|
|
30974
30991
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
30975
30992
|
};
|
|
30976
|
-
const _sfc_main$
|
|
30993
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
30977
30994
|
__name: "SearchBoxProduct",
|
|
30978
30995
|
props: {
|
|
30979
30996
|
item: {},
|
|
@@ -31079,7 +31096,7 @@ and ensure you are accounting for this risk.
|
|
|
31079
31096
|
style: normalizeStyle(imageStyleOverride.value)
|
|
31080
31097
|
}, [
|
|
31081
31098
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
31082
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31099
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
31083
31100
|
class: "lupa-search-box-product-element",
|
|
31084
31101
|
key: element.key,
|
|
31085
31102
|
item: _ctx.item,
|
|
@@ -31089,10 +31106,10 @@ and ensure you are accounting for this risk.
|
|
|
31089
31106
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
31090
31107
|
}), 128))
|
|
31091
31108
|
], 4),
|
|
31092
|
-
createBaseVNode("div", _hoisted_2$
|
|
31109
|
+
createBaseVNode("div", _hoisted_2$L, [
|
|
31093
31110
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
31094
31111
|
var _a25;
|
|
31095
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31112
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
31096
31113
|
class: "lupa-search-box-product-element",
|
|
31097
31114
|
key: element.key,
|
|
31098
31115
|
item: _ctx.item,
|
|
@@ -31103,7 +31120,7 @@ and ensure you are accounting for this risk.
|
|
|
31103
31120
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
31104
31121
|
name: "badges",
|
|
31105
31122
|
fn: withCtx(() => [
|
|
31106
|
-
createVNode(_sfc_main$
|
|
31123
|
+
createVNode(_sfc_main$1a, {
|
|
31107
31124
|
options: badgeOptions.value,
|
|
31108
31125
|
position: "card"
|
|
31109
31126
|
}, null, 8, ["options"])
|
|
@@ -31119,7 +31136,7 @@ and ensure you are accounting for this risk.
|
|
|
31119
31136
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
31120
31137
|
}, [
|
|
31121
31138
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
31122
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31139
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
31123
31140
|
class: "lupa-search-box-product-element",
|
|
31124
31141
|
key: element.key,
|
|
31125
31142
|
item: _ctx.item,
|
|
@@ -31132,7 +31149,7 @@ and ensure you are accounting for this risk.
|
|
|
31132
31149
|
], 2);
|
|
31133
31150
|
}), 128)),
|
|
31134
31151
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
31135
|
-
createVNode(_sfc_main$
|
|
31152
|
+
createVNode(_sfc_main$1h, {
|
|
31136
31153
|
class: "lupa-search-box-product-element",
|
|
31137
31154
|
item: _ctx.item,
|
|
31138
31155
|
element: addToCartElement.value,
|
|
@@ -31141,7 +31158,7 @@ and ensure you are accounting for this risk.
|
|
|
31141
31158
|
isInStock: isInStock.value
|
|
31142
31159
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
31143
31160
|
])) : createCommentVNode("", true)
|
|
31144
|
-
], 16, _hoisted_1
|
|
31161
|
+
], 16, _hoisted_1$10);
|
|
31145
31162
|
};
|
|
31146
31163
|
}
|
|
31147
31164
|
});
|
|
@@ -31213,8 +31230,8 @@ and ensure you are accounting for this risk.
|
|
|
31213
31230
|
};
|
|
31214
31231
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
31215
31232
|
});
|
|
31216
|
-
const _hoisted_1
|
|
31217
|
-
const _sfc_main$
|
|
31233
|
+
const _hoisted_1$$ = { id: "lupa-search-box-products" };
|
|
31234
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
31218
31235
|
__name: "SearchBoxProducts",
|
|
31219
31236
|
props: {
|
|
31220
31237
|
items: {},
|
|
@@ -31286,7 +31303,7 @@ and ensure you are accounting for this risk.
|
|
|
31286
31303
|
}
|
|
31287
31304
|
};
|
|
31288
31305
|
return (_ctx, _cache) => {
|
|
31289
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
31306
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
31290
31307
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
31291
31308
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
31292
31309
|
key: index,
|
|
@@ -31298,7 +31315,7 @@ and ensure you are accounting for this risk.
|
|
|
31298
31315
|
itemClicked: handleProductClick
|
|
31299
31316
|
});
|
|
31300
31317
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
31301
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31318
|
+
return openBlock(), createBlock(_sfc_main$19, {
|
|
31302
31319
|
key: index,
|
|
31303
31320
|
item,
|
|
31304
31321
|
panelOptions: _ctx.panelOptions,
|
|
@@ -31313,9 +31330,9 @@ and ensure you are accounting for this risk.
|
|
|
31313
31330
|
};
|
|
31314
31331
|
}
|
|
31315
31332
|
});
|
|
31316
|
-
const _hoisted_1$
|
|
31317
|
-
const _hoisted_2$
|
|
31318
|
-
const _sfc_main$
|
|
31333
|
+
const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
31334
|
+
const _hoisted_2$K = { key: 0 };
|
|
31335
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
31319
31336
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
31320
31337
|
props: {
|
|
31321
31338
|
options: {},
|
|
@@ -31346,13 +31363,13 @@ and ensure you are accounting for this risk.
|
|
|
31346
31363
|
emit2("goToResults");
|
|
31347
31364
|
};
|
|
31348
31365
|
return (_ctx, _cache) => {
|
|
31349
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31366
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
31350
31367
|
createBaseVNode("button", {
|
|
31351
31368
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
31352
31369
|
onClick: goToResults
|
|
31353
31370
|
}, [
|
|
31354
31371
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
31355
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31372
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
31356
31373
|
])
|
|
31357
31374
|
]);
|
|
31358
31375
|
};
|
|
@@ -31439,7 +31456,7 @@ and ensure you are accounting for this risk.
|
|
|
31439
31456
|
}
|
|
31440
31457
|
return parsedObject;
|
|
31441
31458
|
};
|
|
31442
|
-
const _sfc_main$
|
|
31459
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
31443
31460
|
__name: "SearchBoxProductsWrapper",
|
|
31444
31461
|
props: {
|
|
31445
31462
|
panel: {},
|
|
@@ -31509,7 +31526,7 @@ and ensure you are accounting for this risk.
|
|
|
31509
31526
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
31510
31527
|
return (_ctx, _cache) => {
|
|
31511
31528
|
var _a25, _b25;
|
|
31512
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31529
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
31513
31530
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31514
31531
|
panelOptions: _ctx.panel,
|
|
31515
31532
|
labels: _ctx.labels,
|
|
@@ -31519,7 +31536,7 @@ and ensure you are accounting for this risk.
|
|
|
31519
31536
|
default: withCtx(() => {
|
|
31520
31537
|
var _a26;
|
|
31521
31538
|
return [
|
|
31522
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
31539
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$17, {
|
|
31523
31540
|
key: 0,
|
|
31524
31541
|
options: _ctx.searchBoxOptions,
|
|
31525
31542
|
panel: _ctx.panel,
|
|
@@ -31540,7 +31557,7 @@ and ensure you are accounting for this risk.
|
|
|
31540
31557
|
};
|
|
31541
31558
|
}
|
|
31542
31559
|
});
|
|
31543
|
-
const _sfc_main$
|
|
31560
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
31544
31561
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
31545
31562
|
props: {
|
|
31546
31563
|
panel: {},
|
|
@@ -31612,7 +31629,7 @@ and ensure you are accounting for this risk.
|
|
|
31612
31629
|
});
|
|
31613
31630
|
return (_ctx, _cache) => {
|
|
31614
31631
|
var _a25, _b25;
|
|
31615
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31632
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
31616
31633
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31617
31634
|
panelOptions: documentPanelOptions.value,
|
|
31618
31635
|
labels: _ctx.labels,
|
|
@@ -31630,11 +31647,11 @@ and ensure you are accounting for this risk.
|
|
|
31630
31647
|
};
|
|
31631
31648
|
}
|
|
31632
31649
|
});
|
|
31633
|
-
const _hoisted_1$
|
|
31650
|
+
const _hoisted_1$Z = {
|
|
31634
31651
|
key: 0,
|
|
31635
31652
|
id: "lupa-search-box-panel"
|
|
31636
31653
|
};
|
|
31637
|
-
const _hoisted_2$
|
|
31654
|
+
const _hoisted_2$J = ["data-cy"];
|
|
31638
31655
|
const _hoisted_3$x = {
|
|
31639
31656
|
key: 0,
|
|
31640
31657
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
@@ -31649,12 +31666,12 @@ and ensure you are accounting for this risk.
|
|
|
31649
31666
|
};
|
|
31650
31667
|
const __default__$2 = {
|
|
31651
31668
|
components: {
|
|
31652
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
31653
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
31654
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
31669
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1r,
|
|
31670
|
+
SearchBoxProductsWrapper: _sfc_main$16,
|
|
31671
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$15
|
|
31655
31672
|
}
|
|
31656
31673
|
};
|
|
31657
|
-
const _sfc_main$
|
|
31674
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
31658
31675
|
__name: "SearchBoxMainPanel",
|
|
31659
31676
|
props: {
|
|
31660
31677
|
options: {},
|
|
@@ -31812,7 +31829,7 @@ and ensure you are accounting for this risk.
|
|
|
31812
31829
|
ref_key: "panelContainer",
|
|
31813
31830
|
ref: panelContainer
|
|
31814
31831
|
}, [
|
|
31815
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31832
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
31816
31833
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
31817
31834
|
key: 0,
|
|
31818
31835
|
class: "lupa-search-box-close-panel",
|
|
@@ -31857,21 +31874,21 @@ and ensure you are accounting for this risk.
|
|
|
31857
31874
|
key: "0"
|
|
31858
31875
|
} : void 0
|
|
31859
31876
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
31860
|
-
], 14, _hoisted_2$
|
|
31877
|
+
], 14, _hoisted_2$J);
|
|
31861
31878
|
}), 128))
|
|
31862
31879
|
], 4),
|
|
31863
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
31880
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1u, {
|
|
31864
31881
|
key: 1,
|
|
31865
31882
|
labels: labels.value
|
|
31866
31883
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
31867
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
31884
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1x, {
|
|
31868
31885
|
key: 2,
|
|
31869
31886
|
labels: labels.value,
|
|
31870
31887
|
options: _ctx.options,
|
|
31871
31888
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
31872
31889
|
}, null, 8, ["labels", "options"])) : createCommentVNode("", true)
|
|
31873
31890
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
31874
|
-
createVNode(_sfc_main$
|
|
31891
|
+
createVNode(_sfc_main$1v, {
|
|
31875
31892
|
options: _ctx.options.history,
|
|
31876
31893
|
history: history.value,
|
|
31877
31894
|
onGoToResults: handleGoToResults,
|
|
@@ -31896,8 +31913,8 @@ and ensure you are accounting for this risk.
|
|
|
31896
31913
|
const elements = getElements(triggers);
|
|
31897
31914
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
31898
31915
|
};
|
|
31899
|
-
const _hoisted_1$
|
|
31900
|
-
const _sfc_main$
|
|
31916
|
+
const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
|
|
31917
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
31901
31918
|
__name: "SearchBox",
|
|
31902
31919
|
props: {
|
|
31903
31920
|
options: {},
|
|
@@ -32219,8 +32236,8 @@ and ensure you are accounting for this risk.
|
|
|
32219
32236
|
id: "lupa-search-box",
|
|
32220
32237
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
32221
32238
|
}, [
|
|
32222
|
-
createBaseVNode("div", _hoisted_1$
|
|
32223
|
-
createVNode(_sfc_main$
|
|
32239
|
+
createBaseVNode("div", _hoisted_1$Y, [
|
|
32240
|
+
createVNode(_sfc_main$1y, {
|
|
32224
32241
|
options: inputOptions.value,
|
|
32225
32242
|
suggestedValue: suggestedValue.value,
|
|
32226
32243
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -32233,7 +32250,7 @@ and ensure you are accounting for this risk.
|
|
|
32233
32250
|
onSearch: handleSearch,
|
|
32234
32251
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
32235
32252
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
32236
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
32253
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$14, {
|
|
32237
32254
|
key: 0,
|
|
32238
32255
|
options: panelOptions.value,
|
|
32239
32256
|
inputValue: inputValue.value,
|
|
@@ -32321,11 +32338,11 @@ and ensure you are accounting for this risk.
|
|
|
32321
32338
|
}
|
|
32322
32339
|
return searchParams;
|
|
32323
32340
|
};
|
|
32324
|
-
const _hoisted_1$
|
|
32341
|
+
const _hoisted_1$X = {
|
|
32325
32342
|
key: 0,
|
|
32326
32343
|
id: "lupa-search-results-did-you-mean"
|
|
32327
32344
|
};
|
|
32328
|
-
const _hoisted_2$
|
|
32345
|
+
const _hoisted_2$I = {
|
|
32329
32346
|
key: 0,
|
|
32330
32347
|
"data-cy": "suggested-search-text-label"
|
|
32331
32348
|
};
|
|
@@ -32334,7 +32351,7 @@ and ensure you are accounting for this risk.
|
|
|
32334
32351
|
"data-cy": "did-you-mean-label"
|
|
32335
32352
|
};
|
|
32336
32353
|
const _hoisted_4$n = { key: 1 };
|
|
32337
|
-
const _sfc_main$
|
|
32354
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
32338
32355
|
__name: "SearchResultsDidYouMean",
|
|
32339
32356
|
props: {
|
|
32340
32357
|
labels: {}
|
|
@@ -32366,8 +32383,8 @@ and ensure you are accounting for this risk.
|
|
|
32366
32383
|
paramStore.goToResults({ searchText, facet });
|
|
32367
32384
|
};
|
|
32368
32385
|
return (_ctx, _cache) => {
|
|
32369
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32370
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32386
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
32387
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
|
|
32371
32388
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
32372
32389
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32373
32390
|
createBaseVNode("span", {
|
|
@@ -32392,12 +32409,12 @@ and ensure you are accounting for this risk.
|
|
|
32392
32409
|
};
|
|
32393
32410
|
}
|
|
32394
32411
|
});
|
|
32395
|
-
const _hoisted_1$
|
|
32412
|
+
const _hoisted_1$W = {
|
|
32396
32413
|
key: 0,
|
|
32397
32414
|
class: "lupa-search-results-summary"
|
|
32398
32415
|
};
|
|
32399
|
-
const _hoisted_2$
|
|
32400
|
-
const _sfc_main$
|
|
32416
|
+
const _hoisted_2$H = ["innerHTML"];
|
|
32417
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
32401
32418
|
__name: "SearchResultsSummary",
|
|
32402
32419
|
props: {
|
|
32403
32420
|
label: {},
|
|
@@ -32412,8 +32429,8 @@ and ensure you are accounting for this risk.
|
|
|
32412
32429
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
32413
32430
|
});
|
|
32414
32431
|
return (_ctx, _cache) => {
|
|
32415
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32416
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
32432
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
32433
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
|
|
32417
32434
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
32418
32435
|
key: 0,
|
|
32419
32436
|
class: "lupa-filter-clear",
|
|
@@ -32424,19 +32441,19 @@ and ensure you are accounting for this risk.
|
|
|
32424
32441
|
};
|
|
32425
32442
|
}
|
|
32426
32443
|
});
|
|
32427
|
-
const _hoisted_1$
|
|
32444
|
+
const _hoisted_1$V = {
|
|
32428
32445
|
key: 0,
|
|
32429
32446
|
class: "lupa-result-page-title",
|
|
32430
32447
|
"data-cy": "lupa-result-page-title"
|
|
32431
32448
|
};
|
|
32432
|
-
const _hoisted_2$
|
|
32449
|
+
const _hoisted_2$G = { key: 0 };
|
|
32433
32450
|
const _hoisted_3$v = {
|
|
32434
32451
|
key: 1,
|
|
32435
32452
|
class: "lupa-results-total-count"
|
|
32436
32453
|
};
|
|
32437
32454
|
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
32438
32455
|
const _hoisted_5$f = ["innerHTML"];
|
|
32439
|
-
const _sfc_main
|
|
32456
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
32440
32457
|
__name: "SearchResultsTitle",
|
|
32441
32458
|
props: {
|
|
32442
32459
|
options: {},
|
|
@@ -32479,16 +32496,16 @@ and ensure you are accounting for this risk.
|
|
|
32479
32496
|
});
|
|
32480
32497
|
return (_ctx, _cache) => {
|
|
32481
32498
|
return openBlock(), createElementBlock("div", null, [
|
|
32482
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
32499
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
|
|
32483
32500
|
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32484
|
-
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
32501
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32485
32502
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
32486
32503
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32487
32504
|
createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
|
|
32488
32505
|
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32489
32506
|
])) : createCommentVNode("", true)
|
|
32490
32507
|
])) : createCommentVNode("", true),
|
|
32491
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
32508
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$11, {
|
|
32492
32509
|
key: 1,
|
|
32493
32510
|
label: summaryLabel.value
|
|
32494
32511
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -32501,15 +32518,15 @@ and ensure you are accounting for this risk.
|
|
|
32501
32518
|
};
|
|
32502
32519
|
}
|
|
32503
32520
|
});
|
|
32504
|
-
const _hoisted_1$
|
|
32521
|
+
const _hoisted_1$U = {
|
|
32505
32522
|
class: "lupa-current-filter-label",
|
|
32506
32523
|
"data-cy": "lupa-current-filter-label"
|
|
32507
32524
|
};
|
|
32508
|
-
const _hoisted_2$
|
|
32525
|
+
const _hoisted_2$F = {
|
|
32509
32526
|
class: "lupa-current-filter-value",
|
|
32510
32527
|
"data-cy": "lupa-current-filter-value"
|
|
32511
32528
|
};
|
|
32512
|
-
const _sfc_main
|
|
32529
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
32513
32530
|
__name: "CurrentFilterDisplay",
|
|
32514
32531
|
props: {
|
|
32515
32532
|
filter: {}
|
|
@@ -32551,14 +32568,14 @@ and ensure you are accounting for this risk.
|
|
|
32551
32568
|
onClick: handleClick,
|
|
32552
32569
|
"aria-label": "Remove filter"
|
|
32553
32570
|
}, "⨉"),
|
|
32554
|
-
createBaseVNode("div", _hoisted_1$
|
|
32555
|
-
createBaseVNode("div", _hoisted_2$
|
|
32571
|
+
createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32572
|
+
createBaseVNode("div", _hoisted_2$F, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32556
32573
|
], 2);
|
|
32557
32574
|
};
|
|
32558
32575
|
}
|
|
32559
32576
|
});
|
|
32560
|
-
const _hoisted_1$
|
|
32561
|
-
const _hoisted_2$
|
|
32577
|
+
const _hoisted_1$T = { class: "lupa-filter-title-text" };
|
|
32578
|
+
const _hoisted_2$E = {
|
|
32562
32579
|
key: 0,
|
|
32563
32580
|
class: "lupa-filter-count"
|
|
32564
32581
|
};
|
|
@@ -32567,7 +32584,7 @@ and ensure you are accounting for this risk.
|
|
|
32567
32584
|
class: "filter-values"
|
|
32568
32585
|
};
|
|
32569
32586
|
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
32570
|
-
const _sfc_main$
|
|
32587
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
32571
32588
|
__name: "CurrentFilters",
|
|
32572
32589
|
props: {
|
|
32573
32590
|
options: {},
|
|
@@ -32648,9 +32665,9 @@ and ensure you are accounting for this risk.
|
|
|
32648
32665
|
class: "lupa-current-filter-title",
|
|
32649
32666
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32650
32667
|
}, [
|
|
32651
|
-
createBaseVNode("div", _hoisted_1$
|
|
32668
|
+
createBaseVNode("div", _hoisted_1$T, [
|
|
32652
32669
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32653
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
32670
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32654
32671
|
]),
|
|
32655
32672
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
32656
32673
|
key: 0,
|
|
@@ -32660,7 +32677,7 @@ and ensure you are accounting for this risk.
|
|
|
32660
32677
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
32661
32678
|
createBaseVNode("div", _hoisted_4$l, [
|
|
32662
32679
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32663
|
-
return openBlock(), createBlock(_sfc_main
|
|
32680
|
+
return openBlock(), createBlock(_sfc_main$$, {
|
|
32664
32681
|
key: filter.key + "_" + filter.value,
|
|
32665
32682
|
filter,
|
|
32666
32683
|
units: units.value,
|
|
@@ -32678,8 +32695,8 @@ and ensure you are accounting for this risk.
|
|
|
32678
32695
|
};
|
|
32679
32696
|
}
|
|
32680
32697
|
});
|
|
32681
|
-
const _hoisted_1$
|
|
32682
|
-
const _sfc_main$
|
|
32698
|
+
const _hoisted_1$S = ["href"];
|
|
32699
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
32683
32700
|
__name: "CategoryFilterItem",
|
|
32684
32701
|
props: {
|
|
32685
32702
|
options: {},
|
|
@@ -32716,20 +32733,20 @@ and ensure you are accounting for this risk.
|
|
|
32716
32733
|
"data-cy": "lupa-child-category-item",
|
|
32717
32734
|
href: urlLink.value,
|
|
32718
32735
|
onClick: handleNavigation
|
|
32719
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
32736
|
+
}, toDisplayString(title.value), 9, _hoisted_1$S)
|
|
32720
32737
|
], 2);
|
|
32721
32738
|
};
|
|
32722
32739
|
}
|
|
32723
32740
|
});
|
|
32724
|
-
const _hoisted_1$
|
|
32741
|
+
const _hoisted_1$R = {
|
|
32725
32742
|
class: "lupa-category-filter",
|
|
32726
32743
|
"data-cy": "lupa-category-filter"
|
|
32727
32744
|
};
|
|
32728
|
-
const _hoisted_2$
|
|
32745
|
+
const _hoisted_2$D = { class: "lupa-category-back" };
|
|
32729
32746
|
const _hoisted_3$t = ["href"];
|
|
32730
32747
|
const _hoisted_4$k = ["href"];
|
|
32731
32748
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
32732
|
-
const _sfc_main$
|
|
32749
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
32733
32750
|
__name: "CategoryFilter",
|
|
32734
32751
|
props: {
|
|
32735
32752
|
options: {}
|
|
@@ -32817,8 +32834,8 @@ and ensure you are accounting for this risk.
|
|
|
32817
32834
|
};
|
|
32818
32835
|
__expose({ fetch: fetch2 });
|
|
32819
32836
|
return (_ctx, _cache) => {
|
|
32820
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32821
|
-
createBaseVNode("div", _hoisted_2$
|
|
32837
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
32838
|
+
createBaseVNode("div", _hoisted_2$D, [
|
|
32822
32839
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
32823
32840
|
key: 0,
|
|
32824
32841
|
"data-cy": "lupa-category-back",
|
|
@@ -32838,7 +32855,7 @@ and ensure you are accounting for this risk.
|
|
|
32838
32855
|
], 2),
|
|
32839
32856
|
createBaseVNode("div", _hoisted_5$e, [
|
|
32840
32857
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
32841
|
-
return openBlock(), createBlock(_sfc_main$
|
|
32858
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
32842
32859
|
key: getCategoryKey(child),
|
|
32843
32860
|
item: child,
|
|
32844
32861
|
options: _ctx.options
|
|
@@ -32849,11 +32866,11 @@ and ensure you are accounting for this risk.
|
|
|
32849
32866
|
};
|
|
32850
32867
|
}
|
|
32851
32868
|
});
|
|
32852
|
-
const _hoisted_1$
|
|
32869
|
+
const _hoisted_1$Q = {
|
|
32853
32870
|
class: "lupa-search-result-facet-term-values",
|
|
32854
32871
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
32855
32872
|
};
|
|
32856
|
-
const _hoisted_2$
|
|
32873
|
+
const _hoisted_2$C = ["placeholder"];
|
|
32857
32874
|
const _hoisted_3$s = { class: "lupa-terms-list" };
|
|
32858
32875
|
const _hoisted_4$j = ["onClick"];
|
|
32859
32876
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
@@ -32864,7 +32881,7 @@ and ensure you are accounting for this risk.
|
|
|
32864
32881
|
};
|
|
32865
32882
|
const _hoisted_8$2 = { key: 0 };
|
|
32866
32883
|
const _hoisted_9$2 = { key: 1 };
|
|
32867
|
-
const _sfc_main$
|
|
32884
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
32868
32885
|
__name: "TermFacet",
|
|
32869
32886
|
props: {
|
|
32870
32887
|
options: {},
|
|
@@ -32954,14 +32971,14 @@ and ensure you are accounting for this risk.
|
|
|
32954
32971
|
}
|
|
32955
32972
|
};
|
|
32956
32973
|
return (_ctx, _cache) => {
|
|
32957
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32974
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
32958
32975
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
32959
32976
|
key: 0,
|
|
32960
32977
|
class: "lupa-term-filter",
|
|
32961
32978
|
"data-cy": "lupa-term-filter",
|
|
32962
32979
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
32963
32980
|
placeholder: _ctx.options.labels.facetFilter
|
|
32964
|
-
}, null, 8, _hoisted_2$
|
|
32981
|
+
}, null, 8, _hoisted_2$C)), [
|
|
32965
32982
|
[vModelText, termFilter.value]
|
|
32966
32983
|
]) : createCommentVNode("", true),
|
|
32967
32984
|
createBaseVNode("div", _hoisted_3$s, [
|
|
@@ -33891,8 +33908,8 @@ and ensure you are accounting for this risk.
|
|
|
33891
33908
|
m.render = function(e2, t, r, i, n, o) {
|
|
33892
33909
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
33893
33910
|
}, m.__file = "src/Slider.vue";
|
|
33894
|
-
const _hoisted_1$
|
|
33895
|
-
const _hoisted_2$
|
|
33911
|
+
const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
|
|
33912
|
+
const _hoisted_2$B = {
|
|
33896
33913
|
key: 0,
|
|
33897
33914
|
class: "lupa-stats-facet-summary"
|
|
33898
33915
|
};
|
|
@@ -33920,7 +33937,7 @@ and ensure you are accounting for this risk.
|
|
|
33920
33937
|
key: 2,
|
|
33921
33938
|
class: "lupa-stats-slider-wrapper"
|
|
33922
33939
|
};
|
|
33923
|
-
const _sfc_main$
|
|
33940
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
33924
33941
|
__name: "StatsFacet",
|
|
33925
33942
|
props: {
|
|
33926
33943
|
options: {},
|
|
@@ -34136,8 +34153,8 @@ and ensure you are accounting for this risk.
|
|
|
34136
34153
|
}
|
|
34137
34154
|
);
|
|
34138
34155
|
return (_ctx, _cache) => {
|
|
34139
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34140
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34156
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
34157
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
34141
34158
|
createBaseVNode("div", _hoisted_4$i, [
|
|
34142
34159
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
34143
34160
|
withDirectives(createBaseVNode("input", {
|
|
@@ -34201,8 +34218,8 @@ and ensure you are accounting for this risk.
|
|
|
34201
34218
|
};
|
|
34202
34219
|
}
|
|
34203
34220
|
});
|
|
34204
|
-
const _hoisted_1$
|
|
34205
|
-
const _hoisted_2$
|
|
34221
|
+
const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
|
|
34222
|
+
const _hoisted_2$A = { class: "lupa-term-label" };
|
|
34206
34223
|
const _hoisted_3$q = {
|
|
34207
34224
|
key: 0,
|
|
34208
34225
|
class: "lupa-term-count"
|
|
@@ -34211,7 +34228,7 @@ and ensure you are accounting for this risk.
|
|
|
34211
34228
|
key: 0,
|
|
34212
34229
|
class: "lupa-facet-level"
|
|
34213
34230
|
};
|
|
34214
|
-
const _sfc_main$
|
|
34231
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
34215
34232
|
__name: "HierarchyFacetLevel",
|
|
34216
34233
|
props: {
|
|
34217
34234
|
options: {},
|
|
@@ -34265,7 +34282,7 @@ and ensure you are accounting for this risk.
|
|
|
34265
34282
|
"data-cy": "lupa-facet-term",
|
|
34266
34283
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34267
34284
|
}, [
|
|
34268
|
-
createBaseVNode("div", _hoisted_1$
|
|
34285
|
+
createBaseVNode("div", _hoisted_1$O, [
|
|
34269
34286
|
createBaseVNode("span", {
|
|
34270
34287
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34271
34288
|
}, null, 2)
|
|
@@ -34273,7 +34290,7 @@ and ensure you are accounting for this risk.
|
|
|
34273
34290
|
createBaseVNode("div", {
|
|
34274
34291
|
class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
|
|
34275
34292
|
}, [
|
|
34276
|
-
createBaseVNode("span", _hoisted_2$
|
|
34293
|
+
createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
34277
34294
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$q, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
34278
34295
|
], 2)
|
|
34279
34296
|
]),
|
|
@@ -34293,13 +34310,13 @@ and ensure you are accounting for this risk.
|
|
|
34293
34310
|
};
|
|
34294
34311
|
}
|
|
34295
34312
|
});
|
|
34296
|
-
const _hoisted_1$
|
|
34313
|
+
const _hoisted_1$N = {
|
|
34297
34314
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34298
34315
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34299
34316
|
};
|
|
34300
|
-
const _hoisted_2$
|
|
34317
|
+
const _hoisted_2$z = { key: 0 };
|
|
34301
34318
|
const _hoisted_3$p = ["placeholder"];
|
|
34302
|
-
const _sfc_main$
|
|
34319
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
34303
34320
|
__name: "HierarchyFacet",
|
|
34304
34321
|
props: {
|
|
34305
34322
|
options: {},
|
|
@@ -34355,8 +34372,8 @@ and ensure you are accounting for this risk.
|
|
|
34355
34372
|
showAll.value = false;
|
|
34356
34373
|
};
|
|
34357
34374
|
return (_ctx, _cache) => {
|
|
34358
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34359
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34375
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
34376
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
34360
34377
|
withDirectives(createBaseVNode("input", {
|
|
34361
34378
|
class: "lupa-term-filter",
|
|
34362
34379
|
"data-cy": "lupa-term-filter",
|
|
@@ -34367,7 +34384,7 @@ and ensure you are accounting for this risk.
|
|
|
34367
34384
|
])
|
|
34368
34385
|
])) : createCommentVNode("", true),
|
|
34369
34386
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34370
|
-
return openBlock(), createBlock(_sfc_main$
|
|
34387
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
34371
34388
|
key: item.title,
|
|
34372
34389
|
options: _ctx.options,
|
|
34373
34390
|
item,
|
|
@@ -34379,32 +34396,32 @@ and ensure you are accounting for this risk.
|
|
|
34379
34396
|
}), 128)),
|
|
34380
34397
|
itemLimit.value < filteredValues.value.length ? (openBlock(), createElementBlock("div", {
|
|
34381
34398
|
key: 1,
|
|
34382
|
-
class:
|
|
34399
|
+
class: "lupa-facet-term lupa-show-more-facet-results",
|
|
34383
34400
|
"data-cy": "lupa-facet-term",
|
|
34384
34401
|
onClick: handleShowAll
|
|
34385
|
-
}, toDisplayString(_ctx.options.labels.showAll),
|
|
34402
|
+
}, toDisplayString(_ctx.options.labels.showAll), 1)) : showAll.value ? (openBlock(), createElementBlock("div", {
|
|
34386
34403
|
key: 2,
|
|
34387
|
-
class: "lupa-facet-term lupa-show-more-facet-results",
|
|
34404
|
+
class: "lupa-facet-term lupa-show-more-facet-results lupa-show-less-facet-results",
|
|
34388
34405
|
onClick: handleCancelShowAll
|
|
34389
34406
|
}, toDisplayString(_ctx.options.labels.showLess), 1)) : createCommentVNode("", true)
|
|
34390
34407
|
]);
|
|
34391
34408
|
};
|
|
34392
34409
|
}
|
|
34393
34410
|
});
|
|
34394
|
-
const _hoisted_1$
|
|
34395
|
-
const _hoisted_2$
|
|
34411
|
+
const _hoisted_1$M = { class: "lupa-facet-label-text" };
|
|
34412
|
+
const _hoisted_2$y = {
|
|
34396
34413
|
key: 0,
|
|
34397
34414
|
class: "lupa-facet-content",
|
|
34398
34415
|
"data-cy": "lupa-facet-content"
|
|
34399
34416
|
};
|
|
34400
34417
|
const __default__$1 = {
|
|
34401
34418
|
components: {
|
|
34402
|
-
TermFacet: _sfc_main$
|
|
34403
|
-
StatsFacet: _sfc_main$
|
|
34404
|
-
HierarchyFacet: _sfc_main$
|
|
34419
|
+
TermFacet: _sfc_main$X,
|
|
34420
|
+
StatsFacet: _sfc_main$W,
|
|
34421
|
+
HierarchyFacet: _sfc_main$U
|
|
34405
34422
|
}
|
|
34406
34423
|
};
|
|
34407
|
-
const _sfc_main$
|
|
34424
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34408
34425
|
__name: "FacetDisplay",
|
|
34409
34426
|
props: {
|
|
34410
34427
|
options: {},
|
|
@@ -34526,12 +34543,12 @@ and ensure you are accounting for this risk.
|
|
|
34526
34543
|
"data-cy": "lupa-search-result-facet-label",
|
|
34527
34544
|
onClick: toggleFacet
|
|
34528
34545
|
}, [
|
|
34529
|
-
createBaseVNode("div", _hoisted_1$
|
|
34546
|
+
createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
|
|
34530
34547
|
createBaseVNode("div", {
|
|
34531
34548
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34532
34549
|
}, null, 2)
|
|
34533
34550
|
], 2),
|
|
34534
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34551
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
34535
34552
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
34536
34553
|
facet: facet.value,
|
|
34537
34554
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -34549,12 +34566,12 @@ and ensure you are accounting for this risk.
|
|
|
34549
34566
|
};
|
|
34550
34567
|
}
|
|
34551
34568
|
}));
|
|
34552
|
-
const _hoisted_1$
|
|
34553
|
-
const _hoisted_2$
|
|
34569
|
+
const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
|
|
34570
|
+
const _hoisted_2$x = {
|
|
34554
34571
|
key: 0,
|
|
34555
34572
|
class: "lupa-facets-title"
|
|
34556
34573
|
};
|
|
34557
|
-
const _sfc_main$
|
|
34574
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
34558
34575
|
__name: "FacetList",
|
|
34559
34576
|
props: {
|
|
34560
34577
|
options: {},
|
|
@@ -34589,14 +34606,14 @@ and ensure you are accounting for this risk.
|
|
|
34589
34606
|
};
|
|
34590
34607
|
return (_ctx, _cache) => {
|
|
34591
34608
|
var _a25;
|
|
34592
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34593
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34609
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
34610
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
34594
34611
|
createBaseVNode("div", {
|
|
34595
34612
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = _ctx.facetStyle) != null ? _a25 : "")])
|
|
34596
34613
|
}, [
|
|
34597
34614
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
34598
34615
|
var _a26;
|
|
34599
|
-
return openBlock(), createBlock(_sfc_main$
|
|
34616
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
34600
34617
|
key: facet.key,
|
|
34601
34618
|
facet,
|
|
34602
34619
|
currentFilters: currentFiltersValue.value,
|
|
@@ -34611,7 +34628,7 @@ and ensure you are accounting for this risk.
|
|
|
34611
34628
|
};
|
|
34612
34629
|
}
|
|
34613
34630
|
});
|
|
34614
|
-
const _sfc_main$
|
|
34631
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
34615
34632
|
__name: "FacetsButton",
|
|
34616
34633
|
props: {
|
|
34617
34634
|
options: {}
|
|
@@ -34636,8 +34653,8 @@ and ensure you are accounting for this risk.
|
|
|
34636
34653
|
};
|
|
34637
34654
|
}
|
|
34638
34655
|
});
|
|
34639
|
-
const _hoisted_1$
|
|
34640
|
-
const _sfc_main$
|
|
34656
|
+
const _hoisted_1$K = { class: "lupa-facets-filter-button-wrapper" };
|
|
34657
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
34641
34658
|
__name: "Facets",
|
|
34642
34659
|
props: {
|
|
34643
34660
|
options: {},
|
|
@@ -34724,7 +34741,7 @@ and ensure you are accounting for this risk.
|
|
|
34724
34741
|
return openBlock(), createElementBlock("div", {
|
|
34725
34742
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
34726
34743
|
}, [
|
|
34727
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
34744
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
34728
34745
|
key: 0,
|
|
34729
34746
|
options: _ctx.options,
|
|
34730
34747
|
facets: regularFacets.value,
|
|
@@ -34734,8 +34751,8 @@ and ensure you are accounting for this risk.
|
|
|
34734
34751
|
onSelect: handleFacetSelect,
|
|
34735
34752
|
onClear: clear
|
|
34736
34753
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
34737
|
-
createBaseVNode("div", _hoisted_1$
|
|
34738
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
34754
|
+
createBaseVNode("div", _hoisted_1$K, [
|
|
34755
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$R, {
|
|
34739
34756
|
key: 0,
|
|
34740
34757
|
options: _ctx.options,
|
|
34741
34758
|
onFilter: filter
|
|
@@ -34745,12 +34762,12 @@ and ensure you are accounting for this risk.
|
|
|
34745
34762
|
};
|
|
34746
34763
|
}
|
|
34747
34764
|
});
|
|
34748
|
-
const _hoisted_1$
|
|
34765
|
+
const _hoisted_1$J = {
|
|
34749
34766
|
key: 0,
|
|
34750
34767
|
id: "lupa-search-result-filters",
|
|
34751
34768
|
class: "lupa-search-result-filters"
|
|
34752
34769
|
};
|
|
34753
|
-
const _sfc_main$
|
|
34770
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
34754
34771
|
__name: "SearchResultsFilters",
|
|
34755
34772
|
props: {
|
|
34756
34773
|
options: {},
|
|
@@ -34788,19 +34805,19 @@ and ensure you are accounting for this risk.
|
|
|
34788
34805
|
__expose({ fetch: fetch2 });
|
|
34789
34806
|
return (_ctx, _cache) => {
|
|
34790
34807
|
var _a25;
|
|
34791
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
34792
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
34808
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
34809
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$_, {
|
|
34793
34810
|
key: 0,
|
|
34794
34811
|
options: _ctx.options.currentFilters,
|
|
34795
34812
|
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
34796
34813
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
34797
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
34814
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
34798
34815
|
key: 1,
|
|
34799
34816
|
options: _ctx.options.categories,
|
|
34800
34817
|
ref_key: "categoryFilters",
|
|
34801
34818
|
ref: categoryFilters
|
|
34802
34819
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
34803
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
34820
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
34804
34821
|
key: 2,
|
|
34805
34822
|
options: _ctx.options.facets,
|
|
34806
34823
|
onFilter: filter
|
|
@@ -34809,11 +34826,11 @@ and ensure you are accounting for this risk.
|
|
|
34809
34826
|
};
|
|
34810
34827
|
}
|
|
34811
34828
|
});
|
|
34812
|
-
const _hoisted_1$
|
|
34829
|
+
const _hoisted_1$I = {
|
|
34813
34830
|
key: 0,
|
|
34814
34831
|
class: "lupa-mobile-filter-sidebar"
|
|
34815
34832
|
};
|
|
34816
|
-
const _hoisted_2$
|
|
34833
|
+
const _hoisted_2$w = { class: "lupa-mobile-sidebar-content" };
|
|
34817
34834
|
const _hoisted_3$o = { class: "lupa-sidebar-top" };
|
|
34818
34835
|
const _hoisted_4$g = { class: "lupa-sidebar-title" };
|
|
34819
34836
|
const _hoisted_5$b = {
|
|
@@ -34821,7 +34838,7 @@ and ensure you are accounting for this risk.
|
|
|
34821
34838
|
class: "lupa-sidebar-filter-count"
|
|
34822
34839
|
};
|
|
34823
34840
|
const _hoisted_6$5 = { class: "lupa-sidebar-filter-options" };
|
|
34824
|
-
const _sfc_main$
|
|
34841
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
34825
34842
|
__name: "MobileFilterSidebar",
|
|
34826
34843
|
props: {
|
|
34827
34844
|
options: {}
|
|
@@ -34853,12 +34870,12 @@ and ensure you are accounting for this risk.
|
|
|
34853
34870
|
handleMobileToggle();
|
|
34854
34871
|
};
|
|
34855
34872
|
return (_ctx, _cache) => {
|
|
34856
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
34873
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
34857
34874
|
createBaseVNode("div", {
|
|
34858
34875
|
class: "lupa-sidebar-close",
|
|
34859
34876
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
34860
34877
|
}),
|
|
34861
|
-
createBaseVNode("div", _hoisted_2$
|
|
34878
|
+
createBaseVNode("div", _hoisted_2$w, [
|
|
34862
34879
|
createBaseVNode("div", _hoisted_3$o, [
|
|
34863
34880
|
createBaseVNode("div", _hoisted_4$g, [
|
|
34864
34881
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -34870,7 +34887,7 @@ and ensure you are accounting for this risk.
|
|
|
34870
34887
|
})
|
|
34871
34888
|
]),
|
|
34872
34889
|
createBaseVNode("div", _hoisted_6$5, [
|
|
34873
|
-
createVNode(_sfc_main$
|
|
34890
|
+
createVNode(_sfc_main$P, {
|
|
34874
34891
|
options: _ctx.options,
|
|
34875
34892
|
expandable: isActiveFiltersExpanded.value,
|
|
34876
34893
|
onFilter: filter
|
|
@@ -34881,14 +34898,14 @@ and ensure you are accounting for this risk.
|
|
|
34881
34898
|
};
|
|
34882
34899
|
}
|
|
34883
34900
|
});
|
|
34884
|
-
const _hoisted_1$
|
|
34885
|
-
const _hoisted_2$
|
|
34901
|
+
const _hoisted_1$H = { id: "lupa-search-results-breadcrumbs" };
|
|
34902
|
+
const _hoisted_2$v = ["href", "onClick"];
|
|
34886
34903
|
const _hoisted_3$n = {
|
|
34887
34904
|
key: 1,
|
|
34888
34905
|
class: "lupa-search-results-breadcrumb-text"
|
|
34889
34906
|
};
|
|
34890
34907
|
const _hoisted_4$f = { key: 2 };
|
|
34891
|
-
const _sfc_main$
|
|
34908
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
34892
34909
|
__name: "SearchResultsBreadcrumbs",
|
|
34893
34910
|
props: {
|
|
34894
34911
|
breadcrumbs: {}
|
|
@@ -34913,7 +34930,7 @@ and ensure you are accounting for this risk.
|
|
|
34913
34930
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
34914
34931
|
};
|
|
34915
34932
|
return (_ctx, _cache) => {
|
|
34916
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34933
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
34917
34934
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
34918
34935
|
var _a25;
|
|
34919
34936
|
return openBlock(), createElementBlock("span", {
|
|
@@ -34928,7 +34945,7 @@ and ensure you are accounting for this risk.
|
|
|
34928
34945
|
var _a26;
|
|
34929
34946
|
return handleNavigation(e2, (_a26 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a26 : "");
|
|
34930
34947
|
}
|
|
34931
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
34948
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
34932
34949
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
34933
34950
|
]);
|
|
34934
34951
|
}), 128))
|
|
@@ -34936,12 +34953,12 @@ and ensure you are accounting for this risk.
|
|
|
34936
34953
|
};
|
|
34937
34954
|
}
|
|
34938
34955
|
});
|
|
34939
|
-
const _hoisted_1$
|
|
34956
|
+
const _hoisted_1$G = {
|
|
34940
34957
|
key: 0,
|
|
34941
34958
|
id: "lupa-search-result-filters",
|
|
34942
34959
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
34943
34960
|
};
|
|
34944
|
-
const _sfc_main$
|
|
34961
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
34945
34962
|
__name: "FiltersTopDropdown",
|
|
34946
34963
|
props: {
|
|
34947
34964
|
options: {}
|
|
@@ -34959,8 +34976,8 @@ and ensure you are accounting for this risk.
|
|
|
34959
34976
|
});
|
|
34960
34977
|
return (_ctx, _cache) => {
|
|
34961
34978
|
var _a25;
|
|
34962
|
-
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
34963
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
34979
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
34980
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
34964
34981
|
key: 0,
|
|
34965
34982
|
options: _ctx.options.facets,
|
|
34966
34983
|
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
@@ -34971,8 +34988,8 @@ and ensure you are accounting for this risk.
|
|
|
34971
34988
|
};
|
|
34972
34989
|
}
|
|
34973
34990
|
});
|
|
34974
|
-
const _hoisted_1$
|
|
34975
|
-
const _sfc_main$
|
|
34991
|
+
const _hoisted_1$F = { id: "lupa-search-results-layout-selection" };
|
|
34992
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
34976
34993
|
__name: "SearchResultsLayoutSelection",
|
|
34977
34994
|
setup(__props) {
|
|
34978
34995
|
const searchResultStore = useSearchResultStore();
|
|
@@ -34983,7 +35000,7 @@ and ensure you are accounting for this risk.
|
|
|
34983
35000
|
searchResultStore.setLayout(layout2);
|
|
34984
35001
|
};
|
|
34985
35002
|
return (_ctx, _cache) => {
|
|
34986
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
34987
35004
|
createBaseVNode("div", {
|
|
34988
35005
|
class: normalizeClass([
|
|
34989
35006
|
"lupa-layout-selection-grid",
|
|
@@ -35005,11 +35022,11 @@ and ensure you are accounting for this risk.
|
|
|
35005
35022
|
};
|
|
35006
35023
|
}
|
|
35007
35024
|
});
|
|
35008
|
-
const _hoisted_1$
|
|
35025
|
+
const _hoisted_1$E = {
|
|
35009
35026
|
key: 0,
|
|
35010
35027
|
class: "lupa-mobile-toggle-filter-count"
|
|
35011
35028
|
};
|
|
35012
|
-
const _sfc_main$
|
|
35029
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35013
35030
|
__name: "SearchResultsMobileToggle",
|
|
35014
35031
|
props: {
|
|
35015
35032
|
labels: {},
|
|
@@ -35057,12 +35074,12 @@ and ensure you are accounting for this risk.
|
|
|
35057
35074
|
onClick: handleMobileToggle
|
|
35058
35075
|
}, [
|
|
35059
35076
|
createTextVNode(toDisplayString(label.value) + " ", 1),
|
|
35060
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35077
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$E, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35061
35078
|
], 2);
|
|
35062
35079
|
};
|
|
35063
35080
|
}
|
|
35064
35081
|
});
|
|
35065
|
-
const _sfc_main$
|
|
35082
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
35066
35083
|
__name: "SearchResultsMobileFilterClose",
|
|
35067
35084
|
props: {
|
|
35068
35085
|
label: {}
|
|
@@ -35082,12 +35099,12 @@ and ensure you are accounting for this risk.
|
|
|
35082
35099
|
};
|
|
35083
35100
|
}
|
|
35084
35101
|
});
|
|
35085
|
-
const _hoisted_1$
|
|
35102
|
+
const _hoisted_1$D = {
|
|
35086
35103
|
key: 0,
|
|
35087
35104
|
id: "lupa-search-results-page-select",
|
|
35088
35105
|
"data-cy": "lupa-search-results-page-select"
|
|
35089
35106
|
};
|
|
35090
|
-
const _hoisted_2$
|
|
35107
|
+
const _hoisted_2$u = {
|
|
35091
35108
|
key: 0,
|
|
35092
35109
|
class: "lupa-page-number-separator"
|
|
35093
35110
|
};
|
|
@@ -35096,7 +35113,7 @@ and ensure you are accounting for this risk.
|
|
|
35096
35113
|
key: 0,
|
|
35097
35114
|
class: "lupa-page-number-separator"
|
|
35098
35115
|
};
|
|
35099
|
-
const _sfc_main$
|
|
35116
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
35100
35117
|
__name: "SearchResultsPageSelect",
|
|
35101
35118
|
props: {
|
|
35102
35119
|
lastPageLabel: {},
|
|
@@ -35173,7 +35190,7 @@ and ensure you are accounting for this risk.
|
|
|
35173
35190
|
}
|
|
35174
35191
|
};
|
|
35175
35192
|
return (_ctx, _cache) => {
|
|
35176
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35193
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
35177
35194
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
35178
35195
|
key: 0,
|
|
35179
35196
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35184,7 +35201,7 @@ and ensure you are accounting for this risk.
|
|
|
35184
35201
|
class: "lupa-page-number lupa-page-number-first",
|
|
35185
35202
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
35186
35203
|
}, " 1 "),
|
|
35187
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
35204
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
|
|
35188
35205
|
], 64)) : createCommentVNode("", true),
|
|
35189
35206
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
35190
35207
|
return openBlock(), createElementBlock("div", {
|
|
@@ -35217,15 +35234,18 @@ and ensure you are accounting for this risk.
|
|
|
35217
35234
|
};
|
|
35218
35235
|
}
|
|
35219
35236
|
});
|
|
35220
|
-
const _hoisted_1$
|
|
35237
|
+
const _hoisted_1$C = {
|
|
35221
35238
|
id: "lupa-search-results-page-size",
|
|
35222
35239
|
"data-cy": "lupa-search-results-page-size"
|
|
35223
35240
|
};
|
|
35224
|
-
const _hoisted_2$
|
|
35225
|
-
const _hoisted_3$l = {
|
|
35241
|
+
const _hoisted_2$t = { id: "lupa-select" };
|
|
35242
|
+
const _hoisted_3$l = {
|
|
35243
|
+
class: "lupa-select-label",
|
|
35244
|
+
for: "lupa-page-size-select-dropdown"
|
|
35245
|
+
};
|
|
35226
35246
|
const _hoisted_4$d = ["aria-label"];
|
|
35227
35247
|
const _hoisted_5$a = ["value"];
|
|
35228
|
-
const _sfc_main$
|
|
35248
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
35229
35249
|
__name: "SearchResultsPageSize",
|
|
35230
35250
|
props: {
|
|
35231
35251
|
labels: {},
|
|
@@ -35235,6 +35255,7 @@ and ensure you are accounting for this risk.
|
|
|
35235
35255
|
const props = __props;
|
|
35236
35256
|
const paramsStore = useParamsStore();
|
|
35237
35257
|
const optionsStore = useOptionsStore();
|
|
35258
|
+
const { ariaLabels } = storeToRefs(optionsStore);
|
|
35238
35259
|
const select = ref(null);
|
|
35239
35260
|
const prefixLabel = computed(() => {
|
|
35240
35261
|
var _a25, _b25;
|
|
@@ -35253,12 +35274,14 @@ and ensure you are accounting for this risk.
|
|
|
35253
35274
|
});
|
|
35254
35275
|
};
|
|
35255
35276
|
return (_ctx, _cache) => {
|
|
35256
|
-
|
|
35257
|
-
|
|
35277
|
+
var _a25, _b25, _c;
|
|
35278
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
35279
|
+
createBaseVNode("div", _hoisted_2$t, [
|
|
35258
35280
|
createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
|
|
35259
35281
|
createBaseVNode("select", {
|
|
35282
|
+
id: "lupa-page-size-select-dropdown",
|
|
35260
35283
|
class: "lupa-select-dropdown",
|
|
35261
|
-
"aria-label": label.value,
|
|
35284
|
+
"aria-label": (_c = (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.pageSizeSelect) != null ? _b25 : label.value) != null ? _c : "Select page size",
|
|
35262
35285
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
35263
35286
|
onChange: handleSelect,
|
|
35264
35287
|
ref_key: "select",
|
|
@@ -35276,15 +35299,18 @@ and ensure you are accounting for this risk.
|
|
|
35276
35299
|
};
|
|
35277
35300
|
}
|
|
35278
35301
|
});
|
|
35279
|
-
const _hoisted_1$
|
|
35302
|
+
const _hoisted_1$B = {
|
|
35280
35303
|
id: "lupa-search-results-sort",
|
|
35281
35304
|
class: "lupa-search-results-sort"
|
|
35282
35305
|
};
|
|
35283
|
-
const _hoisted_2$
|
|
35284
|
-
const _hoisted_3$k = {
|
|
35306
|
+
const _hoisted_2$s = { id: "lupa-select" };
|
|
35307
|
+
const _hoisted_3$k = {
|
|
35308
|
+
class: "lupa-select-label",
|
|
35309
|
+
for: "lupa-sort-select-dropdown"
|
|
35310
|
+
};
|
|
35285
35311
|
const _hoisted_4$c = ["aria-label"];
|
|
35286
35312
|
const _hoisted_5$9 = ["value"];
|
|
35287
|
-
const _sfc_main$
|
|
35313
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
35288
35314
|
__name: "SearchResultsSort",
|
|
35289
35315
|
props: {
|
|
35290
35316
|
options: {},
|
|
@@ -35295,6 +35321,7 @@ and ensure you are accounting for this risk.
|
|
|
35295
35321
|
const paramStore = useParamsStore();
|
|
35296
35322
|
const optionStore = useOptionsStore();
|
|
35297
35323
|
const { sort } = storeToRefs(paramStore);
|
|
35324
|
+
const { ariaLabels } = storeToRefs(optionStore);
|
|
35298
35325
|
const selectedKey = ref("");
|
|
35299
35326
|
const previousKey = ref("");
|
|
35300
35327
|
const sortItems = computed(() => {
|
|
@@ -35333,12 +35360,14 @@ and ensure you are accounting for this risk.
|
|
|
35333
35360
|
previousKey.value = selectedKey.value;
|
|
35334
35361
|
};
|
|
35335
35362
|
return (_ctx, _cache) => {
|
|
35336
|
-
|
|
35337
|
-
|
|
35363
|
+
var _a25, _b25;
|
|
35364
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
35365
|
+
createBaseVNode("div", _hoisted_2$s, [
|
|
35338
35366
|
createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
|
|
35339
35367
|
withDirectives(createBaseVNode("select", {
|
|
35368
|
+
id: "lupa-sort-select-dropdown",
|
|
35340
35369
|
class: "lupa-select-dropdown",
|
|
35341
|
-
"aria-label": _ctx.options.label,
|
|
35370
|
+
"aria-label": (_b25 = (_a25 = unref(ariaLabels)) == null ? void 0 : _a25.sortBySelect) != null ? _b25 : _ctx.options.label,
|
|
35342
35371
|
"data-cy": "lupa-sort-select-dropdown",
|
|
35343
35372
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
|
|
35344
35373
|
onChange: handleSelect,
|
|
@@ -35358,8 +35387,8 @@ and ensure you are accounting for this risk.
|
|
|
35358
35387
|
};
|
|
35359
35388
|
}
|
|
35360
35389
|
});
|
|
35361
|
-
const _hoisted_1$
|
|
35362
|
-
const _hoisted_2$
|
|
35390
|
+
const _hoisted_1$A = { class: "lupa-toolbar-left" };
|
|
35391
|
+
const _hoisted_2$r = {
|
|
35363
35392
|
key: 0,
|
|
35364
35393
|
class: "lupa-toolbar-right-title"
|
|
35365
35394
|
};
|
|
@@ -35373,7 +35402,7 @@ and ensure you are accounting for this risk.
|
|
|
35373
35402
|
};
|
|
35374
35403
|
const _hoisted_8 = { key: 2 };
|
|
35375
35404
|
const _hoisted_9 = { key: 4 };
|
|
35376
|
-
const _sfc_main$
|
|
35405
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
35377
35406
|
__name: "SearchResultsToolbar",
|
|
35378
35407
|
props: {
|
|
35379
35408
|
options: {},
|
|
@@ -35484,16 +35513,16 @@ and ensure you are accounting for this risk.
|
|
|
35484
35513
|
id: "lupa-search-results-toolbar",
|
|
35485
35514
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
35486
35515
|
}, [
|
|
35487
|
-
createBaseVNode("div", _hoisted_1$
|
|
35488
|
-
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
35489
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
35490
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
35516
|
+
createBaseVNode("div", _hoisted_1$A, [
|
|
35517
|
+
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
35518
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$L, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
|
|
35519
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$11, {
|
|
35491
35520
|
key: 3,
|
|
35492
35521
|
label: searchSummaryLabel.value,
|
|
35493
35522
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
35494
35523
|
onClear: handleClearAll
|
|
35495
35524
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
35496
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
35525
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
35497
35526
|
key: 5,
|
|
35498
35527
|
options: paginationOptions.value.pageSelect,
|
|
35499
35528
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -35502,21 +35531,21 @@ and ensure you are accounting for this risk.
|
|
|
35502
35531
|
]),
|
|
35503
35532
|
createBaseVNode("div", _hoisted_6$4, [
|
|
35504
35533
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
35505
|
-
createVNode(_sfc_main$
|
|
35534
|
+
createVNode(_sfc_main$K, {
|
|
35506
35535
|
labels: optionsValue.value.labels,
|
|
35507
35536
|
"show-filter-count": showMobileFilterCount.value
|
|
35508
35537
|
}, null, 8, ["labels", "show-filter-count"]),
|
|
35509
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
35538
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$H, {
|
|
35510
35539
|
key: 1,
|
|
35511
35540
|
options: paginationOptions.value.pageSize,
|
|
35512
35541
|
labels: paginationOptions.value.labels
|
|
35513
35542
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
35514
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
35543
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
35515
35544
|
key: 3,
|
|
35516
35545
|
options: sortOptions.value,
|
|
35517
35546
|
callbacks: callbacks.value
|
|
35518
35547
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
35519
|
-
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
35548
|
+
showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$J, {
|
|
35520
35549
|
key: 5,
|
|
35521
35550
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
35522
35551
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -35525,7 +35554,7 @@ and ensure you are accounting for this risk.
|
|
|
35525
35554
|
};
|
|
35526
35555
|
}
|
|
35527
35556
|
});
|
|
35528
|
-
const _sfc_main$
|
|
35557
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
35529
35558
|
__name: "SearchResultsProductImage",
|
|
35530
35559
|
props: {
|
|
35531
35560
|
item: {},
|
|
@@ -35533,7 +35562,7 @@ and ensure you are accounting for this risk.
|
|
|
35533
35562
|
},
|
|
35534
35563
|
setup(__props) {
|
|
35535
35564
|
return (_ctx, _cache) => {
|
|
35536
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35565
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
35537
35566
|
item: _ctx.item,
|
|
35538
35567
|
options: _ctx.options,
|
|
35539
35568
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -35542,8 +35571,8 @@ and ensure you are accounting for this risk.
|
|
|
35542
35571
|
};
|
|
35543
35572
|
}
|
|
35544
35573
|
});
|
|
35545
|
-
const _hoisted_1$
|
|
35546
|
-
const _hoisted_2$
|
|
35574
|
+
const _hoisted_1$z = ["title", "innerHTML"];
|
|
35575
|
+
const _hoisted_2$q = ["title"];
|
|
35547
35576
|
const _hoisted_3$i = ["href", "innerHTML"];
|
|
35548
35577
|
const _hoisted_4$a = ["title"];
|
|
35549
35578
|
const _hoisted_5$7 = {
|
|
@@ -35551,7 +35580,7 @@ and ensure you are accounting for this risk.
|
|
|
35551
35580
|
class: "lupa-search-results-product-title-text"
|
|
35552
35581
|
};
|
|
35553
35582
|
const _hoisted_6$3 = ["href"];
|
|
35554
|
-
const _sfc_main$
|
|
35583
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
35555
35584
|
__name: "SearchResultsProductTitle",
|
|
35556
35585
|
props: {
|
|
35557
35586
|
item: {},
|
|
@@ -35588,7 +35617,7 @@ and ensure you are accounting for this risk.
|
|
|
35588
35617
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35589
35618
|
title: sanitizedTitle.value,
|
|
35590
35619
|
innerHTML: sanitizedTitle.value
|
|
35591
|
-
}, null, 12, _hoisted_1$
|
|
35620
|
+
}, null, 12, _hoisted_1$z)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
35592
35621
|
key: 1,
|
|
35593
35622
|
class: "lupa-search-results-product-title",
|
|
35594
35623
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -35600,7 +35629,7 @@ and ensure you are accounting for this risk.
|
|
|
35600
35629
|
innerHTML: sanitizedTitle.value,
|
|
35601
35630
|
onClick: handleNavigation
|
|
35602
35631
|
}, null, 8, _hoisted_3$i)
|
|
35603
|
-
], 12, _hoisted_2$
|
|
35632
|
+
], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
|
|
35604
35633
|
key: 2,
|
|
35605
35634
|
class: "lupa-search-results-product-title",
|
|
35606
35635
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -35617,8 +35646,8 @@ and ensure you are accounting for this risk.
|
|
|
35617
35646
|
};
|
|
35618
35647
|
}
|
|
35619
35648
|
});
|
|
35620
|
-
const _hoisted_1$
|
|
35621
|
-
const _sfc_main$
|
|
35649
|
+
const _hoisted_1$y = ["innerHTML"];
|
|
35650
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
35622
35651
|
__name: "SearchResultsProductDescription",
|
|
35623
35652
|
props: {
|
|
35624
35653
|
item: {},
|
|
@@ -35645,7 +35674,7 @@ and ensure you are accounting for this risk.
|
|
|
35645
35674
|
class: "lupa-search-results-product-description",
|
|
35646
35675
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
35647
35676
|
innerHTML: sanitizedDescription.value
|
|
35648
|
-
}, null, 12, _hoisted_1$
|
|
35677
|
+
}, null, 12, _hoisted_1$y)) : (openBlock(), createElementBlock("div", {
|
|
35649
35678
|
key: 1,
|
|
35650
35679
|
class: "lupa-search-results-product-description",
|
|
35651
35680
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -35653,15 +35682,15 @@ and ensure you are accounting for this risk.
|
|
|
35653
35682
|
};
|
|
35654
35683
|
}
|
|
35655
35684
|
});
|
|
35656
|
-
const _hoisted_1$
|
|
35657
|
-
const _hoisted_2$
|
|
35685
|
+
const _hoisted_1$x = { id: "lupa-search-results-rating" };
|
|
35686
|
+
const _hoisted_2$p = { class: "lupa-ratings" };
|
|
35658
35687
|
const _hoisted_3$h = { class: "lupa-ratings-base" };
|
|
35659
35688
|
const _hoisted_4$9 = ["innerHTML"];
|
|
35660
35689
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
35661
35690
|
const _hoisted_6$2 = ["innerHTML"];
|
|
35662
35691
|
const _hoisted_7$1 = ["href"];
|
|
35663
35692
|
const STAR_COUNT = 5;
|
|
35664
|
-
const _sfc_main$
|
|
35693
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
35665
35694
|
__name: "SearchResultsProductRating",
|
|
35666
35695
|
props: {
|
|
35667
35696
|
item: {},
|
|
@@ -35698,8 +35727,8 @@ and ensure you are accounting for this risk.
|
|
|
35698
35727
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
35699
35728
|
});
|
|
35700
35729
|
return (_ctx, _cache) => {
|
|
35701
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35702
|
-
createBaseVNode("div", _hoisted_2$
|
|
35730
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
35731
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
35703
35732
|
createBaseVNode("div", _hoisted_3$h, [
|
|
35704
35733
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
35705
35734
|
return openBlock(), createElementBlock("div", {
|
|
@@ -35732,11 +35761,11 @@ and ensure you are accounting for this risk.
|
|
|
35732
35761
|
};
|
|
35733
35762
|
}
|
|
35734
35763
|
});
|
|
35735
|
-
const _hoisted_1$
|
|
35764
|
+
const _hoisted_1$w = {
|
|
35736
35765
|
class: "lupa-search-results-product-regular-price",
|
|
35737
35766
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
35738
35767
|
};
|
|
35739
|
-
const _sfc_main$
|
|
35768
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
35740
35769
|
__name: "SearchResultsProductRegularPrice",
|
|
35741
35770
|
props: {
|
|
35742
35771
|
item: {},
|
|
@@ -35758,11 +35787,11 @@ and ensure you are accounting for this risk.
|
|
|
35758
35787
|
);
|
|
35759
35788
|
});
|
|
35760
35789
|
return (_ctx, _cache) => {
|
|
35761
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35790
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, toDisplayString(price.value), 1);
|
|
35762
35791
|
};
|
|
35763
35792
|
}
|
|
35764
35793
|
});
|
|
35765
|
-
const _sfc_main$
|
|
35794
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
35766
35795
|
__name: "SearchResultsProductPrice",
|
|
35767
35796
|
props: {
|
|
35768
35797
|
item: {},
|
|
@@ -35796,12 +35825,12 @@ and ensure you are accounting for this risk.
|
|
|
35796
35825
|
};
|
|
35797
35826
|
}
|
|
35798
35827
|
});
|
|
35799
|
-
const _hoisted_1$
|
|
35800
|
-
const _hoisted_2$
|
|
35828
|
+
const _hoisted_1$v = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
35829
|
+
const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
|
|
35801
35830
|
const _hoisted_3$g = ["disabled"];
|
|
35802
35831
|
const _hoisted_4$8 = ["href"];
|
|
35803
35832
|
const _hoisted_5$5 = ["id", "disabled"];
|
|
35804
|
-
const _sfc_main$
|
|
35833
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
35805
35834
|
__name: "SearchResultsProductAddToCart",
|
|
35806
35835
|
props: {
|
|
35807
35836
|
item: {},
|
|
@@ -35853,8 +35882,8 @@ and ensure you are accounting for this risk.
|
|
|
35853
35882
|
loading.value = false;
|
|
35854
35883
|
});
|
|
35855
35884
|
return (_ctx, _cache) => {
|
|
35856
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35857
|
-
createBaseVNode("div", _hoisted_2$
|
|
35885
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
35886
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
35858
35887
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
35859
35888
|
key: 0,
|
|
35860
35889
|
class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
|
|
@@ -35876,12 +35905,12 @@ and ensure you are accounting for this risk.
|
|
|
35876
35905
|
};
|
|
35877
35906
|
}
|
|
35878
35907
|
});
|
|
35879
|
-
const _hoisted_1$
|
|
35880
|
-
const _hoisted_2$
|
|
35908
|
+
const _hoisted_1$u = ["innerHTML"];
|
|
35909
|
+
const _hoisted_2$n = { key: 0 };
|
|
35881
35910
|
const _hoisted_3$f = { key: 1 };
|
|
35882
35911
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
35883
35912
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
35884
|
-
const _sfc_main$
|
|
35913
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
35885
35914
|
__name: "SearchResultsProductCustom",
|
|
35886
35915
|
props: {
|
|
35887
35916
|
item: {},
|
|
@@ -35919,11 +35948,11 @@ and ensure you are accounting for this risk.
|
|
|
35919
35948
|
key: 0,
|
|
35920
35949
|
class: className.value,
|
|
35921
35950
|
innerHTML: text.value
|
|
35922
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
35951
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$u)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
35923
35952
|
key: 1,
|
|
35924
35953
|
class: className.value
|
|
35925
35954
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
35926
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
35955
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
35927
35956
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
35928
35957
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
35929
35958
|
]))
|
|
@@ -35931,8 +35960,8 @@ and ensure you are accounting for this risk.
|
|
|
35931
35960
|
};
|
|
35932
35961
|
}
|
|
35933
35962
|
});
|
|
35934
|
-
const _hoisted_1$
|
|
35935
|
-
const _sfc_main$
|
|
35963
|
+
const _hoisted_1$t = ["innerHTML"];
|
|
35964
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
35936
35965
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
35937
35966
|
props: {
|
|
35938
35967
|
item: {},
|
|
@@ -35964,15 +35993,15 @@ and ensure you are accounting for this risk.
|
|
|
35964
35993
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
35965
35994
|
class: className.value,
|
|
35966
35995
|
innerHTML: text.value
|
|
35967
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
35996
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$t);
|
|
35968
35997
|
};
|
|
35969
35998
|
}
|
|
35970
35999
|
});
|
|
35971
|
-
const _hoisted_1$
|
|
35972
|
-
const _hoisted_2$
|
|
36000
|
+
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
36001
|
+
const _hoisted_2$m = ["innerHTML"];
|
|
35973
36002
|
const _hoisted_3$e = { class: "lupa-ratings" };
|
|
35974
36003
|
const _hoisted_4$6 = ["href"];
|
|
35975
|
-
const _sfc_main$
|
|
36004
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
35976
36005
|
__name: "SearchResultsProductSingleStarRating",
|
|
35977
36006
|
props: {
|
|
35978
36007
|
item: {},
|
|
@@ -36000,11 +36029,11 @@ and ensure you are accounting for this risk.
|
|
|
36000
36029
|
return RATING_STAR_HTML;
|
|
36001
36030
|
});
|
|
36002
36031
|
return (_ctx, _cache) => {
|
|
36003
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36032
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
36004
36033
|
createBaseVNode("div", {
|
|
36005
36034
|
innerHTML: star.value,
|
|
36006
36035
|
class: "lupa-rating lupa-rating-highlighted"
|
|
36007
|
-
}, null, 8, _hoisted_2$
|
|
36036
|
+
}, null, 8, _hoisted_2$m),
|
|
36008
36037
|
createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
|
|
36009
36038
|
createBaseVNode("a", {
|
|
36010
36039
|
href: ratingLink.value,
|
|
@@ -36016,19 +36045,19 @@ and ensure you are accounting for this risk.
|
|
|
36016
36045
|
});
|
|
36017
36046
|
const __default__ = {
|
|
36018
36047
|
components: {
|
|
36019
|
-
SearchResultsProductImage: _sfc_main$
|
|
36020
|
-
SearchResultsProductTitle: _sfc_main$
|
|
36021
|
-
SearchResultsProductDescription: _sfc_main$
|
|
36022
|
-
SearchResultsProductRating: _sfc_main$
|
|
36023
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
36024
|
-
SearchResultsProductPrice: _sfc_main$
|
|
36025
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
36026
|
-
SearchResultsProductCustom: _sfc_main$
|
|
36027
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
36028
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
36029
|
-
}
|
|
36030
|
-
};
|
|
36031
|
-
const _sfc_main$
|
|
36048
|
+
SearchResultsProductImage: _sfc_main$E,
|
|
36049
|
+
SearchResultsProductTitle: _sfc_main$D,
|
|
36050
|
+
SearchResultsProductDescription: _sfc_main$C,
|
|
36051
|
+
SearchResultsProductRating: _sfc_main$B,
|
|
36052
|
+
SearchResultsProductRegularPrice: _sfc_main$A,
|
|
36053
|
+
SearchResultsProductPrice: _sfc_main$z,
|
|
36054
|
+
SearchResultsProductAddToCart: _sfc_main$y,
|
|
36055
|
+
SearchResultsProductCustom: _sfc_main$x,
|
|
36056
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$w,
|
|
36057
|
+
SearchResultsProductSingleStarRating: _sfc_main$v
|
|
36058
|
+
}
|
|
36059
|
+
};
|
|
36060
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36032
36061
|
__name: "SearchResultsProductCardElement",
|
|
36033
36062
|
props: {
|
|
36034
36063
|
item: {},
|
|
@@ -36106,13 +36135,13 @@ and ensure you are accounting for this risk.
|
|
|
36106
36135
|
};
|
|
36107
36136
|
}
|
|
36108
36137
|
}));
|
|
36109
|
-
const _hoisted_1$
|
|
36110
|
-
const _hoisted_2$
|
|
36138
|
+
const _hoisted_1$r = ["href"];
|
|
36139
|
+
const _hoisted_2$l = {
|
|
36111
36140
|
key: 0,
|
|
36112
36141
|
class: "lupa-out-of-stock"
|
|
36113
36142
|
};
|
|
36114
36143
|
const _hoisted_3$d = { class: "lupa-search-result-product-details-section" };
|
|
36115
|
-
const _sfc_main$
|
|
36144
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
36116
36145
|
__name: "SearchResultsProductCard",
|
|
36117
36146
|
props: {
|
|
36118
36147
|
product: {},
|
|
@@ -36288,7 +36317,7 @@ and ensure you are accounting for this risk.
|
|
|
36288
36317
|
default: withCtx(() => {
|
|
36289
36318
|
var _a25;
|
|
36290
36319
|
return [
|
|
36291
|
-
createVNode(_sfc_main$
|
|
36320
|
+
createVNode(_sfc_main$1a, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36292
36321
|
createBaseVNode("div", {
|
|
36293
36322
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36294
36323
|
}, [
|
|
@@ -36298,7 +36327,7 @@ and ensure you are accounting for this risk.
|
|
|
36298
36327
|
onClick: handleNavigation
|
|
36299
36328
|
}, [
|
|
36300
36329
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36301
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36330
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
36302
36331
|
class: "lupa-search-results-product-element",
|
|
36303
36332
|
item: _ctx.product,
|
|
36304
36333
|
element,
|
|
@@ -36309,16 +36338,16 @@ and ensure you are accounting for this risk.
|
|
|
36309
36338
|
onProductEvent: handleProductEvent
|
|
36310
36339
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36311
36340
|
}), 128)),
|
|
36312
|
-
createVNode(_sfc_main$
|
|
36341
|
+
createVNode(_sfc_main$1a, {
|
|
36313
36342
|
options: badgesOptions.value,
|
|
36314
36343
|
position: "image",
|
|
36315
36344
|
class: "lupa-image-badges"
|
|
36316
36345
|
}, null, 8, ["options"]),
|
|
36317
|
-
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
36318
|
-
], 8, _hoisted_1$
|
|
36346
|
+
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
36347
|
+
], 8, _hoisted_1$r),
|
|
36319
36348
|
createBaseVNode("div", _hoisted_3$d, [
|
|
36320
36349
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
36321
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36350
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
36322
36351
|
class: "lupa-search-results-product-element",
|
|
36323
36352
|
item: _ctx.product,
|
|
36324
36353
|
element,
|
|
@@ -36336,7 +36365,7 @@ and ensure you are accounting for this risk.
|
|
|
36336
36365
|
class: normalizeClass("lupa-element-group-" + group)
|
|
36337
36366
|
}, [
|
|
36338
36367
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
36339
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36368
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
36340
36369
|
class: "lupa-search-results-product-element",
|
|
36341
36370
|
item: _ctx.product,
|
|
36342
36371
|
element,
|
|
@@ -36357,11 +36386,11 @@ and ensure you are accounting for this risk.
|
|
|
36357
36386
|
};
|
|
36358
36387
|
}
|
|
36359
36388
|
});
|
|
36360
|
-
const _hoisted_1$
|
|
36389
|
+
const _hoisted_1$q = {
|
|
36361
36390
|
id: "lupa-search-results-similar-queries",
|
|
36362
36391
|
"data-cy": "lupa-search-results-similar-queries"
|
|
36363
36392
|
};
|
|
36364
|
-
const _hoisted_2$
|
|
36393
|
+
const _hoisted_2$k = { class: "lupa-similar-queries-label" };
|
|
36365
36394
|
const _hoisted_3$c = {
|
|
36366
36395
|
class: "lupa-similar-query-label",
|
|
36367
36396
|
"data-cy": "lupa-similar-query-label"
|
|
@@ -36373,7 +36402,7 @@ and ensure you are accounting for this risk.
|
|
|
36373
36402
|
class: "lupa-products",
|
|
36374
36403
|
"data-cy": "lupa-products"
|
|
36375
36404
|
};
|
|
36376
|
-
const _sfc_main$
|
|
36405
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
36377
36406
|
__name: "SearchResultsSimilarQueries",
|
|
36378
36407
|
props: {
|
|
36379
36408
|
labels: {},
|
|
@@ -36411,8 +36440,8 @@ and ensure you are accounting for this risk.
|
|
|
36411
36440
|
};
|
|
36412
36441
|
};
|
|
36413
36442
|
return (_ctx, _cache) => {
|
|
36414
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36415
|
-
createBaseVNode("div", _hoisted_2$
|
|
36443
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
36444
|
+
createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
36416
36445
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
36417
36446
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
36418
36447
|
createBaseVNode("div", _hoisted_3$c, [
|
|
@@ -36431,7 +36460,7 @@ and ensure you are accounting for this risk.
|
|
|
36431
36460
|
]),
|
|
36432
36461
|
createBaseVNode("div", _hoisted_7, [
|
|
36433
36462
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
36434
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36463
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
36435
36464
|
style: normalizeStyle(_ctx.columnSize),
|
|
36436
36465
|
key: getDocumentKey(index2, product),
|
|
36437
36466
|
product,
|
|
@@ -36446,15 +36475,15 @@ and ensure you are accounting for this risk.
|
|
|
36446
36475
|
};
|
|
36447
36476
|
}
|
|
36448
36477
|
});
|
|
36449
|
-
const _hoisted_1$
|
|
36478
|
+
const _hoisted_1$p = {
|
|
36450
36479
|
key: 0,
|
|
36451
36480
|
class: "lupa-results-additional-panel"
|
|
36452
36481
|
};
|
|
36453
|
-
const _hoisted_2$
|
|
36482
|
+
const _hoisted_2$j = {
|
|
36454
36483
|
class: "lupa-results-additional-panel-items",
|
|
36455
36484
|
"data-cy": "lupa-results-additional-panel-items"
|
|
36456
36485
|
};
|
|
36457
|
-
const _sfc_main$
|
|
36486
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
36458
36487
|
__name: "AdditionalPanel",
|
|
36459
36488
|
props: {
|
|
36460
36489
|
panel: {},
|
|
@@ -36527,10 +36556,10 @@ and ensure you are accounting for this risk.
|
|
|
36527
36556
|
handleQueryChange();
|
|
36528
36557
|
});
|
|
36529
36558
|
return (_ctx, _cache) => {
|
|
36530
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36531
|
-
createBaseVNode("div", _hoisted_2$
|
|
36559
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
36560
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
36532
36561
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
36533
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36562
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
36534
36563
|
key: index,
|
|
36535
36564
|
product: item,
|
|
36536
36565
|
options: _ctx.panel,
|
|
@@ -36548,11 +36577,11 @@ and ensure you are accounting for this risk.
|
|
|
36548
36577
|
};
|
|
36549
36578
|
}
|
|
36550
36579
|
});
|
|
36551
|
-
const _hoisted_1$
|
|
36580
|
+
const _hoisted_1$o = {
|
|
36552
36581
|
key: 0,
|
|
36553
36582
|
class: "lupa-results-additional-panels"
|
|
36554
36583
|
};
|
|
36555
|
-
const _sfc_main$
|
|
36584
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
36556
36585
|
__name: "AdditionalPanels",
|
|
36557
36586
|
props: {
|
|
36558
36587
|
options: {},
|
|
@@ -36569,9 +36598,9 @@ and ensure you are accounting for this risk.
|
|
|
36569
36598
|
return locationPanels.value.length > 0;
|
|
36570
36599
|
});
|
|
36571
36600
|
return (_ctx, _cache) => {
|
|
36572
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36601
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
36573
36602
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
36574
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36603
|
+
return openBlock(), createBlock(_sfc_main$r, {
|
|
36575
36604
|
key: panel.queryKey,
|
|
36576
36605
|
panel,
|
|
36577
36606
|
options: _ctx.sdkOptions
|
|
@@ -36588,29 +36617,29 @@ and ensure you are accounting for this risk.
|
|
|
36588
36617
|
}
|
|
36589
36618
|
return target2;
|
|
36590
36619
|
};
|
|
36591
|
-
const _sfc_main$
|
|
36592
|
-
const _hoisted_1$
|
|
36593
|
-
const _hoisted_2$
|
|
36620
|
+
const _sfc_main$p = {};
|
|
36621
|
+
const _hoisted_1$n = { class: "lupa-spinner-wrapper" };
|
|
36622
|
+
const _hoisted_2$i = { class: "lupa-spinner" };
|
|
36594
36623
|
function _sfc_render(_ctx, _cache) {
|
|
36595
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36596
|
-
createBaseVNode("div", _hoisted_2$
|
|
36624
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
36625
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
36597
36626
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
36598
36627
|
return createBaseVNode("div", { key: x });
|
|
36599
36628
|
}), 64))
|
|
36600
36629
|
])
|
|
36601
36630
|
]);
|
|
36602
36631
|
}
|
|
36603
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36604
|
-
const _hoisted_1$
|
|
36632
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render]]);
|
|
36633
|
+
const _hoisted_1$m = {
|
|
36605
36634
|
id: "lupa-search-results-similar-results",
|
|
36606
36635
|
"data-cy": "lupa-search-results-similar-results"
|
|
36607
36636
|
};
|
|
36608
|
-
const _hoisted_2$
|
|
36637
|
+
const _hoisted_2$h = { class: "lupa-similar-results-label" };
|
|
36609
36638
|
const _hoisted_3$b = {
|
|
36610
36639
|
class: "lupa-products",
|
|
36611
36640
|
"data-cy": "lupa-products"
|
|
36612
36641
|
};
|
|
36613
|
-
const _sfc_main$
|
|
36642
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
36614
36643
|
__name: "SearchResultsSimilarResults",
|
|
36615
36644
|
props: {
|
|
36616
36645
|
columnSize: {},
|
|
@@ -36631,11 +36660,11 @@ and ensure you are accounting for this risk.
|
|
|
36631
36660
|
};
|
|
36632
36661
|
});
|
|
36633
36662
|
return (_ctx, _cache) => {
|
|
36634
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36635
|
-
createBaseVNode("div", _hoisted_2$
|
|
36663
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
36664
|
+
createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
36636
36665
|
createBaseVNode("div", _hoisted_3$b, [
|
|
36637
36666
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
36638
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36667
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
36639
36668
|
style: normalizeStyle(_ctx.columnSize),
|
|
36640
36669
|
key: getDocumentKey(index, product),
|
|
36641
36670
|
product,
|
|
@@ -36756,15 +36785,15 @@ and ensure you are accounting for this risk.
|
|
|
36756
36785
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
36757
36786
|
}
|
|
36758
36787
|
});
|
|
36759
|
-
const _hoisted_1$
|
|
36760
|
-
const _hoisted_2$
|
|
36788
|
+
const _hoisted_1$l = { class: "lupa-related-query-item" };
|
|
36789
|
+
const _hoisted_2$g = { class: "lupa-related-query-image" };
|
|
36761
36790
|
const _hoisted_3$a = { class: "lupa-related-query-label" };
|
|
36762
36791
|
const _hoisted_4$4 = { class: "lupa-related-query-title" };
|
|
36763
36792
|
const _hoisted_5$2 = {
|
|
36764
36793
|
key: 0,
|
|
36765
36794
|
class: "lupa-related-query-count"
|
|
36766
36795
|
};
|
|
36767
|
-
const _sfc_main$
|
|
36796
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
36768
36797
|
__name: "RelatedQueryPanel",
|
|
36769
36798
|
props: {
|
|
36770
36799
|
query: {},
|
|
@@ -36860,9 +36889,9 @@ and ensure you are accounting for this risk.
|
|
|
36860
36889
|
});
|
|
36861
36890
|
return (_ctx, _cache) => {
|
|
36862
36891
|
var _a25;
|
|
36863
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36864
|
-
createBaseVNode("div", _hoisted_2$
|
|
36865
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
36892
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
36893
|
+
createBaseVNode("div", _hoisted_2$g, [
|
|
36894
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
36866
36895
|
key: 0,
|
|
36867
36896
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
36868
36897
|
"image-class": "lupa-related-query-image",
|
|
@@ -36878,16 +36907,16 @@ and ensure you are accounting for this risk.
|
|
|
36878
36907
|
};
|
|
36879
36908
|
}
|
|
36880
36909
|
});
|
|
36881
|
-
const _hoisted_1$
|
|
36910
|
+
const _hoisted_1$k = {
|
|
36882
36911
|
key: 0,
|
|
36883
36912
|
class: "lupa-related-queries"
|
|
36884
36913
|
};
|
|
36885
|
-
const _hoisted_2$
|
|
36914
|
+
const _hoisted_2$f = {
|
|
36886
36915
|
key: 0,
|
|
36887
36916
|
class: "lupa-related-queries-title"
|
|
36888
36917
|
};
|
|
36889
36918
|
const _hoisted_3$9 = ["onClick"];
|
|
36890
|
-
const _sfc_main$
|
|
36919
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
36891
36920
|
__name: "RelatedQueries",
|
|
36892
36921
|
props: {
|
|
36893
36922
|
options: {}
|
|
@@ -36981,8 +37010,8 @@ and ensure you are accounting for this risk.
|
|
|
36981
37010
|
};
|
|
36982
37011
|
return (_ctx, _cache) => {
|
|
36983
37012
|
var _a25, _b25, _c, _d;
|
|
36984
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36985
|
-
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
37013
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37014
|
+
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$f, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
36986
37015
|
createBaseVNode("ul", null, [
|
|
36987
37016
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
36988
37017
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
@@ -36992,7 +37021,7 @@ and ensure you are accounting for this risk.
|
|
|
36992
37021
|
createBaseVNode("a", {
|
|
36993
37022
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
36994
37023
|
}, [
|
|
36995
|
-
createVNode(_sfc_main$
|
|
37024
|
+
createVNode(_sfc_main$n, {
|
|
36996
37025
|
"source-key": query.key,
|
|
36997
37026
|
options: _ctx.options,
|
|
36998
37027
|
query: query.value,
|
|
@@ -37036,13 +37065,13 @@ and ensure you are accounting for this risk.
|
|
|
37036
37065
|
}
|
|
37037
37066
|
return null;
|
|
37038
37067
|
};
|
|
37039
|
-
const _hoisted_1$
|
|
37068
|
+
const _hoisted_1$j = {
|
|
37040
37069
|
key: 0,
|
|
37041
37070
|
class: "lupa-redirection-suggestion"
|
|
37042
37071
|
};
|
|
37043
|
-
const _hoisted_2$
|
|
37072
|
+
const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
|
|
37044
37073
|
const _hoisted_3$8 = ["href"];
|
|
37045
|
-
const _sfc_main$
|
|
37074
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37046
37075
|
__name: "RedirectionSuggestions",
|
|
37047
37076
|
props: {
|
|
37048
37077
|
options: {}
|
|
@@ -37065,19 +37094,19 @@ and ensure you are accounting for this risk.
|
|
|
37065
37094
|
)
|
|
37066
37095
|
);
|
|
37067
37096
|
return (_ctx, _cache) => {
|
|
37068
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37069
|
-
createBaseVNode("h4", _hoisted_2$
|
|
37097
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37098
|
+
createBaseVNode("h4", _hoisted_2$e, [
|
|
37070
37099
|
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
|
|
37071
37100
|
])
|
|
37072
37101
|
])) : createCommentVNode("", true);
|
|
37073
37102
|
};
|
|
37074
37103
|
}
|
|
37075
37104
|
});
|
|
37076
|
-
const _hoisted_1$
|
|
37105
|
+
const _hoisted_1$i = {
|
|
37077
37106
|
key: 0,
|
|
37078
37107
|
class: "lupa-refiners-loading-notice"
|
|
37079
37108
|
};
|
|
37080
|
-
const _sfc_main$
|
|
37109
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37081
37110
|
__name: "RefinersLoadingNotice",
|
|
37082
37111
|
props: {
|
|
37083
37112
|
labels: {}
|
|
@@ -37088,22 +37117,22 @@ and ensure you are accounting for this risk.
|
|
|
37088
37117
|
const props = __props;
|
|
37089
37118
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37090
37119
|
return (_ctx, _cache) => {
|
|
37091
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37120
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37092
37121
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37093
37122
|
createVNode(Spinner)
|
|
37094
37123
|
])) : createCommentVNode("", true);
|
|
37095
37124
|
};
|
|
37096
37125
|
}
|
|
37097
37126
|
});
|
|
37098
|
-
const _hoisted_1$
|
|
37099
|
-
const _hoisted_2$
|
|
37127
|
+
const _hoisted_1$h = { class: "lupa-related-query-item" };
|
|
37128
|
+
const _hoisted_2$d = { class: "lupa-related-query-image" };
|
|
37100
37129
|
const _hoisted_3$7 = { class: "lupa-related-query-label" };
|
|
37101
37130
|
const _hoisted_4$3 = { class: "lupa-related-query-title" };
|
|
37102
37131
|
const _hoisted_5$1 = {
|
|
37103
37132
|
key: 0,
|
|
37104
37133
|
class: "lupa-related-query-count"
|
|
37105
37134
|
};
|
|
37106
|
-
const _sfc_main$
|
|
37135
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
37107
37136
|
__name: "RelatedQueryPanelApi",
|
|
37108
37137
|
props: {
|
|
37109
37138
|
relatedQuery: {},
|
|
@@ -37135,9 +37164,9 @@ and ensure you are accounting for this risk.
|
|
|
37135
37164
|
});
|
|
37136
37165
|
return (_ctx, _cache) => {
|
|
37137
37166
|
var _a25;
|
|
37138
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37139
|
-
createBaseVNode("div", _hoisted_2$
|
|
37140
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37167
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
37168
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
37169
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
37141
37170
|
key: 0,
|
|
37142
37171
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37143
37172
|
"image-class": "lupa-related-query-image",
|
|
@@ -37153,16 +37182,16 @@ and ensure you are accounting for this risk.
|
|
|
37153
37182
|
};
|
|
37154
37183
|
}
|
|
37155
37184
|
});
|
|
37156
|
-
const _hoisted_1$
|
|
37185
|
+
const _hoisted_1$g = {
|
|
37157
37186
|
key: 0,
|
|
37158
37187
|
class: "lupa-related-queries"
|
|
37159
37188
|
};
|
|
37160
|
-
const _hoisted_2$
|
|
37189
|
+
const _hoisted_2$c = {
|
|
37161
37190
|
key: 0,
|
|
37162
37191
|
class: "lupa-related-queries-title"
|
|
37163
37192
|
};
|
|
37164
37193
|
const _hoisted_3$6 = ["onClick"];
|
|
37165
|
-
const _sfc_main$
|
|
37194
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37166
37195
|
__name: "RelatedQueriesApi",
|
|
37167
37196
|
props: {
|
|
37168
37197
|
options: {}
|
|
@@ -37214,8 +37243,8 @@ and ensure you are accounting for this risk.
|
|
|
37214
37243
|
};
|
|
37215
37244
|
return (_ctx, _cache) => {
|
|
37216
37245
|
var _a25, _b25, _c, _d;
|
|
37217
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37218
|
-
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
37246
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
37247
|
+
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
37219
37248
|
createBaseVNode("ul", null, [
|
|
37220
37249
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
37221
37250
|
return openBlock(), createElementBlock("li", {
|
|
@@ -37225,7 +37254,7 @@ and ensure you are accounting for this risk.
|
|
|
37225
37254
|
createBaseVNode("a", {
|
|
37226
37255
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37227
37256
|
}, [
|
|
37228
|
-
createVNode(_sfc_main$
|
|
37257
|
+
createVNode(_sfc_main$j, {
|
|
37229
37258
|
relatedQuery: query,
|
|
37230
37259
|
options: _ctx.options
|
|
37231
37260
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -37237,6 +37266,49 @@ and ensure you are accounting for this risk.
|
|
|
37237
37266
|
};
|
|
37238
37267
|
}
|
|
37239
37268
|
});
|
|
37269
|
+
const _hoisted_1$f = { key: 0 };
|
|
37270
|
+
const _hoisted_2$b = ["innerHTML"];
|
|
37271
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
37272
|
+
__name: "ZeroResults",
|
|
37273
|
+
props: {
|
|
37274
|
+
emptyResultsLabel: {},
|
|
37275
|
+
currentQueryText: {},
|
|
37276
|
+
hasSimilarQueries: { type: Boolean },
|
|
37277
|
+
zeroResults: {}
|
|
37278
|
+
},
|
|
37279
|
+
setup(__props) {
|
|
37280
|
+
const props = __props;
|
|
37281
|
+
const searchResultStore = useSearchResultStore();
|
|
37282
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
37283
|
+
const showDefaultZeroResultsTemplate = computed(() => {
|
|
37284
|
+
var _a25, _b25;
|
|
37285
|
+
return props.emptyResultsLabel && ((_a25 = props.zeroResults) == null ? void 0 : _a25.customHtml) === void 0 || props.hasSimilarQueries && !((_b25 = props.zeroResults) == null ? void 0 : _b25.showWithSimilarQueries);
|
|
37286
|
+
});
|
|
37287
|
+
const showCustomZeroResultsTemplate = computed(() => {
|
|
37288
|
+
var _a25, _b25;
|
|
37289
|
+
return ((_a25 = props.zeroResults) == null ? void 0 : _a25.customHtml) !== void 0 && (!props.hasSimilarQueries || ((_b25 = props.zeroResults) == null ? void 0 : _b25.showWithSimilarQueries));
|
|
37290
|
+
});
|
|
37291
|
+
const htmlTemplate = computed(() => {
|
|
37292
|
+
var _a25;
|
|
37293
|
+
if ((_a25 = props.zeroResults) == null ? void 0 : _a25.customHtml) {
|
|
37294
|
+
return props.zeroResults.customHtml(searchResult.value);
|
|
37295
|
+
}
|
|
37296
|
+
return "";
|
|
37297
|
+
});
|
|
37298
|
+
return (_ctx, _cache) => {
|
|
37299
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
37300
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
37301
|
+
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37302
|
+
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37303
|
+
])) : createCommentVNode("", true),
|
|
37304
|
+
showCustomZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", {
|
|
37305
|
+
key: 1,
|
|
37306
|
+
innerHTML: htmlTemplate.value
|
|
37307
|
+
}, null, 8, _hoisted_2$b)) : createCommentVNode("", true)
|
|
37308
|
+
], 64);
|
|
37309
|
+
};
|
|
37310
|
+
}
|
|
37311
|
+
});
|
|
37240
37312
|
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
37241
37313
|
const _hoisted_2$a = {
|
|
37242
37314
|
class: "lupa-products",
|
|
@@ -37377,41 +37449,41 @@ and ensure you are accounting for this risk.
|
|
|
37377
37449
|
emit2("filter");
|
|
37378
37450
|
};
|
|
37379
37451
|
return (_ctx, _cache) => {
|
|
37380
|
-
var _a25;
|
|
37452
|
+
var _a25, _b25, _c;
|
|
37381
37453
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
37382
37454
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
37383
37455
|
key: 0,
|
|
37384
37456
|
class: "lupa-loader"
|
|
37385
37457
|
})) : createCommentVNode("", true),
|
|
37386
|
-
createVNode(_sfc_main$
|
|
37458
|
+
createVNode(_sfc_main$l, {
|
|
37387
37459
|
options: _ctx.options.redirectionSuggestions
|
|
37388
37460
|
}, null, 8, ["options"]),
|
|
37389
|
-
createVNode(_sfc_main$
|
|
37461
|
+
createVNode(_sfc_main$q, {
|
|
37390
37462
|
options: _ctx.options,
|
|
37391
37463
|
location: "top",
|
|
37392
37464
|
sdkOptions: _ctx.options.options
|
|
37393
37465
|
}, null, 8, ["options", "sdkOptions"]),
|
|
37394
|
-
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$
|
|
37466
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
37395
37467
|
key: 1,
|
|
37396
37468
|
options: _ctx.options.relatedQueries
|
|
37397
37469
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37398
|
-
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$
|
|
37470
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$i, {
|
|
37399
37471
|
key: 2,
|
|
37400
37472
|
options: _ctx.options.relatedQueries
|
|
37401
37473
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37402
37474
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
37403
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
37475
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
37404
37476
|
key: 0,
|
|
37405
37477
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
37406
37478
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37407
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
37479
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
37408
37480
|
key: 1,
|
|
37409
37481
|
class: "lupa-toolbar-mobile",
|
|
37410
37482
|
options: _ctx.options,
|
|
37411
37483
|
"pagination-location": "top",
|
|
37412
37484
|
onFilter: filter
|
|
37413
37485
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37414
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
37486
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$_, {
|
|
37415
37487
|
key: 2,
|
|
37416
37488
|
class: normalizeClass(currentFiltersClass.value),
|
|
37417
37489
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -37420,12 +37492,12 @@ and ensure you are accounting for this risk.
|
|
|
37420
37492
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
37421
37493
|
], 64)) : createCommentVNode("", true),
|
|
37422
37494
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
37423
|
-
createVNode(_sfc_main$
|
|
37495
|
+
createVNode(_sfc_main$F, {
|
|
37424
37496
|
class: "lupa-toolbar-top",
|
|
37425
37497
|
options: _ctx.options,
|
|
37426
37498
|
"pagination-location": "top"
|
|
37427
37499
|
}, null, 8, ["options"]),
|
|
37428
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
37500
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$_, {
|
|
37429
37501
|
key: 0,
|
|
37430
37502
|
class: normalizeClass(currentFiltersClass.value),
|
|
37431
37503
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -37441,7 +37513,7 @@ and ensure you are accounting for this risk.
|
|
|
37441
37513
|
options: productCardOptions.value
|
|
37442
37514
|
});
|
|
37443
37515
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
37444
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37516
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
37445
37517
|
style: normalizeStyle(columnSize.value),
|
|
37446
37518
|
key: getProductKeyAction(index, product),
|
|
37447
37519
|
product,
|
|
@@ -37458,32 +37530,36 @@ and ensure you are accounting for this risk.
|
|
|
37458
37530
|
onClick: goToFirstPage
|
|
37459
37531
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
37460
37532
|
])) : createCommentVNode("", true),
|
|
37461
|
-
createVNode(_sfc_main$
|
|
37533
|
+
createVNode(_sfc_main$F, {
|
|
37462
37534
|
class: "lupa-toolbar-bottom",
|
|
37463
37535
|
options: _ctx.options,
|
|
37464
37536
|
"pagination-location": "bottom"
|
|
37465
37537
|
}, null, 8, ["options"]),
|
|
37466
|
-
createVNode(_sfc_main$
|
|
37538
|
+
createVNode(_sfc_main$q, {
|
|
37467
37539
|
options: _ctx.options,
|
|
37468
37540
|
location: "bottom",
|
|
37469
37541
|
sdkOptions: _ctx.options.options
|
|
37470
37542
|
}, null, 8, ["options", "sdkOptions"])
|
|
37471
37543
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
37472
|
-
|
|
37473
|
-
|
|
37544
|
+
createVNode(_sfc_main$h, {
|
|
37545
|
+
emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
|
|
37546
|
+
currentQueryText: unref(currentQueryText),
|
|
37547
|
+
hasSimilarQueries: hasSimilarQueries.value || hasSimilarResults.value,
|
|
37548
|
+
zeroResults: (_c = _ctx.options) == null ? void 0 : _c.zeroResults
|
|
37549
|
+
}, null, 8, ["emptyResultsLabel", "currentQueryText", "hasSimilarQueries", "zeroResults"])
|
|
37474
37550
|
])) : createCommentVNode("", true),
|
|
37475
|
-
createVNode(_sfc_main$
|
|
37551
|
+
createVNode(_sfc_main$k, {
|
|
37476
37552
|
labels: _ctx.options.labels
|
|
37477
37553
|
}, null, 8, ["labels"]),
|
|
37478
37554
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
37479
|
-
createVNode(_sfc_main$
|
|
37555
|
+
createVNode(_sfc_main$s, {
|
|
37480
37556
|
labels: similarQueriesLabels.value,
|
|
37481
37557
|
columnSize: columnSize.value,
|
|
37482
37558
|
productCardOptions: productCardOptions.value
|
|
37483
37559
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
37484
37560
|
])) : createCommentVNode("", true),
|
|
37485
37561
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
37486
|
-
createVNode(_sfc_main$
|
|
37562
|
+
createVNode(_sfc_main$o, {
|
|
37487
37563
|
labels: similarResultsLabels.value,
|
|
37488
37564
|
columnSize: columnSize.value,
|
|
37489
37565
|
productCardOptions: productCardOptions.value
|
|
@@ -37562,14 +37638,14 @@ and ensure you are accounting for this risk.
|
|
|
37562
37638
|
])) : createCommentVNode("", true),
|
|
37563
37639
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
37564
37640
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
37565
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37641
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
37566
37642
|
key: getCategoryKey(child),
|
|
37567
37643
|
item: child,
|
|
37568
37644
|
options: categoryOptions.value
|
|
37569
37645
|
}, null, 8, ["item", "options"]);
|
|
37570
37646
|
}), 128))
|
|
37571
37647
|
])) : createCommentVNode("", true),
|
|
37572
|
-
createVNode(_sfc_main$
|
|
37648
|
+
createVNode(_sfc_main$F, {
|
|
37573
37649
|
class: "lupa-toolbar-mobile",
|
|
37574
37650
|
"pagination-location": "top",
|
|
37575
37651
|
options: _ctx.options
|
|
@@ -37877,8 +37953,8 @@ and ensure you are accounting for this risk.
|
|
|
37877
37953
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
37878
37954
|
}, [
|
|
37879
37955
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
37880
|
-
createVNode(_sfc_main$
|
|
37881
|
-
createVNode(_sfc_main
|
|
37956
|
+
createVNode(_sfc_main$12, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
37957
|
+
createVNode(_sfc_main$10, {
|
|
37882
37958
|
"show-summary": true,
|
|
37883
37959
|
options: _ctx.options,
|
|
37884
37960
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -37888,12 +37964,12 @@ and ensure you are accounting for this risk.
|
|
|
37888
37964
|
key: 1,
|
|
37889
37965
|
options: _ctx.options
|
|
37890
37966
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37891
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
37967
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$O, {
|
|
37892
37968
|
key: 2,
|
|
37893
37969
|
options: _ctx.options.filters,
|
|
37894
37970
|
onFilter: handleParamsChange
|
|
37895
37971
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37896
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
37972
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$N, {
|
|
37897
37973
|
key: 3,
|
|
37898
37974
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
37899
37975
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -37902,7 +37978,7 @@ and ensure you are accounting for this risk.
|
|
|
37902
37978
|
id: "lupa-search-results",
|
|
37903
37979
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
37904
37980
|
}, [
|
|
37905
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
37981
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$P, {
|
|
37906
37982
|
key: 0,
|
|
37907
37983
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
37908
37984
|
ref_key: "searchResultsFilters",
|
|
@@ -37910,8 +37986,8 @@ and ensure you are accounting for this risk.
|
|
|
37910
37986
|
onFilter: handleParamsChange
|
|
37911
37987
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
37912
37988
|
createBaseVNode("div", _hoisted_2$8, [
|
|
37913
|
-
createVNode(_sfc_main$
|
|
37914
|
-
createVNode(_sfc_main
|
|
37989
|
+
createVNode(_sfc_main$12, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
37990
|
+
createVNode(_sfc_main$10, {
|
|
37915
37991
|
options: _ctx.options,
|
|
37916
37992
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
37917
37993
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -37927,8 +38003,8 @@ and ensure you are accounting for this risk.
|
|
|
37927
38003
|
}, 8, ["options", "ssr"])
|
|
37928
38004
|
])
|
|
37929
38005
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
37930
|
-
createVNode(_sfc_main$
|
|
37931
|
-
createVNode(_sfc_main
|
|
38006
|
+
createVNode(_sfc_main$12, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38007
|
+
createVNode(_sfc_main$10, {
|
|
37932
38008
|
options: _ctx.options,
|
|
37933
38009
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
37934
38010
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -37936,7 +38012,7 @@ and ensure you are accounting for this risk.
|
|
|
37936
38012
|
id: "lupa-search-results",
|
|
37937
38013
|
class: normalizeClass(indicatorClasses.value)
|
|
37938
38014
|
}, [
|
|
37939
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38015
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$P, {
|
|
37940
38016
|
key: 0,
|
|
37941
38017
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
37942
38018
|
ref_key: "searchResultsFilters",
|
|
@@ -38087,7 +38163,7 @@ and ensure you are accounting for this risk.
|
|
|
38087
38163
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38088
38164
|
}, [
|
|
38089
38165
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38090
|
-
createVNode(_sfc_main$
|
|
38166
|
+
createVNode(_sfc_main$13, {
|
|
38091
38167
|
options: fullSearchBoxOptions.value,
|
|
38092
38168
|
"is-search-container": true,
|
|
38093
38169
|
ref_key: "searchBox",
|
|
@@ -39611,6 +39687,10 @@ and ensure you are accounting for this risk.
|
|
|
39611
39687
|
const itemId = computed(() => {
|
|
39612
39688
|
return typeof props.options.itemId === "string" || typeof props.options.itemId === "number" || Array.isArray(props.options.itemId) ? props.options.itemId : extractValue(props.options.itemId);
|
|
39613
39689
|
});
|
|
39690
|
+
const wrapAround = computed(() => {
|
|
39691
|
+
var _a25, _b25;
|
|
39692
|
+
return (_b25 = (_a25 = carouselOptions.value) == null ? void 0 : _a25.wrapAround) != null ? _b25 : true;
|
|
39693
|
+
});
|
|
39614
39694
|
const loadLupaRecommendations = () => __async2(null, null, function* () {
|
|
39615
39695
|
var _a25, _b25;
|
|
39616
39696
|
recommendationsType.value = "recommendations_lupasearch";
|
|
@@ -39645,7 +39725,7 @@ and ensure you are accounting for this risk.
|
|
|
39645
39725
|
hasRecommendations.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
39646
39726
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_1$9, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
39647
39727
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
39648
|
-
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around":
|
|
39728
|
+
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": wrapAround.value }), {
|
|
39649
39729
|
addons: withCtx(() => [
|
|
39650
39730
|
createVNode(unref(Navigation))
|
|
39651
39731
|
]),
|
|
@@ -39655,7 +39735,7 @@ and ensure you are accounting for this risk.
|
|
|
39655
39735
|
key: getProductKeyAction(index, product)
|
|
39656
39736
|
}, {
|
|
39657
39737
|
default: withCtx(() => [
|
|
39658
|
-
createVNode(_sfc_main$
|
|
39738
|
+
createVNode(_sfc_main$t, {
|
|
39659
39739
|
product,
|
|
39660
39740
|
options: _ctx.options,
|
|
39661
39741
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -39668,9 +39748,9 @@ and ensure you are accounting for this risk.
|
|
|
39668
39748
|
}), 128))
|
|
39669
39749
|
]),
|
|
39670
39750
|
_: 1
|
|
39671
|
-
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
39751
|
+
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
39672
39752
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
39673
|
-
return openBlock(), createBlock(_sfc_main$
|
|
39753
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
39674
39754
|
style: normalizeStyle(columnSize.value),
|
|
39675
39755
|
key: getProductKeyAction(index, product),
|
|
39676
39756
|
product,
|
|
@@ -39916,7 +39996,7 @@ and ensure you are accounting for this risk.
|
|
|
39916
39996
|
createBaseVNode("a", {
|
|
39917
39997
|
href: getLink(product)
|
|
39918
39998
|
}, [
|
|
39919
|
-
createVNode(_sfc_main$
|
|
39999
|
+
createVNode(_sfc_main$E, {
|
|
39920
40000
|
item: product,
|
|
39921
40001
|
options: image.value
|
|
39922
40002
|
}, null, 8, ["item", "options"])
|
|
@@ -40081,7 +40161,7 @@ and ensure you are accounting for this risk.
|
|
|
40081
40161
|
return (_ctx, _cache) => {
|
|
40082
40162
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40083
40163
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40084
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40164
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
40085
40165
|
class: "lupa-chat-product-card",
|
|
40086
40166
|
key: getProductKeyAction(index, product),
|
|
40087
40167
|
product,
|
|
@@ -40277,7 +40357,7 @@ and ensure you are accounting for this risk.
|
|
|
40277
40357
|
key: 0,
|
|
40278
40358
|
class: "lupasearch-chat-content"
|
|
40279
40359
|
};
|
|
40280
|
-
const _sfc_main$
|
|
40360
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
40281
40361
|
__name: "ChatContainer",
|
|
40282
40362
|
props: {
|
|
40283
40363
|
options: {}
|
|
@@ -46301,7 +46381,7 @@ and ensure you are accounting for this risk.
|
|
|
46301
46381
|
};
|
|
46302
46382
|
__expose({ fetch: fetch2 });
|
|
46303
46383
|
return (_ctx, _cache) => {
|
|
46304
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
46384
|
+
return openBlock(), createBlock(unref(_sfc_main$13), {
|
|
46305
46385
|
ref_key: "searchBox",
|
|
46306
46386
|
ref: searchBox2,
|
|
46307
46387
|
options: fullSearchBoxOptions.value
|
|
@@ -46962,7 +47042,7 @@ and ensure you are accounting for this risk.
|
|
|
46962
47042
|
const instance = createVue(
|
|
46963
47043
|
options.displayOptions.containerSelector,
|
|
46964
47044
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
46965
|
-
_sfc_main$
|
|
47045
|
+
_sfc_main$1B,
|
|
46966
47046
|
{
|
|
46967
47047
|
options
|
|
46968
47048
|
}
|