@getlupa/client 1.24.3 → 1.25.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 +719 -487
- package/dist/lupaSearch.js +719 -487
- package/dist/lupaSearch.mjs +719 -487
- package/dist/lupaSearch.umd.js +719 -487
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -18855,17 +18855,27 @@ const getPageCount = (total, limit) => {
|
|
|
18855
18855
|
const isObject$1 = (value) => {
|
|
18856
18856
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
18857
18857
|
};
|
|
18858
|
-
const
|
|
18859
|
-
const value = params.get(key);
|
|
18858
|
+
const decodeParam = (value) => {
|
|
18860
18859
|
if (!value) {
|
|
18861
18860
|
return void 0;
|
|
18862
18861
|
}
|
|
18862
|
+
try {
|
|
18863
|
+
if (!/%[0-9A-Fa-f]{2}/.test(value)) {
|
|
18864
|
+
return value;
|
|
18865
|
+
}
|
|
18866
|
+
} catch (e2) {
|
|
18867
|
+
return value;
|
|
18868
|
+
}
|
|
18863
18869
|
try {
|
|
18864
18870
|
return decodeURIComponent(value);
|
|
18865
18871
|
} catch (e2) {
|
|
18866
|
-
return
|
|
18872
|
+
return value;
|
|
18867
18873
|
}
|
|
18868
18874
|
};
|
|
18875
|
+
const parseParam = (key, params) => {
|
|
18876
|
+
const value = params.get(key);
|
|
18877
|
+
return decodeParam(value != null ? value : void 0);
|
|
18878
|
+
};
|
|
18869
18879
|
const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
18870
18880
|
const params = /* @__PURE__ */ Object.create({});
|
|
18871
18881
|
const keys = reverseKeyValue({
|
|
@@ -18883,7 +18893,7 @@ const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
|
18883
18893
|
const parseFacetKey = (key, searchParams) => {
|
|
18884
18894
|
var _a25, _b25, _c, _d;
|
|
18885
18895
|
if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
|
|
18886
|
-
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) =>
|
|
18896
|
+
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
|
|
18887
18897
|
}
|
|
18888
18898
|
if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
|
|
18889
18899
|
const range2 = searchParams.get(key);
|
|
@@ -18899,7 +18909,7 @@ const parseFacetKey = (key, searchParams) => {
|
|
|
18899
18909
|
if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
|
|
18900
18910
|
return {
|
|
18901
18911
|
level: 0,
|
|
18902
|
-
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) =>
|
|
18912
|
+
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
|
|
18903
18913
|
};
|
|
18904
18914
|
}
|
|
18905
18915
|
return [];
|
|
@@ -18926,15 +18936,15 @@ const parseParams = (getQueryParamName, searchParams) => {
|
|
|
18926
18936
|
}, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
|
|
18927
18937
|
return r;
|
|
18928
18938
|
};
|
|
18929
|
-
const appendParam = (url, { name, value }
|
|
18939
|
+
const appendParam = (url, { name, value }) => {
|
|
18930
18940
|
if (Array.isArray(value)) {
|
|
18931
18941
|
appendArrayParams(url, { name, value });
|
|
18932
18942
|
} else {
|
|
18933
|
-
appendSingleParam(url, { name, value }
|
|
18943
|
+
appendSingleParam(url, { name, value });
|
|
18934
18944
|
}
|
|
18935
18945
|
};
|
|
18936
|
-
const appendSingleParam = (url, param
|
|
18937
|
-
const valueToAppend =
|
|
18946
|
+
const appendSingleParam = (url, param) => {
|
|
18947
|
+
const valueToAppend = param.value;
|
|
18938
18948
|
if (url.searchParams.has(param.name)) {
|
|
18939
18949
|
url.searchParams.set(param.name, valueToAppend);
|
|
18940
18950
|
} else {
|
|
@@ -18943,7 +18953,7 @@ const appendSingleParam = (url, param, encode2 = true) => {
|
|
|
18943
18953
|
};
|
|
18944
18954
|
const appendArrayParams = (url, param) => {
|
|
18945
18955
|
url.searchParams.delete(param.name);
|
|
18946
|
-
param.value.forEach((v) => url.searchParams.append(param.name,
|
|
18956
|
+
param.value.forEach((v) => url.searchParams.append(param.name, v));
|
|
18947
18957
|
};
|
|
18948
18958
|
const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
|
|
18949
18959
|
if (paramsToRemove === "all") {
|
|
@@ -19303,13 +19313,12 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19303
19313
|
const getPageUrlWithNewParams = ({
|
|
19304
19314
|
params: newParams,
|
|
19305
19315
|
paramsToRemove,
|
|
19306
|
-
encode: encode2 = true,
|
|
19307
19316
|
searchResultsLink: searchResultsLink2
|
|
19308
19317
|
}) => {
|
|
19309
19318
|
const url = getPageUrl(searchResultsLink2);
|
|
19310
19319
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19311
19320
|
removeParams(url, paramsToRemove);
|
|
19312
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19321
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19313
19322
|
return url.search;
|
|
19314
19323
|
};
|
|
19315
19324
|
const removeParameters = ({
|
|
@@ -19391,7 +19400,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19391
19400
|
const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
|
|
19392
19401
|
redirectToResultsPage(
|
|
19393
19402
|
searchResultsLink.value,
|
|
19394
|
-
|
|
19403
|
+
searchText,
|
|
19395
19404
|
optionsStore.getQueryParamName,
|
|
19396
19405
|
facet,
|
|
19397
19406
|
routing
|
|
@@ -19401,7 +19410,6 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19401
19410
|
const appendParams = ({
|
|
19402
19411
|
params: newParams,
|
|
19403
19412
|
paramsToRemove,
|
|
19404
|
-
encode: encode2 = true,
|
|
19405
19413
|
save = true,
|
|
19406
19414
|
searchResultsLink: searchResultsLink2
|
|
19407
19415
|
}) => {
|
|
@@ -19411,7 +19419,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19411
19419
|
const url = getPageUrl(searchResultsLink2);
|
|
19412
19420
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19413
19421
|
removeParams(url, paramsToRemove);
|
|
19414
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19422
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19415
19423
|
navigate(url);
|
|
19416
19424
|
if (!save) {
|
|
19417
19425
|
return;
|
|
@@ -19708,7 +19716,7 @@ const getApiUrl = (environment, customBaseUrl) => {
|
|
|
19708
19716
|
}
|
|
19709
19717
|
return Env[environment] || Env["production"];
|
|
19710
19718
|
};
|
|
19711
|
-
const _sfc_main$
|
|
19719
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
19712
19720
|
__name: "VoiceSearchProgressCircle",
|
|
19713
19721
|
props: {
|
|
19714
19722
|
isRecording: { type: Boolean },
|
|
@@ -19921,15 +19929,15 @@ function useVoiceRecorder(options) {
|
|
|
19921
19929
|
closeSocket
|
|
19922
19930
|
};
|
|
19923
19931
|
}
|
|
19924
|
-
const _hoisted_1$
|
|
19932
|
+
const _hoisted_1$1q = {
|
|
19925
19933
|
key: 0,
|
|
19926
19934
|
class: "lupa-dialog-overlay"
|
|
19927
19935
|
};
|
|
19928
|
-
const _hoisted_2$
|
|
19936
|
+
const _hoisted_2$_ = { class: "lupa-dialog-content" };
|
|
19929
19937
|
const _hoisted_3$G = { class: "lupa-listening-text" };
|
|
19930
19938
|
const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
|
|
19931
19939
|
const _hoisted_5$l = ["aria-label"];
|
|
19932
|
-
const _sfc_main$
|
|
19940
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
19933
19941
|
__name: "VoiceSearchDialog",
|
|
19934
19942
|
props: {
|
|
19935
19943
|
isOpen: { type: Boolean },
|
|
@@ -20034,12 +20042,12 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20034
20042
|
return (_ctx, _cache) => {
|
|
20035
20043
|
var _a25, _b25;
|
|
20036
20044
|
return openBlock(), createElementBlock("div", null, [
|
|
20037
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20045
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
|
|
20038
20046
|
createBaseVNode("button", {
|
|
20039
20047
|
class: "lupa-dialog-box-close-button",
|
|
20040
20048
|
onClick: _cache[0] || (_cache[0] = () => emit2("close"))
|
|
20041
20049
|
}),
|
|
20042
|
-
createBaseVNode("div", _hoisted_2$
|
|
20050
|
+
createBaseVNode("div", _hoisted_2$_, [
|
|
20043
20051
|
createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
|
|
20044
20052
|
createBaseVNode("div", _hoisted_4$v, [
|
|
20045
20053
|
createBaseVNode("button", {
|
|
@@ -20048,7 +20056,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20048
20056
|
"aria-controls": "voice-search-microphone",
|
|
20049
20057
|
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
20050
20058
|
}, null, 10, _hoisted_5$l),
|
|
20051
|
-
createVNode(_sfc_main$
|
|
20059
|
+
createVNode(_sfc_main$1K, {
|
|
20052
20060
|
ref_key: "voiceSearchProgressBar",
|
|
20053
20061
|
ref: voiceSearchProgressBar,
|
|
20054
20062
|
class: "lupa-progress-circle",
|
|
@@ -20063,8 +20071,8 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20063
20071
|
};
|
|
20064
20072
|
}
|
|
20065
20073
|
});
|
|
20066
|
-
const _hoisted_1$
|
|
20067
|
-
const _hoisted_2$
|
|
20074
|
+
const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
|
|
20075
|
+
const _hoisted_2$Z = { id: "lupa-search-box-input" };
|
|
20068
20076
|
const _hoisted_3$F = ["value"];
|
|
20069
20077
|
const _hoisted_4$u = ["aria-label", "placeholder"];
|
|
20070
20078
|
const _hoisted_5$k = {
|
|
@@ -20073,7 +20081,7 @@ const _hoisted_5$k = {
|
|
|
20073
20081
|
};
|
|
20074
20082
|
const _hoisted_6$7 = { key: 2 };
|
|
20075
20083
|
const _hoisted_7$5 = ["aria-label"];
|
|
20076
|
-
const _sfc_main$
|
|
20084
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
20077
20085
|
__name: "SearchBoxInput",
|
|
20078
20086
|
props: {
|
|
20079
20087
|
options: {},
|
|
@@ -20209,7 +20217,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20209
20217
|
};
|
|
20210
20218
|
__expose({ focus });
|
|
20211
20219
|
return (_ctx, _cache) => {
|
|
20212
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20220
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
20213
20221
|
_ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
|
|
20214
20222
|
key: 0,
|
|
20215
20223
|
class: normalizeClass(["lupa-input-clear", [
|
|
@@ -20218,7 +20226,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20218
20226
|
]]),
|
|
20219
20227
|
onClick: clear
|
|
20220
20228
|
}, null, 2)) : createCommentVNode("", true),
|
|
20221
|
-
createBaseVNode("div", _hoisted_2$
|
|
20229
|
+
createBaseVNode("div", _hoisted_2$Z, [
|
|
20222
20230
|
createBaseVNode("input", {
|
|
20223
20231
|
class: "lupa-hint",
|
|
20224
20232
|
"aria-hidden": "true",
|
|
@@ -20272,7 +20280,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20272
20280
|
"aria-label": voiceSearchAriaLabel.value
|
|
20273
20281
|
}, null, 8, _hoisted_7$5)
|
|
20274
20282
|
])) : createCommentVNode("", true),
|
|
20275
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
20283
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
|
|
20276
20284
|
key: 3,
|
|
20277
20285
|
ref_key: "voiceDialogOverlay",
|
|
20278
20286
|
ref: voiceDialogOverlay,
|
|
@@ -20286,7 +20294,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20286
20294
|
};
|
|
20287
20295
|
}
|
|
20288
20296
|
});
|
|
20289
|
-
const _sfc_main$
|
|
20297
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
20290
20298
|
__name: "SearchBoxMoreResults",
|
|
20291
20299
|
props: {
|
|
20292
20300
|
labels: {},
|
|
@@ -20324,9 +20332,9 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
20324
20332
|
};
|
|
20325
20333
|
}
|
|
20326
20334
|
});
|
|
20327
|
-
const _hoisted_1$
|
|
20328
|
-
const _hoisted_2$
|
|
20329
|
-
const _sfc_main$
|
|
20335
|
+
const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
|
|
20336
|
+
const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
|
|
20337
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
20330
20338
|
__name: "SearchBoxHistoryItem",
|
|
20331
20339
|
props: {
|
|
20332
20340
|
item: {},
|
|
@@ -20343,8 +20351,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
20343
20351
|
emit2("click", { query: props.item });
|
|
20344
20352
|
};
|
|
20345
20353
|
return (_ctx, _cache) => {
|
|
20346
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20347
|
-
createBaseVNode("div", _hoisted_2$
|
|
20354
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
20355
|
+
createBaseVNode("div", _hoisted_2$Y, [
|
|
20348
20356
|
createBaseVNode("div", {
|
|
20349
20357
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
20350
20358
|
onClick: click2
|
|
@@ -20358,11 +20366,11 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
20358
20366
|
};
|
|
20359
20367
|
}
|
|
20360
20368
|
});
|
|
20361
|
-
const _hoisted_1$
|
|
20369
|
+
const _hoisted_1$1n = {
|
|
20362
20370
|
key: 0,
|
|
20363
20371
|
class: "lupa-search-box-history-panel"
|
|
20364
20372
|
};
|
|
20365
|
-
const _sfc_main$
|
|
20373
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
20366
20374
|
__name: "SearchBoxHistoryPanel",
|
|
20367
20375
|
props: {
|
|
20368
20376
|
options: {}
|
|
@@ -20413,9 +20421,9 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
20413
20421
|
}
|
|
20414
20422
|
};
|
|
20415
20423
|
return (_ctx, _cache) => {
|
|
20416
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20424
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
20417
20425
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
20418
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20426
|
+
return openBlock(), createBlock(_sfc_main$1G, {
|
|
20419
20427
|
key: item,
|
|
20420
20428
|
item,
|
|
20421
20429
|
highlighted: index === highlightIndex.value,
|
|
@@ -20431,12 +20439,12 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
20431
20439
|
};
|
|
20432
20440
|
}
|
|
20433
20441
|
});
|
|
20434
|
-
const _hoisted_1$
|
|
20435
|
-
const _hoisted_2$
|
|
20442
|
+
const _hoisted_1$1m = ["innerHTML"];
|
|
20443
|
+
const _hoisted_2$X = {
|
|
20436
20444
|
key: 1,
|
|
20437
20445
|
class: "lupa-search-box-no-results"
|
|
20438
20446
|
};
|
|
20439
|
-
const _sfc_main$
|
|
20447
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
20440
20448
|
__name: "SearchBoxNoResults",
|
|
20441
20449
|
props: {
|
|
20442
20450
|
options: {}
|
|
@@ -20455,7 +20463,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
20455
20463
|
key: 0,
|
|
20456
20464
|
class: "lupa-search-box-no-results",
|
|
20457
20465
|
innerHTML: customHtml.value
|
|
20458
|
-
}, null, 8, _hoisted_1$
|
|
20466
|
+
}, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
|
|
20459
20467
|
};
|
|
20460
20468
|
}
|
|
20461
20469
|
});
|
|
@@ -20487,8 +20495,8 @@ const generateGridTemplate = (elements) => {
|
|
|
20487
20495
|
}
|
|
20488
20496
|
return gridTemplate.join(" ");
|
|
20489
20497
|
};
|
|
20490
|
-
const _hoisted_1$
|
|
20491
|
-
const _hoisted_2$
|
|
20498
|
+
const _hoisted_1$1l = ["innerHTML"];
|
|
20499
|
+
const _hoisted_2$W = {
|
|
20492
20500
|
key: 1,
|
|
20493
20501
|
"data-cy": "lupa-suggestion-value",
|
|
20494
20502
|
class: "lupa-suggestion-value"
|
|
@@ -20506,7 +20514,7 @@ const _hoisted_5$j = {
|
|
|
20506
20514
|
class: "lupa-suggestion-facet-value",
|
|
20507
20515
|
"data-cy": "lupa-suggestion-facet-value"
|
|
20508
20516
|
};
|
|
20509
|
-
const _sfc_main$
|
|
20517
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
20510
20518
|
__name: "SearchBoxSuggestion",
|
|
20511
20519
|
props: {
|
|
20512
20520
|
suggestion: {},
|
|
@@ -20543,7 +20551,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
20543
20551
|
class: "lupa-suggestion-value",
|
|
20544
20552
|
"data-cy": "lupa-suggestion-value",
|
|
20545
20553
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20546
|
-
}, null, 8, _hoisted_1$
|
|
20554
|
+
}, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20547
20555
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
20548
20556
|
createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
20549
20557
|
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -20552,11 +20560,11 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
20552
20560
|
};
|
|
20553
20561
|
}
|
|
20554
20562
|
});
|
|
20555
|
-
const _hoisted_1$
|
|
20563
|
+
const _hoisted_1$1k = {
|
|
20556
20564
|
id: "lupa-search-box-suggestions",
|
|
20557
20565
|
"data-cy": "lupa-search-box-suggestions"
|
|
20558
20566
|
};
|
|
20559
|
-
const _sfc_main$
|
|
20567
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
20560
20568
|
__name: "SearchBoxSuggestions",
|
|
20561
20569
|
props: {
|
|
20562
20570
|
items: {},
|
|
@@ -20623,9 +20631,9 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
20623
20631
|
});
|
|
20624
20632
|
});
|
|
20625
20633
|
return (_ctx, _cache) => {
|
|
20626
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20634
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
20627
20635
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
20628
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20636
|
+
return openBlock(), createBlock(_sfc_main$1D, {
|
|
20629
20637
|
key: getSuggestionKey(item),
|
|
20630
20638
|
class: normalizeClass([
|
|
20631
20639
|
"lupa-suggestion",
|
|
@@ -20657,7 +20665,7 @@ const debounce = (func, timeout) => {
|
|
|
20657
20665
|
}, timeout);
|
|
20658
20666
|
};
|
|
20659
20667
|
};
|
|
20660
|
-
const _sfc_main$
|
|
20668
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
20661
20669
|
__name: "SearchBoxSuggestionsWrapper",
|
|
20662
20670
|
props: {
|
|
20663
20671
|
panel: {},
|
|
@@ -20700,7 +20708,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
20700
20708
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
20701
20709
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
20702
20710
|
return (_ctx, _cache) => {
|
|
20703
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20711
|
+
return openBlock(), createBlock(_sfc_main$1C, {
|
|
20704
20712
|
items: searchResult.value,
|
|
20705
20713
|
highlight: _ctx.panel.highlight,
|
|
20706
20714
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -29985,9 +29993,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
29985
29993
|
targetImage.src = placeholder;
|
|
29986
29994
|
}
|
|
29987
29995
|
};
|
|
29988
|
-
const _hoisted_1$
|
|
29989
|
-
const _hoisted_2$
|
|
29990
|
-
const _sfc_main$
|
|
29996
|
+
const _hoisted_1$1j = ["src"];
|
|
29997
|
+
const _hoisted_2$V = ["src"];
|
|
29998
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
29991
29999
|
__name: "ProductImage",
|
|
29992
30000
|
props: {
|
|
29993
30001
|
item: {},
|
|
@@ -30129,7 +30137,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
30129
30137
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
30130
30138
|
onError: replaceWithPlaceholder,
|
|
30131
30139
|
key: finalUrl.value
|
|
30132
|
-
}), null, 16, _hoisted_1$
|
|
30140
|
+
}), null, 16, _hoisted_1$1j))
|
|
30133
30141
|
]),
|
|
30134
30142
|
_: 1
|
|
30135
30143
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -30137,12 +30145,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
30137
30145
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
30138
30146
|
style: styleOverride.value,
|
|
30139
30147
|
src: finalMainImageUrl.value
|
|
30140
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
30148
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
|
|
30141
30149
|
], 38);
|
|
30142
30150
|
};
|
|
30143
30151
|
}
|
|
30144
30152
|
});
|
|
30145
|
-
const _sfc_main$
|
|
30153
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
30146
30154
|
__name: "SearchBoxProductImage",
|
|
30147
30155
|
props: {
|
|
30148
30156
|
item: {},
|
|
@@ -30150,7 +30158,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
30150
30158
|
},
|
|
30151
30159
|
setup(__props) {
|
|
30152
30160
|
return (_ctx, _cache) => {
|
|
30153
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30161
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
30154
30162
|
item: _ctx.item,
|
|
30155
30163
|
options: _ctx.options,
|
|
30156
30164
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -30159,12 +30167,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
30159
30167
|
};
|
|
30160
30168
|
}
|
|
30161
30169
|
});
|
|
30162
|
-
const _hoisted_1$
|
|
30163
|
-
const _hoisted_2$
|
|
30170
|
+
const _hoisted_1$1i = ["innerHTML"];
|
|
30171
|
+
const _hoisted_2$U = {
|
|
30164
30172
|
key: 1,
|
|
30165
30173
|
class: "lupa-search-box-product-title"
|
|
30166
30174
|
};
|
|
30167
|
-
const _sfc_main$
|
|
30175
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
30168
30176
|
__name: "SearchBoxProductTitle",
|
|
30169
30177
|
props: {
|
|
30170
30178
|
item: {},
|
|
@@ -30187,18 +30195,18 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
30187
30195
|
key: 0,
|
|
30188
30196
|
class: "lupa-search-box-product-title",
|
|
30189
30197
|
innerHTML: sanitizedTitle.value
|
|
30190
|
-
}, null, 8, _hoisted_1$
|
|
30198
|
+
}, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
30191
30199
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
30192
30200
|
]));
|
|
30193
30201
|
};
|
|
30194
30202
|
}
|
|
30195
30203
|
});
|
|
30196
|
-
const _hoisted_1$
|
|
30197
|
-
const _hoisted_2$
|
|
30204
|
+
const _hoisted_1$1h = ["innerHTML"];
|
|
30205
|
+
const _hoisted_2$T = {
|
|
30198
30206
|
key: 1,
|
|
30199
30207
|
class: "lupa-search-box-product-description"
|
|
30200
30208
|
};
|
|
30201
|
-
const _sfc_main$
|
|
30209
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
30202
30210
|
__name: "SearchBoxProductDescription",
|
|
30203
30211
|
props: {
|
|
30204
30212
|
item: {},
|
|
@@ -30221,12 +30229,12 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
30221
30229
|
key: 0,
|
|
30222
30230
|
class: "lupa-search-box-product-description",
|
|
30223
30231
|
innerHTML: sanitizedDescription.value
|
|
30224
|
-
}, null, 8, _hoisted_1$
|
|
30232
|
+
}, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
|
|
30225
30233
|
};
|
|
30226
30234
|
}
|
|
30227
30235
|
});
|
|
30228
|
-
const _hoisted_1$
|
|
30229
|
-
const _sfc_main$
|
|
30236
|
+
const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
|
|
30237
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
30230
30238
|
__name: "SearchBoxProductPrice",
|
|
30231
30239
|
props: {
|
|
30232
30240
|
item: {},
|
|
@@ -30248,13 +30256,13 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
30248
30256
|
);
|
|
30249
30257
|
});
|
|
30250
30258
|
return (_ctx, _cache) => {
|
|
30251
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30259
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
30252
30260
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
30253
30261
|
]);
|
|
30254
30262
|
};
|
|
30255
30263
|
}
|
|
30256
30264
|
});
|
|
30257
|
-
const _sfc_main$
|
|
30265
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
30258
30266
|
__name: "SearchBoxProductRegularPrice",
|
|
30259
30267
|
props: {
|
|
30260
30268
|
item: {},
|
|
@@ -30285,12 +30293,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
30285
30293
|
};
|
|
30286
30294
|
}
|
|
30287
30295
|
});
|
|
30288
|
-
const _hoisted_1$
|
|
30289
|
-
const _hoisted_2$
|
|
30296
|
+
const _hoisted_1$1f = ["innerHTML"];
|
|
30297
|
+
const _hoisted_2$S = { key: 0 };
|
|
30290
30298
|
const _hoisted_3$D = { key: 1 };
|
|
30291
30299
|
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
30292
30300
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
30293
|
-
const _sfc_main$
|
|
30301
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
30294
30302
|
__name: "SearchBoxProductCustom",
|
|
30295
30303
|
props: {
|
|
30296
30304
|
item: {},
|
|
@@ -30316,11 +30324,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
30316
30324
|
key: 0,
|
|
30317
30325
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
30318
30326
|
innerHTML: text.value
|
|
30319
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30327
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30320
30328
|
key: 1,
|
|
30321
30329
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30322
30330
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30323
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
30331
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
30324
30332
|
createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
30325
30333
|
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
30326
30334
|
]))
|
|
@@ -30328,8 +30336,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
30328
30336
|
};
|
|
30329
30337
|
}
|
|
30330
30338
|
});
|
|
30331
|
-
const _hoisted_1$
|
|
30332
|
-
const _sfc_main$
|
|
30339
|
+
const _hoisted_1$1e = ["innerHTML"];
|
|
30340
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
30333
30341
|
__name: "SearchBoxProductCustomHtml",
|
|
30334
30342
|
props: {
|
|
30335
30343
|
item: {},
|
|
@@ -30354,7 +30362,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
30354
30362
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30355
30363
|
class: className.value,
|
|
30356
30364
|
innerHTML: text.value
|
|
30357
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30365
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1e);
|
|
30358
30366
|
};
|
|
30359
30367
|
}
|
|
30360
30368
|
});
|
|
@@ -30693,6 +30701,7 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30693
30701
|
relatedQueriesApiEnabled,
|
|
30694
30702
|
lastResultsSource,
|
|
30695
30703
|
relatedQueryFacetKeys,
|
|
30704
|
+
loadingRelatedQueries,
|
|
30696
30705
|
setSidebarState,
|
|
30697
30706
|
queryFacet,
|
|
30698
30707
|
setLastRequestId,
|
|
@@ -30709,12 +30718,12 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30709
30718
|
setRelatedQueriesApiEnabled
|
|
30710
30719
|
};
|
|
30711
30720
|
});
|
|
30712
|
-
const _hoisted_1$
|
|
30713
|
-
const _hoisted_2$
|
|
30721
|
+
const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30722
|
+
const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
|
|
30714
30723
|
const _hoisted_3$C = ["disabled"];
|
|
30715
30724
|
const _hoisted_4$r = ["href"];
|
|
30716
30725
|
const _hoisted_5$h = ["disabled"];
|
|
30717
|
-
const _sfc_main$
|
|
30726
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
30718
30727
|
__name: "SearchBoxProductAddToCart",
|
|
30719
30728
|
props: {
|
|
30720
30729
|
item: {},
|
|
@@ -30760,8 +30769,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
30760
30769
|
return Boolean(props.link && props.options.link);
|
|
30761
30770
|
});
|
|
30762
30771
|
return (_ctx, _cache) => {
|
|
30763
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30764
|
-
createBaseVNode("div", _hoisted_2$
|
|
30772
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
30773
|
+
createBaseVNode("div", _hoisted_2$R, [
|
|
30765
30774
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30766
30775
|
key: 0,
|
|
30767
30776
|
class: addToCartButtonClass.value,
|
|
@@ -30782,23 +30791,23 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
30782
30791
|
};
|
|
30783
30792
|
}
|
|
30784
30793
|
});
|
|
30785
|
-
const _hoisted_1$
|
|
30794
|
+
const _hoisted_1$1c = {
|
|
30786
30795
|
key: 1,
|
|
30787
30796
|
class: "lupa-search-box-element-badge-wrapper"
|
|
30788
30797
|
};
|
|
30789
30798
|
const __default__$4 = {
|
|
30790
30799
|
components: {
|
|
30791
|
-
SearchBoxProductImage: _sfc_main$
|
|
30792
|
-
SearchBoxProductTitle: _sfc_main$
|
|
30793
|
-
SearchBoxProductDescription: _sfc_main$
|
|
30794
|
-
SearchBoxProductPrice: _sfc_main$
|
|
30795
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
30796
|
-
SearchBoxProductCustom: _sfc_main$
|
|
30797
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
30798
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
30800
|
+
SearchBoxProductImage: _sfc_main$1z,
|
|
30801
|
+
SearchBoxProductTitle: _sfc_main$1y,
|
|
30802
|
+
SearchBoxProductDescription: _sfc_main$1x,
|
|
30803
|
+
SearchBoxProductPrice: _sfc_main$1w,
|
|
30804
|
+
SearchBoxProductRegularPrice: _sfc_main$1v,
|
|
30805
|
+
SearchBoxProductCustom: _sfc_main$1u,
|
|
30806
|
+
SearchBoxProductCustomHtml: _sfc_main$1t,
|
|
30807
|
+
SearchBoxProductAddToCart: _sfc_main$1s
|
|
30799
30808
|
}
|
|
30800
30809
|
};
|
|
30801
|
-
const _sfc_main$
|
|
30810
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
30802
30811
|
__name: "SearchBoxProductElement",
|
|
30803
30812
|
props: {
|
|
30804
30813
|
item: {},
|
|
@@ -30870,7 +30879,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30870
30879
|
"dynamic-attributes": dynamicAttributes.value,
|
|
30871
30880
|
link: _ctx.link
|
|
30872
30881
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
30873
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30882
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
30874
30883
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
30875
30884
|
key: 0,
|
|
30876
30885
|
item: enhancedItem.value,
|
|
@@ -30885,14 +30894,14 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30885
30894
|
};
|
|
30886
30895
|
}
|
|
30887
30896
|
}));
|
|
30888
|
-
const _hoisted_1$
|
|
30889
|
-
const _hoisted_2$
|
|
30897
|
+
const _hoisted_1$1b = { class: "lupa-badge-title" };
|
|
30898
|
+
const _hoisted_2$Q = ["src"];
|
|
30890
30899
|
const _hoisted_3$B = { key: 1 };
|
|
30891
30900
|
const _hoisted_4$q = {
|
|
30892
30901
|
key: 0,
|
|
30893
30902
|
class: "lupa-badge-full-text"
|
|
30894
30903
|
};
|
|
30895
|
-
const _sfc_main$
|
|
30904
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
30896
30905
|
__name: "SearchResultGeneratedBadge",
|
|
30897
30906
|
props: {
|
|
30898
30907
|
options: {},
|
|
@@ -30925,11 +30934,11 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
30925
30934
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
30926
30935
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
30927
30936
|
}, [
|
|
30928
|
-
createBaseVNode("span", _hoisted_1$
|
|
30937
|
+
createBaseVNode("span", _hoisted_1$1b, [
|
|
30929
30938
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
30930
30939
|
key: 0,
|
|
30931
30940
|
src: image.value
|
|
30932
|
-
}, null, 8, _hoisted_2$
|
|
30941
|
+
}, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
|
|
30933
30942
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30934
30943
|
]),
|
|
30935
30944
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -30937,8 +30946,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
30937
30946
|
};
|
|
30938
30947
|
}
|
|
30939
30948
|
});
|
|
30940
|
-
const _hoisted_1$
|
|
30941
|
-
const _sfc_main$
|
|
30949
|
+
const _hoisted_1$1a = { class: "lupa-generated-badges" };
|
|
30950
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
30942
30951
|
__name: "SearchResultGeneratedBadges",
|
|
30943
30952
|
props: {
|
|
30944
30953
|
options: {}
|
|
@@ -30964,9 +30973,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30964
30973
|
})).filter((b) => Boolean(b.id));
|
|
30965
30974
|
});
|
|
30966
30975
|
return (_ctx, _cache) => {
|
|
30967
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30976
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
30968
30977
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
30969
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30978
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
30970
30979
|
key: badge.id,
|
|
30971
30980
|
badge,
|
|
30972
30981
|
options: _ctx.options
|
|
@@ -30976,8 +30985,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30976
30985
|
};
|
|
30977
30986
|
}
|
|
30978
30987
|
});
|
|
30979
|
-
const _hoisted_1$
|
|
30980
|
-
const _sfc_main$
|
|
30988
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
30989
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
30981
30990
|
__name: "CustomBadge",
|
|
30982
30991
|
props: {
|
|
30983
30992
|
badge: {}
|
|
@@ -30998,12 +31007,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
30998
31007
|
return openBlock(), createElementBlock("div", {
|
|
30999
31008
|
class: normalizeClass(className.value),
|
|
31000
31009
|
innerHTML: text.value
|
|
31001
|
-
}, null, 10, _hoisted_1$
|
|
31010
|
+
}, null, 10, _hoisted_1$19);
|
|
31002
31011
|
};
|
|
31003
31012
|
}
|
|
31004
31013
|
});
|
|
31005
|
-
const _hoisted_1$
|
|
31006
|
-
const _sfc_main$
|
|
31014
|
+
const _hoisted_1$18 = { class: "lupa-text-badges" };
|
|
31015
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
31007
31016
|
__name: "TextBadge",
|
|
31008
31017
|
props: {
|
|
31009
31018
|
badge: {}
|
|
@@ -31017,7 +31026,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
31017
31026
|
return badges.value.slice(0, props.badge.maxItems);
|
|
31018
31027
|
});
|
|
31019
31028
|
return (_ctx, _cache) => {
|
|
31020
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31029
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
31021
31030
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31022
31031
|
return openBlock(), createElementBlock("div", {
|
|
31023
31032
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -31028,9 +31037,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
31028
31037
|
};
|
|
31029
31038
|
}
|
|
31030
31039
|
});
|
|
31031
|
-
const _hoisted_1$
|
|
31032
|
-
const _hoisted_2$
|
|
31033
|
-
const _sfc_main$
|
|
31040
|
+
const _hoisted_1$17 = { class: "lupa-image-badges" };
|
|
31041
|
+
const _hoisted_2$P = ["src"];
|
|
31042
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
31034
31043
|
__name: "ImageBadge",
|
|
31035
31044
|
props: {
|
|
31036
31045
|
badge: {}
|
|
@@ -31050,7 +31059,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
31050
31059
|
return `${props.badge.rootImageUrl}${src}`;
|
|
31051
31060
|
};
|
|
31052
31061
|
return (_ctx, _cache) => {
|
|
31053
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31062
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
31054
31063
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31055
31064
|
return openBlock(), createElementBlock("div", {
|
|
31056
31065
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -31058,14 +31067,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
31058
31067
|
}, [
|
|
31059
31068
|
createBaseVNode("img", {
|
|
31060
31069
|
src: getImageUrl(item)
|
|
31061
|
-
}, null, 8, _hoisted_2$
|
|
31070
|
+
}, null, 8, _hoisted_2$P)
|
|
31062
31071
|
]);
|
|
31063
31072
|
}), 128))
|
|
31064
31073
|
]);
|
|
31065
31074
|
};
|
|
31066
31075
|
}
|
|
31067
31076
|
});
|
|
31068
|
-
const _sfc_main$
|
|
31077
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
31069
31078
|
__name: "DiscountBadge",
|
|
31070
31079
|
props: {
|
|
31071
31080
|
badge: {}
|
|
@@ -31127,16 +31136,16 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
31127
31136
|
};
|
|
31128
31137
|
}
|
|
31129
31138
|
});
|
|
31130
|
-
const _hoisted_1$
|
|
31139
|
+
const _hoisted_1$16 = { id: "lupa-search-results-badges" };
|
|
31131
31140
|
const __default__$3 = {
|
|
31132
31141
|
components: {
|
|
31133
|
-
CustomBadge: _sfc_main$
|
|
31134
|
-
TextBadge: _sfc_main$
|
|
31135
|
-
ImageBadge: _sfc_main$
|
|
31136
|
-
DiscountBadge: _sfc_main$
|
|
31142
|
+
CustomBadge: _sfc_main$1o,
|
|
31143
|
+
TextBadge: _sfc_main$1n,
|
|
31144
|
+
ImageBadge: _sfc_main$1m,
|
|
31145
|
+
DiscountBadge: _sfc_main$1l
|
|
31137
31146
|
}
|
|
31138
31147
|
};
|
|
31139
|
-
const _sfc_main$
|
|
31148
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
31140
31149
|
__name: "SearchResultsBadgeWrapper",
|
|
31141
31150
|
props: {
|
|
31142
31151
|
position: {},
|
|
@@ -31199,7 +31208,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31199
31208
|
}
|
|
31200
31209
|
};
|
|
31201
31210
|
return (_ctx, _cache) => {
|
|
31202
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31211
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
31203
31212
|
createBaseVNode("div", {
|
|
31204
31213
|
id: "lupa-badges",
|
|
31205
31214
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -31210,7 +31219,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31210
31219
|
badge
|
|
31211
31220
|
}, null, 8, ["badge"]);
|
|
31212
31221
|
}), 128)),
|
|
31213
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
31222
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
31214
31223
|
key: 0,
|
|
31215
31224
|
options: _ctx.options
|
|
31216
31225
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -31219,13 +31228,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31219
31228
|
};
|
|
31220
31229
|
}
|
|
31221
31230
|
}));
|
|
31222
|
-
const _hoisted_1$
|
|
31223
|
-
const _hoisted_2$
|
|
31231
|
+
const _hoisted_1$15 = ["href"];
|
|
31232
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
|
|
31224
31233
|
const _hoisted_3$A = {
|
|
31225
31234
|
key: 0,
|
|
31226
31235
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
31227
31236
|
};
|
|
31228
|
-
const _sfc_main$
|
|
31237
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
31229
31238
|
__name: "SearchBoxProduct",
|
|
31230
31239
|
props: {
|
|
31231
31240
|
item: {},
|
|
@@ -31331,7 +31340,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31331
31340
|
style: normalizeStyle(imageStyleOverride.value)
|
|
31332
31341
|
}, [
|
|
31333
31342
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
31334
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31343
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31335
31344
|
class: "lupa-search-box-product-element",
|
|
31336
31345
|
key: element.key,
|
|
31337
31346
|
item: _ctx.item,
|
|
@@ -31341,10 +31350,10 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31341
31350
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
31342
31351
|
}), 128))
|
|
31343
31352
|
], 4),
|
|
31344
|
-
createBaseVNode("div", _hoisted_2$
|
|
31353
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
31345
31354
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
31346
31355
|
var _a25;
|
|
31347
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31356
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31348
31357
|
class: "lupa-search-box-product-element",
|
|
31349
31358
|
key: element.key,
|
|
31350
31359
|
item: _ctx.item,
|
|
@@ -31355,7 +31364,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31355
31364
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
31356
31365
|
name: "badges",
|
|
31357
31366
|
fn: withCtx(() => [
|
|
31358
|
-
createVNode(_sfc_main$
|
|
31367
|
+
createVNode(_sfc_main$1k, {
|
|
31359
31368
|
options: badgeOptions.value,
|
|
31360
31369
|
position: "card"
|
|
31361
31370
|
}, null, 8, ["options"])
|
|
@@ -31371,7 +31380,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31371
31380
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
31372
31381
|
}, [
|
|
31373
31382
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
31374
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31383
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31375
31384
|
class: "lupa-search-box-product-element",
|
|
31376
31385
|
key: element.key,
|
|
31377
31386
|
item: _ctx.item,
|
|
@@ -31384,7 +31393,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31384
31393
|
], 2);
|
|
31385
31394
|
}), 128)),
|
|
31386
31395
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
31387
|
-
createVNode(_sfc_main$
|
|
31396
|
+
createVNode(_sfc_main$1r, {
|
|
31388
31397
|
class: "lupa-search-box-product-element",
|
|
31389
31398
|
item: _ctx.item,
|
|
31390
31399
|
element: addToCartElement.value,
|
|
@@ -31393,7 +31402,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31393
31402
|
isInStock: isInStock.value
|
|
31394
31403
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
31395
31404
|
])) : createCommentVNode("", true)
|
|
31396
|
-
], 16, _hoisted_1$
|
|
31405
|
+
], 16, _hoisted_1$15);
|
|
31397
31406
|
};
|
|
31398
31407
|
}
|
|
31399
31408
|
});
|
|
@@ -31465,8 +31474,8 @@ const useTrackingStore = /* @__PURE__ */ defineStore("tracking", () => {
|
|
|
31465
31474
|
};
|
|
31466
31475
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
31467
31476
|
});
|
|
31468
|
-
const _hoisted_1$
|
|
31469
|
-
const _sfc_main$
|
|
31477
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
31478
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
31470
31479
|
__name: "SearchBoxProducts",
|
|
31471
31480
|
props: {
|
|
31472
31481
|
items: {},
|
|
@@ -31577,7 +31586,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31577
31586
|
itemClicked: handleProductClick
|
|
31578
31587
|
});
|
|
31579
31588
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
|
|
31580
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31589
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
31581
31590
|
key: index,
|
|
31582
31591
|
item,
|
|
31583
31592
|
panelOptions: _ctx.panelOptions,
|
|
@@ -31590,7 +31599,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31590
31599
|
hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
|
|
31591
31600
|
key: 2,
|
|
31592
31601
|
innerHTML: _ctx.panelOptions.appendCustomHtml
|
|
31593
|
-
}, null, 8, _hoisted_1$
|
|
31602
|
+
}, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
|
|
31594
31603
|
showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
|
|
31595
31604
|
key: 3,
|
|
31596
31605
|
class: "lupa-search-box-expand",
|
|
@@ -31601,9 +31610,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31601
31610
|
};
|
|
31602
31611
|
}
|
|
31603
31612
|
});
|
|
31604
|
-
const _hoisted_1$
|
|
31605
|
-
const _hoisted_2$
|
|
31606
|
-
const _sfc_main$
|
|
31613
|
+
const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
31614
|
+
const _hoisted_2$N = { key: 0 };
|
|
31615
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
31607
31616
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
31608
31617
|
props: {
|
|
31609
31618
|
options: {},
|
|
@@ -31634,13 +31643,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
31634
31643
|
emit2("goToResults");
|
|
31635
31644
|
};
|
|
31636
31645
|
return (_ctx, _cache) => {
|
|
31637
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31646
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
31638
31647
|
createBaseVNode("button", {
|
|
31639
31648
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
31640
31649
|
onClick: goToResults
|
|
31641
31650
|
}, [
|
|
31642
31651
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
31643
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31652
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
31644
31653
|
])
|
|
31645
31654
|
]);
|
|
31646
31655
|
};
|
|
@@ -31736,7 +31745,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
31736
31745
|
}
|
|
31737
31746
|
return parsedObject;
|
|
31738
31747
|
};
|
|
31739
|
-
const _sfc_main$
|
|
31748
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
31740
31749
|
__name: "SearchBoxProductsWrapper",
|
|
31741
31750
|
props: {
|
|
31742
31751
|
panel: {},
|
|
@@ -31807,7 +31816,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31807
31816
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
31808
31817
|
return (_ctx, _cache) => {
|
|
31809
31818
|
var _a25, _b25;
|
|
31810
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31819
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31811
31820
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31812
31821
|
panelOptions: _ctx.panel,
|
|
31813
31822
|
labels: _ctx.labels,
|
|
@@ -31817,7 +31826,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31817
31826
|
default: withCtx(() => {
|
|
31818
31827
|
var _a26;
|
|
31819
31828
|
return [
|
|
31820
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
31829
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
|
|
31821
31830
|
key: 0,
|
|
31822
31831
|
options: _ctx.searchBoxOptions,
|
|
31823
31832
|
panel: _ctx.panel,
|
|
@@ -31838,7 +31847,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31838
31847
|
};
|
|
31839
31848
|
}
|
|
31840
31849
|
});
|
|
31841
|
-
const _sfc_main$
|
|
31850
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
31842
31851
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
31843
31852
|
props: {
|
|
31844
31853
|
panel: {},
|
|
@@ -31910,7 +31919,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
31910
31919
|
});
|
|
31911
31920
|
return (_ctx, _cache) => {
|
|
31912
31921
|
var _a25, _b25;
|
|
31913
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31922
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31914
31923
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31915
31924
|
panelOptions: documentPanelOptions.value,
|
|
31916
31925
|
labels: _ctx.labels,
|
|
@@ -31928,8 +31937,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
31928
31937
|
};
|
|
31929
31938
|
}
|
|
31930
31939
|
});
|
|
31931
|
-
const _hoisted_1$
|
|
31932
|
-
const _hoisted_2$
|
|
31940
|
+
const _hoisted_1$12 = ["data-cy"];
|
|
31941
|
+
const _hoisted_2$M = {
|
|
31933
31942
|
key: 0,
|
|
31934
31943
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31935
31944
|
};
|
|
@@ -31939,12 +31948,12 @@ const _hoisted_3$z = {
|
|
|
31939
31948
|
};
|
|
31940
31949
|
const __default__$2 = {
|
|
31941
31950
|
components: {
|
|
31942
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
31943
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
31944
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
31951
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1B,
|
|
31952
|
+
SearchBoxProductsWrapper: _sfc_main$1g,
|
|
31953
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$1f
|
|
31945
31954
|
}
|
|
31946
31955
|
};
|
|
31947
|
-
const _sfc_main$
|
|
31956
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
31948
31957
|
__name: "SearchBoxMainPanel",
|
|
31949
31958
|
props: {
|
|
31950
31959
|
options: {},
|
|
@@ -32135,7 +32144,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32135
32144
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
32136
32145
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
32137
32146
|
}, [
|
|
32138
|
-
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32147
|
+
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
32139
32148
|
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
32140
32149
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
32141
32150
|
key: 2,
|
|
@@ -32158,14 +32167,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32158
32167
|
key: "0"
|
|
32159
32168
|
} : void 0
|
|
32160
32169
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
32161
|
-
], 14, _hoisted_1$
|
|
32170
|
+
], 14, _hoisted_1$12);
|
|
32162
32171
|
}), 128))
|
|
32163
32172
|
], 4),
|
|
32164
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
32173
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
|
|
32165
32174
|
key: 1,
|
|
32166
32175
|
options: _ctx.options
|
|
32167
32176
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32168
|
-
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
32177
|
+
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
32169
32178
|
key: 2,
|
|
32170
32179
|
labels: labels.value,
|
|
32171
32180
|
options: _ctx.options,
|
|
@@ -32176,7 +32185,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32176
32185
|
id: "lupa-search-box-panel",
|
|
32177
32186
|
class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
|
|
32178
32187
|
}, [
|
|
32179
|
-
createVNode(_sfc_main$
|
|
32188
|
+
createVNode(_sfc_main$1F, {
|
|
32180
32189
|
options: _ctx.options.history,
|
|
32181
32190
|
history: history.value,
|
|
32182
32191
|
onGoToResults: handleGoToResults,
|
|
@@ -32201,8 +32210,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
32201
32210
|
const elements = getElements(triggers);
|
|
32202
32211
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
32203
32212
|
};
|
|
32204
|
-
const _hoisted_1
|
|
32205
|
-
const _sfc_main$
|
|
32213
|
+
const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
|
|
32214
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
32206
32215
|
__name: "SearchBox",
|
|
32207
32216
|
props: {
|
|
32208
32217
|
options: {},
|
|
@@ -32541,8 +32550,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
32541
32550
|
id: "lupa-search-box",
|
|
32542
32551
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
32543
32552
|
}, [
|
|
32544
|
-
createBaseVNode("div", _hoisted_1
|
|
32545
|
-
createVNode(_sfc_main$
|
|
32553
|
+
createBaseVNode("div", _hoisted_1$11, [
|
|
32554
|
+
createVNode(_sfc_main$1I, {
|
|
32546
32555
|
options: inputOptions.value,
|
|
32547
32556
|
suggestedValue: suggestedValue.value,
|
|
32548
32557
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -32555,7 +32564,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
32555
32564
|
onSearch: handleSearch,
|
|
32556
32565
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
32557
32566
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
32558
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
32567
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
32559
32568
|
key: 0,
|
|
32560
32569
|
options: panelOptions.value,
|
|
32561
32570
|
inputValue: inputValue.value,
|
|
@@ -32646,11 +32655,11 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
32646
32655
|
}
|
|
32647
32656
|
return searchParams;
|
|
32648
32657
|
};
|
|
32649
|
-
const _hoisted_1$
|
|
32658
|
+
const _hoisted_1$10 = {
|
|
32650
32659
|
key: 0,
|
|
32651
32660
|
id: "lupa-search-results-did-you-mean"
|
|
32652
32661
|
};
|
|
32653
|
-
const _hoisted_2$
|
|
32662
|
+
const _hoisted_2$L = {
|
|
32654
32663
|
key: 0,
|
|
32655
32664
|
"data-cy": "suggested-search-text-label"
|
|
32656
32665
|
};
|
|
@@ -32659,7 +32668,7 @@ const _hoisted_3$y = {
|
|
|
32659
32668
|
"data-cy": "did-you-mean-label"
|
|
32660
32669
|
};
|
|
32661
32670
|
const _hoisted_4$p = { key: 1 };
|
|
32662
|
-
const _sfc_main$
|
|
32671
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
32663
32672
|
__name: "SearchResultsDidYouMean",
|
|
32664
32673
|
props: {
|
|
32665
32674
|
labels: {}
|
|
@@ -32691,8 +32700,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
32691
32700
|
paramStore.goToResults({ searchText, facet });
|
|
32692
32701
|
};
|
|
32693
32702
|
return (_ctx, _cache) => {
|
|
32694
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32695
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32703
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
32704
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
32696
32705
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
32697
32706
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32698
32707
|
createBaseVNode("span", {
|
|
@@ -32717,12 +32726,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
32717
32726
|
};
|
|
32718
32727
|
}
|
|
32719
32728
|
});
|
|
32720
|
-
const _hoisted_1
|
|
32729
|
+
const _hoisted_1$$ = {
|
|
32721
32730
|
key: 0,
|
|
32722
32731
|
class: "lupa-search-results-summary"
|
|
32723
32732
|
};
|
|
32724
|
-
const _hoisted_2$
|
|
32725
|
-
const _sfc_main$
|
|
32733
|
+
const _hoisted_2$K = ["innerHTML"];
|
|
32734
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
32726
32735
|
__name: "SearchResultsSummary",
|
|
32727
32736
|
props: {
|
|
32728
32737
|
label: {},
|
|
@@ -32737,8 +32746,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
32737
32746
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
32738
32747
|
});
|
|
32739
32748
|
return (_ctx, _cache) => {
|
|
32740
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
32741
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
32749
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
32750
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
|
|
32742
32751
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
32743
32752
|
key: 0,
|
|
32744
32753
|
class: "lupa-filter-clear",
|
|
@@ -32749,7 +32758,138 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
32749
32758
|
};
|
|
32750
32759
|
}
|
|
32751
32760
|
});
|
|
32752
|
-
const
|
|
32761
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
32762
|
+
__name: "SkeletonBlock",
|
|
32763
|
+
props: {
|
|
32764
|
+
style: {}
|
|
32765
|
+
},
|
|
32766
|
+
setup(__props) {
|
|
32767
|
+
return (_ctx, _cache) => {
|
|
32768
|
+
return openBlock(), createElementBlock("div", {
|
|
32769
|
+
class: "lupa-skeleton-block-wrapper",
|
|
32770
|
+
style: normalizeStyle(_ctx.style)
|
|
32771
|
+
}, _cache[0] || (_cache[0] = [
|
|
32772
|
+
createBaseVNode("div", { class: "lupa-skeleton-block" }, [
|
|
32773
|
+
createBaseVNode("div", { class: "lupa-skeleton-block__shimmer" })
|
|
32774
|
+
], -1)
|
|
32775
|
+
]), 4);
|
|
32776
|
+
};
|
|
32777
|
+
}
|
|
32778
|
+
});
|
|
32779
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
32780
|
+
__name: "SkeletonText",
|
|
32781
|
+
props: {
|
|
32782
|
+
style: {},
|
|
32783
|
+
lines: { default: 1 }
|
|
32784
|
+
},
|
|
32785
|
+
setup(__props) {
|
|
32786
|
+
return (_ctx, _cache) => {
|
|
32787
|
+
return openBlock(), createElementBlock("div", {
|
|
32788
|
+
class: "lupa-skeleton-text-wrapper",
|
|
32789
|
+
style: normalizeStyle(_ctx.style)
|
|
32790
|
+
}, [
|
|
32791
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
|
|
32792
|
+
return openBlock(), createElementBlock("div", {
|
|
32793
|
+
key: i,
|
|
32794
|
+
class: "lupa-skeleton-line"
|
|
32795
|
+
}, _cache[0] || (_cache[0] = [
|
|
32796
|
+
createBaseVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
|
|
32797
|
+
]));
|
|
32798
|
+
}), 128))
|
|
32799
|
+
], 4);
|
|
32800
|
+
};
|
|
32801
|
+
}
|
|
32802
|
+
});
|
|
32803
|
+
const _hoisted_1$_ = {
|
|
32804
|
+
key: 1,
|
|
32805
|
+
class: "lupa-skeleton-text"
|
|
32806
|
+
};
|
|
32807
|
+
const _hoisted_2$J = {
|
|
32808
|
+
key: 2,
|
|
32809
|
+
class: "lupa-skeleton-blocks"
|
|
32810
|
+
};
|
|
32811
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
32812
|
+
__name: "LoadingBlock",
|
|
32813
|
+
props: {
|
|
32814
|
+
style: {},
|
|
32815
|
+
type: {},
|
|
32816
|
+
enabled: { type: Boolean },
|
|
32817
|
+
loading: { type: Boolean },
|
|
32818
|
+
count: {}
|
|
32819
|
+
},
|
|
32820
|
+
setup(__props) {
|
|
32821
|
+
return (_ctx, _cache) => {
|
|
32822
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
32823
|
+
createVNode(_sfc_main$19, {
|
|
32824
|
+
style: normalizeStyle(_ctx.style),
|
|
32825
|
+
lines: _ctx.count
|
|
32826
|
+
}, null, 8, ["style", "lines"])
|
|
32827
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
|
|
32828
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
32829
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
32830
|
+
key: n,
|
|
32831
|
+
style: normalizeStyle(_ctx.style)
|
|
32832
|
+
}, null, 8, ["style"]);
|
|
32833
|
+
}), 128))
|
|
32834
|
+
]));
|
|
32835
|
+
};
|
|
32836
|
+
}
|
|
32837
|
+
});
|
|
32838
|
+
const useLoadingSkeleton = () => {
|
|
32839
|
+
const paramsStore = useParamsStore();
|
|
32840
|
+
const optionsStore = useOptionsStore();
|
|
32841
|
+
const searchResultStore = useSearchResultStore();
|
|
32842
|
+
const { limit } = storeToRefs(paramsStore);
|
|
32843
|
+
const {
|
|
32844
|
+
searchResult,
|
|
32845
|
+
relatedQueriesResult,
|
|
32846
|
+
loading,
|
|
32847
|
+
loadingFacets: loadingFacetsBase,
|
|
32848
|
+
loadingRelatedQueries
|
|
32849
|
+
} = storeToRefs(searchResultStore);
|
|
32850
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
32851
|
+
const enabled = computed(() => {
|
|
32852
|
+
var _a25, _b25;
|
|
32853
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled;
|
|
32854
|
+
});
|
|
32855
|
+
const showOnEveryFetch = computed(() => {
|
|
32856
|
+
var _a25, _b25;
|
|
32857
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.showOnEveryFetch;
|
|
32858
|
+
});
|
|
32859
|
+
const skeletonEnabled = computed(() => {
|
|
32860
|
+
var _a25, _b25, _c;
|
|
32861
|
+
return enabled.value && (!((_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) == null ? void 0 : _b25.length) || ((_c = showOnEveryFetch.value) == null ? void 0 : _c.results));
|
|
32862
|
+
});
|
|
32863
|
+
const relatedQueriesSkeletonEnabled = computed(() => {
|
|
32864
|
+
var _a25, _b25, _c, _d;
|
|
32865
|
+
return enabled.value && Boolean((_a25 = searchResultOptions.value) == null ? void 0 : _a25.relatedQueries) && (!((_c = (_b25 = relatedQueriesResult.value) == null ? void 0 : _b25.relatedQueries) == null ? void 0 : _c.length) || ((_d = showOnEveryFetch.value) == null ? void 0 : _d.relatedQueries));
|
|
32866
|
+
});
|
|
32867
|
+
const facetSkeletonEnabled = computed(() => {
|
|
32868
|
+
var _a25, _b25, _c;
|
|
32869
|
+
return enabled.value && (!((_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.length) || ((_c = showOnEveryFetch.value) == null ? void 0 : _c.facets));
|
|
32870
|
+
});
|
|
32871
|
+
const loadingFacets = computed(() => {
|
|
32872
|
+
var _a25;
|
|
32873
|
+
if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
|
|
32874
|
+
return loadingFacetsBase.value;
|
|
32875
|
+
}
|
|
32876
|
+
return loading.value;
|
|
32877
|
+
});
|
|
32878
|
+
const loadingAny = computed(() => {
|
|
32879
|
+
return loading.value || loadingRelatedQueries.value || loadingFacets.value;
|
|
32880
|
+
});
|
|
32881
|
+
return {
|
|
32882
|
+
loading,
|
|
32883
|
+
loadingRelatedQueries,
|
|
32884
|
+
loadingFacets,
|
|
32885
|
+
loadingAny,
|
|
32886
|
+
limit,
|
|
32887
|
+
skeletonEnabled,
|
|
32888
|
+
relatedQueriesSkeletonEnabled,
|
|
32889
|
+
facetSkeletonEnabled
|
|
32890
|
+
};
|
|
32891
|
+
};
|
|
32892
|
+
const _hoisted_1$Z = {
|
|
32753
32893
|
key: 0,
|
|
32754
32894
|
class: "lupa-result-page-title",
|
|
32755
32895
|
"data-cy": "lupa-result-page-title"
|
|
@@ -32761,7 +32901,7 @@ const _hoisted_3$x = {
|
|
|
32761
32901
|
};
|
|
32762
32902
|
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
32763
32903
|
const _hoisted_5$g = ["innerHTML"];
|
|
32764
|
-
const _sfc_main$
|
|
32904
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
32765
32905
|
__name: "SearchResultsTitle",
|
|
32766
32906
|
props: {
|
|
32767
32907
|
options: {},
|
|
@@ -32771,7 +32911,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
32771
32911
|
setup(__props) {
|
|
32772
32912
|
const props = __props;
|
|
32773
32913
|
const searchResultStore = useSearchResultStore();
|
|
32914
|
+
const paramsStore = useParamsStore();
|
|
32774
32915
|
const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
|
|
32916
|
+
const { skeletonEnabled, loading } = useLoadingSkeleton();
|
|
32917
|
+
const { query } = storeToRefs(paramsStore);
|
|
32775
32918
|
const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
|
|
32776
32919
|
const queryText = computed(() => {
|
|
32777
32920
|
return suggestedSearchText.value || currentQueryText.value;
|
|
@@ -32804,29 +32947,39 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
32804
32947
|
});
|
|
32805
32948
|
return (_ctx, _cache) => {
|
|
32806
32949
|
return openBlock(), createElementBlock("div", null, [
|
|
32807
|
-
|
|
32808
|
-
|
|
32809
|
-
|
|
32810
|
-
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
|
|
32823
|
-
|
|
32824
|
-
|
|
32950
|
+
createVNode(_sfc_main$18, {
|
|
32951
|
+
type: "text",
|
|
32952
|
+
count: 1,
|
|
32953
|
+
enabled: unref(skeletonEnabled) && Boolean(unref(query)),
|
|
32954
|
+
loading: unref(loading)
|
|
32955
|
+
}, {
|
|
32956
|
+
default: withCtx(() => [
|
|
32957
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
|
|
32958
|
+
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32959
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32960
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
32961
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32962
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
32963
|
+
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32964
|
+
])) : createCommentVNode("", true)
|
|
32965
|
+
])) : createCommentVNode("", true),
|
|
32966
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
32967
|
+
key: 1,
|
|
32968
|
+
label: summaryLabel.value
|
|
32969
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
32970
|
+
descriptionTop.value ? (openBlock(), createElementBlock("div", {
|
|
32971
|
+
key: 2,
|
|
32972
|
+
class: "lupa-result-page-description-top",
|
|
32973
|
+
innerHTML: descriptionTop.value
|
|
32974
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
32975
|
+
]),
|
|
32976
|
+
_: 1
|
|
32977
|
+
}, 8, ["enabled", "loading"])
|
|
32825
32978
|
]);
|
|
32826
32979
|
};
|
|
32827
32980
|
}
|
|
32828
32981
|
});
|
|
32829
|
-
const _hoisted_1$
|
|
32982
|
+
const _hoisted_1$Y = {
|
|
32830
32983
|
class: "lupa-current-filter-label",
|
|
32831
32984
|
"data-cy": "lupa-current-filter-label"
|
|
32832
32985
|
};
|
|
@@ -32834,7 +32987,7 @@ const _hoisted_2$H = {
|
|
|
32834
32987
|
class: "lupa-current-filter-value",
|
|
32835
32988
|
"data-cy": "lupa-current-filter-value"
|
|
32836
32989
|
};
|
|
32837
|
-
const _sfc_main$
|
|
32990
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
32838
32991
|
__name: "CurrentFilterDisplay",
|
|
32839
32992
|
props: {
|
|
32840
32993
|
filter: {}
|
|
@@ -32876,13 +33029,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
32876
33029
|
onClick: handleClick,
|
|
32877
33030
|
"aria-label": "Remove filter"
|
|
32878
33031
|
}, "⨉"),
|
|
32879
|
-
createBaseVNode("div", _hoisted_1$
|
|
33032
|
+
createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32880
33033
|
createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32881
33034
|
], 2);
|
|
32882
33035
|
};
|
|
32883
33036
|
}
|
|
32884
33037
|
});
|
|
32885
|
-
const _hoisted_1$
|
|
33038
|
+
const _hoisted_1$X = { class: "lupa-filter-title-text" };
|
|
32886
33039
|
const _hoisted_2$G = {
|
|
32887
33040
|
key: 0,
|
|
32888
33041
|
class: "lupa-filter-count"
|
|
@@ -32892,7 +33045,7 @@ const _hoisted_3$w = {
|
|
|
32892
33045
|
class: "filter-values"
|
|
32893
33046
|
};
|
|
32894
33047
|
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
32895
|
-
const _sfc_main$
|
|
33048
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
32896
33049
|
__name: "CurrentFilters",
|
|
32897
33050
|
props: {
|
|
32898
33051
|
options: {},
|
|
@@ -32972,7 +33125,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
32972
33125
|
class: "lupa-current-filter-title",
|
|
32973
33126
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32974
33127
|
}, [
|
|
32975
|
-
createBaseVNode("div", _hoisted_1$
|
|
33128
|
+
createBaseVNode("div", _hoisted_1$X, [
|
|
32976
33129
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32977
33130
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32978
33131
|
]),
|
|
@@ -32984,7 +33137,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
32984
33137
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
32985
33138
|
createBaseVNode("div", _hoisted_4$n, [
|
|
32986
33139
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32987
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33140
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
32988
33141
|
key: filter.key + "_" + filter.value,
|
|
32989
33142
|
filter,
|
|
32990
33143
|
units: units.value,
|
|
@@ -33002,8 +33155,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
33002
33155
|
};
|
|
33003
33156
|
}
|
|
33004
33157
|
});
|
|
33005
|
-
const _hoisted_1$
|
|
33006
|
-
const _sfc_main$
|
|
33158
|
+
const _hoisted_1$W = ["href"];
|
|
33159
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
33007
33160
|
__name: "CategoryFilterItem",
|
|
33008
33161
|
props: {
|
|
33009
33162
|
options: {},
|
|
@@ -33040,12 +33193,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
33040
33193
|
"data-cy": "lupa-child-category-item",
|
|
33041
33194
|
href: urlLink.value,
|
|
33042
33195
|
onClick: handleNavigation
|
|
33043
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
33196
|
+
}, toDisplayString(title.value), 9, _hoisted_1$W)
|
|
33044
33197
|
], 2);
|
|
33045
33198
|
};
|
|
33046
33199
|
}
|
|
33047
33200
|
});
|
|
33048
|
-
const _hoisted_1$
|
|
33201
|
+
const _hoisted_1$V = {
|
|
33049
33202
|
class: "lupa-category-filter",
|
|
33050
33203
|
"data-cy": "lupa-category-filter"
|
|
33051
33204
|
};
|
|
@@ -33053,7 +33206,7 @@ const _hoisted_2$F = { class: "lupa-category-back" };
|
|
|
33053
33206
|
const _hoisted_3$v = ["href"];
|
|
33054
33207
|
const _hoisted_4$m = ["href"];
|
|
33055
33208
|
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
33056
|
-
const _sfc_main$
|
|
33209
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
33057
33210
|
__name: "CategoryFilter",
|
|
33058
33211
|
props: {
|
|
33059
33212
|
options: {}
|
|
@@ -33141,7 +33294,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33141
33294
|
};
|
|
33142
33295
|
__expose({ fetch: fetch2 });
|
|
33143
33296
|
return (_ctx, _cache) => {
|
|
33144
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33297
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
33145
33298
|
createBaseVNode("div", _hoisted_2$F, [
|
|
33146
33299
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
33147
33300
|
key: 0,
|
|
@@ -33162,7 +33315,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33162
33315
|
], 2),
|
|
33163
33316
|
createBaseVNode("div", _hoisted_5$f, [
|
|
33164
33317
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
33165
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33318
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
33166
33319
|
key: getCategoryKey(child),
|
|
33167
33320
|
item: child,
|
|
33168
33321
|
options: _ctx.options
|
|
@@ -33173,7 +33326,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33173
33326
|
};
|
|
33174
33327
|
}
|
|
33175
33328
|
});
|
|
33176
|
-
const _hoisted_1$
|
|
33329
|
+
const _hoisted_1$U = {
|
|
33177
33330
|
class: "lupa-search-result-facet-term-values",
|
|
33178
33331
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
33179
33332
|
};
|
|
@@ -33188,7 +33341,7 @@ const _hoisted_7$4 = {
|
|
|
33188
33341
|
};
|
|
33189
33342
|
const _hoisted_8$2 = { key: 0 };
|
|
33190
33343
|
const _hoisted_9$2 = { key: 1 };
|
|
33191
|
-
const _sfc_main$
|
|
33344
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
33192
33345
|
__name: "TermFacet",
|
|
33193
33346
|
props: {
|
|
33194
33347
|
options: {},
|
|
@@ -33282,7 +33435,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
33282
33435
|
}
|
|
33283
33436
|
};
|
|
33284
33437
|
return (_ctx, _cache) => {
|
|
33285
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33438
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
33286
33439
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
33287
33440
|
key: 0,
|
|
33288
33441
|
class: "lupa-term-filter",
|
|
@@ -34231,7 +34384,7 @@ const roundToMaxDecimals = (value, maxPrecision = 0.1) => {
|
|
|
34231
34384
|
}
|
|
34232
34385
|
return out;
|
|
34233
34386
|
};
|
|
34234
|
-
const _hoisted_1$
|
|
34387
|
+
const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
|
|
34235
34388
|
const _hoisted_2$D = {
|
|
34236
34389
|
key: 0,
|
|
34237
34390
|
class: "lupa-stats-facet-summary"
|
|
@@ -34260,7 +34413,7 @@ const _hoisted_14 = {
|
|
|
34260
34413
|
key: 2,
|
|
34261
34414
|
class: "lupa-stats-slider-wrapper"
|
|
34262
34415
|
};
|
|
34263
|
-
const _sfc_main$
|
|
34416
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
34264
34417
|
__name: "StatsFacet",
|
|
34265
34418
|
props: {
|
|
34266
34419
|
options: {},
|
|
@@ -34479,7 +34632,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
34479
34632
|
}
|
|
34480
34633
|
);
|
|
34481
34634
|
return (_ctx, _cache) => {
|
|
34482
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34635
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
34483
34636
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
34484
34637
|
createBaseVNode("div", _hoisted_4$k, [
|
|
34485
34638
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -34544,7 +34697,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
34544
34697
|
};
|
|
34545
34698
|
}
|
|
34546
34699
|
});
|
|
34547
|
-
const _hoisted_1$
|
|
34700
|
+
const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
|
|
34548
34701
|
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
34549
34702
|
const _hoisted_3$s = {
|
|
34550
34703
|
key: 0,
|
|
@@ -34554,7 +34707,7 @@ const _hoisted_4$j = {
|
|
|
34554
34707
|
key: 0,
|
|
34555
34708
|
class: "lupa-facet-level"
|
|
34556
34709
|
};
|
|
34557
|
-
const _sfc_main
|
|
34710
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
34558
34711
|
__name: "HierarchyFacetLevel",
|
|
34559
34712
|
props: {
|
|
34560
34713
|
options: {},
|
|
@@ -34608,7 +34761,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
34608
34761
|
"data-cy": "lupa-facet-term",
|
|
34609
34762
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34610
34763
|
}, [
|
|
34611
|
-
createBaseVNode("div", _hoisted_1$
|
|
34764
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
34612
34765
|
createBaseVNode("span", {
|
|
34613
34766
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34614
34767
|
}, null, 2)
|
|
@@ -34636,13 +34789,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
34636
34789
|
};
|
|
34637
34790
|
}
|
|
34638
34791
|
});
|
|
34639
|
-
const _hoisted_1$
|
|
34792
|
+
const _hoisted_1$R = {
|
|
34640
34793
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34641
34794
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34642
34795
|
};
|
|
34643
34796
|
const _hoisted_2$B = { key: 0 };
|
|
34644
34797
|
const _hoisted_3$r = ["placeholder"];
|
|
34645
|
-
const _sfc_main
|
|
34798
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
34646
34799
|
__name: "HierarchyFacet",
|
|
34647
34800
|
props: {
|
|
34648
34801
|
options: {},
|
|
@@ -34698,7 +34851,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34698
34851
|
showAll.value = false;
|
|
34699
34852
|
};
|
|
34700
34853
|
return (_ctx, _cache) => {
|
|
34701
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34854
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
34702
34855
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
34703
34856
|
withDirectives(createBaseVNode("input", {
|
|
34704
34857
|
class: "lupa-term-filter",
|
|
@@ -34710,7 +34863,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34710
34863
|
])
|
|
34711
34864
|
])) : createCommentVNode("", true),
|
|
34712
34865
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34713
|
-
return openBlock(), createBlock(_sfc_main
|
|
34866
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
34714
34867
|
key: item.title,
|
|
34715
34868
|
options: _ctx.options,
|
|
34716
34869
|
item,
|
|
@@ -34734,7 +34887,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34734
34887
|
};
|
|
34735
34888
|
}
|
|
34736
34889
|
});
|
|
34737
|
-
const _hoisted_1$
|
|
34890
|
+
const _hoisted_1$Q = { class: "lupa-facet-label-text" };
|
|
34738
34891
|
const _hoisted_2$A = {
|
|
34739
34892
|
key: 0,
|
|
34740
34893
|
class: "lupa-facet-content",
|
|
@@ -34742,12 +34895,12 @@ const _hoisted_2$A = {
|
|
|
34742
34895
|
};
|
|
34743
34896
|
const __default__$1 = {
|
|
34744
34897
|
components: {
|
|
34745
|
-
TermFacet: _sfc_main$
|
|
34746
|
-
StatsFacet: _sfc_main$
|
|
34747
|
-
HierarchyFacet: _sfc_main
|
|
34898
|
+
TermFacet: _sfc_main$12,
|
|
34899
|
+
StatsFacet: _sfc_main$11,
|
|
34900
|
+
HierarchyFacet: _sfc_main$$
|
|
34748
34901
|
}
|
|
34749
34902
|
};
|
|
34750
|
-
const _sfc_main$
|
|
34903
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34751
34904
|
__name: "FacetDisplay",
|
|
34752
34905
|
props: {
|
|
34753
34906
|
options: {},
|
|
@@ -34894,7 +35047,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
34894
35047
|
"data-cy": "lupa-search-result-facet-label",
|
|
34895
35048
|
onClick: toggleFacet
|
|
34896
35049
|
}, [
|
|
34897
|
-
createBaseVNode("div", _hoisted_1$
|
|
35050
|
+
createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
|
|
34898
35051
|
createBaseVNode("div", {
|
|
34899
35052
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34900
35053
|
}, null, 2)
|
|
@@ -35012,11 +35165,11 @@ const useSidebarToggle = () => {
|
|
|
35012
35165
|
handleSortSidebarToggle
|
|
35013
35166
|
};
|
|
35014
35167
|
};
|
|
35015
|
-
const _hoisted_1$
|
|
35168
|
+
const _hoisted_1$P = {
|
|
35016
35169
|
key: 0,
|
|
35017
35170
|
class: "lupa-desktop-toggle-filter-count"
|
|
35018
35171
|
};
|
|
35019
|
-
const _sfc_main$
|
|
35172
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
35020
35173
|
__name: "DesktopFacetToggle",
|
|
35021
35174
|
setup(__props) {
|
|
35022
35175
|
const {
|
|
@@ -35038,12 +35191,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
35038
35191
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35039
35192
|
}, [
|
|
35040
35193
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35041
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35194
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35042
35195
|
], 2);
|
|
35043
35196
|
};
|
|
35044
35197
|
}
|
|
35045
35198
|
});
|
|
35046
|
-
const _sfc_main$
|
|
35199
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
35047
35200
|
__name: "DesktopSortToggle",
|
|
35048
35201
|
setup(__props) {
|
|
35049
35202
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -35059,12 +35212,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
35059
35212
|
};
|
|
35060
35213
|
}
|
|
35061
35214
|
});
|
|
35062
|
-
const _hoisted_1$
|
|
35215
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
|
|
35063
35216
|
const _hoisted_2$z = {
|
|
35064
35217
|
key: 0,
|
|
35065
35218
|
class: "lupa-facets-title"
|
|
35066
35219
|
};
|
|
35067
|
-
const _sfc_main$
|
|
35220
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
35068
35221
|
__name: "FacetList",
|
|
35069
35222
|
props: {
|
|
35070
35223
|
options: {},
|
|
@@ -35106,14 +35259,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
35106
35259
|
};
|
|
35107
35260
|
return (_ctx, _cache) => {
|
|
35108
35261
|
var _a25;
|
|
35109
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35262
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
35110
35263
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
35111
35264
|
createBaseVNode("div", {
|
|
35112
35265
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
35113
35266
|
}, [
|
|
35114
35267
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
35115
35268
|
var _a26;
|
|
35116
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35269
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
35117
35270
|
key: facet.key,
|
|
35118
35271
|
facet,
|
|
35119
35272
|
currentFilters: currentFiltersValue.value,
|
|
@@ -35125,14 +35278,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
35125
35278
|
onExpand: unref(handleFilterSidebarToggle)
|
|
35126
35279
|
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
35127
35280
|
}), 128)),
|
|
35128
|
-
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$
|
|
35129
|
-
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$
|
|
35281
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
|
|
35282
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
|
|
35130
35283
|
], 2)
|
|
35131
35284
|
]);
|
|
35132
35285
|
};
|
|
35133
35286
|
}
|
|
35134
35287
|
});
|
|
35135
|
-
const _sfc_main$
|
|
35288
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
35136
35289
|
__name: "FacetsButton",
|
|
35137
35290
|
props: {
|
|
35138
35291
|
options: {}
|
|
@@ -35157,7 +35310,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
35157
35310
|
};
|
|
35158
35311
|
}
|
|
35159
35312
|
});
|
|
35160
|
-
const _sfc_main$
|
|
35313
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
35161
35314
|
__name: "FacetsClearButton",
|
|
35162
35315
|
props: {
|
|
35163
35316
|
options: {}
|
|
@@ -35182,8 +35335,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
35182
35335
|
};
|
|
35183
35336
|
}
|
|
35184
35337
|
});
|
|
35185
|
-
const _hoisted_1$
|
|
35186
|
-
const _sfc_main$
|
|
35338
|
+
const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
|
|
35339
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
35187
35340
|
__name: "Facets",
|
|
35188
35341
|
props: {
|
|
35189
35342
|
options: {},
|
|
@@ -35291,7 +35444,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35291
35444
|
return openBlock(), createElementBlock("div", {
|
|
35292
35445
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
35293
35446
|
}, [
|
|
35294
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
35447
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
35295
35448
|
key: 0,
|
|
35296
35449
|
options: _ctx.options,
|
|
35297
35450
|
facets: regularFacets.value,
|
|
@@ -35301,13 +35454,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35301
35454
|
onSelect: handleFacetSelect,
|
|
35302
35455
|
onClear: clear
|
|
35303
35456
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
35304
|
-
createBaseVNode("div", _hoisted_1$
|
|
35305
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35457
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
35458
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
35306
35459
|
key: 0,
|
|
35307
35460
|
options: _ctx.options,
|
|
35308
35461
|
onClear: clearAll
|
|
35309
35462
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35310
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35463
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
35311
35464
|
key: 1,
|
|
35312
35465
|
options: _ctx.options,
|
|
35313
35466
|
onFilter: filter
|
|
@@ -35317,12 +35470,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35317
35470
|
};
|
|
35318
35471
|
}
|
|
35319
35472
|
});
|
|
35320
|
-
const _hoisted_1$
|
|
35473
|
+
const _hoisted_1$M = {
|
|
35321
35474
|
key: 0,
|
|
35322
35475
|
id: "lupa-search-result-filters",
|
|
35323
35476
|
class: "lupa-search-result-filters"
|
|
35324
35477
|
};
|
|
35325
|
-
const _sfc_main$
|
|
35478
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
35326
35479
|
__name: "SearchResultsFilters",
|
|
35327
35480
|
props: {
|
|
35328
35481
|
options: {},
|
|
@@ -35332,6 +35485,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
35332
35485
|
emits: ["filter"],
|
|
35333
35486
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35334
35487
|
const categoryFilters = ref(null);
|
|
35488
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35335
35489
|
const props = __props;
|
|
35336
35490
|
const emit2 = __emit;
|
|
35337
35491
|
const desktopFiltersVisible = computed(() => {
|
|
@@ -35360,30 +35514,42 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
35360
35514
|
};
|
|
35361
35515
|
__expose({ fetch: fetch2 });
|
|
35362
35516
|
return (_ctx, _cache) => {
|
|
35363
|
-
|
|
35364
|
-
|
|
35365
|
-
|
|
35366
|
-
|
|
35367
|
-
|
|
35368
|
-
|
|
35369
|
-
},
|
|
35370
|
-
|
|
35371
|
-
|
|
35372
|
-
|
|
35373
|
-
|
|
35374
|
-
|
|
35375
|
-
|
|
35376
|
-
|
|
35377
|
-
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35517
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
35518
|
+
createVNode(_sfc_main$18, {
|
|
35519
|
+
class: "lupa-skeleton-filters",
|
|
35520
|
+
count: 1,
|
|
35521
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35522
|
+
loading: unref(loadingFacets)
|
|
35523
|
+
}, {
|
|
35524
|
+
default: withCtx(() => {
|
|
35525
|
+
var _a25;
|
|
35526
|
+
return [
|
|
35527
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
|
|
35528
|
+
key: 0,
|
|
35529
|
+
options: _ctx.options.currentFilters,
|
|
35530
|
+
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
35531
|
+
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
35532
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
|
|
35533
|
+
key: 1,
|
|
35534
|
+
options: _ctx.options.categories,
|
|
35535
|
+
ref_key: "categoryFilters",
|
|
35536
|
+
ref: categoryFilters
|
|
35537
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35538
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35539
|
+
key: 2,
|
|
35540
|
+
options: _ctx.options.facets,
|
|
35541
|
+
"facet-style": _ctx.style,
|
|
35542
|
+
onFilter: filter
|
|
35543
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35544
|
+
];
|
|
35545
|
+
}),
|
|
35546
|
+
_: 1
|
|
35547
|
+
}, 8, ["enabled", "loading"])
|
|
35382
35548
|
])) : createCommentVNode("", true);
|
|
35383
35549
|
};
|
|
35384
35550
|
}
|
|
35385
35551
|
});
|
|
35386
|
-
const _hoisted_1$
|
|
35552
|
+
const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
|
|
35387
35553
|
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
35388
35554
|
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
35389
35555
|
const _hoisted_4$i = {
|
|
@@ -35391,7 +35557,7 @@ const _hoisted_4$i = {
|
|
|
35391
35557
|
class: "lupa-sidebar-filter-count"
|
|
35392
35558
|
};
|
|
35393
35559
|
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
35394
|
-
const _sfc_main$
|
|
35560
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
35395
35561
|
__name: "MobileFilterSidebar",
|
|
35396
35562
|
props: {
|
|
35397
35563
|
options: {}
|
|
@@ -35430,7 +35596,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35430
35596
|
class: "lupa-sidebar-close",
|
|
35431
35597
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
35432
35598
|
}),
|
|
35433
|
-
createBaseVNode("div", _hoisted_1$
|
|
35599
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
35434
35600
|
createBaseVNode("div", _hoisted_2$y, [
|
|
35435
35601
|
createBaseVNode("div", _hoisted_3$q, [
|
|
35436
35602
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -35442,7 +35608,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35442
35608
|
})
|
|
35443
35609
|
]),
|
|
35444
35610
|
createBaseVNode("div", _hoisted_5$c, [
|
|
35445
|
-
createVNode(_sfc_main$
|
|
35611
|
+
createVNode(_sfc_main$T, {
|
|
35446
35612
|
options: _ctx.options,
|
|
35447
35613
|
expandable: isActiveFiltersExpanded.value,
|
|
35448
35614
|
style: "sidebar",
|
|
@@ -35454,14 +35620,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35454
35620
|
};
|
|
35455
35621
|
}
|
|
35456
35622
|
});
|
|
35457
|
-
const _hoisted_1$
|
|
35623
|
+
const _hoisted_1$K = {
|
|
35624
|
+
key: 0,
|
|
35625
|
+
id: "lupa-search-results-breadcrumbs"
|
|
35626
|
+
};
|
|
35458
35627
|
const _hoisted_2$x = ["href", "onClick"];
|
|
35459
35628
|
const _hoisted_3$p = {
|
|
35460
35629
|
key: 1,
|
|
35461
35630
|
class: "lupa-search-results-breadcrumb-text"
|
|
35462
35631
|
};
|
|
35463
35632
|
const _hoisted_4$h = { key: 2 };
|
|
35464
|
-
const _sfc_main$
|
|
35633
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
35465
35634
|
__name: "SearchResultsBreadcrumbs",
|
|
35466
35635
|
props: {
|
|
35467
35636
|
breadcrumbs: {}
|
|
@@ -35479,6 +35648,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35479
35648
|
const hasEventRouting = computed(() => {
|
|
35480
35649
|
return searchResultOptions.value.routingBehavior === "event";
|
|
35481
35650
|
});
|
|
35651
|
+
const hasBreadcrumbs = computed(() => {
|
|
35652
|
+
var _a25;
|
|
35653
|
+
return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
|
|
35654
|
+
});
|
|
35482
35655
|
const getLabel = (label) => {
|
|
35483
35656
|
return addParamsToLabel(label, `'${currentQueryText.value}'`);
|
|
35484
35657
|
};
|
|
@@ -35486,7 +35659,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35486
35659
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
35487
35660
|
};
|
|
35488
35661
|
return (_ctx, _cache) => {
|
|
35489
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35662
|
+
return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
35490
35663
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
35491
35664
|
var _a25;
|
|
35492
35665
|
return openBlock(), createElementBlock("span", {
|
|
@@ -35505,16 +35678,16 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35505
35678
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
35506
35679
|
]);
|
|
35507
35680
|
}), 128))
|
|
35508
|
-
]);
|
|
35681
|
+
])) : createCommentVNode("", true);
|
|
35509
35682
|
};
|
|
35510
35683
|
}
|
|
35511
35684
|
});
|
|
35512
|
-
const _hoisted_1$
|
|
35685
|
+
const _hoisted_1$J = {
|
|
35513
35686
|
key: 0,
|
|
35514
35687
|
id: "lupa-search-result-filters",
|
|
35515
35688
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
35516
35689
|
};
|
|
35517
|
-
const _sfc_main$
|
|
35690
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
35518
35691
|
__name: "FiltersTopDropdown",
|
|
35519
35692
|
props: {
|
|
35520
35693
|
options: {}
|
|
@@ -35522,6 +35695,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
35522
35695
|
emits: ["filter"],
|
|
35523
35696
|
setup(__props, { emit: __emit }) {
|
|
35524
35697
|
const props = __props;
|
|
35698
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35525
35699
|
const emit2 = __emit;
|
|
35526
35700
|
const filter = () => {
|
|
35527
35701
|
emit2("filter");
|
|
@@ -35531,21 +35705,33 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
35531
35705
|
return (_a25 = props.options.visible) != null ? _a25 : true;
|
|
35532
35706
|
});
|
|
35533
35707
|
return (_ctx, _cache) => {
|
|
35534
|
-
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35708
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
35709
|
+
createVNode(_sfc_main$18, {
|
|
35710
|
+
class: "lupa-skeleton-top-dropdown-filters",
|
|
35711
|
+
count: 1,
|
|
35712
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35713
|
+
loading: unref(loadingFacets)
|
|
35714
|
+
}, {
|
|
35715
|
+
default: withCtx(() => {
|
|
35716
|
+
var _a25;
|
|
35717
|
+
return [
|
|
35718
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35719
|
+
key: 0,
|
|
35720
|
+
options: _ctx.options.facets,
|
|
35721
|
+
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
35722
|
+
clearable: true,
|
|
35723
|
+
onFilter: filter
|
|
35724
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35725
|
+
];
|
|
35726
|
+
}),
|
|
35727
|
+
_: 1
|
|
35728
|
+
}, 8, ["enabled", "loading"])
|
|
35543
35729
|
])) : createCommentVNode("", true);
|
|
35544
35730
|
};
|
|
35545
35731
|
}
|
|
35546
35732
|
});
|
|
35547
|
-
const _hoisted_1$
|
|
35548
|
-
const _sfc_main$
|
|
35733
|
+
const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
|
|
35734
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
35549
35735
|
__name: "SearchResultsLayoutSelection",
|
|
35550
35736
|
setup(__props) {
|
|
35551
35737
|
const searchResultStore = useSearchResultStore();
|
|
@@ -35556,7 +35742,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
35556
35742
|
searchResultStore.setLayout(layout2);
|
|
35557
35743
|
};
|
|
35558
35744
|
return (_ctx, _cache) => {
|
|
35559
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35745
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
35560
35746
|
createBaseVNode("div", {
|
|
35561
35747
|
class: normalizeClass([
|
|
35562
35748
|
"lupa-layout-selection-grid",
|
|
@@ -35578,11 +35764,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
35578
35764
|
};
|
|
35579
35765
|
}
|
|
35580
35766
|
});
|
|
35581
|
-
const _hoisted_1$
|
|
35767
|
+
const _hoisted_1$H = {
|
|
35582
35768
|
key: 0,
|
|
35583
35769
|
class: "lupa-mobile-toggle-filter-count"
|
|
35584
35770
|
};
|
|
35585
|
-
const _sfc_main$
|
|
35771
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35586
35772
|
__name: "SearchResultsMobileToggle",
|
|
35587
35773
|
setup(__props) {
|
|
35588
35774
|
const {
|
|
@@ -35604,12 +35790,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
35604
35790
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35605
35791
|
}, [
|
|
35606
35792
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35607
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35793
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35608
35794
|
], 2);
|
|
35609
35795
|
};
|
|
35610
35796
|
}
|
|
35611
35797
|
});
|
|
35612
|
-
const _sfc_main$
|
|
35798
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
35613
35799
|
__name: "SearchResultsMobileFilterClose",
|
|
35614
35800
|
props: {
|
|
35615
35801
|
label: {}
|
|
@@ -35629,7 +35815,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
35629
35815
|
};
|
|
35630
35816
|
}
|
|
35631
35817
|
});
|
|
35632
|
-
const _hoisted_1$
|
|
35818
|
+
const _hoisted_1$G = {
|
|
35633
35819
|
key: 0,
|
|
35634
35820
|
id: "lupa-search-results-page-select",
|
|
35635
35821
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -35642,7 +35828,7 @@ const _hoisted_3$o = {
|
|
|
35642
35828
|
key: 0,
|
|
35643
35829
|
class: "lupa-page-number-separator"
|
|
35644
35830
|
};
|
|
35645
|
-
const _sfc_main$
|
|
35831
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
35646
35832
|
__name: "SearchResultsPageSelect",
|
|
35647
35833
|
props: {
|
|
35648
35834
|
lastPageLabel: {},
|
|
@@ -35737,7 +35923,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
35737
35923
|
};
|
|
35738
35924
|
return (_ctx, _cache) => {
|
|
35739
35925
|
var _a25;
|
|
35740
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35926
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
35741
35927
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35742
35928
|
key: 0,
|
|
35743
35929
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35812,7 +35998,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
35812
35998
|
};
|
|
35813
35999
|
}
|
|
35814
36000
|
});
|
|
35815
|
-
const _hoisted_1$
|
|
36001
|
+
const _hoisted_1$F = {
|
|
35816
36002
|
id: "lupa-search-results-page-size",
|
|
35817
36003
|
"data-cy": "lupa-search-results-page-size"
|
|
35818
36004
|
};
|
|
@@ -35823,7 +36009,7 @@ const _hoisted_3$n = {
|
|
|
35823
36009
|
};
|
|
35824
36010
|
const _hoisted_4$g = ["value", "aria-label"];
|
|
35825
36011
|
const _hoisted_5$b = ["value"];
|
|
35826
|
-
const _sfc_main$
|
|
36012
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
35827
36013
|
__name: "SearchResultsPageSize",
|
|
35828
36014
|
props: {
|
|
35829
36015
|
labels: {},
|
|
@@ -35854,7 +36040,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
35854
36040
|
};
|
|
35855
36041
|
return (_ctx, _cache) => {
|
|
35856
36042
|
var _a25, _b25, _c;
|
|
35857
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36043
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
35858
36044
|
createBaseVNode("div", _hoisted_2$v, [
|
|
35859
36045
|
createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
35860
36046
|
createBaseVNode("select", {
|
|
@@ -35946,7 +36132,7 @@ const useSorting = () => {
|
|
|
35946
36132
|
setSortValue
|
|
35947
36133
|
};
|
|
35948
36134
|
};
|
|
35949
|
-
const _hoisted_1$
|
|
36135
|
+
const _hoisted_1$E = {
|
|
35950
36136
|
key: 0,
|
|
35951
36137
|
id: "lupa-search-results-sort",
|
|
35952
36138
|
class: "lupa-search-results-sort"
|
|
@@ -35958,7 +36144,7 @@ const _hoisted_3$m = {
|
|
|
35958
36144
|
};
|
|
35959
36145
|
const _hoisted_4$f = ["aria-label"];
|
|
35960
36146
|
const _hoisted_5$a = ["value"];
|
|
35961
|
-
const _sfc_main$
|
|
36147
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35962
36148
|
__name: "SearchResultsSort",
|
|
35963
36149
|
setup(__props) {
|
|
35964
36150
|
const {
|
|
@@ -35979,7 +36165,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
35979
36165
|
});
|
|
35980
36166
|
return (_ctx, _cache) => {
|
|
35981
36167
|
var _a25, _b25;
|
|
35982
|
-
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36168
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
35983
36169
|
createBaseVNode("div", _hoisted_2$u, [
|
|
35984
36170
|
createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
35985
36171
|
withDirectives(createBaseVNode("select", {
|
|
@@ -36006,7 +36192,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
36006
36192
|
};
|
|
36007
36193
|
}
|
|
36008
36194
|
});
|
|
36009
|
-
const _sfc_main$
|
|
36195
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
36010
36196
|
__name: "SearchResultsSortDrawerToggle",
|
|
36011
36197
|
setup(__props) {
|
|
36012
36198
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -36022,7 +36208,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
36022
36208
|
};
|
|
36023
36209
|
}
|
|
36024
36210
|
});
|
|
36025
|
-
const _hoisted_1$
|
|
36211
|
+
const _hoisted_1$D = { class: "lupa-toolbar-left" };
|
|
36026
36212
|
const _hoisted_2$t = {
|
|
36027
36213
|
key: 0,
|
|
36028
36214
|
class: "lupa-toolbar-right-title"
|
|
@@ -36037,7 +36223,7 @@ const _hoisted_7$2 = {
|
|
|
36037
36223
|
};
|
|
36038
36224
|
const _hoisted_8 = { key: 2 };
|
|
36039
36225
|
const _hoisted_9 = { key: 4 };
|
|
36040
|
-
const _sfc_main$
|
|
36226
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
36041
36227
|
__name: "SearchResultsToolbar",
|
|
36042
36228
|
props: {
|
|
36043
36229
|
options: {},
|
|
@@ -36150,16 +36336,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36150
36336
|
id: "lupa-search-results-toolbar",
|
|
36151
36337
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
36152
36338
|
}, [
|
|
36153
|
-
createBaseVNode("div", _hoisted_1$
|
|
36339
|
+
createBaseVNode("div", _hoisted_1$D, [
|
|
36154
36340
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
36155
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
36156
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
36341
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
36342
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
36157
36343
|
key: 3,
|
|
36158
36344
|
label: searchSummaryLabel.value,
|
|
36159
36345
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
36160
36346
|
onClear: handleClearAll
|
|
36161
36347
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
36162
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
36348
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
36163
36349
|
key: 5,
|
|
36164
36350
|
options: paginationOptions.value.pageSelect,
|
|
36165
36351
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -36168,19 +36354,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36168
36354
|
]),
|
|
36169
36355
|
createBaseVNode("div", _hoisted_6$4, [
|
|
36170
36356
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
36171
|
-
createVNode(_sfc_main$
|
|
36172
|
-
createVNode(_sfc_main$
|
|
36173
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
36357
|
+
createVNode(_sfc_main$O),
|
|
36358
|
+
createVNode(_sfc_main$J),
|
|
36359
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
|
|
36174
36360
|
key: 1,
|
|
36175
36361
|
options: paginationOptions.value.pageSize,
|
|
36176
36362
|
labels: paginationOptions.value.labels
|
|
36177
36363
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
36178
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
36364
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
36179
36365
|
key: 3,
|
|
36180
36366
|
options: sortOptions.value,
|
|
36181
36367
|
callbacks: callbacks.value
|
|
36182
36368
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
36183
|
-
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
36369
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
36184
36370
|
key: 5,
|
|
36185
36371
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
36186
36372
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -36189,7 +36375,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36189
36375
|
};
|
|
36190
36376
|
}
|
|
36191
36377
|
});
|
|
36192
|
-
const _sfc_main$
|
|
36378
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
36193
36379
|
__name: "SearchResultsProductImage",
|
|
36194
36380
|
props: {
|
|
36195
36381
|
item: {},
|
|
@@ -36197,7 +36383,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
36197
36383
|
},
|
|
36198
36384
|
setup(__props) {
|
|
36199
36385
|
return (_ctx, _cache) => {
|
|
36200
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36386
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
36201
36387
|
item: _ctx.item,
|
|
36202
36388
|
options: _ctx.options,
|
|
36203
36389
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -36206,7 +36392,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
36206
36392
|
};
|
|
36207
36393
|
}
|
|
36208
36394
|
});
|
|
36209
|
-
const _hoisted_1$
|
|
36395
|
+
const _hoisted_1$C = ["title", "innerHTML"];
|
|
36210
36396
|
const _hoisted_2$s = ["title"];
|
|
36211
36397
|
const _hoisted_3$k = ["href", "innerHTML"];
|
|
36212
36398
|
const _hoisted_4$d = ["title"];
|
|
@@ -36215,7 +36401,7 @@ const _hoisted_5$8 = {
|
|
|
36215
36401
|
class: "lupa-search-results-product-title-text"
|
|
36216
36402
|
};
|
|
36217
36403
|
const _hoisted_6$3 = ["href"];
|
|
36218
|
-
const _sfc_main$
|
|
36404
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
36219
36405
|
__name: "SearchResultsProductTitle",
|
|
36220
36406
|
props: {
|
|
36221
36407
|
item: {},
|
|
@@ -36252,7 +36438,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
36252
36438
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36253
36439
|
title: sanitizedTitle.value,
|
|
36254
36440
|
innerHTML: sanitizedTitle.value
|
|
36255
|
-
}, null, 12, _hoisted_1$
|
|
36441
|
+
}, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
36256
36442
|
key: 1,
|
|
36257
36443
|
class: "lupa-search-results-product-title",
|
|
36258
36444
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -36281,8 +36467,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
36281
36467
|
};
|
|
36282
36468
|
}
|
|
36283
36469
|
});
|
|
36284
|
-
const _hoisted_1$
|
|
36285
|
-
const _sfc_main$
|
|
36470
|
+
const _hoisted_1$B = ["innerHTML"];
|
|
36471
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
36286
36472
|
__name: "SearchResultsProductDescription",
|
|
36287
36473
|
props: {
|
|
36288
36474
|
item: {},
|
|
@@ -36309,7 +36495,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
36309
36495
|
class: "lupa-search-results-product-description",
|
|
36310
36496
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36311
36497
|
innerHTML: sanitizedDescription.value
|
|
36312
|
-
}, null, 12, _hoisted_1$
|
|
36498
|
+
}, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
|
|
36313
36499
|
key: 1,
|
|
36314
36500
|
class: "lupa-search-results-product-description",
|
|
36315
36501
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -36317,7 +36503,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
36317
36503
|
};
|
|
36318
36504
|
}
|
|
36319
36505
|
});
|
|
36320
|
-
const _hoisted_1$
|
|
36506
|
+
const _hoisted_1$A = { id: "lupa-search-results-rating" };
|
|
36321
36507
|
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
36322
36508
|
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
36323
36509
|
const _hoisted_4$c = ["innerHTML"];
|
|
@@ -36325,7 +36511,7 @@ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
|
36325
36511
|
const _hoisted_6$2 = ["innerHTML"];
|
|
36326
36512
|
const _hoisted_7$1 = ["href"];
|
|
36327
36513
|
const STAR_COUNT = 5;
|
|
36328
|
-
const _sfc_main$
|
|
36514
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
36329
36515
|
__name: "SearchResultsProductRating",
|
|
36330
36516
|
props: {
|
|
36331
36517
|
item: {},
|
|
@@ -36362,7 +36548,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
36362
36548
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
36363
36549
|
});
|
|
36364
36550
|
return (_ctx, _cache) => {
|
|
36365
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36551
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
36366
36552
|
createBaseVNode("div", _hoisted_2$r, [
|
|
36367
36553
|
createBaseVNode("div", _hoisted_3$j, [
|
|
36368
36554
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -36396,11 +36582,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
36396
36582
|
};
|
|
36397
36583
|
}
|
|
36398
36584
|
});
|
|
36399
|
-
const _hoisted_1$
|
|
36585
|
+
const _hoisted_1$z = {
|
|
36400
36586
|
class: "lupa-search-results-product-regular-price",
|
|
36401
36587
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
36402
36588
|
};
|
|
36403
|
-
const _sfc_main$
|
|
36589
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
36404
36590
|
__name: "SearchResultsProductRegularPrice",
|
|
36405
36591
|
props: {
|
|
36406
36592
|
item: {},
|
|
@@ -36422,11 +36608,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
36422
36608
|
);
|
|
36423
36609
|
});
|
|
36424
36610
|
return (_ctx, _cache) => {
|
|
36425
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36611
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
|
|
36426
36612
|
};
|
|
36427
36613
|
}
|
|
36428
36614
|
});
|
|
36429
|
-
const _sfc_main$
|
|
36615
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
36430
36616
|
__name: "SearchResultsProductPrice",
|
|
36431
36617
|
props: {
|
|
36432
36618
|
item: {},
|
|
@@ -36460,12 +36646,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
36460
36646
|
};
|
|
36461
36647
|
}
|
|
36462
36648
|
});
|
|
36463
|
-
const _hoisted_1$
|
|
36649
|
+
const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
36464
36650
|
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
36465
36651
|
const _hoisted_3$i = ["disabled"];
|
|
36466
36652
|
const _hoisted_4$b = ["href"];
|
|
36467
36653
|
const _hoisted_5$6 = ["id", "disabled"];
|
|
36468
|
-
const _sfc_main$
|
|
36654
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
36469
36655
|
__name: "SearchResultsProductAddToCart",
|
|
36470
36656
|
props: {
|
|
36471
36657
|
item: {},
|
|
@@ -36524,7 +36710,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
36524
36710
|
loading.value = false;
|
|
36525
36711
|
});
|
|
36526
36712
|
return (_ctx, _cache) => {
|
|
36527
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36713
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
36528
36714
|
createBaseVNode("div", _hoisted_2$q, [
|
|
36529
36715
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
36530
36716
|
key: 0,
|
|
@@ -36547,12 +36733,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
36547
36733
|
};
|
|
36548
36734
|
}
|
|
36549
36735
|
});
|
|
36550
|
-
const _hoisted_1$
|
|
36736
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
36551
36737
|
const _hoisted_2$p = { key: 0 };
|
|
36552
36738
|
const _hoisted_3$h = { key: 1 };
|
|
36553
36739
|
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
36554
36740
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
36555
|
-
const _sfc_main$
|
|
36741
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
36556
36742
|
__name: "SearchResultsProductCustom",
|
|
36557
36743
|
props: {
|
|
36558
36744
|
item: {},
|
|
@@ -36594,7 +36780,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
36594
36780
|
key: 0,
|
|
36595
36781
|
class: className.value,
|
|
36596
36782
|
innerHTML: text.value
|
|
36597
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36783
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
36598
36784
|
key: 1,
|
|
36599
36785
|
class: className.value
|
|
36600
36786
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
@@ -36606,8 +36792,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
36606
36792
|
};
|
|
36607
36793
|
}
|
|
36608
36794
|
});
|
|
36609
|
-
const _hoisted_1$
|
|
36610
|
-
const _sfc_main$
|
|
36795
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
36796
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
36611
36797
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
36612
36798
|
props: {
|
|
36613
36799
|
item: {},
|
|
@@ -36643,15 +36829,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
36643
36829
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
36644
36830
|
class: className.value,
|
|
36645
36831
|
innerHTML: text.value
|
|
36646
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36832
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
|
|
36647
36833
|
};
|
|
36648
36834
|
}
|
|
36649
36835
|
});
|
|
36650
|
-
const _hoisted_1$
|
|
36836
|
+
const _hoisted_1$v = { id: "lupa-search-results-rating" };
|
|
36651
36837
|
const _hoisted_2$o = ["innerHTML"];
|
|
36652
36838
|
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
36653
36839
|
const _hoisted_4$9 = ["href"];
|
|
36654
|
-
const _sfc_main$
|
|
36840
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
36655
36841
|
__name: "SearchResultsProductSingleStarRating",
|
|
36656
36842
|
props: {
|
|
36657
36843
|
item: {},
|
|
@@ -36679,7 +36865,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
36679
36865
|
return RATING_STAR_HTML;
|
|
36680
36866
|
});
|
|
36681
36867
|
return (_ctx, _cache) => {
|
|
36682
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36868
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
36683
36869
|
createBaseVNode("div", {
|
|
36684
36870
|
innerHTML: star.value,
|
|
36685
36871
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -36695,19 +36881,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
36695
36881
|
});
|
|
36696
36882
|
const __default__ = {
|
|
36697
36883
|
components: {
|
|
36698
|
-
SearchResultsProductImage: _sfc_main$
|
|
36699
|
-
SearchResultsProductTitle: _sfc_main$
|
|
36700
|
-
SearchResultsProductDescription: _sfc_main$
|
|
36701
|
-
SearchResultsProductRating: _sfc_main$
|
|
36702
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
36703
|
-
SearchResultsProductPrice: _sfc_main$
|
|
36704
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
36705
|
-
SearchResultsProductCustom: _sfc_main$
|
|
36706
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
36707
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
36708
|
-
}
|
|
36709
|
-
};
|
|
36710
|
-
const _sfc_main$
|
|
36884
|
+
SearchResultsProductImage: _sfc_main$H,
|
|
36885
|
+
SearchResultsProductTitle: _sfc_main$G,
|
|
36886
|
+
SearchResultsProductDescription: _sfc_main$F,
|
|
36887
|
+
SearchResultsProductRating: _sfc_main$E,
|
|
36888
|
+
SearchResultsProductRegularPrice: _sfc_main$D,
|
|
36889
|
+
SearchResultsProductPrice: _sfc_main$C,
|
|
36890
|
+
SearchResultsProductAddToCart: _sfc_main$B,
|
|
36891
|
+
SearchResultsProductCustom: _sfc_main$A,
|
|
36892
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$z,
|
|
36893
|
+
SearchResultsProductSingleStarRating: _sfc_main$y
|
|
36894
|
+
}
|
|
36895
|
+
};
|
|
36896
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36711
36897
|
__name: "SearchResultsProductCardElement",
|
|
36712
36898
|
props: {
|
|
36713
36899
|
item: {},
|
|
@@ -36785,13 +36971,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
36785
36971
|
};
|
|
36786
36972
|
}
|
|
36787
36973
|
}));
|
|
36788
|
-
const _hoisted_1$
|
|
36974
|
+
const _hoisted_1$u = ["href"];
|
|
36789
36975
|
const _hoisted_2$n = {
|
|
36790
36976
|
key: 0,
|
|
36791
36977
|
class: "lupa-out-of-stock"
|
|
36792
36978
|
};
|
|
36793
36979
|
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
36794
|
-
const _sfc_main$
|
|
36980
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
36795
36981
|
__name: "SearchResultsProductCard",
|
|
36796
36982
|
props: {
|
|
36797
36983
|
product: {},
|
|
@@ -36968,7 +37154,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36968
37154
|
default: withCtx(() => {
|
|
36969
37155
|
var _a25;
|
|
36970
37156
|
return [
|
|
36971
|
-
createVNode(_sfc_main$
|
|
37157
|
+
createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36972
37158
|
createBaseVNode("div", {
|
|
36973
37159
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36974
37160
|
}, [
|
|
@@ -36978,7 +37164,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36978
37164
|
onClick: handleNavigation
|
|
36979
37165
|
}, [
|
|
36980
37166
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36981
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37167
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
36982
37168
|
class: "lupa-search-results-product-element",
|
|
36983
37169
|
item: _ctx.product,
|
|
36984
37170
|
element,
|
|
@@ -36989,16 +37175,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36989
37175
|
onProductEvent: handleProductEvent
|
|
36990
37176
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36991
37177
|
}), 128)),
|
|
36992
|
-
createVNode(_sfc_main$
|
|
37178
|
+
createVNode(_sfc_main$1k, {
|
|
36993
37179
|
options: badgesOptions.value,
|
|
36994
37180
|
position: "image",
|
|
36995
37181
|
class: "lupa-image-badges"
|
|
36996
37182
|
}, null, 8, ["options"]),
|
|
36997
37183
|
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
36998
|
-
], 8, _hoisted_1$
|
|
37184
|
+
], 8, _hoisted_1$u),
|
|
36999
37185
|
createBaseVNode("div", _hoisted_3$f, [
|
|
37000
37186
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
37001
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37187
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37002
37188
|
class: "lupa-search-results-product-element",
|
|
37003
37189
|
item: _ctx.product,
|
|
37004
37190
|
element,
|
|
@@ -37016,7 +37202,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37016
37202
|
class: normalizeClass("lupa-element-group-" + group)
|
|
37017
37203
|
}, [
|
|
37018
37204
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
37019
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37205
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37020
37206
|
class: "lupa-search-results-product-element",
|
|
37021
37207
|
item: _ctx.product,
|
|
37022
37208
|
element,
|
|
@@ -37037,7 +37223,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37037
37223
|
};
|
|
37038
37224
|
}
|
|
37039
37225
|
});
|
|
37040
|
-
const _hoisted_1$
|
|
37226
|
+
const _hoisted_1$t = {
|
|
37041
37227
|
id: "lupa-search-results-similar-queries",
|
|
37042
37228
|
"data-cy": "lupa-search-results-similar-queries"
|
|
37043
37229
|
};
|
|
@@ -37053,7 +37239,7 @@ const _hoisted_7 = {
|
|
|
37053
37239
|
class: "lupa-products",
|
|
37054
37240
|
"data-cy": "lupa-products"
|
|
37055
37241
|
};
|
|
37056
|
-
const _sfc_main$
|
|
37242
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
37057
37243
|
__name: "SearchResultsSimilarQueries",
|
|
37058
37244
|
props: {
|
|
37059
37245
|
labels: {},
|
|
@@ -37091,7 +37277,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37091
37277
|
};
|
|
37092
37278
|
};
|
|
37093
37279
|
return (_ctx, _cache) => {
|
|
37094
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37280
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
37095
37281
|
createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
37096
37282
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
37097
37283
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -37111,7 +37297,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37111
37297
|
]),
|
|
37112
37298
|
createBaseVNode("div", _hoisted_7, [
|
|
37113
37299
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
37114
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37300
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37115
37301
|
style: normalizeStyle(_ctx.columnSize),
|
|
37116
37302
|
key: getDocumentKey(index2, product),
|
|
37117
37303
|
product,
|
|
@@ -37126,7 +37312,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37126
37312
|
};
|
|
37127
37313
|
}
|
|
37128
37314
|
});
|
|
37129
|
-
const _hoisted_1$
|
|
37315
|
+
const _hoisted_1$s = {
|
|
37130
37316
|
key: 0,
|
|
37131
37317
|
class: "lupa-results-additional-panel"
|
|
37132
37318
|
};
|
|
@@ -37134,7 +37320,7 @@ const _hoisted_2$l = {
|
|
|
37134
37320
|
class: "lupa-results-additional-panel-items",
|
|
37135
37321
|
"data-cy": "lupa-results-additional-panel-items"
|
|
37136
37322
|
};
|
|
37137
|
-
const _sfc_main$
|
|
37323
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
37138
37324
|
__name: "AdditionalPanel",
|
|
37139
37325
|
props: {
|
|
37140
37326
|
panel: {},
|
|
@@ -37207,10 +37393,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
37207
37393
|
handleQueryChange();
|
|
37208
37394
|
});
|
|
37209
37395
|
return (_ctx, _cache) => {
|
|
37210
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37396
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
37211
37397
|
createBaseVNode("div", _hoisted_2$l, [
|
|
37212
37398
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
37213
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37399
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37214
37400
|
key: index,
|
|
37215
37401
|
product: item,
|
|
37216
37402
|
options: _ctx.panel,
|
|
@@ -37228,11 +37414,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
37228
37414
|
};
|
|
37229
37415
|
}
|
|
37230
37416
|
});
|
|
37231
|
-
const _hoisted_1$
|
|
37417
|
+
const _hoisted_1$r = {
|
|
37232
37418
|
key: 0,
|
|
37233
37419
|
class: "lupa-results-additional-panels"
|
|
37234
37420
|
};
|
|
37235
|
-
const _sfc_main$
|
|
37421
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
37236
37422
|
__name: "AdditionalPanels",
|
|
37237
37423
|
props: {
|
|
37238
37424
|
options: {},
|
|
@@ -37249,9 +37435,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
37249
37435
|
return locationPanels.value.length > 0;
|
|
37250
37436
|
});
|
|
37251
37437
|
return (_ctx, _cache) => {
|
|
37252
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37438
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
37253
37439
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
37254
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37440
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
37255
37441
|
key: panel.queryKey,
|
|
37256
37442
|
panel,
|
|
37257
37443
|
options: _ctx.sdkOptions
|
|
@@ -37268,11 +37454,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
37268
37454
|
}
|
|
37269
37455
|
return target2;
|
|
37270
37456
|
};
|
|
37271
|
-
const _sfc_main$
|
|
37272
|
-
const _hoisted_1$
|
|
37457
|
+
const _sfc_main$s = {};
|
|
37458
|
+
const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
|
|
37273
37459
|
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
37274
37460
|
function _sfc_render(_ctx, _cache) {
|
|
37275
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37461
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
37276
37462
|
createBaseVNode("div", _hoisted_2$k, [
|
|
37277
37463
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
37278
37464
|
return createBaseVNode("div", { key: x });
|
|
@@ -37280,8 +37466,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
37280
37466
|
])
|
|
37281
37467
|
]);
|
|
37282
37468
|
}
|
|
37283
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37284
|
-
const _hoisted_1$
|
|
37469
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
37470
|
+
const _hoisted_1$p = {
|
|
37285
37471
|
id: "lupa-search-results-similar-results",
|
|
37286
37472
|
"data-cy": "lupa-search-results-similar-results"
|
|
37287
37473
|
};
|
|
@@ -37290,7 +37476,7 @@ const _hoisted_3$d = {
|
|
|
37290
37476
|
class: "lupa-products",
|
|
37291
37477
|
"data-cy": "lupa-products"
|
|
37292
37478
|
};
|
|
37293
|
-
const _sfc_main$
|
|
37479
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
37294
37480
|
__name: "SearchResultsSimilarResults",
|
|
37295
37481
|
props: {
|
|
37296
37482
|
columnSize: {},
|
|
@@ -37311,11 +37497,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
37311
37497
|
};
|
|
37312
37498
|
});
|
|
37313
37499
|
return (_ctx, _cache) => {
|
|
37314
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37500
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
37315
37501
|
createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
37316
37502
|
createBaseVNode("div", _hoisted_3$d, [
|
|
37317
37503
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
37318
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37504
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37319
37505
|
style: normalizeStyle(_ctx.columnSize),
|
|
37320
37506
|
key: getDocumentKey(index, product),
|
|
37321
37507
|
product,
|
|
@@ -37436,7 +37622,7 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
|
|
|
37436
37622
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
37437
37623
|
}
|
|
37438
37624
|
});
|
|
37439
|
-
const _hoisted_1$
|
|
37625
|
+
const _hoisted_1$o = { class: "lupa-related-query-item" };
|
|
37440
37626
|
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
37441
37627
|
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
37442
37628
|
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
@@ -37444,7 +37630,7 @@ const _hoisted_5$3 = {
|
|
|
37444
37630
|
key: 0,
|
|
37445
37631
|
class: "lupa-related-query-count"
|
|
37446
37632
|
};
|
|
37447
|
-
const _sfc_main$
|
|
37633
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
37448
37634
|
__name: "RelatedQueryPanel",
|
|
37449
37635
|
props: {
|
|
37450
37636
|
query: {},
|
|
@@ -37541,9 +37727,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
37541
37727
|
});
|
|
37542
37728
|
return (_ctx, _cache) => {
|
|
37543
37729
|
var _a25;
|
|
37544
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37730
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
37545
37731
|
createBaseVNode("div", _hoisted_2$i, [
|
|
37546
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37732
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37547
37733
|
key: 0,
|
|
37548
37734
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37549
37735
|
"image-class": "lupa-related-query-image",
|
|
@@ -37559,7 +37745,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
37559
37745
|
};
|
|
37560
37746
|
}
|
|
37561
37747
|
});
|
|
37562
|
-
const _hoisted_1$
|
|
37748
|
+
const _hoisted_1$n = {
|
|
37563
37749
|
key: 0,
|
|
37564
37750
|
class: "lupa-related-queries"
|
|
37565
37751
|
};
|
|
@@ -37568,7 +37754,7 @@ const _hoisted_2$h = {
|
|
|
37568
37754
|
class: "lupa-related-queries-title"
|
|
37569
37755
|
};
|
|
37570
37756
|
const _hoisted_3$b = ["onClick"];
|
|
37571
|
-
const _sfc_main$
|
|
37757
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
37572
37758
|
__name: "RelatedQueries",
|
|
37573
37759
|
props: {
|
|
37574
37760
|
options: {}
|
|
@@ -37662,7 +37848,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
37662
37848
|
};
|
|
37663
37849
|
return (_ctx, _cache) => {
|
|
37664
37850
|
var _a25, _b25, _c, _d;
|
|
37665
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37851
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
37666
37852
|
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$h, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
37667
37853
|
createBaseVNode("ul", null, [
|
|
37668
37854
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37673,7 +37859,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
37673
37859
|
createBaseVNode("a", {
|
|
37674
37860
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37675
37861
|
}, [
|
|
37676
|
-
createVNode(_sfc_main$
|
|
37862
|
+
createVNode(_sfc_main$q, {
|
|
37677
37863
|
"source-key": query.key,
|
|
37678
37864
|
options: _ctx.options,
|
|
37679
37865
|
query: query.value,
|
|
@@ -37717,13 +37903,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
|
37717
37903
|
}
|
|
37718
37904
|
return null;
|
|
37719
37905
|
};
|
|
37720
|
-
const _hoisted_1$
|
|
37906
|
+
const _hoisted_1$m = {
|
|
37721
37907
|
key: 0,
|
|
37722
37908
|
class: "lupa-redirection-suggestion"
|
|
37723
37909
|
};
|
|
37724
37910
|
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
37725
37911
|
const _hoisted_3$a = ["href"];
|
|
37726
|
-
const _sfc_main$
|
|
37912
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
37727
37913
|
__name: "RedirectionSuggestions",
|
|
37728
37914
|
props: {
|
|
37729
37915
|
options: {}
|
|
@@ -37746,7 +37932,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37746
37932
|
)
|
|
37747
37933
|
);
|
|
37748
37934
|
return (_ctx, _cache) => {
|
|
37749
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37935
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
37750
37936
|
createBaseVNode("h4", _hoisted_2$g, [
|
|
37751
37937
|
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
37752
37938
|
])
|
|
@@ -37754,11 +37940,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37754
37940
|
};
|
|
37755
37941
|
}
|
|
37756
37942
|
});
|
|
37757
|
-
const _hoisted_1$
|
|
37943
|
+
const _hoisted_1$l = {
|
|
37758
37944
|
key: 0,
|
|
37759
37945
|
class: "lupa-refiners-loading-notice"
|
|
37760
37946
|
};
|
|
37761
|
-
const _sfc_main$
|
|
37947
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37762
37948
|
__name: "RefinersLoadingNotice",
|
|
37763
37949
|
props: {
|
|
37764
37950
|
labels: {}
|
|
@@ -37769,14 +37955,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
37769
37955
|
const props = __props;
|
|
37770
37956
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37771
37957
|
return (_ctx, _cache) => {
|
|
37772
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37958
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
37773
37959
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37774
37960
|
createVNode(Spinner)
|
|
37775
37961
|
])) : createCommentVNode("", true);
|
|
37776
37962
|
};
|
|
37777
37963
|
}
|
|
37778
37964
|
});
|
|
37779
|
-
const _hoisted_1$
|
|
37965
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
37780
37966
|
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
37781
37967
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
37782
37968
|
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
@@ -37784,7 +37970,7 @@ const _hoisted_5$2 = {
|
|
|
37784
37970
|
key: 0,
|
|
37785
37971
|
class: "lupa-related-query-count"
|
|
37786
37972
|
};
|
|
37787
|
-
const _sfc_main$
|
|
37973
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37788
37974
|
__name: "RelatedQueryPanelApi",
|
|
37789
37975
|
props: {
|
|
37790
37976
|
relatedQuery: {},
|
|
@@ -37816,9 +38002,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
37816
38002
|
});
|
|
37817
38003
|
return (_ctx, _cache) => {
|
|
37818
38004
|
var _a25;
|
|
37819
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
38005
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37820
38006
|
createBaseVNode("div", _hoisted_2$f, [
|
|
37821
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
38007
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37822
38008
|
key: 0,
|
|
37823
38009
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37824
38010
|
"image-class": "lupa-related-query-image",
|
|
@@ -37834,7 +38020,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
37834
38020
|
};
|
|
37835
38021
|
}
|
|
37836
38022
|
});
|
|
37837
|
-
const _hoisted_1$
|
|
38023
|
+
const _hoisted_1$j = {
|
|
37838
38024
|
key: 0,
|
|
37839
38025
|
class: "lupa-related-queries"
|
|
37840
38026
|
};
|
|
@@ -37843,7 +38029,7 @@ const _hoisted_2$e = {
|
|
|
37843
38029
|
class: "lupa-related-queries-title"
|
|
37844
38030
|
};
|
|
37845
38031
|
const _hoisted_3$8 = ["onClick"];
|
|
37846
|
-
const _sfc_main$
|
|
38032
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37847
38033
|
__name: "RelatedQueriesApi",
|
|
37848
38034
|
props: {
|
|
37849
38035
|
options: {}
|
|
@@ -37895,7 +38081,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37895
38081
|
};
|
|
37896
38082
|
return (_ctx, _cache) => {
|
|
37897
38083
|
var _a25, _b25, _c, _d;
|
|
37898
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38084
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37899
38085
|
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$e, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
37900
38086
|
createBaseVNode("ul", null, [
|
|
37901
38087
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37906,7 +38092,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37906
38092
|
createBaseVNode("a", {
|
|
37907
38093
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37908
38094
|
}, [
|
|
37909
|
-
createVNode(_sfc_main$
|
|
38095
|
+
createVNode(_sfc_main$m, {
|
|
37910
38096
|
relatedQuery: query,
|
|
37911
38097
|
options: _ctx.options
|
|
37912
38098
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -37918,9 +38104,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37918
38104
|
};
|
|
37919
38105
|
}
|
|
37920
38106
|
});
|
|
37921
|
-
const _hoisted_1$
|
|
38107
|
+
const _hoisted_1$i = { key: 0 };
|
|
37922
38108
|
const _hoisted_2$d = ["innerHTML"];
|
|
37923
|
-
const _sfc_main$
|
|
38109
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37924
38110
|
__name: "ZeroResults",
|
|
37925
38111
|
props: {
|
|
37926
38112
|
emptyResultsLabel: {},
|
|
@@ -37949,7 +38135,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37949
38135
|
});
|
|
37950
38136
|
return (_ctx, _cache) => {
|
|
37951
38137
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37952
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38138
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37953
38139
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37954
38140
|
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37955
38141
|
])) : createCommentVNode("", true),
|
|
@@ -37961,6 +38147,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37961
38147
|
};
|
|
37962
38148
|
}
|
|
37963
38149
|
});
|
|
38150
|
+
const _hoisted_1$h = {
|
|
38151
|
+
key: 1,
|
|
38152
|
+
class: "lupa-skeleton-grid"
|
|
38153
|
+
};
|
|
38154
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
38155
|
+
__name: "LoadingGrid",
|
|
38156
|
+
props: {
|
|
38157
|
+
style: {},
|
|
38158
|
+
enabled: { type: Boolean },
|
|
38159
|
+
loading: { type: Boolean },
|
|
38160
|
+
count: {}
|
|
38161
|
+
},
|
|
38162
|
+
setup(__props) {
|
|
38163
|
+
return (_ctx, _cache) => {
|
|
38164
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
38165
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
38166
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
38167
|
+
key: n,
|
|
38168
|
+
style: normalizeStyle(_ctx.style)
|
|
38169
|
+
}, null, 8, ["style"]);
|
|
38170
|
+
}), 128))
|
|
38171
|
+
]));
|
|
38172
|
+
};
|
|
38173
|
+
}
|
|
38174
|
+
});
|
|
37964
38175
|
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
37965
38176
|
const _hoisted_2$c = {
|
|
37966
38177
|
class: "lupa-products",
|
|
@@ -37972,12 +38183,12 @@ const _hoisted_3$7 = {
|
|
|
37972
38183
|
"data-cy": "lupa-no-results-in-page"
|
|
37973
38184
|
};
|
|
37974
38185
|
const _hoisted_4$5 = {
|
|
37975
|
-
key:
|
|
38186
|
+
key: 3,
|
|
37976
38187
|
class: "lupa-empty-results",
|
|
37977
38188
|
"data-cy": "lupa-no-results"
|
|
37978
38189
|
};
|
|
37979
|
-
const _hoisted_5$1 = { key:
|
|
37980
|
-
const _hoisted_6 = { key:
|
|
38190
|
+
const _hoisted_5$1 = { key: 4 };
|
|
38191
|
+
const _hoisted_6 = { key: 5 };
|
|
37981
38192
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37982
38193
|
__name: "SearchResultsProducts",
|
|
37983
38194
|
props: {
|
|
@@ -38001,6 +38212,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38001
38212
|
loading,
|
|
38002
38213
|
relatedQueriesApiEnabled
|
|
38003
38214
|
} = storeToRefs(searchResultStore);
|
|
38215
|
+
const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
|
|
38004
38216
|
const emit2 = __emit;
|
|
38005
38217
|
const productCardOptions = computed(() => {
|
|
38006
38218
|
return pick(props.options, [
|
|
@@ -38057,12 +38269,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38057
38269
|
});
|
|
38058
38270
|
const columnSize = computed(() => {
|
|
38059
38271
|
if (props.ssr) {
|
|
38060
|
-
return
|
|
38272
|
+
return {};
|
|
38061
38273
|
}
|
|
38062
38274
|
if (layout.value === ResultsLayoutEnum.LIST) {
|
|
38063
|
-
return
|
|
38275
|
+
return { width: "100%" };
|
|
38064
38276
|
}
|
|
38065
|
-
return
|
|
38277
|
+
return { width: `${100 / columnCount.value}%` };
|
|
38066
38278
|
});
|
|
38067
38279
|
const hasSimilarQueries = computed(() => {
|
|
38068
38280
|
var _a25;
|
|
@@ -38098,40 +38310,50 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38098
38310
|
emit2("filter");
|
|
38099
38311
|
};
|
|
38100
38312
|
return (_ctx, _cache) => {
|
|
38101
|
-
var _a25, _b25, _c;
|
|
38313
|
+
var _a25, _b25, _c, _d;
|
|
38102
38314
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
38103
|
-
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38315
|
+
!unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38104
38316
|
key: 0,
|
|
38105
38317
|
class: "lupa-loader"
|
|
38106
38318
|
})) : createCommentVNode("", true),
|
|
38107
|
-
createVNode(_sfc_main$
|
|
38319
|
+
createVNode(_sfc_main$o, {
|
|
38108
38320
|
options: _ctx.options.redirectionSuggestions
|
|
38109
38321
|
}, null, 8, ["options"]),
|
|
38110
|
-
createVNode(_sfc_main$
|
|
38322
|
+
createVNode(_sfc_main$t, {
|
|
38111
38323
|
options: _ctx.options,
|
|
38112
38324
|
location: "top",
|
|
38113
|
-
|
|
38114
|
-
}, null, 8, ["options", "
|
|
38115
|
-
|
|
38116
|
-
|
|
38117
|
-
|
|
38118
|
-
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38325
|
+
"sdk-options": _ctx.options.options
|
|
38326
|
+
}, null, 8, ["options", "sdk-options"]),
|
|
38327
|
+
createVNode(_sfc_main$18, {
|
|
38328
|
+
enabled: unref(relatedQueriesSkeletonEnabled),
|
|
38329
|
+
loading: unref(loading) || unref(loadingRelatedQueries),
|
|
38330
|
+
count: 1,
|
|
38331
|
+
class: "lupa-skeleton-related-queries"
|
|
38332
|
+
}, {
|
|
38333
|
+
default: withCtx(() => [
|
|
38334
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
|
|
38335
|
+
key: 0,
|
|
38336
|
+
options: _ctx.options.relatedQueries
|
|
38337
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38338
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
38339
|
+
key: 1,
|
|
38340
|
+
options: _ctx.options.relatedQueries
|
|
38341
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
38342
|
+
]),
|
|
38343
|
+
_: 1
|
|
38344
|
+
}, 8, ["enabled", "loading"]),
|
|
38345
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
38346
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
38125
38347
|
key: 0,
|
|
38126
38348
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
38127
38349
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38128
|
-
createVNode(_sfc_main$
|
|
38350
|
+
createVNode(_sfc_main$I, {
|
|
38129
38351
|
class: "lupa-toolbar-mobile",
|
|
38130
38352
|
options: _ctx.options,
|
|
38131
38353
|
"pagination-location": "top",
|
|
38132
38354
|
onFilter: filter
|
|
38133
38355
|
}, null, 8, ["options"]),
|
|
38134
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38356
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38135
38357
|
key: 1,
|
|
38136
38358
|
class: normalizeClass(currentFiltersClass.value),
|
|
38137
38359
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38139,13 +38361,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38139
38361
|
expandable: !desktopFiltersExpanded.value
|
|
38140
38362
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
38141
38363
|
], 64)) : createCommentVNode("", true),
|
|
38142
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
38143
|
-
createVNode(_sfc_main$
|
|
38364
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
38365
|
+
createVNode(_sfc_main$I, {
|
|
38144
38366
|
class: "lupa-toolbar-top",
|
|
38145
38367
|
options: _ctx.options,
|
|
38146
38368
|
"pagination-location": "top"
|
|
38147
38369
|
}, null, 8, ["options"]),
|
|
38148
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38370
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38149
38371
|
key: 0,
|
|
38150
38372
|
class: normalizeClass(currentFiltersClass.value),
|
|
38151
38373
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38153,22 +38375,32 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38153
38375
|
expandable: !desktopFiltersExpanded.value
|
|
38154
38376
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
38155
38377
|
createBaseVNode("div", _hoisted_2$c, [
|
|
38156
|
-
|
|
38157
|
-
|
|
38158
|
-
|
|
38159
|
-
|
|
38160
|
-
|
|
38161
|
-
|
|
38162
|
-
|
|
38163
|
-
|
|
38164
|
-
|
|
38165
|
-
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38171
|
-
|
|
38378
|
+
createVNode(_sfc_main$j, {
|
|
38379
|
+
enabled: unref(skeletonEnabled),
|
|
38380
|
+
loading: unref(loading),
|
|
38381
|
+
count: (_b25 = unref(limit)) != null ? _b25 : 12,
|
|
38382
|
+
style: normalizeStyle(columnSize.value)
|
|
38383
|
+
}, {
|
|
38384
|
+
default: withCtx(() => [
|
|
38385
|
+
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38386
|
+
return renderSlot(_ctx.$slots, "productCard", {
|
|
38387
|
+
key: getProductKeyAction(index, product),
|
|
38388
|
+
style: normalizeStyle(columnSize.value),
|
|
38389
|
+
product,
|
|
38390
|
+
options: productCardOptions.value
|
|
38391
|
+
});
|
|
38392
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38393
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
38394
|
+
key: getProductKeyAction(index, product),
|
|
38395
|
+
style: normalizeStyle(columnSize.value),
|
|
38396
|
+
product,
|
|
38397
|
+
options: productCardOptions.value,
|
|
38398
|
+
"analytics-metadata": clickMetadata.value
|
|
38399
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
38400
|
+
}), 128))
|
|
38401
|
+
]),
|
|
38402
|
+
_: 3
|
|
38403
|
+
}, 8, ["enabled", "loading", "count", "style"])
|
|
38172
38404
|
]),
|
|
38173
38405
|
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
38174
38406
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
@@ -38178,40 +38410,40 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38178
38410
|
onClick: goToFirstPage
|
|
38179
38411
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
38180
38412
|
])) : createCommentVNode("", true),
|
|
38181
|
-
createVNode(_sfc_main$
|
|
38413
|
+
createVNode(_sfc_main$I, {
|
|
38182
38414
|
class: "lupa-toolbar-bottom",
|
|
38183
38415
|
options: _ctx.options,
|
|
38184
38416
|
"pagination-location": "bottom"
|
|
38185
38417
|
}, null, 8, ["options"]),
|
|
38186
|
-
createVNode(_sfc_main$
|
|
38418
|
+
createVNode(_sfc_main$t, {
|
|
38187
38419
|
options: _ctx.options,
|
|
38188
38420
|
location: "bottom",
|
|
38189
|
-
|
|
38190
|
-
}, null, 8, ["options", "
|
|
38421
|
+
"sdk-options": _ctx.options.options
|
|
38422
|
+
}, null, 8, ["options", "sdk-options"])
|
|
38191
38423
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
38192
|
-
createVNode(_sfc_main$
|
|
38193
|
-
|
|
38194
|
-
|
|
38195
|
-
|
|
38196
|
-
|
|
38197
|
-
}, null, 8, ["
|
|
38424
|
+
createVNode(_sfc_main$k, {
|
|
38425
|
+
"empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
|
|
38426
|
+
"current-query-text": unref(currentQueryText),
|
|
38427
|
+
"has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
|
|
38428
|
+
"zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
|
|
38429
|
+
}, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
|
|
38198
38430
|
])) : createCommentVNode("", true),
|
|
38199
|
-
createVNode(_sfc_main$
|
|
38431
|
+
createVNode(_sfc_main$n, {
|
|
38200
38432
|
labels: _ctx.options.labels
|
|
38201
38433
|
}, null, 8, ["labels"]),
|
|
38202
38434
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
38203
|
-
createVNode(_sfc_main$
|
|
38435
|
+
createVNode(_sfc_main$v, {
|
|
38204
38436
|
labels: similarQueriesLabels.value,
|
|
38205
|
-
|
|
38206
|
-
|
|
38207
|
-
}, null, 8, ["labels", "
|
|
38437
|
+
"column-size": columnSize.value,
|
|
38438
|
+
"product-card-options": productCardOptions.value
|
|
38439
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38208
38440
|
])) : createCommentVNode("", true),
|
|
38209
38441
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
38210
|
-
createVNode(_sfc_main$
|
|
38442
|
+
createVNode(_sfc_main$r, {
|
|
38211
38443
|
labels: similarResultsLabels.value,
|
|
38212
|
-
|
|
38213
|
-
|
|
38214
|
-
}, null, 8, ["labels", "
|
|
38444
|
+
"column-size": columnSize.value,
|
|
38445
|
+
"product-card-options": productCardOptions.value
|
|
38446
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38215
38447
|
])) : createCommentVNode("", true),
|
|
38216
38448
|
renderSlot(_ctx.$slots, "append")
|
|
38217
38449
|
]);
|
|
@@ -38286,7 +38518,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
38286
38518
|
])) : createCommentVNode("", true),
|
|
38287
38519
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
38288
38520
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
38289
|
-
return openBlock(), createBlock(_sfc_main$
|
|
38521
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
38290
38522
|
key: getCategoryKey(child),
|
|
38291
38523
|
item: child,
|
|
38292
38524
|
options: categoryOptions.value
|
|
@@ -38720,8 +38952,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38720
38952
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
38721
38953
|
}, [
|
|
38722
38954
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38723
|
-
createVNode(_sfc_main$
|
|
38724
|
-
createVNode(_sfc_main$
|
|
38955
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38956
|
+
createVNode(_sfc_main$17, {
|
|
38725
38957
|
"show-summary": true,
|
|
38726
38958
|
options: _ctx.options,
|
|
38727
38959
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -38731,13 +38963,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38731
38963
|
key: 1,
|
|
38732
38964
|
options: _ctx.options
|
|
38733
38965
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38734
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
38966
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38735
38967
|
key: 2,
|
|
38736
38968
|
options: _ctx.options.filters,
|
|
38737
38969
|
onFilter: handleParamsChange
|
|
38738
38970
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38739
38971
|
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
38740
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
38972
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
|
|
38741
38973
|
key: 4,
|
|
38742
38974
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
38743
38975
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -38746,7 +38978,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38746
38978
|
id: "lupa-search-results",
|
|
38747
38979
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
38748
38980
|
}, [
|
|
38749
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38981
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38750
38982
|
key: 0,
|
|
38751
38983
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
38752
38984
|
ref_key: "searchResultsFilters",
|
|
@@ -38754,8 +38986,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38754
38986
|
onFilter: handleParamsChange
|
|
38755
38987
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38756
38988
|
createBaseVNode("div", _hoisted_2$8, [
|
|
38757
|
-
createVNode(_sfc_main$
|
|
38758
|
-
createVNode(_sfc_main$
|
|
38989
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38990
|
+
createVNode(_sfc_main$17, {
|
|
38759
38991
|
options: _ctx.options,
|
|
38760
38992
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
38761
38993
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38771,8 +39003,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38771
39003
|
}, 8, ["options", "ssr"])
|
|
38772
39004
|
])
|
|
38773
39005
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
38774
|
-
createVNode(_sfc_main$
|
|
38775
|
-
createVNode(_sfc_main$
|
|
39006
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
39007
|
+
createVNode(_sfc_main$17, {
|
|
38776
39008
|
options: _ctx.options,
|
|
38777
39009
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
38778
39010
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38780,7 +39012,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38780
39012
|
id: "lupa-search-results",
|
|
38781
39013
|
class: normalizeClass(indicatorClasses.value)
|
|
38782
39014
|
}, [
|
|
38783
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
39015
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38784
39016
|
key: 0,
|
|
38785
39017
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
38786
39018
|
ref_key: "searchResultsFilters",
|
|
@@ -38931,7 +39163,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
38931
39163
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38932
39164
|
}, [
|
|
38933
39165
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38934
|
-
createVNode(_sfc_main$
|
|
39166
|
+
createVNode(_sfc_main$1d, {
|
|
38935
39167
|
options: fullSearchBoxOptions.value,
|
|
38936
39168
|
"is-search-container": true,
|
|
38937
39169
|
ref_key: "searchBox",
|
|
@@ -40519,7 +40751,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
40519
40751
|
key: getProductKeyAction(index, product)
|
|
40520
40752
|
}, {
|
|
40521
40753
|
default: withCtx(() => [
|
|
40522
|
-
createVNode(_sfc_main$
|
|
40754
|
+
createVNode(_sfc_main$w, {
|
|
40523
40755
|
product,
|
|
40524
40756
|
options: _ctx.options,
|
|
40525
40757
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -40534,7 +40766,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
40534
40766
|
_: 1
|
|
40535
40767
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
40536
40768
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
40537
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40769
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40538
40770
|
style: normalizeStyle(columnSize.value),
|
|
40539
40771
|
key: getProductKeyAction(index, product),
|
|
40540
40772
|
product,
|
|
@@ -40780,7 +41012,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
40780
41012
|
createBaseVNode("a", {
|
|
40781
41013
|
href: getLink(product)
|
|
40782
41014
|
}, [
|
|
40783
|
-
createVNode(_sfc_main$
|
|
41015
|
+
createVNode(_sfc_main$H, {
|
|
40784
41016
|
item: product,
|
|
40785
41017
|
options: image.value
|
|
40786
41018
|
}, null, 8, ["item", "options"])
|
|
@@ -40945,7 +41177,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
40945
41177
|
return (_ctx, _cache) => {
|
|
40946
41178
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40947
41179
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40948
|
-
return openBlock(), createBlock(_sfc_main$
|
|
41180
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40949
41181
|
class: "lupa-chat-product-card",
|
|
40950
41182
|
key: getProductKeyAction(index, product),
|
|
40951
41183
|
product,
|
|
@@ -41141,7 +41373,7 @@ const _hoisted_4 = {
|
|
|
41141
41373
|
key: 0,
|
|
41142
41374
|
class: "lupasearch-chat-content"
|
|
41143
41375
|
};
|
|
41144
|
-
const _sfc_main$
|
|
41376
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
41145
41377
|
__name: "ChatContainer",
|
|
41146
41378
|
props: {
|
|
41147
41379
|
options: {}
|
|
@@ -47165,7 +47397,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
47165
47397
|
};
|
|
47166
47398
|
__expose({ fetch: fetch2 });
|
|
47167
47399
|
return (_ctx, _cache) => {
|
|
47168
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
47400
|
+
return openBlock(), createBlock(unref(_sfc_main$1d), {
|
|
47169
47401
|
ref_key: "searchBox",
|
|
47170
47402
|
ref: searchBox2,
|
|
47171
47403
|
options: fullSearchBoxOptions.value
|
|
@@ -47826,7 +48058,7 @@ const chat = (options, mountOptions) => {
|
|
|
47826
48058
|
const instance = createVue(
|
|
47827
48059
|
options.displayOptions.containerSelector,
|
|
47828
48060
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
47829
|
-
_sfc_main$
|
|
48061
|
+
_sfc_main$1L,
|
|
47830
48062
|
{
|
|
47831
48063
|
options
|
|
47832
48064
|
}
|