@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.umd.js
CHANGED
|
@@ -18859,17 +18859,27 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18859
18859
|
const isObject$1 = (value) => {
|
|
18860
18860
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
18861
18861
|
};
|
|
18862
|
-
const
|
|
18863
|
-
const value = params.get(key);
|
|
18862
|
+
const decodeParam = (value) => {
|
|
18864
18863
|
if (!value) {
|
|
18865
18864
|
return void 0;
|
|
18866
18865
|
}
|
|
18866
|
+
try {
|
|
18867
|
+
if (!/%[0-9A-Fa-f]{2}/.test(value)) {
|
|
18868
|
+
return value;
|
|
18869
|
+
}
|
|
18870
|
+
} catch (e2) {
|
|
18871
|
+
return value;
|
|
18872
|
+
}
|
|
18867
18873
|
try {
|
|
18868
18874
|
return decodeURIComponent(value);
|
|
18869
18875
|
} catch (e2) {
|
|
18870
|
-
return
|
|
18876
|
+
return value;
|
|
18871
18877
|
}
|
|
18872
18878
|
};
|
|
18879
|
+
const parseParam = (key, params) => {
|
|
18880
|
+
const value = params.get(key);
|
|
18881
|
+
return decodeParam(value != null ? value : void 0);
|
|
18882
|
+
};
|
|
18873
18883
|
const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
18874
18884
|
const params = /* @__PURE__ */ Object.create({});
|
|
18875
18885
|
const keys = reverseKeyValue({
|
|
@@ -18887,7 +18897,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18887
18897
|
const parseFacetKey = (key, searchParams) => {
|
|
18888
18898
|
var _a25, _b25, _c, _d;
|
|
18889
18899
|
if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
|
|
18890
|
-
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) =>
|
|
18900
|
+
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
|
|
18891
18901
|
}
|
|
18892
18902
|
if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
|
|
18893
18903
|
const range2 = searchParams.get(key);
|
|
@@ -18903,7 +18913,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18903
18913
|
if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
|
|
18904
18914
|
return {
|
|
18905
18915
|
level: 0,
|
|
18906
|
-
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) =>
|
|
18916
|
+
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
|
|
18907
18917
|
};
|
|
18908
18918
|
}
|
|
18909
18919
|
return [];
|
|
@@ -18930,15 +18940,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18930
18940
|
}, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
|
|
18931
18941
|
return r;
|
|
18932
18942
|
};
|
|
18933
|
-
const appendParam = (url, { name, value }
|
|
18943
|
+
const appendParam = (url, { name, value }) => {
|
|
18934
18944
|
if (Array.isArray(value)) {
|
|
18935
18945
|
appendArrayParams(url, { name, value });
|
|
18936
18946
|
} else {
|
|
18937
|
-
appendSingleParam(url, { name, value }
|
|
18947
|
+
appendSingleParam(url, { name, value });
|
|
18938
18948
|
}
|
|
18939
18949
|
};
|
|
18940
|
-
const appendSingleParam = (url, param
|
|
18941
|
-
const valueToAppend =
|
|
18950
|
+
const appendSingleParam = (url, param) => {
|
|
18951
|
+
const valueToAppend = param.value;
|
|
18942
18952
|
if (url.searchParams.has(param.name)) {
|
|
18943
18953
|
url.searchParams.set(param.name, valueToAppend);
|
|
18944
18954
|
} else {
|
|
@@ -18947,7 +18957,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18947
18957
|
};
|
|
18948
18958
|
const appendArrayParams = (url, param) => {
|
|
18949
18959
|
url.searchParams.delete(param.name);
|
|
18950
|
-
param.value.forEach((v) => url.searchParams.append(param.name,
|
|
18960
|
+
param.value.forEach((v) => url.searchParams.append(param.name, v));
|
|
18951
18961
|
};
|
|
18952
18962
|
const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
|
|
18953
18963
|
if (paramsToRemove === "all") {
|
|
@@ -19307,13 +19317,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19307
19317
|
const getPageUrlWithNewParams = ({
|
|
19308
19318
|
params: newParams,
|
|
19309
19319
|
paramsToRemove,
|
|
19310
|
-
encode: encode2 = true,
|
|
19311
19320
|
searchResultsLink: searchResultsLink2
|
|
19312
19321
|
}) => {
|
|
19313
19322
|
const url = getPageUrl(searchResultsLink2);
|
|
19314
19323
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19315
19324
|
removeParams(url, paramsToRemove);
|
|
19316
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19325
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19317
19326
|
return url.search;
|
|
19318
19327
|
};
|
|
19319
19328
|
const removeParameters = ({
|
|
@@ -19395,7 +19404,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19395
19404
|
const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
|
|
19396
19405
|
redirectToResultsPage(
|
|
19397
19406
|
searchResultsLink.value,
|
|
19398
|
-
|
|
19407
|
+
searchText,
|
|
19399
19408
|
optionsStore.getQueryParamName,
|
|
19400
19409
|
facet,
|
|
19401
19410
|
routing
|
|
@@ -19405,7 +19414,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19405
19414
|
const appendParams = ({
|
|
19406
19415
|
params: newParams,
|
|
19407
19416
|
paramsToRemove,
|
|
19408
|
-
encode: encode2 = true,
|
|
19409
19417
|
save = true,
|
|
19410
19418
|
searchResultsLink: searchResultsLink2
|
|
19411
19419
|
}) => {
|
|
@@ -19415,7 +19423,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19415
19423
|
const url = getPageUrl(searchResultsLink2);
|
|
19416
19424
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19417
19425
|
removeParams(url, paramsToRemove);
|
|
19418
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19426
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19419
19427
|
navigate(url);
|
|
19420
19428
|
if (!save) {
|
|
19421
19429
|
return;
|
|
@@ -19712,7 +19720,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19712
19720
|
}
|
|
19713
19721
|
return Env[environment] || Env["production"];
|
|
19714
19722
|
};
|
|
19715
|
-
const _sfc_main$
|
|
19723
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
19716
19724
|
__name: "VoiceSearchProgressCircle",
|
|
19717
19725
|
props: {
|
|
19718
19726
|
isRecording: { type: Boolean },
|
|
@@ -19925,15 +19933,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19925
19933
|
closeSocket
|
|
19926
19934
|
};
|
|
19927
19935
|
}
|
|
19928
|
-
const _hoisted_1$
|
|
19936
|
+
const _hoisted_1$1q = {
|
|
19929
19937
|
key: 0,
|
|
19930
19938
|
class: "lupa-dialog-overlay"
|
|
19931
19939
|
};
|
|
19932
|
-
const _hoisted_2$
|
|
19940
|
+
const _hoisted_2$_ = { class: "lupa-dialog-content" };
|
|
19933
19941
|
const _hoisted_3$G = { class: "lupa-listening-text" };
|
|
19934
19942
|
const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
|
|
19935
19943
|
const _hoisted_5$l = ["aria-label"];
|
|
19936
|
-
const _sfc_main$
|
|
19944
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
19937
19945
|
__name: "VoiceSearchDialog",
|
|
19938
19946
|
props: {
|
|
19939
19947
|
isOpen: { type: Boolean },
|
|
@@ -20038,12 +20046,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20038
20046
|
return (_ctx, _cache) => {
|
|
20039
20047
|
var _a25, _b25;
|
|
20040
20048
|
return openBlock(), createElementBlock("div", null, [
|
|
20041
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20049
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
|
|
20042
20050
|
createBaseVNode("button", {
|
|
20043
20051
|
class: "lupa-dialog-box-close-button",
|
|
20044
20052
|
onClick: _cache[0] || (_cache[0] = () => emit2("close"))
|
|
20045
20053
|
}),
|
|
20046
|
-
createBaseVNode("div", _hoisted_2$
|
|
20054
|
+
createBaseVNode("div", _hoisted_2$_, [
|
|
20047
20055
|
createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
|
|
20048
20056
|
createBaseVNode("div", _hoisted_4$v, [
|
|
20049
20057
|
createBaseVNode("button", {
|
|
@@ -20052,7 +20060,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20052
20060
|
"aria-controls": "voice-search-microphone",
|
|
20053
20061
|
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
20054
20062
|
}, null, 10, _hoisted_5$l),
|
|
20055
|
-
createVNode(_sfc_main$
|
|
20063
|
+
createVNode(_sfc_main$1K, {
|
|
20056
20064
|
ref_key: "voiceSearchProgressBar",
|
|
20057
20065
|
ref: voiceSearchProgressBar,
|
|
20058
20066
|
class: "lupa-progress-circle",
|
|
@@ -20067,8 +20075,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20067
20075
|
};
|
|
20068
20076
|
}
|
|
20069
20077
|
});
|
|
20070
|
-
const _hoisted_1$
|
|
20071
|
-
const _hoisted_2$
|
|
20078
|
+
const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
|
|
20079
|
+
const _hoisted_2$Z = { id: "lupa-search-box-input" };
|
|
20072
20080
|
const _hoisted_3$F = ["value"];
|
|
20073
20081
|
const _hoisted_4$u = ["aria-label", "placeholder"];
|
|
20074
20082
|
const _hoisted_5$k = {
|
|
@@ -20077,7 +20085,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20077
20085
|
};
|
|
20078
20086
|
const _hoisted_6$7 = { key: 2 };
|
|
20079
20087
|
const _hoisted_7$5 = ["aria-label"];
|
|
20080
|
-
const _sfc_main$
|
|
20088
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
20081
20089
|
__name: "SearchBoxInput",
|
|
20082
20090
|
props: {
|
|
20083
20091
|
options: {},
|
|
@@ -20213,7 +20221,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20213
20221
|
};
|
|
20214
20222
|
__expose({ focus });
|
|
20215
20223
|
return (_ctx, _cache) => {
|
|
20216
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20224
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
20217
20225
|
_ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
|
|
20218
20226
|
key: 0,
|
|
20219
20227
|
class: normalizeClass(["lupa-input-clear", [
|
|
@@ -20222,7 +20230,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20222
20230
|
]]),
|
|
20223
20231
|
onClick: clear
|
|
20224
20232
|
}, null, 2)) : createCommentVNode("", true),
|
|
20225
|
-
createBaseVNode("div", _hoisted_2$
|
|
20233
|
+
createBaseVNode("div", _hoisted_2$Z, [
|
|
20226
20234
|
createBaseVNode("input", {
|
|
20227
20235
|
class: "lupa-hint",
|
|
20228
20236
|
"aria-hidden": "true",
|
|
@@ -20276,7 +20284,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20276
20284
|
"aria-label": voiceSearchAriaLabel.value
|
|
20277
20285
|
}, null, 8, _hoisted_7$5)
|
|
20278
20286
|
])) : createCommentVNode("", true),
|
|
20279
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
20287
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
|
|
20280
20288
|
key: 3,
|
|
20281
20289
|
ref_key: "voiceDialogOverlay",
|
|
20282
20290
|
ref: voiceDialogOverlay,
|
|
@@ -20290,7 +20298,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20290
20298
|
};
|
|
20291
20299
|
}
|
|
20292
20300
|
});
|
|
20293
|
-
const _sfc_main$
|
|
20301
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
20294
20302
|
__name: "SearchBoxMoreResults",
|
|
20295
20303
|
props: {
|
|
20296
20304
|
labels: {},
|
|
@@ -20328,9 +20336,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20328
20336
|
};
|
|
20329
20337
|
}
|
|
20330
20338
|
});
|
|
20331
|
-
const _hoisted_1$
|
|
20332
|
-
const _hoisted_2$
|
|
20333
|
-
const _sfc_main$
|
|
20339
|
+
const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
|
|
20340
|
+
const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
|
|
20341
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
20334
20342
|
__name: "SearchBoxHistoryItem",
|
|
20335
20343
|
props: {
|
|
20336
20344
|
item: {},
|
|
@@ -20347,8 +20355,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20347
20355
|
emit2("click", { query: props.item });
|
|
20348
20356
|
};
|
|
20349
20357
|
return (_ctx, _cache) => {
|
|
20350
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20351
|
-
createBaseVNode("div", _hoisted_2$
|
|
20358
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
20359
|
+
createBaseVNode("div", _hoisted_2$Y, [
|
|
20352
20360
|
createBaseVNode("div", {
|
|
20353
20361
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
20354
20362
|
onClick: click2
|
|
@@ -20362,11 +20370,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20362
20370
|
};
|
|
20363
20371
|
}
|
|
20364
20372
|
});
|
|
20365
|
-
const _hoisted_1$
|
|
20373
|
+
const _hoisted_1$1n = {
|
|
20366
20374
|
key: 0,
|
|
20367
20375
|
class: "lupa-search-box-history-panel"
|
|
20368
20376
|
};
|
|
20369
|
-
const _sfc_main$
|
|
20377
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
20370
20378
|
__name: "SearchBoxHistoryPanel",
|
|
20371
20379
|
props: {
|
|
20372
20380
|
options: {}
|
|
@@ -20417,9 +20425,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20417
20425
|
}
|
|
20418
20426
|
};
|
|
20419
20427
|
return (_ctx, _cache) => {
|
|
20420
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20428
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
20421
20429
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
20422
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20430
|
+
return openBlock(), createBlock(_sfc_main$1G, {
|
|
20423
20431
|
key: item,
|
|
20424
20432
|
item,
|
|
20425
20433
|
highlighted: index === highlightIndex.value,
|
|
@@ -20435,12 +20443,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20435
20443
|
};
|
|
20436
20444
|
}
|
|
20437
20445
|
});
|
|
20438
|
-
const _hoisted_1$
|
|
20439
|
-
const _hoisted_2$
|
|
20446
|
+
const _hoisted_1$1m = ["innerHTML"];
|
|
20447
|
+
const _hoisted_2$X = {
|
|
20440
20448
|
key: 1,
|
|
20441
20449
|
class: "lupa-search-box-no-results"
|
|
20442
20450
|
};
|
|
20443
|
-
const _sfc_main$
|
|
20451
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
20444
20452
|
__name: "SearchBoxNoResults",
|
|
20445
20453
|
props: {
|
|
20446
20454
|
options: {}
|
|
@@ -20459,7 +20467,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20459
20467
|
key: 0,
|
|
20460
20468
|
class: "lupa-search-box-no-results",
|
|
20461
20469
|
innerHTML: customHtml.value
|
|
20462
|
-
}, null, 8, _hoisted_1$
|
|
20470
|
+
}, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
|
|
20463
20471
|
};
|
|
20464
20472
|
}
|
|
20465
20473
|
});
|
|
@@ -20491,8 +20499,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20491
20499
|
}
|
|
20492
20500
|
return gridTemplate.join(" ");
|
|
20493
20501
|
};
|
|
20494
|
-
const _hoisted_1$
|
|
20495
|
-
const _hoisted_2$
|
|
20502
|
+
const _hoisted_1$1l = ["innerHTML"];
|
|
20503
|
+
const _hoisted_2$W = {
|
|
20496
20504
|
key: 1,
|
|
20497
20505
|
"data-cy": "lupa-suggestion-value",
|
|
20498
20506
|
class: "lupa-suggestion-value"
|
|
@@ -20510,7 +20518,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20510
20518
|
class: "lupa-suggestion-facet-value",
|
|
20511
20519
|
"data-cy": "lupa-suggestion-facet-value"
|
|
20512
20520
|
};
|
|
20513
|
-
const _sfc_main$
|
|
20521
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
20514
20522
|
__name: "SearchBoxSuggestion",
|
|
20515
20523
|
props: {
|
|
20516
20524
|
suggestion: {},
|
|
@@ -20547,7 +20555,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20547
20555
|
class: "lupa-suggestion-value",
|
|
20548
20556
|
"data-cy": "lupa-suggestion-value",
|
|
20549
20557
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20550
|
-
}, null, 8, _hoisted_1$
|
|
20558
|
+
}, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20551
20559
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
20552
20560
|
createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
20553
20561
|
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -20556,11 +20564,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20556
20564
|
};
|
|
20557
20565
|
}
|
|
20558
20566
|
});
|
|
20559
|
-
const _hoisted_1$
|
|
20567
|
+
const _hoisted_1$1k = {
|
|
20560
20568
|
id: "lupa-search-box-suggestions",
|
|
20561
20569
|
"data-cy": "lupa-search-box-suggestions"
|
|
20562
20570
|
};
|
|
20563
|
-
const _sfc_main$
|
|
20571
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
20564
20572
|
__name: "SearchBoxSuggestions",
|
|
20565
20573
|
props: {
|
|
20566
20574
|
items: {},
|
|
@@ -20627,9 +20635,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20627
20635
|
});
|
|
20628
20636
|
});
|
|
20629
20637
|
return (_ctx, _cache) => {
|
|
20630
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20638
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
20631
20639
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
20632
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20640
|
+
return openBlock(), createBlock(_sfc_main$1D, {
|
|
20633
20641
|
key: getSuggestionKey(item),
|
|
20634
20642
|
class: normalizeClass([
|
|
20635
20643
|
"lupa-suggestion",
|
|
@@ -20661,7 +20669,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20661
20669
|
}, timeout);
|
|
20662
20670
|
};
|
|
20663
20671
|
};
|
|
20664
|
-
const _sfc_main$
|
|
20672
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
20665
20673
|
__name: "SearchBoxSuggestionsWrapper",
|
|
20666
20674
|
props: {
|
|
20667
20675
|
panel: {},
|
|
@@ -20704,7 +20712,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20704
20712
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
20705
20713
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
20706
20714
|
return (_ctx, _cache) => {
|
|
20707
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20715
|
+
return openBlock(), createBlock(_sfc_main$1C, {
|
|
20708
20716
|
items: searchResult.value,
|
|
20709
20717
|
highlight: _ctx.panel.highlight,
|
|
20710
20718
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -29989,9 +29997,9 @@ and ensure you are accounting for this risk.
|
|
|
29989
29997
|
targetImage.src = placeholder;
|
|
29990
29998
|
}
|
|
29991
29999
|
};
|
|
29992
|
-
const _hoisted_1$
|
|
29993
|
-
const _hoisted_2$
|
|
29994
|
-
const _sfc_main$
|
|
30000
|
+
const _hoisted_1$1j = ["src"];
|
|
30001
|
+
const _hoisted_2$V = ["src"];
|
|
30002
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
29995
30003
|
__name: "ProductImage",
|
|
29996
30004
|
props: {
|
|
29997
30005
|
item: {},
|
|
@@ -30133,7 +30141,7 @@ and ensure you are accounting for this risk.
|
|
|
30133
30141
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
30134
30142
|
onError: replaceWithPlaceholder,
|
|
30135
30143
|
key: finalUrl.value
|
|
30136
|
-
}), null, 16, _hoisted_1$
|
|
30144
|
+
}), null, 16, _hoisted_1$1j))
|
|
30137
30145
|
]),
|
|
30138
30146
|
_: 1
|
|
30139
30147
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -30141,12 +30149,12 @@ and ensure you are accounting for this risk.
|
|
|
30141
30149
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
30142
30150
|
style: styleOverride.value,
|
|
30143
30151
|
src: finalMainImageUrl.value
|
|
30144
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
30152
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
|
|
30145
30153
|
], 38);
|
|
30146
30154
|
};
|
|
30147
30155
|
}
|
|
30148
30156
|
});
|
|
30149
|
-
const _sfc_main$
|
|
30157
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
30150
30158
|
__name: "SearchBoxProductImage",
|
|
30151
30159
|
props: {
|
|
30152
30160
|
item: {},
|
|
@@ -30154,7 +30162,7 @@ and ensure you are accounting for this risk.
|
|
|
30154
30162
|
},
|
|
30155
30163
|
setup(__props) {
|
|
30156
30164
|
return (_ctx, _cache) => {
|
|
30157
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30165
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
30158
30166
|
item: _ctx.item,
|
|
30159
30167
|
options: _ctx.options,
|
|
30160
30168
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -30163,12 +30171,12 @@ and ensure you are accounting for this risk.
|
|
|
30163
30171
|
};
|
|
30164
30172
|
}
|
|
30165
30173
|
});
|
|
30166
|
-
const _hoisted_1$
|
|
30167
|
-
const _hoisted_2$
|
|
30174
|
+
const _hoisted_1$1i = ["innerHTML"];
|
|
30175
|
+
const _hoisted_2$U = {
|
|
30168
30176
|
key: 1,
|
|
30169
30177
|
class: "lupa-search-box-product-title"
|
|
30170
30178
|
};
|
|
30171
|
-
const _sfc_main$
|
|
30179
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
30172
30180
|
__name: "SearchBoxProductTitle",
|
|
30173
30181
|
props: {
|
|
30174
30182
|
item: {},
|
|
@@ -30191,18 +30199,18 @@ and ensure you are accounting for this risk.
|
|
|
30191
30199
|
key: 0,
|
|
30192
30200
|
class: "lupa-search-box-product-title",
|
|
30193
30201
|
innerHTML: sanitizedTitle.value
|
|
30194
|
-
}, null, 8, _hoisted_1$
|
|
30202
|
+
}, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
30195
30203
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
30196
30204
|
]));
|
|
30197
30205
|
};
|
|
30198
30206
|
}
|
|
30199
30207
|
});
|
|
30200
|
-
const _hoisted_1$
|
|
30201
|
-
const _hoisted_2$
|
|
30208
|
+
const _hoisted_1$1h = ["innerHTML"];
|
|
30209
|
+
const _hoisted_2$T = {
|
|
30202
30210
|
key: 1,
|
|
30203
30211
|
class: "lupa-search-box-product-description"
|
|
30204
30212
|
};
|
|
30205
|
-
const _sfc_main$
|
|
30213
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
30206
30214
|
__name: "SearchBoxProductDescription",
|
|
30207
30215
|
props: {
|
|
30208
30216
|
item: {},
|
|
@@ -30225,12 +30233,12 @@ and ensure you are accounting for this risk.
|
|
|
30225
30233
|
key: 0,
|
|
30226
30234
|
class: "lupa-search-box-product-description",
|
|
30227
30235
|
innerHTML: sanitizedDescription.value
|
|
30228
|
-
}, null, 8, _hoisted_1$
|
|
30236
|
+
}, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
|
|
30229
30237
|
};
|
|
30230
30238
|
}
|
|
30231
30239
|
});
|
|
30232
|
-
const _hoisted_1$
|
|
30233
|
-
const _sfc_main$
|
|
30240
|
+
const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
|
|
30241
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
30234
30242
|
__name: "SearchBoxProductPrice",
|
|
30235
30243
|
props: {
|
|
30236
30244
|
item: {},
|
|
@@ -30252,13 +30260,13 @@ and ensure you are accounting for this risk.
|
|
|
30252
30260
|
);
|
|
30253
30261
|
});
|
|
30254
30262
|
return (_ctx, _cache) => {
|
|
30255
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30263
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
30256
30264
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
30257
30265
|
]);
|
|
30258
30266
|
};
|
|
30259
30267
|
}
|
|
30260
30268
|
});
|
|
30261
|
-
const _sfc_main$
|
|
30269
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
30262
30270
|
__name: "SearchBoxProductRegularPrice",
|
|
30263
30271
|
props: {
|
|
30264
30272
|
item: {},
|
|
@@ -30289,12 +30297,12 @@ and ensure you are accounting for this risk.
|
|
|
30289
30297
|
};
|
|
30290
30298
|
}
|
|
30291
30299
|
});
|
|
30292
|
-
const _hoisted_1$
|
|
30293
|
-
const _hoisted_2$
|
|
30300
|
+
const _hoisted_1$1f = ["innerHTML"];
|
|
30301
|
+
const _hoisted_2$S = { key: 0 };
|
|
30294
30302
|
const _hoisted_3$D = { key: 1 };
|
|
30295
30303
|
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
30296
30304
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
30297
|
-
const _sfc_main$
|
|
30305
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
30298
30306
|
__name: "SearchBoxProductCustom",
|
|
30299
30307
|
props: {
|
|
30300
30308
|
item: {},
|
|
@@ -30320,11 +30328,11 @@ and ensure you are accounting for this risk.
|
|
|
30320
30328
|
key: 0,
|
|
30321
30329
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
30322
30330
|
innerHTML: text.value
|
|
30323
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30331
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30324
30332
|
key: 1,
|
|
30325
30333
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30326
30334
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30327
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
30335
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
30328
30336
|
createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
30329
30337
|
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
30330
30338
|
]))
|
|
@@ -30332,8 +30340,8 @@ and ensure you are accounting for this risk.
|
|
|
30332
30340
|
};
|
|
30333
30341
|
}
|
|
30334
30342
|
});
|
|
30335
|
-
const _hoisted_1$
|
|
30336
|
-
const _sfc_main$
|
|
30343
|
+
const _hoisted_1$1e = ["innerHTML"];
|
|
30344
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
30337
30345
|
__name: "SearchBoxProductCustomHtml",
|
|
30338
30346
|
props: {
|
|
30339
30347
|
item: {},
|
|
@@ -30358,7 +30366,7 @@ and ensure you are accounting for this risk.
|
|
|
30358
30366
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30359
30367
|
class: className.value,
|
|
30360
30368
|
innerHTML: text.value
|
|
30361
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30369
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1e);
|
|
30362
30370
|
};
|
|
30363
30371
|
}
|
|
30364
30372
|
});
|
|
@@ -30697,6 +30705,7 @@ and ensure you are accounting for this risk.
|
|
|
30697
30705
|
relatedQueriesApiEnabled,
|
|
30698
30706
|
lastResultsSource,
|
|
30699
30707
|
relatedQueryFacetKeys,
|
|
30708
|
+
loadingRelatedQueries,
|
|
30700
30709
|
setSidebarState,
|
|
30701
30710
|
queryFacet,
|
|
30702
30711
|
setLastRequestId,
|
|
@@ -30713,12 +30722,12 @@ and ensure you are accounting for this risk.
|
|
|
30713
30722
|
setRelatedQueriesApiEnabled
|
|
30714
30723
|
};
|
|
30715
30724
|
});
|
|
30716
|
-
const _hoisted_1$
|
|
30717
|
-
const _hoisted_2$
|
|
30725
|
+
const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30726
|
+
const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
|
|
30718
30727
|
const _hoisted_3$C = ["disabled"];
|
|
30719
30728
|
const _hoisted_4$r = ["href"];
|
|
30720
30729
|
const _hoisted_5$h = ["disabled"];
|
|
30721
|
-
const _sfc_main$
|
|
30730
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
30722
30731
|
__name: "SearchBoxProductAddToCart",
|
|
30723
30732
|
props: {
|
|
30724
30733
|
item: {},
|
|
@@ -30764,8 +30773,8 @@ and ensure you are accounting for this risk.
|
|
|
30764
30773
|
return Boolean(props.link && props.options.link);
|
|
30765
30774
|
});
|
|
30766
30775
|
return (_ctx, _cache) => {
|
|
30767
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30768
|
-
createBaseVNode("div", _hoisted_2$
|
|
30776
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
30777
|
+
createBaseVNode("div", _hoisted_2$R, [
|
|
30769
30778
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30770
30779
|
key: 0,
|
|
30771
30780
|
class: addToCartButtonClass.value,
|
|
@@ -30786,23 +30795,23 @@ and ensure you are accounting for this risk.
|
|
|
30786
30795
|
};
|
|
30787
30796
|
}
|
|
30788
30797
|
});
|
|
30789
|
-
const _hoisted_1$
|
|
30798
|
+
const _hoisted_1$1c = {
|
|
30790
30799
|
key: 1,
|
|
30791
30800
|
class: "lupa-search-box-element-badge-wrapper"
|
|
30792
30801
|
};
|
|
30793
30802
|
const __default__$4 = {
|
|
30794
30803
|
components: {
|
|
30795
|
-
SearchBoxProductImage: _sfc_main$
|
|
30796
|
-
SearchBoxProductTitle: _sfc_main$
|
|
30797
|
-
SearchBoxProductDescription: _sfc_main$
|
|
30798
|
-
SearchBoxProductPrice: _sfc_main$
|
|
30799
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
30800
|
-
SearchBoxProductCustom: _sfc_main$
|
|
30801
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
30802
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
30804
|
+
SearchBoxProductImage: _sfc_main$1z,
|
|
30805
|
+
SearchBoxProductTitle: _sfc_main$1y,
|
|
30806
|
+
SearchBoxProductDescription: _sfc_main$1x,
|
|
30807
|
+
SearchBoxProductPrice: _sfc_main$1w,
|
|
30808
|
+
SearchBoxProductRegularPrice: _sfc_main$1v,
|
|
30809
|
+
SearchBoxProductCustom: _sfc_main$1u,
|
|
30810
|
+
SearchBoxProductCustomHtml: _sfc_main$1t,
|
|
30811
|
+
SearchBoxProductAddToCart: _sfc_main$1s
|
|
30803
30812
|
}
|
|
30804
30813
|
};
|
|
30805
|
-
const _sfc_main$
|
|
30814
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
30806
30815
|
__name: "SearchBoxProductElement",
|
|
30807
30816
|
props: {
|
|
30808
30817
|
item: {},
|
|
@@ -30874,7 +30883,7 @@ and ensure you are accounting for this risk.
|
|
|
30874
30883
|
"dynamic-attributes": dynamicAttributes.value,
|
|
30875
30884
|
link: _ctx.link
|
|
30876
30885
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
30877
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30886
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
30878
30887
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
30879
30888
|
key: 0,
|
|
30880
30889
|
item: enhancedItem.value,
|
|
@@ -30889,14 +30898,14 @@ and ensure you are accounting for this risk.
|
|
|
30889
30898
|
};
|
|
30890
30899
|
}
|
|
30891
30900
|
}));
|
|
30892
|
-
const _hoisted_1$
|
|
30893
|
-
const _hoisted_2$
|
|
30901
|
+
const _hoisted_1$1b = { class: "lupa-badge-title" };
|
|
30902
|
+
const _hoisted_2$Q = ["src"];
|
|
30894
30903
|
const _hoisted_3$B = { key: 1 };
|
|
30895
30904
|
const _hoisted_4$q = {
|
|
30896
30905
|
key: 0,
|
|
30897
30906
|
class: "lupa-badge-full-text"
|
|
30898
30907
|
};
|
|
30899
|
-
const _sfc_main$
|
|
30908
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
30900
30909
|
__name: "SearchResultGeneratedBadge",
|
|
30901
30910
|
props: {
|
|
30902
30911
|
options: {},
|
|
@@ -30929,11 +30938,11 @@ and ensure you are accounting for this risk.
|
|
|
30929
30938
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
30930
30939
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
30931
30940
|
}, [
|
|
30932
|
-
createBaseVNode("span", _hoisted_1$
|
|
30941
|
+
createBaseVNode("span", _hoisted_1$1b, [
|
|
30933
30942
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
30934
30943
|
key: 0,
|
|
30935
30944
|
src: image.value
|
|
30936
|
-
}, null, 8, _hoisted_2$
|
|
30945
|
+
}, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
|
|
30937
30946
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30938
30947
|
]),
|
|
30939
30948
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -30941,8 +30950,8 @@ and ensure you are accounting for this risk.
|
|
|
30941
30950
|
};
|
|
30942
30951
|
}
|
|
30943
30952
|
});
|
|
30944
|
-
const _hoisted_1$
|
|
30945
|
-
const _sfc_main$
|
|
30953
|
+
const _hoisted_1$1a = { class: "lupa-generated-badges" };
|
|
30954
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
30946
30955
|
__name: "SearchResultGeneratedBadges",
|
|
30947
30956
|
props: {
|
|
30948
30957
|
options: {}
|
|
@@ -30968,9 +30977,9 @@ and ensure you are accounting for this risk.
|
|
|
30968
30977
|
})).filter((b) => Boolean(b.id));
|
|
30969
30978
|
});
|
|
30970
30979
|
return (_ctx, _cache) => {
|
|
30971
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30980
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
30972
30981
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
30973
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30982
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
30974
30983
|
key: badge.id,
|
|
30975
30984
|
badge,
|
|
30976
30985
|
options: _ctx.options
|
|
@@ -30980,8 +30989,8 @@ and ensure you are accounting for this risk.
|
|
|
30980
30989
|
};
|
|
30981
30990
|
}
|
|
30982
30991
|
});
|
|
30983
|
-
const _hoisted_1$
|
|
30984
|
-
const _sfc_main$
|
|
30992
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
30993
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
30985
30994
|
__name: "CustomBadge",
|
|
30986
30995
|
props: {
|
|
30987
30996
|
badge: {}
|
|
@@ -31002,12 +31011,12 @@ and ensure you are accounting for this risk.
|
|
|
31002
31011
|
return openBlock(), createElementBlock("div", {
|
|
31003
31012
|
class: normalizeClass(className.value),
|
|
31004
31013
|
innerHTML: text.value
|
|
31005
|
-
}, null, 10, _hoisted_1$
|
|
31014
|
+
}, null, 10, _hoisted_1$19);
|
|
31006
31015
|
};
|
|
31007
31016
|
}
|
|
31008
31017
|
});
|
|
31009
|
-
const _hoisted_1$
|
|
31010
|
-
const _sfc_main$
|
|
31018
|
+
const _hoisted_1$18 = { class: "lupa-text-badges" };
|
|
31019
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
31011
31020
|
__name: "TextBadge",
|
|
31012
31021
|
props: {
|
|
31013
31022
|
badge: {}
|
|
@@ -31021,7 +31030,7 @@ and ensure you are accounting for this risk.
|
|
|
31021
31030
|
return badges.value.slice(0, props.badge.maxItems);
|
|
31022
31031
|
});
|
|
31023
31032
|
return (_ctx, _cache) => {
|
|
31024
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31033
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
31025
31034
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31026
31035
|
return openBlock(), createElementBlock("div", {
|
|
31027
31036
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -31032,9 +31041,9 @@ and ensure you are accounting for this risk.
|
|
|
31032
31041
|
};
|
|
31033
31042
|
}
|
|
31034
31043
|
});
|
|
31035
|
-
const _hoisted_1$
|
|
31036
|
-
const _hoisted_2$
|
|
31037
|
-
const _sfc_main$
|
|
31044
|
+
const _hoisted_1$17 = { class: "lupa-image-badges" };
|
|
31045
|
+
const _hoisted_2$P = ["src"];
|
|
31046
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
31038
31047
|
__name: "ImageBadge",
|
|
31039
31048
|
props: {
|
|
31040
31049
|
badge: {}
|
|
@@ -31054,7 +31063,7 @@ and ensure you are accounting for this risk.
|
|
|
31054
31063
|
return `${props.badge.rootImageUrl}${src}`;
|
|
31055
31064
|
};
|
|
31056
31065
|
return (_ctx, _cache) => {
|
|
31057
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31066
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
31058
31067
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31059
31068
|
return openBlock(), createElementBlock("div", {
|
|
31060
31069
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -31062,14 +31071,14 @@ and ensure you are accounting for this risk.
|
|
|
31062
31071
|
}, [
|
|
31063
31072
|
createBaseVNode("img", {
|
|
31064
31073
|
src: getImageUrl(item)
|
|
31065
|
-
}, null, 8, _hoisted_2$
|
|
31074
|
+
}, null, 8, _hoisted_2$P)
|
|
31066
31075
|
]);
|
|
31067
31076
|
}), 128))
|
|
31068
31077
|
]);
|
|
31069
31078
|
};
|
|
31070
31079
|
}
|
|
31071
31080
|
});
|
|
31072
|
-
const _sfc_main$
|
|
31081
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
31073
31082
|
__name: "DiscountBadge",
|
|
31074
31083
|
props: {
|
|
31075
31084
|
badge: {}
|
|
@@ -31131,16 +31140,16 @@ and ensure you are accounting for this risk.
|
|
|
31131
31140
|
};
|
|
31132
31141
|
}
|
|
31133
31142
|
});
|
|
31134
|
-
const _hoisted_1$
|
|
31143
|
+
const _hoisted_1$16 = { id: "lupa-search-results-badges" };
|
|
31135
31144
|
const __default__$3 = {
|
|
31136
31145
|
components: {
|
|
31137
|
-
CustomBadge: _sfc_main$
|
|
31138
|
-
TextBadge: _sfc_main$
|
|
31139
|
-
ImageBadge: _sfc_main$
|
|
31140
|
-
DiscountBadge: _sfc_main$
|
|
31146
|
+
CustomBadge: _sfc_main$1o,
|
|
31147
|
+
TextBadge: _sfc_main$1n,
|
|
31148
|
+
ImageBadge: _sfc_main$1m,
|
|
31149
|
+
DiscountBadge: _sfc_main$1l
|
|
31141
31150
|
}
|
|
31142
31151
|
};
|
|
31143
|
-
const _sfc_main$
|
|
31152
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
31144
31153
|
__name: "SearchResultsBadgeWrapper",
|
|
31145
31154
|
props: {
|
|
31146
31155
|
position: {},
|
|
@@ -31203,7 +31212,7 @@ and ensure you are accounting for this risk.
|
|
|
31203
31212
|
}
|
|
31204
31213
|
};
|
|
31205
31214
|
return (_ctx, _cache) => {
|
|
31206
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31215
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
31207
31216
|
createBaseVNode("div", {
|
|
31208
31217
|
id: "lupa-badges",
|
|
31209
31218
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -31214,7 +31223,7 @@ and ensure you are accounting for this risk.
|
|
|
31214
31223
|
badge
|
|
31215
31224
|
}, null, 8, ["badge"]);
|
|
31216
31225
|
}), 128)),
|
|
31217
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
31226
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
31218
31227
|
key: 0,
|
|
31219
31228
|
options: _ctx.options
|
|
31220
31229
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -31223,13 +31232,13 @@ and ensure you are accounting for this risk.
|
|
|
31223
31232
|
};
|
|
31224
31233
|
}
|
|
31225
31234
|
}));
|
|
31226
|
-
const _hoisted_1$
|
|
31227
|
-
const _hoisted_2$
|
|
31235
|
+
const _hoisted_1$15 = ["href"];
|
|
31236
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
|
|
31228
31237
|
const _hoisted_3$A = {
|
|
31229
31238
|
key: 0,
|
|
31230
31239
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
31231
31240
|
};
|
|
31232
|
-
const _sfc_main$
|
|
31241
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
31233
31242
|
__name: "SearchBoxProduct",
|
|
31234
31243
|
props: {
|
|
31235
31244
|
item: {},
|
|
@@ -31335,7 +31344,7 @@ and ensure you are accounting for this risk.
|
|
|
31335
31344
|
style: normalizeStyle(imageStyleOverride.value)
|
|
31336
31345
|
}, [
|
|
31337
31346
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
31338
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31347
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31339
31348
|
class: "lupa-search-box-product-element",
|
|
31340
31349
|
key: element.key,
|
|
31341
31350
|
item: _ctx.item,
|
|
@@ -31345,10 +31354,10 @@ and ensure you are accounting for this risk.
|
|
|
31345
31354
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
31346
31355
|
}), 128))
|
|
31347
31356
|
], 4),
|
|
31348
|
-
createBaseVNode("div", _hoisted_2$
|
|
31357
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
31349
31358
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
31350
31359
|
var _a25;
|
|
31351
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31360
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31352
31361
|
class: "lupa-search-box-product-element",
|
|
31353
31362
|
key: element.key,
|
|
31354
31363
|
item: _ctx.item,
|
|
@@ -31359,7 +31368,7 @@ and ensure you are accounting for this risk.
|
|
|
31359
31368
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
31360
31369
|
name: "badges",
|
|
31361
31370
|
fn: withCtx(() => [
|
|
31362
|
-
createVNode(_sfc_main$
|
|
31371
|
+
createVNode(_sfc_main$1k, {
|
|
31363
31372
|
options: badgeOptions.value,
|
|
31364
31373
|
position: "card"
|
|
31365
31374
|
}, null, 8, ["options"])
|
|
@@ -31375,7 +31384,7 @@ and ensure you are accounting for this risk.
|
|
|
31375
31384
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
31376
31385
|
}, [
|
|
31377
31386
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
31378
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31387
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31379
31388
|
class: "lupa-search-box-product-element",
|
|
31380
31389
|
key: element.key,
|
|
31381
31390
|
item: _ctx.item,
|
|
@@ -31388,7 +31397,7 @@ and ensure you are accounting for this risk.
|
|
|
31388
31397
|
], 2);
|
|
31389
31398
|
}), 128)),
|
|
31390
31399
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
31391
|
-
createVNode(_sfc_main$
|
|
31400
|
+
createVNode(_sfc_main$1r, {
|
|
31392
31401
|
class: "lupa-search-box-product-element",
|
|
31393
31402
|
item: _ctx.item,
|
|
31394
31403
|
element: addToCartElement.value,
|
|
@@ -31397,7 +31406,7 @@ and ensure you are accounting for this risk.
|
|
|
31397
31406
|
isInStock: isInStock.value
|
|
31398
31407
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
31399
31408
|
])) : createCommentVNode("", true)
|
|
31400
|
-
], 16, _hoisted_1$
|
|
31409
|
+
], 16, _hoisted_1$15);
|
|
31401
31410
|
};
|
|
31402
31411
|
}
|
|
31403
31412
|
});
|
|
@@ -31469,8 +31478,8 @@ and ensure you are accounting for this risk.
|
|
|
31469
31478
|
};
|
|
31470
31479
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
31471
31480
|
});
|
|
31472
|
-
const _hoisted_1$
|
|
31473
|
-
const _sfc_main$
|
|
31481
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
31482
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
31474
31483
|
__name: "SearchBoxProducts",
|
|
31475
31484
|
props: {
|
|
31476
31485
|
items: {},
|
|
@@ -31581,7 +31590,7 @@ and ensure you are accounting for this risk.
|
|
|
31581
31590
|
itemClicked: handleProductClick
|
|
31582
31591
|
});
|
|
31583
31592
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
|
|
31584
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31593
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
31585
31594
|
key: index,
|
|
31586
31595
|
item,
|
|
31587
31596
|
panelOptions: _ctx.panelOptions,
|
|
@@ -31594,7 +31603,7 @@ and ensure you are accounting for this risk.
|
|
|
31594
31603
|
hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
|
|
31595
31604
|
key: 2,
|
|
31596
31605
|
innerHTML: _ctx.panelOptions.appendCustomHtml
|
|
31597
|
-
}, null, 8, _hoisted_1$
|
|
31606
|
+
}, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
|
|
31598
31607
|
showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
|
|
31599
31608
|
key: 3,
|
|
31600
31609
|
class: "lupa-search-box-expand",
|
|
@@ -31605,9 +31614,9 @@ and ensure you are accounting for this risk.
|
|
|
31605
31614
|
};
|
|
31606
31615
|
}
|
|
31607
31616
|
});
|
|
31608
|
-
const _hoisted_1$
|
|
31609
|
-
const _hoisted_2$
|
|
31610
|
-
const _sfc_main$
|
|
31617
|
+
const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
31618
|
+
const _hoisted_2$N = { key: 0 };
|
|
31619
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
31611
31620
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
31612
31621
|
props: {
|
|
31613
31622
|
options: {},
|
|
@@ -31638,13 +31647,13 @@ and ensure you are accounting for this risk.
|
|
|
31638
31647
|
emit2("goToResults");
|
|
31639
31648
|
};
|
|
31640
31649
|
return (_ctx, _cache) => {
|
|
31641
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31650
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
31642
31651
|
createBaseVNode("button", {
|
|
31643
31652
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
31644
31653
|
onClick: goToResults
|
|
31645
31654
|
}, [
|
|
31646
31655
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
31647
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31656
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
31648
31657
|
])
|
|
31649
31658
|
]);
|
|
31650
31659
|
};
|
|
@@ -31740,7 +31749,7 @@ and ensure you are accounting for this risk.
|
|
|
31740
31749
|
}
|
|
31741
31750
|
return parsedObject;
|
|
31742
31751
|
};
|
|
31743
|
-
const _sfc_main$
|
|
31752
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
31744
31753
|
__name: "SearchBoxProductsWrapper",
|
|
31745
31754
|
props: {
|
|
31746
31755
|
panel: {},
|
|
@@ -31811,7 +31820,7 @@ and ensure you are accounting for this risk.
|
|
|
31811
31820
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
31812
31821
|
return (_ctx, _cache) => {
|
|
31813
31822
|
var _a25, _b25;
|
|
31814
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31823
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31815
31824
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31816
31825
|
panelOptions: _ctx.panel,
|
|
31817
31826
|
labels: _ctx.labels,
|
|
@@ -31821,7 +31830,7 @@ and ensure you are accounting for this risk.
|
|
|
31821
31830
|
default: withCtx(() => {
|
|
31822
31831
|
var _a26;
|
|
31823
31832
|
return [
|
|
31824
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
31833
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
|
|
31825
31834
|
key: 0,
|
|
31826
31835
|
options: _ctx.searchBoxOptions,
|
|
31827
31836
|
panel: _ctx.panel,
|
|
@@ -31842,7 +31851,7 @@ and ensure you are accounting for this risk.
|
|
|
31842
31851
|
};
|
|
31843
31852
|
}
|
|
31844
31853
|
});
|
|
31845
|
-
const _sfc_main$
|
|
31854
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
31846
31855
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
31847
31856
|
props: {
|
|
31848
31857
|
panel: {},
|
|
@@ -31914,7 +31923,7 @@ and ensure you are accounting for this risk.
|
|
|
31914
31923
|
});
|
|
31915
31924
|
return (_ctx, _cache) => {
|
|
31916
31925
|
var _a25, _b25;
|
|
31917
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31926
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31918
31927
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31919
31928
|
panelOptions: documentPanelOptions.value,
|
|
31920
31929
|
labels: _ctx.labels,
|
|
@@ -31932,8 +31941,8 @@ and ensure you are accounting for this risk.
|
|
|
31932
31941
|
};
|
|
31933
31942
|
}
|
|
31934
31943
|
});
|
|
31935
|
-
const _hoisted_1$
|
|
31936
|
-
const _hoisted_2$
|
|
31944
|
+
const _hoisted_1$12 = ["data-cy"];
|
|
31945
|
+
const _hoisted_2$M = {
|
|
31937
31946
|
key: 0,
|
|
31938
31947
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31939
31948
|
};
|
|
@@ -31943,12 +31952,12 @@ and ensure you are accounting for this risk.
|
|
|
31943
31952
|
};
|
|
31944
31953
|
const __default__$2 = {
|
|
31945
31954
|
components: {
|
|
31946
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
31947
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
31948
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
31955
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1B,
|
|
31956
|
+
SearchBoxProductsWrapper: _sfc_main$1g,
|
|
31957
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$1f
|
|
31949
31958
|
}
|
|
31950
31959
|
};
|
|
31951
|
-
const _sfc_main$
|
|
31960
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
31952
31961
|
__name: "SearchBoxMainPanel",
|
|
31953
31962
|
props: {
|
|
31954
31963
|
options: {},
|
|
@@ -32139,7 +32148,7 @@ and ensure you are accounting for this risk.
|
|
|
32139
32148
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
32140
32149
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
32141
32150
|
}, [
|
|
32142
|
-
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32151
|
+
((_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),
|
|
32143
32152
|
((_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),
|
|
32144
32153
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
32145
32154
|
key: 2,
|
|
@@ -32162,14 +32171,14 @@ and ensure you are accounting for this risk.
|
|
|
32162
32171
|
key: "0"
|
|
32163
32172
|
} : void 0
|
|
32164
32173
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
32165
|
-
], 14, _hoisted_1$
|
|
32174
|
+
], 14, _hoisted_1$12);
|
|
32166
32175
|
}), 128))
|
|
32167
32176
|
], 4),
|
|
32168
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
32177
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
|
|
32169
32178
|
key: 1,
|
|
32170
32179
|
options: _ctx.options
|
|
32171
32180
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32172
|
-
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
32181
|
+
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
32173
32182
|
key: 2,
|
|
32174
32183
|
labels: labels.value,
|
|
32175
32184
|
options: _ctx.options,
|
|
@@ -32180,7 +32189,7 @@ and ensure you are accounting for this risk.
|
|
|
32180
32189
|
id: "lupa-search-box-panel",
|
|
32181
32190
|
class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
|
|
32182
32191
|
}, [
|
|
32183
|
-
createVNode(_sfc_main$
|
|
32192
|
+
createVNode(_sfc_main$1F, {
|
|
32184
32193
|
options: _ctx.options.history,
|
|
32185
32194
|
history: history.value,
|
|
32186
32195
|
onGoToResults: handleGoToResults,
|
|
@@ -32205,8 +32214,8 @@ and ensure you are accounting for this risk.
|
|
|
32205
32214
|
const elements = getElements(triggers);
|
|
32206
32215
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
32207
32216
|
};
|
|
32208
|
-
const _hoisted_1
|
|
32209
|
-
const _sfc_main$
|
|
32217
|
+
const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
|
|
32218
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
32210
32219
|
__name: "SearchBox",
|
|
32211
32220
|
props: {
|
|
32212
32221
|
options: {},
|
|
@@ -32545,8 +32554,8 @@ and ensure you are accounting for this risk.
|
|
|
32545
32554
|
id: "lupa-search-box",
|
|
32546
32555
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
32547
32556
|
}, [
|
|
32548
|
-
createBaseVNode("div", _hoisted_1
|
|
32549
|
-
createVNode(_sfc_main$
|
|
32557
|
+
createBaseVNode("div", _hoisted_1$11, [
|
|
32558
|
+
createVNode(_sfc_main$1I, {
|
|
32550
32559
|
options: inputOptions.value,
|
|
32551
32560
|
suggestedValue: suggestedValue.value,
|
|
32552
32561
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -32559,7 +32568,7 @@ and ensure you are accounting for this risk.
|
|
|
32559
32568
|
onSearch: handleSearch,
|
|
32560
32569
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
32561
32570
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
32562
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
32571
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
32563
32572
|
key: 0,
|
|
32564
32573
|
options: panelOptions.value,
|
|
32565
32574
|
inputValue: inputValue.value,
|
|
@@ -32650,11 +32659,11 @@ and ensure you are accounting for this risk.
|
|
|
32650
32659
|
}
|
|
32651
32660
|
return searchParams;
|
|
32652
32661
|
};
|
|
32653
|
-
const _hoisted_1$
|
|
32662
|
+
const _hoisted_1$10 = {
|
|
32654
32663
|
key: 0,
|
|
32655
32664
|
id: "lupa-search-results-did-you-mean"
|
|
32656
32665
|
};
|
|
32657
|
-
const _hoisted_2$
|
|
32666
|
+
const _hoisted_2$L = {
|
|
32658
32667
|
key: 0,
|
|
32659
32668
|
"data-cy": "suggested-search-text-label"
|
|
32660
32669
|
};
|
|
@@ -32663,7 +32672,7 @@ and ensure you are accounting for this risk.
|
|
|
32663
32672
|
"data-cy": "did-you-mean-label"
|
|
32664
32673
|
};
|
|
32665
32674
|
const _hoisted_4$p = { key: 1 };
|
|
32666
|
-
const _sfc_main$
|
|
32675
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
32667
32676
|
__name: "SearchResultsDidYouMean",
|
|
32668
32677
|
props: {
|
|
32669
32678
|
labels: {}
|
|
@@ -32695,8 +32704,8 @@ and ensure you are accounting for this risk.
|
|
|
32695
32704
|
paramStore.goToResults({ searchText, facet });
|
|
32696
32705
|
};
|
|
32697
32706
|
return (_ctx, _cache) => {
|
|
32698
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32699
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32707
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
32708
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
32700
32709
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
32701
32710
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32702
32711
|
createBaseVNode("span", {
|
|
@@ -32721,12 +32730,12 @@ and ensure you are accounting for this risk.
|
|
|
32721
32730
|
};
|
|
32722
32731
|
}
|
|
32723
32732
|
});
|
|
32724
|
-
const _hoisted_1
|
|
32733
|
+
const _hoisted_1$$ = {
|
|
32725
32734
|
key: 0,
|
|
32726
32735
|
class: "lupa-search-results-summary"
|
|
32727
32736
|
};
|
|
32728
|
-
const _hoisted_2$
|
|
32729
|
-
const _sfc_main$
|
|
32737
|
+
const _hoisted_2$K = ["innerHTML"];
|
|
32738
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
32730
32739
|
__name: "SearchResultsSummary",
|
|
32731
32740
|
props: {
|
|
32732
32741
|
label: {},
|
|
@@ -32741,8 +32750,8 @@ and ensure you are accounting for this risk.
|
|
|
32741
32750
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
32742
32751
|
});
|
|
32743
32752
|
return (_ctx, _cache) => {
|
|
32744
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
32745
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
32753
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
32754
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
|
|
32746
32755
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
32747
32756
|
key: 0,
|
|
32748
32757
|
class: "lupa-filter-clear",
|
|
@@ -32753,7 +32762,138 @@ and ensure you are accounting for this risk.
|
|
|
32753
32762
|
};
|
|
32754
32763
|
}
|
|
32755
32764
|
});
|
|
32756
|
-
const
|
|
32765
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
32766
|
+
__name: "SkeletonBlock",
|
|
32767
|
+
props: {
|
|
32768
|
+
style: {}
|
|
32769
|
+
},
|
|
32770
|
+
setup(__props) {
|
|
32771
|
+
return (_ctx, _cache) => {
|
|
32772
|
+
return openBlock(), createElementBlock("div", {
|
|
32773
|
+
class: "lupa-skeleton-block-wrapper",
|
|
32774
|
+
style: normalizeStyle(_ctx.style)
|
|
32775
|
+
}, _cache[0] || (_cache[0] = [
|
|
32776
|
+
createBaseVNode("div", { class: "lupa-skeleton-block" }, [
|
|
32777
|
+
createBaseVNode("div", { class: "lupa-skeleton-block__shimmer" })
|
|
32778
|
+
], -1)
|
|
32779
|
+
]), 4);
|
|
32780
|
+
};
|
|
32781
|
+
}
|
|
32782
|
+
});
|
|
32783
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
32784
|
+
__name: "SkeletonText",
|
|
32785
|
+
props: {
|
|
32786
|
+
style: {},
|
|
32787
|
+
lines: { default: 1 }
|
|
32788
|
+
},
|
|
32789
|
+
setup(__props) {
|
|
32790
|
+
return (_ctx, _cache) => {
|
|
32791
|
+
return openBlock(), createElementBlock("div", {
|
|
32792
|
+
class: "lupa-skeleton-text-wrapper",
|
|
32793
|
+
style: normalizeStyle(_ctx.style)
|
|
32794
|
+
}, [
|
|
32795
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
|
|
32796
|
+
return openBlock(), createElementBlock("div", {
|
|
32797
|
+
key: i,
|
|
32798
|
+
class: "lupa-skeleton-line"
|
|
32799
|
+
}, _cache[0] || (_cache[0] = [
|
|
32800
|
+
createBaseVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
|
|
32801
|
+
]));
|
|
32802
|
+
}), 128))
|
|
32803
|
+
], 4);
|
|
32804
|
+
};
|
|
32805
|
+
}
|
|
32806
|
+
});
|
|
32807
|
+
const _hoisted_1$_ = {
|
|
32808
|
+
key: 1,
|
|
32809
|
+
class: "lupa-skeleton-text"
|
|
32810
|
+
};
|
|
32811
|
+
const _hoisted_2$J = {
|
|
32812
|
+
key: 2,
|
|
32813
|
+
class: "lupa-skeleton-blocks"
|
|
32814
|
+
};
|
|
32815
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
32816
|
+
__name: "LoadingBlock",
|
|
32817
|
+
props: {
|
|
32818
|
+
style: {},
|
|
32819
|
+
type: {},
|
|
32820
|
+
enabled: { type: Boolean },
|
|
32821
|
+
loading: { type: Boolean },
|
|
32822
|
+
count: {}
|
|
32823
|
+
},
|
|
32824
|
+
setup(__props) {
|
|
32825
|
+
return (_ctx, _cache) => {
|
|
32826
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
32827
|
+
createVNode(_sfc_main$19, {
|
|
32828
|
+
style: normalizeStyle(_ctx.style),
|
|
32829
|
+
lines: _ctx.count
|
|
32830
|
+
}, null, 8, ["style", "lines"])
|
|
32831
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
|
|
32832
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
32833
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
32834
|
+
key: n,
|
|
32835
|
+
style: normalizeStyle(_ctx.style)
|
|
32836
|
+
}, null, 8, ["style"]);
|
|
32837
|
+
}), 128))
|
|
32838
|
+
]));
|
|
32839
|
+
};
|
|
32840
|
+
}
|
|
32841
|
+
});
|
|
32842
|
+
const useLoadingSkeleton = () => {
|
|
32843
|
+
const paramsStore = useParamsStore();
|
|
32844
|
+
const optionsStore = useOptionsStore();
|
|
32845
|
+
const searchResultStore = useSearchResultStore();
|
|
32846
|
+
const { limit } = storeToRefs(paramsStore);
|
|
32847
|
+
const {
|
|
32848
|
+
searchResult,
|
|
32849
|
+
relatedQueriesResult,
|
|
32850
|
+
loading,
|
|
32851
|
+
loadingFacets: loadingFacetsBase,
|
|
32852
|
+
loadingRelatedQueries
|
|
32853
|
+
} = storeToRefs(searchResultStore);
|
|
32854
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
32855
|
+
const enabled = computed(() => {
|
|
32856
|
+
var _a25, _b25;
|
|
32857
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled;
|
|
32858
|
+
});
|
|
32859
|
+
const showOnEveryFetch = computed(() => {
|
|
32860
|
+
var _a25, _b25;
|
|
32861
|
+
return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.showOnEveryFetch;
|
|
32862
|
+
});
|
|
32863
|
+
const skeletonEnabled = computed(() => {
|
|
32864
|
+
var _a25, _b25, _c;
|
|
32865
|
+
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));
|
|
32866
|
+
});
|
|
32867
|
+
const relatedQueriesSkeletonEnabled = computed(() => {
|
|
32868
|
+
var _a25, _b25, _c, _d;
|
|
32869
|
+
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));
|
|
32870
|
+
});
|
|
32871
|
+
const facetSkeletonEnabled = computed(() => {
|
|
32872
|
+
var _a25, _b25, _c;
|
|
32873
|
+
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));
|
|
32874
|
+
});
|
|
32875
|
+
const loadingFacets = computed(() => {
|
|
32876
|
+
var _a25;
|
|
32877
|
+
if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
|
|
32878
|
+
return loadingFacetsBase.value;
|
|
32879
|
+
}
|
|
32880
|
+
return loading.value;
|
|
32881
|
+
});
|
|
32882
|
+
const loadingAny = computed(() => {
|
|
32883
|
+
return loading.value || loadingRelatedQueries.value || loadingFacets.value;
|
|
32884
|
+
});
|
|
32885
|
+
return {
|
|
32886
|
+
loading,
|
|
32887
|
+
loadingRelatedQueries,
|
|
32888
|
+
loadingFacets,
|
|
32889
|
+
loadingAny,
|
|
32890
|
+
limit,
|
|
32891
|
+
skeletonEnabled,
|
|
32892
|
+
relatedQueriesSkeletonEnabled,
|
|
32893
|
+
facetSkeletonEnabled
|
|
32894
|
+
};
|
|
32895
|
+
};
|
|
32896
|
+
const _hoisted_1$Z = {
|
|
32757
32897
|
key: 0,
|
|
32758
32898
|
class: "lupa-result-page-title",
|
|
32759
32899
|
"data-cy": "lupa-result-page-title"
|
|
@@ -32765,7 +32905,7 @@ and ensure you are accounting for this risk.
|
|
|
32765
32905
|
};
|
|
32766
32906
|
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
32767
32907
|
const _hoisted_5$g = ["innerHTML"];
|
|
32768
|
-
const _sfc_main$
|
|
32908
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
32769
32909
|
__name: "SearchResultsTitle",
|
|
32770
32910
|
props: {
|
|
32771
32911
|
options: {},
|
|
@@ -32775,7 +32915,10 @@ and ensure you are accounting for this risk.
|
|
|
32775
32915
|
setup(__props) {
|
|
32776
32916
|
const props = __props;
|
|
32777
32917
|
const searchResultStore = useSearchResultStore();
|
|
32918
|
+
const paramsStore = useParamsStore();
|
|
32778
32919
|
const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
|
|
32920
|
+
const { skeletonEnabled, loading } = useLoadingSkeleton();
|
|
32921
|
+
const { query } = storeToRefs(paramsStore);
|
|
32779
32922
|
const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
|
|
32780
32923
|
const queryText = computed(() => {
|
|
32781
32924
|
return suggestedSearchText.value || currentQueryText.value;
|
|
@@ -32808,29 +32951,39 @@ and ensure you are accounting for this risk.
|
|
|
32808
32951
|
});
|
|
32809
32952
|
return (_ctx, _cache) => {
|
|
32810
32953
|
return openBlock(), createElementBlock("div", null, [
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
|
|
32823
|
-
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
32827
|
-
|
|
32828
|
-
|
|
32954
|
+
createVNode(_sfc_main$18, {
|
|
32955
|
+
type: "text",
|
|
32956
|
+
count: 1,
|
|
32957
|
+
enabled: unref(skeletonEnabled) && Boolean(unref(query)),
|
|
32958
|
+
loading: unref(loading)
|
|
32959
|
+
}, {
|
|
32960
|
+
default: withCtx(() => [
|
|
32961
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
|
|
32962
|
+
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32963
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32964
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
32965
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32966
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
32967
|
+
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32968
|
+
])) : createCommentVNode("", true)
|
|
32969
|
+
])) : createCommentVNode("", true),
|
|
32970
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
32971
|
+
key: 1,
|
|
32972
|
+
label: summaryLabel.value
|
|
32973
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
32974
|
+
descriptionTop.value ? (openBlock(), createElementBlock("div", {
|
|
32975
|
+
key: 2,
|
|
32976
|
+
class: "lupa-result-page-description-top",
|
|
32977
|
+
innerHTML: descriptionTop.value
|
|
32978
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
32979
|
+
]),
|
|
32980
|
+
_: 1
|
|
32981
|
+
}, 8, ["enabled", "loading"])
|
|
32829
32982
|
]);
|
|
32830
32983
|
};
|
|
32831
32984
|
}
|
|
32832
32985
|
});
|
|
32833
|
-
const _hoisted_1$
|
|
32986
|
+
const _hoisted_1$Y = {
|
|
32834
32987
|
class: "lupa-current-filter-label",
|
|
32835
32988
|
"data-cy": "lupa-current-filter-label"
|
|
32836
32989
|
};
|
|
@@ -32838,7 +32991,7 @@ and ensure you are accounting for this risk.
|
|
|
32838
32991
|
class: "lupa-current-filter-value",
|
|
32839
32992
|
"data-cy": "lupa-current-filter-value"
|
|
32840
32993
|
};
|
|
32841
|
-
const _sfc_main$
|
|
32994
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
32842
32995
|
__name: "CurrentFilterDisplay",
|
|
32843
32996
|
props: {
|
|
32844
32997
|
filter: {}
|
|
@@ -32880,13 +33033,13 @@ and ensure you are accounting for this risk.
|
|
|
32880
33033
|
onClick: handleClick,
|
|
32881
33034
|
"aria-label": "Remove filter"
|
|
32882
33035
|
}, "⨉"),
|
|
32883
|
-
createBaseVNode("div", _hoisted_1$
|
|
33036
|
+
createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32884
33037
|
createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32885
33038
|
], 2);
|
|
32886
33039
|
};
|
|
32887
33040
|
}
|
|
32888
33041
|
});
|
|
32889
|
-
const _hoisted_1$
|
|
33042
|
+
const _hoisted_1$X = { class: "lupa-filter-title-text" };
|
|
32890
33043
|
const _hoisted_2$G = {
|
|
32891
33044
|
key: 0,
|
|
32892
33045
|
class: "lupa-filter-count"
|
|
@@ -32896,7 +33049,7 @@ and ensure you are accounting for this risk.
|
|
|
32896
33049
|
class: "filter-values"
|
|
32897
33050
|
};
|
|
32898
33051
|
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
32899
|
-
const _sfc_main$
|
|
33052
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
32900
33053
|
__name: "CurrentFilters",
|
|
32901
33054
|
props: {
|
|
32902
33055
|
options: {},
|
|
@@ -32976,7 +33129,7 @@ and ensure you are accounting for this risk.
|
|
|
32976
33129
|
class: "lupa-current-filter-title",
|
|
32977
33130
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32978
33131
|
}, [
|
|
32979
|
-
createBaseVNode("div", _hoisted_1$
|
|
33132
|
+
createBaseVNode("div", _hoisted_1$X, [
|
|
32980
33133
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32981
33134
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32982
33135
|
]),
|
|
@@ -32988,7 +33141,7 @@ and ensure you are accounting for this risk.
|
|
|
32988
33141
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
32989
33142
|
createBaseVNode("div", _hoisted_4$n, [
|
|
32990
33143
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32991
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33144
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
32992
33145
|
key: filter.key + "_" + filter.value,
|
|
32993
33146
|
filter,
|
|
32994
33147
|
units: units.value,
|
|
@@ -33006,8 +33159,8 @@ and ensure you are accounting for this risk.
|
|
|
33006
33159
|
};
|
|
33007
33160
|
}
|
|
33008
33161
|
});
|
|
33009
|
-
const _hoisted_1$
|
|
33010
|
-
const _sfc_main$
|
|
33162
|
+
const _hoisted_1$W = ["href"];
|
|
33163
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
33011
33164
|
__name: "CategoryFilterItem",
|
|
33012
33165
|
props: {
|
|
33013
33166
|
options: {},
|
|
@@ -33044,12 +33197,12 @@ and ensure you are accounting for this risk.
|
|
|
33044
33197
|
"data-cy": "lupa-child-category-item",
|
|
33045
33198
|
href: urlLink.value,
|
|
33046
33199
|
onClick: handleNavigation
|
|
33047
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
33200
|
+
}, toDisplayString(title.value), 9, _hoisted_1$W)
|
|
33048
33201
|
], 2);
|
|
33049
33202
|
};
|
|
33050
33203
|
}
|
|
33051
33204
|
});
|
|
33052
|
-
const _hoisted_1$
|
|
33205
|
+
const _hoisted_1$V = {
|
|
33053
33206
|
class: "lupa-category-filter",
|
|
33054
33207
|
"data-cy": "lupa-category-filter"
|
|
33055
33208
|
};
|
|
@@ -33057,7 +33210,7 @@ and ensure you are accounting for this risk.
|
|
|
33057
33210
|
const _hoisted_3$v = ["href"];
|
|
33058
33211
|
const _hoisted_4$m = ["href"];
|
|
33059
33212
|
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
33060
|
-
const _sfc_main$
|
|
33213
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
33061
33214
|
__name: "CategoryFilter",
|
|
33062
33215
|
props: {
|
|
33063
33216
|
options: {}
|
|
@@ -33145,7 +33298,7 @@ and ensure you are accounting for this risk.
|
|
|
33145
33298
|
};
|
|
33146
33299
|
__expose({ fetch: fetch2 });
|
|
33147
33300
|
return (_ctx, _cache) => {
|
|
33148
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33301
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
33149
33302
|
createBaseVNode("div", _hoisted_2$F, [
|
|
33150
33303
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
33151
33304
|
key: 0,
|
|
@@ -33166,7 +33319,7 @@ and ensure you are accounting for this risk.
|
|
|
33166
33319
|
], 2),
|
|
33167
33320
|
createBaseVNode("div", _hoisted_5$f, [
|
|
33168
33321
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
33169
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33322
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
33170
33323
|
key: getCategoryKey(child),
|
|
33171
33324
|
item: child,
|
|
33172
33325
|
options: _ctx.options
|
|
@@ -33177,7 +33330,7 @@ and ensure you are accounting for this risk.
|
|
|
33177
33330
|
};
|
|
33178
33331
|
}
|
|
33179
33332
|
});
|
|
33180
|
-
const _hoisted_1$
|
|
33333
|
+
const _hoisted_1$U = {
|
|
33181
33334
|
class: "lupa-search-result-facet-term-values",
|
|
33182
33335
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
33183
33336
|
};
|
|
@@ -33192,7 +33345,7 @@ and ensure you are accounting for this risk.
|
|
|
33192
33345
|
};
|
|
33193
33346
|
const _hoisted_8$2 = { key: 0 };
|
|
33194
33347
|
const _hoisted_9$2 = { key: 1 };
|
|
33195
|
-
const _sfc_main$
|
|
33348
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
33196
33349
|
__name: "TermFacet",
|
|
33197
33350
|
props: {
|
|
33198
33351
|
options: {},
|
|
@@ -33286,7 +33439,7 @@ and ensure you are accounting for this risk.
|
|
|
33286
33439
|
}
|
|
33287
33440
|
};
|
|
33288
33441
|
return (_ctx, _cache) => {
|
|
33289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33442
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
33290
33443
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
33291
33444
|
key: 0,
|
|
33292
33445
|
class: "lupa-term-filter",
|
|
@@ -34235,7 +34388,7 @@ and ensure you are accounting for this risk.
|
|
|
34235
34388
|
}
|
|
34236
34389
|
return out;
|
|
34237
34390
|
};
|
|
34238
|
-
const _hoisted_1$
|
|
34391
|
+
const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
|
|
34239
34392
|
const _hoisted_2$D = {
|
|
34240
34393
|
key: 0,
|
|
34241
34394
|
class: "lupa-stats-facet-summary"
|
|
@@ -34264,7 +34417,7 @@ and ensure you are accounting for this risk.
|
|
|
34264
34417
|
key: 2,
|
|
34265
34418
|
class: "lupa-stats-slider-wrapper"
|
|
34266
34419
|
};
|
|
34267
|
-
const _sfc_main$
|
|
34420
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
34268
34421
|
__name: "StatsFacet",
|
|
34269
34422
|
props: {
|
|
34270
34423
|
options: {},
|
|
@@ -34483,7 +34636,7 @@ and ensure you are accounting for this risk.
|
|
|
34483
34636
|
}
|
|
34484
34637
|
);
|
|
34485
34638
|
return (_ctx, _cache) => {
|
|
34486
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34639
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
34487
34640
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
34488
34641
|
createBaseVNode("div", _hoisted_4$k, [
|
|
34489
34642
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -34548,7 +34701,7 @@ and ensure you are accounting for this risk.
|
|
|
34548
34701
|
};
|
|
34549
34702
|
}
|
|
34550
34703
|
});
|
|
34551
|
-
const _hoisted_1$
|
|
34704
|
+
const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
|
|
34552
34705
|
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
34553
34706
|
const _hoisted_3$s = {
|
|
34554
34707
|
key: 0,
|
|
@@ -34558,7 +34711,7 @@ and ensure you are accounting for this risk.
|
|
|
34558
34711
|
key: 0,
|
|
34559
34712
|
class: "lupa-facet-level"
|
|
34560
34713
|
};
|
|
34561
|
-
const _sfc_main
|
|
34714
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
34562
34715
|
__name: "HierarchyFacetLevel",
|
|
34563
34716
|
props: {
|
|
34564
34717
|
options: {},
|
|
@@ -34612,7 +34765,7 @@ and ensure you are accounting for this risk.
|
|
|
34612
34765
|
"data-cy": "lupa-facet-term",
|
|
34613
34766
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34614
34767
|
}, [
|
|
34615
|
-
createBaseVNode("div", _hoisted_1$
|
|
34768
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
34616
34769
|
createBaseVNode("span", {
|
|
34617
34770
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34618
34771
|
}, null, 2)
|
|
@@ -34640,13 +34793,13 @@ and ensure you are accounting for this risk.
|
|
|
34640
34793
|
};
|
|
34641
34794
|
}
|
|
34642
34795
|
});
|
|
34643
|
-
const _hoisted_1$
|
|
34796
|
+
const _hoisted_1$R = {
|
|
34644
34797
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34645
34798
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34646
34799
|
};
|
|
34647
34800
|
const _hoisted_2$B = { key: 0 };
|
|
34648
34801
|
const _hoisted_3$r = ["placeholder"];
|
|
34649
|
-
const _sfc_main
|
|
34802
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
34650
34803
|
__name: "HierarchyFacet",
|
|
34651
34804
|
props: {
|
|
34652
34805
|
options: {},
|
|
@@ -34702,7 +34855,7 @@ and ensure you are accounting for this risk.
|
|
|
34702
34855
|
showAll.value = false;
|
|
34703
34856
|
};
|
|
34704
34857
|
return (_ctx, _cache) => {
|
|
34705
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34858
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
34706
34859
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
34707
34860
|
withDirectives(createBaseVNode("input", {
|
|
34708
34861
|
class: "lupa-term-filter",
|
|
@@ -34714,7 +34867,7 @@ and ensure you are accounting for this risk.
|
|
|
34714
34867
|
])
|
|
34715
34868
|
])) : createCommentVNode("", true),
|
|
34716
34869
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34717
|
-
return openBlock(), createBlock(_sfc_main
|
|
34870
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
34718
34871
|
key: item.title,
|
|
34719
34872
|
options: _ctx.options,
|
|
34720
34873
|
item,
|
|
@@ -34738,7 +34891,7 @@ and ensure you are accounting for this risk.
|
|
|
34738
34891
|
};
|
|
34739
34892
|
}
|
|
34740
34893
|
});
|
|
34741
|
-
const _hoisted_1$
|
|
34894
|
+
const _hoisted_1$Q = { class: "lupa-facet-label-text" };
|
|
34742
34895
|
const _hoisted_2$A = {
|
|
34743
34896
|
key: 0,
|
|
34744
34897
|
class: "lupa-facet-content",
|
|
@@ -34746,12 +34899,12 @@ and ensure you are accounting for this risk.
|
|
|
34746
34899
|
};
|
|
34747
34900
|
const __default__$1 = {
|
|
34748
34901
|
components: {
|
|
34749
|
-
TermFacet: _sfc_main$
|
|
34750
|
-
StatsFacet: _sfc_main$
|
|
34751
|
-
HierarchyFacet: _sfc_main
|
|
34902
|
+
TermFacet: _sfc_main$12,
|
|
34903
|
+
StatsFacet: _sfc_main$11,
|
|
34904
|
+
HierarchyFacet: _sfc_main$$
|
|
34752
34905
|
}
|
|
34753
34906
|
};
|
|
34754
|
-
const _sfc_main$
|
|
34907
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34755
34908
|
__name: "FacetDisplay",
|
|
34756
34909
|
props: {
|
|
34757
34910
|
options: {},
|
|
@@ -34898,7 +35051,7 @@ and ensure you are accounting for this risk.
|
|
|
34898
35051
|
"data-cy": "lupa-search-result-facet-label",
|
|
34899
35052
|
onClick: toggleFacet
|
|
34900
35053
|
}, [
|
|
34901
|
-
createBaseVNode("div", _hoisted_1$
|
|
35054
|
+
createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
|
|
34902
35055
|
createBaseVNode("div", {
|
|
34903
35056
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34904
35057
|
}, null, 2)
|
|
@@ -35016,11 +35169,11 @@ and ensure you are accounting for this risk.
|
|
|
35016
35169
|
handleSortSidebarToggle
|
|
35017
35170
|
};
|
|
35018
35171
|
};
|
|
35019
|
-
const _hoisted_1$
|
|
35172
|
+
const _hoisted_1$P = {
|
|
35020
35173
|
key: 0,
|
|
35021
35174
|
class: "lupa-desktop-toggle-filter-count"
|
|
35022
35175
|
};
|
|
35023
|
-
const _sfc_main$
|
|
35176
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
35024
35177
|
__name: "DesktopFacetToggle",
|
|
35025
35178
|
setup(__props) {
|
|
35026
35179
|
const {
|
|
@@ -35042,12 +35195,12 @@ and ensure you are accounting for this risk.
|
|
|
35042
35195
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35043
35196
|
}, [
|
|
35044
35197
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35045
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35198
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35046
35199
|
], 2);
|
|
35047
35200
|
};
|
|
35048
35201
|
}
|
|
35049
35202
|
});
|
|
35050
|
-
const _sfc_main$
|
|
35203
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
35051
35204
|
__name: "DesktopSortToggle",
|
|
35052
35205
|
setup(__props) {
|
|
35053
35206
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -35063,12 +35216,12 @@ and ensure you are accounting for this risk.
|
|
|
35063
35216
|
};
|
|
35064
35217
|
}
|
|
35065
35218
|
});
|
|
35066
|
-
const _hoisted_1$
|
|
35219
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
|
|
35067
35220
|
const _hoisted_2$z = {
|
|
35068
35221
|
key: 0,
|
|
35069
35222
|
class: "lupa-facets-title"
|
|
35070
35223
|
};
|
|
35071
|
-
const _sfc_main$
|
|
35224
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
35072
35225
|
__name: "FacetList",
|
|
35073
35226
|
props: {
|
|
35074
35227
|
options: {},
|
|
@@ -35110,14 +35263,14 @@ and ensure you are accounting for this risk.
|
|
|
35110
35263
|
};
|
|
35111
35264
|
return (_ctx, _cache) => {
|
|
35112
35265
|
var _a25;
|
|
35113
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35266
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
35114
35267
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
35115
35268
|
createBaseVNode("div", {
|
|
35116
35269
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
35117
35270
|
}, [
|
|
35118
35271
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
35119
35272
|
var _a26;
|
|
35120
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35273
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
35121
35274
|
key: facet.key,
|
|
35122
35275
|
facet,
|
|
35123
35276
|
currentFilters: currentFiltersValue.value,
|
|
@@ -35129,14 +35282,14 @@ and ensure you are accounting for this risk.
|
|
|
35129
35282
|
onExpand: unref(handleFilterSidebarToggle)
|
|
35130
35283
|
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
35131
35284
|
}), 128)),
|
|
35132
|
-
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$
|
|
35133
|
-
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$
|
|
35285
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
|
|
35286
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
|
|
35134
35287
|
], 2)
|
|
35135
35288
|
]);
|
|
35136
35289
|
};
|
|
35137
35290
|
}
|
|
35138
35291
|
});
|
|
35139
|
-
const _sfc_main$
|
|
35292
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
35140
35293
|
__name: "FacetsButton",
|
|
35141
35294
|
props: {
|
|
35142
35295
|
options: {}
|
|
@@ -35161,7 +35314,7 @@ and ensure you are accounting for this risk.
|
|
|
35161
35314
|
};
|
|
35162
35315
|
}
|
|
35163
35316
|
});
|
|
35164
|
-
const _sfc_main$
|
|
35317
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
35165
35318
|
__name: "FacetsClearButton",
|
|
35166
35319
|
props: {
|
|
35167
35320
|
options: {}
|
|
@@ -35186,8 +35339,8 @@ and ensure you are accounting for this risk.
|
|
|
35186
35339
|
};
|
|
35187
35340
|
}
|
|
35188
35341
|
});
|
|
35189
|
-
const _hoisted_1$
|
|
35190
|
-
const _sfc_main$
|
|
35342
|
+
const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
|
|
35343
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
35191
35344
|
__name: "Facets",
|
|
35192
35345
|
props: {
|
|
35193
35346
|
options: {},
|
|
@@ -35295,7 +35448,7 @@ and ensure you are accounting for this risk.
|
|
|
35295
35448
|
return openBlock(), createElementBlock("div", {
|
|
35296
35449
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
35297
35450
|
}, [
|
|
35298
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
35451
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
35299
35452
|
key: 0,
|
|
35300
35453
|
options: _ctx.options,
|
|
35301
35454
|
facets: regularFacets.value,
|
|
@@ -35305,13 +35458,13 @@ and ensure you are accounting for this risk.
|
|
|
35305
35458
|
onSelect: handleFacetSelect,
|
|
35306
35459
|
onClear: clear
|
|
35307
35460
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
35308
|
-
createBaseVNode("div", _hoisted_1$
|
|
35309
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35461
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
35462
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
35310
35463
|
key: 0,
|
|
35311
35464
|
options: _ctx.options,
|
|
35312
35465
|
onClear: clearAll
|
|
35313
35466
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35314
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35467
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
35315
35468
|
key: 1,
|
|
35316
35469
|
options: _ctx.options,
|
|
35317
35470
|
onFilter: filter
|
|
@@ -35321,12 +35474,12 @@ and ensure you are accounting for this risk.
|
|
|
35321
35474
|
};
|
|
35322
35475
|
}
|
|
35323
35476
|
});
|
|
35324
|
-
const _hoisted_1$
|
|
35477
|
+
const _hoisted_1$M = {
|
|
35325
35478
|
key: 0,
|
|
35326
35479
|
id: "lupa-search-result-filters",
|
|
35327
35480
|
class: "lupa-search-result-filters"
|
|
35328
35481
|
};
|
|
35329
|
-
const _sfc_main$
|
|
35482
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
35330
35483
|
__name: "SearchResultsFilters",
|
|
35331
35484
|
props: {
|
|
35332
35485
|
options: {},
|
|
@@ -35336,6 +35489,7 @@ and ensure you are accounting for this risk.
|
|
|
35336
35489
|
emits: ["filter"],
|
|
35337
35490
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35338
35491
|
const categoryFilters = ref(null);
|
|
35492
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35339
35493
|
const props = __props;
|
|
35340
35494
|
const emit2 = __emit;
|
|
35341
35495
|
const desktopFiltersVisible = computed(() => {
|
|
@@ -35364,30 +35518,42 @@ and ensure you are accounting for this risk.
|
|
|
35364
35518
|
};
|
|
35365
35519
|
__expose({ fetch: fetch2 });
|
|
35366
35520
|
return (_ctx, _cache) => {
|
|
35367
|
-
|
|
35368
|
-
|
|
35369
|
-
|
|
35370
|
-
|
|
35371
|
-
|
|
35372
|
-
|
|
35373
|
-
},
|
|
35374
|
-
|
|
35375
|
-
|
|
35376
|
-
|
|
35377
|
-
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35382
|
-
|
|
35383
|
-
|
|
35384
|
-
|
|
35385
|
-
|
|
35521
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
35522
|
+
createVNode(_sfc_main$18, {
|
|
35523
|
+
class: "lupa-skeleton-filters",
|
|
35524
|
+
count: 1,
|
|
35525
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35526
|
+
loading: unref(loadingFacets)
|
|
35527
|
+
}, {
|
|
35528
|
+
default: withCtx(() => {
|
|
35529
|
+
var _a25;
|
|
35530
|
+
return [
|
|
35531
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
|
|
35532
|
+
key: 0,
|
|
35533
|
+
options: _ctx.options.currentFilters,
|
|
35534
|
+
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
35535
|
+
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
35536
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
|
|
35537
|
+
key: 1,
|
|
35538
|
+
options: _ctx.options.categories,
|
|
35539
|
+
ref_key: "categoryFilters",
|
|
35540
|
+
ref: categoryFilters
|
|
35541
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35542
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35543
|
+
key: 2,
|
|
35544
|
+
options: _ctx.options.facets,
|
|
35545
|
+
"facet-style": _ctx.style,
|
|
35546
|
+
onFilter: filter
|
|
35547
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35548
|
+
];
|
|
35549
|
+
}),
|
|
35550
|
+
_: 1
|
|
35551
|
+
}, 8, ["enabled", "loading"])
|
|
35386
35552
|
])) : createCommentVNode("", true);
|
|
35387
35553
|
};
|
|
35388
35554
|
}
|
|
35389
35555
|
});
|
|
35390
|
-
const _hoisted_1$
|
|
35556
|
+
const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
|
|
35391
35557
|
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
35392
35558
|
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
35393
35559
|
const _hoisted_4$i = {
|
|
@@ -35395,7 +35561,7 @@ and ensure you are accounting for this risk.
|
|
|
35395
35561
|
class: "lupa-sidebar-filter-count"
|
|
35396
35562
|
};
|
|
35397
35563
|
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
35398
|
-
const _sfc_main$
|
|
35564
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
35399
35565
|
__name: "MobileFilterSidebar",
|
|
35400
35566
|
props: {
|
|
35401
35567
|
options: {}
|
|
@@ -35434,7 +35600,7 @@ and ensure you are accounting for this risk.
|
|
|
35434
35600
|
class: "lupa-sidebar-close",
|
|
35435
35601
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
35436
35602
|
}),
|
|
35437
|
-
createBaseVNode("div", _hoisted_1$
|
|
35603
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
35438
35604
|
createBaseVNode("div", _hoisted_2$y, [
|
|
35439
35605
|
createBaseVNode("div", _hoisted_3$q, [
|
|
35440
35606
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -35446,7 +35612,7 @@ and ensure you are accounting for this risk.
|
|
|
35446
35612
|
})
|
|
35447
35613
|
]),
|
|
35448
35614
|
createBaseVNode("div", _hoisted_5$c, [
|
|
35449
|
-
createVNode(_sfc_main$
|
|
35615
|
+
createVNode(_sfc_main$T, {
|
|
35450
35616
|
options: _ctx.options,
|
|
35451
35617
|
expandable: isActiveFiltersExpanded.value,
|
|
35452
35618
|
style: "sidebar",
|
|
@@ -35458,14 +35624,17 @@ and ensure you are accounting for this risk.
|
|
|
35458
35624
|
};
|
|
35459
35625
|
}
|
|
35460
35626
|
});
|
|
35461
|
-
const _hoisted_1$
|
|
35627
|
+
const _hoisted_1$K = {
|
|
35628
|
+
key: 0,
|
|
35629
|
+
id: "lupa-search-results-breadcrumbs"
|
|
35630
|
+
};
|
|
35462
35631
|
const _hoisted_2$x = ["href", "onClick"];
|
|
35463
35632
|
const _hoisted_3$p = {
|
|
35464
35633
|
key: 1,
|
|
35465
35634
|
class: "lupa-search-results-breadcrumb-text"
|
|
35466
35635
|
};
|
|
35467
35636
|
const _hoisted_4$h = { key: 2 };
|
|
35468
|
-
const _sfc_main$
|
|
35637
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
35469
35638
|
__name: "SearchResultsBreadcrumbs",
|
|
35470
35639
|
props: {
|
|
35471
35640
|
breadcrumbs: {}
|
|
@@ -35483,6 +35652,10 @@ and ensure you are accounting for this risk.
|
|
|
35483
35652
|
const hasEventRouting = computed(() => {
|
|
35484
35653
|
return searchResultOptions.value.routingBehavior === "event";
|
|
35485
35654
|
});
|
|
35655
|
+
const hasBreadcrumbs = computed(() => {
|
|
35656
|
+
var _a25;
|
|
35657
|
+
return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
|
|
35658
|
+
});
|
|
35486
35659
|
const getLabel = (label) => {
|
|
35487
35660
|
return addParamsToLabel(label, `'${currentQueryText.value}'`);
|
|
35488
35661
|
};
|
|
@@ -35490,7 +35663,7 @@ and ensure you are accounting for this risk.
|
|
|
35490
35663
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
35491
35664
|
};
|
|
35492
35665
|
return (_ctx, _cache) => {
|
|
35493
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35666
|
+
return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
35494
35667
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
35495
35668
|
var _a25;
|
|
35496
35669
|
return openBlock(), createElementBlock("span", {
|
|
@@ -35509,16 +35682,16 @@ and ensure you are accounting for this risk.
|
|
|
35509
35682
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
35510
35683
|
]);
|
|
35511
35684
|
}), 128))
|
|
35512
|
-
]);
|
|
35685
|
+
])) : createCommentVNode("", true);
|
|
35513
35686
|
};
|
|
35514
35687
|
}
|
|
35515
35688
|
});
|
|
35516
|
-
const _hoisted_1$
|
|
35689
|
+
const _hoisted_1$J = {
|
|
35517
35690
|
key: 0,
|
|
35518
35691
|
id: "lupa-search-result-filters",
|
|
35519
35692
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
35520
35693
|
};
|
|
35521
|
-
const _sfc_main$
|
|
35694
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
35522
35695
|
__name: "FiltersTopDropdown",
|
|
35523
35696
|
props: {
|
|
35524
35697
|
options: {}
|
|
@@ -35526,6 +35699,7 @@ and ensure you are accounting for this risk.
|
|
|
35526
35699
|
emits: ["filter"],
|
|
35527
35700
|
setup(__props, { emit: __emit }) {
|
|
35528
35701
|
const props = __props;
|
|
35702
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35529
35703
|
const emit2 = __emit;
|
|
35530
35704
|
const filter = () => {
|
|
35531
35705
|
emit2("filter");
|
|
@@ -35535,21 +35709,33 @@ and ensure you are accounting for this risk.
|
|
|
35535
35709
|
return (_a25 = props.options.visible) != null ? _a25 : true;
|
|
35536
35710
|
});
|
|
35537
35711
|
return (_ctx, _cache) => {
|
|
35538
|
-
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35543
|
-
|
|
35544
|
-
|
|
35545
|
-
|
|
35546
|
-
|
|
35712
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
35713
|
+
createVNode(_sfc_main$18, {
|
|
35714
|
+
class: "lupa-skeleton-top-dropdown-filters",
|
|
35715
|
+
count: 1,
|
|
35716
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35717
|
+
loading: unref(loadingFacets)
|
|
35718
|
+
}, {
|
|
35719
|
+
default: withCtx(() => {
|
|
35720
|
+
var _a25;
|
|
35721
|
+
return [
|
|
35722
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35723
|
+
key: 0,
|
|
35724
|
+
options: _ctx.options.facets,
|
|
35725
|
+
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
35726
|
+
clearable: true,
|
|
35727
|
+
onFilter: filter
|
|
35728
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35729
|
+
];
|
|
35730
|
+
}),
|
|
35731
|
+
_: 1
|
|
35732
|
+
}, 8, ["enabled", "loading"])
|
|
35547
35733
|
])) : createCommentVNode("", true);
|
|
35548
35734
|
};
|
|
35549
35735
|
}
|
|
35550
35736
|
});
|
|
35551
|
-
const _hoisted_1$
|
|
35552
|
-
const _sfc_main$
|
|
35737
|
+
const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
|
|
35738
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
35553
35739
|
__name: "SearchResultsLayoutSelection",
|
|
35554
35740
|
setup(__props) {
|
|
35555
35741
|
const searchResultStore = useSearchResultStore();
|
|
@@ -35560,7 +35746,7 @@ and ensure you are accounting for this risk.
|
|
|
35560
35746
|
searchResultStore.setLayout(layout2);
|
|
35561
35747
|
};
|
|
35562
35748
|
return (_ctx, _cache) => {
|
|
35563
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35749
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
35564
35750
|
createBaseVNode("div", {
|
|
35565
35751
|
class: normalizeClass([
|
|
35566
35752
|
"lupa-layout-selection-grid",
|
|
@@ -35582,11 +35768,11 @@ and ensure you are accounting for this risk.
|
|
|
35582
35768
|
};
|
|
35583
35769
|
}
|
|
35584
35770
|
});
|
|
35585
|
-
const _hoisted_1$
|
|
35771
|
+
const _hoisted_1$H = {
|
|
35586
35772
|
key: 0,
|
|
35587
35773
|
class: "lupa-mobile-toggle-filter-count"
|
|
35588
35774
|
};
|
|
35589
|
-
const _sfc_main$
|
|
35775
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35590
35776
|
__name: "SearchResultsMobileToggle",
|
|
35591
35777
|
setup(__props) {
|
|
35592
35778
|
const {
|
|
@@ -35608,12 +35794,12 @@ and ensure you are accounting for this risk.
|
|
|
35608
35794
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35609
35795
|
}, [
|
|
35610
35796
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35611
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35797
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35612
35798
|
], 2);
|
|
35613
35799
|
};
|
|
35614
35800
|
}
|
|
35615
35801
|
});
|
|
35616
|
-
const _sfc_main$
|
|
35802
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
35617
35803
|
__name: "SearchResultsMobileFilterClose",
|
|
35618
35804
|
props: {
|
|
35619
35805
|
label: {}
|
|
@@ -35633,7 +35819,7 @@ and ensure you are accounting for this risk.
|
|
|
35633
35819
|
};
|
|
35634
35820
|
}
|
|
35635
35821
|
});
|
|
35636
|
-
const _hoisted_1$
|
|
35822
|
+
const _hoisted_1$G = {
|
|
35637
35823
|
key: 0,
|
|
35638
35824
|
id: "lupa-search-results-page-select",
|
|
35639
35825
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -35646,7 +35832,7 @@ and ensure you are accounting for this risk.
|
|
|
35646
35832
|
key: 0,
|
|
35647
35833
|
class: "lupa-page-number-separator"
|
|
35648
35834
|
};
|
|
35649
|
-
const _sfc_main$
|
|
35835
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
35650
35836
|
__name: "SearchResultsPageSelect",
|
|
35651
35837
|
props: {
|
|
35652
35838
|
lastPageLabel: {},
|
|
@@ -35741,7 +35927,7 @@ and ensure you are accounting for this risk.
|
|
|
35741
35927
|
};
|
|
35742
35928
|
return (_ctx, _cache) => {
|
|
35743
35929
|
var _a25;
|
|
35744
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35930
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
35745
35931
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35746
35932
|
key: 0,
|
|
35747
35933
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35816,7 +36002,7 @@ and ensure you are accounting for this risk.
|
|
|
35816
36002
|
};
|
|
35817
36003
|
}
|
|
35818
36004
|
});
|
|
35819
|
-
const _hoisted_1$
|
|
36005
|
+
const _hoisted_1$F = {
|
|
35820
36006
|
id: "lupa-search-results-page-size",
|
|
35821
36007
|
"data-cy": "lupa-search-results-page-size"
|
|
35822
36008
|
};
|
|
@@ -35827,7 +36013,7 @@ and ensure you are accounting for this risk.
|
|
|
35827
36013
|
};
|
|
35828
36014
|
const _hoisted_4$g = ["value", "aria-label"];
|
|
35829
36015
|
const _hoisted_5$b = ["value"];
|
|
35830
|
-
const _sfc_main$
|
|
36016
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
35831
36017
|
__name: "SearchResultsPageSize",
|
|
35832
36018
|
props: {
|
|
35833
36019
|
labels: {},
|
|
@@ -35858,7 +36044,7 @@ and ensure you are accounting for this risk.
|
|
|
35858
36044
|
};
|
|
35859
36045
|
return (_ctx, _cache) => {
|
|
35860
36046
|
var _a25, _b25, _c;
|
|
35861
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36047
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
35862
36048
|
createBaseVNode("div", _hoisted_2$v, [
|
|
35863
36049
|
createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
35864
36050
|
createBaseVNode("select", {
|
|
@@ -35950,7 +36136,7 @@ and ensure you are accounting for this risk.
|
|
|
35950
36136
|
setSortValue
|
|
35951
36137
|
};
|
|
35952
36138
|
};
|
|
35953
|
-
const _hoisted_1$
|
|
36139
|
+
const _hoisted_1$E = {
|
|
35954
36140
|
key: 0,
|
|
35955
36141
|
id: "lupa-search-results-sort",
|
|
35956
36142
|
class: "lupa-search-results-sort"
|
|
@@ -35962,7 +36148,7 @@ and ensure you are accounting for this risk.
|
|
|
35962
36148
|
};
|
|
35963
36149
|
const _hoisted_4$f = ["aria-label"];
|
|
35964
36150
|
const _hoisted_5$a = ["value"];
|
|
35965
|
-
const _sfc_main$
|
|
36151
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35966
36152
|
__name: "SearchResultsSort",
|
|
35967
36153
|
setup(__props) {
|
|
35968
36154
|
const {
|
|
@@ -35983,7 +36169,7 @@ and ensure you are accounting for this risk.
|
|
|
35983
36169
|
});
|
|
35984
36170
|
return (_ctx, _cache) => {
|
|
35985
36171
|
var _a25, _b25;
|
|
35986
|
-
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36172
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
35987
36173
|
createBaseVNode("div", _hoisted_2$u, [
|
|
35988
36174
|
createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
35989
36175
|
withDirectives(createBaseVNode("select", {
|
|
@@ -36010,7 +36196,7 @@ and ensure you are accounting for this risk.
|
|
|
36010
36196
|
};
|
|
36011
36197
|
}
|
|
36012
36198
|
});
|
|
36013
|
-
const _sfc_main$
|
|
36199
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
36014
36200
|
__name: "SearchResultsSortDrawerToggle",
|
|
36015
36201
|
setup(__props) {
|
|
36016
36202
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -36026,7 +36212,7 @@ and ensure you are accounting for this risk.
|
|
|
36026
36212
|
};
|
|
36027
36213
|
}
|
|
36028
36214
|
});
|
|
36029
|
-
const _hoisted_1$
|
|
36215
|
+
const _hoisted_1$D = { class: "lupa-toolbar-left" };
|
|
36030
36216
|
const _hoisted_2$t = {
|
|
36031
36217
|
key: 0,
|
|
36032
36218
|
class: "lupa-toolbar-right-title"
|
|
@@ -36041,7 +36227,7 @@ and ensure you are accounting for this risk.
|
|
|
36041
36227
|
};
|
|
36042
36228
|
const _hoisted_8 = { key: 2 };
|
|
36043
36229
|
const _hoisted_9 = { key: 4 };
|
|
36044
|
-
const _sfc_main$
|
|
36230
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
36045
36231
|
__name: "SearchResultsToolbar",
|
|
36046
36232
|
props: {
|
|
36047
36233
|
options: {},
|
|
@@ -36154,16 +36340,16 @@ and ensure you are accounting for this risk.
|
|
|
36154
36340
|
id: "lupa-search-results-toolbar",
|
|
36155
36341
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
36156
36342
|
}, [
|
|
36157
|
-
createBaseVNode("div", _hoisted_1$
|
|
36343
|
+
createBaseVNode("div", _hoisted_1$D, [
|
|
36158
36344
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
36159
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
36160
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
36345
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
36346
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
36161
36347
|
key: 3,
|
|
36162
36348
|
label: searchSummaryLabel.value,
|
|
36163
36349
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
36164
36350
|
onClear: handleClearAll
|
|
36165
36351
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
36166
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
36352
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
36167
36353
|
key: 5,
|
|
36168
36354
|
options: paginationOptions.value.pageSelect,
|
|
36169
36355
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -36172,19 +36358,19 @@ and ensure you are accounting for this risk.
|
|
|
36172
36358
|
]),
|
|
36173
36359
|
createBaseVNode("div", _hoisted_6$4, [
|
|
36174
36360
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
36175
|
-
createVNode(_sfc_main$
|
|
36176
|
-
createVNode(_sfc_main$
|
|
36177
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
36361
|
+
createVNode(_sfc_main$O),
|
|
36362
|
+
createVNode(_sfc_main$J),
|
|
36363
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
|
|
36178
36364
|
key: 1,
|
|
36179
36365
|
options: paginationOptions.value.pageSize,
|
|
36180
36366
|
labels: paginationOptions.value.labels
|
|
36181
36367
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
36182
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
36368
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
36183
36369
|
key: 3,
|
|
36184
36370
|
options: sortOptions.value,
|
|
36185
36371
|
callbacks: callbacks.value
|
|
36186
36372
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
36187
|
-
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
36373
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
36188
36374
|
key: 5,
|
|
36189
36375
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
36190
36376
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -36193,7 +36379,7 @@ and ensure you are accounting for this risk.
|
|
|
36193
36379
|
};
|
|
36194
36380
|
}
|
|
36195
36381
|
});
|
|
36196
|
-
const _sfc_main$
|
|
36382
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
36197
36383
|
__name: "SearchResultsProductImage",
|
|
36198
36384
|
props: {
|
|
36199
36385
|
item: {},
|
|
@@ -36201,7 +36387,7 @@ and ensure you are accounting for this risk.
|
|
|
36201
36387
|
},
|
|
36202
36388
|
setup(__props) {
|
|
36203
36389
|
return (_ctx, _cache) => {
|
|
36204
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36390
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
36205
36391
|
item: _ctx.item,
|
|
36206
36392
|
options: _ctx.options,
|
|
36207
36393
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -36210,7 +36396,7 @@ and ensure you are accounting for this risk.
|
|
|
36210
36396
|
};
|
|
36211
36397
|
}
|
|
36212
36398
|
});
|
|
36213
|
-
const _hoisted_1$
|
|
36399
|
+
const _hoisted_1$C = ["title", "innerHTML"];
|
|
36214
36400
|
const _hoisted_2$s = ["title"];
|
|
36215
36401
|
const _hoisted_3$k = ["href", "innerHTML"];
|
|
36216
36402
|
const _hoisted_4$d = ["title"];
|
|
@@ -36219,7 +36405,7 @@ and ensure you are accounting for this risk.
|
|
|
36219
36405
|
class: "lupa-search-results-product-title-text"
|
|
36220
36406
|
};
|
|
36221
36407
|
const _hoisted_6$3 = ["href"];
|
|
36222
|
-
const _sfc_main$
|
|
36408
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
36223
36409
|
__name: "SearchResultsProductTitle",
|
|
36224
36410
|
props: {
|
|
36225
36411
|
item: {},
|
|
@@ -36256,7 +36442,7 @@ and ensure you are accounting for this risk.
|
|
|
36256
36442
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36257
36443
|
title: sanitizedTitle.value,
|
|
36258
36444
|
innerHTML: sanitizedTitle.value
|
|
36259
|
-
}, null, 12, _hoisted_1$
|
|
36445
|
+
}, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
36260
36446
|
key: 1,
|
|
36261
36447
|
class: "lupa-search-results-product-title",
|
|
36262
36448
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -36285,8 +36471,8 @@ and ensure you are accounting for this risk.
|
|
|
36285
36471
|
};
|
|
36286
36472
|
}
|
|
36287
36473
|
});
|
|
36288
|
-
const _hoisted_1$
|
|
36289
|
-
const _sfc_main$
|
|
36474
|
+
const _hoisted_1$B = ["innerHTML"];
|
|
36475
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
36290
36476
|
__name: "SearchResultsProductDescription",
|
|
36291
36477
|
props: {
|
|
36292
36478
|
item: {},
|
|
@@ -36313,7 +36499,7 @@ and ensure you are accounting for this risk.
|
|
|
36313
36499
|
class: "lupa-search-results-product-description",
|
|
36314
36500
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36315
36501
|
innerHTML: sanitizedDescription.value
|
|
36316
|
-
}, null, 12, _hoisted_1$
|
|
36502
|
+
}, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
|
|
36317
36503
|
key: 1,
|
|
36318
36504
|
class: "lupa-search-results-product-description",
|
|
36319
36505
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -36321,7 +36507,7 @@ and ensure you are accounting for this risk.
|
|
|
36321
36507
|
};
|
|
36322
36508
|
}
|
|
36323
36509
|
});
|
|
36324
|
-
const _hoisted_1$
|
|
36510
|
+
const _hoisted_1$A = { id: "lupa-search-results-rating" };
|
|
36325
36511
|
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
36326
36512
|
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
36327
36513
|
const _hoisted_4$c = ["innerHTML"];
|
|
@@ -36329,7 +36515,7 @@ and ensure you are accounting for this risk.
|
|
|
36329
36515
|
const _hoisted_6$2 = ["innerHTML"];
|
|
36330
36516
|
const _hoisted_7$1 = ["href"];
|
|
36331
36517
|
const STAR_COUNT = 5;
|
|
36332
|
-
const _sfc_main$
|
|
36518
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
36333
36519
|
__name: "SearchResultsProductRating",
|
|
36334
36520
|
props: {
|
|
36335
36521
|
item: {},
|
|
@@ -36366,7 +36552,7 @@ and ensure you are accounting for this risk.
|
|
|
36366
36552
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
36367
36553
|
});
|
|
36368
36554
|
return (_ctx, _cache) => {
|
|
36369
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36555
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
36370
36556
|
createBaseVNode("div", _hoisted_2$r, [
|
|
36371
36557
|
createBaseVNode("div", _hoisted_3$j, [
|
|
36372
36558
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -36400,11 +36586,11 @@ and ensure you are accounting for this risk.
|
|
|
36400
36586
|
};
|
|
36401
36587
|
}
|
|
36402
36588
|
});
|
|
36403
|
-
const _hoisted_1$
|
|
36589
|
+
const _hoisted_1$z = {
|
|
36404
36590
|
class: "lupa-search-results-product-regular-price",
|
|
36405
36591
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
36406
36592
|
};
|
|
36407
|
-
const _sfc_main$
|
|
36593
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
36408
36594
|
__name: "SearchResultsProductRegularPrice",
|
|
36409
36595
|
props: {
|
|
36410
36596
|
item: {},
|
|
@@ -36426,11 +36612,11 @@ and ensure you are accounting for this risk.
|
|
|
36426
36612
|
);
|
|
36427
36613
|
});
|
|
36428
36614
|
return (_ctx, _cache) => {
|
|
36429
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36615
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
|
|
36430
36616
|
};
|
|
36431
36617
|
}
|
|
36432
36618
|
});
|
|
36433
|
-
const _sfc_main$
|
|
36619
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
36434
36620
|
__name: "SearchResultsProductPrice",
|
|
36435
36621
|
props: {
|
|
36436
36622
|
item: {},
|
|
@@ -36464,12 +36650,12 @@ and ensure you are accounting for this risk.
|
|
|
36464
36650
|
};
|
|
36465
36651
|
}
|
|
36466
36652
|
});
|
|
36467
|
-
const _hoisted_1$
|
|
36653
|
+
const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
36468
36654
|
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
36469
36655
|
const _hoisted_3$i = ["disabled"];
|
|
36470
36656
|
const _hoisted_4$b = ["href"];
|
|
36471
36657
|
const _hoisted_5$6 = ["id", "disabled"];
|
|
36472
|
-
const _sfc_main$
|
|
36658
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
36473
36659
|
__name: "SearchResultsProductAddToCart",
|
|
36474
36660
|
props: {
|
|
36475
36661
|
item: {},
|
|
@@ -36528,7 +36714,7 @@ and ensure you are accounting for this risk.
|
|
|
36528
36714
|
loading.value = false;
|
|
36529
36715
|
});
|
|
36530
36716
|
return (_ctx, _cache) => {
|
|
36531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36717
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
36532
36718
|
createBaseVNode("div", _hoisted_2$q, [
|
|
36533
36719
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
36534
36720
|
key: 0,
|
|
@@ -36551,12 +36737,12 @@ and ensure you are accounting for this risk.
|
|
|
36551
36737
|
};
|
|
36552
36738
|
}
|
|
36553
36739
|
});
|
|
36554
|
-
const _hoisted_1$
|
|
36740
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
36555
36741
|
const _hoisted_2$p = { key: 0 };
|
|
36556
36742
|
const _hoisted_3$h = { key: 1 };
|
|
36557
36743
|
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
36558
36744
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
36559
|
-
const _sfc_main$
|
|
36745
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
36560
36746
|
__name: "SearchResultsProductCustom",
|
|
36561
36747
|
props: {
|
|
36562
36748
|
item: {},
|
|
@@ -36598,7 +36784,7 @@ and ensure you are accounting for this risk.
|
|
|
36598
36784
|
key: 0,
|
|
36599
36785
|
class: className.value,
|
|
36600
36786
|
innerHTML: text.value
|
|
36601
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36787
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
36602
36788
|
key: 1,
|
|
36603
36789
|
class: className.value
|
|
36604
36790
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
@@ -36610,8 +36796,8 @@ and ensure you are accounting for this risk.
|
|
|
36610
36796
|
};
|
|
36611
36797
|
}
|
|
36612
36798
|
});
|
|
36613
|
-
const _hoisted_1$
|
|
36614
|
-
const _sfc_main$
|
|
36799
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
36800
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
36615
36801
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
36616
36802
|
props: {
|
|
36617
36803
|
item: {},
|
|
@@ -36647,15 +36833,15 @@ and ensure you are accounting for this risk.
|
|
|
36647
36833
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
36648
36834
|
class: className.value,
|
|
36649
36835
|
innerHTML: text.value
|
|
36650
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36836
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
|
|
36651
36837
|
};
|
|
36652
36838
|
}
|
|
36653
36839
|
});
|
|
36654
|
-
const _hoisted_1$
|
|
36840
|
+
const _hoisted_1$v = { id: "lupa-search-results-rating" };
|
|
36655
36841
|
const _hoisted_2$o = ["innerHTML"];
|
|
36656
36842
|
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
36657
36843
|
const _hoisted_4$9 = ["href"];
|
|
36658
|
-
const _sfc_main$
|
|
36844
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
36659
36845
|
__name: "SearchResultsProductSingleStarRating",
|
|
36660
36846
|
props: {
|
|
36661
36847
|
item: {},
|
|
@@ -36683,7 +36869,7 @@ and ensure you are accounting for this risk.
|
|
|
36683
36869
|
return RATING_STAR_HTML;
|
|
36684
36870
|
});
|
|
36685
36871
|
return (_ctx, _cache) => {
|
|
36686
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36872
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
36687
36873
|
createBaseVNode("div", {
|
|
36688
36874
|
innerHTML: star.value,
|
|
36689
36875
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -36699,19 +36885,19 @@ and ensure you are accounting for this risk.
|
|
|
36699
36885
|
});
|
|
36700
36886
|
const __default__ = {
|
|
36701
36887
|
components: {
|
|
36702
|
-
SearchResultsProductImage: _sfc_main$
|
|
36703
|
-
SearchResultsProductTitle: _sfc_main$
|
|
36704
|
-
SearchResultsProductDescription: _sfc_main$
|
|
36705
|
-
SearchResultsProductRating: _sfc_main$
|
|
36706
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
36707
|
-
SearchResultsProductPrice: _sfc_main$
|
|
36708
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
36709
|
-
SearchResultsProductCustom: _sfc_main$
|
|
36710
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
36711
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
36712
|
-
}
|
|
36713
|
-
};
|
|
36714
|
-
const _sfc_main$
|
|
36888
|
+
SearchResultsProductImage: _sfc_main$H,
|
|
36889
|
+
SearchResultsProductTitle: _sfc_main$G,
|
|
36890
|
+
SearchResultsProductDescription: _sfc_main$F,
|
|
36891
|
+
SearchResultsProductRating: _sfc_main$E,
|
|
36892
|
+
SearchResultsProductRegularPrice: _sfc_main$D,
|
|
36893
|
+
SearchResultsProductPrice: _sfc_main$C,
|
|
36894
|
+
SearchResultsProductAddToCart: _sfc_main$B,
|
|
36895
|
+
SearchResultsProductCustom: _sfc_main$A,
|
|
36896
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$z,
|
|
36897
|
+
SearchResultsProductSingleStarRating: _sfc_main$y
|
|
36898
|
+
}
|
|
36899
|
+
};
|
|
36900
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36715
36901
|
__name: "SearchResultsProductCardElement",
|
|
36716
36902
|
props: {
|
|
36717
36903
|
item: {},
|
|
@@ -36789,13 +36975,13 @@ and ensure you are accounting for this risk.
|
|
|
36789
36975
|
};
|
|
36790
36976
|
}
|
|
36791
36977
|
}));
|
|
36792
|
-
const _hoisted_1$
|
|
36978
|
+
const _hoisted_1$u = ["href"];
|
|
36793
36979
|
const _hoisted_2$n = {
|
|
36794
36980
|
key: 0,
|
|
36795
36981
|
class: "lupa-out-of-stock"
|
|
36796
36982
|
};
|
|
36797
36983
|
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
36798
|
-
const _sfc_main$
|
|
36984
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
36799
36985
|
__name: "SearchResultsProductCard",
|
|
36800
36986
|
props: {
|
|
36801
36987
|
product: {},
|
|
@@ -36972,7 +37158,7 @@ and ensure you are accounting for this risk.
|
|
|
36972
37158
|
default: withCtx(() => {
|
|
36973
37159
|
var _a25;
|
|
36974
37160
|
return [
|
|
36975
|
-
createVNode(_sfc_main$
|
|
37161
|
+
createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36976
37162
|
createBaseVNode("div", {
|
|
36977
37163
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36978
37164
|
}, [
|
|
@@ -36982,7 +37168,7 @@ and ensure you are accounting for this risk.
|
|
|
36982
37168
|
onClick: handleNavigation
|
|
36983
37169
|
}, [
|
|
36984
37170
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36985
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37171
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
36986
37172
|
class: "lupa-search-results-product-element",
|
|
36987
37173
|
item: _ctx.product,
|
|
36988
37174
|
element,
|
|
@@ -36993,16 +37179,16 @@ and ensure you are accounting for this risk.
|
|
|
36993
37179
|
onProductEvent: handleProductEvent
|
|
36994
37180
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36995
37181
|
}), 128)),
|
|
36996
|
-
createVNode(_sfc_main$
|
|
37182
|
+
createVNode(_sfc_main$1k, {
|
|
36997
37183
|
options: badgesOptions.value,
|
|
36998
37184
|
position: "image",
|
|
36999
37185
|
class: "lupa-image-badges"
|
|
37000
37186
|
}, null, 8, ["options"]),
|
|
37001
37187
|
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
37002
|
-
], 8, _hoisted_1$
|
|
37188
|
+
], 8, _hoisted_1$u),
|
|
37003
37189
|
createBaseVNode("div", _hoisted_3$f, [
|
|
37004
37190
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
37005
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37191
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37006
37192
|
class: "lupa-search-results-product-element",
|
|
37007
37193
|
item: _ctx.product,
|
|
37008
37194
|
element,
|
|
@@ -37020,7 +37206,7 @@ and ensure you are accounting for this risk.
|
|
|
37020
37206
|
class: normalizeClass("lupa-element-group-" + group)
|
|
37021
37207
|
}, [
|
|
37022
37208
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
37023
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37209
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37024
37210
|
class: "lupa-search-results-product-element",
|
|
37025
37211
|
item: _ctx.product,
|
|
37026
37212
|
element,
|
|
@@ -37041,7 +37227,7 @@ and ensure you are accounting for this risk.
|
|
|
37041
37227
|
};
|
|
37042
37228
|
}
|
|
37043
37229
|
});
|
|
37044
|
-
const _hoisted_1$
|
|
37230
|
+
const _hoisted_1$t = {
|
|
37045
37231
|
id: "lupa-search-results-similar-queries",
|
|
37046
37232
|
"data-cy": "lupa-search-results-similar-queries"
|
|
37047
37233
|
};
|
|
@@ -37057,7 +37243,7 @@ and ensure you are accounting for this risk.
|
|
|
37057
37243
|
class: "lupa-products",
|
|
37058
37244
|
"data-cy": "lupa-products"
|
|
37059
37245
|
};
|
|
37060
|
-
const _sfc_main$
|
|
37246
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
37061
37247
|
__name: "SearchResultsSimilarQueries",
|
|
37062
37248
|
props: {
|
|
37063
37249
|
labels: {},
|
|
@@ -37095,7 +37281,7 @@ and ensure you are accounting for this risk.
|
|
|
37095
37281
|
};
|
|
37096
37282
|
};
|
|
37097
37283
|
return (_ctx, _cache) => {
|
|
37098
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37284
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
37099
37285
|
createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
37100
37286
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
37101
37287
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -37115,7 +37301,7 @@ and ensure you are accounting for this risk.
|
|
|
37115
37301
|
]),
|
|
37116
37302
|
createBaseVNode("div", _hoisted_7, [
|
|
37117
37303
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
37118
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37304
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37119
37305
|
style: normalizeStyle(_ctx.columnSize),
|
|
37120
37306
|
key: getDocumentKey(index2, product),
|
|
37121
37307
|
product,
|
|
@@ -37130,7 +37316,7 @@ and ensure you are accounting for this risk.
|
|
|
37130
37316
|
};
|
|
37131
37317
|
}
|
|
37132
37318
|
});
|
|
37133
|
-
const _hoisted_1$
|
|
37319
|
+
const _hoisted_1$s = {
|
|
37134
37320
|
key: 0,
|
|
37135
37321
|
class: "lupa-results-additional-panel"
|
|
37136
37322
|
};
|
|
@@ -37138,7 +37324,7 @@ and ensure you are accounting for this risk.
|
|
|
37138
37324
|
class: "lupa-results-additional-panel-items",
|
|
37139
37325
|
"data-cy": "lupa-results-additional-panel-items"
|
|
37140
37326
|
};
|
|
37141
|
-
const _sfc_main$
|
|
37327
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
37142
37328
|
__name: "AdditionalPanel",
|
|
37143
37329
|
props: {
|
|
37144
37330
|
panel: {},
|
|
@@ -37211,10 +37397,10 @@ and ensure you are accounting for this risk.
|
|
|
37211
37397
|
handleQueryChange();
|
|
37212
37398
|
});
|
|
37213
37399
|
return (_ctx, _cache) => {
|
|
37214
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37400
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
37215
37401
|
createBaseVNode("div", _hoisted_2$l, [
|
|
37216
37402
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
37217
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37403
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37218
37404
|
key: index,
|
|
37219
37405
|
product: item,
|
|
37220
37406
|
options: _ctx.panel,
|
|
@@ -37232,11 +37418,11 @@ and ensure you are accounting for this risk.
|
|
|
37232
37418
|
};
|
|
37233
37419
|
}
|
|
37234
37420
|
});
|
|
37235
|
-
const _hoisted_1$
|
|
37421
|
+
const _hoisted_1$r = {
|
|
37236
37422
|
key: 0,
|
|
37237
37423
|
class: "lupa-results-additional-panels"
|
|
37238
37424
|
};
|
|
37239
|
-
const _sfc_main$
|
|
37425
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
37240
37426
|
__name: "AdditionalPanels",
|
|
37241
37427
|
props: {
|
|
37242
37428
|
options: {},
|
|
@@ -37253,9 +37439,9 @@ and ensure you are accounting for this risk.
|
|
|
37253
37439
|
return locationPanels.value.length > 0;
|
|
37254
37440
|
});
|
|
37255
37441
|
return (_ctx, _cache) => {
|
|
37256
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37442
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
37257
37443
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
37258
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37444
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
37259
37445
|
key: panel.queryKey,
|
|
37260
37446
|
panel,
|
|
37261
37447
|
options: _ctx.sdkOptions
|
|
@@ -37272,11 +37458,11 @@ and ensure you are accounting for this risk.
|
|
|
37272
37458
|
}
|
|
37273
37459
|
return target2;
|
|
37274
37460
|
};
|
|
37275
|
-
const _sfc_main$
|
|
37276
|
-
const _hoisted_1$
|
|
37461
|
+
const _sfc_main$s = {};
|
|
37462
|
+
const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
|
|
37277
37463
|
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
37278
37464
|
function _sfc_render(_ctx, _cache) {
|
|
37279
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37465
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
37280
37466
|
createBaseVNode("div", _hoisted_2$k, [
|
|
37281
37467
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
37282
37468
|
return createBaseVNode("div", { key: x });
|
|
@@ -37284,8 +37470,8 @@ and ensure you are accounting for this risk.
|
|
|
37284
37470
|
])
|
|
37285
37471
|
]);
|
|
37286
37472
|
}
|
|
37287
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37288
|
-
const _hoisted_1$
|
|
37473
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
37474
|
+
const _hoisted_1$p = {
|
|
37289
37475
|
id: "lupa-search-results-similar-results",
|
|
37290
37476
|
"data-cy": "lupa-search-results-similar-results"
|
|
37291
37477
|
};
|
|
@@ -37294,7 +37480,7 @@ and ensure you are accounting for this risk.
|
|
|
37294
37480
|
class: "lupa-products",
|
|
37295
37481
|
"data-cy": "lupa-products"
|
|
37296
37482
|
};
|
|
37297
|
-
const _sfc_main$
|
|
37483
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
37298
37484
|
__name: "SearchResultsSimilarResults",
|
|
37299
37485
|
props: {
|
|
37300
37486
|
columnSize: {},
|
|
@@ -37315,11 +37501,11 @@ and ensure you are accounting for this risk.
|
|
|
37315
37501
|
};
|
|
37316
37502
|
});
|
|
37317
37503
|
return (_ctx, _cache) => {
|
|
37318
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37504
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
37319
37505
|
createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
37320
37506
|
createBaseVNode("div", _hoisted_3$d, [
|
|
37321
37507
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
37322
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37508
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37323
37509
|
style: normalizeStyle(_ctx.columnSize),
|
|
37324
37510
|
key: getDocumentKey(index, product),
|
|
37325
37511
|
product,
|
|
@@ -37440,7 +37626,7 @@ and ensure you are accounting for this risk.
|
|
|
37440
37626
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
37441
37627
|
}
|
|
37442
37628
|
});
|
|
37443
|
-
const _hoisted_1$
|
|
37629
|
+
const _hoisted_1$o = { class: "lupa-related-query-item" };
|
|
37444
37630
|
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
37445
37631
|
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
37446
37632
|
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
@@ -37448,7 +37634,7 @@ and ensure you are accounting for this risk.
|
|
|
37448
37634
|
key: 0,
|
|
37449
37635
|
class: "lupa-related-query-count"
|
|
37450
37636
|
};
|
|
37451
|
-
const _sfc_main$
|
|
37637
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
37452
37638
|
__name: "RelatedQueryPanel",
|
|
37453
37639
|
props: {
|
|
37454
37640
|
query: {},
|
|
@@ -37545,9 +37731,9 @@ and ensure you are accounting for this risk.
|
|
|
37545
37731
|
});
|
|
37546
37732
|
return (_ctx, _cache) => {
|
|
37547
37733
|
var _a25;
|
|
37548
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37734
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
37549
37735
|
createBaseVNode("div", _hoisted_2$i, [
|
|
37550
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37736
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37551
37737
|
key: 0,
|
|
37552
37738
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37553
37739
|
"image-class": "lupa-related-query-image",
|
|
@@ -37563,7 +37749,7 @@ and ensure you are accounting for this risk.
|
|
|
37563
37749
|
};
|
|
37564
37750
|
}
|
|
37565
37751
|
});
|
|
37566
|
-
const _hoisted_1$
|
|
37752
|
+
const _hoisted_1$n = {
|
|
37567
37753
|
key: 0,
|
|
37568
37754
|
class: "lupa-related-queries"
|
|
37569
37755
|
};
|
|
@@ -37572,7 +37758,7 @@ and ensure you are accounting for this risk.
|
|
|
37572
37758
|
class: "lupa-related-queries-title"
|
|
37573
37759
|
};
|
|
37574
37760
|
const _hoisted_3$b = ["onClick"];
|
|
37575
|
-
const _sfc_main$
|
|
37761
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
37576
37762
|
__name: "RelatedQueries",
|
|
37577
37763
|
props: {
|
|
37578
37764
|
options: {}
|
|
@@ -37666,7 +37852,7 @@ and ensure you are accounting for this risk.
|
|
|
37666
37852
|
};
|
|
37667
37853
|
return (_ctx, _cache) => {
|
|
37668
37854
|
var _a25, _b25, _c, _d;
|
|
37669
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37855
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
37670
37856
|
((_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),
|
|
37671
37857
|
createBaseVNode("ul", null, [
|
|
37672
37858
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37677,7 +37863,7 @@ and ensure you are accounting for this risk.
|
|
|
37677
37863
|
createBaseVNode("a", {
|
|
37678
37864
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37679
37865
|
}, [
|
|
37680
|
-
createVNode(_sfc_main$
|
|
37866
|
+
createVNode(_sfc_main$q, {
|
|
37681
37867
|
"source-key": query.key,
|
|
37682
37868
|
options: _ctx.options,
|
|
37683
37869
|
query: query.value,
|
|
@@ -37721,13 +37907,13 @@ and ensure you are accounting for this risk.
|
|
|
37721
37907
|
}
|
|
37722
37908
|
return null;
|
|
37723
37909
|
};
|
|
37724
|
-
const _hoisted_1$
|
|
37910
|
+
const _hoisted_1$m = {
|
|
37725
37911
|
key: 0,
|
|
37726
37912
|
class: "lupa-redirection-suggestion"
|
|
37727
37913
|
};
|
|
37728
37914
|
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
37729
37915
|
const _hoisted_3$a = ["href"];
|
|
37730
|
-
const _sfc_main$
|
|
37916
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
37731
37917
|
__name: "RedirectionSuggestions",
|
|
37732
37918
|
props: {
|
|
37733
37919
|
options: {}
|
|
@@ -37750,7 +37936,7 @@ and ensure you are accounting for this risk.
|
|
|
37750
37936
|
)
|
|
37751
37937
|
);
|
|
37752
37938
|
return (_ctx, _cache) => {
|
|
37753
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37939
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
37754
37940
|
createBaseVNode("h4", _hoisted_2$g, [
|
|
37755
37941
|
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
37756
37942
|
])
|
|
@@ -37758,11 +37944,11 @@ and ensure you are accounting for this risk.
|
|
|
37758
37944
|
};
|
|
37759
37945
|
}
|
|
37760
37946
|
});
|
|
37761
|
-
const _hoisted_1$
|
|
37947
|
+
const _hoisted_1$l = {
|
|
37762
37948
|
key: 0,
|
|
37763
37949
|
class: "lupa-refiners-loading-notice"
|
|
37764
37950
|
};
|
|
37765
|
-
const _sfc_main$
|
|
37951
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37766
37952
|
__name: "RefinersLoadingNotice",
|
|
37767
37953
|
props: {
|
|
37768
37954
|
labels: {}
|
|
@@ -37773,14 +37959,14 @@ and ensure you are accounting for this risk.
|
|
|
37773
37959
|
const props = __props;
|
|
37774
37960
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37775
37961
|
return (_ctx, _cache) => {
|
|
37776
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37962
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
37777
37963
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37778
37964
|
createVNode(Spinner)
|
|
37779
37965
|
])) : createCommentVNode("", true);
|
|
37780
37966
|
};
|
|
37781
37967
|
}
|
|
37782
37968
|
});
|
|
37783
|
-
const _hoisted_1$
|
|
37969
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
37784
37970
|
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
37785
37971
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
37786
37972
|
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
@@ -37788,7 +37974,7 @@ and ensure you are accounting for this risk.
|
|
|
37788
37974
|
key: 0,
|
|
37789
37975
|
class: "lupa-related-query-count"
|
|
37790
37976
|
};
|
|
37791
|
-
const _sfc_main$
|
|
37977
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37792
37978
|
__name: "RelatedQueryPanelApi",
|
|
37793
37979
|
props: {
|
|
37794
37980
|
relatedQuery: {},
|
|
@@ -37820,9 +38006,9 @@ and ensure you are accounting for this risk.
|
|
|
37820
38006
|
});
|
|
37821
38007
|
return (_ctx, _cache) => {
|
|
37822
38008
|
var _a25;
|
|
37823
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
38009
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37824
38010
|
createBaseVNode("div", _hoisted_2$f, [
|
|
37825
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
38011
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37826
38012
|
key: 0,
|
|
37827
38013
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37828
38014
|
"image-class": "lupa-related-query-image",
|
|
@@ -37838,7 +38024,7 @@ and ensure you are accounting for this risk.
|
|
|
37838
38024
|
};
|
|
37839
38025
|
}
|
|
37840
38026
|
});
|
|
37841
|
-
const _hoisted_1$
|
|
38027
|
+
const _hoisted_1$j = {
|
|
37842
38028
|
key: 0,
|
|
37843
38029
|
class: "lupa-related-queries"
|
|
37844
38030
|
};
|
|
@@ -37847,7 +38033,7 @@ and ensure you are accounting for this risk.
|
|
|
37847
38033
|
class: "lupa-related-queries-title"
|
|
37848
38034
|
};
|
|
37849
38035
|
const _hoisted_3$8 = ["onClick"];
|
|
37850
|
-
const _sfc_main$
|
|
38036
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37851
38037
|
__name: "RelatedQueriesApi",
|
|
37852
38038
|
props: {
|
|
37853
38039
|
options: {}
|
|
@@ -37899,7 +38085,7 @@ and ensure you are accounting for this risk.
|
|
|
37899
38085
|
};
|
|
37900
38086
|
return (_ctx, _cache) => {
|
|
37901
38087
|
var _a25, _b25, _c, _d;
|
|
37902
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38088
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37903
38089
|
((_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),
|
|
37904
38090
|
createBaseVNode("ul", null, [
|
|
37905
38091
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37910,7 +38096,7 @@ and ensure you are accounting for this risk.
|
|
|
37910
38096
|
createBaseVNode("a", {
|
|
37911
38097
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37912
38098
|
}, [
|
|
37913
|
-
createVNode(_sfc_main$
|
|
38099
|
+
createVNode(_sfc_main$m, {
|
|
37914
38100
|
relatedQuery: query,
|
|
37915
38101
|
options: _ctx.options
|
|
37916
38102
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -37922,9 +38108,9 @@ and ensure you are accounting for this risk.
|
|
|
37922
38108
|
};
|
|
37923
38109
|
}
|
|
37924
38110
|
});
|
|
37925
|
-
const _hoisted_1$
|
|
38111
|
+
const _hoisted_1$i = { key: 0 };
|
|
37926
38112
|
const _hoisted_2$d = ["innerHTML"];
|
|
37927
|
-
const _sfc_main$
|
|
38113
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37928
38114
|
__name: "ZeroResults",
|
|
37929
38115
|
props: {
|
|
37930
38116
|
emptyResultsLabel: {},
|
|
@@ -37953,7 +38139,7 @@ and ensure you are accounting for this risk.
|
|
|
37953
38139
|
});
|
|
37954
38140
|
return (_ctx, _cache) => {
|
|
37955
38141
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37956
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38142
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37957
38143
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37958
38144
|
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37959
38145
|
])) : createCommentVNode("", true),
|
|
@@ -37965,6 +38151,31 @@ and ensure you are accounting for this risk.
|
|
|
37965
38151
|
};
|
|
37966
38152
|
}
|
|
37967
38153
|
});
|
|
38154
|
+
const _hoisted_1$h = {
|
|
38155
|
+
key: 1,
|
|
38156
|
+
class: "lupa-skeleton-grid"
|
|
38157
|
+
};
|
|
38158
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
38159
|
+
__name: "LoadingGrid",
|
|
38160
|
+
props: {
|
|
38161
|
+
style: {},
|
|
38162
|
+
enabled: { type: Boolean },
|
|
38163
|
+
loading: { type: Boolean },
|
|
38164
|
+
count: {}
|
|
38165
|
+
},
|
|
38166
|
+
setup(__props) {
|
|
38167
|
+
return (_ctx, _cache) => {
|
|
38168
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
38169
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
38170
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
38171
|
+
key: n,
|
|
38172
|
+
style: normalizeStyle(_ctx.style)
|
|
38173
|
+
}, null, 8, ["style"]);
|
|
38174
|
+
}), 128))
|
|
38175
|
+
]));
|
|
38176
|
+
};
|
|
38177
|
+
}
|
|
38178
|
+
});
|
|
37968
38179
|
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
37969
38180
|
const _hoisted_2$c = {
|
|
37970
38181
|
class: "lupa-products",
|
|
@@ -37976,12 +38187,12 @@ and ensure you are accounting for this risk.
|
|
|
37976
38187
|
"data-cy": "lupa-no-results-in-page"
|
|
37977
38188
|
};
|
|
37978
38189
|
const _hoisted_4$5 = {
|
|
37979
|
-
key:
|
|
38190
|
+
key: 3,
|
|
37980
38191
|
class: "lupa-empty-results",
|
|
37981
38192
|
"data-cy": "lupa-no-results"
|
|
37982
38193
|
};
|
|
37983
|
-
const _hoisted_5$1 = { key:
|
|
37984
|
-
const _hoisted_6 = { key:
|
|
38194
|
+
const _hoisted_5$1 = { key: 4 };
|
|
38195
|
+
const _hoisted_6 = { key: 5 };
|
|
37985
38196
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37986
38197
|
__name: "SearchResultsProducts",
|
|
37987
38198
|
props: {
|
|
@@ -38005,6 +38216,7 @@ and ensure you are accounting for this risk.
|
|
|
38005
38216
|
loading,
|
|
38006
38217
|
relatedQueriesApiEnabled
|
|
38007
38218
|
} = storeToRefs(searchResultStore);
|
|
38219
|
+
const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
|
|
38008
38220
|
const emit2 = __emit;
|
|
38009
38221
|
const productCardOptions = computed(() => {
|
|
38010
38222
|
return pick(props.options, [
|
|
@@ -38061,12 +38273,12 @@ and ensure you are accounting for this risk.
|
|
|
38061
38273
|
});
|
|
38062
38274
|
const columnSize = computed(() => {
|
|
38063
38275
|
if (props.ssr) {
|
|
38064
|
-
return
|
|
38276
|
+
return {};
|
|
38065
38277
|
}
|
|
38066
38278
|
if (layout.value === ResultsLayoutEnum.LIST) {
|
|
38067
|
-
return
|
|
38279
|
+
return { width: "100%" };
|
|
38068
38280
|
}
|
|
38069
|
-
return
|
|
38281
|
+
return { width: `${100 / columnCount.value}%` };
|
|
38070
38282
|
});
|
|
38071
38283
|
const hasSimilarQueries = computed(() => {
|
|
38072
38284
|
var _a25;
|
|
@@ -38102,40 +38314,50 @@ and ensure you are accounting for this risk.
|
|
|
38102
38314
|
emit2("filter");
|
|
38103
38315
|
};
|
|
38104
38316
|
return (_ctx, _cache) => {
|
|
38105
|
-
var _a25, _b25, _c;
|
|
38317
|
+
var _a25, _b25, _c, _d;
|
|
38106
38318
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
38107
|
-
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38319
|
+
!unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38108
38320
|
key: 0,
|
|
38109
38321
|
class: "lupa-loader"
|
|
38110
38322
|
})) : createCommentVNode("", true),
|
|
38111
|
-
createVNode(_sfc_main$
|
|
38323
|
+
createVNode(_sfc_main$o, {
|
|
38112
38324
|
options: _ctx.options.redirectionSuggestions
|
|
38113
38325
|
}, null, 8, ["options"]),
|
|
38114
|
-
createVNode(_sfc_main$
|
|
38326
|
+
createVNode(_sfc_main$t, {
|
|
38115
38327
|
options: _ctx.options,
|
|
38116
38328
|
location: "top",
|
|
38117
|
-
|
|
38118
|
-
}, null, 8, ["options", "
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38125
|
-
|
|
38126
|
-
|
|
38127
|
-
|
|
38128
|
-
|
|
38329
|
+
"sdk-options": _ctx.options.options
|
|
38330
|
+
}, null, 8, ["options", "sdk-options"]),
|
|
38331
|
+
createVNode(_sfc_main$18, {
|
|
38332
|
+
enabled: unref(relatedQueriesSkeletonEnabled),
|
|
38333
|
+
loading: unref(loading) || unref(loadingRelatedQueries),
|
|
38334
|
+
count: 1,
|
|
38335
|
+
class: "lupa-skeleton-related-queries"
|
|
38336
|
+
}, {
|
|
38337
|
+
default: withCtx(() => [
|
|
38338
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
|
|
38339
|
+
key: 0,
|
|
38340
|
+
options: _ctx.options.relatedQueries
|
|
38341
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38342
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
38343
|
+
key: 1,
|
|
38344
|
+
options: _ctx.options.relatedQueries
|
|
38345
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
38346
|
+
]),
|
|
38347
|
+
_: 1
|
|
38348
|
+
}, 8, ["enabled", "loading"]),
|
|
38349
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
38350
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
38129
38351
|
key: 0,
|
|
38130
38352
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
38131
38353
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38132
|
-
createVNode(_sfc_main$
|
|
38354
|
+
createVNode(_sfc_main$I, {
|
|
38133
38355
|
class: "lupa-toolbar-mobile",
|
|
38134
38356
|
options: _ctx.options,
|
|
38135
38357
|
"pagination-location": "top",
|
|
38136
38358
|
onFilter: filter
|
|
38137
38359
|
}, null, 8, ["options"]),
|
|
38138
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38360
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38139
38361
|
key: 1,
|
|
38140
38362
|
class: normalizeClass(currentFiltersClass.value),
|
|
38141
38363
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38143,13 +38365,13 @@ and ensure you are accounting for this risk.
|
|
|
38143
38365
|
expandable: !desktopFiltersExpanded.value
|
|
38144
38366
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
38145
38367
|
], 64)) : createCommentVNode("", true),
|
|
38146
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
38147
|
-
createVNode(_sfc_main$
|
|
38368
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
38369
|
+
createVNode(_sfc_main$I, {
|
|
38148
38370
|
class: "lupa-toolbar-top",
|
|
38149
38371
|
options: _ctx.options,
|
|
38150
38372
|
"pagination-location": "top"
|
|
38151
38373
|
}, null, 8, ["options"]),
|
|
38152
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38374
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38153
38375
|
key: 0,
|
|
38154
38376
|
class: normalizeClass(currentFiltersClass.value),
|
|
38155
38377
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38157,22 +38379,32 @@ and ensure you are accounting for this risk.
|
|
|
38157
38379
|
expandable: !desktopFiltersExpanded.value
|
|
38158
38380
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
38159
38381
|
createBaseVNode("div", _hoisted_2$c, [
|
|
38160
|
-
|
|
38161
|
-
|
|
38162
|
-
|
|
38163
|
-
|
|
38164
|
-
|
|
38165
|
-
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38171
|
-
|
|
38172
|
-
|
|
38173
|
-
|
|
38174
|
-
|
|
38175
|
-
|
|
38382
|
+
createVNode(_sfc_main$j, {
|
|
38383
|
+
enabled: unref(skeletonEnabled),
|
|
38384
|
+
loading: unref(loading),
|
|
38385
|
+
count: (_b25 = unref(limit)) != null ? _b25 : 12,
|
|
38386
|
+
style: normalizeStyle(columnSize.value)
|
|
38387
|
+
}, {
|
|
38388
|
+
default: withCtx(() => [
|
|
38389
|
+
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38390
|
+
return renderSlot(_ctx.$slots, "productCard", {
|
|
38391
|
+
key: getProductKeyAction(index, product),
|
|
38392
|
+
style: normalizeStyle(columnSize.value),
|
|
38393
|
+
product,
|
|
38394
|
+
options: productCardOptions.value
|
|
38395
|
+
});
|
|
38396
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38397
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
38398
|
+
key: getProductKeyAction(index, product),
|
|
38399
|
+
style: normalizeStyle(columnSize.value),
|
|
38400
|
+
product,
|
|
38401
|
+
options: productCardOptions.value,
|
|
38402
|
+
"analytics-metadata": clickMetadata.value
|
|
38403
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
38404
|
+
}), 128))
|
|
38405
|
+
]),
|
|
38406
|
+
_: 3
|
|
38407
|
+
}, 8, ["enabled", "loading", "count", "style"])
|
|
38176
38408
|
]),
|
|
38177
38409
|
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
38178
38410
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
@@ -38182,40 +38414,40 @@ and ensure you are accounting for this risk.
|
|
|
38182
38414
|
onClick: goToFirstPage
|
|
38183
38415
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
38184
38416
|
])) : createCommentVNode("", true),
|
|
38185
|
-
createVNode(_sfc_main$
|
|
38417
|
+
createVNode(_sfc_main$I, {
|
|
38186
38418
|
class: "lupa-toolbar-bottom",
|
|
38187
38419
|
options: _ctx.options,
|
|
38188
38420
|
"pagination-location": "bottom"
|
|
38189
38421
|
}, null, 8, ["options"]),
|
|
38190
|
-
createVNode(_sfc_main$
|
|
38422
|
+
createVNode(_sfc_main$t, {
|
|
38191
38423
|
options: _ctx.options,
|
|
38192
38424
|
location: "bottom",
|
|
38193
|
-
|
|
38194
|
-
}, null, 8, ["options", "
|
|
38425
|
+
"sdk-options": _ctx.options.options
|
|
38426
|
+
}, null, 8, ["options", "sdk-options"])
|
|
38195
38427
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
38196
|
-
createVNode(_sfc_main$
|
|
38197
|
-
|
|
38198
|
-
|
|
38199
|
-
|
|
38200
|
-
|
|
38201
|
-
}, null, 8, ["
|
|
38428
|
+
createVNode(_sfc_main$k, {
|
|
38429
|
+
"empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
|
|
38430
|
+
"current-query-text": unref(currentQueryText),
|
|
38431
|
+
"has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
|
|
38432
|
+
"zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
|
|
38433
|
+
}, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
|
|
38202
38434
|
])) : createCommentVNode("", true),
|
|
38203
|
-
createVNode(_sfc_main$
|
|
38435
|
+
createVNode(_sfc_main$n, {
|
|
38204
38436
|
labels: _ctx.options.labels
|
|
38205
38437
|
}, null, 8, ["labels"]),
|
|
38206
38438
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
38207
|
-
createVNode(_sfc_main$
|
|
38439
|
+
createVNode(_sfc_main$v, {
|
|
38208
38440
|
labels: similarQueriesLabels.value,
|
|
38209
|
-
|
|
38210
|
-
|
|
38211
|
-
}, null, 8, ["labels", "
|
|
38441
|
+
"column-size": columnSize.value,
|
|
38442
|
+
"product-card-options": productCardOptions.value
|
|
38443
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38212
38444
|
])) : createCommentVNode("", true),
|
|
38213
38445
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
38214
|
-
createVNode(_sfc_main$
|
|
38446
|
+
createVNode(_sfc_main$r, {
|
|
38215
38447
|
labels: similarResultsLabels.value,
|
|
38216
|
-
|
|
38217
|
-
|
|
38218
|
-
}, null, 8, ["labels", "
|
|
38448
|
+
"column-size": columnSize.value,
|
|
38449
|
+
"product-card-options": productCardOptions.value
|
|
38450
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38219
38451
|
])) : createCommentVNode("", true),
|
|
38220
38452
|
renderSlot(_ctx.$slots, "append")
|
|
38221
38453
|
]);
|
|
@@ -38290,7 +38522,7 @@ and ensure you are accounting for this risk.
|
|
|
38290
38522
|
])) : createCommentVNode("", true),
|
|
38291
38523
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
38292
38524
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
38293
|
-
return openBlock(), createBlock(_sfc_main$
|
|
38525
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
38294
38526
|
key: getCategoryKey(child),
|
|
38295
38527
|
item: child,
|
|
38296
38528
|
options: categoryOptions.value
|
|
@@ -38724,8 +38956,8 @@ and ensure you are accounting for this risk.
|
|
|
38724
38956
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
38725
38957
|
}, [
|
|
38726
38958
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38727
|
-
createVNode(_sfc_main$
|
|
38728
|
-
createVNode(_sfc_main$
|
|
38959
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38960
|
+
createVNode(_sfc_main$17, {
|
|
38729
38961
|
"show-summary": true,
|
|
38730
38962
|
options: _ctx.options,
|
|
38731
38963
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -38735,13 +38967,13 @@ and ensure you are accounting for this risk.
|
|
|
38735
38967
|
key: 1,
|
|
38736
38968
|
options: _ctx.options
|
|
38737
38969
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38738
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
38970
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38739
38971
|
key: 2,
|
|
38740
38972
|
options: _ctx.options.filters,
|
|
38741
38973
|
onFilter: handleParamsChange
|
|
38742
38974
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38743
38975
|
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
38744
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
38976
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
|
|
38745
38977
|
key: 4,
|
|
38746
38978
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
38747
38979
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -38750,7 +38982,7 @@ and ensure you are accounting for this risk.
|
|
|
38750
38982
|
id: "lupa-search-results",
|
|
38751
38983
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
38752
38984
|
}, [
|
|
38753
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38985
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38754
38986
|
key: 0,
|
|
38755
38987
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
38756
38988
|
ref_key: "searchResultsFilters",
|
|
@@ -38758,8 +38990,8 @@ and ensure you are accounting for this risk.
|
|
|
38758
38990
|
onFilter: handleParamsChange
|
|
38759
38991
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38760
38992
|
createBaseVNode("div", _hoisted_2$8, [
|
|
38761
|
-
createVNode(_sfc_main$
|
|
38762
|
-
createVNode(_sfc_main$
|
|
38993
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38994
|
+
createVNode(_sfc_main$17, {
|
|
38763
38995
|
options: _ctx.options,
|
|
38764
38996
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
38765
38997
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38775,8 +39007,8 @@ and ensure you are accounting for this risk.
|
|
|
38775
39007
|
}, 8, ["options", "ssr"])
|
|
38776
39008
|
])
|
|
38777
39009
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
38778
|
-
createVNode(_sfc_main$
|
|
38779
|
-
createVNode(_sfc_main$
|
|
39010
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
39011
|
+
createVNode(_sfc_main$17, {
|
|
38780
39012
|
options: _ctx.options,
|
|
38781
39013
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
38782
39014
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38784,7 +39016,7 @@ and ensure you are accounting for this risk.
|
|
|
38784
39016
|
id: "lupa-search-results",
|
|
38785
39017
|
class: normalizeClass(indicatorClasses.value)
|
|
38786
39018
|
}, [
|
|
38787
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
39019
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38788
39020
|
key: 0,
|
|
38789
39021
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
38790
39022
|
ref_key: "searchResultsFilters",
|
|
@@ -38935,7 +39167,7 @@ and ensure you are accounting for this risk.
|
|
|
38935
39167
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38936
39168
|
}, [
|
|
38937
39169
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38938
|
-
createVNode(_sfc_main$
|
|
39170
|
+
createVNode(_sfc_main$1d, {
|
|
38939
39171
|
options: fullSearchBoxOptions.value,
|
|
38940
39172
|
"is-search-container": true,
|
|
38941
39173
|
ref_key: "searchBox",
|
|
@@ -40523,7 +40755,7 @@ and ensure you are accounting for this risk.
|
|
|
40523
40755
|
key: getProductKeyAction(index, product)
|
|
40524
40756
|
}, {
|
|
40525
40757
|
default: withCtx(() => [
|
|
40526
|
-
createVNode(_sfc_main$
|
|
40758
|
+
createVNode(_sfc_main$w, {
|
|
40527
40759
|
product,
|
|
40528
40760
|
options: _ctx.options,
|
|
40529
40761
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -40538,7 +40770,7 @@ and ensure you are accounting for this risk.
|
|
|
40538
40770
|
_: 1
|
|
40539
40771
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
40540
40772
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
40541
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40773
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40542
40774
|
style: normalizeStyle(columnSize.value),
|
|
40543
40775
|
key: getProductKeyAction(index, product),
|
|
40544
40776
|
product,
|
|
@@ -40784,7 +41016,7 @@ and ensure you are accounting for this risk.
|
|
|
40784
41016
|
createBaseVNode("a", {
|
|
40785
41017
|
href: getLink(product)
|
|
40786
41018
|
}, [
|
|
40787
|
-
createVNode(_sfc_main$
|
|
41019
|
+
createVNode(_sfc_main$H, {
|
|
40788
41020
|
item: product,
|
|
40789
41021
|
options: image.value
|
|
40790
41022
|
}, null, 8, ["item", "options"])
|
|
@@ -40949,7 +41181,7 @@ and ensure you are accounting for this risk.
|
|
|
40949
41181
|
return (_ctx, _cache) => {
|
|
40950
41182
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40951
41183
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40952
|
-
return openBlock(), createBlock(_sfc_main$
|
|
41184
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40953
41185
|
class: "lupa-chat-product-card",
|
|
40954
41186
|
key: getProductKeyAction(index, product),
|
|
40955
41187
|
product,
|
|
@@ -41145,7 +41377,7 @@ and ensure you are accounting for this risk.
|
|
|
41145
41377
|
key: 0,
|
|
41146
41378
|
class: "lupasearch-chat-content"
|
|
41147
41379
|
};
|
|
41148
|
-
const _sfc_main$
|
|
41380
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
41149
41381
|
__name: "ChatContainer",
|
|
41150
41382
|
props: {
|
|
41151
41383
|
options: {}
|
|
@@ -47169,7 +47401,7 @@ and ensure you are accounting for this risk.
|
|
|
47169
47401
|
};
|
|
47170
47402
|
__expose({ fetch: fetch2 });
|
|
47171
47403
|
return (_ctx, _cache) => {
|
|
47172
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
47404
|
+
return openBlock(), createBlock(unref(_sfc_main$1d), {
|
|
47173
47405
|
ref_key: "searchBox",
|
|
47174
47406
|
ref: searchBox2,
|
|
47175
47407
|
options: fullSearchBoxOptions.value
|
|
@@ -47830,7 +48062,7 @@ and ensure you are accounting for this risk.
|
|
|
47830
48062
|
const instance = createVue(
|
|
47831
48063
|
options.displayOptions.containerSelector,
|
|
47832
48064
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
47833
|
-
_sfc_main$
|
|
48065
|
+
_sfc_main$1L,
|
|
47834
48066
|
{
|
|
47835
48067
|
options
|
|
47836
48068
|
}
|