@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.js
CHANGED
|
@@ -18857,17 +18857,27 @@ const getPageCount = (total, limit) => {
|
|
|
18857
18857
|
const isObject$1 = (value) => {
|
|
18858
18858
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
18859
18859
|
};
|
|
18860
|
-
const
|
|
18861
|
-
const value = params.get(key);
|
|
18860
|
+
const decodeParam = (value) => {
|
|
18862
18861
|
if (!value) {
|
|
18863
18862
|
return void 0;
|
|
18864
18863
|
}
|
|
18864
|
+
try {
|
|
18865
|
+
if (!/%[0-9A-Fa-f]{2}/.test(value)) {
|
|
18866
|
+
return value;
|
|
18867
|
+
}
|
|
18868
|
+
} catch (e2) {
|
|
18869
|
+
return value;
|
|
18870
|
+
}
|
|
18865
18871
|
try {
|
|
18866
18872
|
return decodeURIComponent(value);
|
|
18867
18873
|
} catch (e2) {
|
|
18868
|
-
return
|
|
18874
|
+
return value;
|
|
18869
18875
|
}
|
|
18870
18876
|
};
|
|
18877
|
+
const parseParam = (key, params) => {
|
|
18878
|
+
const value = params.get(key);
|
|
18879
|
+
return decodeParam(value != null ? value : void 0);
|
|
18880
|
+
};
|
|
18871
18881
|
const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
18872
18882
|
const params = /* @__PURE__ */ Object.create({});
|
|
18873
18883
|
const keys = reverseKeyValue({
|
|
@@ -18885,7 +18895,7 @@ const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
|
|
|
18885
18895
|
const parseFacetKey = (key, searchParams) => {
|
|
18886
18896
|
var _a25, _b25, _c, _d;
|
|
18887
18897
|
if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
|
|
18888
|
-
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) =>
|
|
18898
|
+
return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
|
|
18889
18899
|
}
|
|
18890
18900
|
if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
|
|
18891
18901
|
const range2 = searchParams.get(key);
|
|
@@ -18901,7 +18911,7 @@ const parseFacetKey = (key, searchParams) => {
|
|
|
18901
18911
|
if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
|
|
18902
18912
|
return {
|
|
18903
18913
|
level: 0,
|
|
18904
|
-
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) =>
|
|
18914
|
+
terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
|
|
18905
18915
|
};
|
|
18906
18916
|
}
|
|
18907
18917
|
return [];
|
|
@@ -18928,15 +18938,15 @@ const parseParams = (getQueryParamName, searchParams) => {
|
|
|
18928
18938
|
}, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
|
|
18929
18939
|
return r;
|
|
18930
18940
|
};
|
|
18931
|
-
const appendParam = (url, { name, value }
|
|
18941
|
+
const appendParam = (url, { name, value }) => {
|
|
18932
18942
|
if (Array.isArray(value)) {
|
|
18933
18943
|
appendArrayParams(url, { name, value });
|
|
18934
18944
|
} else {
|
|
18935
|
-
appendSingleParam(url, { name, value }
|
|
18945
|
+
appendSingleParam(url, { name, value });
|
|
18936
18946
|
}
|
|
18937
18947
|
};
|
|
18938
|
-
const appendSingleParam = (url, param
|
|
18939
|
-
const valueToAppend =
|
|
18948
|
+
const appendSingleParam = (url, param) => {
|
|
18949
|
+
const valueToAppend = param.value;
|
|
18940
18950
|
if (url.searchParams.has(param.name)) {
|
|
18941
18951
|
url.searchParams.set(param.name, valueToAppend);
|
|
18942
18952
|
} else {
|
|
@@ -18945,7 +18955,7 @@ const appendSingleParam = (url, param, encode2 = true) => {
|
|
|
18945
18955
|
};
|
|
18946
18956
|
const appendArrayParams = (url, param) => {
|
|
18947
18957
|
url.searchParams.delete(param.name);
|
|
18948
|
-
param.value.forEach((v) => url.searchParams.append(param.name,
|
|
18958
|
+
param.value.forEach((v) => url.searchParams.append(param.name, v));
|
|
18949
18959
|
};
|
|
18950
18960
|
const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
|
|
18951
18961
|
if (paramsToRemove === "all") {
|
|
@@ -19305,13 +19315,12 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19305
19315
|
const getPageUrlWithNewParams = ({
|
|
19306
19316
|
params: newParams,
|
|
19307
19317
|
paramsToRemove,
|
|
19308
|
-
encode: encode2 = true,
|
|
19309
19318
|
searchResultsLink: searchResultsLink2
|
|
19310
19319
|
}) => {
|
|
19311
19320
|
const url = getPageUrl(searchResultsLink2);
|
|
19312
19321
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19313
19322
|
removeParams(url, paramsToRemove);
|
|
19314
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19323
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19315
19324
|
return url.search;
|
|
19316
19325
|
};
|
|
19317
19326
|
const removeParameters = ({
|
|
@@ -19393,7 +19402,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19393
19402
|
const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
|
|
19394
19403
|
redirectToResultsPage(
|
|
19395
19404
|
searchResultsLink.value,
|
|
19396
|
-
|
|
19405
|
+
searchText,
|
|
19397
19406
|
optionsStore.getQueryParamName,
|
|
19398
19407
|
facet,
|
|
19399
19408
|
routing
|
|
@@ -19403,7 +19412,6 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19403
19412
|
const appendParams = ({
|
|
19404
19413
|
params: newParams,
|
|
19405
19414
|
paramsToRemove,
|
|
19406
|
-
encode: encode2 = true,
|
|
19407
19415
|
save = true,
|
|
19408
19416
|
searchResultsLink: searchResultsLink2
|
|
19409
19417
|
}) => {
|
|
@@ -19413,7 +19421,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
|
|
|
19413
19421
|
const url = getPageUrl(searchResultsLink2);
|
|
19414
19422
|
paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
|
|
19415
19423
|
removeParams(url, paramsToRemove);
|
|
19416
|
-
newParams.forEach((p2) => appendParam(url, p2
|
|
19424
|
+
newParams.forEach((p2) => appendParam(url, p2));
|
|
19417
19425
|
navigate(url);
|
|
19418
19426
|
if (!save) {
|
|
19419
19427
|
return;
|
|
@@ -19710,7 +19718,7 @@ const getApiUrl = (environment, customBaseUrl) => {
|
|
|
19710
19718
|
}
|
|
19711
19719
|
return Env[environment] || Env["production"];
|
|
19712
19720
|
};
|
|
19713
|
-
const _sfc_main$
|
|
19721
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
19714
19722
|
__name: "VoiceSearchProgressCircle",
|
|
19715
19723
|
props: {
|
|
19716
19724
|
isRecording: { type: Boolean },
|
|
@@ -19923,15 +19931,15 @@ function useVoiceRecorder(options) {
|
|
|
19923
19931
|
closeSocket
|
|
19924
19932
|
};
|
|
19925
19933
|
}
|
|
19926
|
-
const _hoisted_1$
|
|
19934
|
+
const _hoisted_1$1q = {
|
|
19927
19935
|
key: 0,
|
|
19928
19936
|
class: "lupa-dialog-overlay"
|
|
19929
19937
|
};
|
|
19930
|
-
const _hoisted_2$
|
|
19938
|
+
const _hoisted_2$_ = { class: "lupa-dialog-content" };
|
|
19931
19939
|
const _hoisted_3$G = { class: "lupa-listening-text" };
|
|
19932
19940
|
const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
|
|
19933
19941
|
const _hoisted_5$l = ["aria-label"];
|
|
19934
|
-
const _sfc_main$
|
|
19942
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
19935
19943
|
__name: "VoiceSearchDialog",
|
|
19936
19944
|
props: {
|
|
19937
19945
|
isOpen: { type: Boolean },
|
|
@@ -20036,12 +20044,12 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20036
20044
|
return (_ctx, _cache) => {
|
|
20037
20045
|
var _a25, _b25;
|
|
20038
20046
|
return openBlock(), createElementBlock("div", null, [
|
|
20039
|
-
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20047
|
+
props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
|
|
20040
20048
|
createBaseVNode("button", {
|
|
20041
20049
|
class: "lupa-dialog-box-close-button",
|
|
20042
20050
|
onClick: _cache[0] || (_cache[0] = () => emit2("close"))
|
|
20043
20051
|
}),
|
|
20044
|
-
createBaseVNode("div", _hoisted_2$
|
|
20052
|
+
createBaseVNode("div", _hoisted_2$_, [
|
|
20045
20053
|
createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
|
|
20046
20054
|
createBaseVNode("div", _hoisted_4$v, [
|
|
20047
20055
|
createBaseVNode("button", {
|
|
@@ -20050,7 +20058,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20050
20058
|
"aria-controls": "voice-search-microphone",
|
|
20051
20059
|
"aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
|
|
20052
20060
|
}, null, 10, _hoisted_5$l),
|
|
20053
|
-
createVNode(_sfc_main$
|
|
20061
|
+
createVNode(_sfc_main$1K, {
|
|
20054
20062
|
ref_key: "voiceSearchProgressBar",
|
|
20055
20063
|
ref: voiceSearchProgressBar,
|
|
20056
20064
|
class: "lupa-progress-circle",
|
|
@@ -20065,8 +20073,8 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
20065
20073
|
};
|
|
20066
20074
|
}
|
|
20067
20075
|
});
|
|
20068
|
-
const _hoisted_1$
|
|
20069
|
-
const _hoisted_2$
|
|
20076
|
+
const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
|
|
20077
|
+
const _hoisted_2$Z = { id: "lupa-search-box-input" };
|
|
20070
20078
|
const _hoisted_3$F = ["value"];
|
|
20071
20079
|
const _hoisted_4$u = ["aria-label", "placeholder"];
|
|
20072
20080
|
const _hoisted_5$k = {
|
|
@@ -20075,7 +20083,7 @@ const _hoisted_5$k = {
|
|
|
20075
20083
|
};
|
|
20076
20084
|
const _hoisted_6$7 = { key: 2 };
|
|
20077
20085
|
const _hoisted_7$5 = ["aria-label"];
|
|
20078
|
-
const _sfc_main$
|
|
20086
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
20079
20087
|
__name: "SearchBoxInput",
|
|
20080
20088
|
props: {
|
|
20081
20089
|
options: {},
|
|
@@ -20211,7 +20219,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20211
20219
|
};
|
|
20212
20220
|
__expose({ focus });
|
|
20213
20221
|
return (_ctx, _cache) => {
|
|
20214
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20222
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
20215
20223
|
_ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
|
|
20216
20224
|
key: 0,
|
|
20217
20225
|
class: normalizeClass(["lupa-input-clear", [
|
|
@@ -20220,7 +20228,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20220
20228
|
]]),
|
|
20221
20229
|
onClick: clear
|
|
20222
20230
|
}, null, 2)) : createCommentVNode("", true),
|
|
20223
|
-
createBaseVNode("div", _hoisted_2$
|
|
20231
|
+
createBaseVNode("div", _hoisted_2$Z, [
|
|
20224
20232
|
createBaseVNode("input", {
|
|
20225
20233
|
class: "lupa-hint",
|
|
20226
20234
|
"aria-hidden": "true",
|
|
@@ -20274,7 +20282,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20274
20282
|
"aria-label": voiceSearchAriaLabel.value
|
|
20275
20283
|
}, null, 8, _hoisted_7$5)
|
|
20276
20284
|
])) : createCommentVNode("", true),
|
|
20277
|
-
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$
|
|
20285
|
+
isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
|
|
20278
20286
|
key: 3,
|
|
20279
20287
|
ref_key: "voiceDialogOverlay",
|
|
20280
20288
|
ref: voiceDialogOverlay,
|
|
@@ -20288,7 +20296,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
20288
20296
|
};
|
|
20289
20297
|
}
|
|
20290
20298
|
});
|
|
20291
|
-
const _sfc_main$
|
|
20299
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
20292
20300
|
__name: "SearchBoxMoreResults",
|
|
20293
20301
|
props: {
|
|
20294
20302
|
labels: {},
|
|
@@ -20326,9 +20334,9 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
20326
20334
|
};
|
|
20327
20335
|
}
|
|
20328
20336
|
});
|
|
20329
|
-
const _hoisted_1$
|
|
20330
|
-
const _hoisted_2$
|
|
20331
|
-
const _sfc_main$
|
|
20337
|
+
const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
|
|
20338
|
+
const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
|
|
20339
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
20332
20340
|
__name: "SearchBoxHistoryItem",
|
|
20333
20341
|
props: {
|
|
20334
20342
|
item: {},
|
|
@@ -20345,8 +20353,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
20345
20353
|
emit2("click", { query: props.item });
|
|
20346
20354
|
};
|
|
20347
20355
|
return (_ctx, _cache) => {
|
|
20348
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20349
|
-
createBaseVNode("div", _hoisted_2$
|
|
20356
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
20357
|
+
createBaseVNode("div", _hoisted_2$Y, [
|
|
20350
20358
|
createBaseVNode("div", {
|
|
20351
20359
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
20352
20360
|
onClick: click2
|
|
@@ -20360,11 +20368,11 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
20360
20368
|
};
|
|
20361
20369
|
}
|
|
20362
20370
|
});
|
|
20363
|
-
const _hoisted_1$
|
|
20371
|
+
const _hoisted_1$1n = {
|
|
20364
20372
|
key: 0,
|
|
20365
20373
|
class: "lupa-search-box-history-panel"
|
|
20366
20374
|
};
|
|
20367
|
-
const _sfc_main$
|
|
20375
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
20368
20376
|
__name: "SearchBoxHistoryPanel",
|
|
20369
20377
|
props: {
|
|
20370
20378
|
options: {}
|
|
@@ -20415,9 +20423,9 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
20415
20423
|
}
|
|
20416
20424
|
};
|
|
20417
20425
|
return (_ctx, _cache) => {
|
|
20418
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20426
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
|
|
20419
20427
|
(openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
|
|
20420
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20428
|
+
return openBlock(), createBlock(_sfc_main$1G, {
|
|
20421
20429
|
key: item,
|
|
20422
20430
|
item,
|
|
20423
20431
|
highlighted: index === highlightIndex.value,
|
|
@@ -20433,12 +20441,12 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
20433
20441
|
};
|
|
20434
20442
|
}
|
|
20435
20443
|
});
|
|
20436
|
-
const _hoisted_1$
|
|
20437
|
-
const _hoisted_2$
|
|
20444
|
+
const _hoisted_1$1m = ["innerHTML"];
|
|
20445
|
+
const _hoisted_2$X = {
|
|
20438
20446
|
key: 1,
|
|
20439
20447
|
class: "lupa-search-box-no-results"
|
|
20440
20448
|
};
|
|
20441
|
-
const _sfc_main$
|
|
20449
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
20442
20450
|
__name: "SearchBoxNoResults",
|
|
20443
20451
|
props: {
|
|
20444
20452
|
options: {}
|
|
@@ -20457,7 +20465,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
20457
20465
|
key: 0,
|
|
20458
20466
|
class: "lupa-search-box-no-results",
|
|
20459
20467
|
innerHTML: customHtml.value
|
|
20460
|
-
}, null, 8, _hoisted_1$
|
|
20468
|
+
}, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
|
|
20461
20469
|
};
|
|
20462
20470
|
}
|
|
20463
20471
|
});
|
|
@@ -20489,8 +20497,8 @@ const generateGridTemplate = (elements) => {
|
|
|
20489
20497
|
}
|
|
20490
20498
|
return gridTemplate.join(" ");
|
|
20491
20499
|
};
|
|
20492
|
-
const _hoisted_1$
|
|
20493
|
-
const _hoisted_2$
|
|
20500
|
+
const _hoisted_1$1l = ["innerHTML"];
|
|
20501
|
+
const _hoisted_2$W = {
|
|
20494
20502
|
key: 1,
|
|
20495
20503
|
"data-cy": "lupa-suggestion-value",
|
|
20496
20504
|
class: "lupa-suggestion-value"
|
|
@@ -20508,7 +20516,7 @@ const _hoisted_5$j = {
|
|
|
20508
20516
|
class: "lupa-suggestion-facet-value",
|
|
20509
20517
|
"data-cy": "lupa-suggestion-facet-value"
|
|
20510
20518
|
};
|
|
20511
|
-
const _sfc_main$
|
|
20519
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
20512
20520
|
__name: "SearchBoxSuggestion",
|
|
20513
20521
|
props: {
|
|
20514
20522
|
suggestion: {},
|
|
@@ -20545,7 +20553,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
20545
20553
|
class: "lupa-suggestion-value",
|
|
20546
20554
|
"data-cy": "lupa-suggestion-value",
|
|
20547
20555
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
20548
|
-
}, null, 8, _hoisted_1$
|
|
20556
|
+
}, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
|
|
20549
20557
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
20550
20558
|
createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
|
|
20551
20559
|
createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -20554,11 +20562,11 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
20554
20562
|
};
|
|
20555
20563
|
}
|
|
20556
20564
|
});
|
|
20557
|
-
const _hoisted_1$
|
|
20565
|
+
const _hoisted_1$1k = {
|
|
20558
20566
|
id: "lupa-search-box-suggestions",
|
|
20559
20567
|
"data-cy": "lupa-search-box-suggestions"
|
|
20560
20568
|
};
|
|
20561
|
-
const _sfc_main$
|
|
20569
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
20562
20570
|
__name: "SearchBoxSuggestions",
|
|
20563
20571
|
props: {
|
|
20564
20572
|
items: {},
|
|
@@ -20625,9 +20633,9 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
20625
20633
|
});
|
|
20626
20634
|
});
|
|
20627
20635
|
return (_ctx, _cache) => {
|
|
20628
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20636
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1k, [
|
|
20629
20637
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
20630
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20638
|
+
return openBlock(), createBlock(_sfc_main$1D, {
|
|
20631
20639
|
key: getSuggestionKey(item),
|
|
20632
20640
|
class: normalizeClass([
|
|
20633
20641
|
"lupa-suggestion",
|
|
@@ -20659,7 +20667,7 @@ const debounce = (func, timeout) => {
|
|
|
20659
20667
|
}, timeout);
|
|
20660
20668
|
};
|
|
20661
20669
|
};
|
|
20662
|
-
const _sfc_main$
|
|
20670
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
20663
20671
|
__name: "SearchBoxSuggestionsWrapper",
|
|
20664
20672
|
props: {
|
|
20665
20673
|
panel: {},
|
|
@@ -20702,7 +20710,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
20702
20710
|
const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
|
|
20703
20711
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
20704
20712
|
return (_ctx, _cache) => {
|
|
20705
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20713
|
+
return openBlock(), createBlock(_sfc_main$1C, {
|
|
20706
20714
|
items: searchResult.value,
|
|
20707
20715
|
highlight: _ctx.panel.highlight,
|
|
20708
20716
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -29987,9 +29995,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
29987
29995
|
targetImage.src = placeholder;
|
|
29988
29996
|
}
|
|
29989
29997
|
};
|
|
29990
|
-
const _hoisted_1$
|
|
29991
|
-
const _hoisted_2$
|
|
29992
|
-
const _sfc_main$
|
|
29998
|
+
const _hoisted_1$1j = ["src"];
|
|
29999
|
+
const _hoisted_2$V = ["src"];
|
|
30000
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
29993
30001
|
__name: "ProductImage",
|
|
29994
30002
|
props: {
|
|
29995
30003
|
item: {},
|
|
@@ -30131,7 +30139,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
30131
30139
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
30132
30140
|
onError: replaceWithPlaceholder,
|
|
30133
30141
|
key: finalUrl.value
|
|
30134
|
-
}), null, 16, _hoisted_1$
|
|
30142
|
+
}), null, 16, _hoisted_1$1j))
|
|
30135
30143
|
]),
|
|
30136
30144
|
_: 1
|
|
30137
30145
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -30139,12 +30147,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
30139
30147
|
class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
|
|
30140
30148
|
style: styleOverride.value,
|
|
30141
30149
|
src: finalMainImageUrl.value
|
|
30142
|
-
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$
|
|
30150
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
|
|
30143
30151
|
], 38);
|
|
30144
30152
|
};
|
|
30145
30153
|
}
|
|
30146
30154
|
});
|
|
30147
|
-
const _sfc_main$
|
|
30155
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
30148
30156
|
__name: "SearchBoxProductImage",
|
|
30149
30157
|
props: {
|
|
30150
30158
|
item: {},
|
|
@@ -30152,7 +30160,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
30152
30160
|
},
|
|
30153
30161
|
setup(__props) {
|
|
30154
30162
|
return (_ctx, _cache) => {
|
|
30155
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30163
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
30156
30164
|
item: _ctx.item,
|
|
30157
30165
|
options: _ctx.options,
|
|
30158
30166
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -30161,12 +30169,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
30161
30169
|
};
|
|
30162
30170
|
}
|
|
30163
30171
|
});
|
|
30164
|
-
const _hoisted_1$
|
|
30165
|
-
const _hoisted_2$
|
|
30172
|
+
const _hoisted_1$1i = ["innerHTML"];
|
|
30173
|
+
const _hoisted_2$U = {
|
|
30166
30174
|
key: 1,
|
|
30167
30175
|
class: "lupa-search-box-product-title"
|
|
30168
30176
|
};
|
|
30169
|
-
const _sfc_main$
|
|
30177
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
30170
30178
|
__name: "SearchBoxProductTitle",
|
|
30171
30179
|
props: {
|
|
30172
30180
|
item: {},
|
|
@@ -30189,18 +30197,18 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
30189
30197
|
key: 0,
|
|
30190
30198
|
class: "lupa-search-box-product-title",
|
|
30191
30199
|
innerHTML: sanitizedTitle.value
|
|
30192
|
-
}, null, 8, _hoisted_1$
|
|
30200
|
+
}, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
30193
30201
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
30194
30202
|
]));
|
|
30195
30203
|
};
|
|
30196
30204
|
}
|
|
30197
30205
|
});
|
|
30198
|
-
const _hoisted_1$
|
|
30199
|
-
const _hoisted_2$
|
|
30206
|
+
const _hoisted_1$1h = ["innerHTML"];
|
|
30207
|
+
const _hoisted_2$T = {
|
|
30200
30208
|
key: 1,
|
|
30201
30209
|
class: "lupa-search-box-product-description"
|
|
30202
30210
|
};
|
|
30203
|
-
const _sfc_main$
|
|
30211
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
30204
30212
|
__name: "SearchBoxProductDescription",
|
|
30205
30213
|
props: {
|
|
30206
30214
|
item: {},
|
|
@@ -30223,12 +30231,12 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
30223
30231
|
key: 0,
|
|
30224
30232
|
class: "lupa-search-box-product-description",
|
|
30225
30233
|
innerHTML: sanitizedDescription.value
|
|
30226
|
-
}, null, 8, _hoisted_1$
|
|
30234
|
+
}, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
|
|
30227
30235
|
};
|
|
30228
30236
|
}
|
|
30229
30237
|
});
|
|
30230
|
-
const _hoisted_1$
|
|
30231
|
-
const _sfc_main$
|
|
30238
|
+
const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
|
|
30239
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
30232
30240
|
__name: "SearchBoxProductPrice",
|
|
30233
30241
|
props: {
|
|
30234
30242
|
item: {},
|
|
@@ -30250,13 +30258,13 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
30250
30258
|
);
|
|
30251
30259
|
});
|
|
30252
30260
|
return (_ctx, _cache) => {
|
|
30253
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30261
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1g, [
|
|
30254
30262
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
30255
30263
|
]);
|
|
30256
30264
|
};
|
|
30257
30265
|
}
|
|
30258
30266
|
});
|
|
30259
|
-
const _sfc_main$
|
|
30267
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
30260
30268
|
__name: "SearchBoxProductRegularPrice",
|
|
30261
30269
|
props: {
|
|
30262
30270
|
item: {},
|
|
@@ -30287,12 +30295,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
30287
30295
|
};
|
|
30288
30296
|
}
|
|
30289
30297
|
});
|
|
30290
|
-
const _hoisted_1$
|
|
30291
|
-
const _hoisted_2$
|
|
30298
|
+
const _hoisted_1$1f = ["innerHTML"];
|
|
30299
|
+
const _hoisted_2$S = { key: 0 };
|
|
30292
30300
|
const _hoisted_3$D = { key: 1 };
|
|
30293
30301
|
const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
|
|
30294
30302
|
const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
|
|
30295
|
-
const _sfc_main$
|
|
30303
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
30296
30304
|
__name: "SearchBoxProductCustom",
|
|
30297
30305
|
props: {
|
|
30298
30306
|
item: {},
|
|
@@ -30318,11 +30326,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
30318
30326
|
key: 0,
|
|
30319
30327
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
30320
30328
|
innerHTML: text.value
|
|
30321
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30329
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30322
30330
|
key: 1,
|
|
30323
30331
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
30324
30332
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
30325
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
30333
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
30326
30334
|
createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
|
|
30327
30335
|
createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
|
|
30328
30336
|
]))
|
|
@@ -30330,8 +30338,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
30330
30338
|
};
|
|
30331
30339
|
}
|
|
30332
30340
|
});
|
|
30333
|
-
const _hoisted_1$
|
|
30334
|
-
const _sfc_main$
|
|
30341
|
+
const _hoisted_1$1e = ["innerHTML"];
|
|
30342
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
30335
30343
|
__name: "SearchBoxProductCustomHtml",
|
|
30336
30344
|
props: {
|
|
30337
30345
|
item: {},
|
|
@@ -30356,7 +30364,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
30356
30364
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
30357
30365
|
class: className.value,
|
|
30358
30366
|
innerHTML: text.value
|
|
30359
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
30367
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1e);
|
|
30360
30368
|
};
|
|
30361
30369
|
}
|
|
30362
30370
|
});
|
|
@@ -30695,6 +30703,7 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30695
30703
|
relatedQueriesApiEnabled,
|
|
30696
30704
|
lastResultsSource,
|
|
30697
30705
|
relatedQueryFacetKeys,
|
|
30706
|
+
loadingRelatedQueries,
|
|
30698
30707
|
setSidebarState,
|
|
30699
30708
|
queryFacet,
|
|
30700
30709
|
setLastRequestId,
|
|
@@ -30711,12 +30720,12 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
|
|
|
30711
30720
|
setRelatedQueriesApiEnabled
|
|
30712
30721
|
};
|
|
30713
30722
|
});
|
|
30714
|
-
const _hoisted_1$
|
|
30715
|
-
const _hoisted_2$
|
|
30723
|
+
const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
30724
|
+
const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
|
|
30716
30725
|
const _hoisted_3$C = ["disabled"];
|
|
30717
30726
|
const _hoisted_4$r = ["href"];
|
|
30718
30727
|
const _hoisted_5$h = ["disabled"];
|
|
30719
|
-
const _sfc_main$
|
|
30728
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
30720
30729
|
__name: "SearchBoxProductAddToCart",
|
|
30721
30730
|
props: {
|
|
30722
30731
|
item: {},
|
|
@@ -30762,8 +30771,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
30762
30771
|
return Boolean(props.link && props.options.link);
|
|
30763
30772
|
});
|
|
30764
30773
|
return (_ctx, _cache) => {
|
|
30765
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30766
|
-
createBaseVNode("div", _hoisted_2$
|
|
30774
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
30775
|
+
createBaseVNode("div", _hoisted_2$R, [
|
|
30767
30776
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
30768
30777
|
key: 0,
|
|
30769
30778
|
class: addToCartButtonClass.value,
|
|
@@ -30784,23 +30793,23 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
30784
30793
|
};
|
|
30785
30794
|
}
|
|
30786
30795
|
});
|
|
30787
|
-
const _hoisted_1$
|
|
30796
|
+
const _hoisted_1$1c = {
|
|
30788
30797
|
key: 1,
|
|
30789
30798
|
class: "lupa-search-box-element-badge-wrapper"
|
|
30790
30799
|
};
|
|
30791
30800
|
const __default__$4 = {
|
|
30792
30801
|
components: {
|
|
30793
|
-
SearchBoxProductImage: _sfc_main$
|
|
30794
|
-
SearchBoxProductTitle: _sfc_main$
|
|
30795
|
-
SearchBoxProductDescription: _sfc_main$
|
|
30796
|
-
SearchBoxProductPrice: _sfc_main$
|
|
30797
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
30798
|
-
SearchBoxProductCustom: _sfc_main$
|
|
30799
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
30800
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
30802
|
+
SearchBoxProductImage: _sfc_main$1z,
|
|
30803
|
+
SearchBoxProductTitle: _sfc_main$1y,
|
|
30804
|
+
SearchBoxProductDescription: _sfc_main$1x,
|
|
30805
|
+
SearchBoxProductPrice: _sfc_main$1w,
|
|
30806
|
+
SearchBoxProductRegularPrice: _sfc_main$1v,
|
|
30807
|
+
SearchBoxProductCustom: _sfc_main$1u,
|
|
30808
|
+
SearchBoxProductCustomHtml: _sfc_main$1t,
|
|
30809
|
+
SearchBoxProductAddToCart: _sfc_main$1s
|
|
30801
30810
|
}
|
|
30802
30811
|
};
|
|
30803
|
-
const _sfc_main$
|
|
30812
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
30804
30813
|
__name: "SearchBoxProductElement",
|
|
30805
30814
|
props: {
|
|
30806
30815
|
item: {},
|
|
@@ -30872,7 +30881,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30872
30881
|
"dynamic-attributes": dynamicAttributes.value,
|
|
30873
30882
|
link: _ctx.link
|
|
30874
30883
|
}, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
|
|
30875
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30884
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
30876
30885
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
30877
30886
|
key: 0,
|
|
30878
30887
|
item: enhancedItem.value,
|
|
@@ -30887,14 +30896,14 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
30887
30896
|
};
|
|
30888
30897
|
}
|
|
30889
30898
|
}));
|
|
30890
|
-
const _hoisted_1$
|
|
30891
|
-
const _hoisted_2$
|
|
30899
|
+
const _hoisted_1$1b = { class: "lupa-badge-title" };
|
|
30900
|
+
const _hoisted_2$Q = ["src"];
|
|
30892
30901
|
const _hoisted_3$B = { key: 1 };
|
|
30893
30902
|
const _hoisted_4$q = {
|
|
30894
30903
|
key: 0,
|
|
30895
30904
|
class: "lupa-badge-full-text"
|
|
30896
30905
|
};
|
|
30897
|
-
const _sfc_main$
|
|
30906
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
30898
30907
|
__name: "SearchResultGeneratedBadge",
|
|
30899
30908
|
props: {
|
|
30900
30909
|
options: {},
|
|
@@ -30927,11 +30936,11 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
30927
30936
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
30928
30937
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
30929
30938
|
}, [
|
|
30930
|
-
createBaseVNode("span", _hoisted_1$
|
|
30939
|
+
createBaseVNode("span", _hoisted_1$1b, [
|
|
30931
30940
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
30932
30941
|
key: 0,
|
|
30933
30942
|
src: image.value
|
|
30934
|
-
}, null, 8, _hoisted_2$
|
|
30943
|
+
}, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
|
|
30935
30944
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
30936
30945
|
]),
|
|
30937
30946
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -30939,8 +30948,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
30939
30948
|
};
|
|
30940
30949
|
}
|
|
30941
30950
|
});
|
|
30942
|
-
const _hoisted_1$
|
|
30943
|
-
const _sfc_main$
|
|
30951
|
+
const _hoisted_1$1a = { class: "lupa-generated-badges" };
|
|
30952
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
30944
30953
|
__name: "SearchResultGeneratedBadges",
|
|
30945
30954
|
props: {
|
|
30946
30955
|
options: {}
|
|
@@ -30966,9 +30975,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30966
30975
|
})).filter((b) => Boolean(b.id));
|
|
30967
30976
|
});
|
|
30968
30977
|
return (_ctx, _cache) => {
|
|
30969
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30978
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
30970
30979
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
30971
|
-
return openBlock(), createBlock(_sfc_main$
|
|
30980
|
+
return openBlock(), createBlock(_sfc_main$1q, {
|
|
30972
30981
|
key: badge.id,
|
|
30973
30982
|
badge,
|
|
30974
30983
|
options: _ctx.options
|
|
@@ -30978,8 +30987,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
30978
30987
|
};
|
|
30979
30988
|
}
|
|
30980
30989
|
});
|
|
30981
|
-
const _hoisted_1$
|
|
30982
|
-
const _sfc_main$
|
|
30990
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
30991
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
30983
30992
|
__name: "CustomBadge",
|
|
30984
30993
|
props: {
|
|
30985
30994
|
badge: {}
|
|
@@ -31000,12 +31009,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
31000
31009
|
return openBlock(), createElementBlock("div", {
|
|
31001
31010
|
class: normalizeClass(className.value),
|
|
31002
31011
|
innerHTML: text.value
|
|
31003
|
-
}, null, 10, _hoisted_1$
|
|
31012
|
+
}, null, 10, _hoisted_1$19);
|
|
31004
31013
|
};
|
|
31005
31014
|
}
|
|
31006
31015
|
});
|
|
31007
|
-
const _hoisted_1$
|
|
31008
|
-
const _sfc_main$
|
|
31016
|
+
const _hoisted_1$18 = { class: "lupa-text-badges" };
|
|
31017
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
31009
31018
|
__name: "TextBadge",
|
|
31010
31019
|
props: {
|
|
31011
31020
|
badge: {}
|
|
@@ -31019,7 +31028,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
31019
31028
|
return badges.value.slice(0, props.badge.maxItems);
|
|
31020
31029
|
});
|
|
31021
31030
|
return (_ctx, _cache) => {
|
|
31022
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31031
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
31023
31032
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31024
31033
|
return openBlock(), createElementBlock("div", {
|
|
31025
31034
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -31030,9 +31039,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
31030
31039
|
};
|
|
31031
31040
|
}
|
|
31032
31041
|
});
|
|
31033
|
-
const _hoisted_1$
|
|
31034
|
-
const _hoisted_2$
|
|
31035
|
-
const _sfc_main$
|
|
31042
|
+
const _hoisted_1$17 = { class: "lupa-image-badges" };
|
|
31043
|
+
const _hoisted_2$P = ["src"];
|
|
31044
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
31036
31045
|
__name: "ImageBadge",
|
|
31037
31046
|
props: {
|
|
31038
31047
|
badge: {}
|
|
@@ -31052,7 +31061,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
31052
31061
|
return `${props.badge.rootImageUrl}${src}`;
|
|
31053
31062
|
};
|
|
31054
31063
|
return (_ctx, _cache) => {
|
|
31055
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31064
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
31056
31065
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
31057
31066
|
return openBlock(), createElementBlock("div", {
|
|
31058
31067
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -31060,14 +31069,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
31060
31069
|
}, [
|
|
31061
31070
|
createBaseVNode("img", {
|
|
31062
31071
|
src: getImageUrl(item)
|
|
31063
|
-
}, null, 8, _hoisted_2$
|
|
31072
|
+
}, null, 8, _hoisted_2$P)
|
|
31064
31073
|
]);
|
|
31065
31074
|
}), 128))
|
|
31066
31075
|
]);
|
|
31067
31076
|
};
|
|
31068
31077
|
}
|
|
31069
31078
|
});
|
|
31070
|
-
const _sfc_main$
|
|
31079
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
31071
31080
|
__name: "DiscountBadge",
|
|
31072
31081
|
props: {
|
|
31073
31082
|
badge: {}
|
|
@@ -31129,16 +31138,16 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
31129
31138
|
};
|
|
31130
31139
|
}
|
|
31131
31140
|
});
|
|
31132
|
-
const _hoisted_1$
|
|
31141
|
+
const _hoisted_1$16 = { id: "lupa-search-results-badges" };
|
|
31133
31142
|
const __default__$3 = {
|
|
31134
31143
|
components: {
|
|
31135
|
-
CustomBadge: _sfc_main$
|
|
31136
|
-
TextBadge: _sfc_main$
|
|
31137
|
-
ImageBadge: _sfc_main$
|
|
31138
|
-
DiscountBadge: _sfc_main$
|
|
31144
|
+
CustomBadge: _sfc_main$1o,
|
|
31145
|
+
TextBadge: _sfc_main$1n,
|
|
31146
|
+
ImageBadge: _sfc_main$1m,
|
|
31147
|
+
DiscountBadge: _sfc_main$1l
|
|
31139
31148
|
}
|
|
31140
31149
|
};
|
|
31141
|
-
const _sfc_main$
|
|
31150
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
31142
31151
|
__name: "SearchResultsBadgeWrapper",
|
|
31143
31152
|
props: {
|
|
31144
31153
|
position: {},
|
|
@@ -31201,7 +31210,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31201
31210
|
}
|
|
31202
31211
|
};
|
|
31203
31212
|
return (_ctx, _cache) => {
|
|
31204
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31213
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
31205
31214
|
createBaseVNode("div", {
|
|
31206
31215
|
id: "lupa-badges",
|
|
31207
31216
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -31212,7 +31221,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31212
31221
|
badge
|
|
31213
31222
|
}, null, 8, ["badge"]);
|
|
31214
31223
|
}), 128)),
|
|
31215
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
31224
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
31216
31225
|
key: 0,
|
|
31217
31226
|
options: _ctx.options
|
|
31218
31227
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -31221,13 +31230,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
31221
31230
|
};
|
|
31222
31231
|
}
|
|
31223
31232
|
}));
|
|
31224
|
-
const _hoisted_1$
|
|
31225
|
-
const _hoisted_2$
|
|
31233
|
+
const _hoisted_1$15 = ["href"];
|
|
31234
|
+
const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
|
|
31226
31235
|
const _hoisted_3$A = {
|
|
31227
31236
|
key: 0,
|
|
31228
31237
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
31229
31238
|
};
|
|
31230
|
-
const _sfc_main$
|
|
31239
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
31231
31240
|
__name: "SearchBoxProduct",
|
|
31232
31241
|
props: {
|
|
31233
31242
|
item: {},
|
|
@@ -31333,7 +31342,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31333
31342
|
style: normalizeStyle(imageStyleOverride.value)
|
|
31334
31343
|
}, [
|
|
31335
31344
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
31336
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31345
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31337
31346
|
class: "lupa-search-box-product-element",
|
|
31338
31347
|
key: element.key,
|
|
31339
31348
|
item: _ctx.item,
|
|
@@ -31343,10 +31352,10 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31343
31352
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
31344
31353
|
}), 128))
|
|
31345
31354
|
], 4),
|
|
31346
|
-
createBaseVNode("div", _hoisted_2$
|
|
31355
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
31347
31356
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
31348
31357
|
var _a25;
|
|
31349
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31358
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31350
31359
|
class: "lupa-search-box-product-element",
|
|
31351
31360
|
key: element.key,
|
|
31352
31361
|
item: _ctx.item,
|
|
@@ -31357,7 +31366,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31357
31366
|
((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
|
|
31358
31367
|
name: "badges",
|
|
31359
31368
|
fn: withCtx(() => [
|
|
31360
|
-
createVNode(_sfc_main$
|
|
31369
|
+
createVNode(_sfc_main$1k, {
|
|
31361
31370
|
options: badgeOptions.value,
|
|
31362
31371
|
position: "card"
|
|
31363
31372
|
}, null, 8, ["options"])
|
|
@@ -31373,7 +31382,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31373
31382
|
class: normalizeClass(`lupa-search-box-group-${group}`)
|
|
31374
31383
|
}, [
|
|
31375
31384
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
31376
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31385
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
31377
31386
|
class: "lupa-search-box-product-element",
|
|
31378
31387
|
key: element.key,
|
|
31379
31388
|
item: _ctx.item,
|
|
@@ -31386,7 +31395,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31386
31395
|
], 2);
|
|
31387
31396
|
}), 128)),
|
|
31388
31397
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
31389
|
-
createVNode(_sfc_main$
|
|
31398
|
+
createVNode(_sfc_main$1r, {
|
|
31390
31399
|
class: "lupa-search-box-product-element",
|
|
31391
31400
|
item: _ctx.item,
|
|
31392
31401
|
element: addToCartElement.value,
|
|
@@ -31395,7 +31404,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
31395
31404
|
isInStock: isInStock.value
|
|
31396
31405
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
31397
31406
|
])) : createCommentVNode("", true)
|
|
31398
|
-
], 16, _hoisted_1$
|
|
31407
|
+
], 16, _hoisted_1$15);
|
|
31399
31408
|
};
|
|
31400
31409
|
}
|
|
31401
31410
|
});
|
|
@@ -31467,8 +31476,8 @@ const useTrackingStore = /* @__PURE__ */ defineStore("tracking", () => {
|
|
|
31467
31476
|
};
|
|
31468
31477
|
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
31469
31478
|
});
|
|
31470
|
-
const _hoisted_1$
|
|
31471
|
-
const _sfc_main$
|
|
31479
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
31480
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
31472
31481
|
__name: "SearchBoxProducts",
|
|
31473
31482
|
props: {
|
|
31474
31483
|
items: {},
|
|
@@ -31579,7 +31588,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31579
31588
|
itemClicked: handleProductClick
|
|
31580
31589
|
});
|
|
31581
31590
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
|
|
31582
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31591
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
31583
31592
|
key: index,
|
|
31584
31593
|
item,
|
|
31585
31594
|
panelOptions: _ctx.panelOptions,
|
|
@@ -31592,7 +31601,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31592
31601
|
hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
|
|
31593
31602
|
key: 2,
|
|
31594
31603
|
innerHTML: _ctx.panelOptions.appendCustomHtml
|
|
31595
|
-
}, null, 8, _hoisted_1$
|
|
31604
|
+
}, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
|
|
31596
31605
|
showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
|
|
31597
31606
|
key: 3,
|
|
31598
31607
|
class: "lupa-search-box-expand",
|
|
@@ -31603,9 +31612,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
31603
31612
|
};
|
|
31604
31613
|
}
|
|
31605
31614
|
});
|
|
31606
|
-
const _hoisted_1$
|
|
31607
|
-
const _hoisted_2$
|
|
31608
|
-
const _sfc_main$
|
|
31615
|
+
const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
31616
|
+
const _hoisted_2$N = { key: 0 };
|
|
31617
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
31609
31618
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
31610
31619
|
props: {
|
|
31611
31620
|
options: {},
|
|
@@ -31636,13 +31645,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
31636
31645
|
emit2("goToResults");
|
|
31637
31646
|
};
|
|
31638
31647
|
return (_ctx, _cache) => {
|
|
31639
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31648
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
31640
31649
|
createBaseVNode("button", {
|
|
31641
31650
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
31642
31651
|
onClick: goToResults
|
|
31643
31652
|
}, [
|
|
31644
31653
|
createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
|
|
31645
|
-
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31654
|
+
totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
|
|
31646
31655
|
])
|
|
31647
31656
|
]);
|
|
31648
31657
|
};
|
|
@@ -31738,7 +31747,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
31738
31747
|
}
|
|
31739
31748
|
return parsedObject;
|
|
31740
31749
|
};
|
|
31741
|
-
const _sfc_main$
|
|
31750
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
31742
31751
|
__name: "SearchBoxProductsWrapper",
|
|
31743
31752
|
props: {
|
|
31744
31753
|
panel: {},
|
|
@@ -31809,7 +31818,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31809
31818
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
31810
31819
|
return (_ctx, _cache) => {
|
|
31811
31820
|
var _a25, _b25;
|
|
31812
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31821
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31813
31822
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31814
31823
|
panelOptions: _ctx.panel,
|
|
31815
31824
|
labels: _ctx.labels,
|
|
@@ -31819,7 +31828,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31819
31828
|
default: withCtx(() => {
|
|
31820
31829
|
var _a26;
|
|
31821
31830
|
return [
|
|
31822
|
-
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$
|
|
31831
|
+
showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
|
|
31823
31832
|
key: 0,
|
|
31824
31833
|
options: _ctx.searchBoxOptions,
|
|
31825
31834
|
panel: _ctx.panel,
|
|
@@ -31840,7 +31849,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
31840
31849
|
};
|
|
31841
31850
|
}
|
|
31842
31851
|
});
|
|
31843
|
-
const _sfc_main$
|
|
31852
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
31844
31853
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
31845
31854
|
props: {
|
|
31846
31855
|
panel: {},
|
|
@@ -31912,7 +31921,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
31912
31921
|
});
|
|
31913
31922
|
return (_ctx, _cache) => {
|
|
31914
31923
|
var _a25, _b25;
|
|
31915
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31924
|
+
return openBlock(), createBlock(_sfc_main$1i, {
|
|
31916
31925
|
items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
|
|
31917
31926
|
panelOptions: documentPanelOptions.value,
|
|
31918
31927
|
labels: _ctx.labels,
|
|
@@ -31930,8 +31939,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
31930
31939
|
};
|
|
31931
31940
|
}
|
|
31932
31941
|
});
|
|
31933
|
-
const _hoisted_1$
|
|
31934
|
-
const _hoisted_2$
|
|
31942
|
+
const _hoisted_1$12 = ["data-cy"];
|
|
31943
|
+
const _hoisted_2$M = {
|
|
31935
31944
|
key: 0,
|
|
31936
31945
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
31937
31946
|
};
|
|
@@ -31941,12 +31950,12 @@ const _hoisted_3$z = {
|
|
|
31941
31950
|
};
|
|
31942
31951
|
const __default__$2 = {
|
|
31943
31952
|
components: {
|
|
31944
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
31945
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
31946
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
31953
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1B,
|
|
31954
|
+
SearchBoxProductsWrapper: _sfc_main$1g,
|
|
31955
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$1f
|
|
31947
31956
|
}
|
|
31948
31957
|
};
|
|
31949
|
-
const _sfc_main$
|
|
31958
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
31950
31959
|
__name: "SearchBoxMainPanel",
|
|
31951
31960
|
props: {
|
|
31952
31961
|
options: {},
|
|
@@ -32137,7 +32146,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32137
32146
|
style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
|
|
32138
32147
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
32139
32148
|
}, [
|
|
32140
|
-
((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32149
|
+
((_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),
|
|
32141
32150
|
((_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),
|
|
32142
32151
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
32143
32152
|
key: 2,
|
|
@@ -32160,14 +32169,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32160
32169
|
key: "0"
|
|
32161
32170
|
} : void 0
|
|
32162
32171
|
]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
32163
|
-
], 14, _hoisted_1$
|
|
32172
|
+
], 14, _hoisted_1$12);
|
|
32164
32173
|
}), 128))
|
|
32165
32174
|
], 4),
|
|
32166
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
32175
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
|
|
32167
32176
|
key: 1,
|
|
32168
32177
|
options: _ctx.options
|
|
32169
32178
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
32170
|
-
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
32179
|
+
displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
|
|
32171
32180
|
key: 2,
|
|
32172
32181
|
labels: labels.value,
|
|
32173
32182
|
options: _ctx.options,
|
|
@@ -32178,7 +32187,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
32178
32187
|
id: "lupa-search-box-panel",
|
|
32179
32188
|
class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
|
|
32180
32189
|
}, [
|
|
32181
|
-
createVNode(_sfc_main$
|
|
32190
|
+
createVNode(_sfc_main$1F, {
|
|
32182
32191
|
options: _ctx.options.history,
|
|
32183
32192
|
history: history.value,
|
|
32184
32193
|
onGoToResults: handleGoToResults,
|
|
@@ -32203,8 +32212,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
32203
32212
|
const elements = getElements(triggers);
|
|
32204
32213
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
32205
32214
|
};
|
|
32206
|
-
const _hoisted_1
|
|
32207
|
-
const _sfc_main$
|
|
32215
|
+
const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
|
|
32216
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
32208
32217
|
__name: "SearchBox",
|
|
32209
32218
|
props: {
|
|
32210
32219
|
options: {},
|
|
@@ -32543,8 +32552,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
32543
32552
|
id: "lupa-search-box",
|
|
32544
32553
|
class: normalizeClass({ "lupa-search-box-opened": opened.value })
|
|
32545
32554
|
}, [
|
|
32546
|
-
createBaseVNode("div", _hoisted_1
|
|
32547
|
-
createVNode(_sfc_main$
|
|
32555
|
+
createBaseVNode("div", _hoisted_1$11, [
|
|
32556
|
+
createVNode(_sfc_main$1I, {
|
|
32548
32557
|
options: inputOptions.value,
|
|
32549
32558
|
suggestedValue: suggestedValue.value,
|
|
32550
32559
|
"can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
|
|
@@ -32557,7 +32566,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
32557
32566
|
onSearch: handleSearch,
|
|
32558
32567
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
32559
32568
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
32560
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
32569
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
32561
32570
|
key: 0,
|
|
32562
32571
|
options: panelOptions.value,
|
|
32563
32572
|
inputValue: inputValue.value,
|
|
@@ -32648,11 +32657,11 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
32648
32657
|
}
|
|
32649
32658
|
return searchParams;
|
|
32650
32659
|
};
|
|
32651
|
-
const _hoisted_1$
|
|
32660
|
+
const _hoisted_1$10 = {
|
|
32652
32661
|
key: 0,
|
|
32653
32662
|
id: "lupa-search-results-did-you-mean"
|
|
32654
32663
|
};
|
|
32655
|
-
const _hoisted_2$
|
|
32664
|
+
const _hoisted_2$L = {
|
|
32656
32665
|
key: 0,
|
|
32657
32666
|
"data-cy": "suggested-search-text-label"
|
|
32658
32667
|
};
|
|
@@ -32661,7 +32670,7 @@ const _hoisted_3$y = {
|
|
|
32661
32670
|
"data-cy": "did-you-mean-label"
|
|
32662
32671
|
};
|
|
32663
32672
|
const _hoisted_4$p = { key: 1 };
|
|
32664
|
-
const _sfc_main$
|
|
32673
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
32665
32674
|
__name: "SearchResultsDidYouMean",
|
|
32666
32675
|
props: {
|
|
32667
32676
|
labels: {}
|
|
@@ -32693,8 +32702,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
32693
32702
|
paramStore.goToResults({ searchText, facet });
|
|
32694
32703
|
};
|
|
32695
32704
|
return (_ctx, _cache) => {
|
|
32696
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32697
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32705
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
32706
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
32698
32707
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
32699
32708
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
32700
32709
|
createBaseVNode("span", {
|
|
@@ -32719,12 +32728,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
32719
32728
|
};
|
|
32720
32729
|
}
|
|
32721
32730
|
});
|
|
32722
|
-
const _hoisted_1
|
|
32731
|
+
const _hoisted_1$$ = {
|
|
32723
32732
|
key: 0,
|
|
32724
32733
|
class: "lupa-search-results-summary"
|
|
32725
32734
|
};
|
|
32726
|
-
const _hoisted_2$
|
|
32727
|
-
const _sfc_main$
|
|
32735
|
+
const _hoisted_2$K = ["innerHTML"];
|
|
32736
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
32728
32737
|
__name: "SearchResultsSummary",
|
|
32729
32738
|
props: {
|
|
32730
32739
|
label: {},
|
|
@@ -32739,8 +32748,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
32739
32748
|
return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
|
|
32740
32749
|
});
|
|
32741
32750
|
return (_ctx, _cache) => {
|
|
32742
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
32743
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
32751
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
32752
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
|
|
32744
32753
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
32745
32754
|
key: 0,
|
|
32746
32755
|
class: "lupa-filter-clear",
|
|
@@ -32751,7 +32760,130 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
32751
32760
|
};
|
|
32752
32761
|
}
|
|
32753
32762
|
});
|
|
32754
|
-
const
|
|
32763
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
32764
|
+
__name: "SkeletonBlock",
|
|
32765
|
+
props: {
|
|
32766
|
+
style: {}
|
|
32767
|
+
},
|
|
32768
|
+
setup(__props) {
|
|
32769
|
+
return (_ctx, _cache) => {
|
|
32770
|
+
return openBlock(), createElementBlock("div", {
|
|
32771
|
+
class: "lupa-skeleton-block-wrapper",
|
|
32772
|
+
style: normalizeStyle(_ctx.style)
|
|
32773
|
+
}, _cache[0] || (_cache[0] = [
|
|
32774
|
+
createBaseVNode("div", { class: "lupa-skeleton-block" }, [
|
|
32775
|
+
createBaseVNode("div", { class: "lupa-skeleton-block__shimmer" })
|
|
32776
|
+
], -1)
|
|
32777
|
+
]), 4);
|
|
32778
|
+
};
|
|
32779
|
+
}
|
|
32780
|
+
});
|
|
32781
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
32782
|
+
__name: "SkeletonText",
|
|
32783
|
+
props: {
|
|
32784
|
+
style: {},
|
|
32785
|
+
lines: { default: 1 }
|
|
32786
|
+
},
|
|
32787
|
+
setup(__props) {
|
|
32788
|
+
return (_ctx, _cache) => {
|
|
32789
|
+
return openBlock(), createElementBlock("div", {
|
|
32790
|
+
class: "lupa-skeleton-text-wrapper",
|
|
32791
|
+
style: normalizeStyle(_ctx.style)
|
|
32792
|
+
}, [
|
|
32793
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
|
|
32794
|
+
return openBlock(), createElementBlock("div", {
|
|
32795
|
+
key: i,
|
|
32796
|
+
class: "lupa-skeleton-line"
|
|
32797
|
+
}, _cache[0] || (_cache[0] = [
|
|
32798
|
+
createBaseVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
|
|
32799
|
+
]));
|
|
32800
|
+
}), 128))
|
|
32801
|
+
], 4);
|
|
32802
|
+
};
|
|
32803
|
+
}
|
|
32804
|
+
});
|
|
32805
|
+
const _hoisted_1$_ = {
|
|
32806
|
+
key: 1,
|
|
32807
|
+
class: "lupa-skeleton-text"
|
|
32808
|
+
};
|
|
32809
|
+
const _hoisted_2$J = {
|
|
32810
|
+
key: 2,
|
|
32811
|
+
class: "lupa-skeleton-blocks"
|
|
32812
|
+
};
|
|
32813
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
32814
|
+
__name: "LoadingBlock",
|
|
32815
|
+
props: {
|
|
32816
|
+
style: {},
|
|
32817
|
+
type: {},
|
|
32818
|
+
enabled: { type: Boolean },
|
|
32819
|
+
loading: { type: Boolean },
|
|
32820
|
+
count: {}
|
|
32821
|
+
},
|
|
32822
|
+
setup(__props) {
|
|
32823
|
+
return (_ctx, _cache) => {
|
|
32824
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
32825
|
+
createVNode(_sfc_main$19, {
|
|
32826
|
+
style: normalizeStyle(_ctx.style),
|
|
32827
|
+
lines: _ctx.count
|
|
32828
|
+
}, null, 8, ["style", "lines"])
|
|
32829
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
|
|
32830
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
32831
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
32832
|
+
key: n,
|
|
32833
|
+
style: normalizeStyle(_ctx.style)
|
|
32834
|
+
}, null, 8, ["style"]);
|
|
32835
|
+
}), 128))
|
|
32836
|
+
]));
|
|
32837
|
+
};
|
|
32838
|
+
}
|
|
32839
|
+
});
|
|
32840
|
+
const useLoadingSkeleton = () => {
|
|
32841
|
+
const paramsStore = useParamsStore();
|
|
32842
|
+
const optionsStore = useOptionsStore();
|
|
32843
|
+
const searchResultStore = useSearchResultStore();
|
|
32844
|
+
const { limit } = storeToRefs(paramsStore);
|
|
32845
|
+
const {
|
|
32846
|
+
searchResult,
|
|
32847
|
+
relatedQueriesResult,
|
|
32848
|
+
loading,
|
|
32849
|
+
loadingFacets: loadingFacetsBase,
|
|
32850
|
+
loadingRelatedQueries
|
|
32851
|
+
} = storeToRefs(searchResultStore);
|
|
32852
|
+
const { searchResultOptions } = storeToRefs(optionsStore);
|
|
32853
|
+
const skeletonEnabled = computed(() => {
|
|
32854
|
+
var _a25, _b25, _c, _d;
|
|
32855
|
+
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);
|
|
32856
|
+
});
|
|
32857
|
+
const relatedQueriesSkeletonEnabled = computed(() => {
|
|
32858
|
+
var _a25, _b25, _c, _d, _e;
|
|
32859
|
+
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);
|
|
32860
|
+
});
|
|
32861
|
+
const facetSkeletonEnabled = computed(() => {
|
|
32862
|
+
var _a25, _b25, _c, _d;
|
|
32863
|
+
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);
|
|
32864
|
+
});
|
|
32865
|
+
const loadingFacets = computed(() => {
|
|
32866
|
+
var _a25;
|
|
32867
|
+
if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
|
|
32868
|
+
return loadingFacetsBase.value;
|
|
32869
|
+
}
|
|
32870
|
+
return loading.value;
|
|
32871
|
+
});
|
|
32872
|
+
const loadingAny = computed(() => {
|
|
32873
|
+
return loading.value || loadingRelatedQueries.value || loadingFacets.value;
|
|
32874
|
+
});
|
|
32875
|
+
return {
|
|
32876
|
+
loading,
|
|
32877
|
+
loadingRelatedQueries,
|
|
32878
|
+
loadingFacets,
|
|
32879
|
+
loadingAny,
|
|
32880
|
+
limit,
|
|
32881
|
+
skeletonEnabled,
|
|
32882
|
+
relatedQueriesSkeletonEnabled,
|
|
32883
|
+
facetSkeletonEnabled
|
|
32884
|
+
};
|
|
32885
|
+
};
|
|
32886
|
+
const _hoisted_1$Z = {
|
|
32755
32887
|
key: 0,
|
|
32756
32888
|
class: "lupa-result-page-title",
|
|
32757
32889
|
"data-cy": "lupa-result-page-title"
|
|
@@ -32763,7 +32895,7 @@ const _hoisted_3$x = {
|
|
|
32763
32895
|
};
|
|
32764
32896
|
const _hoisted_4$o = { class: "lupa-results-total-count-number" };
|
|
32765
32897
|
const _hoisted_5$g = ["innerHTML"];
|
|
32766
|
-
const _sfc_main$
|
|
32898
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
32767
32899
|
__name: "SearchResultsTitle",
|
|
32768
32900
|
props: {
|
|
32769
32901
|
options: {},
|
|
@@ -32773,7 +32905,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
32773
32905
|
setup(__props) {
|
|
32774
32906
|
const props = __props;
|
|
32775
32907
|
const searchResultStore = useSearchResultStore();
|
|
32908
|
+
const paramsStore = useParamsStore();
|
|
32776
32909
|
const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
|
|
32910
|
+
const { skeletonEnabled, loading } = useLoadingSkeleton();
|
|
32911
|
+
const { query } = storeToRefs(paramsStore);
|
|
32777
32912
|
const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
|
|
32778
32913
|
const queryText = computed(() => {
|
|
32779
32914
|
return suggestedSearchText.value || currentQueryText.value;
|
|
@@ -32806,29 +32941,39 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
32806
32941
|
});
|
|
32807
32942
|
return (_ctx, _cache) => {
|
|
32808
32943
|
return openBlock(), createElementBlock("div", null, [
|
|
32809
|
-
|
|
32810
|
-
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
|
|
32823
|
-
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
32944
|
+
createVNode(_sfc_main$18, {
|
|
32945
|
+
type: "text",
|
|
32946
|
+
count: 1,
|
|
32947
|
+
enabled: unref(skeletonEnabled) && Boolean(unref(query)),
|
|
32948
|
+
loading: unref(loading)
|
|
32949
|
+
}, {
|
|
32950
|
+
default: withCtx(() => [
|
|
32951
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
|
|
32952
|
+
createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
|
|
32953
|
+
queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
32954
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
32955
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
32956
|
+
createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
|
|
32957
|
+
_cache[0] || (_cache[0] = createTextVNode(")"))
|
|
32958
|
+
])) : createCommentVNode("", true)
|
|
32959
|
+
])) : createCommentVNode("", true),
|
|
32960
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
32961
|
+
key: 1,
|
|
32962
|
+
label: summaryLabel.value
|
|
32963
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
32964
|
+
descriptionTop.value ? (openBlock(), createElementBlock("div", {
|
|
32965
|
+
key: 2,
|
|
32966
|
+
class: "lupa-result-page-description-top",
|
|
32967
|
+
innerHTML: descriptionTop.value
|
|
32968
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
|
|
32969
|
+
]),
|
|
32970
|
+
_: 1
|
|
32971
|
+
}, 8, ["enabled", "loading"])
|
|
32827
32972
|
]);
|
|
32828
32973
|
};
|
|
32829
32974
|
}
|
|
32830
32975
|
});
|
|
32831
|
-
const _hoisted_1$
|
|
32976
|
+
const _hoisted_1$Y = {
|
|
32832
32977
|
class: "lupa-current-filter-label",
|
|
32833
32978
|
"data-cy": "lupa-current-filter-label"
|
|
32834
32979
|
};
|
|
@@ -32836,7 +32981,7 @@ const _hoisted_2$H = {
|
|
|
32836
32981
|
class: "lupa-current-filter-value",
|
|
32837
32982
|
"data-cy": "lupa-current-filter-value"
|
|
32838
32983
|
};
|
|
32839
|
-
const _sfc_main$
|
|
32984
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
32840
32985
|
__name: "CurrentFilterDisplay",
|
|
32841
32986
|
props: {
|
|
32842
32987
|
filter: {}
|
|
@@ -32878,13 +33023,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
32878
33023
|
onClick: handleClick,
|
|
32879
33024
|
"aria-label": "Remove filter"
|
|
32880
33025
|
}, "⨉"),
|
|
32881
|
-
createBaseVNode("div", _hoisted_1$
|
|
33026
|
+
createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
32882
33027
|
createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
|
|
32883
33028
|
], 2);
|
|
32884
33029
|
};
|
|
32885
33030
|
}
|
|
32886
33031
|
});
|
|
32887
|
-
const _hoisted_1$
|
|
33032
|
+
const _hoisted_1$X = { class: "lupa-filter-title-text" };
|
|
32888
33033
|
const _hoisted_2$G = {
|
|
32889
33034
|
key: 0,
|
|
32890
33035
|
class: "lupa-filter-count"
|
|
@@ -32894,7 +33039,7 @@ const _hoisted_3$w = {
|
|
|
32894
33039
|
class: "filter-values"
|
|
32895
33040
|
};
|
|
32896
33041
|
const _hoisted_4$n = { class: "lupa-current-filter-list" };
|
|
32897
|
-
const _sfc_main$
|
|
33042
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
32898
33043
|
__name: "CurrentFilters",
|
|
32899
33044
|
props: {
|
|
32900
33045
|
options: {},
|
|
@@ -32974,7 +33119,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
32974
33119
|
class: "lupa-current-filter-title",
|
|
32975
33120
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
32976
33121
|
}, [
|
|
32977
|
-
createBaseVNode("div", _hoisted_1$
|
|
33122
|
+
createBaseVNode("div", _hoisted_1$X, [
|
|
32978
33123
|
createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
|
|
32979
33124
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
32980
33125
|
]),
|
|
@@ -32986,7 +33131,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
32986
33131
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
32987
33132
|
createBaseVNode("div", _hoisted_4$n, [
|
|
32988
33133
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
32989
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33134
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
32990
33135
|
key: filter.key + "_" + filter.value,
|
|
32991
33136
|
filter,
|
|
32992
33137
|
units: units.value,
|
|
@@ -33004,8 +33149,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
33004
33149
|
};
|
|
33005
33150
|
}
|
|
33006
33151
|
});
|
|
33007
|
-
const _hoisted_1$
|
|
33008
|
-
const _sfc_main$
|
|
33152
|
+
const _hoisted_1$W = ["href"];
|
|
33153
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
33009
33154
|
__name: "CategoryFilterItem",
|
|
33010
33155
|
props: {
|
|
33011
33156
|
options: {},
|
|
@@ -33042,12 +33187,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
33042
33187
|
"data-cy": "lupa-child-category-item",
|
|
33043
33188
|
href: urlLink.value,
|
|
33044
33189
|
onClick: handleNavigation
|
|
33045
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
33190
|
+
}, toDisplayString(title.value), 9, _hoisted_1$W)
|
|
33046
33191
|
], 2);
|
|
33047
33192
|
};
|
|
33048
33193
|
}
|
|
33049
33194
|
});
|
|
33050
|
-
const _hoisted_1$
|
|
33195
|
+
const _hoisted_1$V = {
|
|
33051
33196
|
class: "lupa-category-filter",
|
|
33052
33197
|
"data-cy": "lupa-category-filter"
|
|
33053
33198
|
};
|
|
@@ -33055,7 +33200,7 @@ const _hoisted_2$F = { class: "lupa-category-back" };
|
|
|
33055
33200
|
const _hoisted_3$v = ["href"];
|
|
33056
33201
|
const _hoisted_4$m = ["href"];
|
|
33057
33202
|
const _hoisted_5$f = { class: "lupa-child-category-list" };
|
|
33058
|
-
const _sfc_main$
|
|
33203
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
33059
33204
|
__name: "CategoryFilter",
|
|
33060
33205
|
props: {
|
|
33061
33206
|
options: {}
|
|
@@ -33143,7 +33288,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33143
33288
|
};
|
|
33144
33289
|
__expose({ fetch: fetch2 });
|
|
33145
33290
|
return (_ctx, _cache) => {
|
|
33146
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33291
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
33147
33292
|
createBaseVNode("div", _hoisted_2$F, [
|
|
33148
33293
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
33149
33294
|
key: 0,
|
|
@@ -33164,7 +33309,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33164
33309
|
], 2),
|
|
33165
33310
|
createBaseVNode("div", _hoisted_5$f, [
|
|
33166
33311
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
33167
|
-
return openBlock(), createBlock(_sfc_main$
|
|
33312
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
33168
33313
|
key: getCategoryKey(child),
|
|
33169
33314
|
item: child,
|
|
33170
33315
|
options: _ctx.options
|
|
@@ -33175,7 +33320,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
33175
33320
|
};
|
|
33176
33321
|
}
|
|
33177
33322
|
});
|
|
33178
|
-
const _hoisted_1$
|
|
33323
|
+
const _hoisted_1$U = {
|
|
33179
33324
|
class: "lupa-search-result-facet-term-values",
|
|
33180
33325
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
33181
33326
|
};
|
|
@@ -33190,7 +33335,7 @@ const _hoisted_7$4 = {
|
|
|
33190
33335
|
};
|
|
33191
33336
|
const _hoisted_8$2 = { key: 0 };
|
|
33192
33337
|
const _hoisted_9$2 = { key: 1 };
|
|
33193
|
-
const _sfc_main$
|
|
33338
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
33194
33339
|
__name: "TermFacet",
|
|
33195
33340
|
props: {
|
|
33196
33341
|
options: {},
|
|
@@ -33284,7 +33429,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
33284
33429
|
}
|
|
33285
33430
|
};
|
|
33286
33431
|
return (_ctx, _cache) => {
|
|
33287
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33432
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
33288
33433
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
33289
33434
|
key: 0,
|
|
33290
33435
|
class: "lupa-term-filter",
|
|
@@ -34233,7 +34378,7 @@ const roundToMaxDecimals = (value, maxPrecision = 0.1) => {
|
|
|
34233
34378
|
}
|
|
34234
34379
|
return out;
|
|
34235
34380
|
};
|
|
34236
|
-
const _hoisted_1$
|
|
34381
|
+
const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
|
|
34237
34382
|
const _hoisted_2$D = {
|
|
34238
34383
|
key: 0,
|
|
34239
34384
|
class: "lupa-stats-facet-summary"
|
|
@@ -34262,7 +34407,7 @@ const _hoisted_14 = {
|
|
|
34262
34407
|
key: 2,
|
|
34263
34408
|
class: "lupa-stats-slider-wrapper"
|
|
34264
34409
|
};
|
|
34265
|
-
const _sfc_main$
|
|
34410
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
34266
34411
|
__name: "StatsFacet",
|
|
34267
34412
|
props: {
|
|
34268
34413
|
options: {},
|
|
@@ -34481,7 +34626,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
34481
34626
|
}
|
|
34482
34627
|
);
|
|
34483
34628
|
return (_ctx, _cache) => {
|
|
34484
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34629
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
34485
34630
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
34486
34631
|
createBaseVNode("div", _hoisted_4$k, [
|
|
34487
34632
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -34546,7 +34691,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
34546
34691
|
};
|
|
34547
34692
|
}
|
|
34548
34693
|
});
|
|
34549
|
-
const _hoisted_1$
|
|
34694
|
+
const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
|
|
34550
34695
|
const _hoisted_2$C = { class: "lupa-term-label" };
|
|
34551
34696
|
const _hoisted_3$s = {
|
|
34552
34697
|
key: 0,
|
|
@@ -34556,7 +34701,7 @@ const _hoisted_4$j = {
|
|
|
34556
34701
|
key: 0,
|
|
34557
34702
|
class: "lupa-facet-level"
|
|
34558
34703
|
};
|
|
34559
|
-
const _sfc_main
|
|
34704
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
34560
34705
|
__name: "HierarchyFacetLevel",
|
|
34561
34706
|
props: {
|
|
34562
34707
|
options: {},
|
|
@@ -34610,7 +34755,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
34610
34755
|
"data-cy": "lupa-facet-term",
|
|
34611
34756
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
34612
34757
|
}, [
|
|
34613
|
-
createBaseVNode("div", _hoisted_1$
|
|
34758
|
+
createBaseVNode("div", _hoisted_1$S, [
|
|
34614
34759
|
createBaseVNode("span", {
|
|
34615
34760
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
34616
34761
|
}, null, 2)
|
|
@@ -34638,13 +34783,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
34638
34783
|
};
|
|
34639
34784
|
}
|
|
34640
34785
|
});
|
|
34641
|
-
const _hoisted_1$
|
|
34786
|
+
const _hoisted_1$R = {
|
|
34642
34787
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
34643
34788
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
34644
34789
|
};
|
|
34645
34790
|
const _hoisted_2$B = { key: 0 };
|
|
34646
34791
|
const _hoisted_3$r = ["placeholder"];
|
|
34647
|
-
const _sfc_main
|
|
34792
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
34648
34793
|
__name: "HierarchyFacet",
|
|
34649
34794
|
props: {
|
|
34650
34795
|
options: {},
|
|
@@ -34700,7 +34845,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34700
34845
|
showAll.value = false;
|
|
34701
34846
|
};
|
|
34702
34847
|
return (_ctx, _cache) => {
|
|
34703
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34848
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
34704
34849
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
34705
34850
|
withDirectives(createBaseVNode("input", {
|
|
34706
34851
|
class: "lupa-term-filter",
|
|
@@ -34712,7 +34857,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34712
34857
|
])
|
|
34713
34858
|
])) : createCommentVNode("", true),
|
|
34714
34859
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
34715
|
-
return openBlock(), createBlock(_sfc_main
|
|
34860
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
34716
34861
|
key: item.title,
|
|
34717
34862
|
options: _ctx.options,
|
|
34718
34863
|
item,
|
|
@@ -34736,7 +34881,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
34736
34881
|
};
|
|
34737
34882
|
}
|
|
34738
34883
|
});
|
|
34739
|
-
const _hoisted_1$
|
|
34884
|
+
const _hoisted_1$Q = { class: "lupa-facet-label-text" };
|
|
34740
34885
|
const _hoisted_2$A = {
|
|
34741
34886
|
key: 0,
|
|
34742
34887
|
class: "lupa-facet-content",
|
|
@@ -34744,12 +34889,12 @@ const _hoisted_2$A = {
|
|
|
34744
34889
|
};
|
|
34745
34890
|
const __default__$1 = {
|
|
34746
34891
|
components: {
|
|
34747
|
-
TermFacet: _sfc_main$
|
|
34748
|
-
StatsFacet: _sfc_main$
|
|
34749
|
-
HierarchyFacet: _sfc_main
|
|
34892
|
+
TermFacet: _sfc_main$12,
|
|
34893
|
+
StatsFacet: _sfc_main$11,
|
|
34894
|
+
HierarchyFacet: _sfc_main$$
|
|
34750
34895
|
}
|
|
34751
34896
|
};
|
|
34752
|
-
const _sfc_main$
|
|
34897
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
34753
34898
|
__name: "FacetDisplay",
|
|
34754
34899
|
props: {
|
|
34755
34900
|
options: {},
|
|
@@ -34896,7 +35041,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
34896
35041
|
"data-cy": "lupa-search-result-facet-label",
|
|
34897
35042
|
onClick: toggleFacet
|
|
34898
35043
|
}, [
|
|
34899
|
-
createBaseVNode("div", _hoisted_1$
|
|
35044
|
+
createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
|
|
34900
35045
|
createBaseVNode("div", {
|
|
34901
35046
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
34902
35047
|
}, null, 2)
|
|
@@ -35014,11 +35159,11 @@ const useSidebarToggle = () => {
|
|
|
35014
35159
|
handleSortSidebarToggle
|
|
35015
35160
|
};
|
|
35016
35161
|
};
|
|
35017
|
-
const _hoisted_1$
|
|
35162
|
+
const _hoisted_1$P = {
|
|
35018
35163
|
key: 0,
|
|
35019
35164
|
class: "lupa-desktop-toggle-filter-count"
|
|
35020
35165
|
};
|
|
35021
|
-
const _sfc_main$
|
|
35166
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
35022
35167
|
__name: "DesktopFacetToggle",
|
|
35023
35168
|
setup(__props) {
|
|
35024
35169
|
const {
|
|
@@ -35040,12 +35185,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
35040
35185
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35041
35186
|
}, [
|
|
35042
35187
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35043
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35188
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35044
35189
|
], 2);
|
|
35045
35190
|
};
|
|
35046
35191
|
}
|
|
35047
35192
|
});
|
|
35048
|
-
const _sfc_main$
|
|
35193
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
35049
35194
|
__name: "DesktopSortToggle",
|
|
35050
35195
|
setup(__props) {
|
|
35051
35196
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -35061,12 +35206,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
35061
35206
|
};
|
|
35062
35207
|
}
|
|
35063
35208
|
});
|
|
35064
|
-
const _hoisted_1$
|
|
35209
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
|
|
35065
35210
|
const _hoisted_2$z = {
|
|
35066
35211
|
key: 0,
|
|
35067
35212
|
class: "lupa-facets-title"
|
|
35068
35213
|
};
|
|
35069
|
-
const _sfc_main$
|
|
35214
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
35070
35215
|
__name: "FacetList",
|
|
35071
35216
|
props: {
|
|
35072
35217
|
options: {},
|
|
@@ -35108,14 +35253,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
35108
35253
|
};
|
|
35109
35254
|
return (_ctx, _cache) => {
|
|
35110
35255
|
var _a25;
|
|
35111
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35256
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
35112
35257
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
35113
35258
|
createBaseVNode("div", {
|
|
35114
35259
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
|
|
35115
35260
|
}, [
|
|
35116
35261
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
35117
35262
|
var _a26;
|
|
35118
|
-
return openBlock(), createBlock(_sfc_main$
|
|
35263
|
+
return openBlock(), createBlock(_sfc_main$_, {
|
|
35119
35264
|
key: facet.key,
|
|
35120
35265
|
facet,
|
|
35121
35266
|
currentFilters: currentFiltersValue.value,
|
|
@@ -35127,14 +35272,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
35127
35272
|
onExpand: unref(handleFilterSidebarToggle)
|
|
35128
35273
|
}, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
|
|
35129
35274
|
}), 128)),
|
|
35130
|
-
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$
|
|
35131
|
-
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$
|
|
35275
|
+
_ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
|
|
35276
|
+
_ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
|
|
35132
35277
|
], 2)
|
|
35133
35278
|
]);
|
|
35134
35279
|
};
|
|
35135
35280
|
}
|
|
35136
35281
|
});
|
|
35137
|
-
const _sfc_main$
|
|
35282
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
35138
35283
|
__name: "FacetsButton",
|
|
35139
35284
|
props: {
|
|
35140
35285
|
options: {}
|
|
@@ -35159,7 +35304,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
35159
35304
|
};
|
|
35160
35305
|
}
|
|
35161
35306
|
});
|
|
35162
|
-
const _sfc_main$
|
|
35307
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
35163
35308
|
__name: "FacetsClearButton",
|
|
35164
35309
|
props: {
|
|
35165
35310
|
options: {}
|
|
@@ -35184,8 +35329,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
35184
35329
|
};
|
|
35185
35330
|
}
|
|
35186
35331
|
});
|
|
35187
|
-
const _hoisted_1$
|
|
35188
|
-
const _sfc_main$
|
|
35332
|
+
const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
|
|
35333
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
35189
35334
|
__name: "Facets",
|
|
35190
35335
|
props: {
|
|
35191
35336
|
options: {},
|
|
@@ -35293,7 +35438,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35293
35438
|
return openBlock(), createElementBlock("div", {
|
|
35294
35439
|
class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
|
|
35295
35440
|
}, [
|
|
35296
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
35441
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
35297
35442
|
key: 0,
|
|
35298
35443
|
options: _ctx.options,
|
|
35299
35444
|
facets: regularFacets.value,
|
|
@@ -35303,13 +35448,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35303
35448
|
onSelect: handleFacetSelect,
|
|
35304
35449
|
onClear: clear
|
|
35305
35450
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
35306
|
-
createBaseVNode("div", _hoisted_1$
|
|
35307
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35451
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
35452
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
35308
35453
|
key: 0,
|
|
35309
35454
|
options: _ctx.options,
|
|
35310
35455
|
onClear: clearAll
|
|
35311
35456
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35312
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
35457
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
35313
35458
|
key: 1,
|
|
35314
35459
|
options: _ctx.options,
|
|
35315
35460
|
onFilter: filter
|
|
@@ -35319,12 +35464,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
35319
35464
|
};
|
|
35320
35465
|
}
|
|
35321
35466
|
});
|
|
35322
|
-
const _hoisted_1$
|
|
35467
|
+
const _hoisted_1$M = {
|
|
35323
35468
|
key: 0,
|
|
35324
35469
|
id: "lupa-search-result-filters",
|
|
35325
35470
|
class: "lupa-search-result-filters"
|
|
35326
35471
|
};
|
|
35327
|
-
const _sfc_main$
|
|
35472
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
35328
35473
|
__name: "SearchResultsFilters",
|
|
35329
35474
|
props: {
|
|
35330
35475
|
options: {},
|
|
@@ -35334,6 +35479,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
35334
35479
|
emits: ["filter"],
|
|
35335
35480
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35336
35481
|
const categoryFilters = ref(null);
|
|
35482
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35337
35483
|
const props = __props;
|
|
35338
35484
|
const emit2 = __emit;
|
|
35339
35485
|
const desktopFiltersVisible = computed(() => {
|
|
@@ -35362,30 +35508,42 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
35362
35508
|
};
|
|
35363
35509
|
__expose({ fetch: fetch2 });
|
|
35364
35510
|
return (_ctx, _cache) => {
|
|
35365
|
-
|
|
35366
|
-
|
|
35367
|
-
|
|
35368
|
-
|
|
35369
|
-
|
|
35370
|
-
|
|
35371
|
-
},
|
|
35372
|
-
|
|
35373
|
-
|
|
35374
|
-
|
|
35375
|
-
|
|
35376
|
-
|
|
35377
|
-
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35382
|
-
|
|
35383
|
-
|
|
35511
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
35512
|
+
createVNode(_sfc_main$18, {
|
|
35513
|
+
class: "lupa-skeleton-filters",
|
|
35514
|
+
count: 1,
|
|
35515
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35516
|
+
loading: unref(loadingFacets)
|
|
35517
|
+
}, {
|
|
35518
|
+
default: withCtx(() => {
|
|
35519
|
+
var _a25;
|
|
35520
|
+
return [
|
|
35521
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
|
|
35522
|
+
key: 0,
|
|
35523
|
+
options: _ctx.options.currentFilters,
|
|
35524
|
+
expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
|
|
35525
|
+
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
35526
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
|
|
35527
|
+
key: 1,
|
|
35528
|
+
options: _ctx.options.categories,
|
|
35529
|
+
ref_key: "categoryFilters",
|
|
35530
|
+
ref: categoryFilters
|
|
35531
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
35532
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35533
|
+
key: 2,
|
|
35534
|
+
options: _ctx.options.facets,
|
|
35535
|
+
"facet-style": _ctx.style,
|
|
35536
|
+
onFilter: filter
|
|
35537
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35538
|
+
];
|
|
35539
|
+
}),
|
|
35540
|
+
_: 1
|
|
35541
|
+
}, 8, ["enabled", "loading"])
|
|
35384
35542
|
])) : createCommentVNode("", true);
|
|
35385
35543
|
};
|
|
35386
35544
|
}
|
|
35387
35545
|
});
|
|
35388
|
-
const _hoisted_1$
|
|
35546
|
+
const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
|
|
35389
35547
|
const _hoisted_2$y = { class: "lupa-sidebar-top" };
|
|
35390
35548
|
const _hoisted_3$q = { class: "lupa-sidebar-title" };
|
|
35391
35549
|
const _hoisted_4$i = {
|
|
@@ -35393,7 +35551,7 @@ const _hoisted_4$i = {
|
|
|
35393
35551
|
class: "lupa-sidebar-filter-count"
|
|
35394
35552
|
};
|
|
35395
35553
|
const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
|
|
35396
|
-
const _sfc_main$
|
|
35554
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
35397
35555
|
__name: "MobileFilterSidebar",
|
|
35398
35556
|
props: {
|
|
35399
35557
|
options: {}
|
|
@@ -35432,7 +35590,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35432
35590
|
class: "lupa-sidebar-close",
|
|
35433
35591
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
35434
35592
|
}),
|
|
35435
|
-
createBaseVNode("div", _hoisted_1$
|
|
35593
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
35436
35594
|
createBaseVNode("div", _hoisted_2$y, [
|
|
35437
35595
|
createBaseVNode("div", _hoisted_3$q, [
|
|
35438
35596
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
@@ -35444,7 +35602,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35444
35602
|
})
|
|
35445
35603
|
]),
|
|
35446
35604
|
createBaseVNode("div", _hoisted_5$c, [
|
|
35447
|
-
createVNode(_sfc_main$
|
|
35605
|
+
createVNode(_sfc_main$T, {
|
|
35448
35606
|
options: _ctx.options,
|
|
35449
35607
|
expandable: isActiveFiltersExpanded.value,
|
|
35450
35608
|
style: "sidebar",
|
|
@@ -35456,14 +35614,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
35456
35614
|
};
|
|
35457
35615
|
}
|
|
35458
35616
|
});
|
|
35459
|
-
const _hoisted_1$
|
|
35617
|
+
const _hoisted_1$K = {
|
|
35618
|
+
key: 0,
|
|
35619
|
+
id: "lupa-search-results-breadcrumbs"
|
|
35620
|
+
};
|
|
35460
35621
|
const _hoisted_2$x = ["href", "onClick"];
|
|
35461
35622
|
const _hoisted_3$p = {
|
|
35462
35623
|
key: 1,
|
|
35463
35624
|
class: "lupa-search-results-breadcrumb-text"
|
|
35464
35625
|
};
|
|
35465
35626
|
const _hoisted_4$h = { key: 2 };
|
|
35466
|
-
const _sfc_main$
|
|
35627
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
35467
35628
|
__name: "SearchResultsBreadcrumbs",
|
|
35468
35629
|
props: {
|
|
35469
35630
|
breadcrumbs: {}
|
|
@@ -35481,6 +35642,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35481
35642
|
const hasEventRouting = computed(() => {
|
|
35482
35643
|
return searchResultOptions.value.routingBehavior === "event";
|
|
35483
35644
|
});
|
|
35645
|
+
const hasBreadcrumbs = computed(() => {
|
|
35646
|
+
var _a25;
|
|
35647
|
+
return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
|
|
35648
|
+
});
|
|
35484
35649
|
const getLabel = (label) => {
|
|
35485
35650
|
return addParamsToLabel(label, `'${currentQueryText.value}'`);
|
|
35486
35651
|
};
|
|
@@ -35488,7 +35653,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35488
35653
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
35489
35654
|
};
|
|
35490
35655
|
return (_ctx, _cache) => {
|
|
35491
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35656
|
+
return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
35492
35657
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
35493
35658
|
var _a25;
|
|
35494
35659
|
return openBlock(), createElementBlock("span", {
|
|
@@ -35507,16 +35672,16 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
35507
35672
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
|
|
35508
35673
|
]);
|
|
35509
35674
|
}), 128))
|
|
35510
|
-
]);
|
|
35675
|
+
])) : createCommentVNode("", true);
|
|
35511
35676
|
};
|
|
35512
35677
|
}
|
|
35513
35678
|
});
|
|
35514
|
-
const _hoisted_1$
|
|
35679
|
+
const _hoisted_1$J = {
|
|
35515
35680
|
key: 0,
|
|
35516
35681
|
id: "lupa-search-result-filters",
|
|
35517
35682
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
35518
35683
|
};
|
|
35519
|
-
const _sfc_main$
|
|
35684
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
35520
35685
|
__name: "FiltersTopDropdown",
|
|
35521
35686
|
props: {
|
|
35522
35687
|
options: {}
|
|
@@ -35524,6 +35689,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
35524
35689
|
emits: ["filter"],
|
|
35525
35690
|
setup(__props, { emit: __emit }) {
|
|
35526
35691
|
const props = __props;
|
|
35692
|
+
const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
|
|
35527
35693
|
const emit2 = __emit;
|
|
35528
35694
|
const filter = () => {
|
|
35529
35695
|
emit2("filter");
|
|
@@ -35533,21 +35699,33 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
35533
35699
|
return (_a25 = props.options.visible) != null ? _a25 : true;
|
|
35534
35700
|
});
|
|
35535
35701
|
return (_ctx, _cache) => {
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35543
|
-
|
|
35544
|
-
|
|
35702
|
+
return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
35703
|
+
createVNode(_sfc_main$18, {
|
|
35704
|
+
class: "lupa-skeleton-top-dropdown-filters",
|
|
35705
|
+
count: 1,
|
|
35706
|
+
enabled: unref(facetSkeletonEnabled),
|
|
35707
|
+
loading: unref(loadingFacets)
|
|
35708
|
+
}, {
|
|
35709
|
+
default: withCtx(() => {
|
|
35710
|
+
var _a25;
|
|
35711
|
+
return [
|
|
35712
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
|
|
35713
|
+
key: 0,
|
|
35714
|
+
options: _ctx.options.facets,
|
|
35715
|
+
"facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
|
|
35716
|
+
clearable: true,
|
|
35717
|
+
onFilter: filter
|
|
35718
|
+
}, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
|
|
35719
|
+
];
|
|
35720
|
+
}),
|
|
35721
|
+
_: 1
|
|
35722
|
+
}, 8, ["enabled", "loading"])
|
|
35545
35723
|
])) : createCommentVNode("", true);
|
|
35546
35724
|
};
|
|
35547
35725
|
}
|
|
35548
35726
|
});
|
|
35549
|
-
const _hoisted_1$
|
|
35550
|
-
const _sfc_main$
|
|
35727
|
+
const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
|
|
35728
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
35551
35729
|
__name: "SearchResultsLayoutSelection",
|
|
35552
35730
|
setup(__props) {
|
|
35553
35731
|
const searchResultStore = useSearchResultStore();
|
|
@@ -35558,7 +35736,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
35558
35736
|
searchResultStore.setLayout(layout2);
|
|
35559
35737
|
};
|
|
35560
35738
|
return (_ctx, _cache) => {
|
|
35561
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35739
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
35562
35740
|
createBaseVNode("div", {
|
|
35563
35741
|
class: normalizeClass([
|
|
35564
35742
|
"lupa-layout-selection-grid",
|
|
@@ -35580,11 +35758,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
35580
35758
|
};
|
|
35581
35759
|
}
|
|
35582
35760
|
});
|
|
35583
|
-
const _hoisted_1$
|
|
35761
|
+
const _hoisted_1$H = {
|
|
35584
35762
|
key: 0,
|
|
35585
35763
|
class: "lupa-mobile-toggle-filter-count"
|
|
35586
35764
|
};
|
|
35587
|
-
const _sfc_main$
|
|
35765
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
35588
35766
|
__name: "SearchResultsMobileToggle",
|
|
35589
35767
|
setup(__props) {
|
|
35590
35768
|
const {
|
|
@@ -35606,12 +35784,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
35606
35784
|
(...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
|
|
35607
35785
|
}, [
|
|
35608
35786
|
createTextVNode(toDisplayString(unref(label)) + " ", 1),
|
|
35609
|
-
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
35787
|
+
unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
35610
35788
|
], 2);
|
|
35611
35789
|
};
|
|
35612
35790
|
}
|
|
35613
35791
|
});
|
|
35614
|
-
const _sfc_main$
|
|
35792
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
35615
35793
|
__name: "SearchResultsMobileFilterClose",
|
|
35616
35794
|
props: {
|
|
35617
35795
|
label: {}
|
|
@@ -35631,7 +35809,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
35631
35809
|
};
|
|
35632
35810
|
}
|
|
35633
35811
|
});
|
|
35634
|
-
const _hoisted_1$
|
|
35812
|
+
const _hoisted_1$G = {
|
|
35635
35813
|
key: 0,
|
|
35636
35814
|
id: "lupa-search-results-page-select",
|
|
35637
35815
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -35644,7 +35822,7 @@ const _hoisted_3$o = {
|
|
|
35644
35822
|
key: 0,
|
|
35645
35823
|
class: "lupa-page-number-separator"
|
|
35646
35824
|
};
|
|
35647
|
-
const _sfc_main$
|
|
35825
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
35648
35826
|
__name: "SearchResultsPageSelect",
|
|
35649
35827
|
props: {
|
|
35650
35828
|
lastPageLabel: {},
|
|
@@ -35739,7 +35917,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
35739
35917
|
};
|
|
35740
35918
|
return (_ctx, _cache) => {
|
|
35741
35919
|
var _a25;
|
|
35742
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35920
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
35743
35921
|
showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
35744
35922
|
key: 0,
|
|
35745
35923
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -35814,7 +35992,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
35814
35992
|
};
|
|
35815
35993
|
}
|
|
35816
35994
|
});
|
|
35817
|
-
const _hoisted_1$
|
|
35995
|
+
const _hoisted_1$F = {
|
|
35818
35996
|
id: "lupa-search-results-page-size",
|
|
35819
35997
|
"data-cy": "lupa-search-results-page-size"
|
|
35820
35998
|
};
|
|
@@ -35825,7 +36003,7 @@ const _hoisted_3$n = {
|
|
|
35825
36003
|
};
|
|
35826
36004
|
const _hoisted_4$g = ["value", "aria-label"];
|
|
35827
36005
|
const _hoisted_5$b = ["value"];
|
|
35828
|
-
const _sfc_main$
|
|
36006
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
35829
36007
|
__name: "SearchResultsPageSize",
|
|
35830
36008
|
props: {
|
|
35831
36009
|
labels: {},
|
|
@@ -35856,7 +36034,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
35856
36034
|
};
|
|
35857
36035
|
return (_ctx, _cache) => {
|
|
35858
36036
|
var _a25, _b25, _c;
|
|
35859
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36037
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
35860
36038
|
createBaseVNode("div", _hoisted_2$v, [
|
|
35861
36039
|
createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
|
|
35862
36040
|
createBaseVNode("select", {
|
|
@@ -35948,7 +36126,7 @@ const useSorting = () => {
|
|
|
35948
36126
|
setSortValue
|
|
35949
36127
|
};
|
|
35950
36128
|
};
|
|
35951
|
-
const _hoisted_1$
|
|
36129
|
+
const _hoisted_1$E = {
|
|
35952
36130
|
key: 0,
|
|
35953
36131
|
id: "lupa-search-results-sort",
|
|
35954
36132
|
class: "lupa-search-results-sort"
|
|
@@ -35960,7 +36138,7 @@ const _hoisted_3$m = {
|
|
|
35960
36138
|
};
|
|
35961
36139
|
const _hoisted_4$f = ["aria-label"];
|
|
35962
36140
|
const _hoisted_5$a = ["value"];
|
|
35963
|
-
const _sfc_main$
|
|
36141
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
35964
36142
|
__name: "SearchResultsSort",
|
|
35965
36143
|
setup(__props) {
|
|
35966
36144
|
const {
|
|
@@ -35981,7 +36159,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
35981
36159
|
});
|
|
35982
36160
|
return (_ctx, _cache) => {
|
|
35983
36161
|
var _a25, _b25;
|
|
35984
|
-
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36162
|
+
return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
35985
36163
|
createBaseVNode("div", _hoisted_2$u, [
|
|
35986
36164
|
createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
|
|
35987
36165
|
withDirectives(createBaseVNode("select", {
|
|
@@ -36008,7 +36186,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
36008
36186
|
};
|
|
36009
36187
|
}
|
|
36010
36188
|
});
|
|
36011
|
-
const _sfc_main$
|
|
36189
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
36012
36190
|
__name: "SearchResultsSortDrawerToggle",
|
|
36013
36191
|
setup(__props) {
|
|
36014
36192
|
const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
|
|
@@ -36024,7 +36202,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
36024
36202
|
};
|
|
36025
36203
|
}
|
|
36026
36204
|
});
|
|
36027
|
-
const _hoisted_1$
|
|
36205
|
+
const _hoisted_1$D = { class: "lupa-toolbar-left" };
|
|
36028
36206
|
const _hoisted_2$t = {
|
|
36029
36207
|
key: 0,
|
|
36030
36208
|
class: "lupa-toolbar-right-title"
|
|
@@ -36039,7 +36217,7 @@ const _hoisted_7$2 = {
|
|
|
36039
36217
|
};
|
|
36040
36218
|
const _hoisted_8 = { key: 2 };
|
|
36041
36219
|
const _hoisted_9 = { key: 4 };
|
|
36042
|
-
const _sfc_main$
|
|
36220
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
36043
36221
|
__name: "SearchResultsToolbar",
|
|
36044
36222
|
props: {
|
|
36045
36223
|
options: {},
|
|
@@ -36152,16 +36330,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36152
36330
|
id: "lupa-search-results-toolbar",
|
|
36153
36331
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
36154
36332
|
}, [
|
|
36155
|
-
createBaseVNode("div", _hoisted_1$
|
|
36333
|
+
createBaseVNode("div", _hoisted_1$D, [
|
|
36156
36334
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
36157
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
36158
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
36335
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
|
|
36336
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
|
|
36159
36337
|
key: 3,
|
|
36160
36338
|
label: searchSummaryLabel.value,
|
|
36161
36339
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
36162
36340
|
onClear: handleClearAll
|
|
36163
36341
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
|
|
36164
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
36342
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
36165
36343
|
key: 5,
|
|
36166
36344
|
options: paginationOptions.value.pageSelect,
|
|
36167
36345
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -36170,19 +36348,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36170
36348
|
]),
|
|
36171
36349
|
createBaseVNode("div", _hoisted_6$4, [
|
|
36172
36350
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
36173
|
-
createVNode(_sfc_main$
|
|
36174
|
-
createVNode(_sfc_main$
|
|
36175
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
36351
|
+
createVNode(_sfc_main$O),
|
|
36352
|
+
createVNode(_sfc_main$J),
|
|
36353
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
|
|
36176
36354
|
key: 1,
|
|
36177
36355
|
options: paginationOptions.value.pageSize,
|
|
36178
36356
|
labels: paginationOptions.value.labels
|
|
36179
36357
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
36180
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
36358
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
36181
36359
|
key: 3,
|
|
36182
36360
|
options: sortOptions.value,
|
|
36183
36361
|
callbacks: callbacks.value
|
|
36184
36362
|
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
|
|
36185
|
-
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$
|
|
36363
|
+
showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
36186
36364
|
key: 5,
|
|
36187
36365
|
label: optionsValue.value.labels.mobileFilterCloseButton
|
|
36188
36366
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
@@ -36191,7 +36369,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
36191
36369
|
};
|
|
36192
36370
|
}
|
|
36193
36371
|
});
|
|
36194
|
-
const _sfc_main$
|
|
36372
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
36195
36373
|
__name: "SearchResultsProductImage",
|
|
36196
36374
|
props: {
|
|
36197
36375
|
item: {},
|
|
@@ -36199,7 +36377,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
36199
36377
|
},
|
|
36200
36378
|
setup(__props) {
|
|
36201
36379
|
return (_ctx, _cache) => {
|
|
36202
|
-
return openBlock(), createBlock(_sfc_main$
|
|
36380
|
+
return openBlock(), createBlock(_sfc_main$1A, {
|
|
36203
36381
|
item: _ctx.item,
|
|
36204
36382
|
options: _ctx.options,
|
|
36205
36383
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -36208,7 +36386,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
36208
36386
|
};
|
|
36209
36387
|
}
|
|
36210
36388
|
});
|
|
36211
|
-
const _hoisted_1$
|
|
36389
|
+
const _hoisted_1$C = ["title", "innerHTML"];
|
|
36212
36390
|
const _hoisted_2$s = ["title"];
|
|
36213
36391
|
const _hoisted_3$k = ["href", "innerHTML"];
|
|
36214
36392
|
const _hoisted_4$d = ["title"];
|
|
@@ -36217,7 +36395,7 @@ const _hoisted_5$8 = {
|
|
|
36217
36395
|
class: "lupa-search-results-product-title-text"
|
|
36218
36396
|
};
|
|
36219
36397
|
const _hoisted_6$3 = ["href"];
|
|
36220
|
-
const _sfc_main$
|
|
36398
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
36221
36399
|
__name: "SearchResultsProductTitle",
|
|
36222
36400
|
props: {
|
|
36223
36401
|
item: {},
|
|
@@ -36254,7 +36432,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
36254
36432
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36255
36433
|
title: sanitizedTitle.value,
|
|
36256
36434
|
innerHTML: sanitizedTitle.value
|
|
36257
|
-
}, null, 12, _hoisted_1$
|
|
36435
|
+
}, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
36258
36436
|
key: 1,
|
|
36259
36437
|
class: "lupa-search-results-product-title",
|
|
36260
36438
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -36283,8 +36461,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
36283
36461
|
};
|
|
36284
36462
|
}
|
|
36285
36463
|
});
|
|
36286
|
-
const _hoisted_1$
|
|
36287
|
-
const _sfc_main$
|
|
36464
|
+
const _hoisted_1$B = ["innerHTML"];
|
|
36465
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
36288
36466
|
__name: "SearchResultsProductDescription",
|
|
36289
36467
|
props: {
|
|
36290
36468
|
item: {},
|
|
@@ -36311,7 +36489,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
36311
36489
|
class: "lupa-search-results-product-description",
|
|
36312
36490
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
36313
36491
|
innerHTML: sanitizedDescription.value
|
|
36314
|
-
}, null, 12, _hoisted_1$
|
|
36492
|
+
}, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
|
|
36315
36493
|
key: 1,
|
|
36316
36494
|
class: "lupa-search-results-product-description",
|
|
36317
36495
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -36319,7 +36497,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
36319
36497
|
};
|
|
36320
36498
|
}
|
|
36321
36499
|
});
|
|
36322
|
-
const _hoisted_1$
|
|
36500
|
+
const _hoisted_1$A = { id: "lupa-search-results-rating" };
|
|
36323
36501
|
const _hoisted_2$r = { class: "lupa-ratings" };
|
|
36324
36502
|
const _hoisted_3$j = { class: "lupa-ratings-base" };
|
|
36325
36503
|
const _hoisted_4$c = ["innerHTML"];
|
|
@@ -36327,7 +36505,7 @@ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
|
|
|
36327
36505
|
const _hoisted_6$2 = ["innerHTML"];
|
|
36328
36506
|
const _hoisted_7$1 = ["href"];
|
|
36329
36507
|
const STAR_COUNT = 5;
|
|
36330
|
-
const _sfc_main$
|
|
36508
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
36331
36509
|
__name: "SearchResultsProductRating",
|
|
36332
36510
|
props: {
|
|
36333
36511
|
item: {},
|
|
@@ -36364,7 +36542,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
36364
36542
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
36365
36543
|
});
|
|
36366
36544
|
return (_ctx, _cache) => {
|
|
36367
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36545
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
36368
36546
|
createBaseVNode("div", _hoisted_2$r, [
|
|
36369
36547
|
createBaseVNode("div", _hoisted_3$j, [
|
|
36370
36548
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -36398,11 +36576,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
36398
36576
|
};
|
|
36399
36577
|
}
|
|
36400
36578
|
});
|
|
36401
|
-
const _hoisted_1$
|
|
36579
|
+
const _hoisted_1$z = {
|
|
36402
36580
|
class: "lupa-search-results-product-regular-price",
|
|
36403
36581
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
36404
36582
|
};
|
|
36405
|
-
const _sfc_main$
|
|
36583
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
36406
36584
|
__name: "SearchResultsProductRegularPrice",
|
|
36407
36585
|
props: {
|
|
36408
36586
|
item: {},
|
|
@@ -36424,11 +36602,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
36424
36602
|
);
|
|
36425
36603
|
});
|
|
36426
36604
|
return (_ctx, _cache) => {
|
|
36427
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36605
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
|
|
36428
36606
|
};
|
|
36429
36607
|
}
|
|
36430
36608
|
});
|
|
36431
|
-
const _sfc_main$
|
|
36609
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
36432
36610
|
__name: "SearchResultsProductPrice",
|
|
36433
36611
|
props: {
|
|
36434
36612
|
item: {},
|
|
@@ -36462,12 +36640,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
36462
36640
|
};
|
|
36463
36641
|
}
|
|
36464
36642
|
});
|
|
36465
|
-
const _hoisted_1$
|
|
36643
|
+
const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
36466
36644
|
const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
|
|
36467
36645
|
const _hoisted_3$i = ["disabled"];
|
|
36468
36646
|
const _hoisted_4$b = ["href"];
|
|
36469
36647
|
const _hoisted_5$6 = ["id", "disabled"];
|
|
36470
|
-
const _sfc_main$
|
|
36648
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
36471
36649
|
__name: "SearchResultsProductAddToCart",
|
|
36472
36650
|
props: {
|
|
36473
36651
|
item: {},
|
|
@@ -36526,7 +36704,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
36526
36704
|
loading.value = false;
|
|
36527
36705
|
});
|
|
36528
36706
|
return (_ctx, _cache) => {
|
|
36529
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36707
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
36530
36708
|
createBaseVNode("div", _hoisted_2$q, [
|
|
36531
36709
|
hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
36532
36710
|
key: 0,
|
|
@@ -36549,12 +36727,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
36549
36727
|
};
|
|
36550
36728
|
}
|
|
36551
36729
|
});
|
|
36552
|
-
const _hoisted_1$
|
|
36730
|
+
const _hoisted_1$x = ["innerHTML"];
|
|
36553
36731
|
const _hoisted_2$p = { key: 0 };
|
|
36554
36732
|
const _hoisted_3$h = { key: 1 };
|
|
36555
36733
|
const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
|
|
36556
36734
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
36557
|
-
const _sfc_main$
|
|
36735
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
36558
36736
|
__name: "SearchResultsProductCustom",
|
|
36559
36737
|
props: {
|
|
36560
36738
|
item: {},
|
|
@@ -36596,7 +36774,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
36596
36774
|
key: 0,
|
|
36597
36775
|
class: className.value,
|
|
36598
36776
|
innerHTML: text.value
|
|
36599
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36777
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
36600
36778
|
key: 1,
|
|
36601
36779
|
class: className.value
|
|
36602
36780
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
|
|
@@ -36608,8 +36786,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
36608
36786
|
};
|
|
36609
36787
|
}
|
|
36610
36788
|
});
|
|
36611
|
-
const _hoisted_1$
|
|
36612
|
-
const _sfc_main$
|
|
36789
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
36790
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
36613
36791
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
36614
36792
|
props: {
|
|
36615
36793
|
item: {},
|
|
@@ -36645,15 +36823,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
36645
36823
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
36646
36824
|
class: className.value,
|
|
36647
36825
|
innerHTML: text.value
|
|
36648
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$
|
|
36826
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
|
|
36649
36827
|
};
|
|
36650
36828
|
}
|
|
36651
36829
|
});
|
|
36652
|
-
const _hoisted_1$
|
|
36830
|
+
const _hoisted_1$v = { id: "lupa-search-results-rating" };
|
|
36653
36831
|
const _hoisted_2$o = ["innerHTML"];
|
|
36654
36832
|
const _hoisted_3$g = { class: "lupa-ratings" };
|
|
36655
36833
|
const _hoisted_4$9 = ["href"];
|
|
36656
|
-
const _sfc_main$
|
|
36834
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
36657
36835
|
__name: "SearchResultsProductSingleStarRating",
|
|
36658
36836
|
props: {
|
|
36659
36837
|
item: {},
|
|
@@ -36681,7 +36859,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
36681
36859
|
return RATING_STAR_HTML;
|
|
36682
36860
|
});
|
|
36683
36861
|
return (_ctx, _cache) => {
|
|
36684
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36862
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
36685
36863
|
createBaseVNode("div", {
|
|
36686
36864
|
innerHTML: star.value,
|
|
36687
36865
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -36697,19 +36875,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
36697
36875
|
});
|
|
36698
36876
|
const __default__ = {
|
|
36699
36877
|
components: {
|
|
36700
|
-
SearchResultsProductImage: _sfc_main$
|
|
36701
|
-
SearchResultsProductTitle: _sfc_main$
|
|
36702
|
-
SearchResultsProductDescription: _sfc_main$
|
|
36703
|
-
SearchResultsProductRating: _sfc_main$
|
|
36704
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
36705
|
-
SearchResultsProductPrice: _sfc_main$
|
|
36706
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
36707
|
-
SearchResultsProductCustom: _sfc_main$
|
|
36708
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
36709
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
36710
|
-
}
|
|
36711
|
-
};
|
|
36712
|
-
const _sfc_main$
|
|
36878
|
+
SearchResultsProductImage: _sfc_main$H,
|
|
36879
|
+
SearchResultsProductTitle: _sfc_main$G,
|
|
36880
|
+
SearchResultsProductDescription: _sfc_main$F,
|
|
36881
|
+
SearchResultsProductRating: _sfc_main$E,
|
|
36882
|
+
SearchResultsProductRegularPrice: _sfc_main$D,
|
|
36883
|
+
SearchResultsProductPrice: _sfc_main$C,
|
|
36884
|
+
SearchResultsProductAddToCart: _sfc_main$B,
|
|
36885
|
+
SearchResultsProductCustom: _sfc_main$A,
|
|
36886
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$z,
|
|
36887
|
+
SearchResultsProductSingleStarRating: _sfc_main$y
|
|
36888
|
+
}
|
|
36889
|
+
};
|
|
36890
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
36713
36891
|
__name: "SearchResultsProductCardElement",
|
|
36714
36892
|
props: {
|
|
36715
36893
|
item: {},
|
|
@@ -36787,13 +36965,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
36787
36965
|
};
|
|
36788
36966
|
}
|
|
36789
36967
|
}));
|
|
36790
|
-
const _hoisted_1$
|
|
36968
|
+
const _hoisted_1$u = ["href"];
|
|
36791
36969
|
const _hoisted_2$n = {
|
|
36792
36970
|
key: 0,
|
|
36793
36971
|
class: "lupa-out-of-stock"
|
|
36794
36972
|
};
|
|
36795
36973
|
const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
|
|
36796
|
-
const _sfc_main$
|
|
36974
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
36797
36975
|
__name: "SearchResultsProductCard",
|
|
36798
36976
|
props: {
|
|
36799
36977
|
product: {},
|
|
@@ -36970,7 +37148,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36970
37148
|
default: withCtx(() => {
|
|
36971
37149
|
var _a25;
|
|
36972
37150
|
return [
|
|
36973
|
-
createVNode(_sfc_main$
|
|
37151
|
+
createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
36974
37152
|
createBaseVNode("div", {
|
|
36975
37153
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
36976
37154
|
}, [
|
|
@@ -36980,7 +37158,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36980
37158
|
onClick: handleNavigation
|
|
36981
37159
|
}, [
|
|
36982
37160
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
36983
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37161
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
36984
37162
|
class: "lupa-search-results-product-element",
|
|
36985
37163
|
item: _ctx.product,
|
|
36986
37164
|
element,
|
|
@@ -36991,16 +37169,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36991
37169
|
onProductEvent: handleProductEvent
|
|
36992
37170
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
36993
37171
|
}), 128)),
|
|
36994
|
-
createVNode(_sfc_main$
|
|
37172
|
+
createVNode(_sfc_main$1k, {
|
|
36995
37173
|
options: badgesOptions.value,
|
|
36996
37174
|
position: "image",
|
|
36997
37175
|
class: "lupa-image-badges"
|
|
36998
37176
|
}, null, 8, ["options"]),
|
|
36999
37177
|
((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
37000
|
-
], 8, _hoisted_1$
|
|
37178
|
+
], 8, _hoisted_1$u),
|
|
37001
37179
|
createBaseVNode("div", _hoisted_3$f, [
|
|
37002
37180
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
37003
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37181
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37004
37182
|
class: "lupa-search-results-product-element",
|
|
37005
37183
|
item: _ctx.product,
|
|
37006
37184
|
element,
|
|
@@ -37018,7 +37196,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37018
37196
|
class: normalizeClass("lupa-element-group-" + group)
|
|
37019
37197
|
}, [
|
|
37020
37198
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
37021
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37199
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
37022
37200
|
class: "lupa-search-results-product-element",
|
|
37023
37201
|
item: _ctx.product,
|
|
37024
37202
|
element,
|
|
@@ -37039,7 +37217,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37039
37217
|
};
|
|
37040
37218
|
}
|
|
37041
37219
|
});
|
|
37042
|
-
const _hoisted_1$
|
|
37220
|
+
const _hoisted_1$t = {
|
|
37043
37221
|
id: "lupa-search-results-similar-queries",
|
|
37044
37222
|
"data-cy": "lupa-search-results-similar-queries"
|
|
37045
37223
|
};
|
|
@@ -37055,7 +37233,7 @@ const _hoisted_7 = {
|
|
|
37055
37233
|
class: "lupa-products",
|
|
37056
37234
|
"data-cy": "lupa-products"
|
|
37057
37235
|
};
|
|
37058
|
-
const _sfc_main$
|
|
37236
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
37059
37237
|
__name: "SearchResultsSimilarQueries",
|
|
37060
37238
|
props: {
|
|
37061
37239
|
labels: {},
|
|
@@ -37093,7 +37271,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37093
37271
|
};
|
|
37094
37272
|
};
|
|
37095
37273
|
return (_ctx, _cache) => {
|
|
37096
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37274
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
37097
37275
|
createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
37098
37276
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
37099
37277
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -37113,7 +37291,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37113
37291
|
]),
|
|
37114
37292
|
createBaseVNode("div", _hoisted_7, [
|
|
37115
37293
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
37116
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37294
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37117
37295
|
style: normalizeStyle(_ctx.columnSize),
|
|
37118
37296
|
key: getDocumentKey(index2, product),
|
|
37119
37297
|
product,
|
|
@@ -37128,7 +37306,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37128
37306
|
};
|
|
37129
37307
|
}
|
|
37130
37308
|
});
|
|
37131
|
-
const _hoisted_1$
|
|
37309
|
+
const _hoisted_1$s = {
|
|
37132
37310
|
key: 0,
|
|
37133
37311
|
class: "lupa-results-additional-panel"
|
|
37134
37312
|
};
|
|
@@ -37136,7 +37314,7 @@ const _hoisted_2$l = {
|
|
|
37136
37314
|
class: "lupa-results-additional-panel-items",
|
|
37137
37315
|
"data-cy": "lupa-results-additional-panel-items"
|
|
37138
37316
|
};
|
|
37139
|
-
const _sfc_main$
|
|
37317
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
37140
37318
|
__name: "AdditionalPanel",
|
|
37141
37319
|
props: {
|
|
37142
37320
|
panel: {},
|
|
@@ -37209,10 +37387,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
37209
37387
|
handleQueryChange();
|
|
37210
37388
|
});
|
|
37211
37389
|
return (_ctx, _cache) => {
|
|
37212
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37390
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
37213
37391
|
createBaseVNode("div", _hoisted_2$l, [
|
|
37214
37392
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
37215
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37393
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37216
37394
|
key: index,
|
|
37217
37395
|
product: item,
|
|
37218
37396
|
options: _ctx.panel,
|
|
@@ -37230,11 +37408,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
37230
37408
|
};
|
|
37231
37409
|
}
|
|
37232
37410
|
});
|
|
37233
|
-
const _hoisted_1$
|
|
37411
|
+
const _hoisted_1$r = {
|
|
37234
37412
|
key: 0,
|
|
37235
37413
|
class: "lupa-results-additional-panels"
|
|
37236
37414
|
};
|
|
37237
|
-
const _sfc_main$
|
|
37415
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
37238
37416
|
__name: "AdditionalPanels",
|
|
37239
37417
|
props: {
|
|
37240
37418
|
options: {},
|
|
@@ -37251,9 +37429,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
37251
37429
|
return locationPanels.value.length > 0;
|
|
37252
37430
|
});
|
|
37253
37431
|
return (_ctx, _cache) => {
|
|
37254
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37432
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
37255
37433
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
37256
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37434
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
37257
37435
|
key: panel.queryKey,
|
|
37258
37436
|
panel,
|
|
37259
37437
|
options: _ctx.sdkOptions
|
|
@@ -37270,11 +37448,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
37270
37448
|
}
|
|
37271
37449
|
return target2;
|
|
37272
37450
|
};
|
|
37273
|
-
const _sfc_main$
|
|
37274
|
-
const _hoisted_1$
|
|
37451
|
+
const _sfc_main$s = {};
|
|
37452
|
+
const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
|
|
37275
37453
|
const _hoisted_2$k = { class: "lupa-spinner" };
|
|
37276
37454
|
function _sfc_render(_ctx, _cache) {
|
|
37277
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37455
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
37278
37456
|
createBaseVNode("div", _hoisted_2$k, [
|
|
37279
37457
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
37280
37458
|
return createBaseVNode("div", { key: x });
|
|
@@ -37282,8 +37460,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
37282
37460
|
])
|
|
37283
37461
|
]);
|
|
37284
37462
|
}
|
|
37285
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37286
|
-
const _hoisted_1$
|
|
37463
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
37464
|
+
const _hoisted_1$p = {
|
|
37287
37465
|
id: "lupa-search-results-similar-results",
|
|
37288
37466
|
"data-cy": "lupa-search-results-similar-results"
|
|
37289
37467
|
};
|
|
@@ -37292,7 +37470,7 @@ const _hoisted_3$d = {
|
|
|
37292
37470
|
class: "lupa-products",
|
|
37293
37471
|
"data-cy": "lupa-products"
|
|
37294
37472
|
};
|
|
37295
|
-
const _sfc_main$
|
|
37473
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
37296
37474
|
__name: "SearchResultsSimilarResults",
|
|
37297
37475
|
props: {
|
|
37298
37476
|
columnSize: {},
|
|
@@ -37313,11 +37491,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
37313
37491
|
};
|
|
37314
37492
|
});
|
|
37315
37493
|
return (_ctx, _cache) => {
|
|
37316
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37494
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
37317
37495
|
createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
37318
37496
|
createBaseVNode("div", _hoisted_3$d, [
|
|
37319
37497
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
37320
|
-
return openBlock(), createBlock(_sfc_main$
|
|
37498
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
37321
37499
|
style: normalizeStyle(_ctx.columnSize),
|
|
37322
37500
|
key: getDocumentKey(index, product),
|
|
37323
37501
|
product,
|
|
@@ -37438,7 +37616,7 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
|
|
|
37438
37616
|
return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
|
|
37439
37617
|
}
|
|
37440
37618
|
});
|
|
37441
|
-
const _hoisted_1$
|
|
37619
|
+
const _hoisted_1$o = { class: "lupa-related-query-item" };
|
|
37442
37620
|
const _hoisted_2$i = { class: "lupa-related-query-image" };
|
|
37443
37621
|
const _hoisted_3$c = { class: "lupa-related-query-label" };
|
|
37444
37622
|
const _hoisted_4$7 = { class: "lupa-related-query-title" };
|
|
@@ -37446,7 +37624,7 @@ const _hoisted_5$3 = {
|
|
|
37446
37624
|
key: 0,
|
|
37447
37625
|
class: "lupa-related-query-count"
|
|
37448
37626
|
};
|
|
37449
|
-
const _sfc_main$
|
|
37627
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
37450
37628
|
__name: "RelatedQueryPanel",
|
|
37451
37629
|
props: {
|
|
37452
37630
|
query: {},
|
|
@@ -37543,9 +37721,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
37543
37721
|
});
|
|
37544
37722
|
return (_ctx, _cache) => {
|
|
37545
37723
|
var _a25;
|
|
37546
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37724
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
37547
37725
|
createBaseVNode("div", _hoisted_2$i, [
|
|
37548
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
37726
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37549
37727
|
key: 0,
|
|
37550
37728
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37551
37729
|
"image-class": "lupa-related-query-image",
|
|
@@ -37561,7 +37739,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
37561
37739
|
};
|
|
37562
37740
|
}
|
|
37563
37741
|
});
|
|
37564
|
-
const _hoisted_1$
|
|
37742
|
+
const _hoisted_1$n = {
|
|
37565
37743
|
key: 0,
|
|
37566
37744
|
class: "lupa-related-queries"
|
|
37567
37745
|
};
|
|
@@ -37570,7 +37748,7 @@ const _hoisted_2$h = {
|
|
|
37570
37748
|
class: "lupa-related-queries-title"
|
|
37571
37749
|
};
|
|
37572
37750
|
const _hoisted_3$b = ["onClick"];
|
|
37573
|
-
const _sfc_main$
|
|
37751
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
37574
37752
|
__name: "RelatedQueries",
|
|
37575
37753
|
props: {
|
|
37576
37754
|
options: {}
|
|
@@ -37664,7 +37842,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
37664
37842
|
};
|
|
37665
37843
|
return (_ctx, _cache) => {
|
|
37666
37844
|
var _a25, _b25, _c, _d;
|
|
37667
|
-
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37845
|
+
return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
37668
37846
|
((_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),
|
|
37669
37847
|
createBaseVNode("ul", null, [
|
|
37670
37848
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37675,7 +37853,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
37675
37853
|
createBaseVNode("a", {
|
|
37676
37854
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37677
37855
|
}, [
|
|
37678
|
-
createVNode(_sfc_main$
|
|
37856
|
+
createVNode(_sfc_main$q, {
|
|
37679
37857
|
"source-key": query.key,
|
|
37680
37858
|
options: _ctx.options,
|
|
37681
37859
|
query: query.value,
|
|
@@ -37719,13 +37897,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
|
|
|
37719
37897
|
}
|
|
37720
37898
|
return null;
|
|
37721
37899
|
};
|
|
37722
|
-
const _hoisted_1$
|
|
37900
|
+
const _hoisted_1$m = {
|
|
37723
37901
|
key: 0,
|
|
37724
37902
|
class: "lupa-redirection-suggestion"
|
|
37725
37903
|
};
|
|
37726
37904
|
const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
|
|
37727
37905
|
const _hoisted_3$a = ["href"];
|
|
37728
|
-
const _sfc_main$
|
|
37906
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
37729
37907
|
__name: "RedirectionSuggestions",
|
|
37730
37908
|
props: {
|
|
37731
37909
|
options: {}
|
|
@@ -37748,7 +37926,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37748
37926
|
)
|
|
37749
37927
|
);
|
|
37750
37928
|
return (_ctx, _cache) => {
|
|
37751
|
-
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37929
|
+
return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
37752
37930
|
createBaseVNode("h4", _hoisted_2$g, [
|
|
37753
37931
|
createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
|
|
37754
37932
|
])
|
|
@@ -37756,11 +37934,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37756
37934
|
};
|
|
37757
37935
|
}
|
|
37758
37936
|
});
|
|
37759
|
-
const _hoisted_1$
|
|
37937
|
+
const _hoisted_1$l = {
|
|
37760
37938
|
key: 0,
|
|
37761
37939
|
class: "lupa-refiners-loading-notice"
|
|
37762
37940
|
};
|
|
37763
|
-
const _sfc_main$
|
|
37941
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37764
37942
|
__name: "RefinersLoadingNotice",
|
|
37765
37943
|
props: {
|
|
37766
37944
|
labels: {}
|
|
@@ -37771,14 +37949,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
37771
37949
|
const props = __props;
|
|
37772
37950
|
const label = computed(() => props.labels.refinersLoadingNotice);
|
|
37773
37951
|
return (_ctx, _cache) => {
|
|
37774
|
-
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37952
|
+
return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
37775
37953
|
createBaseVNode("p", null, toDisplayString(label.value), 1),
|
|
37776
37954
|
createVNode(Spinner)
|
|
37777
37955
|
])) : createCommentVNode("", true);
|
|
37778
37956
|
};
|
|
37779
37957
|
}
|
|
37780
37958
|
});
|
|
37781
|
-
const _hoisted_1$
|
|
37959
|
+
const _hoisted_1$k = { class: "lupa-related-query-item" };
|
|
37782
37960
|
const _hoisted_2$f = { class: "lupa-related-query-image" };
|
|
37783
37961
|
const _hoisted_3$9 = { class: "lupa-related-query-label" };
|
|
37784
37962
|
const _hoisted_4$6 = { class: "lupa-related-query-title" };
|
|
@@ -37786,7 +37964,7 @@ const _hoisted_5$2 = {
|
|
|
37786
37964
|
key: 0,
|
|
37787
37965
|
class: "lupa-related-query-count"
|
|
37788
37966
|
};
|
|
37789
|
-
const _sfc_main$
|
|
37967
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37790
37968
|
__name: "RelatedQueryPanelApi",
|
|
37791
37969
|
props: {
|
|
37792
37970
|
relatedQuery: {},
|
|
@@ -37818,9 +37996,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
37818
37996
|
});
|
|
37819
37997
|
return (_ctx, _cache) => {
|
|
37820
37998
|
var _a25;
|
|
37821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
37999
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
37822
38000
|
createBaseVNode("div", _hoisted_2$f, [
|
|
37823
|
-
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$
|
|
38001
|
+
itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
|
|
37824
38002
|
key: 0,
|
|
37825
38003
|
"wrapper-class": "lupa-related-query-image-wrapper",
|
|
37826
38004
|
"image-class": "lupa-related-query-image",
|
|
@@ -37836,7 +38014,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
37836
38014
|
};
|
|
37837
38015
|
}
|
|
37838
38016
|
});
|
|
37839
|
-
const _hoisted_1$
|
|
38017
|
+
const _hoisted_1$j = {
|
|
37840
38018
|
key: 0,
|
|
37841
38019
|
class: "lupa-related-queries"
|
|
37842
38020
|
};
|
|
@@ -37845,7 +38023,7 @@ const _hoisted_2$e = {
|
|
|
37845
38023
|
class: "lupa-related-queries-title"
|
|
37846
38024
|
};
|
|
37847
38025
|
const _hoisted_3$8 = ["onClick"];
|
|
37848
|
-
const _sfc_main$
|
|
38026
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37849
38027
|
__name: "RelatedQueriesApi",
|
|
37850
38028
|
props: {
|
|
37851
38029
|
options: {}
|
|
@@ -37897,7 +38075,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37897
38075
|
};
|
|
37898
38076
|
return (_ctx, _cache) => {
|
|
37899
38077
|
var _a25, _b25, _c, _d;
|
|
37900
|
-
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38078
|
+
return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
37901
38079
|
((_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),
|
|
37902
38080
|
createBaseVNode("ul", null, [
|
|
37903
38081
|
(openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
|
|
@@ -37908,7 +38086,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37908
38086
|
createBaseVNode("a", {
|
|
37909
38087
|
onClick: ($event) => handleRelatedQueryClick(query)
|
|
37910
38088
|
}, [
|
|
37911
|
-
createVNode(_sfc_main$
|
|
38089
|
+
createVNode(_sfc_main$m, {
|
|
37912
38090
|
relatedQuery: query,
|
|
37913
38091
|
options: _ctx.options
|
|
37914
38092
|
}, null, 8, ["relatedQuery", "options"])
|
|
@@ -37920,9 +38098,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37920
38098
|
};
|
|
37921
38099
|
}
|
|
37922
38100
|
});
|
|
37923
|
-
const _hoisted_1$
|
|
38101
|
+
const _hoisted_1$i = { key: 0 };
|
|
37924
38102
|
const _hoisted_2$d = ["innerHTML"];
|
|
37925
|
-
const _sfc_main$
|
|
38103
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37926
38104
|
__name: "ZeroResults",
|
|
37927
38105
|
props: {
|
|
37928
38106
|
emptyResultsLabel: {},
|
|
@@ -37951,7 +38129,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37951
38129
|
});
|
|
37952
38130
|
return (_ctx, _cache) => {
|
|
37953
38131
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37954
|
-
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
38132
|
+
showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
37955
38133
|
createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
|
|
37956
38134
|
createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
|
|
37957
38135
|
])) : createCommentVNode("", true),
|
|
@@ -37963,6 +38141,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37963
38141
|
};
|
|
37964
38142
|
}
|
|
37965
38143
|
});
|
|
38144
|
+
const _hoisted_1$h = {
|
|
38145
|
+
key: 1,
|
|
38146
|
+
class: "lupa-skeleton-grid"
|
|
38147
|
+
};
|
|
38148
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
38149
|
+
__name: "LoadingGrid",
|
|
38150
|
+
props: {
|
|
38151
|
+
style: {},
|
|
38152
|
+
enabled: { type: Boolean },
|
|
38153
|
+
loading: { type: Boolean },
|
|
38154
|
+
count: {}
|
|
38155
|
+
},
|
|
38156
|
+
setup(__props) {
|
|
38157
|
+
return (_ctx, _cache) => {
|
|
38158
|
+
return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
38159
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
|
|
38160
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
38161
|
+
key: n,
|
|
38162
|
+
style: normalizeStyle(_ctx.style)
|
|
38163
|
+
}, null, 8, ["style"]);
|
|
38164
|
+
}), 128))
|
|
38165
|
+
]));
|
|
38166
|
+
};
|
|
38167
|
+
}
|
|
38168
|
+
});
|
|
37966
38169
|
const _hoisted_1$g = { id: "lupa-search-results-products" };
|
|
37967
38170
|
const _hoisted_2$c = {
|
|
37968
38171
|
class: "lupa-products",
|
|
@@ -37974,12 +38177,12 @@ const _hoisted_3$7 = {
|
|
|
37974
38177
|
"data-cy": "lupa-no-results-in-page"
|
|
37975
38178
|
};
|
|
37976
38179
|
const _hoisted_4$5 = {
|
|
37977
|
-
key:
|
|
38180
|
+
key: 3,
|
|
37978
38181
|
class: "lupa-empty-results",
|
|
37979
38182
|
"data-cy": "lupa-no-results"
|
|
37980
38183
|
};
|
|
37981
|
-
const _hoisted_5$1 = { key:
|
|
37982
|
-
const _hoisted_6 = { key:
|
|
38184
|
+
const _hoisted_5$1 = { key: 4 };
|
|
38185
|
+
const _hoisted_6 = { key: 5 };
|
|
37983
38186
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37984
38187
|
__name: "SearchResultsProducts",
|
|
37985
38188
|
props: {
|
|
@@ -38003,6 +38206,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38003
38206
|
loading,
|
|
38004
38207
|
relatedQueriesApiEnabled
|
|
38005
38208
|
} = storeToRefs(searchResultStore);
|
|
38209
|
+
const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
|
|
38006
38210
|
const emit2 = __emit;
|
|
38007
38211
|
const productCardOptions = computed(() => {
|
|
38008
38212
|
return pick(props.options, [
|
|
@@ -38059,12 +38263,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38059
38263
|
});
|
|
38060
38264
|
const columnSize = computed(() => {
|
|
38061
38265
|
if (props.ssr) {
|
|
38062
|
-
return
|
|
38266
|
+
return {};
|
|
38063
38267
|
}
|
|
38064
38268
|
if (layout.value === ResultsLayoutEnum.LIST) {
|
|
38065
|
-
return
|
|
38269
|
+
return { width: "100%" };
|
|
38066
38270
|
}
|
|
38067
|
-
return
|
|
38271
|
+
return { width: `${100 / columnCount.value}%` };
|
|
38068
38272
|
});
|
|
38069
38273
|
const hasSimilarQueries = computed(() => {
|
|
38070
38274
|
var _a25;
|
|
@@ -38100,40 +38304,50 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38100
38304
|
emit2("filter");
|
|
38101
38305
|
};
|
|
38102
38306
|
return (_ctx, _cache) => {
|
|
38103
|
-
var _a25, _b25, _c;
|
|
38307
|
+
var _a25, _b25, _c, _d;
|
|
38104
38308
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
38105
|
-
unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38309
|
+
!unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
38106
38310
|
key: 0,
|
|
38107
38311
|
class: "lupa-loader"
|
|
38108
38312
|
})) : createCommentVNode("", true),
|
|
38109
|
-
createVNode(_sfc_main$
|
|
38313
|
+
createVNode(_sfc_main$o, {
|
|
38110
38314
|
options: _ctx.options.redirectionSuggestions
|
|
38111
38315
|
}, null, 8, ["options"]),
|
|
38112
|
-
createVNode(_sfc_main$
|
|
38316
|
+
createVNode(_sfc_main$t, {
|
|
38113
38317
|
options: _ctx.options,
|
|
38114
38318
|
location: "top",
|
|
38115
|
-
|
|
38116
|
-
}, null, 8, ["options", "
|
|
38117
|
-
|
|
38118
|
-
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38125
|
-
|
|
38126
|
-
|
|
38319
|
+
"sdk-options": _ctx.options.options
|
|
38320
|
+
}, null, 8, ["options", "sdk-options"]),
|
|
38321
|
+
createVNode(_sfc_main$18, {
|
|
38322
|
+
enabled: unref(relatedQueriesSkeletonEnabled),
|
|
38323
|
+
loading: unref(loading) || unref(loadingRelatedQueries),
|
|
38324
|
+
count: 1,
|
|
38325
|
+
class: "lupa-skeleton-related-queries"
|
|
38326
|
+
}, {
|
|
38327
|
+
default: withCtx(() => [
|
|
38328
|
+
showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
|
|
38329
|
+
key: 0,
|
|
38330
|
+
options: _ctx.options.relatedQueries
|
|
38331
|
+
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38332
|
+
showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
|
|
38333
|
+
key: 1,
|
|
38334
|
+
options: _ctx.options.relatedQueries
|
|
38335
|
+
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
38336
|
+
]),
|
|
38337
|
+
_: 1
|
|
38338
|
+
}, 8, ["enabled", "loading"]),
|
|
38339
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
38340
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
38127
38341
|
key: 0,
|
|
38128
38342
|
options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
|
|
38129
38343
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38130
|
-
createVNode(_sfc_main$
|
|
38344
|
+
createVNode(_sfc_main$I, {
|
|
38131
38345
|
class: "lupa-toolbar-mobile",
|
|
38132
38346
|
options: _ctx.options,
|
|
38133
38347
|
"pagination-location": "top",
|
|
38134
38348
|
onFilter: filter
|
|
38135
38349
|
}, null, 8, ["options"]),
|
|
38136
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38350
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38137
38351
|
key: 1,
|
|
38138
38352
|
class: normalizeClass(currentFiltersClass.value),
|
|
38139
38353
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38141,13 +38355,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38141
38355
|
expandable: !desktopFiltersExpanded.value
|
|
38142
38356
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
38143
38357
|
], 64)) : createCommentVNode("", true),
|
|
38144
|
-
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key:
|
|
38145
|
-
createVNode(_sfc_main$
|
|
38358
|
+
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
38359
|
+
createVNode(_sfc_main$I, {
|
|
38146
38360
|
class: "lupa-toolbar-top",
|
|
38147
38361
|
options: _ctx.options,
|
|
38148
38362
|
"pagination-location": "top"
|
|
38149
38363
|
}, null, 8, ["options"]),
|
|
38150
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
38364
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
|
|
38151
38365
|
key: 0,
|
|
38152
38366
|
class: normalizeClass(currentFiltersClass.value),
|
|
38153
38367
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -38155,22 +38369,32 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38155
38369
|
expandable: !desktopFiltersExpanded.value
|
|
38156
38370
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
|
|
38157
38371
|
createBaseVNode("div", _hoisted_2$c, [
|
|
38158
|
-
|
|
38159
|
-
|
|
38160
|
-
|
|
38161
|
-
|
|
38162
|
-
|
|
38163
|
-
|
|
38164
|
-
|
|
38165
|
-
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38171
|
-
|
|
38172
|
-
|
|
38173
|
-
|
|
38372
|
+
createVNode(_sfc_main$j, {
|
|
38373
|
+
enabled: unref(skeletonEnabled),
|
|
38374
|
+
loading: unref(loading),
|
|
38375
|
+
count: (_b25 = unref(limit)) != null ? _b25 : 12,
|
|
38376
|
+
style: normalizeStyle(columnSize.value)
|
|
38377
|
+
}, {
|
|
38378
|
+
default: withCtx(() => [
|
|
38379
|
+
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38380
|
+
return renderSlot(_ctx.$slots, "productCard", {
|
|
38381
|
+
key: getProductKeyAction(index, product),
|
|
38382
|
+
style: normalizeStyle(columnSize.value),
|
|
38383
|
+
product,
|
|
38384
|
+
options: productCardOptions.value
|
|
38385
|
+
});
|
|
38386
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
38387
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
38388
|
+
key: getProductKeyAction(index, product),
|
|
38389
|
+
style: normalizeStyle(columnSize.value),
|
|
38390
|
+
product,
|
|
38391
|
+
options: productCardOptions.value,
|
|
38392
|
+
"analytics-metadata": clickMetadata.value
|
|
38393
|
+
}, null, 8, ["style", "product", "options", "analytics-metadata"]);
|
|
38394
|
+
}), 128))
|
|
38395
|
+
]),
|
|
38396
|
+
_: 3
|
|
38397
|
+
}, 8, ["enabled", "loading", "count", "style"])
|
|
38174
38398
|
]),
|
|
38175
38399
|
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
38176
38400
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
@@ -38180,40 +38404,40 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38180
38404
|
onClick: goToFirstPage
|
|
38181
38405
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
38182
38406
|
])) : createCommentVNode("", true),
|
|
38183
|
-
createVNode(_sfc_main$
|
|
38407
|
+
createVNode(_sfc_main$I, {
|
|
38184
38408
|
class: "lupa-toolbar-bottom",
|
|
38185
38409
|
options: _ctx.options,
|
|
38186
38410
|
"pagination-location": "bottom"
|
|
38187
38411
|
}, null, 8, ["options"]),
|
|
38188
|
-
createVNode(_sfc_main$
|
|
38412
|
+
createVNode(_sfc_main$t, {
|
|
38189
38413
|
options: _ctx.options,
|
|
38190
38414
|
location: "bottom",
|
|
38191
|
-
|
|
38192
|
-
}, null, 8, ["options", "
|
|
38415
|
+
"sdk-options": _ctx.options.options
|
|
38416
|
+
}, null, 8, ["options", "sdk-options"])
|
|
38193
38417
|
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
38194
|
-
createVNode(_sfc_main$
|
|
38195
|
-
|
|
38196
|
-
|
|
38197
|
-
|
|
38198
|
-
|
|
38199
|
-
}, null, 8, ["
|
|
38418
|
+
createVNode(_sfc_main$k, {
|
|
38419
|
+
"empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
|
|
38420
|
+
"current-query-text": unref(currentQueryText),
|
|
38421
|
+
"has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
|
|
38422
|
+
"zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
|
|
38423
|
+
}, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
|
|
38200
38424
|
])) : createCommentVNode("", true),
|
|
38201
|
-
createVNode(_sfc_main$
|
|
38425
|
+
createVNode(_sfc_main$n, {
|
|
38202
38426
|
labels: _ctx.options.labels
|
|
38203
38427
|
}, null, 8, ["labels"]),
|
|
38204
38428
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
38205
|
-
createVNode(_sfc_main$
|
|
38429
|
+
createVNode(_sfc_main$v, {
|
|
38206
38430
|
labels: similarQueriesLabels.value,
|
|
38207
|
-
|
|
38208
|
-
|
|
38209
|
-
}, null, 8, ["labels", "
|
|
38431
|
+
"column-size": columnSize.value,
|
|
38432
|
+
"product-card-options": productCardOptions.value
|
|
38433
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38210
38434
|
])) : createCommentVNode("", true),
|
|
38211
38435
|
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
38212
|
-
createVNode(_sfc_main$
|
|
38436
|
+
createVNode(_sfc_main$r, {
|
|
38213
38437
|
labels: similarResultsLabels.value,
|
|
38214
|
-
|
|
38215
|
-
|
|
38216
|
-
}, null, 8, ["labels", "
|
|
38438
|
+
"column-size": columnSize.value,
|
|
38439
|
+
"product-card-options": productCardOptions.value
|
|
38440
|
+
}, null, 8, ["labels", "column-size", "product-card-options"])
|
|
38217
38441
|
])) : createCommentVNode("", true),
|
|
38218
38442
|
renderSlot(_ctx.$slots, "append")
|
|
38219
38443
|
]);
|
|
@@ -38288,7 +38512,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
38288
38512
|
])) : createCommentVNode("", true),
|
|
38289
38513
|
hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
38290
38514
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
38291
|
-
return openBlock(), createBlock(_sfc_main$
|
|
38515
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
38292
38516
|
key: getCategoryKey(child),
|
|
38293
38517
|
item: child,
|
|
38294
38518
|
options: categoryOptions.value
|
|
@@ -38722,8 +38946,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38722
38946
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
38723
38947
|
}, [
|
|
38724
38948
|
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38725
|
-
createVNode(_sfc_main$
|
|
38726
|
-
createVNode(_sfc_main$
|
|
38949
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38950
|
+
createVNode(_sfc_main$17, {
|
|
38727
38951
|
"show-summary": true,
|
|
38728
38952
|
options: _ctx.options,
|
|
38729
38953
|
"is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
|
|
@@ -38733,13 +38957,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38733
38957
|
key: 1,
|
|
38734
38958
|
options: _ctx.options
|
|
38735
38959
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38736
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
38960
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
|
|
38737
38961
|
key: 2,
|
|
38738
38962
|
options: _ctx.options.filters,
|
|
38739
38963
|
onFilter: handleParamsChange
|
|
38740
38964
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38741
38965
|
_ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
|
|
38742
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
38966
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
|
|
38743
38967
|
key: 4,
|
|
38744
38968
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
38745
38969
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
@@ -38748,7 +38972,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38748
38972
|
id: "lupa-search-results",
|
|
38749
38973
|
class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
|
|
38750
38974
|
}, [
|
|
38751
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
38975
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38752
38976
|
key: 0,
|
|
38753
38977
|
options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
|
|
38754
38978
|
ref_key: "searchResultsFilters",
|
|
@@ -38756,8 +38980,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38756
38980
|
onFilter: handleParamsChange
|
|
38757
38981
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
38758
38982
|
createBaseVNode("div", _hoisted_2$8, [
|
|
38759
|
-
createVNode(_sfc_main$
|
|
38760
|
-
createVNode(_sfc_main$
|
|
38983
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
38984
|
+
createVNode(_sfc_main$17, {
|
|
38761
38985
|
options: _ctx.options,
|
|
38762
38986
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
38763
38987
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38773,8 +38997,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38773
38997
|
}, 8, ["options", "ssr"])
|
|
38774
38998
|
])
|
|
38775
38999
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
38776
|
-
createVNode(_sfc_main$
|
|
38777
|
-
createVNode(_sfc_main$
|
|
39000
|
+
createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
39001
|
+
createVNode(_sfc_main$17, {
|
|
38778
39002
|
options: _ctx.options,
|
|
38779
39003
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
38780
39004
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -38782,7 +39006,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
38782
39006
|
id: "lupa-search-results",
|
|
38783
39007
|
class: normalizeClass(indicatorClasses.value)
|
|
38784
39008
|
}, [
|
|
38785
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
39009
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
38786
39010
|
key: 0,
|
|
38787
39011
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
38788
39012
|
ref_key: "searchResultsFilters",
|
|
@@ -38933,7 +39157,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
38933
39157
|
onClick: withModifiers(innerClick, ["stop"])
|
|
38934
39158
|
}, [
|
|
38935
39159
|
createBaseVNode("div", _hoisted_1$a, [
|
|
38936
|
-
createVNode(_sfc_main$
|
|
39160
|
+
createVNode(_sfc_main$1d, {
|
|
38937
39161
|
options: fullSearchBoxOptions.value,
|
|
38938
39162
|
"is-search-container": true,
|
|
38939
39163
|
ref_key: "searchBox",
|
|
@@ -40521,7 +40745,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
40521
40745
|
key: getProductKeyAction(index, product)
|
|
40522
40746
|
}, {
|
|
40523
40747
|
default: withCtx(() => [
|
|
40524
|
-
createVNode(_sfc_main$
|
|
40748
|
+
createVNode(_sfc_main$w, {
|
|
40525
40749
|
product,
|
|
40526
40750
|
options: _ctx.options,
|
|
40527
40751
|
"click-tracking-settings": clickTrackingSettings.value,
|
|
@@ -40536,7 +40760,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
40536
40760
|
_: 1
|
|
40537
40761
|
}, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
40538
40762
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
40539
|
-
return openBlock(), createBlock(_sfc_main$
|
|
40763
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40540
40764
|
style: normalizeStyle(columnSize.value),
|
|
40541
40765
|
key: getProductKeyAction(index, product),
|
|
40542
40766
|
product,
|
|
@@ -40782,7 +41006,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
40782
41006
|
createBaseVNode("a", {
|
|
40783
41007
|
href: getLink(product)
|
|
40784
41008
|
}, [
|
|
40785
|
-
createVNode(_sfc_main$
|
|
41009
|
+
createVNode(_sfc_main$H, {
|
|
40786
41010
|
item: product,
|
|
40787
41011
|
options: image.value
|
|
40788
41012
|
}, null, 8, ["item", "options"])
|
|
@@ -40947,7 +41171,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
40947
41171
|
return (_ctx, _cache) => {
|
|
40948
41172
|
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
40949
41173
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
40950
|
-
return openBlock(), createBlock(_sfc_main$
|
|
41174
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
40951
41175
|
class: "lupa-chat-product-card",
|
|
40952
41176
|
key: getProductKeyAction(index, product),
|
|
40953
41177
|
product,
|
|
@@ -41143,7 +41367,7 @@ const _hoisted_4 = {
|
|
|
41143
41367
|
key: 0,
|
|
41144
41368
|
class: "lupasearch-chat-content"
|
|
41145
41369
|
};
|
|
41146
|
-
const _sfc_main$
|
|
41370
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
41147
41371
|
__name: "ChatContainer",
|
|
41148
41372
|
props: {
|
|
41149
41373
|
options: {}
|
|
@@ -47167,7 +47391,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
47167
47391
|
};
|
|
47168
47392
|
__expose({ fetch: fetch2 });
|
|
47169
47393
|
return (_ctx, _cache) => {
|
|
47170
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
47394
|
+
return openBlock(), createBlock(unref(_sfc_main$1d), {
|
|
47171
47395
|
ref_key: "searchBox",
|
|
47172
47396
|
ref: searchBox2,
|
|
47173
47397
|
options: fullSearchBoxOptions.value
|
|
@@ -47828,7 +48052,7 @@ const chat = (options, mountOptions) => {
|
|
|
47828
48052
|
const instance = createVue(
|
|
47829
48053
|
options.displayOptions.containerSelector,
|
|
47830
48054
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
47831
|
-
_sfc_main$
|
|
48055
|
+
_sfc_main$1L,
|
|
47832
48056
|
{
|
|
47833
48057
|
options
|
|
47834
48058
|
}
|