@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.mjs
CHANGED
|
@@ -18855,17 +18855,27 @@ const getPageCount = (total, limit) => {
|
|
|
18855
18855
|
const isObject$1 = (value) => {
|
|
18856
18856
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
18857
18857
|
};
|
|
18858
|
-
const
|
|
18859
|
-
const value = params.get(key);
|
|
18858
|
+
const decodeParam = (value) => {
|
|
18860
18859
|
if (!value) {
|
|
18861
18860
|
return void 0;
|
|
18862
18861
|
}
|
|
18862
|
+
try {
|
|
18863
|
+
if (!/%[0-9A-Fa-f]{2}/.test(value)) {
|
|
18864
|
+
return value;
|
|
18865
|
+
}
|
|
18866
|
+
} catch (e2) {
|
|
18867
|
+
return value;
|
|
18868
|
+
}
|
|
18863
18869
|
try {
|
|
18864
18870
|
return decodeURIComponent(value);
|
|
18865
18871
|
} catch (e2) {
|
|
18866
|
-
return
|
|
18872
|
+
return value;
|
|
18867
18873
|
}
|
|
18868
18874
|
};
|
|
18875
|
+
const parseParam = (key, params) => {
|
|
18876
|
+
const value = params.get(key);
|
|
18877
|
+
return decodeParam(value != null ? value : void 0);
|
|
18878
|
+
};
|
|
18869
18879
|
const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
18870
18880
|
const params = /* @__PURE__ */ Object.create({});
|
|
18871
18881
|
const keys = reverseKeyValue({
|
|
@@ -18883,7 +18893,7 @@ const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
|
18883
18893
|
const parseFacetKey = (key, searchParams) => {
|
|
18884
18894
|
var _a25, _b25, _c, _d;
|
|
18885
18895
|
if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
|
|
18886
|
-
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) =>
|
|
18896
|
+
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
|
|
18887
18897
|
}
|
|
18888
18898
|
if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
|
|
18889
18899
|
const range2 = searchParams.get(key);
|
|
@@ -18899,7 +18909,7 @@ const parseFacetKey = (key, searchParams) => {
|
|
|
18899
18909
|
if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
|
|
18900
18910
|
return {
|
|
18901
18911
|
level: 0,
|
|
18902
|
-
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) =>
|
|
18912
|
+
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
|
|
18903
18913
|
};
|
|
18904
18914
|
}
|
|
18905
18915
|
return [];
|
|
@@ -18926,15 +18936,15 @@ const parseParams = (getQueryParamName, searchParams) => {
|
|
|
18926
18936
|
}, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
|
|
18927
18937
|
return r;
|
|
18928
18938
|
};
|
|
18929
|
-
const appendParam = (url, { name, value }
|
|
18939
|
+
const appendParam = (url, { name, value }) => {
|
|
18930
18940
|
if (Array.isArray(value)) {
|
|
18931
18941
|
appendArrayParams(url, { name, value });
|
|
18932
18942
|
} else {
|
|
18933
|
-
appendSingleParam(url, { name, value }
|
|
18943
|
+
appendSingleParam(url, { name, value });
|
|
18934
18944
|
}
|
|
18935
18945
|
};
|
|
18936
|
-
const appendSingleParam = (url, param
|
|
18937
|
-
const valueToAppend =
|
|
18946
|
+
const appendSingleParam = (url, param) => {
|
|
18947
|
+
const valueToAppend = param.value;
|
|
18938
18948
|
if (url.searchParams.has(param.name)) {
|
|
18939
18949
|
url.searchParams.set(param.name, valueToAppend);
|
|
18940
18950
|
} else {
|
|
@@ -18943,7 +18953,7 @@ const appendSingleParam = (url, param, encode2 = true) => {
|
|
|
18943
18953
|
};
|
|
18944
18954
|
const appendArrayParams = (url, param) => {
|
|
18945
18955
|
url.searchParams.delete(param.name);
|
|
18946
|
-
param.value.forEach((v) => url.searchParams.append(param.name,
|
|
18956
|
+
param.value.forEach((v) => url.searchParams.append(param.name, v));
|
|
18947
18957
|
};
|
|
18948
18958
|
const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
|
|
18949
18959
|
if (paramsToRemove === "all") {
|
|
@@ -19303,13 +19313,12 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19303
19313
|
const getPageUrlWithNewParams = ({
|
|
19304
19314
|
params: newParams,
|
|
19305
19315
|
paramsToRemove,
|
|
19306
|
-
encode: encode2 = true,
|
|
19307
19316
|
searchResultsLink: searchResultsLink2
|
|
19308
19317
|
}) => {
|
|
19309
19318
|
const url = getPageUrl(searchResultsLink2);
|
|
19310
19319
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19311
19320
|
removeParams(url, paramsToRemove);
|
|
19312
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19321
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19313
19322
|
return url.search;
|
|
19314
19323
|
};
|
|
19315
19324
|
const removeParameters = ({
|
|
@@ -19391,7 +19400,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19391
19400
|
const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
|
|
19392
19401
|
redirectToResultsPage(
|
|
19393
19402
|
searchResultsLink.value,
|
|
19394
|
-
|
|
19403
|
+
searchText,
|
|
19395
19404
|
optionsStore.getQueryParamName,
|
|
19396
19405
|
facet,
|
|
19397
19406
|
routing
|
|
@@ -19401,7 +19410,6 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19401
19410
|
const appendParams = ({
|
|
19402
19411
|
params: newParams,
|
|
19403
19412
|
paramsToRemove,
|
|
19404
|
-
encode: encode2 = true,
|
|
19405
19413
|
save = true,
|
|
19406
19414
|
searchResultsLink: searchResultsLink2
|
|
19407
19415
|
}) => {
|
|
@@ -19411,7 +19419,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19411
19419
|
const url = getPageUrl(searchResultsLink2);
|
|
19412
19420
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19413
19421
|
removeParams(url, paramsToRemove);
|
|
19414
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19422
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19415
19423
|
navigate(url);
|
|
19416
19424
|
if (!save) {
|
|
19417
19425
|
return;
|
|
@@ -19708,7 +19716,7 @@ const getApiUrl = (environment, customBaseUrl) => {
|
|
|
19708
19716
|
}
|
|
19709
19717
|
return Env[environment] || Env["production"];
|
|
19710
19718
|
};
|
|
19711
|
-
const _sfc_main$
|
|
19719
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
19712
19720
|
__name: "VoiceSearchProgressCircle",
|
|
19713
19721
|
props: {
|
|
19714
19722
|
isRecording: { type: Boolean },
|
|
@@ -19921,15 +19929,15 @@ function useVoiceRecorder(options) {
|
|
|
19921
19929
|
closeSocket
|
|
19922
19930
|
};
|
|
19923
19931
|
}
|
|
19924
|
-
const _hoisted_1$
|
|
19932
|
+
const _hoisted_1$1q = {
|
|
19925
19933
|
key: 0,
|
|
19926
19934
|
class: "lupa-dialog-overlay"
|
|
19927
19935
|
};
|
|
19928
|
-
const _hoisted_2$
|
|
19936
|
+
const _hoisted_2$_ = { class: "lupa-dialog-content" };
|
|
19929
19937
|
const _hoisted_3$G = { class: "lupa-listening-text" };
|
|
19930
19938
|
const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
|
|
19931
19939
|
const _hoisted_5$l = ["aria-label"];
|
|
19932
|
-
const _sfc_main$
|
|
19940
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
19933
19941
|
__name: "VoiceSearchDialog",
|
|
19934
19942
|
props: {
|
|
19935
19943
|
isOpen: { type: Boolean },
|
|
@@ -20034,12 +20042,12 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20034
20042
|
return (_ctx, _cache) => {
|
|
20035
20043
|
var _a25, _b25;
|
|
20036
20044
|
return openBlock(), createElementBlock("div", null, [
|
|
20037
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20045
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
|
|
20038
20046
|
createBaseVNode("button", {
|
|
20039
20047
|
class: "lupa-dialog-box-close-button",
|
|
20040
20048
|
onClick: _cache[0] || (_cache[0] = () => emit2("close"))
|
|
20041
20049
|
}),
|
|
20042
|
-
createBaseVNode("div", _hoisted_2$
|
|
20050
|
+
createBaseVNode("div", _hoisted_2$_, [
|
|
20043
20051
|
createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
|
|
20044
20052
|
createBaseVNode("div", _hoisted_4$v, [
|
|
20045
20053
|
createBaseVNode("button", {
|
|
@@ -20048,7 +20056,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20048
20056
|
"aria-controls": "voice-search-microphone",
|
|
20049
20057
|
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
20050
20058
|
}, null, 10, _hoisted_5$l),
|
|
20051
|
-
createVNode(_sfc_main$
|
|
20059
|
+
createVNode(_sfc_main$1K, {
|
|
20052
20060
|
ref_key: "voiceSearchProgressBar",
|
|
20053
20061
|
ref: voiceSearchProgressBar,
|
|
20054
20062
|
class: "lupa-progress-circle",
|
|
@@ -20063,8 +20071,8 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20063
20071
|
};
|
|
20064
20072
|
}
|
|
20065
20073
|
});
|
|
20066
|
-
const _hoisted_1$
|
|
20067
|
-
const _hoisted_2$
|
|
20074
|
+
const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
|
|
20075
|
+
const _hoisted_2$Z = { id: "lupa-search-box-input" };
|
|
20068
20076
|
const _hoisted_3$F = ["value"];
|
|
20069
20077
|
const _hoisted_4$u = ["aria-label", "placeholder"];
|
|
20070
20078
|
const _hoisted_5$k = {
|
|
@@ -20073,7 +20081,7 @@ const _hoisted_5$k = {
|
|
|
20073
20081
|
};
|
|
20074
20082
|
const _hoisted_6$7 = { key: 2 };
|
|
20075
20083
|
const _hoisted_7$5 = ["aria-label"];
|
|
20076
|
-
const _sfc_main$
|
|
20084
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
20077
20085
|
__name: "SearchBoxInput",
|
|
20078
20086
|
props: {
|
|
20079
20087
|
options: {},
|
|
@@ -20209,7 +20217,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20209
20217
|
};
|
|
20210
20218
|
__expose({ focus });
|
|
20211
20219
|
return (_ctx, _cache) => {
|
|
20212
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20220
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
20213
20221
|
_ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
|
|
20214
20222
|
key: 0,
|
|
20215
20223
|
class: normalizeClass(["lupa-input-clear", [
|
|
@@ -20218,7 +20226,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20218
20226
|
]]),
|
|
20219
20227
|
onClick: clear
|
|
20220
20228
|
}, null, 2)) : createCommentVNode("", true),
|
|
20221
|
-
createBaseVNode("div", _hoisted_2$
|
|
20229
|
+
createBaseVNode("div", _hoisted_2$Z, [
|
|
20222
20230
|
createBaseVNode("input", {
|
|
20223
20231
|
class: "lupa-hint",
|
|
20224
20232
|
"aria-hidden": "true",
|
|
@@ -20272,7 +20280,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20272
20280
|
"aria-label": voiceSearchAriaLabel.value
|
|
20273
20281
|
}, null, 8, _hoisted_7$5)
|
|
20274
20282
|
])) : createCommentVNode("", true),
|
|
20275
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
20283
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
|
|
20276
20284
|
key: 3,
|
|
20277
20285
|
ref_key: "voiceDialogOverlay",
|
|
20278
20286
|
ref: voiceDialogOverlay,
|
|
@@ -20286,7 +20294,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20286
20294
|
};
|
|
20287
20295
|
}
|
|
20288
20296
|
});
|
|
20289
|
-
const _sfc_main$
|
|
20297
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
20290
20298
|
__name: "SearchBoxMoreResults",
|
|
20291
20299
|
props: {
|
|
20292
20300
|
labels: {},
|
|
@@ -20324,9 +20332,9 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
20324
20332
|
};
|
|
20325
20333
|
}
|
|
20326
20334
|
});
|
|
20327
|
-
const _hoisted_1$
|
|
20328
|
-
const _hoisted_2$
|
|
20329
|
-
const _sfc_main$
|
|
20335
|
+
const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
|
|
20336
|
+
const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
|
|
20337
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
20330
20338
|
__name: "SearchBoxHistoryItem",
|
|
20331
20339
|
props: {
|
|
20332
20340
|
item: {},
|
|
@@ -20343,8 +20351,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
20343
20351
|
emit2("click", { query: props.item });
|
|
20344
20352
|
};
|
|
20345
20353
|
return (_ctx, _cache) => {
|
|
20346
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20347
|
-
createBaseVNode("div", _hoisted_2$
|
|
20354
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
20355
|
+
createBaseVNode("div", _hoisted_2$Y, [
|
|
20348
20356
|
createBaseVNode("div", {
|
|
20349
20357
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
20350
20358
|
onClick: click2
|
|
@@ -20358,11 +20366,11 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
20358
20366
|
};
|
|
20359
20367
|
}
|
|
20360
20368
|
});
|
|
20361
|
-
const _hoisted_1$
|
|
20369
|
+
const _hoisted_1$1n = {
|
|
20362
20370
|
key: 0,
|
|
20363
20371
|
class: "lupa-search-box-history-panel"
|
|
20364
20372
|
};
|
|
20365
|
-
const _sfc_main$
|
|
20373
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
20366
20374
|
__name: "SearchBoxHistoryPanel",
|
|
20367
20375
|
props: {
|
|
20368
20376
|
options: {}
|
|
@@ -20413,9 +20421,9 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
20413
20421
|
}
|
|
20414
20422
|
};
|
|
20415
20423
|
return (_ctx, _cache) => {
|
|
20416
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20424
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
20417
20425
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
20418
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20426
|
+
return openBlock(), createBlock(_sfc_main$1G, {
|
|
20419
20427
|
key: item,
|
|
20420
20428
|
item,
|
|
20421
20429
|
highlighted: index === highlightIndex.value,
|
|
@@ -20431,12 +20439,12 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
20431
20439
|
};
|
|
20432
20440
|
}
|
|
20433
20441
|
});
|
|
20434
|
-
const _hoisted_1$
|
|
20435
|
-
const _hoisted_2$
|
|
20442
|
+
const _hoisted_1$1m = ["innerHTML"];
|
|
20443
|
+
const _hoisted_2$X = {
|
|
20436
20444
|
key: 1,
|
|
20437
20445
|
class: "lupa-search-box-no-results"
|
|
20438
20446
|
};
|
|
20439
|
-
const _sfc_main$
|
|
20447
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
20440
20448
|
__name: "SearchBoxNoResults",
|
|
20441
20449
|
props: {
|
|
20442
20450
|
options: {}
|
|
@@ -20455,7 +20463,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
20455
20463
|
key: 0,
|
|
20456
20464
|
class: "lupa-search-box-no-results",
|
|
20457
20465
|
innerHTML: customHtml.value
|
|
20458
|
-
}, null, 8, _hoisted_1$
|
|
20466
|
+
}, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
|
|
20459
20467
|
};
|
|
20460
20468
|
}
|
|
20461
20469
|
});
|
|
@@ -20487,8 +20495,8 @@ const generateGridTemplate = (elements) => {
|
|
|
20487
20495
|
}
|
|
20488
20496
|
return gridTemplate.join(" ");
|
|
20489
20497
|
};
|
|
20490
|
-
const _hoisted_1$
|
|
20491
|
-
const _hoisted_2$
|
|
20498
|
+
const _hoisted_1$1l = ["innerHTML"];
|
|
20499
|
+
const _hoisted_2$W = {
|
|
20492
20500
|
key: 1,
|
|
20493
20501
|
"data-cy": "lupa-suggestion-value",
|
|
20494
20502
|
class: "lupa-suggestion-value"
|
|
@@ -20506,7 +20514,7 @@ const _hoisted_5$j = {
|
|
|
20506
20514
|
class: "lupa-suggestion-facet-value",
|
|
20507
20515
|
"data-cy": "lupa-suggestion-facet-value"
|
|
20508
20516
|
};
|
|
20509
|
-
const _sfc_main$
|
|
20517
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
20510
20518
|
__name: "SearchBoxSuggestion",
|
|
20511
20519
|
props: {
|
|
20512
20520
|
suggestion: {},
|
|
@@ -20543,7 +20551,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
20543
20551
|
class: "lupa-suggestion-value",
|
|
20544
20552
|
"data-cy": "lupa-suggestion-value",
|
|
20545
20553
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20546
|
-
}, null, 8, _hoisted_1$
|
|
20554
|
+
}, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20547
20555
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
20548
20556
|
createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
20549
20557
|
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -20552,11 +20560,11 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
20552
20560
|
};
|
|
20553
20561
|
}
|
|
20554
20562
|
});
|
|
20555
|
-
const _hoisted_1$
|
|
20563
|
+
const _hoisted_1$1k = {
|
|
20556
20564
|
id: "lupa-search-box-suggestions",
|
|
20557
20565
|
"data-cy": "lupa-search-box-suggestions"
|
|
20558
20566
|
};
|
|
20559
|
-
const _sfc_main$
|
|
20567
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
20560
20568
|
__name: "SearchBoxSuggestions",
|
|
20561
20569
|
props: {
|
|
20562
20570
|
items: {},
|
|
@@ -20623,9 +20631,9 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
20623
20631
|
});
|
|
20624
20632
|
});
|
|
20625
20633
|
return (_ctx, _cache) => {
|
|
20626
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20634
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
20627
20635
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
20628
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20636
|
+
return openBlock(), createBlock(_sfc_main$1D, {
|
|
20629
20637
|
key: getSuggestionKey(item),
|
|
20630
20638
|
class: normalizeClass([
|
|
20631
20639
|
"lupa-suggestion",
|
|
@@ -20657,7 +20665,7 @@ const debounce = (func, timeout) => {
|
|
|
20657
20665
|
}, timeout);
|
|
20658
20666
|
};
|
|
20659
20667
|
};
|
|
20660
|
-
const _sfc_main$
|
|
20668
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
20661
20669
|
__name: "SearchBoxSuggestionsWrapper",
|
|
20662
20670
|
props: {
|
|
20663
20671
|
panel: {},
|
|
@@ -20700,7 +20708,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
20700
20708
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
20701
20709
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
20702
20710
|
return (_ctx, _cache) => {
|
|
20703
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20711
|
+
return openBlock(), createBlock(_sfc_main$1C, {
|
|
20704
20712
|
items: searchResult.value,
|
|
20705
20713
|
highlight: _ctx.panel.highlight,
|
|
20706
20714
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -29985,9 +29993,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
29985
29993
|
targetImage.src = placeholder;
|
|
29986
29994
|
}
|
|
29987
29995
|
};
|
|
29988
|
-
const _hoisted_1$
|
|
29989
|
-
const _hoisted_2$
|
|
29990
|
-
const _sfc_main$
|
|
29996
|
+
const _hoisted_1$1j = ["src"];
|
|
29997
|
+
const _hoisted_2$V = ["src"];
|
|
29998
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
29991
29999
|
__name: "ProductImage",
|
|
29992
30000
|
props: {
|
|
29993
30001
|
item: {},
|
|
@@ -30129,7 +30137,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
30129
30137
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
30130
30138
|
onError: replaceWithPlaceholder,
|
|
30131
30139
|
key: finalUrl.value
|
|
30132
|
-
}), null, 16, _hoisted_1$
|
|
30140
|
+
}), null, 16, _hoisted_1$1j))
|
|
30133
30141
|
]),
|
|
30134
30142
|
_: 1
|
|
30135
30143
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -30137,12 +30145,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
30137
30145
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
30138
30146
|
style: styleOverride.value,
|
|
30139
30147
|
src: finalMainImageUrl.value
|
|
30140
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
30148
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
|
|
30141
30149
|
], 38);
|
|
30142
30150
|
};
|
|
30143
30151
|
}
|
|
30144
30152
|
});
|
|
30145
|
-
const _sfc_main$
|
|
30153
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
30146
30154
|
__name: "SearchBoxProductImage",
|
|
30147
30155
|
props: {
|
|
30148
30156
|
item: {},
|
|
@@ -30150,7 +30158,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
30150
30158
|
},
|
|
30151
30159
|
setup(__props) {
|
|
30152
30160
|
return (_ctx, _cache) => {
|
|
30153
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30161
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
30154
30162
|
item: _ctx.item,
|
|
30155
30163
|
options: _ctx.options,
|
|
30156
30164
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -30159,12 +30167,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
30159
30167
|
};
|
|
30160
30168
|
}
|
|
30161
30169
|
});
|
|
30162
|
-
const _hoisted_1$
|
|
30163
|
-
const _hoisted_2$
|
|
30170
|
+
const _hoisted_1$1i = ["innerHTML"];
|
|
30171
|
+
const _hoisted_2$U = {
|
|
30164
30172
|
key: 1,
|
|
30165
30173
|
class: "lupa-search-box-product-title"
|
|
30166
30174
|
};
|
|
30167
|
-
const _sfc_main$
|
|
30175
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
30168
30176
|
__name: "SearchBoxProductTitle",
|
|
30169
30177
|
props: {
|
|
30170
30178
|
item: {},
|
|
@@ -30187,18 +30195,18 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
30187
30195
|
key: 0,
|
|
30188
30196
|
class: "lupa-search-box-product-title",
|
|
30189
30197
|
innerHTML: sanitizedTitle.value
|
|
30190
|
-
}, null, 8, _hoisted_1$
|
|
30198
|
+
}, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
30191
30199
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
30192
30200
|
]));
|
|
30193
30201
|
};
|
|
30194
30202
|
}
|
|
30195
30203
|
});
|
|
30196
|
-
const _hoisted_1$
|
|
30197
|
-
const _hoisted_2$
|
|
30204
|
+
const _hoisted_1$1h = ["innerHTML"];
|
|
30205
|
+
const _hoisted_2$T = {
|
|
30198
30206
|
key: 1,
|
|
30199
30207
|
class: "lupa-search-box-product-description"
|
|
30200
30208
|
};
|
|
30201
|
-
const _sfc_main$
|
|
30209
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
30202
30210
|
__name: "SearchBoxProductDescription",
|
|
30203
30211
|
props: {
|
|
30204
30212
|
item: {},
|
|
@@ -30221,12 +30229,12 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
30221
30229
|
key: 0,
|
|
30222
30230
|
class: "lupa-search-box-product-description",
|
|
30223
30231
|
innerHTML: sanitizedDescription.value
|
|
30224
|
-
}, null, 8, _hoisted_1$
|
|
30232
|
+
}, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
|
|
30225
30233
|
};
|
|
30226
30234
|
}
|
|
30227
30235
|
});
|
|
30228
|
-
const _hoisted_1$
|
|
30229
|
-
const _sfc_main$
|
|
30236
|
+
const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
|
|
30237
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
30230
30238
|
__name: "SearchBoxProductPrice",
|
|
30231
30239
|
props: {
|
|
30232
30240
|
item: {},
|
|
@@ -30248,13 +30256,13 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
30248
30256
|
);
|
|
30249
30257
|
});
|
|
30250
30258
|
return (_ctx, _cache) => {
|
|
30251
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30259
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
30252
30260
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
30253
30261
|
]);
|
|
30254
30262
|
};
|
|
30255
30263
|
}
|
|
30256
30264
|
});
|
|
30257
|
-
const _sfc_main$
|
|
30265
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
30258
30266
|
__name: "SearchBoxProductRegularPrice",
|
|
30259
30267
|
props: {
|
|
30260
30268
|
item: {},
|
|
@@ -30285,12 +30293,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
30285
30293
|
};
|
|
30286
30294
|
}
|
|
30287
30295
|
});
|
|
30288
|
-
const _hoisted_1$
|
|
30289
|
-
const _hoisted_2$
|
|
30296
|
+
const _hoisted_1$1f = ["innerHTML"];
|
|
30297
|
+
const _hoisted_2$S = { key: 0 };
|
|
30290
30298
|
const _hoisted_3$D = { key: 1 };
|
|
30291
30299
|
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
30292
30300
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
30293
|
-
const _sfc_main$
|
|
30301
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
30294
30302
|
__name: "SearchBoxProductCustom",
|
|
30295
30303
|
props: {
|
|
30296
30304
|
item: {},
|
|
@@ -30316,11 +30324,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
30316
30324
|
key: 0,
|
|
30317
30325
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
30318
30326
|
innerHTML: text.value
|
|
30319
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30327
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30320
30328
|
key: 1,
|
|
30321
30329
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30322
30330
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30323
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
30331
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
30324
30332
|
createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
30325
30333
|
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
30326
30334
|
]))
|
|
@@ -30328,8 +30336,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
30328
30336
|
};
|
|
30329
30337
|
}
|
|
30330
30338
|
});
|
|
30331
|
-
const _hoisted_1$
|
|
30332
|
-
const _sfc_main$
|
|
30339
|
+
const _hoisted_1$1e = ["innerHTML"];
|
|
30340
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
30333
30341
|
__name: "SearchBoxProductCustomHtml",
|
|
30334
30342
|
props: {
|
|
30335
30343
|
item: {},
|
|
@@ -30354,7 +30362,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
30354
30362
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30355
30363
|
class: className.value,
|
|
30356
30364
|
innerHTML: text.value
|
|
30357
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30365
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1e);
|
|
30358
30366
|
};
|
|
30359
30367
|
}
|
|
30360
30368
|
});
|
|
@@ -30693,6 +30701,7 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30693
30701
|
relatedQueriesApiEnabled,
|
|
30694
30702
|
lastResultsSource,
|
|
30695
30703
|
relatedQueryFacetKeys,
|
|
30704
|
+
loadingRelatedQueries,
|
|
30696
30705
|
setSidebarState,
|
|
30697
30706
|
queryFacet,
|
|
30698
30707
|
setLastRequestId,
|
|
@@ -30709,12 +30718,12 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30709
30718
|
setRelatedQueriesApiEnabled
|
|
30710
30719
|
};
|
|
30711
30720
|
});
|
|
30712
|
-
const _hoisted_1$
|
|
30713
|
-
const _hoisted_2$
|
|
30721
|
+
const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30722
|
+
const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
|
|
30714
30723
|
const _hoisted_3$C = ["disabled"];
|
|
30715
30724
|
const _hoisted_4$r = ["href"];
|
|
30716
30725
|
const _hoisted_5$h = ["disabled"];
|
|
30717
|
-
const _sfc_main$
|
|
30726
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
30718
30727
|
__name: "SearchBoxProductAddToCart",
|
|
30719
30728
|
props: {
|
|
30720
30729
|
item: {},
|
|
@@ -30760,8 +30769,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
30760
30769
|
return Boolean(props.link && props.options.link);
|
|
30761
30770
|
});
|
|
30762
30771
|
return (_ctx, _cache) => {
|
|
30763
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30764
|
-
createBaseVNode("div", _hoisted_2$
|
|
30772
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
30773
|
+
createBaseVNode("div", _hoisted_2$R, [
|
|
30765
30774
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30766
30775
|
key: 0,
|
|
30767
30776
|
class: addToCartButtonClass.value,
|
|
@@ -30782,23 +30791,23 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
30782
30791
|
};
|
|
30783
30792
|
}
|
|
30784
30793
|
});
|
|
30785
|
-
const _hoisted_1$
|
|
30794
|
+
const _hoisted_1$1c = {
|
|
30786
30795
|
key: 1,
|
|
30787
30796
|
class: "lupa-search-box-element-badge-wrapper"
|
|
30788
30797
|
};
|
|
30789
30798
|
const __default__$4 = {
|
|
30790
30799
|
components: {
|
|
30791
|
-
SearchBoxProductImage: _sfc_main$
|
|
30792
|
-
SearchBoxProductTitle: _sfc_main$
|
|
30793
|
-
SearchBoxProductDescription: _sfc_main$
|
|
30794
|
-
SearchBoxProductPrice: _sfc_main$
|
|
30795
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
30796
|
-
SearchBoxProductCustom: _sfc_main$
|
|
30797
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
30798
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
30800
|
+
SearchBoxProductImage: _sfc_main$1z,
|
|
30801
|
+
SearchBoxProductTitle: _sfc_main$1y,
|
|
30802
|
+
SearchBoxProductDescription: _sfc_main$1x,
|
|
30803
|
+
SearchBoxProductPrice: _sfc_main$1w,
|
|
30804
|
+
SearchBoxProductRegularPrice: _sfc_main$1v,
|
|
30805
|
+
SearchBoxProductCustom: _sfc_main$1u,
|
|
30806
|
+
SearchBoxProductCustomHtml: _sfc_main$1t,
|
|
30807
|
+
SearchBoxProductAddToCart: _sfc_main$1s
|
|
30799
30808
|
}
|
|
30800
30809
|
};
|
|
30801
|
-
const _sfc_main$
|
|
30810
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
30802
30811
|
__name: "SearchBoxProductElement",
|
|
30803
30812
|
props: {
|
|
30804
30813
|
item: {},
|
|
@@ -30870,7 +30879,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30870
30879
|
"dynamic-attributes": dynamicAttributes.value,
|
|
30871
30880
|
link: _ctx.link
|
|
30872
30881
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
30873
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30882
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
30874
30883
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
30875
30884
|
key: 0,
|
|
30876
30885
|
item: enhancedItem.value,
|
|
@@ -30885,14 +30894,14 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30885
30894
|
};
|
|
30886
30895
|
}
|
|
30887
30896
|
}));
|
|
30888
|
-
const _hoisted_1$
|
|
30889
|
-
const _hoisted_2$
|
|
30897
|
+
const _hoisted_1$1b = { class: "lupa-badge-title" };
|
|
30898
|
+
const _hoisted_2$Q = ["src"];
|
|
30890
30899
|
const _hoisted_3$B = { key: 1 };
|
|
30891
30900
|
const _hoisted_4$q = {
|
|
30892
30901
|
key: 0,
|
|
30893
30902
|
class: "lupa-badge-full-text"
|
|
30894
30903
|
};
|
|
30895
|
-
const _sfc_main$
|
|
30904
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
30896
30905
|
__name: "SearchResultGeneratedBadge",
|
|
30897
30906
|
props: {
|
|
30898
30907
|
options: {},
|
|
@@ -30925,11 +30934,11 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
30925
30934
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
30926
30935
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
30927
30936
|
}, [
|
|
30928
|
-
createBaseVNode("span", _hoisted_1$
|
|
30937
|
+
createBaseVNode("span", _hoisted_1$1b, [
|
|
30929
30938
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
30930
30939
|
key: 0,
|
|
30931
30940
|
src: image.value
|
|
30932
|
-
}, null, 8, _hoisted_2$
|
|
30941
|
+
}, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
|
|
30933
30942
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30934
30943
|
]),
|
|
30935
30944
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -30937,8 +30946,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
30937
30946
|
};
|
|
30938
30947
|
}
|
|
30939
30948
|
});
|
|
30940
|
-
const _hoisted_1$
|
|
30941
|
-
const _sfc_main$
|
|
30949
|
+
const _hoisted_1$1a = { class: "lupa-generated-badges" };
|
|
30950
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
30942
30951
|
__name: "SearchResultGeneratedBadges",
|
|
30943
30952
|
props: {
|
|
30944
30953
|
options: {}
|
|
@@ -30964,9 +30973,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30964
30973
|
})).filter((b) => Boolean(b.id));
|
|
30965
30974
|
});
|
|
30966
30975
|
return (_ctx, _cache) => {
|
|
30967
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30976
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
30968
30977
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
30969
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30978
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
30970
30979
|
key: badge.id,
|
|
30971
30980
|
badge,
|
|
30972
30981
|
options: _ctx.options
|
|
@@ -30976,8 +30985,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30976
30985
|
};
|
|
30977
30986
|
}
|
|
30978
30987
|
});
|
|
30979
|
-
const _hoisted_1$
|
|
30980
|
-
const _sfc_main$
|
|
30988
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
30989
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
30981
30990
|
__name: "CustomBadge",
|
|
30982
30991
|
props: {
|
|
30983
30992
|
badge: {}
|
|
@@ -30998,12 +31007,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
30998
31007
|
return openBlock(), createElementBlock("div", {
|
|
30999
31008
|
class: normalizeClass(className.value),
|
|
31000
31009
|
innerHTML: text.value
|
|
31001
|
-
}, null, 10, _hoisted_1$
|
|
31010
|
+
}, null, 10, _hoisted_1$19);
|
|
31002
31011
|
};
|
|
31003
31012
|
}
|
|
31004
31013
|
});
|
|
31005
|
-
const _hoisted_1$
|
|
31006
|
-
const _sfc_main$
|
|
31014
|
+
const _hoisted_1$18 = { class: "lupa-text-badges" };
|
|
31015
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
31007
31016
|
__name: "TextBadge",
|
|
31008
31017
|
props: {
|
|
31009
31018
|
badge: {}
|
|
@@ -31017,7 +31026,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
31017
31026
|
return badges.value.slice(0, props.badge.maxItems);
|
|
31018
31027
|
});
|
|
31019
31028
|
return (_ctx, _cache) => {
|
|
31020
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31029
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
31021
31030
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31022
31031
|
return openBlock(), createElementBlock("div", {
|
|
31023
31032
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -31028,9 +31037,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
31028
31037
|
};
|
|
31029
31038
|
}
|
|
31030
31039
|
});
|
|
31031
|
-
const _hoisted_1$
|
|
31032
|
-
const _hoisted_2$
|
|
31033
|
-
const _sfc_main$
|
|
31040
|
+
const _hoisted_1$17 = { class: "lupa-image-badges" };
|
|
31041
|
+
const _hoisted_2$P = ["src"];
|
|
31042
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
31034
31043
|
__name: "ImageBadge",
|
|
31035
31044
|
props: {
|
|
31036
31045
|
badge: {}
|
|
@@ -31050,7 +31059,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
31050
31059
|
return `${props.badge.rootImageUrl}${src}`;
|
|
31051
31060
|
};
|
|
31052
31061
|
return (_ctx, _cache) => {
|
|
31053
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31062
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
31054
31063
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31055
31064
|
return openBlock(), createElementBlock("div", {
|
|
31056
31065
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -31058,14 +31067,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
31058
31067
|
}, [
|
|
31059
31068
|
createBaseVNode("img", {
|
|
31060
31069
|
src: getImageUrl(item)
|
|
31061
|
-
}, null, 8, _hoisted_2$
|
|
31070
|
+
}, null, 8, _hoisted_2$P)
|
|
31062
31071
|
]);
|
|
31063
31072
|
}), 128))
|
|
31064
31073
|
]);
|
|
31065
31074
|
};
|
|
31066
31075
|
}
|
|
31067
31076
|
});
|
|
31068
|
-
const _sfc_main$
|
|
31077
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
31069
31078
|
__name: "DiscountBadge",
|
|
31070
31079
|
props: {
|
|
31071
31080
|
badge: {}
|
|
@@ -31127,16 +31136,16 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
31127
31136
|
};
|
|
31128
31137
|
}
|
|
31129
31138
|
});
|
|
31130
|
-
const _hoisted_1$
|
|
31139
|
+
const _hoisted_1$16 = { id: "lupa-search-results-badges" };
|
|
31131
31140
|
const __default__$3 = {
|
|
31132
31141
|
components: {
|
|
31133
|
-
CustomBadge: _sfc_main$
|
|
31134
|
-
TextBadge: _sfc_main$
|
|
31135
|
-
ImageBadge: _sfc_main$
|
|
31136
|
-
DiscountBadge: _sfc_main$
|
|
31142
|
+
CustomBadge: _sfc_main$1o,
|
|
31143
|
+
TextBadge: _sfc_main$1n,
|
|
31144
|
+
ImageBadge: _sfc_main$1m,
|
|
31145
|
+
DiscountBadge: _sfc_main$1l
|
|
31137
31146
|
}
|
|
31138
31147
|
};
|
|
31139
|
-
const _sfc_main$
|
|
31148
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
31140
31149
|
__name: "SearchResultsBadgeWrapper",
|
|
31141
31150
|
props: {
|
|
31142
31151
|
position: {},
|
|
@@ -31199,7 +31208,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31199
31208
|
}
|
|
31200
31209
|
};
|
|
31201
31210
|
return (_ctx, _cache) => {
|
|
31202
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31211
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
31203
31212
|
createBaseVNode("div", {
|
|
31204
31213
|
id: "lupa-badges",
|
|
31205
31214
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -31210,7 +31219,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31210
31219
|
badge
|
|
31211
31220
|
}, null, 8, ["badge"]);
|
|
31212
31221
|
}), 128)),
|
|
31213
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
31222
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
31214
31223
|
key: 0,
|
|
31215
31224
|
options: _ctx.options
|
|
31216
31225
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -31219,13 +31228,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31219
31228
|
};
|
|
31220
31229
|
}
|
|
31221
31230
|
}));
|
|
31222
|
-
const _hoisted_1$
|
|
31223
|
-
const _hoisted_2$
|
|
31231
|
+
const _hoisted_1$15 = ["href"];
|
|
31232
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
|
|
31224
31233
|
const _hoisted_3$A = {
|
|
31225
31234
|
key: 0,
|
|
31226
31235
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
31227
31236
|
};
|
|
31228
|
-
const _sfc_main$
|
|
31237
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
31229
31238
|
__name: "SearchBoxProduct",
|
|
31230
31239
|
props: {
|
|
31231
31240
|
item: {},
|
|
@@ -31331,7 +31340,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31331
31340
|
style: normalizeStyle(imageStyleOverride.value)
|
|
31332
31341
|
}, [
|
|
31333
31342
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
31334
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31343
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31335
31344
|
class: "lupa-search-box-product-element",
|
|
31336
31345
|
key: element.key,
|
|
31337
31346
|
item: _ctx.item,
|
|
@@ -31341,10 +31350,10 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31341
31350
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
31342
31351
|
}), 128))
|
|
31343
31352
|
], 4),
|
|
31344
|
-
createBaseVNode("div", _hoisted_2$
|
|
31353
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
31345
31354
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
31346
31355
|
var _a25;
|
|
31347
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31356
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31348
31357
|
class: "lupa-search-box-product-element",
|
|
31349
31358
|
key: element.key,
|
|
31350
31359
|
item: _ctx.item,
|
|
@@ -31355,7 +31364,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31355
31364
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
31356
31365
|
name: "badges",
|
|
31357
31366
|
fn: withCtx(() => [
|
|
31358
|
-
createVNode(_sfc_main$
|
|
31367
|
+
createVNode(_sfc_main$1k, {
|
|
31359
31368
|
options: badgeOptions.value,
|
|
31360
31369
|
position: "card"
|
|
31361
31370
|
}, null, 8, ["options"])
|
|
@@ -31371,7 +31380,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31371
31380
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
31372
31381
|
}, [
|
|
31373
31382
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
31374
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31383
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31375
31384
|
class: "lupa-search-box-product-element",
|
|
31376
31385
|
key: element.key,
|
|
31377
31386
|
item: _ctx.item,
|
|
@@ -31384,7 +31393,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31384
31393
|
], 2);
|
|
31385
31394
|
}), 128)),
|
|
31386
31395
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
31387
|
-
createVNode(_sfc_main$
|
|
31396
|
+
createVNode(_sfc_main$1r, {
|
|
31388
31397
|
class: "lupa-search-box-product-element",
|
|
31389
31398
|
item: _ctx.item,
|
|
31390
31399
|
element: addToCartElement.value,
|
|
@@ -31393,7 +31402,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31393
31402
|
isInStock: isInStock.value
|
|
31394
31403
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
31395
31404
|
])) : createCommentVNode("", true)
|
|
31396
|
-
], 16, _hoisted_1$
|
|
31405
|
+
], 16, _hoisted_1$15);
|
|
31397
31406
|
};
|
|
31398
31407
|
}
|
|
31399
31408
|
});
|
|
@@ -31465,8 +31474,8 @@ const useTrackingStore = /* @__PURE__ */ defineStore("tracking", () => {
|
|
|
31465
31474
|
};
|
|
31466
31475
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
31467
31476
|
});
|
|
31468
|
-
const _hoisted_1$
|
|
31469
|
-
const _sfc_main$
|
|
31477
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
31478
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
31470
31479
|
__name: "SearchBoxProducts",
|
|
31471
31480
|
props: {
|
|
31472
31481
|
items: {},
|
|
@@ -31577,7 +31586,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31577
31586
|
itemClicked: handleProductClick
|
|
31578
31587
|
});
|
|
31579
31588
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
|
|
31580
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31589
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
31581
31590
|
key: index,
|
|
31582
31591
|
item,
|
|
31583
31592
|
panelOptions: _ctx.panelOptions,
|
|
@@ -31590,7 +31599,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31590
31599
|
hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
|
|
31591
31600
|
key: 2,
|
|
31592
31601
|
innerHTML: _ctx.panelOptions.appendCustomHtml
|
|
31593
|
-
}, null, 8, _hoisted_1$
|
|
31602
|
+
}, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
|
|
31594
31603
|
showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
|
|
31595
31604
|
key: 3,
|
|
31596
31605
|
class: "lupa-search-box-expand",
|
|
@@ -31601,9 +31610,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31601
31610
|
};
|
|
31602
31611
|
}
|
|
31603
31612
|
});
|
|
31604
|
-
const _hoisted_1$
|
|
31605
|
-
const _hoisted_2$
|
|
31606
|
-
const _sfc_main$
|
|
31613
|
+
const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
31614
|
+
const _hoisted_2$N = { key: 0 };
|
|
31615
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
31607
31616
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
31608
31617
|
props: {
|
|
31609
31618
|
options: {},
|
|
@@ -31634,13 +31643,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
31634
31643
|
emit2("goToResults");
|
|
31635
31644
|
};
|
|
31636
31645
|
return (_ctx, _cache) => {
|
|
31637
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31646
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
31638
31647
|
createBaseVNode("button", {
|
|
31639
31648
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
31640
31649
|
onClick: goToResults
|
|
31641
31650
|
}, [
|
|
31642
31651
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
31643
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31652
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
31644
31653
|
])
|
|
31645
31654
|
]);
|
|
31646
31655
|
};
|
|
@@ -31736,7 +31745,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
31736
31745
|
}
|
|
31737
31746
|
return parsedObject;
|
|
31738
31747
|
};
|
|
31739
|
-
const _sfc_main$
|
|
31748
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
31740
31749
|
__name: "SearchBoxProductsWrapper",
|
|
31741
31750
|
props: {
|
|
31742
31751
|
panel: {},
|
|
@@ -31807,7 +31816,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31807
31816
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
31808
31817
|
return (_ctx, _cache) => {
|
|
31809
31818
|
var _a25, _b25;
|
|
31810
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31819
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31811
31820
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31812
31821
|
panelOptions: _ctx.panel,
|
|
31813
31822
|
labels: _ctx.labels,
|
|
@@ -31817,7 +31826,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31817
31826
|
default: withCtx(() => {
|
|
31818
31827
|
var _a26;
|
|
31819
31828
|
return [
|
|
31820
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
31829
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
|
|
31821
31830
|
key: 0,
|
|
31822
31831
|
options: _ctx.searchBoxOptions,
|
|
31823
31832
|
panel: _ctx.panel,
|
|
@@ -31838,7 +31847,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31838
31847
|
};
|
|
31839
31848
|
}
|
|
31840
31849
|
});
|
|
31841
|
-
const _sfc_main$
|
|
31850
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
31842
31851
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
31843
31852
|
props: {
|
|
31844
31853
|
panel: {},
|
|
@@ -31910,7 +31919,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
31910
31919
|
});
|
|
31911
31920
|
return (_ctx, _cache) => {
|
|
31912
31921
|
var _a25, _b25;
|
|
31913
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31922
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31914
31923
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31915
31924
|
panelOptions: documentPanelOptions.value,
|
|
31916
31925
|
labels: _ctx.labels,
|
|
@@ -31928,8 +31937,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
31928
31937
|
};
|
|
31929
31938
|
}
|
|
31930
31939
|
});
|
|
31931
|
-
const _hoisted_1$
|
|
31932
|
-
const _hoisted_2$
|
|
31940
|
+
const _hoisted_1$12 = ["data-cy"];
|
|
31941
|
+
const _hoisted_2$M = {
|
|
31933
31942
|
key: 0,
|
|
31934
31943
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31935
31944
|
};
|
|
@@ -31939,12 +31948,12 @@ const _hoisted_3$z = {
|
|
|
31939
31948
|
};
|
|
31940
31949
|
const __default__$2 = {
|
|
31941
31950
|
components: {
|
|
31942
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
31943
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
31944
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
31951
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1B,
|
|
31952
|
+
SearchBoxProductsWrapper: _sfc_main$1g,
|
|
31953
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$1f
|
|
31945
31954
|
}
|
|
31946
31955
|
};
|
|
31947
|
-
const _sfc_main$
|
|
31956
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
31948
31957
|
__name: "SearchBoxMainPanel",
|
|
31949
31958
|
props: {
|
|
31950
31959
|
options: {},
|
|
@@ -32135,7 +32144,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32135
32144
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
32136
32145
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
32137
32146
|
}, [
|
|
32138
|
-
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32147
|
+
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
32139
32148
|
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
32140
32149
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
32141
32150
|
key: 2,
|
|
@@ -32158,14 +32167,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32158
32167
|
key: "0"
|
|
32159
32168
|
} : void 0
|
|
32160
32169
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
32161
|
-
], 14, _hoisted_1$
|
|
32170
|
+
], 14, _hoisted_1$12);
|
|
32162
32171
|
}), 128))
|
|
32163
32172
|
], 4),
|
|
32164
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
32173
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
|
|
32165
32174
|
key: 1,
|
|
32166
32175
|
options: _ctx.options
|
|
32167
32176
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32168
|
-
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
32177
|
+
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
32169
32178
|
key: 2,
|
|
32170
32179
|
labels: labels.value,
|
|
32171
32180
|
options: _ctx.options,
|
|
@@ -32176,7 +32185,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32176
32185
|
id: "lupa-search-box-panel",
|
|
32177
32186
|
class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
|
|
32178
32187
|
}, [
|
|
32179
|
-
createVNode(_sfc_main$
|
|
32188
|
+
createVNode(_sfc_main$1F, {
|
|
32180
32189
|
options: _ctx.options.history,
|
|
32181
32190
|
history: history.value,
|
|
32182
32191
|
onGoToResults: handleGoToResults,
|
|
@@ -32201,8 +32210,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
32201
32210
|
const elements = getElements(triggers);
|
|
32202
32211
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
32203
32212
|
};
|
|
32204
|
-
const _hoisted_1
|
|
32205
|
-
const _sfc_main$
|
|
32213
|
+
const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
|
|
32214
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
32206
32215
|
__name: "SearchBox",
|
|
32207
32216
|
props: {
|
|
32208
32217
|
options: {},
|
|
@@ -32541,8 +32550,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
32541
32550
|
id: "lupa-search-box",
|
|
32542
32551
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
32543
32552
|
}, [
|
|
32544
|
-
createBaseVNode("div", _hoisted_1
|
|
32545
|
-
createVNode(_sfc_main$
|
|
32553
|
+
createBaseVNode("div", _hoisted_1$11, [
|
|
32554
|
+
createVNode(_sfc_main$1I, {
|
|
32546
32555
|
options: inputOptions.value,
|
|
32547
32556
|
suggestedValue: suggestedValue.value,
|
|
32548
32557
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -32555,7 +32564,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
32555
32564
|
onSearch: handleSearch,
|
|
32556
32565
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
32557
32566
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
32558
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
32567
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
32559
32568
|
key: 0,
|
|
32560
32569
|
options: panelOptions.value,
|
|
32561
32570
|
inputValue: inputValue.value,
|
|
@@ -32646,11 +32655,11 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
32646
32655
|
}
|
|
32647
32656
|
return searchParams;
|
|
32648
32657
|
};
|
|
32649
|
-
const _hoisted_1$
|
|
32658
|
+
const _hoisted_1$10 = {
|
|
32650
32659
|
key: 0,
|
|
32651
32660
|
id: "lupa-search-results-did-you-mean"
|
|
32652
32661
|
};
|
|
32653
|
-
const _hoisted_2$
|
|
32662
|
+
const _hoisted_2$L = {
|
|
32654
32663
|
key: 0,
|
|
32655
32664
|
"data-cy": "suggested-search-text-label"
|
|
32656
32665
|
};
|
|
@@ -32659,7 +32668,7 @@ const _hoisted_3$y = {
|
|
|
32659
32668
|
"data-cy": "did-you-mean-label"
|
|
32660
32669
|
};
|
|
32661
32670
|
const _hoisted_4$p = { key: 1 };
|
|
32662
|
-
const _sfc_main$
|
|
32671
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
32663
32672
|
__name: "SearchResultsDidYouMean",
|
|
32664
32673
|
props: {
|
|
32665
32674
|
labels: {}
|
|
@@ -32691,8 +32700,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
32691
32700
|
paramStore.goToResults({ searchText, facet });
|
|
32692
32701
|
};
|
|
32693
32702
|
return (_ctx, _cache) => {
|
|
32694
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32695
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32703
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
32704
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
32696
32705
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
32697
32706
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32698
32707
|
createBaseVNode("span", {
|
|
@@ -32717,12 +32726,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
32717
32726
|
};
|
|
32718
32727
|
}
|
|
32719
32728
|
});
|
|
32720
|
-
const _hoisted_1
|
|
32729
|
+
const _hoisted_1$$ = {
|
|
32721
32730
|
key: 0,
|
|
32722
32731
|
class: "lupa-search-results-summary"
|
|
32723
32732
|
};
|
|
32724
|
-
const _hoisted_2$
|
|
32725
|
-
const _sfc_main$
|
|
32733
|
+
const _hoisted_2$K = ["innerHTML"];
|
|
32734
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
32726
32735
|
__name: "SearchResultsSummary",
|
|
32727
32736
|
props: {
|
|
32728
32737
|
label: {},
|
|
@@ -32737,8 +32746,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
32737
32746
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
32738
32747
|
});
|
|
32739
32748
|
return (_ctx, _cache) => {
|
|
32740
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
32741
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
32749
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
32750
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
|
|
32742
32751
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
32743
32752
|
key: 0,
|
|
32744
32753
|
class: "lupa-filter-clear",
|
|
@@ -32749,7 +32758,130 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
32749
32758
|
};
|
|
32750
32759
|
}
|
|
32751
32760
|
});
|
|
32752
|
-
const
|
|
32761
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
32762
|
+
__name: "SkeletonBlock",
|
|
32763
|
+
props: {
|
|
32764
|
+
style: {}
|
|
32765
|
+
},
|
|
32766
|
+
setup(__props) {
|
|
32767
|
+
return (_ctx, _cache) => {
|
|
32768
|
+
return openBlock(), createElementBlock("div", {
|
|
32769
|
+
class: "lupa-skeleton-block-wrapper",
|
|
32770
|
+
style: normalizeStyle(_ctx.style)
|
|
32771
|
+
}, _cache[0] || (_cache[0] = [
|
|
32772
|
+
createBaseVNode("div", { class: "lupa-skeleton-block" }, [
|
|
32773
|
+
createBaseVNode("div", { class: "lupa-skeleton-block__shimmer" })
|
|
32774
|
+
], -1)
|
|
32775
|
+
]), 4);
|
|
32776
|
+
};
|
|
32777
|
+
}
|
|
32778
|
+
});
|
|
32779
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
32780
|
+
__name: "SkeletonText",
|
|
32781
|
+
props: {
|
|
32782
|
+
style: {},
|
|
32783
|
+
lines: { default: 1 }
|
|
32784
|
+
},
|
|
32785
|
+
setup(__props) {
|
|
32786
|
+
return (_ctx, _cache) => {
|
|
32787
|
+
return openBlock(), createElementBlock("div", {
|
|
32788
|
+
class: "lupa-skeleton-text-wrapper",
|
|
32789
|
+
style: normalizeStyle(_ctx.style)
|
|
32790
|
+
}, [
|
|
32791
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
|
|
32792
|
+
return openBlock(), createElementBlock("div", {
|
|
32793
|
+
key: i,
|
|
32794
|
+
class: "lupa-skeleton-line"
|
|
32795
|
+
}, _cache[0] || (_cache[0] = [
|
|
32796
|
+
createBaseVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
|
|
32797
|
+
]));
|
|
32798
|
+
}), 128))
|
|
32799
|
+
], 4);
|
|
32800
|
+
};
|
|
32801
|
+
}
|
|
32802
|
+
});
|
|
32803
|
+
const _hoisted_1$_ = {
|
|
32804
|
+
key: 1,
|
|
32805
|
+
class: "lupa-skeleton-text"
|
|
32806
|
+
};
|
|
32807
|
+
const _hoisted_2$J = {
|
|
32808
|
+
key: 2,
|
|
32809
|
+
class: "lupa-skeleton-blocks"
|
|
32810
|
+
};
|
|
32811
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
32812
|
+
__name: "LoadingBlock",
|
|
32813
|
+
props: {
|
|
32814
|
+
style: {},
|
|
32815
|
+
type: {},
|
|
32816
|
+
enabled: { type: Boolean },
|
|
32817
|
+
loading: { type: Boolean },
|
|
32818
|
+
count: {}
|
|
32819
|
+
},
|
|
32820
|
+
setup(__props) {
|
|
32821
|
+
return (_ctx, _cache) => {
|
|
32822
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
32823
|
+
createVNode(_sfc_main$19, {
|
|
32824
|
+
style: normalizeStyle(_ctx.style),
|
|
32825
|
+
lines: _ctx.count
|
|
32826
|
+
}, null, 8, ["style", "lines"])
|
|
32827
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
|
|
32828
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
32829
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
32830
|
+
key: n,
|
|
32831
|
+
style: normalizeStyle(_ctx.style)
|
|
32832
|
+
}, null, 8, ["style"]);
|
|
32833
|
+
}), 128))
|
|
32834
|
+
]));
|
|
32835
|
+
};
|
|
32836
|
+
}
|
|
32837
|
+
});
|
|
32838
|
+
const useLoadingSkeleton = () => {
|
|
32839
|
+
const paramsStore = useParamsStore();
|
|
32840
|
+
const optionsStore = useOptionsStore();
|
|
32841
|
+
const searchResultStore = useSearchResultStore();
|
|
32842
|
+
const { limit } = storeToRefs(paramsStore);
|
|
32843
|
+
const {
|
|
32844
|
+
searchResult,
|
|
32845
|
+
relatedQueriesResult,
|
|
32846
|
+
loading,
|
|
32847
|
+
loadingFacets: loadingFacetsBase,
|
|
32848
|
+
loadingRelatedQueries
|
|
32849
|
+
} = storeToRefs(searchResultStore);
|
|
32850
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
32851
|
+
const skeletonEnabled = computed(() => {
|
|
32852
|
+
var _a25, _b25, _c, _d;
|
|
32853
|
+
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);
|
|
32854
|
+
});
|
|
32855
|
+
const relatedQueriesSkeletonEnabled = computed(() => {
|
|
32856
|
+
var _a25, _b25, _c, _d, _e;
|
|
32857
|
+
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);
|
|
32858
|
+
});
|
|
32859
|
+
const facetSkeletonEnabled = computed(() => {
|
|
32860
|
+
var _a25, _b25, _c, _d;
|
|
32861
|
+
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);
|
|
32862
|
+
});
|
|
32863
|
+
const loadingFacets = computed(() => {
|
|
32864
|
+
var _a25;
|
|
32865
|
+
if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
|
|
32866
|
+
return loadingFacetsBase.value;
|
|
32867
|
+
}
|
|
32868
|
+
return loading.value;
|
|
32869
|
+
});
|
|
32870
|
+
const loadingAny = computed(() => {
|
|
32871
|
+
return loading.value || loadingRelatedQueries.value || loadingFacets.value;
|
|
32872
|
+
});
|
|
32873
|
+
return {
|
|
32874
|
+
loading,
|
|
32875
|
+
loadingRelatedQueries,
|
|
32876
|
+
loadingFacets,
|
|
32877
|
+
loadingAny,
|
|
32878
|
+
limit,
|
|
32879
|
+
skeletonEnabled,
|
|
32880
|
+
relatedQueriesSkeletonEnabled,
|
|
32881
|
+
facetSkeletonEnabled
|
|
32882
|
+
};
|
|
32883
|
+
};
|
|
32884
|
+
const _hoisted_1$Z = {
|
|
32753
32885
|
key: 0,
|
|
32754
32886
|
class: "lupa-result-page-title",
|
|
32755
32887
|
"data-cy": "lupa-result-page-title"
|
|
@@ -32761,7 +32893,7 @@ const _hoisted_3$x = {
|
|
|
32761
32893
|
};
|
|
32762
32894
|
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
32763
32895
|
const _hoisted_5$g = ["innerHTML"];
|
|
32764
|
-
const _sfc_main$
|
|
32896
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
32765
32897
|
__name: "SearchResultsTitle",
|
|
32766
32898
|
props: {
|
|
32767
32899
|
options: {},
|
|
@@ -32771,7 +32903,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
32771
32903
|
setup(__props) {
|
|
32772
32904
|
const props = __props;
|
|
32773
32905
|
const searchResultStore = useSearchResultStore();
|
|
32906
|
+
const paramsStore = useParamsStore();
|
|
32774
32907
|
const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
|
|
32908
|
+
const { skeletonEnabled, loading } = useLoadingSkeleton();
|
|
32909
|
+
const { query } = storeToRefs(paramsStore);
|
|
32775
32910
|
const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
|
|
32776
32911
|
const queryText = computed(() => {
|
|
32777
32912
|
return suggestedSearchText.value || currentQueryText.value;
|
|
@@ -32804,29 +32939,39 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
32804
32939
|
});
|
|
32805
32940
|
return (_ctx, _cache) => {
|
|
32806
32941
|
return openBlock(), createElementBlock("div", null, [
|
|
32807
|
-
|
|
32808
|
-
|
|
32809
|
-
|
|
32810
|
-
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
|
|
32823
|
-
|
|
32824
|
-
|
|
32942
|
+
createVNode(_sfc_main$18, {
|
|
32943
|
+
type: "text",
|
|
32944
|
+
count: 1,
|
|
32945
|
+
enabled: unref(skeletonEnabled) && Boolean(unref(query)),
|
|
32946
|
+
loading: unref(loading)
|
|
32947
|
+
}, {
|
|
32948
|
+
default: withCtx(() => [
|
|
32949
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
|
|
32950
|
+
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32951
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32952
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
32953
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32954
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
32955
|
+
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32956
|
+
])) : createCommentVNode("", true)
|
|
32957
|
+
])) : createCommentVNode("", true),
|
|
32958
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
32959
|
+
key: 1,
|
|
32960
|
+
label: summaryLabel.value
|
|
32961
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
32962
|
+
descriptionTop.value ? (openBlock(), createElementBlock("div", {
|
|
32963
|
+
key: 2,
|
|
32964
|
+
class: "lupa-result-page-description-top",
|
|
32965
|
+
innerHTML: descriptionTop.value
|
|
32966
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
32967
|
+
]),
|
|
32968
|
+
_: 1
|
|
32969
|
+
}, 8, ["enabled", "loading"])
|
|
32825
32970
|
]);
|
|
32826
32971
|
};
|
|
32827
32972
|
}
|
|
32828
32973
|
});
|
|
32829
|
-
const _hoisted_1$
|
|
32974
|
+
const _hoisted_1$Y = {
|
|
32830
32975
|
class: "lupa-current-filter-label",
|
|
32831
32976
|
"data-cy": "lupa-current-filter-label"
|
|
32832
32977
|
};
|
|
@@ -32834,7 +32979,7 @@ const _hoisted_2$H = {
|
|
|
32834
32979
|
class: "lupa-current-filter-value",
|
|
32835
32980
|
"data-cy": "lupa-current-filter-value"
|
|
32836
32981
|
};
|
|
32837
|
-
const _sfc_main$
|
|
32982
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
32838
32983
|
__name: "CurrentFilterDisplay",
|
|
32839
32984
|
props: {
|
|
32840
32985
|
filter: {}
|
|
@@ -32876,13 +33021,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
32876
33021
|
onClick: handleClick,
|
|
32877
33022
|
"aria-label": "Remove filter"
|
|
32878
33023
|
}, "⨉"),
|
|
32879
|
-
createBaseVNode("div", _hoisted_1$
|
|
33024
|
+
createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32880
33025
|
createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32881
33026
|
], 2);
|
|
32882
33027
|
};
|
|
32883
33028
|
}
|
|
32884
33029
|
});
|
|
32885
|
-
const _hoisted_1$
|
|
33030
|
+
const _hoisted_1$X = { class: "lupa-filter-title-text" };
|
|
32886
33031
|
const _hoisted_2$G = {
|
|
32887
33032
|
key: 0,
|
|
32888
33033
|
class: "lupa-filter-count"
|
|
@@ -32892,7 +33037,7 @@ const _hoisted_3$w = {
|
|
|
32892
33037
|
class: "filter-values"
|
|
32893
33038
|
};
|
|
32894
33039
|
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
32895
|
-
const _sfc_main$
|
|
33040
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
32896
33041
|
__name: "CurrentFilters",
|
|
32897
33042
|
props: {
|
|
32898
33043
|
options: {},
|
|
@@ -32972,7 +33117,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
32972
33117
|
class: "lupa-current-filter-title",
|
|
32973
33118
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32974
33119
|
}, [
|
|
32975
|
-
createBaseVNode("div", _hoisted_1$
|
|
33120
|
+
createBaseVNode("div", _hoisted_1$X, [
|
|
32976
33121
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32977
33122
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32978
33123
|
]),
|
|
@@ -32984,7 +33129,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
32984
33129
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
32985
33130
|
createBaseVNode("div", _hoisted_4$n, [
|
|
32986
33131
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32987
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33132
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
32988
33133
|
key: filter.key + "_" + filter.value,
|
|
32989
33134
|
filter,
|
|
32990
33135
|
units: units.value,
|
|
@@ -33002,8 +33147,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
33002
33147
|
};
|
|
33003
33148
|
}
|
|
33004
33149
|
});
|
|
33005
|
-
const _hoisted_1$
|
|
33006
|
-
const _sfc_main$
|
|
33150
|
+
const _hoisted_1$W = ["href"];
|
|
33151
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
33007
33152
|
__name: "CategoryFilterItem",
|
|
33008
33153
|
props: {
|
|
33009
33154
|
options: {},
|
|
@@ -33040,12 +33185,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
33040
33185
|
"data-cy": "lupa-child-category-item",
|
|
33041
33186
|
href: urlLink.value,
|
|
33042
33187
|
onClick: handleNavigation
|
|
33043
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
33188
|
+
}, toDisplayString(title.value), 9, _hoisted_1$W)
|
|
33044
33189
|
], 2);
|
|
33045
33190
|
};
|
|
33046
33191
|
}
|
|
33047
33192
|
});
|
|
33048
|
-
const _hoisted_1$
|
|
33193
|
+
const _hoisted_1$V = {
|
|
33049
33194
|
class: "lupa-category-filter",
|
|
33050
33195
|
"data-cy": "lupa-category-filter"
|
|
33051
33196
|
};
|
|
@@ -33053,7 +33198,7 @@ const _hoisted_2$F = { class: "lupa-category-back" };
|
|
|
33053
33198
|
const _hoisted_3$v = ["href"];
|
|
33054
33199
|
const _hoisted_4$m = ["href"];
|
|
33055
33200
|
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
33056
|
-
const _sfc_main$
|
|
33201
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
33057
33202
|
__name: "CategoryFilter",
|
|
33058
33203
|
props: {
|
|
33059
33204
|
options: {}
|
|
@@ -33141,7 +33286,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33141
33286
|
};
|
|
33142
33287
|
__expose({ fetch: fetch2 });
|
|
33143
33288
|
return (_ctx, _cache) => {
|
|
33144
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33289
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
33145
33290
|
createBaseVNode("div", _hoisted_2$F, [
|
|
33146
33291
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
33147
33292
|
key: 0,
|
|
@@ -33162,7 +33307,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33162
33307
|
], 2),
|
|
33163
33308
|
createBaseVNode("div", _hoisted_5$f, [
|
|
33164
33309
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
33165
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33310
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
33166
33311
|
key: getCategoryKey(child),
|
|
33167
33312
|
item: child,
|
|
33168
33313
|
options: _ctx.options
|
|
@@ -33173,7 +33318,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33173
33318
|
};
|
|
33174
33319
|
}
|
|
33175
33320
|
});
|
|
33176
|
-
const _hoisted_1$
|
|
33321
|
+
const _hoisted_1$U = {
|
|
33177
33322
|
class: "lupa-search-result-facet-term-values",
|
|
33178
33323
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
33179
33324
|
};
|
|
@@ -33188,7 +33333,7 @@ const _hoisted_7$4 = {
|
|
|
33188
33333
|
};
|
|
33189
33334
|
const _hoisted_8$2 = { key: 0 };
|
|
33190
33335
|
const _hoisted_9$2 = { key: 1 };
|
|
33191
|
-
const _sfc_main$
|
|
33336
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
33192
33337
|
__name: "TermFacet",
|
|
33193
33338
|
props: {
|
|
33194
33339
|
options: {},
|
|
@@ -33282,7 +33427,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
33282
33427
|
}
|
|
33283
33428
|
};
|
|
33284
33429
|
return (_ctx, _cache) => {
|
|
33285
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33430
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
33286
33431
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
33287
33432
|
key: 0,
|
|
33288
33433
|
class: "lupa-term-filter",
|
|
@@ -34231,7 +34376,7 @@ const roundToMaxDecimals = (value, maxPrecision = 0.1) => {
|
|
|
34231
34376
|
}
|
|
34232
34377
|
return out;
|
|
34233
34378
|
};
|
|
34234
|
-
const _hoisted_1$
|
|
34379
|
+
const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
|
|
34235
34380
|
const _hoisted_2$D = {
|
|
34236
34381
|
key: 0,
|
|
34237
34382
|
class: "lupa-stats-facet-summary"
|
|
@@ -34260,7 +34405,7 @@ const _hoisted_14 = {
|
|
|
34260
34405
|
key: 2,
|
|
34261
34406
|
class: "lupa-stats-slider-wrapper"
|
|
34262
34407
|
};
|
|
34263
|
-
const _sfc_main$
|
|
34408
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
34264
34409
|
__name: "StatsFacet",
|
|
34265
34410
|
props: {
|
|
34266
34411
|
options: {},
|
|
@@ -34479,7 +34624,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
34479
34624
|
}
|
|
34480
34625
|
);
|
|
34481
34626
|
return (_ctx, _cache) => {
|
|
34482
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34627
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
34483
34628
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
34484
34629
|
createBaseVNode("div", _hoisted_4$k, [
|
|
34485
34630
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -34544,7 +34689,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
34544
34689
|
};
|
|
34545
34690
|
}
|
|
34546
34691
|
});
|
|
34547
|
-
const _hoisted_1$
|
|
34692
|
+
const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
|
|
34548
34693
|
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
34549
34694
|
const _hoisted_3$s = {
|
|
34550
34695
|
key: 0,
|
|
@@ -34554,7 +34699,7 @@ const _hoisted_4$j = {
|
|
|
34554
34699
|
key: 0,
|
|
34555
34700
|
class: "lupa-facet-level"
|
|
34556
34701
|
};
|
|
34557
|
-
const _sfc_main
|
|
34702
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
34558
34703
|
__name: "HierarchyFacetLevel",
|
|
34559
34704
|
props: {
|
|
34560
34705
|
options: {},
|
|
@@ -34608,7 +34753,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
34608
34753
|
"data-cy": "lupa-facet-term",
|
|
34609
34754
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34610
34755
|
}, [
|
|
34611
|
-
createBaseVNode("div", _hoisted_1$
|
|
34756
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
34612
34757
|
createBaseVNode("span", {
|
|
34613
34758
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34614
34759
|
}, null, 2)
|
|
@@ -34636,13 +34781,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
34636
34781
|
};
|
|
34637
34782
|
}
|
|
34638
34783
|
});
|
|
34639
|
-
const _hoisted_1$
|
|
34784
|
+
const _hoisted_1$R = {
|
|
34640
34785
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34641
34786
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34642
34787
|
};
|
|
34643
34788
|
const _hoisted_2$B = { key: 0 };
|
|
34644
34789
|
const _hoisted_3$r = ["placeholder"];
|
|
34645
|
-
const _sfc_main
|
|
34790
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
34646
34791
|
__name: "HierarchyFacet",
|
|
34647
34792
|
props: {
|
|
34648
34793
|
options: {},
|
|
@@ -34698,7 +34843,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34698
34843
|
showAll.value = false;
|
|
34699
34844
|
};
|
|
34700
34845
|
return (_ctx, _cache) => {
|
|
34701
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34846
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
34702
34847
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
34703
34848
|
withDirectives(createBaseVNode("input", {
|
|
34704
34849
|
class: "lupa-term-filter",
|
|
@@ -34710,7 +34855,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34710
34855
|
])
|
|
34711
34856
|
])) : createCommentVNode("", true),
|
|
34712
34857
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34713
|
-
return openBlock(), createBlock(_sfc_main
|
|
34858
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
34714
34859
|
key: item.title,
|
|
34715
34860
|
options: _ctx.options,
|
|
34716
34861
|
item,
|
|
@@ -34734,7 +34879,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34734
34879
|
};
|
|
34735
34880
|
}
|
|
34736
34881
|
});
|
|
34737
|
-
const _hoisted_1$
|
|
34882
|
+
const _hoisted_1$Q = { class: "lupa-facet-label-text" };
|
|
34738
34883
|
const _hoisted_2$A = {
|
|
34739
34884
|
key: 0,
|
|
34740
34885
|
class: "lupa-facet-content",
|
|
@@ -34742,12 +34887,12 @@ const _hoisted_2$A = {
|
|
|
34742
34887
|
};
|
|
34743
34888
|
const __default__$1 = {
|
|
34744
34889
|
components: {
|
|
34745
|
-
TermFacet: _sfc_main$
|
|
34746
|
-
StatsFacet: _sfc_main$
|
|
34747
|
-
HierarchyFacet: _sfc_main
|
|
34890
|
+
TermFacet: _sfc_main$12,
|
|
34891
|
+
StatsFacet: _sfc_main$11,
|
|
34892
|
+
HierarchyFacet: _sfc_main$$
|
|
34748
34893
|
}
|
|
34749
34894
|
};
|
|
34750
|
-
const _sfc_main$
|
|
34895
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34751
34896
|
__name: "FacetDisplay",
|
|
34752
34897
|
props: {
|
|
34753
34898
|
options: {},
|
|
@@ -34894,7 +35039,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
34894
35039
|
"data-cy": "lupa-search-result-facet-label",
|
|
34895
35040
|
onClick: toggleFacet
|
|
34896
35041
|
}, [
|
|
34897
|
-
createBaseVNode("div", _hoisted_1$
|
|
35042
|
+
createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
|
|
34898
35043
|
createBaseVNode("div", {
|
|
34899
35044
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34900
35045
|
}, null, 2)
|
|
@@ -35012,11 +35157,11 @@ const useSidebarToggle = () => {
|
|
|
35012
35157
|
handleSortSidebarToggle
|
|
35013
35158
|
};
|
|
35014
35159
|
};
|
|
35015
|
-
const _hoisted_1$
|
|
35160
|
+
const _hoisted_1$P = {
|
|
35016
35161
|
key: 0,
|
|
35017
35162
|
class: "lupa-desktop-toggle-filter-count"
|
|
35018
35163
|
};
|
|
35019
|
-
const _sfc_main$
|
|
35164
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
35020
35165
|
__name: "DesktopFacetToggle",
|
|
35021
35166
|
setup(__props) {
|
|
35022
35167
|
const {
|
|
@@ -35038,12 +35183,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
35038
35183
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35039
35184
|
}, [
|
|
35040
35185
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35041
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35186
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35042
35187
|
], 2);
|
|
35043
35188
|
};
|
|
35044
35189
|
}
|
|
35045
35190
|
});
|
|
35046
|
-
const _sfc_main$
|
|
35191
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
35047
35192
|
__name: "DesktopSortToggle",
|
|
35048
35193
|
setup(__props) {
|
|
35049
35194
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -35059,12 +35204,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
35059
35204
|
};
|
|
35060
35205
|
}
|
|
35061
35206
|
});
|
|
35062
|
-
const _hoisted_1$
|
|
35207
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
|
|
35063
35208
|
const _hoisted_2$z = {
|
|
35064
35209
|
key: 0,
|
|
35065
35210
|
class: "lupa-facets-title"
|
|
35066
35211
|
};
|
|
35067
|
-
const _sfc_main$
|
|
35212
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
35068
35213
|
__name: "FacetList",
|
|
35069
35214
|
props: {
|
|
35070
35215
|
options: {},
|
|
@@ -35106,14 +35251,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
35106
35251
|
};
|
|
35107
35252
|
return (_ctx, _cache) => {
|
|
35108
35253
|
var _a25;
|
|
35109
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35254
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
35110
35255
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
35111
35256
|
createBaseVNode("div", {
|
|
35112
35257
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
35113
35258
|
}, [
|
|
35114
35259
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
35115
35260
|
var _a26;
|
|
35116
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35261
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
35117
35262
|
key: facet.key,
|
|
35118
35263
|
facet,
|
|
35119
35264
|
currentFilters: currentFiltersValue.value,
|
|
@@ -35125,14 +35270,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
35125
35270
|
onExpand: unref(handleFilterSidebarToggle)
|
|
35126
35271
|
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
35127
35272
|
}), 128)),
|
|
35128
|
-
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$
|
|
35129
|
-
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$
|
|
35273
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
|
|
35274
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
|
|
35130
35275
|
], 2)
|
|
35131
35276
|
]);
|
|
35132
35277
|
};
|
|
35133
35278
|
}
|
|
35134
35279
|
});
|
|
35135
|
-
const _sfc_main$
|
|
35280
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
35136
35281
|
__name: "FacetsButton",
|
|
35137
35282
|
props: {
|
|
35138
35283
|
options: {}
|
|
@@ -35157,7 +35302,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
35157
35302
|
};
|
|
35158
35303
|
}
|
|
35159
35304
|
});
|
|
35160
|
-
const _sfc_main$
|
|
35305
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
35161
35306
|
__name: "FacetsClearButton",
|
|
35162
35307
|
props: {
|
|
35163
35308
|
options: {}
|
|
@@ -35182,8 +35327,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
35182
35327
|
};
|
|
35183
35328
|
}
|
|
35184
35329
|
});
|
|
35185
|
-
const _hoisted_1$
|
|
35186
|
-
const _sfc_main$
|
|
35330
|
+
const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
|
|
35331
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
35187
35332
|
__name: "Facets",
|
|
35188
35333
|
props: {
|
|
35189
35334
|
options: {},
|
|
@@ -35291,7 +35436,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35291
35436
|
return openBlock(), createElementBlock("div", {
|
|
35292
35437
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
35293
35438
|
}, [
|
|
35294
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
35439
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
35295
35440
|
key: 0,
|
|
35296
35441
|
options: _ctx.options,
|
|
35297
35442
|
facets: regularFacets.value,
|
|
@@ -35301,13 +35446,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35301
35446
|
onSelect: handleFacetSelect,
|
|
35302
35447
|
onClear: clear
|
|
35303
35448
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
35304
|
-
createBaseVNode("div", _hoisted_1$
|
|
35305
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35449
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
35450
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
35306
35451
|
key: 0,
|
|
35307
35452
|
options: _ctx.options,
|
|
35308
35453
|
onClear: clearAll
|
|
35309
35454
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35310
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35455
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
35311
35456
|
key: 1,
|
|
35312
35457
|
options: _ctx.options,
|
|
35313
35458
|
onFilter: filter
|
|
@@ -35317,12 +35462,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35317
35462
|
};
|
|
35318
35463
|
}
|
|
35319
35464
|
});
|
|
35320
|
-
const _hoisted_1$
|
|
35465
|
+
const _hoisted_1$M = {
|
|
35321
35466
|
key: 0,
|
|
35322
35467
|
id: "lupa-search-result-filters",
|
|
35323
35468
|
class: "lupa-search-result-filters"
|
|
35324
35469
|
};
|
|
35325
|
-
const _sfc_main$
|
|
35470
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
35326
35471
|
__name: "SearchResultsFilters",
|
|
35327
35472
|
props: {
|
|
35328
35473
|
options: {},
|
|
@@ -35332,6 +35477,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
35332
35477
|
emits: ["filter"],
|
|
35333
35478
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35334
35479
|
const categoryFilters = ref(null);
|
|
35480
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35335
35481
|
const props = __props;
|
|
35336
35482
|
const emit2 = __emit;
|
|
35337
35483
|
const desktopFiltersVisible = computed(() => {
|
|
@@ -35360,30 +35506,42 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
35360
35506
|
};
|
|
35361
35507
|
__expose({ fetch: fetch2 });
|
|
35362
35508
|
return (_ctx, _cache) => {
|
|
35363
|
-
|
|
35364
|
-
|
|
35365
|
-
|
|
35366
|
-
|
|
35367
|
-
|
|
35368
|
-
|
|
35369
|
-
},
|
|
35370
|
-
|
|
35371
|
-
|
|
35372
|
-
|
|
35373
|
-
|
|
35374
|
-
|
|
35375
|
-
|
|
35376
|
-
|
|
35377
|
-
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35509
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
35510
|
+
createVNode(_sfc_main$18, {
|
|
35511
|
+
class: "lupa-skeleton-filters",
|
|
35512
|
+
count: 1,
|
|
35513
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35514
|
+
loading: unref(loadingFacets)
|
|
35515
|
+
}, {
|
|
35516
|
+
default: withCtx(() => {
|
|
35517
|
+
var _a25;
|
|
35518
|
+
return [
|
|
35519
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
|
|
35520
|
+
key: 0,
|
|
35521
|
+
options: _ctx.options.currentFilters,
|
|
35522
|
+
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
35523
|
+
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
35524
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
|
|
35525
|
+
key: 1,
|
|
35526
|
+
options: _ctx.options.categories,
|
|
35527
|
+
ref_key: "categoryFilters",
|
|
35528
|
+
ref: categoryFilters
|
|
35529
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35530
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35531
|
+
key: 2,
|
|
35532
|
+
options: _ctx.options.facets,
|
|
35533
|
+
"facet-style": _ctx.style,
|
|
35534
|
+
onFilter: filter
|
|
35535
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35536
|
+
];
|
|
35537
|
+
}),
|
|
35538
|
+
_: 1
|
|
35539
|
+
}, 8, ["enabled", "loading"])
|
|
35382
35540
|
])) : createCommentVNode("", true);
|
|
35383
35541
|
};
|
|
35384
35542
|
}
|
|
35385
35543
|
});
|
|
35386
|
-
const _hoisted_1$
|
|
35544
|
+
const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
|
|
35387
35545
|
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
35388
35546
|
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
35389
35547
|
const _hoisted_4$i = {
|
|
@@ -35391,7 +35549,7 @@ const _hoisted_4$i = {
|
|
|
35391
35549
|
class: "lupa-sidebar-filter-count"
|
|
35392
35550
|
};
|
|
35393
35551
|
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
35394
|
-
const _sfc_main$
|
|
35552
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
35395
35553
|
__name: "MobileFilterSidebar",
|
|
35396
35554
|
props: {
|
|
35397
35555
|
options: {}
|
|
@@ -35430,7 +35588,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35430
35588
|
class: "lupa-sidebar-close",
|
|
35431
35589
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
35432
35590
|
}),
|
|
35433
|
-
createBaseVNode("div", _hoisted_1$
|
|
35591
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
35434
35592
|
createBaseVNode("div", _hoisted_2$y, [
|
|
35435
35593
|
createBaseVNode("div", _hoisted_3$q, [
|
|
35436
35594
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -35442,7 +35600,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35442
35600
|
})
|
|
35443
35601
|
]),
|
|
35444
35602
|
createBaseVNode("div", _hoisted_5$c, [
|
|
35445
|
-
createVNode(_sfc_main$
|
|
35603
|
+
createVNode(_sfc_main$T, {
|
|
35446
35604
|
options: _ctx.options,
|
|
35447
35605
|
expandable: isActiveFiltersExpanded.value,
|
|
35448
35606
|
style: "sidebar",
|
|
@@ -35454,14 +35612,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35454
35612
|
};
|
|
35455
35613
|
}
|
|
35456
35614
|
});
|
|
35457
|
-
const _hoisted_1$
|
|
35615
|
+
const _hoisted_1$K = {
|
|
35616
|
+
key: 0,
|
|
35617
|
+
id: "lupa-search-results-breadcrumbs"
|
|
35618
|
+
};
|
|
35458
35619
|
const _hoisted_2$x = ["href", "onClick"];
|
|
35459
35620
|
const _hoisted_3$p = {
|
|
35460
35621
|
key: 1,
|
|
35461
35622
|
class: "lupa-search-results-breadcrumb-text"
|
|
35462
35623
|
};
|
|
35463
35624
|
const _hoisted_4$h = { key: 2 };
|
|
35464
|
-
const _sfc_main$
|
|
35625
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
35465
35626
|
__name: "SearchResultsBreadcrumbs",
|
|
35466
35627
|
props: {
|
|
35467
35628
|
breadcrumbs: {}
|
|
@@ -35479,6 +35640,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35479
35640
|
const hasEventRouting = computed(() => {
|
|
35480
35641
|
return searchResultOptions.value.routingBehavior === "event";
|
|
35481
35642
|
});
|
|
35643
|
+
const hasBreadcrumbs = computed(() => {
|
|
35644
|
+
var _a25;
|
|
35645
|
+
return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
|
|
35646
|
+
});
|
|
35482
35647
|
const getLabel = (label) => {
|
|
35483
35648
|
return addParamsToLabel(label, `'${currentQueryText.value}'`);
|
|
35484
35649
|
};
|
|
@@ -35486,7 +35651,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35486
35651
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
35487
35652
|
};
|
|
35488
35653
|
return (_ctx, _cache) => {
|
|
35489
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35654
|
+
return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
35490
35655
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
35491
35656
|
var _a25;
|
|
35492
35657
|
return openBlock(), createElementBlock("span", {
|
|
@@ -35505,16 +35670,16 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35505
35670
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
35506
35671
|
]);
|
|
35507
35672
|
}), 128))
|
|
35508
|
-
]);
|
|
35673
|
+
])) : createCommentVNode("", true);
|
|
35509
35674
|
};
|
|
35510
35675
|
}
|
|
35511
35676
|
});
|
|
35512
|
-
const _hoisted_1$
|
|
35677
|
+
const _hoisted_1$J = {
|
|
35513
35678
|
key: 0,
|
|
35514
35679
|
id: "lupa-search-result-filters",
|
|
35515
35680
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
35516
35681
|
};
|
|
35517
|
-
const _sfc_main$
|
|
35682
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
35518
35683
|
__name: "FiltersTopDropdown",
|
|
35519
35684
|
props: {
|
|
35520
35685
|
options: {}
|
|
@@ -35522,6 +35687,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
35522
35687
|
emits: ["filter"],
|
|
35523
35688
|
setup(__props, { emit: __emit }) {
|
|
35524
35689
|
const props = __props;
|
|
35690
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35525
35691
|
const emit2 = __emit;
|
|
35526
35692
|
const filter = () => {
|
|
35527
35693
|
emit2("filter");
|
|
@@ -35531,21 +35697,33 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
35531
35697
|
return (_a25 = props.options.visible) != null ? _a25 : true;
|
|
35532
35698
|
});
|
|
35533
35699
|
return (_ctx, _cache) => {
|
|
35534
|
-
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35700
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
35701
|
+
createVNode(_sfc_main$18, {
|
|
35702
|
+
class: "lupa-skeleton-top-dropdown-filters",
|
|
35703
|
+
count: 1,
|
|
35704
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35705
|
+
loading: unref(loadingFacets)
|
|
35706
|
+
}, {
|
|
35707
|
+
default: withCtx(() => {
|
|
35708
|
+
var _a25;
|
|
35709
|
+
return [
|
|
35710
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35711
|
+
key: 0,
|
|
35712
|
+
options: _ctx.options.facets,
|
|
35713
|
+
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
35714
|
+
clearable: true,
|
|
35715
|
+
onFilter: filter
|
|
35716
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35717
|
+
];
|
|
35718
|
+
}),
|
|
35719
|
+
_: 1
|
|
35720
|
+
}, 8, ["enabled", "loading"])
|
|
35543
35721
|
])) : createCommentVNode("", true);
|
|
35544
35722
|
};
|
|
35545
35723
|
}
|
|
35546
35724
|
});
|
|
35547
|
-
const _hoisted_1$
|
|
35548
|
-
const _sfc_main$
|
|
35725
|
+
const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
|
|
35726
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
35549
35727
|
__name: "SearchResultsLayoutSelection",
|
|
35550
35728
|
setup(__props) {
|
|
35551
35729
|
const searchResultStore = useSearchResultStore();
|
|
@@ -35556,7 +35734,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
35556
35734
|
searchResultStore.setLayout(layout2);
|
|
35557
35735
|
};
|
|
35558
35736
|
return (_ctx, _cache) => {
|
|
35559
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35737
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
35560
35738
|
createBaseVNode("div", {
|
|
35561
35739
|
class: normalizeClass([
|
|
35562
35740
|
"lupa-layout-selection-grid",
|
|
@@ -35578,11 +35756,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
35578
35756
|
};
|
|
35579
35757
|
}
|
|
35580
35758
|
});
|
|
35581
|
-
const _hoisted_1$
|
|
35759
|
+
const _hoisted_1$H = {
|
|
35582
35760
|
key: 0,
|
|
35583
35761
|
class: "lupa-mobile-toggle-filter-count"
|
|
35584
35762
|
};
|
|
35585
|
-
const _sfc_main$
|
|
35763
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35586
35764
|
__name: "SearchResultsMobileToggle",
|
|
35587
35765
|
setup(__props) {
|
|
35588
35766
|
const {
|
|
@@ -35604,12 +35782,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
35604
35782
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35605
35783
|
}, [
|
|
35606
35784
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35607
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35785
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35608
35786
|
], 2);
|
|
35609
35787
|
};
|
|
35610
35788
|
}
|
|
35611
35789
|
});
|
|
35612
|
-
const _sfc_main$
|
|
35790
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
35613
35791
|
__name: "SearchResultsMobileFilterClose",
|
|
35614
35792
|
props: {
|
|
35615
35793
|
label: {}
|
|
@@ -35629,7 +35807,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
35629
35807
|
};
|
|
35630
35808
|
}
|
|
35631
35809
|
});
|
|
35632
|
-
const _hoisted_1$
|
|
35810
|
+
const _hoisted_1$G = {
|
|
35633
35811
|
key: 0,
|
|
35634
35812
|
id: "lupa-search-results-page-select",
|
|
35635
35813
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -35642,7 +35820,7 @@ const _hoisted_3$o = {
|
|
|
35642
35820
|
key: 0,
|
|
35643
35821
|
class: "lupa-page-number-separator"
|
|
35644
35822
|
};
|
|
35645
|
-
const _sfc_main$
|
|
35823
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
35646
35824
|
__name: "SearchResultsPageSelect",
|
|
35647
35825
|
props: {
|
|
35648
35826
|
lastPageLabel: {},
|
|
@@ -35737,7 +35915,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
35737
35915
|
};
|
|
35738
35916
|
return (_ctx, _cache) => {
|
|
35739
35917
|
var _a25;
|
|
35740
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35918
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
35741
35919
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35742
35920
|
key: 0,
|
|
35743
35921
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35812,7 +35990,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
35812
35990
|
};
|
|
35813
35991
|
}
|
|
35814
35992
|
});
|
|
35815
|
-
const _hoisted_1$
|
|
35993
|
+
const _hoisted_1$F = {
|
|
35816
35994
|
id: "lupa-search-results-page-size",
|
|
35817
35995
|
"data-cy": "lupa-search-results-page-size"
|
|
35818
35996
|
};
|
|
@@ -35823,7 +36001,7 @@ const _hoisted_3$n = {
|
|
|
35823
36001
|
};
|
|
35824
36002
|
const _hoisted_4$g = ["value", "aria-label"];
|
|
35825
36003
|
const _hoisted_5$b = ["value"];
|
|
35826
|
-
const _sfc_main$
|
|
36004
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
35827
36005
|
__name: "SearchResultsPageSize",
|
|
35828
36006
|
props: {
|
|
35829
36007
|
labels: {},
|
|
@@ -35854,7 +36032,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
35854
36032
|
};
|
|
35855
36033
|
return (_ctx, _cache) => {
|
|
35856
36034
|
var _a25, _b25, _c;
|
|
35857
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36035
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
35858
36036
|
createBaseVNode("div", _hoisted_2$v, [
|
|
35859
36037
|
createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
35860
36038
|
createBaseVNode("select", {
|
|
@@ -35946,7 +36124,7 @@ const useSorting = () => {
|
|
|
35946
36124
|
setSortValue
|
|
35947
36125
|
};
|
|
35948
36126
|
};
|
|
35949
|
-
const _hoisted_1$
|
|
36127
|
+
const _hoisted_1$E = {
|
|
35950
36128
|
key: 0,
|
|
35951
36129
|
id: "lupa-search-results-sort",
|
|
35952
36130
|
class: "lupa-search-results-sort"
|
|
@@ -35958,7 +36136,7 @@ const _hoisted_3$m = {
|
|
|
35958
36136
|
};
|
|
35959
36137
|
const _hoisted_4$f = ["aria-label"];
|
|
35960
36138
|
const _hoisted_5$a = ["value"];
|
|
35961
|
-
const _sfc_main$
|
|
36139
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35962
36140
|
__name: "SearchResultsSort",
|
|
35963
36141
|
setup(__props) {
|
|
35964
36142
|
const {
|
|
@@ -35979,7 +36157,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
35979
36157
|
});
|
|
35980
36158
|
return (_ctx, _cache) => {
|
|
35981
36159
|
var _a25, _b25;
|
|
35982
|
-
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36160
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
35983
36161
|
createBaseVNode("div", _hoisted_2$u, [
|
|
35984
36162
|
createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
35985
36163
|
withDirectives(createBaseVNode("select", {
|
|
@@ -36006,7 +36184,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
36006
36184
|
};
|
|
36007
36185
|
}
|
|
36008
36186
|
});
|
|
36009
|
-
const _sfc_main$
|
|
36187
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
36010
36188
|
__name: "SearchResultsSortDrawerToggle",
|
|
36011
36189
|
setup(__props) {
|
|
36012
36190
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -36022,7 +36200,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
36022
36200
|
};
|
|
36023
36201
|
}
|
|
36024
36202
|
});
|
|
36025
|
-
const _hoisted_1$
|
|
36203
|
+
const _hoisted_1$D = { class: "lupa-toolbar-left" };
|
|
36026
36204
|
const _hoisted_2$t = {
|
|
36027
36205
|
key: 0,
|
|
36028
36206
|
class: "lupa-toolbar-right-title"
|
|
@@ -36037,7 +36215,7 @@ const _hoisted_7$2 = {
|
|
|
36037
36215
|
};
|
|
36038
36216
|
const _hoisted_8 = { key: 2 };
|
|
36039
36217
|
const _hoisted_9 = { key: 4 };
|
|
36040
|
-
const _sfc_main$
|
|
36218
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
36041
36219
|
__name: "SearchResultsToolbar",
|
|
36042
36220
|
props: {
|
|
36043
36221
|
options: {},
|
|
@@ -36150,16 +36328,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36150
36328
|
id: "lupa-search-results-toolbar",
|
|
36151
36329
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
36152
36330
|
}, [
|
|
36153
|
-
createBaseVNode("div", _hoisted_1$
|
|
36331
|
+
createBaseVNode("div", _hoisted_1$D, [
|
|
36154
36332
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
36155
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
36156
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
36333
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
36334
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
36157
36335
|
key: 3,
|
|
36158
36336
|
label: searchSummaryLabel.value,
|
|
36159
36337
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
36160
36338
|
onClear: handleClearAll
|
|
36161
36339
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
36162
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
36340
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
36163
36341
|
key: 5,
|
|
36164
36342
|
options: paginationOptions.value.pageSelect,
|
|
36165
36343
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -36168,19 +36346,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36168
36346
|
]),
|
|
36169
36347
|
createBaseVNode("div", _hoisted_6$4, [
|
|
36170
36348
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
36171
|
-
createVNode(_sfc_main$
|
|
36172
|
-
createVNode(_sfc_main$
|
|
36173
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
36349
|
+
createVNode(_sfc_main$O),
|
|
36350
|
+
createVNode(_sfc_main$J),
|
|
36351
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
|
|
36174
36352
|
key: 1,
|
|
36175
36353
|
options: paginationOptions.value.pageSize,
|
|
36176
36354
|
labels: paginationOptions.value.labels
|
|
36177
36355
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
36178
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
36356
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
36179
36357
|
key: 3,
|
|
36180
36358
|
options: sortOptions.value,
|
|
36181
36359
|
callbacks: callbacks.value
|
|
36182
36360
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
36183
|
-
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
36361
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
36184
36362
|
key: 5,
|
|
36185
36363
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
36186
36364
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -36189,7 +36367,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36189
36367
|
};
|
|
36190
36368
|
}
|
|
36191
36369
|
});
|
|
36192
|
-
const _sfc_main$
|
|
36370
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
36193
36371
|
__name: "SearchResultsProductImage",
|
|
36194
36372
|
props: {
|
|
36195
36373
|
item: {},
|
|
@@ -36197,7 +36375,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
36197
36375
|
},
|
|
36198
36376
|
setup(__props) {
|
|
36199
36377
|
return (_ctx, _cache) => {
|
|
36200
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36378
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
36201
36379
|
item: _ctx.item,
|
|
36202
36380
|
options: _ctx.options,
|
|
36203
36381
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -36206,7 +36384,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
36206
36384
|
};
|
|
36207
36385
|
}
|
|
36208
36386
|
});
|
|
36209
|
-
const _hoisted_1$
|
|
36387
|
+
const _hoisted_1$C = ["title", "innerHTML"];
|
|
36210
36388
|
const _hoisted_2$s = ["title"];
|
|
36211
36389
|
const _hoisted_3$k = ["href", "innerHTML"];
|
|
36212
36390
|
const _hoisted_4$d = ["title"];
|
|
@@ -36215,7 +36393,7 @@ const _hoisted_5$8 = {
|
|
|
36215
36393
|
class: "lupa-search-results-product-title-text"
|
|
36216
36394
|
};
|
|
36217
36395
|
const _hoisted_6$3 = ["href"];
|
|
36218
|
-
const _sfc_main$
|
|
36396
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
36219
36397
|
__name: "SearchResultsProductTitle",
|
|
36220
36398
|
props: {
|
|
36221
36399
|
item: {},
|
|
@@ -36252,7 +36430,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
36252
36430
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36253
36431
|
title: sanitizedTitle.value,
|
|
36254
36432
|
innerHTML: sanitizedTitle.value
|
|
36255
|
-
}, null, 12, _hoisted_1$
|
|
36433
|
+
}, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
36256
36434
|
key: 1,
|
|
36257
36435
|
class: "lupa-search-results-product-title",
|
|
36258
36436
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -36281,8 +36459,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
36281
36459
|
};
|
|
36282
36460
|
}
|
|
36283
36461
|
});
|
|
36284
|
-
const _hoisted_1$
|
|
36285
|
-
const _sfc_main$
|
|
36462
|
+
const _hoisted_1$B = ["innerHTML"];
|
|
36463
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
36286
36464
|
__name: "SearchResultsProductDescription",
|
|
36287
36465
|
props: {
|
|
36288
36466
|
item: {},
|
|
@@ -36309,7 +36487,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
36309
36487
|
class: "lupa-search-results-product-description",
|
|
36310
36488
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36311
36489
|
innerHTML: sanitizedDescription.value
|
|
36312
|
-
}, null, 12, _hoisted_1$
|
|
36490
|
+
}, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
|
|
36313
36491
|
key: 1,
|
|
36314
36492
|
class: "lupa-search-results-product-description",
|
|
36315
36493
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -36317,7 +36495,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
36317
36495
|
};
|
|
36318
36496
|
}
|
|
36319
36497
|
});
|
|
36320
|
-
const _hoisted_1$
|
|
36498
|
+
const _hoisted_1$A = { id: "lupa-search-results-rating" };
|
|
36321
36499
|
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
36322
36500
|
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
36323
36501
|
const _hoisted_4$c = ["innerHTML"];
|
|
@@ -36325,7 +36503,7 @@ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
|
36325
36503
|
const _hoisted_6$2 = ["innerHTML"];
|
|
36326
36504
|
const _hoisted_7$1 = ["href"];
|
|
36327
36505
|
const STAR_COUNT = 5;
|
|
36328
|
-
const _sfc_main$
|
|
36506
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
36329
36507
|
__name: "SearchResultsProductRating",
|
|
36330
36508
|
props: {
|
|
36331
36509
|
item: {},
|
|
@@ -36362,7 +36540,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
36362
36540
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
36363
36541
|
});
|
|
36364
36542
|
return (_ctx, _cache) => {
|
|
36365
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36543
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
36366
36544
|
createBaseVNode("div", _hoisted_2$r, [
|
|
36367
36545
|
createBaseVNode("div", _hoisted_3$j, [
|
|
36368
36546
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -36396,11 +36574,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
36396
36574
|
};
|
|
36397
36575
|
}
|
|
36398
36576
|
});
|
|
36399
|
-
const _hoisted_1$
|
|
36577
|
+
const _hoisted_1$z = {
|
|
36400
36578
|
class: "lupa-search-results-product-regular-price",
|
|
36401
36579
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
36402
36580
|
};
|
|
36403
|
-
const _sfc_main$
|
|
36581
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
36404
36582
|
__name: "SearchResultsProductRegularPrice",
|
|
36405
36583
|
props: {
|
|
36406
36584
|
item: {},
|
|
@@ -36422,11 +36600,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
36422
36600
|
);
|
|
36423
36601
|
});
|
|
36424
36602
|
return (_ctx, _cache) => {
|
|
36425
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36603
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
|
|
36426
36604
|
};
|
|
36427
36605
|
}
|
|
36428
36606
|
});
|
|
36429
|
-
const _sfc_main$
|
|
36607
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
36430
36608
|
__name: "SearchResultsProductPrice",
|
|
36431
36609
|
props: {
|
|
36432
36610
|
item: {},
|
|
@@ -36460,12 +36638,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
36460
36638
|
};
|
|
36461
36639
|
}
|
|
36462
36640
|
});
|
|
36463
|
-
const _hoisted_1$
|
|
36641
|
+
const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
36464
36642
|
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
36465
36643
|
const _hoisted_3$i = ["disabled"];
|
|
36466
36644
|
const _hoisted_4$b = ["href"];
|
|
36467
36645
|
const _hoisted_5$6 = ["id", "disabled"];
|
|
36468
|
-
const _sfc_main$
|
|
36646
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
36469
36647
|
__name: "SearchResultsProductAddToCart",
|
|
36470
36648
|
props: {
|
|
36471
36649
|
item: {},
|
|
@@ -36524,7 +36702,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
36524
36702
|
loading.value = false;
|
|
36525
36703
|
});
|
|
36526
36704
|
return (_ctx, _cache) => {
|
|
36527
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36705
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
36528
36706
|
createBaseVNode("div", _hoisted_2$q, [
|
|
36529
36707
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
36530
36708
|
key: 0,
|
|
@@ -36547,12 +36725,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
36547
36725
|
};
|
|
36548
36726
|
}
|
|
36549
36727
|
});
|
|
36550
|
-
const _hoisted_1$
|
|
36728
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
36551
36729
|
const _hoisted_2$p = { key: 0 };
|
|
36552
36730
|
const _hoisted_3$h = { key: 1 };
|
|
36553
36731
|
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
36554
36732
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
36555
|
-
const _sfc_main$
|
|
36733
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
36556
36734
|
__name: "SearchResultsProductCustom",
|
|
36557
36735
|
props: {
|
|
36558
36736
|
item: {},
|
|
@@ -36594,7 +36772,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
36594
36772
|
key: 0,
|
|
36595
36773
|
class: className.value,
|
|
36596
36774
|
innerHTML: text.value
|
|
36597
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36775
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
36598
36776
|
key: 1,
|
|
36599
36777
|
class: className.value
|
|
36600
36778
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
@@ -36606,8 +36784,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
36606
36784
|
};
|
|
36607
36785
|
}
|
|
36608
36786
|
});
|
|
36609
|
-
const _hoisted_1$
|
|
36610
|
-
const _sfc_main$
|
|
36787
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
36788
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
36611
36789
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
36612
36790
|
props: {
|
|
36613
36791
|
item: {},
|
|
@@ -36643,15 +36821,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
36643
36821
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
36644
36822
|
class: className.value,
|
|
36645
36823
|
innerHTML: text.value
|
|
36646
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36824
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
|
|
36647
36825
|
};
|
|
36648
36826
|
}
|
|
36649
36827
|
});
|
|
36650
|
-
const _hoisted_1$
|
|
36828
|
+
const _hoisted_1$v = { id: "lupa-search-results-rating" };
|
|
36651
36829
|
const _hoisted_2$o = ["innerHTML"];
|
|
36652
36830
|
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
36653
36831
|
const _hoisted_4$9 = ["href"];
|
|
36654
|
-
const _sfc_main$
|
|
36832
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
36655
36833
|
__name: "SearchResultsProductSingleStarRating",
|
|
36656
36834
|
props: {
|
|
36657
36835
|
item: {},
|
|
@@ -36679,7 +36857,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
36679
36857
|
return RATING_STAR_HTML;
|
|
36680
36858
|
});
|
|
36681
36859
|
return (_ctx, _cache) => {
|
|
36682
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36860
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
36683
36861
|
createBaseVNode("div", {
|
|
36684
36862
|
innerHTML: star.value,
|
|
36685
36863
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -36695,19 +36873,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
36695
36873
|
});
|
|
36696
36874
|
const __default__ = {
|
|
36697
36875
|
components: {
|
|
36698
|
-
SearchResultsProductImage: _sfc_main$
|
|
36699
|
-
SearchResultsProductTitle: _sfc_main$
|
|
36700
|
-
SearchResultsProductDescription: _sfc_main$
|
|
36701
|
-
SearchResultsProductRating: _sfc_main$
|
|
36702
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
36703
|
-
SearchResultsProductPrice: _sfc_main$
|
|
36704
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
36705
|
-
SearchResultsProductCustom: _sfc_main$
|
|
36706
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
36707
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
36708
|
-
}
|
|
36709
|
-
};
|
|
36710
|
-
const _sfc_main$
|
|
36876
|
+
SearchResultsProductImage: _sfc_main$H,
|
|
36877
|
+
SearchResultsProductTitle: _sfc_main$G,
|
|
36878
|
+
SearchResultsProductDescription: _sfc_main$F,
|
|
36879
|
+
SearchResultsProductRating: _sfc_main$E,
|
|
36880
|
+
SearchResultsProductRegularPrice: _sfc_main$D,
|
|
36881
|
+
SearchResultsProductPrice: _sfc_main$C,
|
|
36882
|
+
SearchResultsProductAddToCart: _sfc_main$B,
|
|
36883
|
+
SearchResultsProductCustom: _sfc_main$A,
|
|
36884
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$z,
|
|
36885
|
+
SearchResultsProductSingleStarRating: _sfc_main$y
|
|
36886
|
+
}
|
|
36887
|
+
};
|
|
36888
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36711
36889
|
__name: "SearchResultsProductCardElement",
|
|
36712
36890
|
props: {
|
|
36713
36891
|
item: {},
|
|
@@ -36785,13 +36963,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
36785
36963
|
};
|
|
36786
36964
|
}
|
|
36787
36965
|
}));
|
|
36788
|
-
const _hoisted_1$
|
|
36966
|
+
const _hoisted_1$u = ["href"];
|
|
36789
36967
|
const _hoisted_2$n = {
|
|
36790
36968
|
key: 0,
|
|
36791
36969
|
class: "lupa-out-of-stock"
|
|
36792
36970
|
};
|
|
36793
36971
|
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
36794
|
-
const _sfc_main$
|
|
36972
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
36795
36973
|
__name: "SearchResultsProductCard",
|
|
36796
36974
|
props: {
|
|
36797
36975
|
product: {},
|
|
@@ -36968,7 +37146,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36968
37146
|
default: withCtx(() => {
|
|
36969
37147
|
var _a25;
|
|
36970
37148
|
return [
|
|
36971
|
-
createVNode(_sfc_main$
|
|
37149
|
+
createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36972
37150
|
createBaseVNode("div", {
|
|
36973
37151
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36974
37152
|
}, [
|
|
@@ -36978,7 +37156,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36978
37156
|
onClick: handleNavigation
|
|
36979
37157
|
}, [
|
|
36980
37158
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36981
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37159
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
36982
37160
|
class: "lupa-search-results-product-element",
|
|
36983
37161
|
item: _ctx.product,
|
|
36984
37162
|
element,
|
|
@@ -36989,16 +37167,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36989
37167
|
onProductEvent: handleProductEvent
|
|
36990
37168
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36991
37169
|
}), 128)),
|
|
36992
|
-
createVNode(_sfc_main$
|
|
37170
|
+
createVNode(_sfc_main$1k, {
|
|
36993
37171
|
options: badgesOptions.value,
|
|
36994
37172
|
position: "image",
|
|
36995
37173
|
class: "lupa-image-badges"
|
|
36996
37174
|
}, null, 8, ["options"]),
|
|
36997
37175
|
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
36998
|
-
], 8, _hoisted_1$
|
|
37176
|
+
], 8, _hoisted_1$u),
|
|
36999
37177
|
createBaseVNode("div", _hoisted_3$f, [
|
|
37000
37178
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
37001
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37179
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37002
37180
|
class: "lupa-search-results-product-element",
|
|
37003
37181
|
item: _ctx.product,
|
|
37004
37182
|
element,
|
|
@@ -37016,7 +37194,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37016
37194
|
class: normalizeClass("lupa-element-group-" + group)
|
|
37017
37195
|
}, [
|
|
37018
37196
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
37019
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37197
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37020
37198
|
class: "lupa-search-results-product-element",
|
|
37021
37199
|
item: _ctx.product,
|
|
37022
37200
|
element,
|
|
@@ -37037,7 +37215,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37037
37215
|
};
|
|
37038
37216
|
}
|
|
37039
37217
|
});
|
|
37040
|
-
const _hoisted_1$
|
|
37218
|
+
const _hoisted_1$t = {
|
|
37041
37219
|
id: "lupa-search-results-similar-queries",
|
|
37042
37220
|
"data-cy": "lupa-search-results-similar-queries"
|
|
37043
37221
|
};
|
|
@@ -37053,7 +37231,7 @@ const _hoisted_7 = {
|
|
|
37053
37231
|
class: "lupa-products",
|
|
37054
37232
|
"data-cy": "lupa-products"
|
|
37055
37233
|
};
|
|
37056
|
-
const _sfc_main$
|
|
37234
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
37057
37235
|
__name: "SearchResultsSimilarQueries",
|
|
37058
37236
|
props: {
|
|
37059
37237
|
labels: {},
|
|
@@ -37091,7 +37269,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37091
37269
|
};
|
|
37092
37270
|
};
|
|
37093
37271
|
return (_ctx, _cache) => {
|
|
37094
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37272
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
37095
37273
|
createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
37096
37274
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
37097
37275
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -37111,7 +37289,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37111
37289
|
]),
|
|
37112
37290
|
createBaseVNode("div", _hoisted_7, [
|
|
37113
37291
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
37114
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37292
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37115
37293
|
style: normalizeStyle(_ctx.columnSize),
|
|
37116
37294
|
key: getDocumentKey(index2, product),
|
|
37117
37295
|
product,
|
|
@@ -37126,7 +37304,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37126
37304
|
};
|
|
37127
37305
|
}
|
|
37128
37306
|
});
|
|
37129
|
-
const _hoisted_1$
|
|
37307
|
+
const _hoisted_1$s = {
|
|
37130
37308
|
key: 0,
|
|
37131
37309
|
class: "lupa-results-additional-panel"
|
|
37132
37310
|
};
|
|
@@ -37134,7 +37312,7 @@ const _hoisted_2$l = {
|
|
|
37134
37312
|
class: "lupa-results-additional-panel-items",
|
|
37135
37313
|
"data-cy": "lupa-results-additional-panel-items"
|
|
37136
37314
|
};
|
|
37137
|
-
const _sfc_main$
|
|
37315
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
37138
37316
|
__name: "AdditionalPanel",
|
|
37139
37317
|
props: {
|
|
37140
37318
|
panel: {},
|
|
@@ -37207,10 +37385,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
37207
37385
|
handleQueryChange();
|
|
37208
37386
|
});
|
|
37209
37387
|
return (_ctx, _cache) => {
|
|
37210
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37388
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
37211
37389
|
createBaseVNode("div", _hoisted_2$l, [
|
|
37212
37390
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
37213
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37391
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37214
37392
|
key: index,
|
|
37215
37393
|
product: item,
|
|
37216
37394
|
options: _ctx.panel,
|
|
@@ -37228,11 +37406,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
37228
37406
|
};
|
|
37229
37407
|
}
|
|
37230
37408
|
});
|
|
37231
|
-
const _hoisted_1$
|
|
37409
|
+
const _hoisted_1$r = {
|
|
37232
37410
|
key: 0,
|
|
37233
37411
|
class: "lupa-results-additional-panels"
|
|
37234
37412
|
};
|
|
37235
|
-
const _sfc_main$
|
|
37413
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
37236
37414
|
__name: "AdditionalPanels",
|
|
37237
37415
|
props: {
|
|
37238
37416
|
options: {},
|
|
@@ -37249,9 +37427,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
37249
37427
|
return locationPanels.value.length > 0;
|
|
37250
37428
|
});
|
|
37251
37429
|
return (_ctx, _cache) => {
|
|
37252
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37430
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
37253
37431
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
37254
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37432
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
37255
37433
|
key: panel.queryKey,
|
|
37256
37434
|
panel,
|
|
37257
37435
|
options: _ctx.sdkOptions
|
|
@@ -37268,11 +37446,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
37268
37446
|
}
|
|
37269
37447
|
return target2;
|
|
37270
37448
|
};
|
|
37271
|
-
const _sfc_main$
|
|
37272
|
-
const _hoisted_1$
|
|
37449
|
+
const _sfc_main$s = {};
|
|
37450
|
+
const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
|
|
37273
37451
|
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
37274
37452
|
function _sfc_render(_ctx, _cache) {
|
|
37275
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37453
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
37276
37454
|
createBaseVNode("div", _hoisted_2$k, [
|
|
37277
37455
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
37278
37456
|
return createBaseVNode("div", { key: x });
|
|
@@ -37280,8 +37458,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
37280
37458
|
])
|
|
37281
37459
|
]);
|
|
37282
37460
|
}
|
|
37283
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37284
|
-
const _hoisted_1$
|
|
37461
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
37462
|
+
const _hoisted_1$p = {
|
|
37285
37463
|
id: "lupa-search-results-similar-results",
|
|
37286
37464
|
"data-cy": "lupa-search-results-similar-results"
|
|
37287
37465
|
};
|
|
@@ -37290,7 +37468,7 @@ const _hoisted_3$d = {
|
|
|
37290
37468
|
class: "lupa-products",
|
|
37291
37469
|
"data-cy": "lupa-products"
|
|
37292
37470
|
};
|
|
37293
|
-
const _sfc_main$
|
|
37471
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
37294
37472
|
__name: "SearchResultsSimilarResults",
|
|
37295
37473
|
props: {
|
|
37296
37474
|
columnSize: {},
|
|
@@ -37311,11 +37489,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
37311
37489
|
};
|
|
37312
37490
|
});
|
|
37313
37491
|
return (_ctx, _cache) => {
|
|
37314
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37492
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
37315
37493
|
createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
37316
37494
|
createBaseVNode("div", _hoisted_3$d, [
|
|
37317
37495
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
37318
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37496
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37319
37497
|
style: normalizeStyle(_ctx.columnSize),
|
|
37320
37498
|
key: getDocumentKey(index, product),
|
|
37321
37499
|
product,
|
|
@@ -37436,7 +37614,7 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
|
|
|
37436
37614
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
37437
37615
|
}
|
|
37438
37616
|
});
|
|
37439
|
-
const _hoisted_1$
|
|
37617
|
+
const _hoisted_1$o = { class: "lupa-related-query-item" };
|
|
37440
37618
|
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
37441
37619
|
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
37442
37620
|
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
@@ -37444,7 +37622,7 @@ const _hoisted_5$3 = {
|
|
|
37444
37622
|
key: 0,
|
|
37445
37623
|
class: "lupa-related-query-count"
|
|
37446
37624
|
};
|
|
37447
|
-
const _sfc_main$
|
|
37625
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
37448
37626
|
__name: "RelatedQueryPanel",
|
|
37449
37627
|
props: {
|
|
37450
37628
|
query: {},
|
|
@@ -37541,9 +37719,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
37541
37719
|
});
|
|
37542
37720
|
return (_ctx, _cache) => {
|
|
37543
37721
|
var _a25;
|
|
37544
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37722
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
37545
37723
|
createBaseVNode("div", _hoisted_2$i, [
|
|
37546
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37724
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37547
37725
|
key: 0,
|
|
37548
37726
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37549
37727
|
"image-class": "lupa-related-query-image",
|
|
@@ -37559,7 +37737,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
37559
37737
|
};
|
|
37560
37738
|
}
|
|
37561
37739
|
});
|
|
37562
|
-
const _hoisted_1$
|
|
37740
|
+
const _hoisted_1$n = {
|
|
37563
37741
|
key: 0,
|
|
37564
37742
|
class: "lupa-related-queries"
|
|
37565
37743
|
};
|
|
@@ -37568,7 +37746,7 @@ const _hoisted_2$h = {
|
|
|
37568
37746
|
class: "lupa-related-queries-title"
|
|
37569
37747
|
};
|
|
37570
37748
|
const _hoisted_3$b = ["onClick"];
|
|
37571
|
-
const _sfc_main$
|
|
37749
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
37572
37750
|
__name: "RelatedQueries",
|
|
37573
37751
|
props: {
|
|
37574
37752
|
options: {}
|
|
@@ -37662,7 +37840,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
37662
37840
|
};
|
|
37663
37841
|
return (_ctx, _cache) => {
|
|
37664
37842
|
var _a25, _b25, _c, _d;
|
|
37665
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37843
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
37666
37844
|
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$h, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
37667
37845
|
createBaseVNode("ul", null, [
|
|
37668
37846
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37673,7 +37851,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
37673
37851
|
createBaseVNode("a", {
|
|
37674
37852
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37675
37853
|
}, [
|
|
37676
|
-
createVNode(_sfc_main$
|
|
37854
|
+
createVNode(_sfc_main$q, {
|
|
37677
37855
|
"source-key": query.key,
|
|
37678
37856
|
options: _ctx.options,
|
|
37679
37857
|
query: query.value,
|
|
@@ -37717,13 +37895,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
|
37717
37895
|
}
|
|
37718
37896
|
return null;
|
|
37719
37897
|
};
|
|
37720
|
-
const _hoisted_1$
|
|
37898
|
+
const _hoisted_1$m = {
|
|
37721
37899
|
key: 0,
|
|
37722
37900
|
class: "lupa-redirection-suggestion"
|
|
37723
37901
|
};
|
|
37724
37902
|
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
37725
37903
|
const _hoisted_3$a = ["href"];
|
|
37726
|
-
const _sfc_main$
|
|
37904
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
37727
37905
|
__name: "RedirectionSuggestions",
|
|
37728
37906
|
props: {
|
|
37729
37907
|
options: {}
|
|
@@ -37746,7 +37924,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37746
37924
|
)
|
|
37747
37925
|
);
|
|
37748
37926
|
return (_ctx, _cache) => {
|
|
37749
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37927
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
37750
37928
|
createBaseVNode("h4", _hoisted_2$g, [
|
|
37751
37929
|
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
37752
37930
|
])
|
|
@@ -37754,11 +37932,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37754
37932
|
};
|
|
37755
37933
|
}
|
|
37756
37934
|
});
|
|
37757
|
-
const _hoisted_1$
|
|
37935
|
+
const _hoisted_1$l = {
|
|
37758
37936
|
key: 0,
|
|
37759
37937
|
class: "lupa-refiners-loading-notice"
|
|
37760
37938
|
};
|
|
37761
|
-
const _sfc_main$
|
|
37939
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37762
37940
|
__name: "RefinersLoadingNotice",
|
|
37763
37941
|
props: {
|
|
37764
37942
|
labels: {}
|
|
@@ -37769,14 +37947,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
37769
37947
|
const props = __props;
|
|
37770
37948
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37771
37949
|
return (_ctx, _cache) => {
|
|
37772
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37950
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
37773
37951
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37774
37952
|
createVNode(Spinner)
|
|
37775
37953
|
])) : createCommentVNode("", true);
|
|
37776
37954
|
};
|
|
37777
37955
|
}
|
|
37778
37956
|
});
|
|
37779
|
-
const _hoisted_1$
|
|
37957
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
37780
37958
|
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
37781
37959
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
37782
37960
|
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
@@ -37784,7 +37962,7 @@ const _hoisted_5$2 = {
|
|
|
37784
37962
|
key: 0,
|
|
37785
37963
|
class: "lupa-related-query-count"
|
|
37786
37964
|
};
|
|
37787
|
-
const _sfc_main$
|
|
37965
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37788
37966
|
__name: "RelatedQueryPanelApi",
|
|
37789
37967
|
props: {
|
|
37790
37968
|
relatedQuery: {},
|
|
@@ -37816,9 +37994,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
37816
37994
|
});
|
|
37817
37995
|
return (_ctx, _cache) => {
|
|
37818
37996
|
var _a25;
|
|
37819
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37997
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37820
37998
|
createBaseVNode("div", _hoisted_2$f, [
|
|
37821
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37999
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37822
38000
|
key: 0,
|
|
37823
38001
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37824
38002
|
"image-class": "lupa-related-query-image",
|
|
@@ -37834,7 +38012,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
37834
38012
|
};
|
|
37835
38013
|
}
|
|
37836
38014
|
});
|
|
37837
|
-
const _hoisted_1$
|
|
38015
|
+
const _hoisted_1$j = {
|
|
37838
38016
|
key: 0,
|
|
37839
38017
|
class: "lupa-related-queries"
|
|
37840
38018
|
};
|
|
@@ -37843,7 +38021,7 @@ const _hoisted_2$e = {
|
|
|
37843
38021
|
class: "lupa-related-queries-title"
|
|
37844
38022
|
};
|
|
37845
38023
|
const _hoisted_3$8 = ["onClick"];
|
|
37846
|
-
const _sfc_main$
|
|
38024
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37847
38025
|
__name: "RelatedQueriesApi",
|
|
37848
38026
|
props: {
|
|
37849
38027
|
options: {}
|
|
@@ -37895,7 +38073,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37895
38073
|
};
|
|
37896
38074
|
return (_ctx, _cache) => {
|
|
37897
38075
|
var _a25, _b25, _c, _d;
|
|
37898
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38076
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37899
38077
|
((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$e, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
37900
38078
|
createBaseVNode("ul", null, [
|
|
37901
38079
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37906,7 +38084,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37906
38084
|
createBaseVNode("a", {
|
|
37907
38085
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37908
38086
|
}, [
|
|
37909
|
-
createVNode(_sfc_main$
|
|
38087
|
+
createVNode(_sfc_main$m, {
|
|
37910
38088
|
relatedQuery: query,
|
|
37911
38089
|
options: _ctx.options
|
|
37912
38090
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -37918,9 +38096,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37918
38096
|
};
|
|
37919
38097
|
}
|
|
37920
38098
|
});
|
|
37921
|
-
const _hoisted_1$
|
|
38099
|
+
const _hoisted_1$i = { key: 0 };
|
|
37922
38100
|
const _hoisted_2$d = ["innerHTML"];
|
|
37923
|
-
const _sfc_main$
|
|
38101
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37924
38102
|
__name: "ZeroResults",
|
|
37925
38103
|
props: {
|
|
37926
38104
|
emptyResultsLabel: {},
|
|
@@ -37949,7 +38127,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37949
38127
|
});
|
|
37950
38128
|
return (_ctx, _cache) => {
|
|
37951
38129
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37952
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38130
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37953
38131
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37954
38132
|
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37955
38133
|
])) : createCommentVNode("", true),
|
|
@@ -37961,6 +38139,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37961
38139
|
};
|
|
37962
38140
|
}
|
|
37963
38141
|
});
|
|
38142
|
+
const _hoisted_1$h = {
|
|
38143
|
+
key: 1,
|
|
38144
|
+
class: "lupa-skeleton-grid"
|
|
38145
|
+
};
|
|
38146
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
38147
|
+
__name: "LoadingGrid",
|
|
38148
|
+
props: {
|
|
38149
|
+
style: {},
|
|
38150
|
+
enabled: { type: Boolean },
|
|
38151
|
+
loading: { type: Boolean },
|
|
38152
|
+
count: {}
|
|
38153
|
+
},
|
|
38154
|
+
setup(__props) {
|
|
38155
|
+
return (_ctx, _cache) => {
|
|
38156
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
38157
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
38158
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
38159
|
+
key: n,
|
|
38160
|
+
style: normalizeStyle(_ctx.style)
|
|
38161
|
+
}, null, 8, ["style"]);
|
|
38162
|
+
}), 128))
|
|
38163
|
+
]));
|
|
38164
|
+
};
|
|
38165
|
+
}
|
|
38166
|
+
});
|
|
37964
38167
|
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
37965
38168
|
const _hoisted_2$c = {
|
|
37966
38169
|
class: "lupa-products",
|
|
@@ -37972,12 +38175,12 @@ const _hoisted_3$7 = {
|
|
|
37972
38175
|
"data-cy": "lupa-no-results-in-page"
|
|
37973
38176
|
};
|
|
37974
38177
|
const _hoisted_4$5 = {
|
|
37975
|
-
key:
|
|
38178
|
+
key: 3,
|
|
37976
38179
|
class: "lupa-empty-results",
|
|
37977
38180
|
"data-cy": "lupa-no-results"
|
|
37978
38181
|
};
|
|
37979
|
-
const _hoisted_5$1 = { key:
|
|
37980
|
-
const _hoisted_6 = { key:
|
|
38182
|
+
const _hoisted_5$1 = { key: 4 };
|
|
38183
|
+
const _hoisted_6 = { key: 5 };
|
|
37981
38184
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37982
38185
|
__name: "SearchResultsProducts",
|
|
37983
38186
|
props: {
|
|
@@ -38001,6 +38204,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38001
38204
|
loading,
|
|
38002
38205
|
relatedQueriesApiEnabled
|
|
38003
38206
|
} = storeToRefs(searchResultStore);
|
|
38207
|
+
const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
|
|
38004
38208
|
const emit2 = __emit;
|
|
38005
38209
|
const productCardOptions = computed(() => {
|
|
38006
38210
|
return pick(props.options, [
|
|
@@ -38057,12 +38261,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38057
38261
|
});
|
|
38058
38262
|
const columnSize = computed(() => {
|
|
38059
38263
|
if (props.ssr) {
|
|
38060
|
-
return
|
|
38264
|
+
return {};
|
|
38061
38265
|
}
|
|
38062
38266
|
if (layout.value === ResultsLayoutEnum.LIST) {
|
|
38063
|
-
return
|
|
38267
|
+
return { width: "100%" };
|
|
38064
38268
|
}
|
|
38065
|
-
return
|
|
38269
|
+
return { width: `${100 / columnCount.value}%` };
|
|
38066
38270
|
});
|
|
38067
38271
|
const hasSimilarQueries = computed(() => {
|
|
38068
38272
|
var _a25;
|
|
@@ -38098,40 +38302,50 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38098
38302
|
emit2("filter");
|
|
38099
38303
|
};
|
|
38100
38304
|
return (_ctx, _cache) => {
|
|
38101
|
-
var _a25, _b25, _c;
|
|
38305
|
+
var _a25, _b25, _c, _d;
|
|
38102
38306
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
38103
|
-
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38307
|
+
!unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38104
38308
|
key: 0,
|
|
38105
38309
|
class: "lupa-loader"
|
|
38106
38310
|
})) : createCommentVNode("", true),
|
|
38107
|
-
createVNode(_sfc_main$
|
|
38311
|
+
createVNode(_sfc_main$o, {
|
|
38108
38312
|
options: _ctx.options.redirectionSuggestions
|
|
38109
38313
|
}, null, 8, ["options"]),
|
|
38110
|
-
createVNode(_sfc_main$
|
|
38314
|
+
createVNode(_sfc_main$t, {
|
|
38111
38315
|
options: _ctx.options,
|
|
38112
38316
|
location: "top",
|
|
38113
|
-
|
|
38114
|
-
}, null, 8, ["options", "
|
|
38115
|
-
|
|
38116
|
-
|
|
38117
|
-
|
|
38118
|
-
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38317
|
+
"sdk-options": _ctx.options.options
|
|
38318
|
+
}, null, 8, ["options", "sdk-options"]),
|
|
38319
|
+
createVNode(_sfc_main$18, {
|
|
38320
|
+
enabled: unref(relatedQueriesSkeletonEnabled),
|
|
38321
|
+
loading: unref(loading) || unref(loadingRelatedQueries),
|
|
38322
|
+
count: 1,
|
|
38323
|
+
class: "lupa-skeleton-related-queries"
|
|
38324
|
+
}, {
|
|
38325
|
+
default: withCtx(() => [
|
|
38326
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
|
|
38327
|
+
key: 0,
|
|
38328
|
+
options: _ctx.options.relatedQueries
|
|
38329
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38330
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
38331
|
+
key: 1,
|
|
38332
|
+
options: _ctx.options.relatedQueries
|
|
38333
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
38334
|
+
]),
|
|
38335
|
+
_: 1
|
|
38336
|
+
}, 8, ["enabled", "loading"]),
|
|
38337
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
38338
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
38125
38339
|
key: 0,
|
|
38126
38340
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
38127
38341
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38128
|
-
createVNode(_sfc_main$
|
|
38342
|
+
createVNode(_sfc_main$I, {
|
|
38129
38343
|
class: "lupa-toolbar-mobile",
|
|
38130
38344
|
options: _ctx.options,
|
|
38131
38345
|
"pagination-location": "top",
|
|
38132
38346
|
onFilter: filter
|
|
38133
38347
|
}, null, 8, ["options"]),
|
|
38134
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38348
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38135
38349
|
key: 1,
|
|
38136
38350
|
class: normalizeClass(currentFiltersClass.value),
|
|
38137
38351
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38139,13 +38353,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38139
38353
|
expandable: !desktopFiltersExpanded.value
|
|
38140
38354
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
38141
38355
|
], 64)) : createCommentVNode("", true),
|
|
38142
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
38143
|
-
createVNode(_sfc_main$
|
|
38356
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
38357
|
+
createVNode(_sfc_main$I, {
|
|
38144
38358
|
class: "lupa-toolbar-top",
|
|
38145
38359
|
options: _ctx.options,
|
|
38146
38360
|
"pagination-location": "top"
|
|
38147
38361
|
}, null, 8, ["options"]),
|
|
38148
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38362
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38149
38363
|
key: 0,
|
|
38150
38364
|
class: normalizeClass(currentFiltersClass.value),
|
|
38151
38365
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38153,22 +38367,32 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38153
38367
|
expandable: !desktopFiltersExpanded.value
|
|
38154
38368
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
38155
38369
|
createBaseVNode("div", _hoisted_2$c, [
|
|
38156
|
-
|
|
38157
|
-
|
|
38158
|
-
|
|
38159
|
-
|
|
38160
|
-
|
|
38161
|
-
|
|
38162
|
-
|
|
38163
|
-
|
|
38164
|
-
|
|
38165
|
-
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38171
|
-
|
|
38370
|
+
createVNode(_sfc_main$j, {
|
|
38371
|
+
enabled: unref(skeletonEnabled),
|
|
38372
|
+
loading: unref(loading),
|
|
38373
|
+
count: (_b25 = unref(limit)) != null ? _b25 : 12,
|
|
38374
|
+
style: normalizeStyle(columnSize.value)
|
|
38375
|
+
}, {
|
|
38376
|
+
default: withCtx(() => [
|
|
38377
|
+
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38378
|
+
return renderSlot(_ctx.$slots, "productCard", {
|
|
38379
|
+
key: getProductKeyAction(index, product),
|
|
38380
|
+
style: normalizeStyle(columnSize.value),
|
|
38381
|
+
product,
|
|
38382
|
+
options: productCardOptions.value
|
|
38383
|
+
});
|
|
38384
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38385
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
38386
|
+
key: getProductKeyAction(index, product),
|
|
38387
|
+
style: normalizeStyle(columnSize.value),
|
|
38388
|
+
product,
|
|
38389
|
+
options: productCardOptions.value,
|
|
38390
|
+
"analytics-metadata": clickMetadata.value
|
|
38391
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
38392
|
+
}), 128))
|
|
38393
|
+
]),
|
|
38394
|
+
_: 3
|
|
38395
|
+
}, 8, ["enabled", "loading", "count", "style"])
|
|
38172
38396
|
]),
|
|
38173
38397
|
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
38174
38398
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
@@ -38178,40 +38402,40 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38178
38402
|
onClick: goToFirstPage
|
|
38179
38403
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
38180
38404
|
])) : createCommentVNode("", true),
|
|
38181
|
-
createVNode(_sfc_main$
|
|
38405
|
+
createVNode(_sfc_main$I, {
|
|
38182
38406
|
class: "lupa-toolbar-bottom",
|
|
38183
38407
|
options: _ctx.options,
|
|
38184
38408
|
"pagination-location": "bottom"
|
|
38185
38409
|
}, null, 8, ["options"]),
|
|
38186
|
-
createVNode(_sfc_main$
|
|
38410
|
+
createVNode(_sfc_main$t, {
|
|
38187
38411
|
options: _ctx.options,
|
|
38188
38412
|
location: "bottom",
|
|
38189
|
-
|
|
38190
|
-
}, null, 8, ["options", "
|
|
38413
|
+
"sdk-options": _ctx.options.options
|
|
38414
|
+
}, null, 8, ["options", "sdk-options"])
|
|
38191
38415
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
38192
|
-
createVNode(_sfc_main$
|
|
38193
|
-
|
|
38194
|
-
|
|
38195
|
-
|
|
38196
|
-
|
|
38197
|
-
}, null, 8, ["
|
|
38416
|
+
createVNode(_sfc_main$k, {
|
|
38417
|
+
"empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
|
|
38418
|
+
"current-query-text": unref(currentQueryText),
|
|
38419
|
+
"has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
|
|
38420
|
+
"zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
|
|
38421
|
+
}, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
|
|
38198
38422
|
])) : createCommentVNode("", true),
|
|
38199
|
-
createVNode(_sfc_main$
|
|
38423
|
+
createVNode(_sfc_main$n, {
|
|
38200
38424
|
labels: _ctx.options.labels
|
|
38201
38425
|
}, null, 8, ["labels"]),
|
|
38202
38426
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
38203
|
-
createVNode(_sfc_main$
|
|
38427
|
+
createVNode(_sfc_main$v, {
|
|
38204
38428
|
labels: similarQueriesLabels.value,
|
|
38205
|
-
|
|
38206
|
-
|
|
38207
|
-
}, null, 8, ["labels", "
|
|
38429
|
+
"column-size": columnSize.value,
|
|
38430
|
+
"product-card-options": productCardOptions.value
|
|
38431
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38208
38432
|
])) : createCommentVNode("", true),
|
|
38209
38433
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
38210
|
-
createVNode(_sfc_main$
|
|
38434
|
+
createVNode(_sfc_main$r, {
|
|
38211
38435
|
labels: similarResultsLabels.value,
|
|
38212
|
-
|
|
38213
|
-
|
|
38214
|
-
}, null, 8, ["labels", "
|
|
38436
|
+
"column-size": columnSize.value,
|
|
38437
|
+
"product-card-options": productCardOptions.value
|
|
38438
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38215
38439
|
])) : createCommentVNode("", true),
|
|
38216
38440
|
renderSlot(_ctx.$slots, "append")
|
|
38217
38441
|
]);
|
|
@@ -38286,7 +38510,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
38286
38510
|
])) : createCommentVNode("", true),
|
|
38287
38511
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
38288
38512
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
38289
|
-
return openBlock(), createBlock(_sfc_main$
|
|
38513
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
38290
38514
|
key: getCategoryKey(child),
|
|
38291
38515
|
item: child,
|
|
38292
38516
|
options: categoryOptions.value
|
|
@@ -38720,8 +38944,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38720
38944
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
38721
38945
|
}, [
|
|
38722
38946
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38723
|
-
createVNode(_sfc_main$
|
|
38724
|
-
createVNode(_sfc_main$
|
|
38947
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38948
|
+
createVNode(_sfc_main$17, {
|
|
38725
38949
|
"show-summary": true,
|
|
38726
38950
|
options: _ctx.options,
|
|
38727
38951
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -38731,13 +38955,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38731
38955
|
key: 1,
|
|
38732
38956
|
options: _ctx.options
|
|
38733
38957
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38734
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
38958
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38735
38959
|
key: 2,
|
|
38736
38960
|
options: _ctx.options.filters,
|
|
38737
38961
|
onFilter: handleParamsChange
|
|
38738
38962
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38739
38963
|
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
38740
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
38964
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
|
|
38741
38965
|
key: 4,
|
|
38742
38966
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
38743
38967
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -38746,7 +38970,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38746
38970
|
id: "lupa-search-results",
|
|
38747
38971
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
38748
38972
|
}, [
|
|
38749
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38973
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38750
38974
|
key: 0,
|
|
38751
38975
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
38752
38976
|
ref_key: "searchResultsFilters",
|
|
@@ -38754,8 +38978,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38754
38978
|
onFilter: handleParamsChange
|
|
38755
38979
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38756
38980
|
createBaseVNode("div", _hoisted_2$8, [
|
|
38757
|
-
createVNode(_sfc_main$
|
|
38758
|
-
createVNode(_sfc_main$
|
|
38981
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38982
|
+
createVNode(_sfc_main$17, {
|
|
38759
38983
|
options: _ctx.options,
|
|
38760
38984
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
38761
38985
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38771,8 +38995,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38771
38995
|
}, 8, ["options", "ssr"])
|
|
38772
38996
|
])
|
|
38773
38997
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
38774
|
-
createVNode(_sfc_main$
|
|
38775
|
-
createVNode(_sfc_main$
|
|
38998
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38999
|
+
createVNode(_sfc_main$17, {
|
|
38776
39000
|
options: _ctx.options,
|
|
38777
39001
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
38778
39002
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38780,7 +39004,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38780
39004
|
id: "lupa-search-results",
|
|
38781
39005
|
class: normalizeClass(indicatorClasses.value)
|
|
38782
39006
|
}, [
|
|
38783
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
39007
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38784
39008
|
key: 0,
|
|
38785
39009
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
38786
39010
|
ref_key: "searchResultsFilters",
|
|
@@ -38931,7 +39155,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
38931
39155
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38932
39156
|
}, [
|
|
38933
39157
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38934
|
-
createVNode(_sfc_main$
|
|
39158
|
+
createVNode(_sfc_main$1d, {
|
|
38935
39159
|
options: fullSearchBoxOptions.value,
|
|
38936
39160
|
"is-search-container": true,
|
|
38937
39161
|
ref_key: "searchBox",
|
|
@@ -40519,7 +40743,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
40519
40743
|
key: getProductKeyAction(index, product)
|
|
40520
40744
|
}, {
|
|
40521
40745
|
default: withCtx(() => [
|
|
40522
|
-
createVNode(_sfc_main$
|
|
40746
|
+
createVNode(_sfc_main$w, {
|
|
40523
40747
|
product,
|
|
40524
40748
|
options: _ctx.options,
|
|
40525
40749
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -40534,7 +40758,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
40534
40758
|
_: 1
|
|
40535
40759
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
40536
40760
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
40537
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40761
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40538
40762
|
style: normalizeStyle(columnSize.value),
|
|
40539
40763
|
key: getProductKeyAction(index, product),
|
|
40540
40764
|
product,
|
|
@@ -40780,7 +41004,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
40780
41004
|
createBaseVNode("a", {
|
|
40781
41005
|
href: getLink(product)
|
|
40782
41006
|
}, [
|
|
40783
|
-
createVNode(_sfc_main$
|
|
41007
|
+
createVNode(_sfc_main$H, {
|
|
40784
41008
|
item: product,
|
|
40785
41009
|
options: image.value
|
|
40786
41010
|
}, null, 8, ["item", "options"])
|
|
@@ -40945,7 +41169,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
40945
41169
|
return (_ctx, _cache) => {
|
|
40946
41170
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40947
41171
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40948
|
-
return openBlock(), createBlock(_sfc_main$
|
|
41172
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40949
41173
|
class: "lupa-chat-product-card",
|
|
40950
41174
|
key: getProductKeyAction(index, product),
|
|
40951
41175
|
product,
|
|
@@ -41141,7 +41365,7 @@ const _hoisted_4 = {
|
|
|
41141
41365
|
key: 0,
|
|
41142
41366
|
class: "lupasearch-chat-content"
|
|
41143
41367
|
};
|
|
41144
|
-
const _sfc_main$
|
|
41368
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
41145
41369
|
__name: "ChatContainer",
|
|
41146
41370
|
props: {
|
|
41147
41371
|
options: {}
|
|
@@ -47165,7 +47389,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
47165
47389
|
};
|
|
47166
47390
|
__expose({ fetch: fetch2 });
|
|
47167
47391
|
return (_ctx, _cache) => {
|
|
47168
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
47392
|
+
return openBlock(), createBlock(unref(_sfc_main$1d), {
|
|
47169
47393
|
ref_key: "searchBox",
|
|
47170
47394
|
ref: searchBox2,
|
|
47171
47395
|
options: fullSearchBoxOptions.value
|
|
@@ -47826,7 +48050,7 @@ const chat = (options, mountOptions) => {
|
|
|
47826
48050
|
const instance = createVue(
|
|
47827
48051
|
options.displayOptions.containerSelector,
|
|
47828
48052
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
47829
|
-
_sfc_main$
|
|
48053
|
+
_sfc_main$1L,
|
|
47830
48054
|
{
|
|
47831
48055
|
options
|
|
47832
48056
|
}
|