@getlupa/client 1.24.3 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaSearch.iife.js +711 -487
- package/dist/lupaSearch.js +711 -487
- package/dist/lupaSearch.mjs +711 -487
- package/dist/lupaSearch.umd.js +711 -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,130 @@ 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 skeletonEnabled = computed(() => {
|
|
32856
|
+
var _a25, _b25, _c, _d;
|
|
32857
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && !((_d = (_c = searchResult.value) == null ? void 0 : _c.items) == null ? void 0 : _d.length);
|
|
32858
|
+
});
|
|
32859
|
+
const relatedQueriesSkeletonEnabled = computed(() => {
|
|
32860
|
+
var _a25, _b25, _c, _d, _e;
|
|
32861
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && Boolean((_c = searchResultOptions.value) == null ? void 0 : _c.relatedQueries) && !((_e = (_d = relatedQueriesResult.value) == null ? void 0 : _d.relatedQueries) == null ? void 0 : _e.length);
|
|
32862
|
+
});
|
|
32863
|
+
const facetSkeletonEnabled = computed(() => {
|
|
32864
|
+
var _a25, _b25, _c, _d;
|
|
32865
|
+
return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && !((_d = (_c = searchResult.value) == null ? void 0 : _c.facets) == null ? void 0 : _d.length);
|
|
32866
|
+
});
|
|
32867
|
+
const loadingFacets = computed(() => {
|
|
32868
|
+
var _a25;
|
|
32869
|
+
if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
|
|
32870
|
+
return loadingFacetsBase.value;
|
|
32871
|
+
}
|
|
32872
|
+
return loading.value;
|
|
32873
|
+
});
|
|
32874
|
+
const loadingAny = computed(() => {
|
|
32875
|
+
return loading.value || loadingRelatedQueries.value || loadingFacets.value;
|
|
32876
|
+
});
|
|
32877
|
+
return {
|
|
32878
|
+
loading,
|
|
32879
|
+
loadingRelatedQueries,
|
|
32880
|
+
loadingFacets,
|
|
32881
|
+
loadingAny,
|
|
32882
|
+
limit,
|
|
32883
|
+
skeletonEnabled,
|
|
32884
|
+
relatedQueriesSkeletonEnabled,
|
|
32885
|
+
facetSkeletonEnabled
|
|
32886
|
+
};
|
|
32887
|
+
};
|
|
32888
|
+
const _hoisted_1$Z = {
|
|
32757
32889
|
key: 0,
|
|
32758
32890
|
class: "lupa-result-page-title",
|
|
32759
32891
|
"data-cy": "lupa-result-page-title"
|
|
@@ -32765,7 +32897,7 @@ and ensure you are accounting for this risk.
|
|
|
32765
32897
|
};
|
|
32766
32898
|
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
32767
32899
|
const _hoisted_5$g = ["innerHTML"];
|
|
32768
|
-
const _sfc_main$
|
|
32900
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
32769
32901
|
__name: "SearchResultsTitle",
|
|
32770
32902
|
props: {
|
|
32771
32903
|
options: {},
|
|
@@ -32775,7 +32907,10 @@ and ensure you are accounting for this risk.
|
|
|
32775
32907
|
setup(__props) {
|
|
32776
32908
|
const props = __props;
|
|
32777
32909
|
const searchResultStore = useSearchResultStore();
|
|
32910
|
+
const paramsStore = useParamsStore();
|
|
32778
32911
|
const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
|
|
32912
|
+
const { skeletonEnabled, loading } = useLoadingSkeleton();
|
|
32913
|
+
const { query } = storeToRefs(paramsStore);
|
|
32779
32914
|
const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
|
|
32780
32915
|
const queryText = computed(() => {
|
|
32781
32916
|
return suggestedSearchText.value || currentQueryText.value;
|
|
@@ -32808,29 +32943,39 @@ and ensure you are accounting for this risk.
|
|
|
32808
32943
|
});
|
|
32809
32944
|
return (_ctx, _cache) => {
|
|
32810
32945
|
return openBlock(), createElementBlock("div", null, [
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
|
|
32823
|
-
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
32827
|
-
|
|
32828
|
-
|
|
32946
|
+
createVNode(_sfc_main$18, {
|
|
32947
|
+
type: "text",
|
|
32948
|
+
count: 1,
|
|
32949
|
+
enabled: unref(skeletonEnabled) && Boolean(unref(query)),
|
|
32950
|
+
loading: unref(loading)
|
|
32951
|
+
}, {
|
|
32952
|
+
default: withCtx(() => [
|
|
32953
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
|
|
32954
|
+
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32955
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32956
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
32957
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32958
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
32959
|
+
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32960
|
+
])) : createCommentVNode("", true)
|
|
32961
|
+
])) : createCommentVNode("", true),
|
|
32962
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
32963
|
+
key: 1,
|
|
32964
|
+
label: summaryLabel.value
|
|
32965
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
32966
|
+
descriptionTop.value ? (openBlock(), createElementBlock("div", {
|
|
32967
|
+
key: 2,
|
|
32968
|
+
class: "lupa-result-page-description-top",
|
|
32969
|
+
innerHTML: descriptionTop.value
|
|
32970
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
32971
|
+
]),
|
|
32972
|
+
_: 1
|
|
32973
|
+
}, 8, ["enabled", "loading"])
|
|
32829
32974
|
]);
|
|
32830
32975
|
};
|
|
32831
32976
|
}
|
|
32832
32977
|
});
|
|
32833
|
-
const _hoisted_1$
|
|
32978
|
+
const _hoisted_1$Y = {
|
|
32834
32979
|
class: "lupa-current-filter-label",
|
|
32835
32980
|
"data-cy": "lupa-current-filter-label"
|
|
32836
32981
|
};
|
|
@@ -32838,7 +32983,7 @@ and ensure you are accounting for this risk.
|
|
|
32838
32983
|
class: "lupa-current-filter-value",
|
|
32839
32984
|
"data-cy": "lupa-current-filter-value"
|
|
32840
32985
|
};
|
|
32841
|
-
const _sfc_main$
|
|
32986
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
32842
32987
|
__name: "CurrentFilterDisplay",
|
|
32843
32988
|
props: {
|
|
32844
32989
|
filter: {}
|
|
@@ -32880,13 +33025,13 @@ and ensure you are accounting for this risk.
|
|
|
32880
33025
|
onClick: handleClick,
|
|
32881
33026
|
"aria-label": "Remove filter"
|
|
32882
33027
|
}, "⨉"),
|
|
32883
|
-
createBaseVNode("div", _hoisted_1$
|
|
33028
|
+
createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32884
33029
|
createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32885
33030
|
], 2);
|
|
32886
33031
|
};
|
|
32887
33032
|
}
|
|
32888
33033
|
});
|
|
32889
|
-
const _hoisted_1$
|
|
33034
|
+
const _hoisted_1$X = { class: "lupa-filter-title-text" };
|
|
32890
33035
|
const _hoisted_2$G = {
|
|
32891
33036
|
key: 0,
|
|
32892
33037
|
class: "lupa-filter-count"
|
|
@@ -32896,7 +33041,7 @@ and ensure you are accounting for this risk.
|
|
|
32896
33041
|
class: "filter-values"
|
|
32897
33042
|
};
|
|
32898
33043
|
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
32899
|
-
const _sfc_main$
|
|
33044
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
32900
33045
|
__name: "CurrentFilters",
|
|
32901
33046
|
props: {
|
|
32902
33047
|
options: {},
|
|
@@ -32976,7 +33121,7 @@ and ensure you are accounting for this risk.
|
|
|
32976
33121
|
class: "lupa-current-filter-title",
|
|
32977
33122
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32978
33123
|
}, [
|
|
32979
|
-
createBaseVNode("div", _hoisted_1$
|
|
33124
|
+
createBaseVNode("div", _hoisted_1$X, [
|
|
32980
33125
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32981
33126
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32982
33127
|
]),
|
|
@@ -32988,7 +33133,7 @@ and ensure you are accounting for this risk.
|
|
|
32988
33133
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
32989
33134
|
createBaseVNode("div", _hoisted_4$n, [
|
|
32990
33135
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32991
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33136
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
32992
33137
|
key: filter.key + "_" + filter.value,
|
|
32993
33138
|
filter,
|
|
32994
33139
|
units: units.value,
|
|
@@ -33006,8 +33151,8 @@ and ensure you are accounting for this risk.
|
|
|
33006
33151
|
};
|
|
33007
33152
|
}
|
|
33008
33153
|
});
|
|
33009
|
-
const _hoisted_1$
|
|
33010
|
-
const _sfc_main$
|
|
33154
|
+
const _hoisted_1$W = ["href"];
|
|
33155
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
33011
33156
|
__name: "CategoryFilterItem",
|
|
33012
33157
|
props: {
|
|
33013
33158
|
options: {},
|
|
@@ -33044,12 +33189,12 @@ and ensure you are accounting for this risk.
|
|
|
33044
33189
|
"data-cy": "lupa-child-category-item",
|
|
33045
33190
|
href: urlLink.value,
|
|
33046
33191
|
onClick: handleNavigation
|
|
33047
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
33192
|
+
}, toDisplayString(title.value), 9, _hoisted_1$W)
|
|
33048
33193
|
], 2);
|
|
33049
33194
|
};
|
|
33050
33195
|
}
|
|
33051
33196
|
});
|
|
33052
|
-
const _hoisted_1$
|
|
33197
|
+
const _hoisted_1$V = {
|
|
33053
33198
|
class: "lupa-category-filter",
|
|
33054
33199
|
"data-cy": "lupa-category-filter"
|
|
33055
33200
|
};
|
|
@@ -33057,7 +33202,7 @@ and ensure you are accounting for this risk.
|
|
|
33057
33202
|
const _hoisted_3$v = ["href"];
|
|
33058
33203
|
const _hoisted_4$m = ["href"];
|
|
33059
33204
|
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
33060
|
-
const _sfc_main$
|
|
33205
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
33061
33206
|
__name: "CategoryFilter",
|
|
33062
33207
|
props: {
|
|
33063
33208
|
options: {}
|
|
@@ -33145,7 +33290,7 @@ and ensure you are accounting for this risk.
|
|
|
33145
33290
|
};
|
|
33146
33291
|
__expose({ fetch: fetch2 });
|
|
33147
33292
|
return (_ctx, _cache) => {
|
|
33148
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33293
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
33149
33294
|
createBaseVNode("div", _hoisted_2$F, [
|
|
33150
33295
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
33151
33296
|
key: 0,
|
|
@@ -33166,7 +33311,7 @@ and ensure you are accounting for this risk.
|
|
|
33166
33311
|
], 2),
|
|
33167
33312
|
createBaseVNode("div", _hoisted_5$f, [
|
|
33168
33313
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
33169
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33314
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
33170
33315
|
key: getCategoryKey(child),
|
|
33171
33316
|
item: child,
|
|
33172
33317
|
options: _ctx.options
|
|
@@ -33177,7 +33322,7 @@ and ensure you are accounting for this risk.
|
|
|
33177
33322
|
};
|
|
33178
33323
|
}
|
|
33179
33324
|
});
|
|
33180
|
-
const _hoisted_1$
|
|
33325
|
+
const _hoisted_1$U = {
|
|
33181
33326
|
class: "lupa-search-result-facet-term-values",
|
|
33182
33327
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
33183
33328
|
};
|
|
@@ -33192,7 +33337,7 @@ and ensure you are accounting for this risk.
|
|
|
33192
33337
|
};
|
|
33193
33338
|
const _hoisted_8$2 = { key: 0 };
|
|
33194
33339
|
const _hoisted_9$2 = { key: 1 };
|
|
33195
|
-
const _sfc_main$
|
|
33340
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
33196
33341
|
__name: "TermFacet",
|
|
33197
33342
|
props: {
|
|
33198
33343
|
options: {},
|
|
@@ -33286,7 +33431,7 @@ and ensure you are accounting for this risk.
|
|
|
33286
33431
|
}
|
|
33287
33432
|
};
|
|
33288
33433
|
return (_ctx, _cache) => {
|
|
33289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33434
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
33290
33435
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
33291
33436
|
key: 0,
|
|
33292
33437
|
class: "lupa-term-filter",
|
|
@@ -34235,7 +34380,7 @@ and ensure you are accounting for this risk.
|
|
|
34235
34380
|
}
|
|
34236
34381
|
return out;
|
|
34237
34382
|
};
|
|
34238
|
-
const _hoisted_1$
|
|
34383
|
+
const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
|
|
34239
34384
|
const _hoisted_2$D = {
|
|
34240
34385
|
key: 0,
|
|
34241
34386
|
class: "lupa-stats-facet-summary"
|
|
@@ -34264,7 +34409,7 @@ and ensure you are accounting for this risk.
|
|
|
34264
34409
|
key: 2,
|
|
34265
34410
|
class: "lupa-stats-slider-wrapper"
|
|
34266
34411
|
};
|
|
34267
|
-
const _sfc_main$
|
|
34412
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
34268
34413
|
__name: "StatsFacet",
|
|
34269
34414
|
props: {
|
|
34270
34415
|
options: {},
|
|
@@ -34483,7 +34628,7 @@ and ensure you are accounting for this risk.
|
|
|
34483
34628
|
}
|
|
34484
34629
|
);
|
|
34485
34630
|
return (_ctx, _cache) => {
|
|
34486
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34631
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
34487
34632
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
34488
34633
|
createBaseVNode("div", _hoisted_4$k, [
|
|
34489
34634
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -34548,7 +34693,7 @@ and ensure you are accounting for this risk.
|
|
|
34548
34693
|
};
|
|
34549
34694
|
}
|
|
34550
34695
|
});
|
|
34551
|
-
const _hoisted_1$
|
|
34696
|
+
const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
|
|
34552
34697
|
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
34553
34698
|
const _hoisted_3$s = {
|
|
34554
34699
|
key: 0,
|
|
@@ -34558,7 +34703,7 @@ and ensure you are accounting for this risk.
|
|
|
34558
34703
|
key: 0,
|
|
34559
34704
|
class: "lupa-facet-level"
|
|
34560
34705
|
};
|
|
34561
|
-
const _sfc_main
|
|
34706
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
34562
34707
|
__name: "HierarchyFacetLevel",
|
|
34563
34708
|
props: {
|
|
34564
34709
|
options: {},
|
|
@@ -34612,7 +34757,7 @@ and ensure you are accounting for this risk.
|
|
|
34612
34757
|
"data-cy": "lupa-facet-term",
|
|
34613
34758
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34614
34759
|
}, [
|
|
34615
|
-
createBaseVNode("div", _hoisted_1$
|
|
34760
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
34616
34761
|
createBaseVNode("span", {
|
|
34617
34762
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34618
34763
|
}, null, 2)
|
|
@@ -34640,13 +34785,13 @@ and ensure you are accounting for this risk.
|
|
|
34640
34785
|
};
|
|
34641
34786
|
}
|
|
34642
34787
|
});
|
|
34643
|
-
const _hoisted_1$
|
|
34788
|
+
const _hoisted_1$R = {
|
|
34644
34789
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34645
34790
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34646
34791
|
};
|
|
34647
34792
|
const _hoisted_2$B = { key: 0 };
|
|
34648
34793
|
const _hoisted_3$r = ["placeholder"];
|
|
34649
|
-
const _sfc_main
|
|
34794
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
34650
34795
|
__name: "HierarchyFacet",
|
|
34651
34796
|
props: {
|
|
34652
34797
|
options: {},
|
|
@@ -34702,7 +34847,7 @@ and ensure you are accounting for this risk.
|
|
|
34702
34847
|
showAll.value = false;
|
|
34703
34848
|
};
|
|
34704
34849
|
return (_ctx, _cache) => {
|
|
34705
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34850
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
34706
34851
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
34707
34852
|
withDirectives(createBaseVNode("input", {
|
|
34708
34853
|
class: "lupa-term-filter",
|
|
@@ -34714,7 +34859,7 @@ and ensure you are accounting for this risk.
|
|
|
34714
34859
|
])
|
|
34715
34860
|
])) : createCommentVNode("", true),
|
|
34716
34861
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34717
|
-
return openBlock(), createBlock(_sfc_main
|
|
34862
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
34718
34863
|
key: item.title,
|
|
34719
34864
|
options: _ctx.options,
|
|
34720
34865
|
item,
|
|
@@ -34738,7 +34883,7 @@ and ensure you are accounting for this risk.
|
|
|
34738
34883
|
};
|
|
34739
34884
|
}
|
|
34740
34885
|
});
|
|
34741
|
-
const _hoisted_1$
|
|
34886
|
+
const _hoisted_1$Q = { class: "lupa-facet-label-text" };
|
|
34742
34887
|
const _hoisted_2$A = {
|
|
34743
34888
|
key: 0,
|
|
34744
34889
|
class: "lupa-facet-content",
|
|
@@ -34746,12 +34891,12 @@ and ensure you are accounting for this risk.
|
|
|
34746
34891
|
};
|
|
34747
34892
|
const __default__$1 = {
|
|
34748
34893
|
components: {
|
|
34749
|
-
TermFacet: _sfc_main$
|
|
34750
|
-
StatsFacet: _sfc_main$
|
|
34751
|
-
HierarchyFacet: _sfc_main
|
|
34894
|
+
TermFacet: _sfc_main$12,
|
|
34895
|
+
StatsFacet: _sfc_main$11,
|
|
34896
|
+
HierarchyFacet: _sfc_main$$
|
|
34752
34897
|
}
|
|
34753
34898
|
};
|
|
34754
|
-
const _sfc_main$
|
|
34899
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34755
34900
|
__name: "FacetDisplay",
|
|
34756
34901
|
props: {
|
|
34757
34902
|
options: {},
|
|
@@ -34898,7 +35043,7 @@ and ensure you are accounting for this risk.
|
|
|
34898
35043
|
"data-cy": "lupa-search-result-facet-label",
|
|
34899
35044
|
onClick: toggleFacet
|
|
34900
35045
|
}, [
|
|
34901
|
-
createBaseVNode("div", _hoisted_1$
|
|
35046
|
+
createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
|
|
34902
35047
|
createBaseVNode("div", {
|
|
34903
35048
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34904
35049
|
}, null, 2)
|
|
@@ -35016,11 +35161,11 @@ and ensure you are accounting for this risk.
|
|
|
35016
35161
|
handleSortSidebarToggle
|
|
35017
35162
|
};
|
|
35018
35163
|
};
|
|
35019
|
-
const _hoisted_1$
|
|
35164
|
+
const _hoisted_1$P = {
|
|
35020
35165
|
key: 0,
|
|
35021
35166
|
class: "lupa-desktop-toggle-filter-count"
|
|
35022
35167
|
};
|
|
35023
|
-
const _sfc_main$
|
|
35168
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
35024
35169
|
__name: "DesktopFacetToggle",
|
|
35025
35170
|
setup(__props) {
|
|
35026
35171
|
const {
|
|
@@ -35042,12 +35187,12 @@ and ensure you are accounting for this risk.
|
|
|
35042
35187
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35043
35188
|
}, [
|
|
35044
35189
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35045
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35190
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35046
35191
|
], 2);
|
|
35047
35192
|
};
|
|
35048
35193
|
}
|
|
35049
35194
|
});
|
|
35050
|
-
const _sfc_main$
|
|
35195
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
35051
35196
|
__name: "DesktopSortToggle",
|
|
35052
35197
|
setup(__props) {
|
|
35053
35198
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -35063,12 +35208,12 @@ and ensure you are accounting for this risk.
|
|
|
35063
35208
|
};
|
|
35064
35209
|
}
|
|
35065
35210
|
});
|
|
35066
|
-
const _hoisted_1$
|
|
35211
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
|
|
35067
35212
|
const _hoisted_2$z = {
|
|
35068
35213
|
key: 0,
|
|
35069
35214
|
class: "lupa-facets-title"
|
|
35070
35215
|
};
|
|
35071
|
-
const _sfc_main$
|
|
35216
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
35072
35217
|
__name: "FacetList",
|
|
35073
35218
|
props: {
|
|
35074
35219
|
options: {},
|
|
@@ -35110,14 +35255,14 @@ and ensure you are accounting for this risk.
|
|
|
35110
35255
|
};
|
|
35111
35256
|
return (_ctx, _cache) => {
|
|
35112
35257
|
var _a25;
|
|
35113
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35258
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
35114
35259
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
35115
35260
|
createBaseVNode("div", {
|
|
35116
35261
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
35117
35262
|
}, [
|
|
35118
35263
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
35119
35264
|
var _a26;
|
|
35120
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35265
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
35121
35266
|
key: facet.key,
|
|
35122
35267
|
facet,
|
|
35123
35268
|
currentFilters: currentFiltersValue.value,
|
|
@@ -35129,14 +35274,14 @@ and ensure you are accounting for this risk.
|
|
|
35129
35274
|
onExpand: unref(handleFilterSidebarToggle)
|
|
35130
35275
|
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
35131
35276
|
}), 128)),
|
|
35132
|
-
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$
|
|
35133
|
-
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$
|
|
35277
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
|
|
35278
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
|
|
35134
35279
|
], 2)
|
|
35135
35280
|
]);
|
|
35136
35281
|
};
|
|
35137
35282
|
}
|
|
35138
35283
|
});
|
|
35139
|
-
const _sfc_main$
|
|
35284
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
35140
35285
|
__name: "FacetsButton",
|
|
35141
35286
|
props: {
|
|
35142
35287
|
options: {}
|
|
@@ -35161,7 +35306,7 @@ and ensure you are accounting for this risk.
|
|
|
35161
35306
|
};
|
|
35162
35307
|
}
|
|
35163
35308
|
});
|
|
35164
|
-
const _sfc_main$
|
|
35309
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
35165
35310
|
__name: "FacetsClearButton",
|
|
35166
35311
|
props: {
|
|
35167
35312
|
options: {}
|
|
@@ -35186,8 +35331,8 @@ and ensure you are accounting for this risk.
|
|
|
35186
35331
|
};
|
|
35187
35332
|
}
|
|
35188
35333
|
});
|
|
35189
|
-
const _hoisted_1$
|
|
35190
|
-
const _sfc_main$
|
|
35334
|
+
const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
|
|
35335
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
35191
35336
|
__name: "Facets",
|
|
35192
35337
|
props: {
|
|
35193
35338
|
options: {},
|
|
@@ -35295,7 +35440,7 @@ and ensure you are accounting for this risk.
|
|
|
35295
35440
|
return openBlock(), createElementBlock("div", {
|
|
35296
35441
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
35297
35442
|
}, [
|
|
35298
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
35443
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
35299
35444
|
key: 0,
|
|
35300
35445
|
options: _ctx.options,
|
|
35301
35446
|
facets: regularFacets.value,
|
|
@@ -35305,13 +35450,13 @@ and ensure you are accounting for this risk.
|
|
|
35305
35450
|
onSelect: handleFacetSelect,
|
|
35306
35451
|
onClear: clear
|
|
35307
35452
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
35308
|
-
createBaseVNode("div", _hoisted_1$
|
|
35309
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35453
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
35454
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
35310
35455
|
key: 0,
|
|
35311
35456
|
options: _ctx.options,
|
|
35312
35457
|
onClear: clearAll
|
|
35313
35458
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35314
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35459
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
35315
35460
|
key: 1,
|
|
35316
35461
|
options: _ctx.options,
|
|
35317
35462
|
onFilter: filter
|
|
@@ -35321,12 +35466,12 @@ and ensure you are accounting for this risk.
|
|
|
35321
35466
|
};
|
|
35322
35467
|
}
|
|
35323
35468
|
});
|
|
35324
|
-
const _hoisted_1$
|
|
35469
|
+
const _hoisted_1$M = {
|
|
35325
35470
|
key: 0,
|
|
35326
35471
|
id: "lupa-search-result-filters",
|
|
35327
35472
|
class: "lupa-search-result-filters"
|
|
35328
35473
|
};
|
|
35329
|
-
const _sfc_main$
|
|
35474
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
35330
35475
|
__name: "SearchResultsFilters",
|
|
35331
35476
|
props: {
|
|
35332
35477
|
options: {},
|
|
@@ -35336,6 +35481,7 @@ and ensure you are accounting for this risk.
|
|
|
35336
35481
|
emits: ["filter"],
|
|
35337
35482
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35338
35483
|
const categoryFilters = ref(null);
|
|
35484
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35339
35485
|
const props = __props;
|
|
35340
35486
|
const emit2 = __emit;
|
|
35341
35487
|
const desktopFiltersVisible = computed(() => {
|
|
@@ -35364,30 +35510,42 @@ and ensure you are accounting for this risk.
|
|
|
35364
35510
|
};
|
|
35365
35511
|
__expose({ fetch: fetch2 });
|
|
35366
35512
|
return (_ctx, _cache) => {
|
|
35367
|
-
|
|
35368
|
-
|
|
35369
|
-
|
|
35370
|
-
|
|
35371
|
-
|
|
35372
|
-
|
|
35373
|
-
},
|
|
35374
|
-
|
|
35375
|
-
|
|
35376
|
-
|
|
35377
|
-
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35382
|
-
|
|
35383
|
-
|
|
35384
|
-
|
|
35385
|
-
|
|
35513
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
35514
|
+
createVNode(_sfc_main$18, {
|
|
35515
|
+
class: "lupa-skeleton-filters",
|
|
35516
|
+
count: 1,
|
|
35517
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35518
|
+
loading: unref(loadingFacets)
|
|
35519
|
+
}, {
|
|
35520
|
+
default: withCtx(() => {
|
|
35521
|
+
var _a25;
|
|
35522
|
+
return [
|
|
35523
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
|
|
35524
|
+
key: 0,
|
|
35525
|
+
options: _ctx.options.currentFilters,
|
|
35526
|
+
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
35527
|
+
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
35528
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
|
|
35529
|
+
key: 1,
|
|
35530
|
+
options: _ctx.options.categories,
|
|
35531
|
+
ref_key: "categoryFilters",
|
|
35532
|
+
ref: categoryFilters
|
|
35533
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35534
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35535
|
+
key: 2,
|
|
35536
|
+
options: _ctx.options.facets,
|
|
35537
|
+
"facet-style": _ctx.style,
|
|
35538
|
+
onFilter: filter
|
|
35539
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35540
|
+
];
|
|
35541
|
+
}),
|
|
35542
|
+
_: 1
|
|
35543
|
+
}, 8, ["enabled", "loading"])
|
|
35386
35544
|
])) : createCommentVNode("", true);
|
|
35387
35545
|
};
|
|
35388
35546
|
}
|
|
35389
35547
|
});
|
|
35390
|
-
const _hoisted_1$
|
|
35548
|
+
const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
|
|
35391
35549
|
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
35392
35550
|
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
35393
35551
|
const _hoisted_4$i = {
|
|
@@ -35395,7 +35553,7 @@ and ensure you are accounting for this risk.
|
|
|
35395
35553
|
class: "lupa-sidebar-filter-count"
|
|
35396
35554
|
};
|
|
35397
35555
|
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
35398
|
-
const _sfc_main$
|
|
35556
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
35399
35557
|
__name: "MobileFilterSidebar",
|
|
35400
35558
|
props: {
|
|
35401
35559
|
options: {}
|
|
@@ -35434,7 +35592,7 @@ and ensure you are accounting for this risk.
|
|
|
35434
35592
|
class: "lupa-sidebar-close",
|
|
35435
35593
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
35436
35594
|
}),
|
|
35437
|
-
createBaseVNode("div", _hoisted_1$
|
|
35595
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
35438
35596
|
createBaseVNode("div", _hoisted_2$y, [
|
|
35439
35597
|
createBaseVNode("div", _hoisted_3$q, [
|
|
35440
35598
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -35446,7 +35604,7 @@ and ensure you are accounting for this risk.
|
|
|
35446
35604
|
})
|
|
35447
35605
|
]),
|
|
35448
35606
|
createBaseVNode("div", _hoisted_5$c, [
|
|
35449
|
-
createVNode(_sfc_main$
|
|
35607
|
+
createVNode(_sfc_main$T, {
|
|
35450
35608
|
options: _ctx.options,
|
|
35451
35609
|
expandable: isActiveFiltersExpanded.value,
|
|
35452
35610
|
style: "sidebar",
|
|
@@ -35458,14 +35616,17 @@ and ensure you are accounting for this risk.
|
|
|
35458
35616
|
};
|
|
35459
35617
|
}
|
|
35460
35618
|
});
|
|
35461
|
-
const _hoisted_1$
|
|
35619
|
+
const _hoisted_1$K = {
|
|
35620
|
+
key: 0,
|
|
35621
|
+
id: "lupa-search-results-breadcrumbs"
|
|
35622
|
+
};
|
|
35462
35623
|
const _hoisted_2$x = ["href", "onClick"];
|
|
35463
35624
|
const _hoisted_3$p = {
|
|
35464
35625
|
key: 1,
|
|
35465
35626
|
class: "lupa-search-results-breadcrumb-text"
|
|
35466
35627
|
};
|
|
35467
35628
|
const _hoisted_4$h = { key: 2 };
|
|
35468
|
-
const _sfc_main$
|
|
35629
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
35469
35630
|
__name: "SearchResultsBreadcrumbs",
|
|
35470
35631
|
props: {
|
|
35471
35632
|
breadcrumbs: {}
|
|
@@ -35483,6 +35644,10 @@ and ensure you are accounting for this risk.
|
|
|
35483
35644
|
const hasEventRouting = computed(() => {
|
|
35484
35645
|
return searchResultOptions.value.routingBehavior === "event";
|
|
35485
35646
|
});
|
|
35647
|
+
const hasBreadcrumbs = computed(() => {
|
|
35648
|
+
var _a25;
|
|
35649
|
+
return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
|
|
35650
|
+
});
|
|
35486
35651
|
const getLabel = (label) => {
|
|
35487
35652
|
return addParamsToLabel(label, `'${currentQueryText.value}'`);
|
|
35488
35653
|
};
|
|
@@ -35490,7 +35655,7 @@ and ensure you are accounting for this risk.
|
|
|
35490
35655
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
35491
35656
|
};
|
|
35492
35657
|
return (_ctx, _cache) => {
|
|
35493
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35658
|
+
return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
35494
35659
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
35495
35660
|
var _a25;
|
|
35496
35661
|
return openBlock(), createElementBlock("span", {
|
|
@@ -35509,16 +35674,16 @@ and ensure you are accounting for this risk.
|
|
|
35509
35674
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
35510
35675
|
]);
|
|
35511
35676
|
}), 128))
|
|
35512
|
-
]);
|
|
35677
|
+
])) : createCommentVNode("", true);
|
|
35513
35678
|
};
|
|
35514
35679
|
}
|
|
35515
35680
|
});
|
|
35516
|
-
const _hoisted_1$
|
|
35681
|
+
const _hoisted_1$J = {
|
|
35517
35682
|
key: 0,
|
|
35518
35683
|
id: "lupa-search-result-filters",
|
|
35519
35684
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
35520
35685
|
};
|
|
35521
|
-
const _sfc_main$
|
|
35686
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
35522
35687
|
__name: "FiltersTopDropdown",
|
|
35523
35688
|
props: {
|
|
35524
35689
|
options: {}
|
|
@@ -35526,6 +35691,7 @@ and ensure you are accounting for this risk.
|
|
|
35526
35691
|
emits: ["filter"],
|
|
35527
35692
|
setup(__props, { emit: __emit }) {
|
|
35528
35693
|
const props = __props;
|
|
35694
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35529
35695
|
const emit2 = __emit;
|
|
35530
35696
|
const filter = () => {
|
|
35531
35697
|
emit2("filter");
|
|
@@ -35535,21 +35701,33 @@ and ensure you are accounting for this risk.
|
|
|
35535
35701
|
return (_a25 = props.options.visible) != null ? _a25 : true;
|
|
35536
35702
|
});
|
|
35537
35703
|
return (_ctx, _cache) => {
|
|
35538
|
-
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35543
|
-
|
|
35544
|
-
|
|
35545
|
-
|
|
35546
|
-
|
|
35704
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
35705
|
+
createVNode(_sfc_main$18, {
|
|
35706
|
+
class: "lupa-skeleton-top-dropdown-filters",
|
|
35707
|
+
count: 1,
|
|
35708
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35709
|
+
loading: unref(loadingFacets)
|
|
35710
|
+
}, {
|
|
35711
|
+
default: withCtx(() => {
|
|
35712
|
+
var _a25;
|
|
35713
|
+
return [
|
|
35714
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35715
|
+
key: 0,
|
|
35716
|
+
options: _ctx.options.facets,
|
|
35717
|
+
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
35718
|
+
clearable: true,
|
|
35719
|
+
onFilter: filter
|
|
35720
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35721
|
+
];
|
|
35722
|
+
}),
|
|
35723
|
+
_: 1
|
|
35724
|
+
}, 8, ["enabled", "loading"])
|
|
35547
35725
|
])) : createCommentVNode("", true);
|
|
35548
35726
|
};
|
|
35549
35727
|
}
|
|
35550
35728
|
});
|
|
35551
|
-
const _hoisted_1$
|
|
35552
|
-
const _sfc_main$
|
|
35729
|
+
const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
|
|
35730
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
35553
35731
|
__name: "SearchResultsLayoutSelection",
|
|
35554
35732
|
setup(__props) {
|
|
35555
35733
|
const searchResultStore = useSearchResultStore();
|
|
@@ -35560,7 +35738,7 @@ and ensure you are accounting for this risk.
|
|
|
35560
35738
|
searchResultStore.setLayout(layout2);
|
|
35561
35739
|
};
|
|
35562
35740
|
return (_ctx, _cache) => {
|
|
35563
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35741
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
35564
35742
|
createBaseVNode("div", {
|
|
35565
35743
|
class: normalizeClass([
|
|
35566
35744
|
"lupa-layout-selection-grid",
|
|
@@ -35582,11 +35760,11 @@ and ensure you are accounting for this risk.
|
|
|
35582
35760
|
};
|
|
35583
35761
|
}
|
|
35584
35762
|
});
|
|
35585
|
-
const _hoisted_1$
|
|
35763
|
+
const _hoisted_1$H = {
|
|
35586
35764
|
key: 0,
|
|
35587
35765
|
class: "lupa-mobile-toggle-filter-count"
|
|
35588
35766
|
};
|
|
35589
|
-
const _sfc_main$
|
|
35767
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35590
35768
|
__name: "SearchResultsMobileToggle",
|
|
35591
35769
|
setup(__props) {
|
|
35592
35770
|
const {
|
|
@@ -35608,12 +35786,12 @@ and ensure you are accounting for this risk.
|
|
|
35608
35786
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35609
35787
|
}, [
|
|
35610
35788
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35611
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35789
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35612
35790
|
], 2);
|
|
35613
35791
|
};
|
|
35614
35792
|
}
|
|
35615
35793
|
});
|
|
35616
|
-
const _sfc_main$
|
|
35794
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
35617
35795
|
__name: "SearchResultsMobileFilterClose",
|
|
35618
35796
|
props: {
|
|
35619
35797
|
label: {}
|
|
@@ -35633,7 +35811,7 @@ and ensure you are accounting for this risk.
|
|
|
35633
35811
|
};
|
|
35634
35812
|
}
|
|
35635
35813
|
});
|
|
35636
|
-
const _hoisted_1$
|
|
35814
|
+
const _hoisted_1$G = {
|
|
35637
35815
|
key: 0,
|
|
35638
35816
|
id: "lupa-search-results-page-select",
|
|
35639
35817
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -35646,7 +35824,7 @@ and ensure you are accounting for this risk.
|
|
|
35646
35824
|
key: 0,
|
|
35647
35825
|
class: "lupa-page-number-separator"
|
|
35648
35826
|
};
|
|
35649
|
-
const _sfc_main$
|
|
35827
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
35650
35828
|
__name: "SearchResultsPageSelect",
|
|
35651
35829
|
props: {
|
|
35652
35830
|
lastPageLabel: {},
|
|
@@ -35741,7 +35919,7 @@ and ensure you are accounting for this risk.
|
|
|
35741
35919
|
};
|
|
35742
35920
|
return (_ctx, _cache) => {
|
|
35743
35921
|
var _a25;
|
|
35744
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35922
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
35745
35923
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35746
35924
|
key: 0,
|
|
35747
35925
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35816,7 +35994,7 @@ and ensure you are accounting for this risk.
|
|
|
35816
35994
|
};
|
|
35817
35995
|
}
|
|
35818
35996
|
});
|
|
35819
|
-
const _hoisted_1$
|
|
35997
|
+
const _hoisted_1$F = {
|
|
35820
35998
|
id: "lupa-search-results-page-size",
|
|
35821
35999
|
"data-cy": "lupa-search-results-page-size"
|
|
35822
36000
|
};
|
|
@@ -35827,7 +36005,7 @@ and ensure you are accounting for this risk.
|
|
|
35827
36005
|
};
|
|
35828
36006
|
const _hoisted_4$g = ["value", "aria-label"];
|
|
35829
36007
|
const _hoisted_5$b = ["value"];
|
|
35830
|
-
const _sfc_main$
|
|
36008
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
35831
36009
|
__name: "SearchResultsPageSize",
|
|
35832
36010
|
props: {
|
|
35833
36011
|
labels: {},
|
|
@@ -35858,7 +36036,7 @@ and ensure you are accounting for this risk.
|
|
|
35858
36036
|
};
|
|
35859
36037
|
return (_ctx, _cache) => {
|
|
35860
36038
|
var _a25, _b25, _c;
|
|
35861
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36039
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
35862
36040
|
createBaseVNode("div", _hoisted_2$v, [
|
|
35863
36041
|
createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
35864
36042
|
createBaseVNode("select", {
|
|
@@ -35950,7 +36128,7 @@ and ensure you are accounting for this risk.
|
|
|
35950
36128
|
setSortValue
|
|
35951
36129
|
};
|
|
35952
36130
|
};
|
|
35953
|
-
const _hoisted_1$
|
|
36131
|
+
const _hoisted_1$E = {
|
|
35954
36132
|
key: 0,
|
|
35955
36133
|
id: "lupa-search-results-sort",
|
|
35956
36134
|
class: "lupa-search-results-sort"
|
|
@@ -35962,7 +36140,7 @@ and ensure you are accounting for this risk.
|
|
|
35962
36140
|
};
|
|
35963
36141
|
const _hoisted_4$f = ["aria-label"];
|
|
35964
36142
|
const _hoisted_5$a = ["value"];
|
|
35965
|
-
const _sfc_main$
|
|
36143
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35966
36144
|
__name: "SearchResultsSort",
|
|
35967
36145
|
setup(__props) {
|
|
35968
36146
|
const {
|
|
@@ -35983,7 +36161,7 @@ and ensure you are accounting for this risk.
|
|
|
35983
36161
|
});
|
|
35984
36162
|
return (_ctx, _cache) => {
|
|
35985
36163
|
var _a25, _b25;
|
|
35986
|
-
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36164
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
35987
36165
|
createBaseVNode("div", _hoisted_2$u, [
|
|
35988
36166
|
createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
35989
36167
|
withDirectives(createBaseVNode("select", {
|
|
@@ -36010,7 +36188,7 @@ and ensure you are accounting for this risk.
|
|
|
36010
36188
|
};
|
|
36011
36189
|
}
|
|
36012
36190
|
});
|
|
36013
|
-
const _sfc_main$
|
|
36191
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
36014
36192
|
__name: "SearchResultsSortDrawerToggle",
|
|
36015
36193
|
setup(__props) {
|
|
36016
36194
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -36026,7 +36204,7 @@ and ensure you are accounting for this risk.
|
|
|
36026
36204
|
};
|
|
36027
36205
|
}
|
|
36028
36206
|
});
|
|
36029
|
-
const _hoisted_1$
|
|
36207
|
+
const _hoisted_1$D = { class: "lupa-toolbar-left" };
|
|
36030
36208
|
const _hoisted_2$t = {
|
|
36031
36209
|
key: 0,
|
|
36032
36210
|
class: "lupa-toolbar-right-title"
|
|
@@ -36041,7 +36219,7 @@ and ensure you are accounting for this risk.
|
|
|
36041
36219
|
};
|
|
36042
36220
|
const _hoisted_8 = { key: 2 };
|
|
36043
36221
|
const _hoisted_9 = { key: 4 };
|
|
36044
|
-
const _sfc_main$
|
|
36222
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
36045
36223
|
__name: "SearchResultsToolbar",
|
|
36046
36224
|
props: {
|
|
36047
36225
|
options: {},
|
|
@@ -36154,16 +36332,16 @@ and ensure you are accounting for this risk.
|
|
|
36154
36332
|
id: "lupa-search-results-toolbar",
|
|
36155
36333
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
36156
36334
|
}, [
|
|
36157
|
-
createBaseVNode("div", _hoisted_1$
|
|
36335
|
+
createBaseVNode("div", _hoisted_1$D, [
|
|
36158
36336
|
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$
|
|
36337
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
36338
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
36161
36339
|
key: 3,
|
|
36162
36340
|
label: searchSummaryLabel.value,
|
|
36163
36341
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
36164
36342
|
onClear: handleClearAll
|
|
36165
36343
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
36166
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
36344
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
36167
36345
|
key: 5,
|
|
36168
36346
|
options: paginationOptions.value.pageSelect,
|
|
36169
36347
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -36172,19 +36350,19 @@ and ensure you are accounting for this risk.
|
|
|
36172
36350
|
]),
|
|
36173
36351
|
createBaseVNode("div", _hoisted_6$4, [
|
|
36174
36352
|
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$
|
|
36353
|
+
createVNode(_sfc_main$O),
|
|
36354
|
+
createVNode(_sfc_main$J),
|
|
36355
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
|
|
36178
36356
|
key: 1,
|
|
36179
36357
|
options: paginationOptions.value.pageSize,
|
|
36180
36358
|
labels: paginationOptions.value.labels
|
|
36181
36359
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
36182
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
36360
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
36183
36361
|
key: 3,
|
|
36184
36362
|
options: sortOptions.value,
|
|
36185
36363
|
callbacks: callbacks.value
|
|
36186
36364
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
36187
|
-
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
36365
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
36188
36366
|
key: 5,
|
|
36189
36367
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
36190
36368
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -36193,7 +36371,7 @@ and ensure you are accounting for this risk.
|
|
|
36193
36371
|
};
|
|
36194
36372
|
}
|
|
36195
36373
|
});
|
|
36196
|
-
const _sfc_main$
|
|
36374
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
36197
36375
|
__name: "SearchResultsProductImage",
|
|
36198
36376
|
props: {
|
|
36199
36377
|
item: {},
|
|
@@ -36201,7 +36379,7 @@ and ensure you are accounting for this risk.
|
|
|
36201
36379
|
},
|
|
36202
36380
|
setup(__props) {
|
|
36203
36381
|
return (_ctx, _cache) => {
|
|
36204
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36382
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
36205
36383
|
item: _ctx.item,
|
|
36206
36384
|
options: _ctx.options,
|
|
36207
36385
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -36210,7 +36388,7 @@ and ensure you are accounting for this risk.
|
|
|
36210
36388
|
};
|
|
36211
36389
|
}
|
|
36212
36390
|
});
|
|
36213
|
-
const _hoisted_1$
|
|
36391
|
+
const _hoisted_1$C = ["title", "innerHTML"];
|
|
36214
36392
|
const _hoisted_2$s = ["title"];
|
|
36215
36393
|
const _hoisted_3$k = ["href", "innerHTML"];
|
|
36216
36394
|
const _hoisted_4$d = ["title"];
|
|
@@ -36219,7 +36397,7 @@ and ensure you are accounting for this risk.
|
|
|
36219
36397
|
class: "lupa-search-results-product-title-text"
|
|
36220
36398
|
};
|
|
36221
36399
|
const _hoisted_6$3 = ["href"];
|
|
36222
|
-
const _sfc_main$
|
|
36400
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
36223
36401
|
__name: "SearchResultsProductTitle",
|
|
36224
36402
|
props: {
|
|
36225
36403
|
item: {},
|
|
@@ -36256,7 +36434,7 @@ and ensure you are accounting for this risk.
|
|
|
36256
36434
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36257
36435
|
title: sanitizedTitle.value,
|
|
36258
36436
|
innerHTML: sanitizedTitle.value
|
|
36259
|
-
}, null, 12, _hoisted_1$
|
|
36437
|
+
}, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
36260
36438
|
key: 1,
|
|
36261
36439
|
class: "lupa-search-results-product-title",
|
|
36262
36440
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -36285,8 +36463,8 @@ and ensure you are accounting for this risk.
|
|
|
36285
36463
|
};
|
|
36286
36464
|
}
|
|
36287
36465
|
});
|
|
36288
|
-
const _hoisted_1$
|
|
36289
|
-
const _sfc_main$
|
|
36466
|
+
const _hoisted_1$B = ["innerHTML"];
|
|
36467
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
36290
36468
|
__name: "SearchResultsProductDescription",
|
|
36291
36469
|
props: {
|
|
36292
36470
|
item: {},
|
|
@@ -36313,7 +36491,7 @@ and ensure you are accounting for this risk.
|
|
|
36313
36491
|
class: "lupa-search-results-product-description",
|
|
36314
36492
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36315
36493
|
innerHTML: sanitizedDescription.value
|
|
36316
|
-
}, null, 12, _hoisted_1$
|
|
36494
|
+
}, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
|
|
36317
36495
|
key: 1,
|
|
36318
36496
|
class: "lupa-search-results-product-description",
|
|
36319
36497
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -36321,7 +36499,7 @@ and ensure you are accounting for this risk.
|
|
|
36321
36499
|
};
|
|
36322
36500
|
}
|
|
36323
36501
|
});
|
|
36324
|
-
const _hoisted_1$
|
|
36502
|
+
const _hoisted_1$A = { id: "lupa-search-results-rating" };
|
|
36325
36503
|
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
36326
36504
|
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
36327
36505
|
const _hoisted_4$c = ["innerHTML"];
|
|
@@ -36329,7 +36507,7 @@ and ensure you are accounting for this risk.
|
|
|
36329
36507
|
const _hoisted_6$2 = ["innerHTML"];
|
|
36330
36508
|
const _hoisted_7$1 = ["href"];
|
|
36331
36509
|
const STAR_COUNT = 5;
|
|
36332
|
-
const _sfc_main$
|
|
36510
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
36333
36511
|
__name: "SearchResultsProductRating",
|
|
36334
36512
|
props: {
|
|
36335
36513
|
item: {},
|
|
@@ -36366,7 +36544,7 @@ and ensure you are accounting for this risk.
|
|
|
36366
36544
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
36367
36545
|
});
|
|
36368
36546
|
return (_ctx, _cache) => {
|
|
36369
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36547
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
36370
36548
|
createBaseVNode("div", _hoisted_2$r, [
|
|
36371
36549
|
createBaseVNode("div", _hoisted_3$j, [
|
|
36372
36550
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -36400,11 +36578,11 @@ and ensure you are accounting for this risk.
|
|
|
36400
36578
|
};
|
|
36401
36579
|
}
|
|
36402
36580
|
});
|
|
36403
|
-
const _hoisted_1$
|
|
36581
|
+
const _hoisted_1$z = {
|
|
36404
36582
|
class: "lupa-search-results-product-regular-price",
|
|
36405
36583
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
36406
36584
|
};
|
|
36407
|
-
const _sfc_main$
|
|
36585
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
36408
36586
|
__name: "SearchResultsProductRegularPrice",
|
|
36409
36587
|
props: {
|
|
36410
36588
|
item: {},
|
|
@@ -36426,11 +36604,11 @@ and ensure you are accounting for this risk.
|
|
|
36426
36604
|
);
|
|
36427
36605
|
});
|
|
36428
36606
|
return (_ctx, _cache) => {
|
|
36429
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36607
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
|
|
36430
36608
|
};
|
|
36431
36609
|
}
|
|
36432
36610
|
});
|
|
36433
|
-
const _sfc_main$
|
|
36611
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
36434
36612
|
__name: "SearchResultsProductPrice",
|
|
36435
36613
|
props: {
|
|
36436
36614
|
item: {},
|
|
@@ -36464,12 +36642,12 @@ and ensure you are accounting for this risk.
|
|
|
36464
36642
|
};
|
|
36465
36643
|
}
|
|
36466
36644
|
});
|
|
36467
|
-
const _hoisted_1$
|
|
36645
|
+
const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
36468
36646
|
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
36469
36647
|
const _hoisted_3$i = ["disabled"];
|
|
36470
36648
|
const _hoisted_4$b = ["href"];
|
|
36471
36649
|
const _hoisted_5$6 = ["id", "disabled"];
|
|
36472
|
-
const _sfc_main$
|
|
36650
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
36473
36651
|
__name: "SearchResultsProductAddToCart",
|
|
36474
36652
|
props: {
|
|
36475
36653
|
item: {},
|
|
@@ -36528,7 +36706,7 @@ and ensure you are accounting for this risk.
|
|
|
36528
36706
|
loading.value = false;
|
|
36529
36707
|
});
|
|
36530
36708
|
return (_ctx, _cache) => {
|
|
36531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36709
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
36532
36710
|
createBaseVNode("div", _hoisted_2$q, [
|
|
36533
36711
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
36534
36712
|
key: 0,
|
|
@@ -36551,12 +36729,12 @@ and ensure you are accounting for this risk.
|
|
|
36551
36729
|
};
|
|
36552
36730
|
}
|
|
36553
36731
|
});
|
|
36554
|
-
const _hoisted_1$
|
|
36732
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
36555
36733
|
const _hoisted_2$p = { key: 0 };
|
|
36556
36734
|
const _hoisted_3$h = { key: 1 };
|
|
36557
36735
|
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
36558
36736
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
36559
|
-
const _sfc_main$
|
|
36737
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
36560
36738
|
__name: "SearchResultsProductCustom",
|
|
36561
36739
|
props: {
|
|
36562
36740
|
item: {},
|
|
@@ -36598,7 +36776,7 @@ and ensure you are accounting for this risk.
|
|
|
36598
36776
|
key: 0,
|
|
36599
36777
|
class: className.value,
|
|
36600
36778
|
innerHTML: text.value
|
|
36601
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36779
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
36602
36780
|
key: 1,
|
|
36603
36781
|
class: className.value
|
|
36604
36782
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
@@ -36610,8 +36788,8 @@ and ensure you are accounting for this risk.
|
|
|
36610
36788
|
};
|
|
36611
36789
|
}
|
|
36612
36790
|
});
|
|
36613
|
-
const _hoisted_1$
|
|
36614
|
-
const _sfc_main$
|
|
36791
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
36792
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
36615
36793
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
36616
36794
|
props: {
|
|
36617
36795
|
item: {},
|
|
@@ -36647,15 +36825,15 @@ and ensure you are accounting for this risk.
|
|
|
36647
36825
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
36648
36826
|
class: className.value,
|
|
36649
36827
|
innerHTML: text.value
|
|
36650
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36828
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
|
|
36651
36829
|
};
|
|
36652
36830
|
}
|
|
36653
36831
|
});
|
|
36654
|
-
const _hoisted_1$
|
|
36832
|
+
const _hoisted_1$v = { id: "lupa-search-results-rating" };
|
|
36655
36833
|
const _hoisted_2$o = ["innerHTML"];
|
|
36656
36834
|
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
36657
36835
|
const _hoisted_4$9 = ["href"];
|
|
36658
|
-
const _sfc_main$
|
|
36836
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
36659
36837
|
__name: "SearchResultsProductSingleStarRating",
|
|
36660
36838
|
props: {
|
|
36661
36839
|
item: {},
|
|
@@ -36683,7 +36861,7 @@ and ensure you are accounting for this risk.
|
|
|
36683
36861
|
return RATING_STAR_HTML;
|
|
36684
36862
|
});
|
|
36685
36863
|
return (_ctx, _cache) => {
|
|
36686
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36864
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
36687
36865
|
createBaseVNode("div", {
|
|
36688
36866
|
innerHTML: star.value,
|
|
36689
36867
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -36699,19 +36877,19 @@ and ensure you are accounting for this risk.
|
|
|
36699
36877
|
});
|
|
36700
36878
|
const __default__ = {
|
|
36701
36879
|
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$
|
|
36880
|
+
SearchResultsProductImage: _sfc_main$H,
|
|
36881
|
+
SearchResultsProductTitle: _sfc_main$G,
|
|
36882
|
+
SearchResultsProductDescription: _sfc_main$F,
|
|
36883
|
+
SearchResultsProductRating: _sfc_main$E,
|
|
36884
|
+
SearchResultsProductRegularPrice: _sfc_main$D,
|
|
36885
|
+
SearchResultsProductPrice: _sfc_main$C,
|
|
36886
|
+
SearchResultsProductAddToCart: _sfc_main$B,
|
|
36887
|
+
SearchResultsProductCustom: _sfc_main$A,
|
|
36888
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$z,
|
|
36889
|
+
SearchResultsProductSingleStarRating: _sfc_main$y
|
|
36890
|
+
}
|
|
36891
|
+
};
|
|
36892
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36715
36893
|
__name: "SearchResultsProductCardElement",
|
|
36716
36894
|
props: {
|
|
36717
36895
|
item: {},
|
|
@@ -36789,13 +36967,13 @@ and ensure you are accounting for this risk.
|
|
|
36789
36967
|
};
|
|
36790
36968
|
}
|
|
36791
36969
|
}));
|
|
36792
|
-
const _hoisted_1$
|
|
36970
|
+
const _hoisted_1$u = ["href"];
|
|
36793
36971
|
const _hoisted_2$n = {
|
|
36794
36972
|
key: 0,
|
|
36795
36973
|
class: "lupa-out-of-stock"
|
|
36796
36974
|
};
|
|
36797
36975
|
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
36798
|
-
const _sfc_main$
|
|
36976
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
36799
36977
|
__name: "SearchResultsProductCard",
|
|
36800
36978
|
props: {
|
|
36801
36979
|
product: {},
|
|
@@ -36972,7 +37150,7 @@ and ensure you are accounting for this risk.
|
|
|
36972
37150
|
default: withCtx(() => {
|
|
36973
37151
|
var _a25;
|
|
36974
37152
|
return [
|
|
36975
|
-
createVNode(_sfc_main$
|
|
37153
|
+
createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36976
37154
|
createBaseVNode("div", {
|
|
36977
37155
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36978
37156
|
}, [
|
|
@@ -36982,7 +37160,7 @@ and ensure you are accounting for this risk.
|
|
|
36982
37160
|
onClick: handleNavigation
|
|
36983
37161
|
}, [
|
|
36984
37162
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36985
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37163
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
36986
37164
|
class: "lupa-search-results-product-element",
|
|
36987
37165
|
item: _ctx.product,
|
|
36988
37166
|
element,
|
|
@@ -36993,16 +37171,16 @@ and ensure you are accounting for this risk.
|
|
|
36993
37171
|
onProductEvent: handleProductEvent
|
|
36994
37172
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36995
37173
|
}), 128)),
|
|
36996
|
-
createVNode(_sfc_main$
|
|
37174
|
+
createVNode(_sfc_main$1k, {
|
|
36997
37175
|
options: badgesOptions.value,
|
|
36998
37176
|
position: "image",
|
|
36999
37177
|
class: "lupa-image-badges"
|
|
37000
37178
|
}, null, 8, ["options"]),
|
|
37001
37179
|
((_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$
|
|
37180
|
+
], 8, _hoisted_1$u),
|
|
37003
37181
|
createBaseVNode("div", _hoisted_3$f, [
|
|
37004
37182
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
37005
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37183
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37006
37184
|
class: "lupa-search-results-product-element",
|
|
37007
37185
|
item: _ctx.product,
|
|
37008
37186
|
element,
|
|
@@ -37020,7 +37198,7 @@ and ensure you are accounting for this risk.
|
|
|
37020
37198
|
class: normalizeClass("lupa-element-group-" + group)
|
|
37021
37199
|
}, [
|
|
37022
37200
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
37023
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37201
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37024
37202
|
class: "lupa-search-results-product-element",
|
|
37025
37203
|
item: _ctx.product,
|
|
37026
37204
|
element,
|
|
@@ -37041,7 +37219,7 @@ and ensure you are accounting for this risk.
|
|
|
37041
37219
|
};
|
|
37042
37220
|
}
|
|
37043
37221
|
});
|
|
37044
|
-
const _hoisted_1$
|
|
37222
|
+
const _hoisted_1$t = {
|
|
37045
37223
|
id: "lupa-search-results-similar-queries",
|
|
37046
37224
|
"data-cy": "lupa-search-results-similar-queries"
|
|
37047
37225
|
};
|
|
@@ -37057,7 +37235,7 @@ and ensure you are accounting for this risk.
|
|
|
37057
37235
|
class: "lupa-products",
|
|
37058
37236
|
"data-cy": "lupa-products"
|
|
37059
37237
|
};
|
|
37060
|
-
const _sfc_main$
|
|
37238
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
37061
37239
|
__name: "SearchResultsSimilarQueries",
|
|
37062
37240
|
props: {
|
|
37063
37241
|
labels: {},
|
|
@@ -37095,7 +37273,7 @@ and ensure you are accounting for this risk.
|
|
|
37095
37273
|
};
|
|
37096
37274
|
};
|
|
37097
37275
|
return (_ctx, _cache) => {
|
|
37098
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37276
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
37099
37277
|
createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
37100
37278
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
37101
37279
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -37115,7 +37293,7 @@ and ensure you are accounting for this risk.
|
|
|
37115
37293
|
]),
|
|
37116
37294
|
createBaseVNode("div", _hoisted_7, [
|
|
37117
37295
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
37118
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37296
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37119
37297
|
style: normalizeStyle(_ctx.columnSize),
|
|
37120
37298
|
key: getDocumentKey(index2, product),
|
|
37121
37299
|
product,
|
|
@@ -37130,7 +37308,7 @@ and ensure you are accounting for this risk.
|
|
|
37130
37308
|
};
|
|
37131
37309
|
}
|
|
37132
37310
|
});
|
|
37133
|
-
const _hoisted_1$
|
|
37311
|
+
const _hoisted_1$s = {
|
|
37134
37312
|
key: 0,
|
|
37135
37313
|
class: "lupa-results-additional-panel"
|
|
37136
37314
|
};
|
|
@@ -37138,7 +37316,7 @@ and ensure you are accounting for this risk.
|
|
|
37138
37316
|
class: "lupa-results-additional-panel-items",
|
|
37139
37317
|
"data-cy": "lupa-results-additional-panel-items"
|
|
37140
37318
|
};
|
|
37141
|
-
const _sfc_main$
|
|
37319
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
37142
37320
|
__name: "AdditionalPanel",
|
|
37143
37321
|
props: {
|
|
37144
37322
|
panel: {},
|
|
@@ -37211,10 +37389,10 @@ and ensure you are accounting for this risk.
|
|
|
37211
37389
|
handleQueryChange();
|
|
37212
37390
|
});
|
|
37213
37391
|
return (_ctx, _cache) => {
|
|
37214
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37392
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
37215
37393
|
createBaseVNode("div", _hoisted_2$l, [
|
|
37216
37394
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
37217
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37395
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37218
37396
|
key: index,
|
|
37219
37397
|
product: item,
|
|
37220
37398
|
options: _ctx.panel,
|
|
@@ -37232,11 +37410,11 @@ and ensure you are accounting for this risk.
|
|
|
37232
37410
|
};
|
|
37233
37411
|
}
|
|
37234
37412
|
});
|
|
37235
|
-
const _hoisted_1$
|
|
37413
|
+
const _hoisted_1$r = {
|
|
37236
37414
|
key: 0,
|
|
37237
37415
|
class: "lupa-results-additional-panels"
|
|
37238
37416
|
};
|
|
37239
|
-
const _sfc_main$
|
|
37417
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
37240
37418
|
__name: "AdditionalPanels",
|
|
37241
37419
|
props: {
|
|
37242
37420
|
options: {},
|
|
@@ -37253,9 +37431,9 @@ and ensure you are accounting for this risk.
|
|
|
37253
37431
|
return locationPanels.value.length > 0;
|
|
37254
37432
|
});
|
|
37255
37433
|
return (_ctx, _cache) => {
|
|
37256
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37434
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
37257
37435
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
37258
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37436
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
37259
37437
|
key: panel.queryKey,
|
|
37260
37438
|
panel,
|
|
37261
37439
|
options: _ctx.sdkOptions
|
|
@@ -37272,11 +37450,11 @@ and ensure you are accounting for this risk.
|
|
|
37272
37450
|
}
|
|
37273
37451
|
return target2;
|
|
37274
37452
|
};
|
|
37275
|
-
const _sfc_main$
|
|
37276
|
-
const _hoisted_1$
|
|
37453
|
+
const _sfc_main$s = {};
|
|
37454
|
+
const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
|
|
37277
37455
|
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
37278
37456
|
function _sfc_render(_ctx, _cache) {
|
|
37279
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37457
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
37280
37458
|
createBaseVNode("div", _hoisted_2$k, [
|
|
37281
37459
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
37282
37460
|
return createBaseVNode("div", { key: x });
|
|
@@ -37284,8 +37462,8 @@ and ensure you are accounting for this risk.
|
|
|
37284
37462
|
])
|
|
37285
37463
|
]);
|
|
37286
37464
|
}
|
|
37287
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37288
|
-
const _hoisted_1$
|
|
37465
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
37466
|
+
const _hoisted_1$p = {
|
|
37289
37467
|
id: "lupa-search-results-similar-results",
|
|
37290
37468
|
"data-cy": "lupa-search-results-similar-results"
|
|
37291
37469
|
};
|
|
@@ -37294,7 +37472,7 @@ and ensure you are accounting for this risk.
|
|
|
37294
37472
|
class: "lupa-products",
|
|
37295
37473
|
"data-cy": "lupa-products"
|
|
37296
37474
|
};
|
|
37297
|
-
const _sfc_main$
|
|
37475
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
37298
37476
|
__name: "SearchResultsSimilarResults",
|
|
37299
37477
|
props: {
|
|
37300
37478
|
columnSize: {},
|
|
@@ -37315,11 +37493,11 @@ and ensure you are accounting for this risk.
|
|
|
37315
37493
|
};
|
|
37316
37494
|
});
|
|
37317
37495
|
return (_ctx, _cache) => {
|
|
37318
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37496
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
37319
37497
|
createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
37320
37498
|
createBaseVNode("div", _hoisted_3$d, [
|
|
37321
37499
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
37322
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37500
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37323
37501
|
style: normalizeStyle(_ctx.columnSize),
|
|
37324
37502
|
key: getDocumentKey(index, product),
|
|
37325
37503
|
product,
|
|
@@ -37440,7 +37618,7 @@ and ensure you are accounting for this risk.
|
|
|
37440
37618
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
37441
37619
|
}
|
|
37442
37620
|
});
|
|
37443
|
-
const _hoisted_1$
|
|
37621
|
+
const _hoisted_1$o = { class: "lupa-related-query-item" };
|
|
37444
37622
|
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
37445
37623
|
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
37446
37624
|
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
@@ -37448,7 +37626,7 @@ and ensure you are accounting for this risk.
|
|
|
37448
37626
|
key: 0,
|
|
37449
37627
|
class: "lupa-related-query-count"
|
|
37450
37628
|
};
|
|
37451
|
-
const _sfc_main$
|
|
37629
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
37452
37630
|
__name: "RelatedQueryPanel",
|
|
37453
37631
|
props: {
|
|
37454
37632
|
query: {},
|
|
@@ -37545,9 +37723,9 @@ and ensure you are accounting for this risk.
|
|
|
37545
37723
|
});
|
|
37546
37724
|
return (_ctx, _cache) => {
|
|
37547
37725
|
var _a25;
|
|
37548
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37726
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
37549
37727
|
createBaseVNode("div", _hoisted_2$i, [
|
|
37550
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37728
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37551
37729
|
key: 0,
|
|
37552
37730
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37553
37731
|
"image-class": "lupa-related-query-image",
|
|
@@ -37563,7 +37741,7 @@ and ensure you are accounting for this risk.
|
|
|
37563
37741
|
};
|
|
37564
37742
|
}
|
|
37565
37743
|
});
|
|
37566
|
-
const _hoisted_1$
|
|
37744
|
+
const _hoisted_1$n = {
|
|
37567
37745
|
key: 0,
|
|
37568
37746
|
class: "lupa-related-queries"
|
|
37569
37747
|
};
|
|
@@ -37572,7 +37750,7 @@ and ensure you are accounting for this risk.
|
|
|
37572
37750
|
class: "lupa-related-queries-title"
|
|
37573
37751
|
};
|
|
37574
37752
|
const _hoisted_3$b = ["onClick"];
|
|
37575
|
-
const _sfc_main$
|
|
37753
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
37576
37754
|
__name: "RelatedQueries",
|
|
37577
37755
|
props: {
|
|
37578
37756
|
options: {}
|
|
@@ -37666,7 +37844,7 @@ and ensure you are accounting for this risk.
|
|
|
37666
37844
|
};
|
|
37667
37845
|
return (_ctx, _cache) => {
|
|
37668
37846
|
var _a25, _b25, _c, _d;
|
|
37669
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37847
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
37670
37848
|
((_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
37849
|
createBaseVNode("ul", null, [
|
|
37672
37850
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37677,7 +37855,7 @@ and ensure you are accounting for this risk.
|
|
|
37677
37855
|
createBaseVNode("a", {
|
|
37678
37856
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37679
37857
|
}, [
|
|
37680
|
-
createVNode(_sfc_main$
|
|
37858
|
+
createVNode(_sfc_main$q, {
|
|
37681
37859
|
"source-key": query.key,
|
|
37682
37860
|
options: _ctx.options,
|
|
37683
37861
|
query: query.value,
|
|
@@ -37721,13 +37899,13 @@ and ensure you are accounting for this risk.
|
|
|
37721
37899
|
}
|
|
37722
37900
|
return null;
|
|
37723
37901
|
};
|
|
37724
|
-
const _hoisted_1$
|
|
37902
|
+
const _hoisted_1$m = {
|
|
37725
37903
|
key: 0,
|
|
37726
37904
|
class: "lupa-redirection-suggestion"
|
|
37727
37905
|
};
|
|
37728
37906
|
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
37729
37907
|
const _hoisted_3$a = ["href"];
|
|
37730
|
-
const _sfc_main$
|
|
37908
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
37731
37909
|
__name: "RedirectionSuggestions",
|
|
37732
37910
|
props: {
|
|
37733
37911
|
options: {}
|
|
@@ -37750,7 +37928,7 @@ and ensure you are accounting for this risk.
|
|
|
37750
37928
|
)
|
|
37751
37929
|
);
|
|
37752
37930
|
return (_ctx, _cache) => {
|
|
37753
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37931
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
37754
37932
|
createBaseVNode("h4", _hoisted_2$g, [
|
|
37755
37933
|
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
37756
37934
|
])
|
|
@@ -37758,11 +37936,11 @@ and ensure you are accounting for this risk.
|
|
|
37758
37936
|
};
|
|
37759
37937
|
}
|
|
37760
37938
|
});
|
|
37761
|
-
const _hoisted_1$
|
|
37939
|
+
const _hoisted_1$l = {
|
|
37762
37940
|
key: 0,
|
|
37763
37941
|
class: "lupa-refiners-loading-notice"
|
|
37764
37942
|
};
|
|
37765
|
-
const _sfc_main$
|
|
37943
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37766
37944
|
__name: "RefinersLoadingNotice",
|
|
37767
37945
|
props: {
|
|
37768
37946
|
labels: {}
|
|
@@ -37773,14 +37951,14 @@ and ensure you are accounting for this risk.
|
|
|
37773
37951
|
const props = __props;
|
|
37774
37952
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37775
37953
|
return (_ctx, _cache) => {
|
|
37776
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37954
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
37777
37955
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37778
37956
|
createVNode(Spinner)
|
|
37779
37957
|
])) : createCommentVNode("", true);
|
|
37780
37958
|
};
|
|
37781
37959
|
}
|
|
37782
37960
|
});
|
|
37783
|
-
const _hoisted_1$
|
|
37961
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
37784
37962
|
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
37785
37963
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
37786
37964
|
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
@@ -37788,7 +37966,7 @@ and ensure you are accounting for this risk.
|
|
|
37788
37966
|
key: 0,
|
|
37789
37967
|
class: "lupa-related-query-count"
|
|
37790
37968
|
};
|
|
37791
|
-
const _sfc_main$
|
|
37969
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37792
37970
|
__name: "RelatedQueryPanelApi",
|
|
37793
37971
|
props: {
|
|
37794
37972
|
relatedQuery: {},
|
|
@@ -37820,9 +37998,9 @@ and ensure you are accounting for this risk.
|
|
|
37820
37998
|
});
|
|
37821
37999
|
return (_ctx, _cache) => {
|
|
37822
38000
|
var _a25;
|
|
37823
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
38001
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37824
38002
|
createBaseVNode("div", _hoisted_2$f, [
|
|
37825
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
38003
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37826
38004
|
key: 0,
|
|
37827
38005
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37828
38006
|
"image-class": "lupa-related-query-image",
|
|
@@ -37838,7 +38016,7 @@ and ensure you are accounting for this risk.
|
|
|
37838
38016
|
};
|
|
37839
38017
|
}
|
|
37840
38018
|
});
|
|
37841
|
-
const _hoisted_1$
|
|
38019
|
+
const _hoisted_1$j = {
|
|
37842
38020
|
key: 0,
|
|
37843
38021
|
class: "lupa-related-queries"
|
|
37844
38022
|
};
|
|
@@ -37847,7 +38025,7 @@ and ensure you are accounting for this risk.
|
|
|
37847
38025
|
class: "lupa-related-queries-title"
|
|
37848
38026
|
};
|
|
37849
38027
|
const _hoisted_3$8 = ["onClick"];
|
|
37850
|
-
const _sfc_main$
|
|
38028
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37851
38029
|
__name: "RelatedQueriesApi",
|
|
37852
38030
|
props: {
|
|
37853
38031
|
options: {}
|
|
@@ -37899,7 +38077,7 @@ and ensure you are accounting for this risk.
|
|
|
37899
38077
|
};
|
|
37900
38078
|
return (_ctx, _cache) => {
|
|
37901
38079
|
var _a25, _b25, _c, _d;
|
|
37902
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38080
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37903
38081
|
((_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
38082
|
createBaseVNode("ul", null, [
|
|
37905
38083
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37910,7 +38088,7 @@ and ensure you are accounting for this risk.
|
|
|
37910
38088
|
createBaseVNode("a", {
|
|
37911
38089
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37912
38090
|
}, [
|
|
37913
|
-
createVNode(_sfc_main$
|
|
38091
|
+
createVNode(_sfc_main$m, {
|
|
37914
38092
|
relatedQuery: query,
|
|
37915
38093
|
options: _ctx.options
|
|
37916
38094
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -37922,9 +38100,9 @@ and ensure you are accounting for this risk.
|
|
|
37922
38100
|
};
|
|
37923
38101
|
}
|
|
37924
38102
|
});
|
|
37925
|
-
const _hoisted_1$
|
|
38103
|
+
const _hoisted_1$i = { key: 0 };
|
|
37926
38104
|
const _hoisted_2$d = ["innerHTML"];
|
|
37927
|
-
const _sfc_main$
|
|
38105
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37928
38106
|
__name: "ZeroResults",
|
|
37929
38107
|
props: {
|
|
37930
38108
|
emptyResultsLabel: {},
|
|
@@ -37953,7 +38131,7 @@ and ensure you are accounting for this risk.
|
|
|
37953
38131
|
});
|
|
37954
38132
|
return (_ctx, _cache) => {
|
|
37955
38133
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37956
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38134
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37957
38135
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37958
38136
|
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37959
38137
|
])) : createCommentVNode("", true),
|
|
@@ -37965,6 +38143,31 @@ and ensure you are accounting for this risk.
|
|
|
37965
38143
|
};
|
|
37966
38144
|
}
|
|
37967
38145
|
});
|
|
38146
|
+
const _hoisted_1$h = {
|
|
38147
|
+
key: 1,
|
|
38148
|
+
class: "lupa-skeleton-grid"
|
|
38149
|
+
};
|
|
38150
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
38151
|
+
__name: "LoadingGrid",
|
|
38152
|
+
props: {
|
|
38153
|
+
style: {},
|
|
38154
|
+
enabled: { type: Boolean },
|
|
38155
|
+
loading: { type: Boolean },
|
|
38156
|
+
count: {}
|
|
38157
|
+
},
|
|
38158
|
+
setup(__props) {
|
|
38159
|
+
return (_ctx, _cache) => {
|
|
38160
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
38161
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
38162
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
38163
|
+
key: n,
|
|
38164
|
+
style: normalizeStyle(_ctx.style)
|
|
38165
|
+
}, null, 8, ["style"]);
|
|
38166
|
+
}), 128))
|
|
38167
|
+
]));
|
|
38168
|
+
};
|
|
38169
|
+
}
|
|
38170
|
+
});
|
|
37968
38171
|
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
37969
38172
|
const _hoisted_2$c = {
|
|
37970
38173
|
class: "lupa-products",
|
|
@@ -37976,12 +38179,12 @@ and ensure you are accounting for this risk.
|
|
|
37976
38179
|
"data-cy": "lupa-no-results-in-page"
|
|
37977
38180
|
};
|
|
37978
38181
|
const _hoisted_4$5 = {
|
|
37979
|
-
key:
|
|
38182
|
+
key: 3,
|
|
37980
38183
|
class: "lupa-empty-results",
|
|
37981
38184
|
"data-cy": "lupa-no-results"
|
|
37982
38185
|
};
|
|
37983
|
-
const _hoisted_5$1 = { key:
|
|
37984
|
-
const _hoisted_6 = { key:
|
|
38186
|
+
const _hoisted_5$1 = { key: 4 };
|
|
38187
|
+
const _hoisted_6 = { key: 5 };
|
|
37985
38188
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37986
38189
|
__name: "SearchResultsProducts",
|
|
37987
38190
|
props: {
|
|
@@ -38005,6 +38208,7 @@ and ensure you are accounting for this risk.
|
|
|
38005
38208
|
loading,
|
|
38006
38209
|
relatedQueriesApiEnabled
|
|
38007
38210
|
} = storeToRefs(searchResultStore);
|
|
38211
|
+
const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
|
|
38008
38212
|
const emit2 = __emit;
|
|
38009
38213
|
const productCardOptions = computed(() => {
|
|
38010
38214
|
return pick(props.options, [
|
|
@@ -38061,12 +38265,12 @@ and ensure you are accounting for this risk.
|
|
|
38061
38265
|
});
|
|
38062
38266
|
const columnSize = computed(() => {
|
|
38063
38267
|
if (props.ssr) {
|
|
38064
|
-
return
|
|
38268
|
+
return {};
|
|
38065
38269
|
}
|
|
38066
38270
|
if (layout.value === ResultsLayoutEnum.LIST) {
|
|
38067
|
-
return
|
|
38271
|
+
return { width: "100%" };
|
|
38068
38272
|
}
|
|
38069
|
-
return
|
|
38273
|
+
return { width: `${100 / columnCount.value}%` };
|
|
38070
38274
|
});
|
|
38071
38275
|
const hasSimilarQueries = computed(() => {
|
|
38072
38276
|
var _a25;
|
|
@@ -38102,40 +38306,50 @@ and ensure you are accounting for this risk.
|
|
|
38102
38306
|
emit2("filter");
|
|
38103
38307
|
};
|
|
38104
38308
|
return (_ctx, _cache) => {
|
|
38105
|
-
var _a25, _b25, _c;
|
|
38309
|
+
var _a25, _b25, _c, _d;
|
|
38106
38310
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
38107
|
-
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38311
|
+
!unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38108
38312
|
key: 0,
|
|
38109
38313
|
class: "lupa-loader"
|
|
38110
38314
|
})) : createCommentVNode("", true),
|
|
38111
|
-
createVNode(_sfc_main$
|
|
38315
|
+
createVNode(_sfc_main$o, {
|
|
38112
38316
|
options: _ctx.options.redirectionSuggestions
|
|
38113
38317
|
}, null, 8, ["options"]),
|
|
38114
|
-
createVNode(_sfc_main$
|
|
38318
|
+
createVNode(_sfc_main$t, {
|
|
38115
38319
|
options: _ctx.options,
|
|
38116
38320
|
location: "top",
|
|
38117
|
-
|
|
38118
|
-
}, null, 8, ["options", "
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38125
|
-
|
|
38126
|
-
|
|
38127
|
-
|
|
38128
|
-
|
|
38321
|
+
"sdk-options": _ctx.options.options
|
|
38322
|
+
}, null, 8, ["options", "sdk-options"]),
|
|
38323
|
+
createVNode(_sfc_main$18, {
|
|
38324
|
+
enabled: unref(relatedQueriesSkeletonEnabled),
|
|
38325
|
+
loading: unref(loading) || unref(loadingRelatedQueries),
|
|
38326
|
+
count: 1,
|
|
38327
|
+
class: "lupa-skeleton-related-queries"
|
|
38328
|
+
}, {
|
|
38329
|
+
default: withCtx(() => [
|
|
38330
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
|
|
38331
|
+
key: 0,
|
|
38332
|
+
options: _ctx.options.relatedQueries
|
|
38333
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38334
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
38335
|
+
key: 1,
|
|
38336
|
+
options: _ctx.options.relatedQueries
|
|
38337
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
38338
|
+
]),
|
|
38339
|
+
_: 1
|
|
38340
|
+
}, 8, ["enabled", "loading"]),
|
|
38341
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
38342
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
38129
38343
|
key: 0,
|
|
38130
38344
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
38131
38345
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38132
|
-
createVNode(_sfc_main$
|
|
38346
|
+
createVNode(_sfc_main$I, {
|
|
38133
38347
|
class: "lupa-toolbar-mobile",
|
|
38134
38348
|
options: _ctx.options,
|
|
38135
38349
|
"pagination-location": "top",
|
|
38136
38350
|
onFilter: filter
|
|
38137
38351
|
}, null, 8, ["options"]),
|
|
38138
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38352
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38139
38353
|
key: 1,
|
|
38140
38354
|
class: normalizeClass(currentFiltersClass.value),
|
|
38141
38355
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38143,13 +38357,13 @@ and ensure you are accounting for this risk.
|
|
|
38143
38357
|
expandable: !desktopFiltersExpanded.value
|
|
38144
38358
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
38145
38359
|
], 64)) : createCommentVNode("", true),
|
|
38146
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
38147
|
-
createVNode(_sfc_main$
|
|
38360
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
38361
|
+
createVNode(_sfc_main$I, {
|
|
38148
38362
|
class: "lupa-toolbar-top",
|
|
38149
38363
|
options: _ctx.options,
|
|
38150
38364
|
"pagination-location": "top"
|
|
38151
38365
|
}, null, 8, ["options"]),
|
|
38152
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38366
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38153
38367
|
key: 0,
|
|
38154
38368
|
class: normalizeClass(currentFiltersClass.value),
|
|
38155
38369
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38157,22 +38371,32 @@ and ensure you are accounting for this risk.
|
|
|
38157
38371
|
expandable: !desktopFiltersExpanded.value
|
|
38158
38372
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
38159
38373
|
createBaseVNode("div", _hoisted_2$c, [
|
|
38160
|
-
|
|
38161
|
-
|
|
38162
|
-
|
|
38163
|
-
|
|
38164
|
-
|
|
38165
|
-
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38171
|
-
|
|
38172
|
-
|
|
38173
|
-
|
|
38174
|
-
|
|
38175
|
-
|
|
38374
|
+
createVNode(_sfc_main$j, {
|
|
38375
|
+
enabled: unref(skeletonEnabled),
|
|
38376
|
+
loading: unref(loading),
|
|
38377
|
+
count: (_b25 = unref(limit)) != null ? _b25 : 12,
|
|
38378
|
+
style: normalizeStyle(columnSize.value)
|
|
38379
|
+
}, {
|
|
38380
|
+
default: withCtx(() => [
|
|
38381
|
+
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38382
|
+
return renderSlot(_ctx.$slots, "productCard", {
|
|
38383
|
+
key: getProductKeyAction(index, product),
|
|
38384
|
+
style: normalizeStyle(columnSize.value),
|
|
38385
|
+
product,
|
|
38386
|
+
options: productCardOptions.value
|
|
38387
|
+
});
|
|
38388
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38389
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
38390
|
+
key: getProductKeyAction(index, product),
|
|
38391
|
+
style: normalizeStyle(columnSize.value),
|
|
38392
|
+
product,
|
|
38393
|
+
options: productCardOptions.value,
|
|
38394
|
+
"analytics-metadata": clickMetadata.value
|
|
38395
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
38396
|
+
}), 128))
|
|
38397
|
+
]),
|
|
38398
|
+
_: 3
|
|
38399
|
+
}, 8, ["enabled", "loading", "count", "style"])
|
|
38176
38400
|
]),
|
|
38177
38401
|
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
38178
38402
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
@@ -38182,40 +38406,40 @@ and ensure you are accounting for this risk.
|
|
|
38182
38406
|
onClick: goToFirstPage
|
|
38183
38407
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
38184
38408
|
])) : createCommentVNode("", true),
|
|
38185
|
-
createVNode(_sfc_main$
|
|
38409
|
+
createVNode(_sfc_main$I, {
|
|
38186
38410
|
class: "lupa-toolbar-bottom",
|
|
38187
38411
|
options: _ctx.options,
|
|
38188
38412
|
"pagination-location": "bottom"
|
|
38189
38413
|
}, null, 8, ["options"]),
|
|
38190
|
-
createVNode(_sfc_main$
|
|
38414
|
+
createVNode(_sfc_main$t, {
|
|
38191
38415
|
options: _ctx.options,
|
|
38192
38416
|
location: "bottom",
|
|
38193
|
-
|
|
38194
|
-
}, null, 8, ["options", "
|
|
38417
|
+
"sdk-options": _ctx.options.options
|
|
38418
|
+
}, null, 8, ["options", "sdk-options"])
|
|
38195
38419
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
38196
|
-
createVNode(_sfc_main$
|
|
38197
|
-
|
|
38198
|
-
|
|
38199
|
-
|
|
38200
|
-
|
|
38201
|
-
}, null, 8, ["
|
|
38420
|
+
createVNode(_sfc_main$k, {
|
|
38421
|
+
"empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
|
|
38422
|
+
"current-query-text": unref(currentQueryText),
|
|
38423
|
+
"has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
|
|
38424
|
+
"zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
|
|
38425
|
+
}, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
|
|
38202
38426
|
])) : createCommentVNode("", true),
|
|
38203
|
-
createVNode(_sfc_main$
|
|
38427
|
+
createVNode(_sfc_main$n, {
|
|
38204
38428
|
labels: _ctx.options.labels
|
|
38205
38429
|
}, null, 8, ["labels"]),
|
|
38206
38430
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
38207
|
-
createVNode(_sfc_main$
|
|
38431
|
+
createVNode(_sfc_main$v, {
|
|
38208
38432
|
labels: similarQueriesLabels.value,
|
|
38209
|
-
|
|
38210
|
-
|
|
38211
|
-
}, null, 8, ["labels", "
|
|
38433
|
+
"column-size": columnSize.value,
|
|
38434
|
+
"product-card-options": productCardOptions.value
|
|
38435
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38212
38436
|
])) : createCommentVNode("", true),
|
|
38213
38437
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
38214
|
-
createVNode(_sfc_main$
|
|
38438
|
+
createVNode(_sfc_main$r, {
|
|
38215
38439
|
labels: similarResultsLabels.value,
|
|
38216
|
-
|
|
38217
|
-
|
|
38218
|
-
}, null, 8, ["labels", "
|
|
38440
|
+
"column-size": columnSize.value,
|
|
38441
|
+
"product-card-options": productCardOptions.value
|
|
38442
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38219
38443
|
])) : createCommentVNode("", true),
|
|
38220
38444
|
renderSlot(_ctx.$slots, "append")
|
|
38221
38445
|
]);
|
|
@@ -38290,7 +38514,7 @@ and ensure you are accounting for this risk.
|
|
|
38290
38514
|
])) : createCommentVNode("", true),
|
|
38291
38515
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
38292
38516
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
38293
|
-
return openBlock(), createBlock(_sfc_main$
|
|
38517
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
38294
38518
|
key: getCategoryKey(child),
|
|
38295
38519
|
item: child,
|
|
38296
38520
|
options: categoryOptions.value
|
|
@@ -38724,8 +38948,8 @@ and ensure you are accounting for this risk.
|
|
|
38724
38948
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
38725
38949
|
}, [
|
|
38726
38950
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38727
|
-
createVNode(_sfc_main$
|
|
38728
|
-
createVNode(_sfc_main$
|
|
38951
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38952
|
+
createVNode(_sfc_main$17, {
|
|
38729
38953
|
"show-summary": true,
|
|
38730
38954
|
options: _ctx.options,
|
|
38731
38955
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -38735,13 +38959,13 @@ and ensure you are accounting for this risk.
|
|
|
38735
38959
|
key: 1,
|
|
38736
38960
|
options: _ctx.options
|
|
38737
38961
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38738
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
38962
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38739
38963
|
key: 2,
|
|
38740
38964
|
options: _ctx.options.filters,
|
|
38741
38965
|
onFilter: handleParamsChange
|
|
38742
38966
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38743
38967
|
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
38744
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
38968
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
|
|
38745
38969
|
key: 4,
|
|
38746
38970
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
38747
38971
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -38750,7 +38974,7 @@ and ensure you are accounting for this risk.
|
|
|
38750
38974
|
id: "lupa-search-results",
|
|
38751
38975
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
38752
38976
|
}, [
|
|
38753
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38977
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38754
38978
|
key: 0,
|
|
38755
38979
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
38756
38980
|
ref_key: "searchResultsFilters",
|
|
@@ -38758,8 +38982,8 @@ and ensure you are accounting for this risk.
|
|
|
38758
38982
|
onFilter: handleParamsChange
|
|
38759
38983
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38760
38984
|
createBaseVNode("div", _hoisted_2$8, [
|
|
38761
|
-
createVNode(_sfc_main$
|
|
38762
|
-
createVNode(_sfc_main$
|
|
38985
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38986
|
+
createVNode(_sfc_main$17, {
|
|
38763
38987
|
options: _ctx.options,
|
|
38764
38988
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
38765
38989
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38775,8 +38999,8 @@ and ensure you are accounting for this risk.
|
|
|
38775
38999
|
}, 8, ["options", "ssr"])
|
|
38776
39000
|
])
|
|
38777
39001
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
38778
|
-
createVNode(_sfc_main$
|
|
38779
|
-
createVNode(_sfc_main$
|
|
39002
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
39003
|
+
createVNode(_sfc_main$17, {
|
|
38780
39004
|
options: _ctx.options,
|
|
38781
39005
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
38782
39006
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38784,7 +39008,7 @@ and ensure you are accounting for this risk.
|
|
|
38784
39008
|
id: "lupa-search-results",
|
|
38785
39009
|
class: normalizeClass(indicatorClasses.value)
|
|
38786
39010
|
}, [
|
|
38787
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
39011
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38788
39012
|
key: 0,
|
|
38789
39013
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
38790
39014
|
ref_key: "searchResultsFilters",
|
|
@@ -38935,7 +39159,7 @@ and ensure you are accounting for this risk.
|
|
|
38935
39159
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38936
39160
|
}, [
|
|
38937
39161
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38938
|
-
createVNode(_sfc_main$
|
|
39162
|
+
createVNode(_sfc_main$1d, {
|
|
38939
39163
|
options: fullSearchBoxOptions.value,
|
|
38940
39164
|
"is-search-container": true,
|
|
38941
39165
|
ref_key: "searchBox",
|
|
@@ -40523,7 +40747,7 @@ and ensure you are accounting for this risk.
|
|
|
40523
40747
|
key: getProductKeyAction(index, product)
|
|
40524
40748
|
}, {
|
|
40525
40749
|
default: withCtx(() => [
|
|
40526
|
-
createVNode(_sfc_main$
|
|
40750
|
+
createVNode(_sfc_main$w, {
|
|
40527
40751
|
product,
|
|
40528
40752
|
options: _ctx.options,
|
|
40529
40753
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -40538,7 +40762,7 @@ and ensure you are accounting for this risk.
|
|
|
40538
40762
|
_: 1
|
|
40539
40763
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
40540
40764
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
40541
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40765
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40542
40766
|
style: normalizeStyle(columnSize.value),
|
|
40543
40767
|
key: getProductKeyAction(index, product),
|
|
40544
40768
|
product,
|
|
@@ -40784,7 +41008,7 @@ and ensure you are accounting for this risk.
|
|
|
40784
41008
|
createBaseVNode("a", {
|
|
40785
41009
|
href: getLink(product)
|
|
40786
41010
|
}, [
|
|
40787
|
-
createVNode(_sfc_main$
|
|
41011
|
+
createVNode(_sfc_main$H, {
|
|
40788
41012
|
item: product,
|
|
40789
41013
|
options: image.value
|
|
40790
41014
|
}, null, 8, ["item", "options"])
|
|
@@ -40949,7 +41173,7 @@ and ensure you are accounting for this risk.
|
|
|
40949
41173
|
return (_ctx, _cache) => {
|
|
40950
41174
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40951
41175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40952
|
-
return openBlock(), createBlock(_sfc_main$
|
|
41176
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40953
41177
|
class: "lupa-chat-product-card",
|
|
40954
41178
|
key: getProductKeyAction(index, product),
|
|
40955
41179
|
product,
|
|
@@ -41145,7 +41369,7 @@ and ensure you are accounting for this risk.
|
|
|
41145
41369
|
key: 0,
|
|
41146
41370
|
class: "lupasearch-chat-content"
|
|
41147
41371
|
};
|
|
41148
|
-
const _sfc_main$
|
|
41372
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
41149
41373
|
__name: "ChatContainer",
|
|
41150
41374
|
props: {
|
|
41151
41375
|
options: {}
|
|
@@ -47169,7 +47393,7 @@ and ensure you are accounting for this risk.
|
|
|
47169
47393
|
};
|
|
47170
47394
|
__expose({ fetch: fetch2 });
|
|
47171
47395
|
return (_ctx, _cache) => {
|
|
47172
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
47396
|
+
return openBlock(), createBlock(unref(_sfc_main$1d), {
|
|
47173
47397
|
ref_key: "searchBox",
|
|
47174
47398
|
ref: searchBox2,
|
|
47175
47399
|
options: fullSearchBoxOptions.value
|
|
@@ -47830,7 +48054,7 @@ and ensure you are accounting for this risk.
|
|
|
47830
48054
|
const instance = createVue(
|
|
47831
48055
|
options.displayOptions.containerSelector,
|
|
47832
48056
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
47833
|
-
_sfc_main$
|
|
48057
|
+
_sfc_main$1L,
|
|
47834
48058
|
{
|
|
47835
48059
|
options
|
|
47836
48060
|
}
|