@getlupa/client 1.2.5 → 1.3.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 +1142 -573
- package/dist/lupaSearch.js +1142 -573
- package/dist/lupaSearch.mjs +1142 -573
- package/dist/lupaSearch.umd.js +1142 -573
- package/dist/src/index.d.ts +8 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -1539,6 +1539,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
1539
1539
|
currentScopeId = instance && instance.type.__scopeId || null;
|
|
1540
1540
|
return prev;
|
|
1541
1541
|
}
|
|
1542
|
+
function pushScopeId(id) {
|
|
1543
|
+
currentScopeId = id;
|
|
1544
|
+
}
|
|
1545
|
+
function popScopeId() {
|
|
1546
|
+
currentScopeId = null;
|
|
1547
|
+
}
|
|
1542
1548
|
function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
1543
1549
|
if (!ctx)
|
|
1544
1550
|
return fn;
|
|
@@ -6170,15 +6176,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6170
6176
|
const RATING_STAR_HTML = "☆";
|
|
6171
6177
|
const production = "https://api.lupasearch.com/v1/";
|
|
6172
6178
|
const staging = "https://api.staging.lupasearch.com/v1/";
|
|
6173
|
-
const Env = {
|
|
6179
|
+
const Env$1 = {
|
|
6174
6180
|
production,
|
|
6175
6181
|
staging
|
|
6176
6182
|
};
|
|
6177
|
-
const getApiUrl = (environment, customBaseUrl) => {
|
|
6183
|
+
const getApiUrl$1 = (environment, customBaseUrl) => {
|
|
6178
6184
|
if (customBaseUrl) {
|
|
6179
6185
|
return customBaseUrl;
|
|
6180
6186
|
}
|
|
6181
|
-
return Env[environment] || Env["production"];
|
|
6187
|
+
return Env$1[environment] || Env$1["production"];
|
|
6182
6188
|
};
|
|
6183
6189
|
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
6184
6190
|
function adopt(value) {
|
|
@@ -6207,14 +6213,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6207
6213
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6208
6214
|
});
|
|
6209
6215
|
};
|
|
6210
|
-
const defaultConfig = {
|
|
6216
|
+
const defaultConfig$1 = {
|
|
6211
6217
|
method: "POST",
|
|
6212
6218
|
headers: { "Content-Type": "application/json" }
|
|
6213
6219
|
};
|
|
6214
6220
|
const customRequestConfig = ({ customHeaders }) => {
|
|
6215
6221
|
return {
|
|
6216
|
-
method: defaultConfig.method,
|
|
6217
|
-
headers: Object.assign(Object.assign({}, defaultConfig.headers), customHeaders !== null && customHeaders !== void 0 ? customHeaders : {})
|
|
6222
|
+
method: defaultConfig$1.method,
|
|
6223
|
+
headers: Object.assign(Object.assign({}, defaultConfig$1.headers), customHeaders !== null && customHeaders !== void 0 ? customHeaders : {})
|
|
6218
6224
|
};
|
|
6219
6225
|
};
|
|
6220
6226
|
const searchCustom = (query, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -6238,7 +6244,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6238
6244
|
return { success: false, errors };
|
|
6239
6245
|
});
|
|
6240
6246
|
const search = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6241
|
-
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
|
|
6247
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(query) }));
|
|
6242
6248
|
if (res.status < 400) {
|
|
6243
6249
|
const data = yield res.json();
|
|
6244
6250
|
return Object.assign(Object.assign({}, data), { success: true });
|
|
@@ -6248,7 +6254,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6248
6254
|
});
|
|
6249
6255
|
const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6250
6256
|
const idParam = ids.map((id) => `ids=${id}`).join("&");
|
|
6251
|
-
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
|
|
6257
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
6252
6258
|
if (res.status < 400) {
|
|
6253
6259
|
const data = yield res.json();
|
|
6254
6260
|
return Object.assign(Object.assign({}, data), { success: true });
|
|
@@ -6257,7 +6263,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6257
6263
|
return { success: false, errors };
|
|
6258
6264
|
});
|
|
6259
6265
|
const recommend = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6260
|
-
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}recommendations/document/${recommendForId}?queryKey=${queryKey}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
|
|
6266
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?queryKey=${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
6261
6267
|
if (res.status < 400) {
|
|
6262
6268
|
const data = yield res.json();
|
|
6263
6269
|
return Object.assign(Object.assign({}, data), { success: true });
|
|
@@ -6266,7 +6272,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6266
6272
|
return { success: false, errors };
|
|
6267
6273
|
});
|
|
6268
6274
|
const suggest = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6269
|
-
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
|
|
6275
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(query) }));
|
|
6270
6276
|
if (res.status < 400) {
|
|
6271
6277
|
const items = yield res.json();
|
|
6272
6278
|
return { items, success: true };
|
|
@@ -6275,7 +6281,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6275
6281
|
return { success: false, errors };
|
|
6276
6282
|
});
|
|
6277
6283
|
const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6278
|
-
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
|
|
6284
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
|
|
6279
6285
|
if (res.status < 400) {
|
|
6280
6286
|
return { success: false };
|
|
6281
6287
|
}
|
|
@@ -7658,16 +7664,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7658
7664
|
resetHighlightIndex
|
|
7659
7665
|
};
|
|
7660
7666
|
});
|
|
7661
|
-
const _hoisted_1$
|
|
7662
|
-
const _hoisted_2$
|
|
7663
|
-
const _hoisted_3$
|
|
7664
|
-
const _hoisted_4$
|
|
7665
|
-
const _hoisted_5$
|
|
7666
|
-
const _hoisted_6$
|
|
7667
|
+
const _hoisted_1$19 = { id: "lupa-search-box-input-container" };
|
|
7668
|
+
const _hoisted_2$N = { class: "lupa-input-clear" };
|
|
7669
|
+
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
7670
|
+
const _hoisted_4$r = ["value"];
|
|
7671
|
+
const _hoisted_5$f = ["placeholder"];
|
|
7672
|
+
const _hoisted_6$8 = {
|
|
7667
7673
|
key: 0,
|
|
7668
7674
|
class: "lupa-close-label"
|
|
7669
7675
|
};
|
|
7670
|
-
const _sfc_main$
|
|
7676
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7671
7677
|
__name: "SearchBoxInput",
|
|
7672
7678
|
props: {
|
|
7673
7679
|
options: {},
|
|
@@ -7744,19 +7750,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7744
7750
|
};
|
|
7745
7751
|
__expose({ focus });
|
|
7746
7752
|
return (_ctx, _cache) => {
|
|
7747
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7748
|
-
createBaseVNode("div", _hoisted_2$
|
|
7753
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
7754
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
7749
7755
|
createBaseVNode("div", {
|
|
7750
7756
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7751
7757
|
onClick: clear2
|
|
7752
7758
|
}, null, 2)
|
|
7753
7759
|
]),
|
|
7754
|
-
createBaseVNode("div", _hoisted_3$
|
|
7760
|
+
createBaseVNode("div", _hoisted_3$A, [
|
|
7755
7761
|
createBaseVNode("input", {
|
|
7756
7762
|
class: "lupa-hint",
|
|
7757
7763
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
7758
7764
|
disabled: ""
|
|
7759
|
-
}, null, 8, _hoisted_4$
|
|
7765
|
+
}, null, 8, _hoisted_4$r),
|
|
7760
7766
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
7761
7767
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
7762
7768
|
}, inputAttributes.value, {
|
|
@@ -7769,7 +7775,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7769
7775
|
placeholder: labels.value.placeholder,
|
|
7770
7776
|
onInput: handleInput,
|
|
7771
7777
|
onFocus: handleFocus
|
|
7772
|
-
}), null, 16, _hoisted_5$
|
|
7778
|
+
}), null, 16, _hoisted_5$f), [
|
|
7773
7779
|
[vModelText, inputValue.value]
|
|
7774
7780
|
])
|
|
7775
7781
|
]),
|
|
@@ -7778,13 +7784,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7778
7784
|
class: "lupa-close-search-container",
|
|
7779
7785
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
7780
7786
|
}, [
|
|
7781
|
-
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
7787
|
+
labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
|
|
7782
7788
|
])) : createCommentVNode("", true)
|
|
7783
7789
|
]);
|
|
7784
7790
|
};
|
|
7785
7791
|
}
|
|
7786
7792
|
});
|
|
7787
|
-
const _sfc_main$
|
|
7793
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7788
7794
|
__name: "SearchBoxMoreResults",
|
|
7789
7795
|
props: {
|
|
7790
7796
|
labels: {},
|
|
@@ -7816,9 +7822,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7816
7822
|
};
|
|
7817
7823
|
}
|
|
7818
7824
|
});
|
|
7819
|
-
const _hoisted_1$
|
|
7820
|
-
const _hoisted_2$
|
|
7821
|
-
const _sfc_main$
|
|
7825
|
+
const _hoisted_1$18 = { class: "lupa-search-box-history-item" };
|
|
7826
|
+
const _hoisted_2$M = { class: "lupa-search-box-history-item-content" };
|
|
7827
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7822
7828
|
__name: "SearchBoxHistoryItem",
|
|
7823
7829
|
props: {
|
|
7824
7830
|
item: {},
|
|
@@ -7834,8 +7840,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7834
7840
|
emit2("click", { query: props.item });
|
|
7835
7841
|
};
|
|
7836
7842
|
return (_ctx, _cache) => {
|
|
7837
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7838
|
-
createBaseVNode("div", _hoisted_2$
|
|
7843
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
7844
|
+
createBaseVNode("div", _hoisted_2$M, [
|
|
7839
7845
|
createBaseVNode("div", {
|
|
7840
7846
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7841
7847
|
onClick: click2
|
|
@@ -7849,11 +7855,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7849
7855
|
};
|
|
7850
7856
|
}
|
|
7851
7857
|
});
|
|
7852
|
-
const _hoisted_1$
|
|
7858
|
+
const _hoisted_1$17 = {
|
|
7853
7859
|
key: 0,
|
|
7854
7860
|
class: "lupa-search-box-history-panel"
|
|
7855
7861
|
};
|
|
7856
|
-
const _sfc_main$
|
|
7862
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
7857
7863
|
__name: "SearchBoxHistoryPanel",
|
|
7858
7864
|
props: {
|
|
7859
7865
|
options: {}
|
|
@@ -7894,9 +7900,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7894
7900
|
}
|
|
7895
7901
|
};
|
|
7896
7902
|
return (_ctx, _cache) => {
|
|
7897
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7903
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
7898
7904
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7899
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7905
|
+
return openBlock(), createBlock(_sfc_main$1f, {
|
|
7900
7906
|
key: item,
|
|
7901
7907
|
item,
|
|
7902
7908
|
highlighted: index === highlightIndex.value,
|
|
@@ -7912,26 +7918,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7912
7918
|
};
|
|
7913
7919
|
}
|
|
7914
7920
|
});
|
|
7915
|
-
const _hoisted_1
|
|
7916
|
-
const _hoisted_2$
|
|
7921
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
7922
|
+
const _hoisted_2$L = {
|
|
7917
7923
|
key: 1,
|
|
7918
7924
|
"data-cy": "lupa-suggestion-value",
|
|
7919
7925
|
class: "lupa-suggestion-value"
|
|
7920
7926
|
};
|
|
7921
|
-
const _hoisted_3$
|
|
7927
|
+
const _hoisted_3$z = {
|
|
7922
7928
|
key: 2,
|
|
7923
7929
|
class: "lupa-suggestion-facet",
|
|
7924
7930
|
"data-cy": "lupa-suggestion-facet"
|
|
7925
7931
|
};
|
|
7926
|
-
const _hoisted_4$
|
|
7932
|
+
const _hoisted_4$q = {
|
|
7927
7933
|
class: "lupa-suggestion-facet-label",
|
|
7928
7934
|
"data-cy": "lupa-suggestion-facet-label"
|
|
7929
7935
|
};
|
|
7930
|
-
const _hoisted_5$
|
|
7936
|
+
const _hoisted_5$e = {
|
|
7931
7937
|
class: "lupa-suggestion-facet-value",
|
|
7932
7938
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7933
7939
|
};
|
|
7934
|
-
const _sfc_main$
|
|
7940
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
7935
7941
|
__name: "SearchBoxSuggestion",
|
|
7936
7942
|
props: {
|
|
7937
7943
|
suggestion: {},
|
|
@@ -7967,20 +7973,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7967
7973
|
class: "lupa-suggestion-value",
|
|
7968
7974
|
"data-cy": "lupa-suggestion-value",
|
|
7969
7975
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7970
|
-
}, null, 8, _hoisted_1
|
|
7971
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
7972
|
-
createBaseVNode("span", _hoisted_4$
|
|
7973
|
-
createBaseVNode("span", _hoisted_5$
|
|
7976
|
+
}, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7977
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
7978
|
+
createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
|
|
7979
|
+
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
7974
7980
|
])) : createCommentVNode("", true)
|
|
7975
7981
|
]);
|
|
7976
7982
|
};
|
|
7977
7983
|
}
|
|
7978
7984
|
});
|
|
7979
|
-
const _hoisted_1$
|
|
7985
|
+
const _hoisted_1$15 = {
|
|
7980
7986
|
id: "lupa-search-box-suggestions",
|
|
7981
7987
|
"data-cy": "lupa-search-box-suggestions"
|
|
7982
7988
|
};
|
|
7983
|
-
const _sfc_main$
|
|
7989
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
7984
7990
|
__name: "SearchBoxSuggestions",
|
|
7985
7991
|
props: {
|
|
7986
7992
|
items: {},
|
|
@@ -8040,9 +8046,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8040
8046
|
});
|
|
8041
8047
|
});
|
|
8042
8048
|
return (_ctx, _cache) => {
|
|
8043
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8049
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
8044
8050
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8045
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8051
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
8046
8052
|
key: getSuggestionKey(item),
|
|
8047
8053
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8048
8054
|
suggestion: item,
|
|
@@ -8070,7 +8076,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8070
8076
|
}, timeout);
|
|
8071
8077
|
};
|
|
8072
8078
|
};
|
|
8073
|
-
const _sfc_main$
|
|
8079
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8074
8080
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8075
8081
|
props: {
|
|
8076
8082
|
panel: {},
|
|
@@ -8111,7 +8117,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8111
8117
|
};
|
|
8112
8118
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8113
8119
|
return (_ctx, _cache) => {
|
|
8114
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8120
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
8115
8121
|
items: searchResult.value,
|
|
8116
8122
|
highlight: _ctx.panel.highlight,
|
|
8117
8123
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8189,8 +8195,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8189
8195
|
});
|
|
8190
8196
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8191
8197
|
});
|
|
8192
|
-
const _hoisted_1$
|
|
8193
|
-
const _sfc_main$
|
|
8198
|
+
const _hoisted_1$14 = ["src"];
|
|
8199
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8194
8200
|
__name: "ProductImage",
|
|
8195
8201
|
props: {
|
|
8196
8202
|
item: {},
|
|
@@ -8238,12 +8244,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8238
8244
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8239
8245
|
src: finalUrl.value,
|
|
8240
8246
|
onError: replaceWithPlaceholder
|
|
8241
|
-
}, null, 42, _hoisted_1$
|
|
8247
|
+
}, null, 42, _hoisted_1$14)
|
|
8242
8248
|
], 2);
|
|
8243
8249
|
};
|
|
8244
8250
|
}
|
|
8245
8251
|
});
|
|
8246
|
-
const _sfc_main$
|
|
8252
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8247
8253
|
__name: "SearchBoxProductImage",
|
|
8248
8254
|
props: {
|
|
8249
8255
|
item: {},
|
|
@@ -8251,7 +8257,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8251
8257
|
},
|
|
8252
8258
|
setup(__props) {
|
|
8253
8259
|
return (_ctx, _cache) => {
|
|
8254
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8260
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
8255
8261
|
item: _ctx.item,
|
|
8256
8262
|
options: _ctx.options,
|
|
8257
8263
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8260,12 +8266,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8260
8266
|
};
|
|
8261
8267
|
}
|
|
8262
8268
|
});
|
|
8263
|
-
const _hoisted_1$
|
|
8264
|
-
const _hoisted_2$
|
|
8269
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
8270
|
+
const _hoisted_2$K = {
|
|
8265
8271
|
key: 1,
|
|
8266
8272
|
class: "lupa-search-box-product-title"
|
|
8267
8273
|
};
|
|
8268
|
-
const _sfc_main$
|
|
8274
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8269
8275
|
__name: "SearchBoxProductTitle",
|
|
8270
8276
|
props: {
|
|
8271
8277
|
item: {},
|
|
@@ -8285,18 +8291,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8285
8291
|
key: 0,
|
|
8286
8292
|
class: "lupa-search-box-product-title",
|
|
8287
8293
|
innerHTML: title.value
|
|
8288
|
-
}, null, 8, _hoisted_1$
|
|
8294
|
+
}, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, [
|
|
8289
8295
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8290
8296
|
]));
|
|
8291
8297
|
};
|
|
8292
8298
|
}
|
|
8293
8299
|
});
|
|
8294
|
-
const _hoisted_1$
|
|
8295
|
-
const _hoisted_2$
|
|
8300
|
+
const _hoisted_1$12 = ["innerHTML"];
|
|
8301
|
+
const _hoisted_2$J = {
|
|
8296
8302
|
key: 1,
|
|
8297
8303
|
class: "lupa-search-box-product-description"
|
|
8298
8304
|
};
|
|
8299
|
-
const _sfc_main$
|
|
8305
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8300
8306
|
__name: "SearchBoxProductDescription",
|
|
8301
8307
|
props: {
|
|
8302
8308
|
item: {},
|
|
@@ -8316,12 +8322,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8316
8322
|
key: 0,
|
|
8317
8323
|
class: "lupa-search-box-product-description",
|
|
8318
8324
|
innerHTML: description.value
|
|
8319
|
-
}, null, 8, _hoisted_1$
|
|
8325
|
+
}, null, 8, _hoisted_1$12)) : (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(description.value), 1));
|
|
8320
8326
|
};
|
|
8321
8327
|
}
|
|
8322
8328
|
});
|
|
8323
|
-
const _hoisted_1$
|
|
8324
|
-
const _sfc_main
|
|
8329
|
+
const _hoisted_1$11 = { class: "lupa-search-box-product-price" };
|
|
8330
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8325
8331
|
__name: "SearchBoxProductPrice",
|
|
8326
8332
|
props: {
|
|
8327
8333
|
item: {},
|
|
@@ -8339,14 +8345,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8339
8345
|
);
|
|
8340
8346
|
});
|
|
8341
8347
|
return (_ctx, _cache) => {
|
|
8342
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8348
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
8343
8349
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8344
8350
|
]);
|
|
8345
8351
|
};
|
|
8346
8352
|
}
|
|
8347
8353
|
});
|
|
8348
|
-
const _hoisted_1$
|
|
8349
|
-
const _sfc_main$
|
|
8354
|
+
const _hoisted_1$10 = { class: "lupa-search-box-product-regular-price" };
|
|
8355
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8350
8356
|
__name: "SearchBoxProductRegularPrice",
|
|
8351
8357
|
props: {
|
|
8352
8358
|
item: {},
|
|
@@ -8364,16 +8370,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8364
8370
|
);
|
|
8365
8371
|
});
|
|
8366
8372
|
return (_ctx, _cache) => {
|
|
8367
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8373
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, toDisplayString(price.value), 1);
|
|
8368
8374
|
};
|
|
8369
8375
|
}
|
|
8370
8376
|
});
|
|
8371
|
-
const _hoisted_1
|
|
8372
|
-
const _hoisted_2$
|
|
8373
|
-
const _hoisted_3$
|
|
8374
|
-
const _hoisted_4$
|
|
8375
|
-
const _hoisted_5$
|
|
8376
|
-
const _sfc_main$
|
|
8377
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
8378
|
+
const _hoisted_2$I = { key: 0 };
|
|
8379
|
+
const _hoisted_3$y = { key: 1 };
|
|
8380
|
+
const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
|
|
8381
|
+
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8382
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8377
8383
|
__name: "SearchBoxProductCustom",
|
|
8378
8384
|
props: {
|
|
8379
8385
|
item: {},
|
|
@@ -8399,20 +8405,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8399
8405
|
key: 0,
|
|
8400
8406
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8401
8407
|
innerHTML: text.value
|
|
8402
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8408
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8403
8409
|
key: 1,
|
|
8404
8410
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8405
8411
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8406
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8407
|
-
createBaseVNode("div", _hoisted_4$
|
|
8408
|
-
createBaseVNode("div", _hoisted_5$
|
|
8412
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$I, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
8413
|
+
createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
|
|
8414
|
+
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8409
8415
|
]))
|
|
8410
8416
|
], 16));
|
|
8411
8417
|
};
|
|
8412
8418
|
}
|
|
8413
8419
|
});
|
|
8414
|
-
const _hoisted_1$
|
|
8415
|
-
const _sfc_main$
|
|
8420
|
+
const _hoisted_1$_ = ["innerHTML"];
|
|
8421
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8416
8422
|
__name: "SearchBoxProductCustomHtml",
|
|
8417
8423
|
props: {
|
|
8418
8424
|
item: {},
|
|
@@ -8432,7 +8438,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8432
8438
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8433
8439
|
class: className.value,
|
|
8434
8440
|
innerHTML: text.value
|
|
8435
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8441
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$_);
|
|
8436
8442
|
};
|
|
8437
8443
|
}
|
|
8438
8444
|
});
|
|
@@ -8627,10 +8633,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8627
8633
|
setLoading
|
|
8628
8634
|
};
|
|
8629
8635
|
});
|
|
8630
|
-
const _hoisted_1$
|
|
8631
|
-
const _hoisted_2$
|
|
8632
|
-
const _hoisted_3$
|
|
8633
|
-
const _sfc_main$
|
|
8636
|
+
const _hoisted_1$Z = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8637
|
+
const _hoisted_2$H = { class: "lupa-search-box-product-addtocart" };
|
|
8638
|
+
const _hoisted_3$x = ["onClick", "disabled"];
|
|
8639
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8634
8640
|
__name: "SearchBoxProductAddToCart",
|
|
8635
8641
|
props: {
|
|
8636
8642
|
item: {},
|
|
@@ -8657,15 +8663,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8657
8663
|
loading.value = false;
|
|
8658
8664
|
});
|
|
8659
8665
|
return (_ctx, _cache) => {
|
|
8660
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8661
|
-
createBaseVNode("div", _hoisted_2$
|
|
8666
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
8667
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
8662
8668
|
createBaseVNode("button", {
|
|
8663
8669
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8664
8670
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8665
8671
|
"data-cy": "lupa-add-to-cart",
|
|
8666
8672
|
type: "button",
|
|
8667
8673
|
disabled: !inStockValue.value || loading.value
|
|
8668
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
8674
|
+
}, toDisplayString(label.value), 11, _hoisted_3$x)
|
|
8669
8675
|
])
|
|
8670
8676
|
]);
|
|
8671
8677
|
};
|
|
@@ -8673,17 +8679,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8673
8679
|
});
|
|
8674
8680
|
const __default__$4 = {
|
|
8675
8681
|
components: {
|
|
8676
|
-
SearchBoxProductImage: _sfc_main$
|
|
8677
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8678
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8679
|
-
SearchBoxProductPrice: _sfc_main
|
|
8680
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8681
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8682
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8683
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8682
|
+
SearchBoxProductImage: _sfc_main$19,
|
|
8683
|
+
SearchBoxProductTitle: _sfc_main$18,
|
|
8684
|
+
SearchBoxProductDescription: _sfc_main$17,
|
|
8685
|
+
SearchBoxProductPrice: _sfc_main$16,
|
|
8686
|
+
SearchBoxProductRegularPrice: _sfc_main$15,
|
|
8687
|
+
SearchBoxProductCustom: _sfc_main$14,
|
|
8688
|
+
SearchBoxProductCustomHtml: _sfc_main$13,
|
|
8689
|
+
SearchBoxProductAddToCart: _sfc_main$12
|
|
8684
8690
|
}
|
|
8685
8691
|
};
|
|
8686
|
-
const _sfc_main$
|
|
8692
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8687
8693
|
__name: "SearchBoxProductElement",
|
|
8688
8694
|
props: {
|
|
8689
8695
|
item: {},
|
|
@@ -8797,14 +8803,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8797
8803
|
};
|
|
8798
8804
|
return { trackSearch, trackResults, trackEvent };
|
|
8799
8805
|
});
|
|
8800
|
-
const _hoisted_1$
|
|
8801
|
-
const _hoisted_2$
|
|
8802
|
-
const _hoisted_3$
|
|
8803
|
-
const _hoisted_4$
|
|
8806
|
+
const _hoisted_1$Y = ["href"];
|
|
8807
|
+
const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
|
|
8808
|
+
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
8809
|
+
const _hoisted_4$o = {
|
|
8804
8810
|
key: 0,
|
|
8805
8811
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8806
8812
|
};
|
|
8807
|
-
const _sfc_main$
|
|
8813
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8808
8814
|
__name: "SearchBoxProduct",
|
|
8809
8815
|
props: {
|
|
8810
8816
|
item: {},
|
|
@@ -8897,9 +8903,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8897
8903
|
href: link.value,
|
|
8898
8904
|
onClick: handleClick
|
|
8899
8905
|
}, [
|
|
8900
|
-
createBaseVNode("div", _hoisted_2$
|
|
8906
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
8901
8907
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8902
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8908
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
8903
8909
|
class: "lupa-search-box-product-element",
|
|
8904
8910
|
item: _ctx.item,
|
|
8905
8911
|
element,
|
|
@@ -8909,9 +8915,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8909
8915
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8910
8916
|
}), 128))
|
|
8911
8917
|
]),
|
|
8912
|
-
createBaseVNode("div", _hoisted_3$
|
|
8918
|
+
createBaseVNode("div", _hoisted_3$w, [
|
|
8913
8919
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8914
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8920
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
8915
8921
|
class: "lupa-search-box-product-element",
|
|
8916
8922
|
item: _ctx.item,
|
|
8917
8923
|
element,
|
|
@@ -8921,8 +8927,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8921
8927
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8922
8928
|
}), 128))
|
|
8923
8929
|
]),
|
|
8924
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
8925
|
-
createVNode(_sfc_main$
|
|
8930
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
8931
|
+
createVNode(_sfc_main$11, {
|
|
8926
8932
|
class: "lupa-search-box-product-element",
|
|
8927
8933
|
item: _ctx.item,
|
|
8928
8934
|
element: addToCartElement.value,
|
|
@@ -8931,12 +8937,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8931
8937
|
isInStock: isInStock.value
|
|
8932
8938
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8933
8939
|
])) : createCommentVNode("", true)
|
|
8934
|
-
], 10, _hoisted_1$
|
|
8940
|
+
], 10, _hoisted_1$Y);
|
|
8935
8941
|
};
|
|
8936
8942
|
}
|
|
8937
8943
|
});
|
|
8938
|
-
const _hoisted_1$
|
|
8939
|
-
const _sfc_main
|
|
8944
|
+
const _hoisted_1$X = { id: "lupa-search-box-products" };
|
|
8945
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8940
8946
|
__name: "SearchBoxProducts",
|
|
8941
8947
|
props: {
|
|
8942
8948
|
items: {},
|
|
@@ -8956,7 +8962,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8956
8962
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8957
8963
|
});
|
|
8958
8964
|
return (_ctx, _cache) => {
|
|
8959
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8965
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
8960
8966
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8961
8967
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8962
8968
|
key: index,
|
|
@@ -8968,7 +8974,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8968
8974
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8969
8975
|
});
|
|
8970
8976
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8971
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8977
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
8972
8978
|
key: index,
|
|
8973
8979
|
item,
|
|
8974
8980
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8982,7 +8988,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8982
8988
|
};
|
|
8983
8989
|
}
|
|
8984
8990
|
});
|
|
8985
|
-
const _sfc_main$
|
|
8991
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
8986
8992
|
__name: "SearchBoxProductsWrapper",
|
|
8987
8993
|
props: {
|
|
8988
8994
|
panel: {},
|
|
@@ -9034,7 +9040,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9034
9040
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9035
9041
|
return (_ctx, _cache) => {
|
|
9036
9042
|
var _a, _b;
|
|
9037
|
-
return openBlock(), createBlock(_sfc_main
|
|
9043
|
+
return openBlock(), createBlock(_sfc_main$$, {
|
|
9038
9044
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9039
9045
|
panelOptions: _ctx.panel,
|
|
9040
9046
|
labels: _ctx.labels,
|
|
@@ -9052,26 +9058,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9052
9058
|
};
|
|
9053
9059
|
}
|
|
9054
9060
|
});
|
|
9055
|
-
const _hoisted_1$
|
|
9061
|
+
const _hoisted_1$W = {
|
|
9056
9062
|
key: 0,
|
|
9057
9063
|
id: "lupa-search-box-panel"
|
|
9058
9064
|
};
|
|
9059
|
-
const _hoisted_2$
|
|
9065
|
+
const _hoisted_2$F = {
|
|
9060
9066
|
class: "lupa-main-panel",
|
|
9061
9067
|
"data-cy": "lupa-main-panel"
|
|
9062
9068
|
};
|
|
9063
|
-
const _hoisted_3$
|
|
9064
|
-
const _hoisted_4$
|
|
9069
|
+
const _hoisted_3$v = ["data-cy"];
|
|
9070
|
+
const _hoisted_4$n = {
|
|
9065
9071
|
key: 1,
|
|
9066
9072
|
id: "lupa-search-box-panel"
|
|
9067
9073
|
};
|
|
9068
9074
|
const __default__$3 = {
|
|
9069
9075
|
components: {
|
|
9070
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9071
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
9076
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1b,
|
|
9077
|
+
SearchBoxProductsWrapper: _sfc_main$_
|
|
9072
9078
|
}
|
|
9073
9079
|
};
|
|
9074
|
-
const _sfc_main$
|
|
9080
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9075
9081
|
__name: "SearchBoxMainPanel",
|
|
9076
9082
|
props: {
|
|
9077
9083
|
options: {},
|
|
@@ -9185,8 +9191,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9185
9191
|
ref_key: "panelContainer",
|
|
9186
9192
|
ref: panelContainer
|
|
9187
9193
|
}, [
|
|
9188
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9189
|
-
createBaseVNode("div", _hoisted_2$
|
|
9194
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9195
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
9190
9196
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9191
9197
|
return openBlock(), createElementBlock("div", {
|
|
9192
9198
|
key: index,
|
|
@@ -9215,16 +9221,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9215
9221
|
key: "0"
|
|
9216
9222
|
} : void 0
|
|
9217
9223
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
|
|
9218
|
-
], 10, _hoisted_3$
|
|
9224
|
+
], 10, _hoisted_3$v);
|
|
9219
9225
|
}), 128))
|
|
9220
9226
|
]),
|
|
9221
|
-
createVNode(_sfc_main$
|
|
9227
|
+
createVNode(_sfc_main$1g, {
|
|
9222
9228
|
labels: labels.value,
|
|
9223
9229
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9224
9230
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9225
9231
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9226
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9227
|
-
createVNode(_sfc_main$
|
|
9232
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
9233
|
+
createVNode(_sfc_main$1e, {
|
|
9228
9234
|
options: _ctx.options.history,
|
|
9229
9235
|
history: history.value,
|
|
9230
9236
|
onGoToResults: handleGoToResults,
|
|
@@ -9249,9 +9255,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9249
9255
|
const elements = getElements(triggers);
|
|
9250
9256
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9251
9257
|
};
|
|
9252
|
-
const _hoisted_1$
|
|
9253
|
-
const _hoisted_2$
|
|
9254
|
-
const _sfc_main$
|
|
9258
|
+
const _hoisted_1$V = { id: "lupa-search-box" };
|
|
9259
|
+
const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
|
|
9260
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9255
9261
|
__name: "SearchBox",
|
|
9256
9262
|
props: {
|
|
9257
9263
|
options: {},
|
|
@@ -9484,9 +9490,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9484
9490
|
};
|
|
9485
9491
|
return (_ctx, _cache) => {
|
|
9486
9492
|
var _a2;
|
|
9487
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9488
|
-
createBaseVNode("div", _hoisted_2$
|
|
9489
|
-
createVNode(_sfc_main$
|
|
9493
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9494
|
+
createBaseVNode("div", _hoisted_2$E, [
|
|
9495
|
+
createVNode(_sfc_main$1h, {
|
|
9490
9496
|
options: inputOptions.value,
|
|
9491
9497
|
suggestedValue: suggestedValue.value,
|
|
9492
9498
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9497,7 +9503,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9497
9503
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9498
9504
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9499
9505
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9500
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9506
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Z, {
|
|
9501
9507
|
key: 0,
|
|
9502
9508
|
options: panelOptions.value,
|
|
9503
9509
|
inputValue: inputValue.value,
|
|
@@ -9584,20 +9590,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9584
9590
|
}
|
|
9585
9591
|
return searchParams;
|
|
9586
9592
|
};
|
|
9587
|
-
const _hoisted_1$
|
|
9593
|
+
const _hoisted_1$U = {
|
|
9588
9594
|
key: 0,
|
|
9589
9595
|
id: "lupa-search-results-did-you-mean"
|
|
9590
9596
|
};
|
|
9591
|
-
const _hoisted_2$
|
|
9597
|
+
const _hoisted_2$D = {
|
|
9592
9598
|
key: 0,
|
|
9593
9599
|
"data-cy": "suggested-search-text-label"
|
|
9594
9600
|
};
|
|
9595
|
-
const _hoisted_3$
|
|
9601
|
+
const _hoisted_3$u = {
|
|
9596
9602
|
key: 1,
|
|
9597
9603
|
"data-cy": "did-you-mean-label"
|
|
9598
9604
|
};
|
|
9599
|
-
const _hoisted_4$
|
|
9600
|
-
const _sfc_main$
|
|
9605
|
+
const _hoisted_4$m = { key: 1 };
|
|
9606
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9601
9607
|
__name: "SearchResultsDidYouMean",
|
|
9602
9608
|
props: {
|
|
9603
9609
|
labels: {}
|
|
@@ -9629,8 +9635,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9629
9635
|
paramStore.goToResults({ searchText, facet });
|
|
9630
9636
|
};
|
|
9631
9637
|
return (_ctx, _cache) => {
|
|
9632
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9633
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9638
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
9639
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
|
|
9634
9640
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9635
9641
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9636
9642
|
createBaseVNode("span", {
|
|
@@ -9639,7 +9645,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9639
9645
|
]);
|
|
9640
9646
|
}), 128))
|
|
9641
9647
|
])) : createCommentVNode("", true),
|
|
9642
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9648
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
9643
9649
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
9644
9650
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9645
9651
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -9647,7 +9653,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9647
9653
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
9648
9654
|
"data-cy": "did-you-mean-value",
|
|
9649
9655
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
9650
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9656
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
|
|
9651
9657
|
]);
|
|
9652
9658
|
}), 128))
|
|
9653
9659
|
])) : createCommentVNode("", true)
|
|
@@ -9655,12 +9661,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9655
9661
|
};
|
|
9656
9662
|
}
|
|
9657
9663
|
});
|
|
9658
|
-
const _hoisted_1$
|
|
9664
|
+
const _hoisted_1$T = {
|
|
9659
9665
|
key: 0,
|
|
9660
9666
|
class: "lupa-search-results-summary"
|
|
9661
9667
|
};
|
|
9662
|
-
const _hoisted_2$
|
|
9663
|
-
const _sfc_main$
|
|
9668
|
+
const _hoisted_2$C = ["innerHTML"];
|
|
9669
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9664
9670
|
__name: "SearchResultsSummary",
|
|
9665
9671
|
props: {
|
|
9666
9672
|
label: {},
|
|
@@ -9675,8 +9681,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9675
9681
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9676
9682
|
});
|
|
9677
9683
|
return (_ctx, _cache) => {
|
|
9678
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9679
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9684
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
9685
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
|
|
9680
9686
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9681
9687
|
key: 0,
|
|
9682
9688
|
class: "lupa-filter-clear",
|
|
@@ -9687,18 +9693,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9687
9693
|
};
|
|
9688
9694
|
}
|
|
9689
9695
|
});
|
|
9690
|
-
const _hoisted_1$
|
|
9696
|
+
const _hoisted_1$S = {
|
|
9691
9697
|
key: 0,
|
|
9692
9698
|
class: "lupa-result-page-title",
|
|
9693
9699
|
"data-cy": "lupa-result-page-title"
|
|
9694
9700
|
};
|
|
9695
|
-
const _hoisted_2$
|
|
9696
|
-
const _hoisted_3$
|
|
9701
|
+
const _hoisted_2$B = { key: 0 };
|
|
9702
|
+
const _hoisted_3$t = {
|
|
9697
9703
|
key: 1,
|
|
9698
9704
|
class: "lupa-results-total-count"
|
|
9699
9705
|
};
|
|
9700
|
-
const _hoisted_4$
|
|
9701
|
-
const _sfc_main$
|
|
9706
|
+
const _hoisted_4$l = ["innerHTML"];
|
|
9707
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9702
9708
|
__name: "SearchResultsTitle",
|
|
9703
9709
|
props: {
|
|
9704
9710
|
options: {},
|
|
@@ -9733,12 +9739,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9733
9739
|
});
|
|
9734
9740
|
return (_ctx, _cache) => {
|
|
9735
9741
|
return openBlock(), createElementBlock("div", null, [
|
|
9736
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9742
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
|
|
9737
9743
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9738
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9739
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9744
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9745
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9740
9746
|
])) : createCommentVNode("", true),
|
|
9741
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9747
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$W, {
|
|
9742
9748
|
key: 1,
|
|
9743
9749
|
label: summaryLabel.value
|
|
9744
9750
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9746,21 +9752,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9746
9752
|
key: 2,
|
|
9747
9753
|
class: "lupa-result-page-description-top",
|
|
9748
9754
|
innerHTML: descriptionTop.value
|
|
9749
|
-
}, null, 8, _hoisted_4$
|
|
9755
|
+
}, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
|
|
9750
9756
|
]);
|
|
9751
9757
|
};
|
|
9752
9758
|
}
|
|
9753
9759
|
});
|
|
9754
|
-
const _hoisted_1$
|
|
9755
|
-
const _hoisted_2$
|
|
9760
|
+
const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
|
|
9761
|
+
const _hoisted_2$A = {
|
|
9756
9762
|
class: "lupa-current-filter-label",
|
|
9757
9763
|
"data-cy": "lupa-current-filter-label"
|
|
9758
9764
|
};
|
|
9759
|
-
const _hoisted_3$
|
|
9765
|
+
const _hoisted_3$s = {
|
|
9760
9766
|
class: "lupa-current-filter-value",
|
|
9761
9767
|
"data-cy": "lupa-current-filter-value"
|
|
9762
9768
|
};
|
|
9763
|
-
const _sfc_main$
|
|
9769
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9764
9770
|
__name: "CurrentFilterDisplay",
|
|
9765
9771
|
props: {
|
|
9766
9772
|
filter: {}
|
|
@@ -9772,28 +9778,28 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9772
9778
|
emit2("remove", { filter: props.filter });
|
|
9773
9779
|
};
|
|
9774
9780
|
return (_ctx, _cache) => {
|
|
9775
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9781
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
9776
9782
|
createBaseVNode("div", {
|
|
9777
9783
|
class: "lupa-current-filter-action",
|
|
9778
9784
|
onClick: handleClick
|
|
9779
9785
|
}, "⨉"),
|
|
9780
|
-
createBaseVNode("div", _hoisted_2$
|
|
9781
|
-
createBaseVNode("div", _hoisted_3$
|
|
9786
|
+
createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9787
|
+
createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
|
|
9782
9788
|
]);
|
|
9783
9789
|
};
|
|
9784
9790
|
}
|
|
9785
9791
|
});
|
|
9786
|
-
const _hoisted_1$
|
|
9787
|
-
const _hoisted_2$
|
|
9792
|
+
const _hoisted_1$Q = { class: "lupa-filter-title-text" };
|
|
9793
|
+
const _hoisted_2$z = {
|
|
9788
9794
|
key: 0,
|
|
9789
9795
|
class: "lupa-filter-count"
|
|
9790
9796
|
};
|
|
9791
|
-
const _hoisted_3$
|
|
9797
|
+
const _hoisted_3$r = {
|
|
9792
9798
|
key: 0,
|
|
9793
9799
|
class: "filter-values"
|
|
9794
9800
|
};
|
|
9795
|
-
const _hoisted_4$
|
|
9796
|
-
const _sfc_main$
|
|
9801
|
+
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9802
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9797
9803
|
__name: "CurrentFilters",
|
|
9798
9804
|
props: {
|
|
9799
9805
|
options: {},
|
|
@@ -9848,19 +9854,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9848
9854
|
class: "lupa-current-filter-title",
|
|
9849
9855
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9850
9856
|
}, [
|
|
9851
|
-
createBaseVNode("div", _hoisted_1$
|
|
9857
|
+
createBaseVNode("div", _hoisted_1$Q, [
|
|
9852
9858
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9853
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9859
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9854
9860
|
]),
|
|
9855
9861
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9856
9862
|
key: 0,
|
|
9857
9863
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
9858
9864
|
}, null, 2)) : createCommentVNode("", true)
|
|
9859
9865
|
]),
|
|
9860
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9861
|
-
createBaseVNode("div", _hoisted_4$
|
|
9866
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
9867
|
+
createBaseVNode("div", _hoisted_4$k, [
|
|
9862
9868
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9863
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9869
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
|
9864
9870
|
key: filter.key + "_" + filter.value,
|
|
9865
9871
|
filter,
|
|
9866
9872
|
onRemove: handleRemove
|
|
@@ -9877,8 +9883,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9877
9883
|
};
|
|
9878
9884
|
}
|
|
9879
9885
|
});
|
|
9880
|
-
const _hoisted_1$
|
|
9881
|
-
const _sfc_main$
|
|
9886
|
+
const _hoisted_1$P = ["href"];
|
|
9887
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9882
9888
|
__name: "CategoryFilterItem",
|
|
9883
9889
|
props: {
|
|
9884
9890
|
options: {},
|
|
@@ -9915,20 +9921,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9915
9921
|
"data-cy": "lupa-child-category-item",
|
|
9916
9922
|
href: urlLink.value,
|
|
9917
9923
|
onClick: handleNavigation
|
|
9918
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9924
|
+
}, toDisplayString(title.value), 9, _hoisted_1$P)
|
|
9919
9925
|
], 2);
|
|
9920
9926
|
};
|
|
9921
9927
|
}
|
|
9922
9928
|
});
|
|
9923
|
-
const _hoisted_1$
|
|
9929
|
+
const _hoisted_1$O = {
|
|
9924
9930
|
class: "lupa-category-filter",
|
|
9925
9931
|
"data-cy": "lupa-category-filter"
|
|
9926
9932
|
};
|
|
9927
|
-
const _hoisted_2$
|
|
9928
|
-
const _hoisted_3$
|
|
9929
|
-
const _hoisted_4$
|
|
9930
|
-
const _hoisted_5$
|
|
9931
|
-
const _sfc_main$
|
|
9933
|
+
const _hoisted_2$y = { class: "lupa-category-back" };
|
|
9934
|
+
const _hoisted_3$q = ["href"];
|
|
9935
|
+
const _hoisted_4$j = ["href"];
|
|
9936
|
+
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9937
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
9932
9938
|
__name: "CategoryFilter",
|
|
9933
9939
|
props: {
|
|
9934
9940
|
options: {}
|
|
@@ -10014,14 +10020,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10014
10020
|
};
|
|
10015
10021
|
__expose({ fetch: fetch2 });
|
|
10016
10022
|
return (_ctx, _cache) => {
|
|
10017
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10018
|
-
createBaseVNode("div", _hoisted_2$
|
|
10023
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
10024
|
+
createBaseVNode("div", _hoisted_2$y, [
|
|
10019
10025
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10020
10026
|
key: 0,
|
|
10021
10027
|
"data-cy": "lupa-category-back",
|
|
10022
10028
|
href: backUrlLink.value,
|
|
10023
10029
|
onClick: handleNavigationBack
|
|
10024
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10030
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
|
|
10025
10031
|
]),
|
|
10026
10032
|
createBaseVNode("div", {
|
|
10027
10033
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -10031,11 +10037,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10031
10037
|
href: parentUrlLink.value,
|
|
10032
10038
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
10033
10039
|
onClick: handleNavigationParent
|
|
10034
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
10040
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
|
|
10035
10041
|
], 2),
|
|
10036
|
-
createBaseVNode("div", _hoisted_5$
|
|
10042
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
10037
10043
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10038
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10044
|
+
return openBlock(), createBlock(_sfc_main$S, {
|
|
10039
10045
|
key: getCategoryKey(child),
|
|
10040
10046
|
item: child,
|
|
10041
10047
|
options: _ctx.options
|
|
@@ -10046,23 +10052,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10046
10052
|
};
|
|
10047
10053
|
}
|
|
10048
10054
|
});
|
|
10049
|
-
const _hoisted_1$
|
|
10055
|
+
const _hoisted_1$N = {
|
|
10050
10056
|
class: "lupa-search-result-facet-term-values",
|
|
10051
10057
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10052
10058
|
};
|
|
10053
|
-
const _hoisted_2$
|
|
10054
|
-
const _hoisted_3$
|
|
10055
|
-
const _hoisted_4$
|
|
10056
|
-
const _hoisted_5$
|
|
10057
|
-
const _hoisted_6$
|
|
10058
|
-
const _hoisted_7$
|
|
10059
|
+
const _hoisted_2$x = ["placeholder"];
|
|
10060
|
+
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
10061
|
+
const _hoisted_4$i = ["onClick"];
|
|
10062
|
+
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
10063
|
+
const _hoisted_6$7 = { class: "lupa-term-checkbox-label" };
|
|
10064
|
+
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
10059
10065
|
const _hoisted_8$1 = {
|
|
10060
10066
|
key: 0,
|
|
10061
10067
|
class: "lupa-term-count"
|
|
10062
10068
|
};
|
|
10063
10069
|
const _hoisted_9$1 = { key: 0 };
|
|
10064
10070
|
const _hoisted_10$1 = { key: 1 };
|
|
10065
|
-
const _sfc_main$
|
|
10071
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
10066
10072
|
__name: "TermFacet",
|
|
10067
10073
|
props: {
|
|
10068
10074
|
options: {},
|
|
@@ -10131,17 +10137,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10131
10137
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10132
10138
|
};
|
|
10133
10139
|
return (_ctx, _cache) => {
|
|
10134
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10140
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
10135
10141
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10136
10142
|
key: 0,
|
|
10137
10143
|
class: "lupa-term-filter",
|
|
10138
10144
|
"data-cy": "lupa-term-filter",
|
|
10139
10145
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10140
10146
|
placeholder: _ctx.options.labels.facetFilter
|
|
10141
|
-
}, null, 8, _hoisted_2$
|
|
10147
|
+
}, null, 8, _hoisted_2$x)), [
|
|
10142
10148
|
[vModelText, termFilter.value]
|
|
10143
10149
|
]) : createCommentVNode("", true),
|
|
10144
|
-
createBaseVNode("div", _hoisted_3$
|
|
10150
|
+
createBaseVNode("div", _hoisted_3$p, [
|
|
10145
10151
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
10146
10152
|
return openBlock(), createElementBlock("div", {
|
|
10147
10153
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -10149,16 +10155,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10149
10155
|
key: item.title,
|
|
10150
10156
|
onClick: ($event) => handleFacetClick(item)
|
|
10151
10157
|
}, [
|
|
10152
|
-
createBaseVNode("div", _hoisted_5$
|
|
10158
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
10153
10159
|
createBaseVNode("span", {
|
|
10154
10160
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
10155
10161
|
}, null, 2)
|
|
10156
10162
|
]),
|
|
10157
|
-
createBaseVNode("div", _hoisted_6$
|
|
10158
|
-
createBaseVNode("span", _hoisted_7$
|
|
10163
|
+
createBaseVNode("div", _hoisted_6$7, [
|
|
10164
|
+
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
10159
10165
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10160
10166
|
])
|
|
10161
|
-
], 10, _hoisted_4$
|
|
10167
|
+
], 10, _hoisted_4$i);
|
|
10162
10168
|
}), 128))
|
|
10163
10169
|
]),
|
|
10164
10170
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11149,22 +11155,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11149
11155
|
m.render = function(e, t, r, i, n, o) {
|
|
11150
11156
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11151
11157
|
}, m.__file = "src/Slider.vue";
|
|
11152
|
-
const _hoisted_1$
|
|
11153
|
-
const _hoisted_2$
|
|
11158
|
+
const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
|
|
11159
|
+
const _hoisted_2$w = {
|
|
11154
11160
|
key: 0,
|
|
11155
11161
|
class: "lupa-stats-facet-summary"
|
|
11156
11162
|
};
|
|
11157
|
-
const _hoisted_3$
|
|
11163
|
+
const _hoisted_3$o = {
|
|
11158
11164
|
key: 1,
|
|
11159
11165
|
class: "lupa-stats-facet-summary-input"
|
|
11160
11166
|
};
|
|
11161
|
-
const _hoisted_4$
|
|
11167
|
+
const _hoisted_4$h = {
|
|
11162
11168
|
key: 0,
|
|
11163
11169
|
class: "lupa-stats-range-label"
|
|
11164
11170
|
};
|
|
11165
|
-
const _hoisted_5$
|
|
11166
|
-
const _hoisted_6$
|
|
11167
|
-
const _hoisted_7$
|
|
11171
|
+
const _hoisted_5$a = { class: "lupa-stats-from" };
|
|
11172
|
+
const _hoisted_6$6 = ["max", "min", "pattern"];
|
|
11173
|
+
const _hoisted_7$5 = { key: 0 };
|
|
11168
11174
|
const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
11169
11175
|
const _hoisted_9 = {
|
|
11170
11176
|
key: 0,
|
|
@@ -11177,7 +11183,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11177
11183
|
key: 2,
|
|
11178
11184
|
class: "lupa-stats-slider-wrapper"
|
|
11179
11185
|
};
|
|
11180
|
-
const _sfc_main$
|
|
11186
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11181
11187
|
__name: "StatsFacet",
|
|
11182
11188
|
props: {
|
|
11183
11189
|
options: {},
|
|
@@ -11325,11 +11331,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11325
11331
|
innerSliderRange.value = value;
|
|
11326
11332
|
};
|
|
11327
11333
|
return (_ctx, _cache) => {
|
|
11328
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11329
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11334
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
11335
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
11330
11336
|
createBaseVNode("div", null, [
|
|
11331
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
11332
|
-
createBaseVNode("div", _hoisted_5$
|
|
11337
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11338
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
11333
11339
|
withDirectives(createBaseVNode("input", {
|
|
11334
11340
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
11335
11341
|
type: "text",
|
|
@@ -11337,7 +11343,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11337
11343
|
max: facetMax.value,
|
|
11338
11344
|
min: facetMin.value,
|
|
11339
11345
|
pattern: sliderInputFormat.value
|
|
11340
|
-
}, null, 8, _hoisted_6$
|
|
11346
|
+
}, null, 8, _hoisted_6$6), [
|
|
11341
11347
|
[
|
|
11342
11348
|
vModelText,
|
|
11343
11349
|
fromValue.value,
|
|
@@ -11345,7 +11351,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11345
11351
|
{ lazy: true }
|
|
11346
11352
|
]
|
|
11347
11353
|
]),
|
|
11348
|
-
isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
11354
|
+
isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
|
|
11349
11355
|
])
|
|
11350
11356
|
]),
|
|
11351
11357
|
_hoisted_8,
|
|
@@ -11389,18 +11395,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11389
11395
|
};
|
|
11390
11396
|
}
|
|
11391
11397
|
});
|
|
11392
|
-
const _hoisted_1$
|
|
11393
|
-
const _hoisted_2$
|
|
11394
|
-
const _hoisted_3$
|
|
11395
|
-
const _hoisted_4$
|
|
11398
|
+
const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
|
|
11399
|
+
const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
|
|
11400
|
+
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
11401
|
+
const _hoisted_4$g = {
|
|
11396
11402
|
key: 0,
|
|
11397
11403
|
class: "lupa-term-count"
|
|
11398
11404
|
};
|
|
11399
|
-
const _hoisted_5$
|
|
11405
|
+
const _hoisted_5$9 = {
|
|
11400
11406
|
key: 0,
|
|
11401
11407
|
class: "lupa-facet-level"
|
|
11402
11408
|
};
|
|
11403
|
-
const _sfc_main$
|
|
11409
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11404
11410
|
__name: "HierarchyFacetLevel",
|
|
11405
11411
|
props: {
|
|
11406
11412
|
options: {},
|
|
@@ -11446,17 +11452,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11446
11452
|
"data-cy": "lupa-facet-term",
|
|
11447
11453
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11448
11454
|
}, [
|
|
11449
|
-
createBaseVNode("div", _hoisted_1$
|
|
11455
|
+
createBaseVNode("div", _hoisted_1$L, [
|
|
11450
11456
|
createBaseVNode("span", {
|
|
11451
11457
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11452
11458
|
}, null, 2)
|
|
11453
11459
|
]),
|
|
11454
|
-
createBaseVNode("div", _hoisted_2$
|
|
11455
|
-
createBaseVNode("span", _hoisted_3$
|
|
11456
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11460
|
+
createBaseVNode("div", _hoisted_2$v, [
|
|
11461
|
+
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11462
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11457
11463
|
])
|
|
11458
11464
|
]),
|
|
11459
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
11465
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
|
|
11460
11466
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
11461
11467
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
11462
11468
|
key: itemChild.title,
|
|
@@ -11472,13 +11478,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11472
11478
|
};
|
|
11473
11479
|
}
|
|
11474
11480
|
});
|
|
11475
|
-
const _hoisted_1$
|
|
11481
|
+
const _hoisted_1$K = {
|
|
11476
11482
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11477
11483
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11478
11484
|
};
|
|
11479
|
-
const _hoisted_2$
|
|
11480
|
-
const _hoisted_3$
|
|
11481
|
-
const _sfc_main$
|
|
11485
|
+
const _hoisted_2$u = { key: 0 };
|
|
11486
|
+
const _hoisted_3$m = ["placeholder"];
|
|
11487
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
11482
11488
|
__name: "HierarchyFacet",
|
|
11483
11489
|
props: {
|
|
11484
11490
|
options: {},
|
|
@@ -11528,19 +11534,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11528
11534
|
showAll.value = true;
|
|
11529
11535
|
};
|
|
11530
11536
|
return (_ctx, _cache) => {
|
|
11531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11532
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11537
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
11538
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
11533
11539
|
withDirectives(createBaseVNode("input", {
|
|
11534
11540
|
class: "lupa-term-filter",
|
|
11535
11541
|
"data-cy": "lupa-term-filter",
|
|
11536
11542
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
11537
11543
|
placeholder: _ctx.options.labels.facetFilter
|
|
11538
|
-
}, null, 8, _hoisted_3$
|
|
11544
|
+
}, null, 8, _hoisted_3$m), [
|
|
11539
11545
|
[vModelText, termFilter.value]
|
|
11540
11546
|
])
|
|
11541
11547
|
])) : createCommentVNode("", true),
|
|
11542
11548
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11543
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11549
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
11544
11550
|
key: item.title,
|
|
11545
11551
|
options: _ctx.options,
|
|
11546
11552
|
item,
|
|
@@ -11560,20 +11566,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11560
11566
|
};
|
|
11561
11567
|
}
|
|
11562
11568
|
});
|
|
11563
|
-
const _hoisted_1$
|
|
11564
|
-
const _hoisted_2$
|
|
11569
|
+
const _hoisted_1$J = { class: "lupa-facet-label-text" };
|
|
11570
|
+
const _hoisted_2$t = {
|
|
11565
11571
|
key: 0,
|
|
11566
11572
|
class: "lupa-facet-content",
|
|
11567
11573
|
"data-cy": "lupa-facet-content"
|
|
11568
11574
|
};
|
|
11569
11575
|
const __default__$2 = {
|
|
11570
11576
|
components: {
|
|
11571
|
-
TermFacet: _sfc_main$
|
|
11572
|
-
StatsFacet: _sfc_main$
|
|
11573
|
-
HierarchyFacet: _sfc_main$
|
|
11577
|
+
TermFacet: _sfc_main$Q,
|
|
11578
|
+
StatsFacet: _sfc_main$P,
|
|
11579
|
+
HierarchyFacet: _sfc_main$N
|
|
11574
11580
|
}
|
|
11575
11581
|
};
|
|
11576
|
-
const _sfc_main$
|
|
11582
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11577
11583
|
__name: "FacetDisplay",
|
|
11578
11584
|
props: {
|
|
11579
11585
|
options: {},
|
|
@@ -11684,12 +11690,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11684
11690
|
"data-cy": "lupa-search-result-facet-label",
|
|
11685
11691
|
onClick: toggleFacet
|
|
11686
11692
|
}, [
|
|
11687
|
-
createBaseVNode("div", _hoisted_1$
|
|
11693
|
+
createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
|
|
11688
11694
|
createBaseVNode("div", {
|
|
11689
11695
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11690
11696
|
}, null, 2)
|
|
11691
11697
|
], 2),
|
|
11692
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11698
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
|
|
11693
11699
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11694
11700
|
facet: facet.value,
|
|
11695
11701
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11707,12 +11713,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11707
11713
|
};
|
|
11708
11714
|
}
|
|
11709
11715
|
}));
|
|
11710
|
-
const _hoisted_1$
|
|
11711
|
-
const _hoisted_2$
|
|
11716
|
+
const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
|
|
11717
|
+
const _hoisted_2$s = {
|
|
11712
11718
|
key: 0,
|
|
11713
11719
|
class: "lupa-facets-title"
|
|
11714
11720
|
};
|
|
11715
|
-
const _sfc_main$
|
|
11721
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11716
11722
|
__name: "FacetList",
|
|
11717
11723
|
props: {
|
|
11718
11724
|
options: {},
|
|
@@ -11746,14 +11752,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11746
11752
|
};
|
|
11747
11753
|
return (_ctx, _cache) => {
|
|
11748
11754
|
var _a;
|
|
11749
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11750
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11755
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11756
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11751
11757
|
createBaseVNode("div", {
|
|
11752
11758
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11753
11759
|
}, [
|
|
11754
11760
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11755
11761
|
var _a2;
|
|
11756
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11762
|
+
return openBlock(), createBlock(_sfc_main$M, {
|
|
11757
11763
|
key: facet.key,
|
|
11758
11764
|
facet,
|
|
11759
11765
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11768,8 +11774,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11768
11774
|
};
|
|
11769
11775
|
}
|
|
11770
11776
|
});
|
|
11771
|
-
const _hoisted_1$
|
|
11772
|
-
const _sfc_main$
|
|
11777
|
+
const _hoisted_1$H = { class: "lupa-search-result-facets" };
|
|
11778
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11773
11779
|
__name: "Facets",
|
|
11774
11780
|
props: {
|
|
11775
11781
|
options: {},
|
|
@@ -11815,8 +11821,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11815
11821
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11816
11822
|
};
|
|
11817
11823
|
return (_ctx, _cache) => {
|
|
11818
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11819
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11824
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11825
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11820
11826
|
key: 0,
|
|
11821
11827
|
options: _ctx.options,
|
|
11822
11828
|
facets: regularFacets.value,
|
|
@@ -11830,11 +11836,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11830
11836
|
};
|
|
11831
11837
|
}
|
|
11832
11838
|
});
|
|
11833
|
-
const _hoisted_1$
|
|
11839
|
+
const _hoisted_1$G = {
|
|
11834
11840
|
id: "lupa-search-result-filters",
|
|
11835
11841
|
class: "lupa-search-result-filters"
|
|
11836
11842
|
};
|
|
11837
|
-
const _sfc_main$
|
|
11843
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11838
11844
|
__name: "SearchResultsFilters",
|
|
11839
11845
|
props: {
|
|
11840
11846
|
options: {},
|
|
@@ -11863,19 +11869,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11863
11869
|
__expose({ fetch: fetch2 });
|
|
11864
11870
|
return (_ctx, _cache) => {
|
|
11865
11871
|
var _a;
|
|
11866
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11867
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11872
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11873
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11868
11874
|
key: 0,
|
|
11869
11875
|
options: _ctx.options.currentFilters,
|
|
11870
11876
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11871
11877
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11872
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11878
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$R, {
|
|
11873
11879
|
key: 1,
|
|
11874
11880
|
options: _ctx.options.categories,
|
|
11875
11881
|
ref_key: "categoryFilters",
|
|
11876
11882
|
ref: categoryFilters
|
|
11877
11883
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11878
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11884
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
11879
11885
|
key: 2,
|
|
11880
11886
|
options: _ctx.options.facets
|
|
11881
11887
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11883,20 +11889,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11883
11889
|
};
|
|
11884
11890
|
}
|
|
11885
11891
|
});
|
|
11886
|
-
const _hoisted_1$
|
|
11892
|
+
const _hoisted_1$F = {
|
|
11887
11893
|
key: 0,
|
|
11888
11894
|
class: "lupa-mobile-filter-sidebar"
|
|
11889
11895
|
};
|
|
11890
|
-
const _hoisted_2$
|
|
11891
|
-
const _hoisted_3$
|
|
11892
|
-
const _hoisted_4$
|
|
11893
|
-
const _hoisted_5$
|
|
11894
|
-
const _hoisted_6$
|
|
11896
|
+
const _hoisted_2$r = ["onClick"];
|
|
11897
|
+
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
11898
|
+
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11899
|
+
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
11900
|
+
const _hoisted_6$5 = {
|
|
11895
11901
|
key: 0,
|
|
11896
11902
|
class: "lupa-sidebar-filter-count"
|
|
11897
11903
|
};
|
|
11898
|
-
const _hoisted_7$
|
|
11899
|
-
const _sfc_main$
|
|
11904
|
+
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11905
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11900
11906
|
__name: "MobileFilterSidebar",
|
|
11901
11907
|
props: {
|
|
11902
11908
|
options: {}
|
|
@@ -11922,24 +11928,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11922
11928
|
searchResultStore.setSidebarState({ visible: false });
|
|
11923
11929
|
};
|
|
11924
11930
|
return (_ctx, _cache) => {
|
|
11925
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11931
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11926
11932
|
createBaseVNode("div", {
|
|
11927
11933
|
class: "lupa-sidebar-close",
|
|
11928
11934
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11929
|
-
}, null, 8, _hoisted_2$
|
|
11930
|
-
createBaseVNode("div", _hoisted_3$
|
|
11931
|
-
createBaseVNode("div", _hoisted_4$
|
|
11932
|
-
createBaseVNode("div", _hoisted_5$
|
|
11935
|
+
}, null, 8, _hoisted_2$r),
|
|
11936
|
+
createBaseVNode("div", _hoisted_3$l, [
|
|
11937
|
+
createBaseVNode("div", _hoisted_4$f, [
|
|
11938
|
+
createBaseVNode("div", _hoisted_5$8, [
|
|
11933
11939
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
11934
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
11940
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$5, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
11935
11941
|
]),
|
|
11936
11942
|
createBaseVNode("div", {
|
|
11937
11943
|
class: "lupa-filter-toggle-mobile",
|
|
11938
11944
|
onClick: handleMobileToggle
|
|
11939
11945
|
})
|
|
11940
11946
|
]),
|
|
11941
|
-
createBaseVNode("div", _hoisted_7$
|
|
11942
|
-
createVNode(_sfc_main$
|
|
11947
|
+
createBaseVNode("div", _hoisted_7$4, [
|
|
11948
|
+
createVNode(_sfc_main$J, {
|
|
11943
11949
|
options: _ctx.options,
|
|
11944
11950
|
expandable: isActiveFiltersExpanded.value
|
|
11945
11951
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11949,14 +11955,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11949
11955
|
};
|
|
11950
11956
|
}
|
|
11951
11957
|
});
|
|
11952
|
-
const _hoisted_1$
|
|
11953
|
-
const _hoisted_2$
|
|
11954
|
-
const _hoisted_3$
|
|
11958
|
+
const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
|
|
11959
|
+
const _hoisted_2$q = ["href", "onClick"];
|
|
11960
|
+
const _hoisted_3$k = {
|
|
11955
11961
|
key: 1,
|
|
11956
11962
|
class: "lupa-search-results-breadcrumb-text"
|
|
11957
11963
|
};
|
|
11958
|
-
const _hoisted_4$
|
|
11959
|
-
const _sfc_main$
|
|
11964
|
+
const _hoisted_4$e = { key: 2 };
|
|
11965
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11960
11966
|
__name: "SearchResultsBreadcrumbs",
|
|
11961
11967
|
props: {
|
|
11962
11968
|
breadcrumbs: {}
|
|
@@ -11981,7 +11987,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11981
11987
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11982
11988
|
};
|
|
11983
11989
|
return (_ctx, _cache) => {
|
|
11984
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11990
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
11985
11991
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11986
11992
|
return openBlock(), createElementBlock("span", {
|
|
11987
11993
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11995,19 +12001,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11995
12001
|
var _a;
|
|
11996
12002
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11997
12003
|
}
|
|
11998
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11999
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
12004
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
12005
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
12000
12006
|
]);
|
|
12001
12007
|
}), 128))
|
|
12002
12008
|
]);
|
|
12003
12009
|
};
|
|
12004
12010
|
}
|
|
12005
12011
|
});
|
|
12006
|
-
const _hoisted_1$
|
|
12012
|
+
const _hoisted_1$D = {
|
|
12007
12013
|
id: "lupa-search-result-filters",
|
|
12008
12014
|
class: "lupa-search-result-filters"
|
|
12009
12015
|
};
|
|
12010
|
-
const _sfc_main$
|
|
12016
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12011
12017
|
__name: "FiltersTopDropdown",
|
|
12012
12018
|
props: {
|
|
12013
12019
|
options: {}
|
|
@@ -12015,8 +12021,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12015
12021
|
setup(__props) {
|
|
12016
12022
|
return (_ctx, _cache) => {
|
|
12017
12023
|
var _a;
|
|
12018
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12019
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12024
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
12025
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
|
|
12020
12026
|
key: 0,
|
|
12021
12027
|
options: _ctx.options.facets,
|
|
12022
12028
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12026,8 +12032,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12026
12032
|
};
|
|
12027
12033
|
}
|
|
12028
12034
|
});
|
|
12029
|
-
const _hoisted_1$
|
|
12030
|
-
const _sfc_main$
|
|
12035
|
+
const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
|
|
12036
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12031
12037
|
__name: "SearchResultsLayoutSelection",
|
|
12032
12038
|
setup(__props) {
|
|
12033
12039
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12038,7 +12044,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12038
12044
|
searchResultStore.setLayout(layout2);
|
|
12039
12045
|
};
|
|
12040
12046
|
return (_ctx, _cache) => {
|
|
12041
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12047
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
12042
12048
|
createBaseVNode("div", {
|
|
12043
12049
|
class: normalizeClass([
|
|
12044
12050
|
"lupa-layout-selection-grid",
|
|
@@ -12060,11 +12066,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12060
12066
|
};
|
|
12061
12067
|
}
|
|
12062
12068
|
});
|
|
12063
|
-
const _hoisted_1$
|
|
12069
|
+
const _hoisted_1$B = {
|
|
12064
12070
|
key: 0,
|
|
12065
12071
|
class: "lupa-mobile-toggle-filter-count"
|
|
12066
12072
|
};
|
|
12067
|
-
const _sfc_main$
|
|
12073
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12068
12074
|
__name: "SearchResultsMobileToggle",
|
|
12069
12075
|
props: {
|
|
12070
12076
|
label: {},
|
|
@@ -12082,26 +12088,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12082
12088
|
onClick: handleMobileToggle
|
|
12083
12089
|
}, [
|
|
12084
12090
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12085
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12091
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12086
12092
|
], 2);
|
|
12087
12093
|
};
|
|
12088
12094
|
}
|
|
12089
12095
|
});
|
|
12090
|
-
const _hoisted_1$
|
|
12096
|
+
const _hoisted_1$A = {
|
|
12091
12097
|
key: 0,
|
|
12092
12098
|
id: "lupa-search-results-page-select",
|
|
12093
12099
|
"data-cy": "lupa-search-results-page-select"
|
|
12094
12100
|
};
|
|
12095
|
-
const _hoisted_2$
|
|
12101
|
+
const _hoisted_2$p = {
|
|
12096
12102
|
key: 0,
|
|
12097
12103
|
class: "lupa-page-number-separator"
|
|
12098
12104
|
};
|
|
12099
|
-
const _hoisted_3$
|
|
12100
|
-
const _hoisted_4$
|
|
12105
|
+
const _hoisted_3$j = ["onClick"];
|
|
12106
|
+
const _hoisted_4$d = {
|
|
12101
12107
|
key: 0,
|
|
12102
12108
|
class: "lupa-page-number-separator"
|
|
12103
12109
|
};
|
|
12104
|
-
const _sfc_main$
|
|
12110
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12105
12111
|
__name: "SearchResultsPageSelect",
|
|
12106
12112
|
props: {
|
|
12107
12113
|
lastPageLabel: {},
|
|
@@ -12163,7 +12169,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12163
12169
|
}
|
|
12164
12170
|
};
|
|
12165
12171
|
return (_ctx, _cache) => {
|
|
12166
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12172
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12167
12173
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12168
12174
|
key: 0,
|
|
12169
12175
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12174,7 +12180,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12174
12180
|
class: "lupa-page-number lupa-page-number-first",
|
|
12175
12181
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12176
12182
|
}, " 1 "),
|
|
12177
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12183
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
|
|
12178
12184
|
], 64)) : createCommentVNode("", true),
|
|
12179
12185
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12180
12186
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12185,10 +12191,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12185
12191
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
12186
12192
|
]),
|
|
12187
12193
|
"data-cy": "lupa-page-number"
|
|
12188
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
12194
|
+
}, toDisplayString(page), 11, _hoisted_3$j);
|
|
12189
12195
|
}), 128)),
|
|
12190
12196
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12191
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12197
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
|
|
12192
12198
|
createBaseVNode("div", {
|
|
12193
12199
|
class: "lupa-page-number lupa-page-number-last",
|
|
12194
12200
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -12207,13 +12213,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12207
12213
|
};
|
|
12208
12214
|
}
|
|
12209
12215
|
});
|
|
12210
|
-
const _hoisted_1$
|
|
12216
|
+
const _hoisted_1$z = {
|
|
12211
12217
|
id: "lupa-search-results-page-size",
|
|
12212
12218
|
"data-cy": "lupa-search-results-page-size"
|
|
12213
12219
|
};
|
|
12214
|
-
const _hoisted_2$
|
|
12215
|
-
const _hoisted_3$
|
|
12216
|
-
const _sfc_main$
|
|
12220
|
+
const _hoisted_2$o = { id: "lupa-select" };
|
|
12221
|
+
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12222
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12217
12223
|
__name: "SearchResultsPageSize",
|
|
12218
12224
|
props: {
|
|
12219
12225
|
label: {},
|
|
@@ -12230,9 +12236,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12230
12236
|
});
|
|
12231
12237
|
};
|
|
12232
12238
|
return (_ctx, _cache) => {
|
|
12233
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12234
|
-
createBaseVNode("div", _hoisted_2$
|
|
12235
|
-
createBaseVNode("label", _hoisted_3$
|
|
12239
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
12240
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
12241
|
+
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
|
|
12236
12242
|
createBaseVNode("select", {
|
|
12237
12243
|
class: "lupa-select-dropdown",
|
|
12238
12244
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -12249,14 +12255,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12249
12255
|
};
|
|
12250
12256
|
}
|
|
12251
12257
|
});
|
|
12252
|
-
const _hoisted_1$
|
|
12258
|
+
const _hoisted_1$y = {
|
|
12253
12259
|
id: "lupa-search-results-sort",
|
|
12254
12260
|
class: "lupa-search-results-sort"
|
|
12255
12261
|
};
|
|
12256
|
-
const _hoisted_2$
|
|
12257
|
-
const _hoisted_3$
|
|
12258
|
-
const _hoisted_4$
|
|
12259
|
-
const _sfc_main$
|
|
12262
|
+
const _hoisted_2$n = { id: "lupa-select" };
|
|
12263
|
+
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
12264
|
+
const _hoisted_4$c = ["value"];
|
|
12265
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12260
12266
|
__name: "SearchResultsSort",
|
|
12261
12267
|
props: {
|
|
12262
12268
|
options: {},
|
|
@@ -12300,9 +12306,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12300
12306
|
});
|
|
12301
12307
|
};
|
|
12302
12308
|
return (_ctx, _cache) => {
|
|
12303
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12304
|
-
createBaseVNode("div", _hoisted_2$
|
|
12305
|
-
createBaseVNode("label", _hoisted_3$
|
|
12309
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
12310
|
+
createBaseVNode("div", _hoisted_2$n, [
|
|
12311
|
+
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
12306
12312
|
withDirectives(createBaseVNode("select", {
|
|
12307
12313
|
class: "lupa-select-dropdown",
|
|
12308
12314
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -12314,7 +12320,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12314
12320
|
return openBlock(), createElementBlock("option", {
|
|
12315
12321
|
key: option.key,
|
|
12316
12322
|
value: option.key
|
|
12317
|
-
}, toDisplayString(option.label), 9, _hoisted_4$
|
|
12323
|
+
}, toDisplayString(option.label), 9, _hoisted_4$c);
|
|
12318
12324
|
}), 128))
|
|
12319
12325
|
], 544), [
|
|
12320
12326
|
[vModelSelect, selectedKey.value]
|
|
@@ -12324,14 +12330,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12324
12330
|
};
|
|
12325
12331
|
}
|
|
12326
12332
|
});
|
|
12327
|
-
const _hoisted_1$
|
|
12328
|
-
const _hoisted_2$
|
|
12329
|
-
const _hoisted_3$
|
|
12330
|
-
const _hoisted_4$
|
|
12331
|
-
const _hoisted_5$
|
|
12332
|
-
const _hoisted_6$
|
|
12333
|
-
const _hoisted_7$
|
|
12334
|
-
const _sfc_main$
|
|
12333
|
+
const _hoisted_1$x = { class: "lupa-toolbar-left" };
|
|
12334
|
+
const _hoisted_2$m = { key: 1 };
|
|
12335
|
+
const _hoisted_3$g = { key: 3 };
|
|
12336
|
+
const _hoisted_4$b = { key: 5 };
|
|
12337
|
+
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12338
|
+
const _hoisted_6$4 = { key: 1 };
|
|
12339
|
+
const _hoisted_7$3 = { key: 3 };
|
|
12340
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12335
12341
|
__name: "SearchResultsToolbar",
|
|
12336
12342
|
props: {
|
|
12337
12343
|
options: {},
|
|
@@ -12430,49 +12436,49 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12430
12436
|
id: "lupa-search-results-toolbar",
|
|
12431
12437
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12432
12438
|
}, [
|
|
12433
|
-
createBaseVNode("div", _hoisted_1$
|
|
12434
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12435
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12439
|
+
createBaseVNode("div", _hoisted_1$x, [
|
|
12440
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
|
|
12441
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$W, {
|
|
12436
12442
|
key: 2,
|
|
12437
12443
|
label: searchSummaryLabel.value,
|
|
12438
12444
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12439
12445
|
onClear: handleClearAll
|
|
12440
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12441
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12446
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
12447
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12442
12448
|
key: 4,
|
|
12443
12449
|
options: paginationOptions.value.pageSelect,
|
|
12444
12450
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
12445
12451
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
12446
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12452
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12447
12453
|
]),
|
|
12448
|
-
createBaseVNode("div", _hoisted_5$
|
|
12449
|
-
createVNode(_sfc_main$
|
|
12454
|
+
createBaseVNode("div", _hoisted_5$7, [
|
|
12455
|
+
createVNode(_sfc_main$E, {
|
|
12450
12456
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12451
12457
|
"show-filter-count": showMobileFilterCount.value
|
|
12452
12458
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12453
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12459
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
|
|
12454
12460
|
key: 0,
|
|
12455
12461
|
options: paginationOptions.value.pageSize,
|
|
12456
12462
|
label: paginationOptions.value.labels.pageSize
|
|
12457
|
-
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
12458
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12463
|
+
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
|
|
12464
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
12459
12465
|
key: 2,
|
|
12460
12466
|
options: sortOptions.value,
|
|
12461
12467
|
callbacks: callbacks.value
|
|
12462
|
-
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
12468
|
+
}, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_7$3))
|
|
12463
12469
|
])
|
|
12464
12470
|
], 2);
|
|
12465
12471
|
};
|
|
12466
12472
|
}
|
|
12467
12473
|
});
|
|
12468
|
-
const _hoisted_1$
|
|
12469
|
-
const _hoisted_2$
|
|
12470
|
-
const _hoisted_3$
|
|
12471
|
-
const _hoisted_4$
|
|
12474
|
+
const _hoisted_1$w = { class: "lupa-badge-title" };
|
|
12475
|
+
const _hoisted_2$l = ["src"];
|
|
12476
|
+
const _hoisted_3$f = { key: 1 };
|
|
12477
|
+
const _hoisted_4$a = {
|
|
12472
12478
|
key: 0,
|
|
12473
12479
|
class: "lupa-badge-full-text"
|
|
12474
12480
|
};
|
|
12475
|
-
const _sfc_main$
|
|
12481
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12476
12482
|
__name: "SearchResultGeneratedBadge",
|
|
12477
12483
|
props: {
|
|
12478
12484
|
options: {},
|
|
@@ -12505,20 +12511,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12505
12511
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12506
12512
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12507
12513
|
}, [
|
|
12508
|
-
createBaseVNode("span", _hoisted_1$
|
|
12514
|
+
createBaseVNode("span", _hoisted_1$w, [
|
|
12509
12515
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12510
12516
|
key: 0,
|
|
12511
12517
|
src: image.value
|
|
12512
|
-
}, null, 8, _hoisted_2$
|
|
12513
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12518
|
+
}, null, 8, _hoisted_2$l)) : createCommentVNode("", true),
|
|
12519
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12514
12520
|
]),
|
|
12515
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
12521
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
12516
12522
|
], 6);
|
|
12517
12523
|
};
|
|
12518
12524
|
}
|
|
12519
12525
|
});
|
|
12520
|
-
const _hoisted_1$
|
|
12521
|
-
const _sfc_main$
|
|
12526
|
+
const _hoisted_1$v = { class: "lupa-generated-badges" };
|
|
12527
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12522
12528
|
__name: "SearchResultGeneratedBadges",
|
|
12523
12529
|
props: {
|
|
12524
12530
|
options: {}
|
|
@@ -12544,9 +12550,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12544
12550
|
})).filter((b) => Boolean(b.id));
|
|
12545
12551
|
});
|
|
12546
12552
|
return (_ctx, _cache) => {
|
|
12547
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12553
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
12548
12554
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12549
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12555
|
+
return openBlock(), createBlock(_sfc_main$z, {
|
|
12550
12556
|
key: badge.id,
|
|
12551
12557
|
badge,
|
|
12552
12558
|
options: _ctx.options
|
|
@@ -12556,8 +12562,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12556
12562
|
};
|
|
12557
12563
|
}
|
|
12558
12564
|
});
|
|
12559
|
-
const _hoisted_1$
|
|
12560
|
-
const _sfc_main$
|
|
12565
|
+
const _hoisted_1$u = ["innerHTML"];
|
|
12566
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12561
12567
|
__name: "CustomBadge",
|
|
12562
12568
|
props: {
|
|
12563
12569
|
badge: {}
|
|
@@ -12576,12 +12582,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12576
12582
|
return openBlock(), createElementBlock("div", {
|
|
12577
12583
|
class: normalizeClass(className.value),
|
|
12578
12584
|
innerHTML: text.value
|
|
12579
|
-
}, null, 10, _hoisted_1$
|
|
12585
|
+
}, null, 10, _hoisted_1$u);
|
|
12580
12586
|
};
|
|
12581
12587
|
}
|
|
12582
12588
|
});
|
|
12583
|
-
const _hoisted_1$
|
|
12584
|
-
const _sfc_main$
|
|
12589
|
+
const _hoisted_1$t = { class: "lupa-text-badges" };
|
|
12590
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12585
12591
|
__name: "TextBadge",
|
|
12586
12592
|
props: {
|
|
12587
12593
|
badge: {}
|
|
@@ -12596,7 +12602,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12596
12602
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12597
12603
|
});
|
|
12598
12604
|
return (_ctx, _cache) => {
|
|
12599
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12605
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12600
12606
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12601
12607
|
return openBlock(), createElementBlock("div", {
|
|
12602
12608
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12607,9 +12613,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12607
12613
|
};
|
|
12608
12614
|
}
|
|
12609
12615
|
});
|
|
12610
|
-
const _hoisted_1$
|
|
12611
|
-
const _hoisted_2$
|
|
12612
|
-
const _sfc_main$
|
|
12616
|
+
const _hoisted_1$s = { class: "lupa-image-badges" };
|
|
12617
|
+
const _hoisted_2$k = ["src"];
|
|
12618
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12613
12619
|
__name: "ImageBadge",
|
|
12614
12620
|
props: {
|
|
12615
12621
|
badge: {}
|
|
@@ -12629,7 +12635,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12629
12635
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12630
12636
|
};
|
|
12631
12637
|
return (_ctx, _cache) => {
|
|
12632
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12638
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12633
12639
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12634
12640
|
return openBlock(), createElementBlock("div", {
|
|
12635
12641
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12637,22 +12643,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12637
12643
|
}, [
|
|
12638
12644
|
createBaseVNode("img", {
|
|
12639
12645
|
src: getImageUrl(item)
|
|
12640
|
-
}, null, 8, _hoisted_2$
|
|
12646
|
+
}, null, 8, _hoisted_2$k)
|
|
12641
12647
|
]);
|
|
12642
12648
|
}), 128))
|
|
12643
12649
|
]);
|
|
12644
12650
|
};
|
|
12645
12651
|
}
|
|
12646
12652
|
});
|
|
12647
|
-
const _hoisted_1$
|
|
12653
|
+
const _hoisted_1$r = { id: "lupa-search-results-badges" };
|
|
12648
12654
|
const __default__$1 = {
|
|
12649
12655
|
components: {
|
|
12650
|
-
CustomBadge: _sfc_main$
|
|
12651
|
-
TextBadge: _sfc_main$
|
|
12652
|
-
ImageBadge: _sfc_main$
|
|
12656
|
+
CustomBadge: _sfc_main$x,
|
|
12657
|
+
TextBadge: _sfc_main$w,
|
|
12658
|
+
ImageBadge: _sfc_main$v
|
|
12653
12659
|
}
|
|
12654
12660
|
};
|
|
12655
|
-
const _sfc_main$
|
|
12661
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12656
12662
|
__name: "SearchResultsBadgeWrapper",
|
|
12657
12663
|
props: {
|
|
12658
12664
|
position: {},
|
|
@@ -12698,7 +12704,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12698
12704
|
}
|
|
12699
12705
|
};
|
|
12700
12706
|
return (_ctx, _cache) => {
|
|
12701
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12707
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
12702
12708
|
createBaseVNode("div", {
|
|
12703
12709
|
id: "lupa-badges",
|
|
12704
12710
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12709,7 +12715,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12709
12715
|
badge
|
|
12710
12716
|
}, null, 8, ["badge"]);
|
|
12711
12717
|
}), 128)),
|
|
12712
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12718
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$y, {
|
|
12713
12719
|
key: 0,
|
|
12714
12720
|
options: _ctx.options
|
|
12715
12721
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12718,7 +12724,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12718
12724
|
};
|
|
12719
12725
|
}
|
|
12720
12726
|
}));
|
|
12721
|
-
const _sfc_main$
|
|
12727
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12722
12728
|
__name: "SearchResultsProductImage",
|
|
12723
12729
|
props: {
|
|
12724
12730
|
item: {},
|
|
@@ -12726,7 +12732,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12726
12732
|
},
|
|
12727
12733
|
setup(__props) {
|
|
12728
12734
|
return (_ctx, _cache) => {
|
|
12729
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12735
|
+
return openBlock(), createBlock(_sfc_main$1a, {
|
|
12730
12736
|
item: _ctx.item,
|
|
12731
12737
|
options: _ctx.options,
|
|
12732
12738
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12735,14 +12741,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12735
12741
|
};
|
|
12736
12742
|
}
|
|
12737
12743
|
});
|
|
12738
|
-
const _hoisted_1$
|
|
12739
|
-
const _hoisted_2$
|
|
12740
|
-
const _hoisted_3$
|
|
12744
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
12745
|
+
const _hoisted_2$j = ["title"];
|
|
12746
|
+
const _hoisted_3$e = {
|
|
12741
12747
|
key: 0,
|
|
12742
12748
|
class: "lupa-search-results-product-title-text"
|
|
12743
12749
|
};
|
|
12744
|
-
const _hoisted_4$
|
|
12745
|
-
const _sfc_main$
|
|
12750
|
+
const _hoisted_4$9 = ["href"];
|
|
12751
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12746
12752
|
__name: "SearchResultsProductTitle",
|
|
12747
12753
|
props: {
|
|
12748
12754
|
item: {},
|
|
@@ -12775,25 +12781,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12775
12781
|
class: "lupa-search-results-product-title",
|
|
12776
12782
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12777
12783
|
innerHTML: title.value
|
|
12778
|
-
}, null, 12, _hoisted_1$
|
|
12784
|
+
}, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
|
|
12779
12785
|
key: 1,
|
|
12780
12786
|
class: "lupa-search-results-product-title",
|
|
12781
12787
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12782
12788
|
title: title.value
|
|
12783
12789
|
}, [
|
|
12784
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
12790
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
12785
12791
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
12786
12792
|
key: 1,
|
|
12787
12793
|
href: _ctx.link,
|
|
12788
12794
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12789
12795
|
onClick: handleNavigation
|
|
12790
|
-
}, toDisplayString(title.value), 9, _hoisted_4$
|
|
12791
|
-
], 12, _hoisted_2$
|
|
12796
|
+
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12797
|
+
], 12, _hoisted_2$j));
|
|
12792
12798
|
};
|
|
12793
12799
|
}
|
|
12794
12800
|
});
|
|
12795
|
-
const _hoisted_1$
|
|
12796
|
-
const _sfc_main$
|
|
12801
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
12802
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12797
12803
|
__name: "SearchResultsProductDescription",
|
|
12798
12804
|
props: {
|
|
12799
12805
|
item: {},
|
|
@@ -12817,7 +12823,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12817
12823
|
class: "lupa-search-results-product-description",
|
|
12818
12824
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12819
12825
|
innerHTML: description.value
|
|
12820
|
-
}, null, 12, _hoisted_1$
|
|
12826
|
+
}, null, 12, _hoisted_1$p)) : (openBlock(), createElementBlock("div", {
|
|
12821
12827
|
key: 1,
|
|
12822
12828
|
class: "lupa-search-results-product-description",
|
|
12823
12829
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12825,15 +12831,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12825
12831
|
};
|
|
12826
12832
|
}
|
|
12827
12833
|
});
|
|
12828
|
-
const _hoisted_1$
|
|
12829
|
-
const _hoisted_2$
|
|
12830
|
-
const _hoisted_3$
|
|
12831
|
-
const _hoisted_4$
|
|
12832
|
-
const _hoisted_5$
|
|
12833
|
-
const _hoisted_6$
|
|
12834
|
-
const _hoisted_7$
|
|
12834
|
+
const _hoisted_1$o = { id: "lupa-search-results-rating" };
|
|
12835
|
+
const _hoisted_2$i = { class: "lupa-ratings" };
|
|
12836
|
+
const _hoisted_3$d = { class: "lupa-ratings-base" };
|
|
12837
|
+
const _hoisted_4$8 = ["innerHTML"];
|
|
12838
|
+
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12839
|
+
const _hoisted_6$3 = ["innerHTML"];
|
|
12840
|
+
const _hoisted_7$2 = ["href"];
|
|
12835
12841
|
const STAR_COUNT = 5;
|
|
12836
|
-
const _sfc_main$
|
|
12842
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12837
12843
|
__name: "SearchResultsProductRating",
|
|
12838
12844
|
props: {
|
|
12839
12845
|
item: {},
|
|
@@ -12864,18 +12870,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12864
12870
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12865
12871
|
});
|
|
12866
12872
|
return (_ctx, _cache) => {
|
|
12867
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12868
|
-
createBaseVNode("div", _hoisted_2$
|
|
12869
|
-
createBaseVNode("div", _hoisted_3$
|
|
12873
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12874
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
12875
|
+
createBaseVNode("div", _hoisted_3$d, [
|
|
12870
12876
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12871
12877
|
return openBlock(), createElementBlock("div", {
|
|
12872
12878
|
key: index,
|
|
12873
12879
|
innerHTML: star,
|
|
12874
12880
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
12875
|
-
}, null, 8, _hoisted_4$
|
|
12881
|
+
}, null, 8, _hoisted_4$8);
|
|
12876
12882
|
}), 128))
|
|
12877
12883
|
]),
|
|
12878
|
-
createBaseVNode("div", _hoisted_5$
|
|
12884
|
+
createBaseVNode("div", _hoisted_5$6, [
|
|
12879
12885
|
createBaseVNode("div", {
|
|
12880
12886
|
class: "lupa-ratings-highlighted",
|
|
12881
12887
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -12885,7 +12891,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12885
12891
|
key: index,
|
|
12886
12892
|
innerHTML: star,
|
|
12887
12893
|
class: "lupa-rating lupa-rating-highlighted"
|
|
12888
|
-
}, null, 8, _hoisted_6$
|
|
12894
|
+
}, null, 8, _hoisted_6$3);
|
|
12889
12895
|
}), 128))
|
|
12890
12896
|
], 4)
|
|
12891
12897
|
])
|
|
@@ -12893,16 +12899,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12893
12899
|
createBaseVNode("a", {
|
|
12894
12900
|
href: ratingLink.value,
|
|
12895
12901
|
class: "lupa-total-ratings"
|
|
12896
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_7$
|
|
12902
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_7$2)
|
|
12897
12903
|
]);
|
|
12898
12904
|
};
|
|
12899
12905
|
}
|
|
12900
12906
|
});
|
|
12901
|
-
const _hoisted_1$
|
|
12907
|
+
const _hoisted_1$n = {
|
|
12902
12908
|
class: "lupa-search-results-product-regular-price",
|
|
12903
12909
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12904
12910
|
};
|
|
12905
|
-
const _sfc_main$
|
|
12911
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12906
12912
|
__name: "SearchResultsProductRegularPrice",
|
|
12907
12913
|
props: {
|
|
12908
12914
|
item: {},
|
|
@@ -12920,15 +12926,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12920
12926
|
);
|
|
12921
12927
|
});
|
|
12922
12928
|
return (_ctx, _cache) => {
|
|
12923
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12929
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, toDisplayString(price.value), 1);
|
|
12924
12930
|
};
|
|
12925
12931
|
}
|
|
12926
12932
|
});
|
|
12927
|
-
const _hoisted_1$
|
|
12933
|
+
const _hoisted_1$m = {
|
|
12928
12934
|
class: "lupa-search-results-product-price",
|
|
12929
12935
|
"data-cy": "lupa-search-results-product-price"
|
|
12930
12936
|
};
|
|
12931
|
-
const _sfc_main$
|
|
12937
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
12932
12938
|
__name: "SearchResultsProductPrice",
|
|
12933
12939
|
props: {
|
|
12934
12940
|
item: {},
|
|
@@ -12946,16 +12952,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12946
12952
|
);
|
|
12947
12953
|
});
|
|
12948
12954
|
return (_ctx, _cache) => {
|
|
12949
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12955
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
12950
12956
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12951
12957
|
]);
|
|
12952
12958
|
};
|
|
12953
12959
|
}
|
|
12954
12960
|
});
|
|
12955
|
-
const _hoisted_1$
|
|
12956
|
-
const _hoisted_2$
|
|
12957
|
-
const _hoisted_3$
|
|
12958
|
-
const _sfc_main$
|
|
12961
|
+
const _hoisted_1$l = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
12962
|
+
const _hoisted_2$h = { class: "lupa-search-results-product-addtocart" };
|
|
12963
|
+
const _hoisted_3$c = ["onClick", "disabled"];
|
|
12964
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
12959
12965
|
__name: "SearchResultsProductAddToCart",
|
|
12960
12966
|
props: {
|
|
12961
12967
|
item: {},
|
|
@@ -12982,25 +12988,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12982
12988
|
loading.value = false;
|
|
12983
12989
|
});
|
|
12984
12990
|
return (_ctx, _cache) => {
|
|
12985
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12986
|
-
createBaseVNode("div", _hoisted_2$
|
|
12991
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
12992
|
+
createBaseVNode("div", _hoisted_2$h, [
|
|
12987
12993
|
createBaseVNode("button", {
|
|
12988
12994
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
12989
12995
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
12990
12996
|
"data-cy": "lupa-add-to-cart",
|
|
12991
12997
|
disabled: !inStockValue.value || loading.value
|
|
12992
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
12998
|
+
}, toDisplayString(label.value), 11, _hoisted_3$c)
|
|
12993
12999
|
])
|
|
12994
13000
|
]);
|
|
12995
13001
|
};
|
|
12996
13002
|
}
|
|
12997
13003
|
});
|
|
12998
|
-
const _hoisted_1$
|
|
12999
|
-
const _hoisted_2$
|
|
13000
|
-
const _hoisted_3$
|
|
13001
|
-
const _hoisted_4$
|
|
13002
|
-
const _hoisted_5$
|
|
13003
|
-
const _sfc_main$
|
|
13004
|
+
const _hoisted_1$k = ["innerHTML"];
|
|
13005
|
+
const _hoisted_2$g = { key: 0 };
|
|
13006
|
+
const _hoisted_3$b = { key: 1 };
|
|
13007
|
+
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13008
|
+
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13009
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13004
13010
|
__name: "SearchResultsProductCustom",
|
|
13005
13011
|
props: {
|
|
13006
13012
|
item: {},
|
|
@@ -13038,20 +13044,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13038
13044
|
key: 0,
|
|
13039
13045
|
class: className.value,
|
|
13040
13046
|
innerHTML: text.value
|
|
13041
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13047
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13042
13048
|
key: 1,
|
|
13043
13049
|
class: className.value
|
|
13044
13050
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13045
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13046
|
-
createBaseVNode("div", _hoisted_4$
|
|
13047
|
-
createBaseVNode("div", _hoisted_5$
|
|
13051
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
13052
|
+
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13053
|
+
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13048
13054
|
]))
|
|
13049
13055
|
], 16));
|
|
13050
13056
|
};
|
|
13051
13057
|
}
|
|
13052
13058
|
});
|
|
13053
|
-
const _hoisted_1$
|
|
13054
|
-
const _sfc_main$
|
|
13059
|
+
const _hoisted_1$j = ["innerHTML"];
|
|
13060
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
13055
13061
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13056
13062
|
props: {
|
|
13057
13063
|
item: {},
|
|
@@ -13075,15 +13081,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13075
13081
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13076
13082
|
class: className.value,
|
|
13077
13083
|
innerHTML: text.value
|
|
13078
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13084
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$j);
|
|
13079
13085
|
};
|
|
13080
13086
|
}
|
|
13081
13087
|
});
|
|
13082
|
-
const _hoisted_1$
|
|
13083
|
-
const _hoisted_2$
|
|
13084
|
-
const _hoisted_3$
|
|
13085
|
-
const _hoisted_4$
|
|
13086
|
-
const _sfc_main$
|
|
13088
|
+
const _hoisted_1$i = { id: "lupa-search-results-rating" };
|
|
13089
|
+
const _hoisted_2$f = ["innerHTML"];
|
|
13090
|
+
const _hoisted_3$a = { class: "lupa-ratings" };
|
|
13091
|
+
const _hoisted_4$6 = ["href"];
|
|
13092
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
13087
13093
|
__name: "SearchResultsProductSingleStarRating",
|
|
13088
13094
|
props: {
|
|
13089
13095
|
item: {},
|
|
@@ -13111,35 +13117,35 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13111
13117
|
return RATING_STAR_HTML;
|
|
13112
13118
|
});
|
|
13113
13119
|
return (_ctx, _cache) => {
|
|
13114
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13120
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
13115
13121
|
createBaseVNode("div", {
|
|
13116
13122
|
innerHTML: star.value,
|
|
13117
13123
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13118
|
-
}, null, 8, _hoisted_2$
|
|
13119
|
-
createBaseVNode("div", _hoisted_3$
|
|
13124
|
+
}, null, 8, _hoisted_2$f),
|
|
13125
|
+
createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
|
|
13120
13126
|
createBaseVNode("a", {
|
|
13121
13127
|
href: ratingLink.value,
|
|
13122
13128
|
class: "lupa-total-ratings"
|
|
13123
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
13129
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$6)
|
|
13124
13130
|
]);
|
|
13125
13131
|
};
|
|
13126
13132
|
}
|
|
13127
13133
|
});
|
|
13128
13134
|
const __default__ = {
|
|
13129
13135
|
components: {
|
|
13130
|
-
SearchResultsProductImage: _sfc_main$
|
|
13131
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13132
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13133
|
-
SearchResultsProductRating: _sfc_main$
|
|
13134
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13135
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13136
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13137
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13138
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13139
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13140
|
-
}
|
|
13141
|
-
};
|
|
13142
|
-
const _sfc_main$
|
|
13136
|
+
SearchResultsProductImage: _sfc_main$t,
|
|
13137
|
+
SearchResultsProductTitle: _sfc_main$s,
|
|
13138
|
+
SearchResultsProductDescription: _sfc_main$r,
|
|
13139
|
+
SearchResultsProductRating: _sfc_main$q,
|
|
13140
|
+
SearchResultsProductRegularPrice: _sfc_main$p,
|
|
13141
|
+
SearchResultsProductPrice: _sfc_main$o,
|
|
13142
|
+
SearchResultsProductAddToCart: _sfc_main$n,
|
|
13143
|
+
SearchResultsProductCustom: _sfc_main$m,
|
|
13144
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$l,
|
|
13145
|
+
SearchResultsProductSingleStarRating: _sfc_main$k
|
|
13146
|
+
}
|
|
13147
|
+
};
|
|
13148
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13143
13149
|
__name: "SearchResultsProductCardElement",
|
|
13144
13150
|
props: {
|
|
13145
13151
|
item: {},
|
|
@@ -13209,13 +13215,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13209
13215
|
};
|
|
13210
13216
|
}
|
|
13211
13217
|
}));
|
|
13212
|
-
const _hoisted_1$
|
|
13213
|
-
const _hoisted_2$
|
|
13218
|
+
const _hoisted_1$h = ["href"];
|
|
13219
|
+
const _hoisted_2$e = {
|
|
13214
13220
|
key: 0,
|
|
13215
13221
|
class: "lupa-out-of-stock"
|
|
13216
13222
|
};
|
|
13217
|
-
const _hoisted_3$
|
|
13218
|
-
const _sfc_main$
|
|
13223
|
+
const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
|
|
13224
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13219
13225
|
__name: "SearchResultsProductCard",
|
|
13220
13226
|
props: {
|
|
13221
13227
|
product: {},
|
|
@@ -13360,7 +13366,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13360
13366
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13361
13367
|
onClick: handleClick
|
|
13362
13368
|
}, [
|
|
13363
|
-
createVNode(_sfc_main$
|
|
13369
|
+
createVNode(_sfc_main$u, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13364
13370
|
createBaseVNode("div", {
|
|
13365
13371
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13366
13372
|
}, [
|
|
@@ -13370,7 +13376,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13370
13376
|
onClick: handleNavigation
|
|
13371
13377
|
}, [
|
|
13372
13378
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13373
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13379
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13374
13380
|
class: "lupa-search-results-product-element",
|
|
13375
13381
|
item: _ctx.product,
|
|
13376
13382
|
element,
|
|
@@ -13380,16 +13386,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13380
13386
|
link: link.value
|
|
13381
13387
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13382
13388
|
}), 128)),
|
|
13383
|
-
createVNode(_sfc_main$
|
|
13389
|
+
createVNode(_sfc_main$u, {
|
|
13384
13390
|
options: badgesOptions.value,
|
|
13385
13391
|
position: "image",
|
|
13386
13392
|
class: "lupa-image-badges"
|
|
13387
13393
|
}, null, 8, ["options"]),
|
|
13388
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13389
|
-
], 8, _hoisted_1$
|
|
13390
|
-
createBaseVNode("div", _hoisted_3$
|
|
13394
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13395
|
+
], 8, _hoisted_1$h),
|
|
13396
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
13391
13397
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13392
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13398
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13393
13399
|
class: "lupa-search-results-product-element",
|
|
13394
13400
|
item: _ctx.product,
|
|
13395
13401
|
element,
|
|
@@ -13407,7 +13413,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13407
13413
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13408
13414
|
}, [
|
|
13409
13415
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13410
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13416
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13411
13417
|
class: "lupa-search-results-product-element",
|
|
13412
13418
|
item: _ctx.product,
|
|
13413
13419
|
element,
|
|
@@ -13425,23 +13431,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13425
13431
|
};
|
|
13426
13432
|
}
|
|
13427
13433
|
});
|
|
13428
|
-
const _hoisted_1$
|
|
13434
|
+
const _hoisted_1$g = {
|
|
13429
13435
|
id: "lupa-search-results-similar-queries",
|
|
13430
13436
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13431
13437
|
};
|
|
13432
|
-
const _hoisted_2$
|
|
13433
|
-
const _hoisted_3$
|
|
13438
|
+
const _hoisted_2$d = { class: "lupa-similar-queries-label" };
|
|
13439
|
+
const _hoisted_3$8 = {
|
|
13434
13440
|
class: "lupa-similar-query-label",
|
|
13435
13441
|
"data-cy": "lupa-similar-query-label"
|
|
13436
13442
|
};
|
|
13437
|
-
const _hoisted_4$
|
|
13438
|
-
const _hoisted_5$
|
|
13439
|
-
const _hoisted_6 = { key: 0 };
|
|
13440
|
-
const _hoisted_7 = {
|
|
13443
|
+
const _hoisted_4$5 = ["onClick"];
|
|
13444
|
+
const _hoisted_5$4 = ["innerHTML"];
|
|
13445
|
+
const _hoisted_6$2 = { key: 0 };
|
|
13446
|
+
const _hoisted_7$1 = {
|
|
13441
13447
|
class: "lupa-products",
|
|
13442
13448
|
"data-cy": "lupa-products"
|
|
13443
13449
|
};
|
|
13444
|
-
const _sfc_main$
|
|
13450
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13445
13451
|
__name: "SearchResultsSimilarQueries",
|
|
13446
13452
|
props: {
|
|
13447
13453
|
labels: {},
|
|
@@ -13471,11 +13477,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13471
13477
|
paramsStore.goToResults({ searchText, facet });
|
|
13472
13478
|
};
|
|
13473
13479
|
return (_ctx, _cache) => {
|
|
13474
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13475
|
-
createBaseVNode("div", _hoisted_2$
|
|
13480
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13481
|
+
createBaseVNode("div", _hoisted_2$d, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13476
13482
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13477
13483
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13478
|
-
createBaseVNode("div", _hoisted_3$
|
|
13484
|
+
createBaseVNode("div", _hoisted_3$8, [
|
|
13479
13485
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
13480
13486
|
createBaseVNode("span", {
|
|
13481
13487
|
id: "lupa-similar-query-text-component",
|
|
@@ -13485,13 +13491,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13485
13491
|
}, [
|
|
13486
13492
|
createBaseVNode("span", {
|
|
13487
13493
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
13488
|
-
}, null, 8, _hoisted_5$
|
|
13489
|
-
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
13490
|
-
], 8, _hoisted_4$
|
|
13494
|
+
}, null, 8, _hoisted_5$4),
|
|
13495
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
13496
|
+
], 8, _hoisted_4$5)
|
|
13491
13497
|
]),
|
|
13492
|
-
createBaseVNode("div", _hoisted_7, [
|
|
13498
|
+
createBaseVNode("div", _hoisted_7$1, [
|
|
13493
13499
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13494
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13500
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
13495
13501
|
style: normalizeStyle(_ctx.columnSize),
|
|
13496
13502
|
key: getDocumentKey(index2, product),
|
|
13497
13503
|
product,
|
|
@@ -13505,15 +13511,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13505
13511
|
};
|
|
13506
13512
|
}
|
|
13507
13513
|
});
|
|
13508
|
-
const _hoisted_1$
|
|
13514
|
+
const _hoisted_1$f = {
|
|
13509
13515
|
key: 0,
|
|
13510
13516
|
class: "lupa-results-additional-panel"
|
|
13511
13517
|
};
|
|
13512
|
-
const _hoisted_2$
|
|
13518
|
+
const _hoisted_2$c = {
|
|
13513
13519
|
class: "lupa-results-additional-panel-items",
|
|
13514
13520
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13515
13521
|
};
|
|
13516
|
-
const _sfc_main$
|
|
13522
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
13517
13523
|
__name: "AdditionalPanel",
|
|
13518
13524
|
props: {
|
|
13519
13525
|
panel: {},
|
|
@@ -13585,10 +13591,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13585
13591
|
handleQueryChange();
|
|
13586
13592
|
});
|
|
13587
13593
|
return (_ctx, _cache) => {
|
|
13588
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13589
|
-
createBaseVNode("div", _hoisted_2$
|
|
13594
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13595
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
13590
13596
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13591
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13597
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
13592
13598
|
key: index,
|
|
13593
13599
|
product: item,
|
|
13594
13600
|
options: _ctx.panel,
|
|
@@ -13606,11 +13612,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13606
13612
|
};
|
|
13607
13613
|
}
|
|
13608
13614
|
});
|
|
13609
|
-
const _hoisted_1$
|
|
13615
|
+
const _hoisted_1$e = {
|
|
13610
13616
|
key: 0,
|
|
13611
13617
|
class: "lupa-results-additional-panels"
|
|
13612
13618
|
};
|
|
13613
|
-
const _sfc_main$
|
|
13619
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
13614
13620
|
__name: "AdditionalPanels",
|
|
13615
13621
|
props: {
|
|
13616
13622
|
options: {},
|
|
@@ -13627,9 +13633,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13627
13633
|
return locationPanels.value.length > 0;
|
|
13628
13634
|
});
|
|
13629
13635
|
return (_ctx, _cache) => {
|
|
13630
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13636
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13631
13637
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13632
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13638
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
13633
13639
|
key: panel.queryKey,
|
|
13634
13640
|
panel,
|
|
13635
13641
|
options: _ctx.sdkOptions
|
|
@@ -13646,36 +13652,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13646
13652
|
}
|
|
13647
13653
|
return target;
|
|
13648
13654
|
};
|
|
13649
|
-
const _sfc_main$
|
|
13650
|
-
const _hoisted_1$
|
|
13651
|
-
const _hoisted_2$
|
|
13655
|
+
const _sfc_main$e = {};
|
|
13656
|
+
const _hoisted_1$d = { class: "lupa-spinner-wrapper" };
|
|
13657
|
+
const _hoisted_2$b = { class: "lupa-spinner" };
|
|
13652
13658
|
function _sfc_render(_ctx, _cache) {
|
|
13653
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13654
|
-
createBaseVNode("div", _hoisted_2$
|
|
13659
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
13660
|
+
createBaseVNode("div", _hoisted_2$b, [
|
|
13655
13661
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13656
13662
|
return createBaseVNode("div", { key: x });
|
|
13657
13663
|
}), 64))
|
|
13658
13664
|
])
|
|
13659
13665
|
]);
|
|
13660
13666
|
}
|
|
13661
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13662
|
-
const _hoisted_1$
|
|
13663
|
-
const _hoisted_2$
|
|
13667
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
|
|
13668
|
+
const _hoisted_1$c = { id: "lupa-search-results-products" };
|
|
13669
|
+
const _hoisted_2$a = {
|
|
13664
13670
|
class: "lupa-products",
|
|
13665
13671
|
"data-cy": "lupa-products"
|
|
13666
13672
|
};
|
|
13667
|
-
const _hoisted_3$
|
|
13673
|
+
const _hoisted_3$7 = {
|
|
13668
13674
|
key: 0,
|
|
13669
13675
|
class: "lupa-empty-results",
|
|
13670
13676
|
"data-cy": "lupa-no-results-in-page"
|
|
13671
13677
|
};
|
|
13672
|
-
const _hoisted_4$
|
|
13678
|
+
const _hoisted_4$4 = {
|
|
13673
13679
|
key: 3,
|
|
13674
13680
|
class: "lupa-empty-results",
|
|
13675
13681
|
"data-cy": "lupa-no-results"
|
|
13676
13682
|
};
|
|
13677
|
-
const _hoisted_5 = { key: 4 };
|
|
13678
|
-
const _sfc_main$
|
|
13683
|
+
const _hoisted_5$3 = { key: 4 };
|
|
13684
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13679
13685
|
__name: "SearchResultsProducts",
|
|
13680
13686
|
props: {
|
|
13681
13687
|
options: {},
|
|
@@ -13766,23 +13772,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13766
13772
|
};
|
|
13767
13773
|
return (_ctx, _cache) => {
|
|
13768
13774
|
var _a;
|
|
13769
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13775
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
13770
13776
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
13771
13777
|
key: 0,
|
|
13772
13778
|
class: "lupa-loader"
|
|
13773
13779
|
})) : createCommentVNode("", true),
|
|
13774
13780
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13775
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13781
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
13776
13782
|
key: 0,
|
|
13777
13783
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13778
13784
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13779
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13785
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
13780
13786
|
key: 1,
|
|
13781
13787
|
class: "lupa-toolbar-mobile",
|
|
13782
13788
|
options: _ctx.options,
|
|
13783
13789
|
"pagination-location": "top"
|
|
13784
13790
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13785
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13791
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
13786
13792
|
key: 2,
|
|
13787
13793
|
class: normalizeClass(currentFiltersClass.value),
|
|
13788
13794
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13790,18 +13796,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13790
13796
|
expandable: !desktopFiltersExpanded.value
|
|
13791
13797
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13792
13798
|
], 64)) : createCommentVNode("", true),
|
|
13793
|
-
createVNode(_sfc_main$
|
|
13799
|
+
createVNode(_sfc_main$f, {
|
|
13794
13800
|
options: _ctx.options,
|
|
13795
13801
|
location: "top",
|
|
13796
13802
|
sdkOptions: _ctx.options.options
|
|
13797
13803
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13798
13804
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13799
|
-
createVNode(_sfc_main$
|
|
13805
|
+
createVNode(_sfc_main$A, {
|
|
13800
13806
|
class: "lupa-toolbar-top",
|
|
13801
13807
|
options: _ctx.options,
|
|
13802
13808
|
"pagination-location": "top"
|
|
13803
13809
|
}, null, 8, ["options"]),
|
|
13804
|
-
createBaseVNode("div", _hoisted_2$
|
|
13810
|
+
createBaseVNode("div", _hoisted_2$a, [
|
|
13805
13811
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13806
13812
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
13807
13813
|
style: normalizeStyle(columnSize.value),
|
|
@@ -13810,7 +13816,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13810
13816
|
options: productCardOptions.value
|
|
13811
13817
|
});
|
|
13812
13818
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13813
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13819
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
13814
13820
|
style: normalizeStyle(columnSize.value),
|
|
13815
13821
|
key: getProductKeyAction(index, product),
|
|
13816
13822
|
product,
|
|
@@ -13818,7 +13824,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13818
13824
|
}, null, 8, ["style", "product", "options"]);
|
|
13819
13825
|
}), 128))
|
|
13820
13826
|
]),
|
|
13821
|
-
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
13827
|
+
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
13822
13828
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
13823
13829
|
_ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
|
|
13824
13830
|
key: 0,
|
|
@@ -13826,22 +13832,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13826
13832
|
onClick: goToFirstPage
|
|
13827
13833
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13828
13834
|
])) : createCommentVNode("", true),
|
|
13829
|
-
createVNode(_sfc_main$
|
|
13835
|
+
createVNode(_sfc_main$A, {
|
|
13830
13836
|
class: "lupa-toolbar-bottom",
|
|
13831
13837
|
options: _ctx.options,
|
|
13832
13838
|
"pagination-location": "bottom"
|
|
13833
13839
|
}, null, 8, ["options"]),
|
|
13834
|
-
createVNode(_sfc_main$
|
|
13840
|
+
createVNode(_sfc_main$f, {
|
|
13835
13841
|
options: _ctx.options,
|
|
13836
13842
|
location: "bottom",
|
|
13837
13843
|
sdkOptions: _ctx.options.options
|
|
13838
13844
|
}, null, 8, ["options", "sdkOptions"])
|
|
13839
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
13845
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
13840
13846
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
13841
13847
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13842
13848
|
])) : createCommentVNode("", true),
|
|
13843
|
-
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
13844
|
-
createVNode(_sfc_main$
|
|
13849
|
+
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13850
|
+
createVNode(_sfc_main$h, {
|
|
13845
13851
|
labels: similarQueriesLabels.value,
|
|
13846
13852
|
columnSize: columnSize.value,
|
|
13847
13853
|
productCardOptions: productCardOptions.value
|
|
@@ -13852,13 +13858,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13852
13858
|
};
|
|
13853
13859
|
}
|
|
13854
13860
|
});
|
|
13855
|
-
const _hoisted_1$
|
|
13856
|
-
const _hoisted_2$
|
|
13861
|
+
const _hoisted_1$b = { class: "lupa-top-mobile-filter-wrapper" };
|
|
13862
|
+
const _hoisted_2$9 = {
|
|
13857
13863
|
key: 0,
|
|
13858
13864
|
class: "lupa-category-back"
|
|
13859
13865
|
};
|
|
13860
|
-
const _hoisted_3$
|
|
13861
|
-
const _sfc_main$
|
|
13866
|
+
const _hoisted_3$6 = ["href"];
|
|
13867
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13862
13868
|
__name: "CategoryTopFilters",
|
|
13863
13869
|
props: {
|
|
13864
13870
|
options: {}
|
|
@@ -13890,15 +13896,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13890
13896
|
return openBlock(), createElementBlock("div", {
|
|
13891
13897
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
13892
13898
|
}, [
|
|
13893
|
-
createBaseVNode("div", _hoisted_1$
|
|
13894
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13899
|
+
createBaseVNode("div", _hoisted_1$b, [
|
|
13900
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
13895
13901
|
createBaseVNode("a", {
|
|
13896
13902
|
"data-cy": "lupa-category-back",
|
|
13897
13903
|
href: backUrlLink.value,
|
|
13898
13904
|
onClick: handleNavigationBack
|
|
13899
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
13905
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13900
13906
|
])) : createCommentVNode("", true),
|
|
13901
|
-
createVNode(_sfc_main$
|
|
13907
|
+
createVNode(_sfc_main$A, {
|
|
13902
13908
|
class: "lupa-toolbar-mobile",
|
|
13903
13909
|
"pagination-location": "top",
|
|
13904
13910
|
options: _ctx.options
|
|
@@ -13908,18 +13914,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13908
13914
|
};
|
|
13909
13915
|
}
|
|
13910
13916
|
});
|
|
13911
|
-
const _hoisted_1$
|
|
13917
|
+
const _hoisted_1$a = {
|
|
13912
13918
|
key: 0,
|
|
13913
13919
|
class: "lupa-container-title-summary-mobile"
|
|
13914
13920
|
};
|
|
13915
|
-
const _hoisted_2$
|
|
13921
|
+
const _hoisted_2$8 = {
|
|
13916
13922
|
key: 4,
|
|
13917
13923
|
id: "lupa-search-results",
|
|
13918
13924
|
class: "top-layout-wrapper"
|
|
13919
13925
|
};
|
|
13920
|
-
const _hoisted_3 = { class: "search-content" };
|
|
13921
|
-
const _hoisted_4 = { id: "lupa-search-results" };
|
|
13922
|
-
const _sfc_main$
|
|
13926
|
+
const _hoisted_3$5 = { class: "search-content" };
|
|
13927
|
+
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
13928
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
13923
13929
|
__name: "SearchResults",
|
|
13924
13930
|
props: {
|
|
13925
13931
|
options: {},
|
|
@@ -14108,40 +14114,40 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14108
14114
|
return openBlock(), createElementBlock("div", {
|
|
14109
14115
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14110
14116
|
}, [
|
|
14111
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14112
|
-
createVNode(_sfc_main$
|
|
14113
|
-
createVNode(_sfc_main$
|
|
14117
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14118
|
+
createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14119
|
+
createVNode(_sfc_main$V, {
|
|
14114
14120
|
"show-summary": true,
|
|
14115
14121
|
options: _ctx.options,
|
|
14116
14122
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
14117
14123
|
}, null, 8, ["options", "is-product-list"])
|
|
14118
14124
|
])) : createCommentVNode("", true),
|
|
14119
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
14125
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$c, {
|
|
14120
14126
|
key: 1,
|
|
14121
14127
|
options: _ctx.options
|
|
14122
14128
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14123
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14129
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
|
|
14124
14130
|
key: 2,
|
|
14125
14131
|
options: _ctx.options.filters
|
|
14126
14132
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14127
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14133
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
|
|
14128
14134
|
key: 3,
|
|
14129
14135
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14130
14136
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14131
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14132
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14137
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
14138
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14133
14139
|
key: 0,
|
|
14134
14140
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14135
14141
|
ref_key: "searchResultsFilters",
|
|
14136
14142
|
ref: searchResultsFilters
|
|
14137
14143
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14138
|
-
createBaseVNode("div", _hoisted_3, [
|
|
14139
|
-
createVNode(_sfc_main$
|
|
14140
|
-
createVNode(_sfc_main$
|
|
14144
|
+
createBaseVNode("div", _hoisted_3$5, [
|
|
14145
|
+
createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14146
|
+
createVNode(_sfc_main$V, {
|
|
14141
14147
|
options: _ctx.options,
|
|
14142
14148
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14143
14149
|
}, null, 8, ["options", "is-product-list"]),
|
|
14144
|
-
createVNode(_sfc_main$
|
|
14150
|
+
createVNode(_sfc_main$d, {
|
|
14145
14151
|
options: _ctx.options,
|
|
14146
14152
|
ssr: ssrEnabled.value
|
|
14147
14153
|
}, {
|
|
@@ -14152,19 +14158,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14152
14158
|
}, 8, ["options", "ssr"])
|
|
14153
14159
|
])
|
|
14154
14160
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14155
|
-
createVNode(_sfc_main$
|
|
14156
|
-
createVNode(_sfc_main$
|
|
14161
|
+
createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14162
|
+
createVNode(_sfc_main$V, {
|
|
14157
14163
|
options: _ctx.options,
|
|
14158
14164
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14159
14165
|
}, null, 8, ["options", "is-product-list"]),
|
|
14160
|
-
createBaseVNode("div", _hoisted_4, [
|
|
14161
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14166
|
+
createBaseVNode("div", _hoisted_4$3, [
|
|
14167
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14162
14168
|
key: 0,
|
|
14163
14169
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14164
14170
|
ref_key: "searchResultsFilters",
|
|
14165
14171
|
ref: searchResultsFilters
|
|
14166
14172
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14167
|
-
createVNode(_sfc_main$
|
|
14173
|
+
createVNode(_sfc_main$d, {
|
|
14168
14174
|
options: _ctx.options,
|
|
14169
14175
|
ssr: ssrEnabled.value
|
|
14170
14176
|
}, createSlots({
|
|
@@ -14187,12 +14193,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14187
14193
|
};
|
|
14188
14194
|
}
|
|
14189
14195
|
});
|
|
14190
|
-
const _hoisted_1$
|
|
14196
|
+
const _hoisted_1$9 = {
|
|
14191
14197
|
key: 0,
|
|
14192
14198
|
class: "lupa-category-overview"
|
|
14193
14199
|
};
|
|
14194
|
-
const _hoisted_2$
|
|
14195
|
-
const _sfc_main$
|
|
14200
|
+
const _hoisted_2$7 = ["innerHTML"];
|
|
14201
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
14196
14202
|
__name: "CategoryDescription",
|
|
14197
14203
|
props: {
|
|
14198
14204
|
options: {}
|
|
@@ -14208,16 +14214,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14208
14214
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14209
14215
|
});
|
|
14210
14216
|
return (_ctx, _cache) => {
|
|
14211
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14217
|
+
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
14212
14218
|
createBaseVNode("div", {
|
|
14213
14219
|
class: "lupa-category-description",
|
|
14214
14220
|
innerHTML: description.value
|
|
14215
|
-
}, null, 8, _hoisted_2$
|
|
14221
|
+
}, null, 8, _hoisted_2$7)
|
|
14216
14222
|
])) : createCommentVNode("", true);
|
|
14217
14223
|
};
|
|
14218
14224
|
}
|
|
14219
14225
|
});
|
|
14220
|
-
const _sfc_main$
|
|
14226
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
14221
14227
|
__name: "ProductList",
|
|
14222
14228
|
props: {
|
|
14223
14229
|
options: {}
|
|
@@ -14239,7 +14245,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14239
14245
|
__expose({ fetch: fetch2 });
|
|
14240
14246
|
return (_ctx, _cache) => {
|
|
14241
14247
|
return openBlock(), createElementBlock("div", null, [
|
|
14242
|
-
createVNode(_sfc_main$
|
|
14248
|
+
createVNode(_sfc_main$b, {
|
|
14243
14249
|
options: componentOptions.value,
|
|
14244
14250
|
"initial-filters": _ctx.options.initialFilters,
|
|
14245
14251
|
"is-product-list": true,
|
|
@@ -14247,7 +14253,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14247
14253
|
ref: searchResults2
|
|
14248
14254
|
}, {
|
|
14249
14255
|
default: withCtx(() => [
|
|
14250
|
-
createVNode(_sfc_main$
|
|
14256
|
+
createVNode(_sfc_main$a, { options: _ctx.options }, null, 8, ["options"])
|
|
14251
14257
|
]),
|
|
14252
14258
|
_: 1
|
|
14253
14259
|
}, 8, ["options", "initial-filters"])
|
|
@@ -19738,9 +19744,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19738
19744
|
}).call(commonjsGlobal$1);
|
|
19739
19745
|
})(lodash$1, lodash$1.exports);
|
|
19740
19746
|
var lodashExports$1 = lodash$1.exports;
|
|
19741
|
-
const _hoisted_1$
|
|
19742
|
-
const _hoisted_2$
|
|
19743
|
-
const _sfc_main$
|
|
19747
|
+
const _hoisted_1$8 = ["onClick"];
|
|
19748
|
+
const _hoisted_2$6 = { class: "lupa-search-box-container" };
|
|
19749
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
19744
19750
|
__name: "SearchContainer",
|
|
19745
19751
|
props: {
|
|
19746
19752
|
options: {}
|
|
@@ -19785,8 +19791,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19785
19791
|
class: "lupa-search-container",
|
|
19786
19792
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19787
19793
|
}, [
|
|
19788
|
-
createBaseVNode("div", _hoisted_2$
|
|
19789
|
-
createVNode(_sfc_main$
|
|
19794
|
+
createBaseVNode("div", _hoisted_2$6, [
|
|
19795
|
+
createVNode(_sfc_main$Y, {
|
|
19790
19796
|
options: fullSearchBoxOptions.value,
|
|
19791
19797
|
"is-search-container": true,
|
|
19792
19798
|
ref_key: "searchBox",
|
|
@@ -19794,13 +19800,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19794
19800
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
19795
19801
|
}, null, 8, ["options"])
|
|
19796
19802
|
]),
|
|
19797
|
-
createVNode(_sfc_main$
|
|
19803
|
+
createVNode(_sfc_main$b, {
|
|
19798
19804
|
options: fullSearchResultsOptions.value,
|
|
19799
19805
|
"is-container": true,
|
|
19800
19806
|
ref_key: "searchResults",
|
|
19801
19807
|
ref: searchResults2
|
|
19802
19808
|
}, null, 8, ["options"])
|
|
19803
|
-
], 8, _hoisted_1$
|
|
19809
|
+
], 8, _hoisted_1$8)
|
|
19804
19810
|
]);
|
|
19805
19811
|
};
|
|
19806
19812
|
}
|
|
@@ -20503,13 +20509,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20503
20509
|
};
|
|
20504
20510
|
}
|
|
20505
20511
|
});
|
|
20506
|
-
const _hoisted_1 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
20507
|
-
const _hoisted_2 = {
|
|
20512
|
+
const _hoisted_1$7 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
20513
|
+
const _hoisted_2$5 = {
|
|
20508
20514
|
key: 0,
|
|
20509
20515
|
class: "lupa-recommended-products",
|
|
20510
20516
|
"data-cy": "lupa-recommended-products"
|
|
20511
20517
|
};
|
|
20512
|
-
const _sfc_main$
|
|
20518
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
20513
20519
|
__name: "Recommendations",
|
|
20514
20520
|
props: {
|
|
20515
20521
|
options: {}
|
|
@@ -20595,8 +20601,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20595
20601
|
});
|
|
20596
20602
|
__expose({ fetch: fetch2 });
|
|
20597
20603
|
return (_ctx, _cache) => {
|
|
20598
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
20599
|
-
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
20604
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
20605
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
20600
20606
|
createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
|
|
20601
20607
|
addons: withCtx(() => [
|
|
20602
20608
|
createVNode(unref(Navigation))
|
|
@@ -20607,7 +20613,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20607
20613
|
key: getProductKeyAction(index, product)
|
|
20608
20614
|
}, {
|
|
20609
20615
|
default: withCtx(() => [
|
|
20610
|
-
createVNode(_sfc_main$
|
|
20616
|
+
createVNode(_sfc_main$i, {
|
|
20611
20617
|
product,
|
|
20612
20618
|
options: _ctx.options,
|
|
20613
20619
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20624,6 +20630,533 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20624
20630
|
};
|
|
20625
20631
|
}
|
|
20626
20632
|
});
|
|
20633
|
+
const _withScopeId = (n) => (pushScopeId("data-v-6fa22b2b"), n = n(), popScopeId(), n);
|
|
20634
|
+
const _hoisted_1$6 = { class: "lupa-chat-spinner" };
|
|
20635
|
+
const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", null, null, -1));
|
|
20636
|
+
const _hoisted_3$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", null, null, -1));
|
|
20637
|
+
const _hoisted_4$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", null, null, -1));
|
|
20638
|
+
const _hoisted_5$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", null, null, -1));
|
|
20639
|
+
const _hoisted_6$1 = [
|
|
20640
|
+
_hoisted_2$4,
|
|
20641
|
+
_hoisted_3$4,
|
|
20642
|
+
_hoisted_4$2,
|
|
20643
|
+
_hoisted_5$2
|
|
20644
|
+
];
|
|
20645
|
+
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
20646
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
20647
|
+
__name: "ChatSpinner",
|
|
20648
|
+
props: {
|
|
20649
|
+
small: { type: Boolean },
|
|
20650
|
+
message: {}
|
|
20651
|
+
},
|
|
20652
|
+
setup(__props) {
|
|
20653
|
+
return (_ctx, _cache) => {
|
|
20654
|
+
return openBlock(), createElementBlock("section", _hoisted_1$6, [
|
|
20655
|
+
createBaseVNode("div", {
|
|
20656
|
+
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
20657
|
+
}, _hoisted_6$1, 2),
|
|
20658
|
+
createBaseVNode("div", _hoisted_7, toDisplayString(_ctx.message), 1)
|
|
20659
|
+
]);
|
|
20660
|
+
};
|
|
20661
|
+
}
|
|
20662
|
+
});
|
|
20663
|
+
const ChatSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6fa22b2b"]]);
|
|
20664
|
+
const _hoisted_1$5 = { class: "lupa-chat-input-container" };
|
|
20665
|
+
const _hoisted_2$3 = { id: "lupa-search-box-input" };
|
|
20666
|
+
const _hoisted_3$3 = {
|
|
20667
|
+
key: 0,
|
|
20668
|
+
class: "lupa-chat-form-submit"
|
|
20669
|
+
};
|
|
20670
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
20671
|
+
__name: "ChatInput",
|
|
20672
|
+
props: {
|
|
20673
|
+
disabled: { type: Boolean }
|
|
20674
|
+
},
|
|
20675
|
+
emits: ["submit"],
|
|
20676
|
+
setup(__props, { emit: emit2 }) {
|
|
20677
|
+
const inputValue = ref("");
|
|
20678
|
+
const submit = () => {
|
|
20679
|
+
emit2("submit", inputValue.value);
|
|
20680
|
+
inputValue.value = "";
|
|
20681
|
+
};
|
|
20682
|
+
return (_ctx, _cache) => {
|
|
20683
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
20684
|
+
createBaseVNode("form", {
|
|
20685
|
+
action: "javascript:void(0);",
|
|
20686
|
+
class: "chat-input-form",
|
|
20687
|
+
onSubmit: submit
|
|
20688
|
+
}, [
|
|
20689
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
20690
|
+
withDirectives(createBaseVNode("input", {
|
|
20691
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
20692
|
+
ref: "mainInput",
|
|
20693
|
+
autocomplete: "off",
|
|
20694
|
+
class: "lupa-search-box-input-field",
|
|
20695
|
+
"data-cy": "lupa-search-box-input-field",
|
|
20696
|
+
type: "text",
|
|
20697
|
+
placeholder: "Type your request here..."
|
|
20698
|
+
}, null, 512), [
|
|
20699
|
+
[vModelText, inputValue.value]
|
|
20700
|
+
])
|
|
20701
|
+
]),
|
|
20702
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(ChatSpinner, {
|
|
20703
|
+
key: 1,
|
|
20704
|
+
small: true
|
|
20705
|
+
}))
|
|
20706
|
+
], 32)
|
|
20707
|
+
]);
|
|
20708
|
+
};
|
|
20709
|
+
}
|
|
20710
|
+
});
|
|
20711
|
+
const Env = {
|
|
20712
|
+
production: "https://api.lupasearch.com/v1/",
|
|
20713
|
+
staging: "https://api.staging.lupasearch.com/v1/"
|
|
20714
|
+
};
|
|
20715
|
+
const defaultConfig = {
|
|
20716
|
+
method: "POST",
|
|
20717
|
+
headers: { "Content-Type": "application/json" }
|
|
20718
|
+
};
|
|
20719
|
+
const getApiUrl = (environment, customBaseUrl) => {
|
|
20720
|
+
if (customBaseUrl) {
|
|
20721
|
+
return customBaseUrl;
|
|
20722
|
+
}
|
|
20723
|
+
return Env[environment] || Env["production"];
|
|
20724
|
+
};
|
|
20725
|
+
const suggestSearchChatPhrases = (options, request) => __async(void 0, null, function* () {
|
|
20726
|
+
const { environment, customBaseUrl } = options;
|
|
20727
|
+
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20728
|
+
body: JSON.stringify(request)
|
|
20729
|
+
}));
|
|
20730
|
+
if (res.status < 400) {
|
|
20731
|
+
const data = yield res.json();
|
|
20732
|
+
return __spreadProps2(__spreadValues2({}, data), { success: true });
|
|
20733
|
+
}
|
|
20734
|
+
const errors = yield res.json();
|
|
20735
|
+
return { success: false, errors };
|
|
20736
|
+
});
|
|
20737
|
+
const suggestPhraseAlternatives = (_0, _1) => __async(void 0, [_0, _1], function* (options, { phrases }) {
|
|
20738
|
+
const { environment, customBaseUrl } = options;
|
|
20739
|
+
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/phraseAlternatives`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20740
|
+
body: JSON.stringify({ phrases })
|
|
20741
|
+
}));
|
|
20742
|
+
if (res.status < 400) {
|
|
20743
|
+
const data = yield res.json();
|
|
20744
|
+
return __spreadProps2(__spreadValues2({}, data), { success: true });
|
|
20745
|
+
}
|
|
20746
|
+
const errors = yield res.json();
|
|
20747
|
+
return { success: false, errors };
|
|
20748
|
+
});
|
|
20749
|
+
const suggestSimplifiedPhrases = (_0, _1) => __async(void 0, [_0, _1], function* (options, { phrases }) {
|
|
20750
|
+
const { environment, customBaseUrl } = options;
|
|
20751
|
+
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/simplify`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20752
|
+
body: JSON.stringify({ phrases })
|
|
20753
|
+
}));
|
|
20754
|
+
if (res.status < 400) {
|
|
20755
|
+
const data = yield res.json();
|
|
20756
|
+
console.log(data);
|
|
20757
|
+
return __spreadProps2(__spreadValues2({}, data), { success: true });
|
|
20758
|
+
}
|
|
20759
|
+
const errors = yield res.json();
|
|
20760
|
+
return { success: false, errors };
|
|
20761
|
+
});
|
|
20762
|
+
const suggestBestProductMatches = (_0, _1) => __async(void 0, [_0, _1], function* (options, {
|
|
20763
|
+
initialQuery,
|
|
20764
|
+
productStrings,
|
|
20765
|
+
messageHistory
|
|
20766
|
+
}) {
|
|
20767
|
+
const { environment, customBaseUrl } = options;
|
|
20768
|
+
const res = yield fetch(`${getApiUrl(environment, customBaseUrl)}chat/bestProducts`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20769
|
+
body: JSON.stringify({ initialQuery, messageHistory, productStrings })
|
|
20770
|
+
}));
|
|
20771
|
+
if (res.status < 400) {
|
|
20772
|
+
const data = yield res.json();
|
|
20773
|
+
console.log(data);
|
|
20774
|
+
return __spreadProps2(__spreadValues2({}, data), { success: true });
|
|
20775
|
+
}
|
|
20776
|
+
const errors = yield res.json();
|
|
20777
|
+
return { success: false, errors };
|
|
20778
|
+
});
|
|
20779
|
+
const prepareChatHistory = (chatLog) => {
|
|
20780
|
+
var _a, _b;
|
|
20781
|
+
const history = [];
|
|
20782
|
+
for (const log of chatLog) {
|
|
20783
|
+
history.push({
|
|
20784
|
+
role: "user",
|
|
20785
|
+
content: log.userInput
|
|
20786
|
+
});
|
|
20787
|
+
history.push({
|
|
20788
|
+
role: "assistant",
|
|
20789
|
+
content: log.suggestedPhrases.join(", ")
|
|
20790
|
+
});
|
|
20791
|
+
if (((_a = log.bestItems) == null ? void 0 : _a.length) > 0) {
|
|
20792
|
+
history.push({
|
|
20793
|
+
role: "assistant",
|
|
20794
|
+
content: `I suggest these best item matches to your query: ${(_b = log.bestItems) == null ? void 0 : _b.join(", ")}`
|
|
20795
|
+
});
|
|
20796
|
+
}
|
|
20797
|
+
}
|
|
20798
|
+
return history;
|
|
20799
|
+
};
|
|
20800
|
+
const ChatService = {
|
|
20801
|
+
suggestSearchChatPhrases,
|
|
20802
|
+
suggestPhraseAlternatives,
|
|
20803
|
+
suggestSimplifiedPhrases,
|
|
20804
|
+
suggestBestProductMatches,
|
|
20805
|
+
prepareChatHistory
|
|
20806
|
+
};
|
|
20807
|
+
const _hoisted_1$4 = { class: "lupa-chat-results" };
|
|
20808
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
20809
|
+
__name: "ChatPhraseProductsList",
|
|
20810
|
+
props: {
|
|
20811
|
+
options: {},
|
|
20812
|
+
searchResults: {}
|
|
20813
|
+
},
|
|
20814
|
+
setup(__props) {
|
|
20815
|
+
const props = __props;
|
|
20816
|
+
const getProductKeyAction = (index, product) => {
|
|
20817
|
+
return getProductKey(`${index}`, product, props.options.idKey);
|
|
20818
|
+
};
|
|
20819
|
+
return (_ctx, _cache) => {
|
|
20820
|
+
return openBlock(), createElementBlock("section", _hoisted_1$4, [
|
|
20821
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20822
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
20823
|
+
class: "lupa-chat-product-card",
|
|
20824
|
+
key: getProductKeyAction(index, product),
|
|
20825
|
+
product,
|
|
20826
|
+
options: _ctx.options
|
|
20827
|
+
}, null, 8, ["product", "options"]);
|
|
20828
|
+
}), 128))
|
|
20829
|
+
]);
|
|
20830
|
+
};
|
|
20831
|
+
}
|
|
20832
|
+
});
|
|
20833
|
+
const _hoisted_1$3 = { class: "lupa-chat-content-entry-phrase" };
|
|
20834
|
+
const _hoisted_2$2 = { class: "lupa-chat-phrase-title" };
|
|
20835
|
+
const _hoisted_3$2 = {
|
|
20836
|
+
key: 0,
|
|
20837
|
+
class: "alert"
|
|
20838
|
+
};
|
|
20839
|
+
const _hoisted_4$1 = {
|
|
20840
|
+
key: 0,
|
|
20841
|
+
class: "lupa-chat-no-results"
|
|
20842
|
+
};
|
|
20843
|
+
const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no matches for this search term", -1);
|
|
20844
|
+
const _hoisted_6 = [
|
|
20845
|
+
_hoisted_5$1
|
|
20846
|
+
];
|
|
20847
|
+
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
20848
|
+
__name: "ChatContentEntryPhrase",
|
|
20849
|
+
props: {
|
|
20850
|
+
options: {},
|
|
20851
|
+
phrase: {}
|
|
20852
|
+
},
|
|
20853
|
+
emits: ["loaded"],
|
|
20854
|
+
setup(__props, { emit: emit2 }) {
|
|
20855
|
+
const props = __props;
|
|
20856
|
+
const searchResults2 = ref([]);
|
|
20857
|
+
const usedAlternativePhrases = ref([]);
|
|
20858
|
+
const usedPartialResults = ref(false);
|
|
20859
|
+
const loading = ref(false);
|
|
20860
|
+
const currentAction = ref("");
|
|
20861
|
+
const displayPhrase = computed(() => props.phrase.replace(",", ""));
|
|
20862
|
+
onMounted(() => __async(this, null, function* () {
|
|
20863
|
+
loading.value = true;
|
|
20864
|
+
currentAction.value = "Loading search results...";
|
|
20865
|
+
try {
|
|
20866
|
+
const initialResults = yield getSearchResults(props.phrase, 8);
|
|
20867
|
+
if (initialResults.length) {
|
|
20868
|
+
searchResults2.value = initialResults;
|
|
20869
|
+
if (initialResults.length > 2) {
|
|
20870
|
+
return;
|
|
20871
|
+
}
|
|
20872
|
+
}
|
|
20873
|
+
currentAction.value = "Checking for alternative phrases...";
|
|
20874
|
+
const alternatives = yield getPhraseAlternatives();
|
|
20875
|
+
yield addAlternativePhraseResults(alternatives, 6);
|
|
20876
|
+
if (!searchResults2.value.length) {
|
|
20877
|
+
const partialAlteratives = [props.phrase].map((phrase) => phrase.split(/\s+/)).flat();
|
|
20878
|
+
currentAction.value = "Checking for partial alternatives...";
|
|
20879
|
+
const partialResults = yield addAlternativePhraseResults(partialAlteratives, 4);
|
|
20880
|
+
if (partialResults == null ? void 0 : partialResults.length) {
|
|
20881
|
+
usedPartialResults.value = true;
|
|
20882
|
+
}
|
|
20883
|
+
}
|
|
20884
|
+
} finally {
|
|
20885
|
+
loading.value = false;
|
|
20886
|
+
currentAction.value = "";
|
|
20887
|
+
emit2("loaded", searchResults2.value);
|
|
20888
|
+
}
|
|
20889
|
+
}));
|
|
20890
|
+
const addAlternativePhraseResults = (phrases, limit = 5) => __async(this, null, function* () {
|
|
20891
|
+
const allResults = [];
|
|
20892
|
+
for (const phrase of phrases) {
|
|
20893
|
+
const results = yield getSearchResults(phrase, limit);
|
|
20894
|
+
if (results.length) {
|
|
20895
|
+
usedAlternativePhrases.value.push(phrase);
|
|
20896
|
+
addToSearchResults(results);
|
|
20897
|
+
allResults.push(...results);
|
|
20898
|
+
}
|
|
20899
|
+
}
|
|
20900
|
+
return allResults;
|
|
20901
|
+
});
|
|
20902
|
+
const addToSearchResults = (items) => {
|
|
20903
|
+
const newDocuments = items.filter((item) => {
|
|
20904
|
+
return !searchResults2.value.find((result) => result.id === item.id);
|
|
20905
|
+
});
|
|
20906
|
+
searchResults2.value.push(...newDocuments);
|
|
20907
|
+
};
|
|
20908
|
+
const getSearchResults = (phrase, limit = 5) => __async(this, null, function* () {
|
|
20909
|
+
const query = { searchText: phrase, limit };
|
|
20910
|
+
const result = yield LupaSearchSdk.query(
|
|
20911
|
+
props.options.displayOptions.queryKey,
|
|
20912
|
+
query,
|
|
20913
|
+
props.options.sdkOptions
|
|
20914
|
+
);
|
|
20915
|
+
if (!result.success) {
|
|
20916
|
+
return [];
|
|
20917
|
+
}
|
|
20918
|
+
return result.items;
|
|
20919
|
+
});
|
|
20920
|
+
const getPhraseAlternatives = () => __async(this, null, function* () {
|
|
20921
|
+
const { phrases } = yield ChatService.suggestPhraseAlternatives(props.options.sdkOptions, {
|
|
20922
|
+
phrases: [props.phrase]
|
|
20923
|
+
});
|
|
20924
|
+
return phrases != null ? phrases : [];
|
|
20925
|
+
});
|
|
20926
|
+
return (_ctx, _cache) => {
|
|
20927
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
20928
|
+
createBaseVNode("div", _hoisted_2$2, [
|
|
20929
|
+
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
|
|
20930
|
+
createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
|
|
20931
|
+
usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
|
|
20932
|
+
]),
|
|
20933
|
+
createBaseVNode("div", null, [
|
|
20934
|
+
createVNode(_sfc_main$4$1, {
|
|
20935
|
+
"search-results": searchResults2.value,
|
|
20936
|
+
options: _ctx.options.displayOptions
|
|
20937
|
+
}, null, 8, ["search-results", "options"])
|
|
20938
|
+
]),
|
|
20939
|
+
!loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
|
|
20940
|
+
loading.value ? (openBlock(), createBlock(ChatSpinner, {
|
|
20941
|
+
key: 1,
|
|
20942
|
+
message: currentAction.value
|
|
20943
|
+
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
20944
|
+
]);
|
|
20945
|
+
};
|
|
20946
|
+
}
|
|
20947
|
+
});
|
|
20948
|
+
const _hoisted_1$2 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
20949
|
+
const _hoisted_2$1 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
|
|
20950
|
+
const _hoisted_3$1 = { key: 0 };
|
|
20951
|
+
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
20952
|
+
__name: "ChatContentEntry",
|
|
20953
|
+
props: {
|
|
20954
|
+
entry: {},
|
|
20955
|
+
options: {},
|
|
20956
|
+
history: {}
|
|
20957
|
+
},
|
|
20958
|
+
emits: ["loaded"],
|
|
20959
|
+
setup(__props, { emit: emit2 }) {
|
|
20960
|
+
const props = __props;
|
|
20961
|
+
const bestMatches = ref([]);
|
|
20962
|
+
const loadedResults = ref([]);
|
|
20963
|
+
const loadedEntries = ref(0);
|
|
20964
|
+
const loading = ref(true);
|
|
20965
|
+
const entryCount = computed(() => {
|
|
20966
|
+
return props.entry.allPhrases.length;
|
|
20967
|
+
});
|
|
20968
|
+
const loaded = (results = []) => {
|
|
20969
|
+
loadedResults.value.push(...results);
|
|
20970
|
+
loadedEntries.value++;
|
|
20971
|
+
if (loadedEntries.value === entryCount.value) {
|
|
20972
|
+
loadFinalRecommendations();
|
|
20973
|
+
}
|
|
20974
|
+
};
|
|
20975
|
+
const titleKey = computed(() => {
|
|
20976
|
+
var _a;
|
|
20977
|
+
return (_a = props.options.displayOptions.titleKey) != null ? _a : "title";
|
|
20978
|
+
});
|
|
20979
|
+
const loadFinalRecommendations = () => __async(this, null, function* () {
|
|
20980
|
+
var _a;
|
|
20981
|
+
try {
|
|
20982
|
+
const productResultStrings = loadedResults.value.map(
|
|
20983
|
+
(result) => {
|
|
20984
|
+
var _a2, _b;
|
|
20985
|
+
return (_b = (_a2 = result[titleKey.value]) == null ? void 0 : _a2.toString()) != null ? _b : "";
|
|
20986
|
+
}
|
|
20987
|
+
);
|
|
20988
|
+
const { products } = yield ChatService.suggestBestProductMatches(props.options.sdkOptions, {
|
|
20989
|
+
initialQuery: props.entry.userInput,
|
|
20990
|
+
productStrings: productResultStrings,
|
|
20991
|
+
messageHistory: (_a = props.history) != null ? _a : []
|
|
20992
|
+
});
|
|
20993
|
+
bestMatches.value = products;
|
|
20994
|
+
emit2("loaded", products);
|
|
20995
|
+
} finally {
|
|
20996
|
+
loading.value = false;
|
|
20997
|
+
}
|
|
20998
|
+
});
|
|
20999
|
+
const bestMatchProducts = computed(() => {
|
|
21000
|
+
return bestMatches.value.map((productName) => {
|
|
21001
|
+
return loadedResults.value.find((r) => r[titleKey.value] === productName);
|
|
21002
|
+
}).filter(Boolean);
|
|
21003
|
+
});
|
|
21004
|
+
const explanation = computed(() => {
|
|
21005
|
+
var _a, _b;
|
|
21006
|
+
return ((_a = bestMatches.value) == null ? void 0 : _a.length) > 0 && !bestMatchProducts.value.length ? (_b = bestMatches == null ? void 0 : bestMatches.value) == null ? void 0 : _b[0] : "";
|
|
21007
|
+
});
|
|
21008
|
+
return (_ctx, _cache) => {
|
|
21009
|
+
return openBlock(), createElementBlock("div", null, [
|
|
21010
|
+
createBaseVNode("ul", null, [
|
|
21011
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
|
|
21012
|
+
return openBlock(), createElementBlock("li", {
|
|
21013
|
+
key: phrase,
|
|
21014
|
+
class: "lupa-chat-content-entry"
|
|
21015
|
+
}, [
|
|
21016
|
+
phrase ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
21017
|
+
key: 0,
|
|
21018
|
+
phrase,
|
|
21019
|
+
options: _ctx.options,
|
|
21020
|
+
onLoaded: loaded
|
|
21021
|
+
}, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
|
|
21022
|
+
]);
|
|
21023
|
+
}), 128))
|
|
21024
|
+
]),
|
|
21025
|
+
createBaseVNode("section", _hoisted_1$2, [
|
|
21026
|
+
_hoisted_2$1,
|
|
21027
|
+
explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
|
|
21028
|
+
loading.value ? (openBlock(), createBlock(ChatSpinner, {
|
|
21029
|
+
key: 1,
|
|
21030
|
+
message: "Selecting the best matches for you. This might take a few seconds."
|
|
21031
|
+
})) : createCommentVNode("", true),
|
|
21032
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
21033
|
+
key: 2,
|
|
21034
|
+
"search-results": bestMatchProducts.value,
|
|
21035
|
+
options: _ctx.options.displayOptions
|
|
21036
|
+
}, null, 8, ["search-results", "options"])) : createCommentVNode("", true)
|
|
21037
|
+
])
|
|
21038
|
+
]);
|
|
21039
|
+
};
|
|
21040
|
+
}
|
|
21041
|
+
});
|
|
21042
|
+
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
21043
|
+
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
21044
|
+
__name: "ChatContentList",
|
|
21045
|
+
props: {
|
|
21046
|
+
content: {},
|
|
21047
|
+
options: {},
|
|
21048
|
+
history: {}
|
|
21049
|
+
},
|
|
21050
|
+
emits: ["loaded"],
|
|
21051
|
+
setup(__props, { emit: emit2 }) {
|
|
21052
|
+
const bestItemsLoaded = (items, key) => {
|
|
21053
|
+
emit2("loaded", { items, key });
|
|
21054
|
+
};
|
|
21055
|
+
return (_ctx, _cache) => {
|
|
21056
|
+
return openBlock(), createElementBlock("div", null, [
|
|
21057
|
+
createBaseVNode("ul", null, [
|
|
21058
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
21059
|
+
return openBlock(), createElementBlock("li", {
|
|
21060
|
+
key: entry.key
|
|
21061
|
+
}, [
|
|
21062
|
+
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
21063
|
+
createVNode(_sfc_main$2$1, {
|
|
21064
|
+
entry,
|
|
21065
|
+
options: _ctx.options,
|
|
21066
|
+
history: _ctx.history,
|
|
21067
|
+
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
21068
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
21069
|
+
]);
|
|
21070
|
+
}), 128))
|
|
21071
|
+
])
|
|
21072
|
+
]);
|
|
21073
|
+
};
|
|
21074
|
+
}
|
|
21075
|
+
});
|
|
21076
|
+
const _hoisted_1 = { class: "lupasearch-chat" };
|
|
21077
|
+
const _hoisted_2 = /* @__PURE__ */ createBaseVNode("section", { class: "lupa-chat-logo" }, [
|
|
21078
|
+
/* @__PURE__ */ createBaseVNode("img", { src: "https://www.lupasearch.com/images/partials/header/lupasearch-logo.svg" })
|
|
21079
|
+
], -1);
|
|
21080
|
+
const _hoisted_3 = {
|
|
21081
|
+
key: 0,
|
|
21082
|
+
class: "lupasearch-chat-content"
|
|
21083
|
+
};
|
|
21084
|
+
const _hoisted_4 = {
|
|
21085
|
+
key: 1,
|
|
21086
|
+
class: "lupa-chat-spinner-main"
|
|
21087
|
+
};
|
|
21088
|
+
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21089
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
21090
|
+
__name: "ChatContainer",
|
|
21091
|
+
props: {
|
|
21092
|
+
options: {}
|
|
21093
|
+
},
|
|
21094
|
+
setup(__props) {
|
|
21095
|
+
const props = __props;
|
|
21096
|
+
const loading = ref(false);
|
|
21097
|
+
const error = ref("");
|
|
21098
|
+
const chatContent = ref([]);
|
|
21099
|
+
const history = computed(() => ChatService.prepareChatHistory(chatContent.value));
|
|
21100
|
+
const submitChatInput = (input) => __async(this, null, function* () {
|
|
21101
|
+
var _a;
|
|
21102
|
+
if (input.length < 3) {
|
|
21103
|
+
return;
|
|
21104
|
+
}
|
|
21105
|
+
try {
|
|
21106
|
+
loading.value = true;
|
|
21107
|
+
const request = {
|
|
21108
|
+
userPrompt: input,
|
|
21109
|
+
messageHistory: (_a = history.value) != null ? _a : [],
|
|
21110
|
+
queryKey: props.options.displayOptions.queryKey
|
|
21111
|
+
};
|
|
21112
|
+
const { phrases, success } = yield ChatService.suggestSearchChatPhrases(
|
|
21113
|
+
props.options.sdkOptions,
|
|
21114
|
+
request
|
|
21115
|
+
);
|
|
21116
|
+
if (!success || !phrases.length) {
|
|
21117
|
+
error.value = "Something went wrong";
|
|
21118
|
+
return;
|
|
21119
|
+
}
|
|
21120
|
+
const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
|
|
21121
|
+
const chatLog = {
|
|
21122
|
+
key: Date.now().toString(),
|
|
21123
|
+
userInput: input,
|
|
21124
|
+
allPhrases: [...validPhrases],
|
|
21125
|
+
suggestedPhrases: phrases
|
|
21126
|
+
};
|
|
21127
|
+
chatContent.value.push(chatLog);
|
|
21128
|
+
} finally {
|
|
21129
|
+
loading.value = false;
|
|
21130
|
+
}
|
|
21131
|
+
});
|
|
21132
|
+
const bestItemsLoaded = ({ items, key }) => {
|
|
21133
|
+
const entry = chatContent.value.find((c2) => c2.key === key);
|
|
21134
|
+
entry.bestItems = items;
|
|
21135
|
+
};
|
|
21136
|
+
return (_ctx, _cache) => {
|
|
21137
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
21138
|
+
_hoisted_2,
|
|
21139
|
+
chatContent.value.length ? (openBlock(), createElementBlock("section", _hoisted_3, [
|
|
21140
|
+
createVNode(_sfc_main$1$1, {
|
|
21141
|
+
content: chatContent.value,
|
|
21142
|
+
options: _ctx.options,
|
|
21143
|
+
onLoaded: bestItemsLoaded,
|
|
21144
|
+
history: history.value
|
|
21145
|
+
}, null, 8, ["content", "options", "history"])
|
|
21146
|
+
])) : createCommentVNode("", true),
|
|
21147
|
+
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
21148
|
+
createVNode(ChatSpinner, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
21149
|
+
])) : createCommentVNode("", true),
|
|
21150
|
+
createBaseVNode("section", _hoisted_5, [
|
|
21151
|
+
createVNode(_sfc_main$5, {
|
|
21152
|
+
onSubmit: submitChatInput,
|
|
21153
|
+
disabled: loading.value
|
|
21154
|
+
}, null, 8, ["disabled"])
|
|
21155
|
+
])
|
|
21156
|
+
]);
|
|
21157
|
+
};
|
|
21158
|
+
}
|
|
21159
|
+
});
|
|
20627
21160
|
let piniaInstance = null;
|
|
20628
21161
|
const initPinia = () => {
|
|
20629
21162
|
if (piniaInstance) {
|
|
@@ -26186,7 +26719,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26186
26719
|
};
|
|
26187
26720
|
__expose({ fetch: fetch2 });
|
|
26188
26721
|
return (_ctx, _cache) => {
|
|
26189
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26722
|
+
return openBlock(), createBlock(unref(_sfc_main$Y), {
|
|
26190
26723
|
options: fullSearchBoxOptions.value,
|
|
26191
26724
|
ref_key: "searchBox",
|
|
26192
26725
|
ref: searchBox2
|
|
@@ -26313,7 +26846,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26313
26846
|
};
|
|
26314
26847
|
__expose({ fetch: fetch2 });
|
|
26315
26848
|
return (_ctx, _cache) => {
|
|
26316
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26849
|
+
return openBlock(), createBlock(unref(_sfc_main$b), {
|
|
26317
26850
|
options: fullSearchResultsOptions.value,
|
|
26318
26851
|
ref_key: "searchResults",
|
|
26319
26852
|
ref: searchResults2
|
|
@@ -26338,7 +26871,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26338
26871
|
};
|
|
26339
26872
|
__expose({ fetch: fetch2 });
|
|
26340
26873
|
return (_ctx, _cache) => {
|
|
26341
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26874
|
+
return openBlock(), createBlock(unref(_sfc_main$9), {
|
|
26342
26875
|
options: fullProductListOptions.value,
|
|
26343
26876
|
ref_key: "productList",
|
|
26344
26877
|
ref: productList2
|
|
@@ -26418,7 +26951,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26418
26951
|
__expose({ fetch: fetch2, reloadOptions });
|
|
26419
26952
|
return (_ctx, _cache) => {
|
|
26420
26953
|
return openBlock(), createElementBlock("div", null, [
|
|
26421
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
26954
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
26422
26955
|
key: 0,
|
|
26423
26956
|
options: containerOptions.value,
|
|
26424
26957
|
ref_key: "productList",
|
|
@@ -26442,7 +26975,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26442
26975
|
};
|
|
26443
26976
|
__expose({ fetch: fetch2 });
|
|
26444
26977
|
return (_ctx, _cache) => {
|
|
26445
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26978
|
+
return openBlock(), createBlock(unref(_sfc_main$7), {
|
|
26446
26979
|
options: _ctx.recommendationOptions,
|
|
26447
26980
|
ref_key: "productRecommendations",
|
|
26448
26981
|
ref: productRecommendations
|
|
@@ -26500,7 +27033,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26500
27033
|
results: {},
|
|
26501
27034
|
productList: {},
|
|
26502
27035
|
searchContainer: {},
|
|
26503
|
-
recommendations: {}
|
|
27036
|
+
recommendations: {},
|
|
27037
|
+
chat: {}
|
|
26504
27038
|
};
|
|
26505
27039
|
const tracking = (options) => {
|
|
26506
27040
|
setupTracking(options);
|
|
@@ -26648,6 +27182,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26648
27182
|
}
|
|
26649
27183
|
app.recommendations[options.containerSelector] = instance;
|
|
26650
27184
|
};
|
|
27185
|
+
const chat = (options, mountOptions) => {
|
|
27186
|
+
const existingInstance = app.chat[options.displayOptions.containerSelector];
|
|
27187
|
+
if (existingInstance) {
|
|
27188
|
+
existingInstance.props.options = options;
|
|
27189
|
+
if (mountOptions == null ? void 0 : mountOptions.fetch) {
|
|
27190
|
+
setTimeout(() => {
|
|
27191
|
+
var _a, _b, _c, _d;
|
|
27192
|
+
(_d = (_c = (_b = (_a = existingInstance.mountedComponent) == null ? void 0 : _a.component) == null ? void 0 : _b.exposed) == null ? void 0 : _c.fetch) == null ? void 0 : _d.call(_c);
|
|
27193
|
+
});
|
|
27194
|
+
}
|
|
27195
|
+
return;
|
|
27196
|
+
}
|
|
27197
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1i, {
|
|
27198
|
+
recommendationOptions: options
|
|
27199
|
+
});
|
|
27200
|
+
if (!instance) {
|
|
27201
|
+
return;
|
|
27202
|
+
}
|
|
27203
|
+
app.chat[options.displayOptions.containerSelector] = instance;
|
|
27204
|
+
};
|
|
26651
27205
|
const clearInstance = (element, app2) => {
|
|
26652
27206
|
var _a;
|
|
26653
27207
|
const content = element.innerHTML;
|
|
@@ -26719,6 +27273,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26719
27273
|
} catch (e) {
|
|
26720
27274
|
}
|
|
26721
27275
|
};
|
|
27276
|
+
const clearChat = (selector) => {
|
|
27277
|
+
try {
|
|
27278
|
+
if (selector) {
|
|
27279
|
+
app.chat[selector] = null;
|
|
27280
|
+
clearInstance(app.chat[selector].mountElement, app.chat[selector].app);
|
|
27281
|
+
}
|
|
27282
|
+
for (const key in app.chat) {
|
|
27283
|
+
clearInstance(app.chat[key].mountElement, app.chat[key].app);
|
|
27284
|
+
}
|
|
27285
|
+
app.chat = {};
|
|
27286
|
+
} catch (e) {
|
|
27287
|
+
}
|
|
27288
|
+
};
|
|
26722
27289
|
const lupaSearch = {
|
|
26723
27290
|
searchBox,
|
|
26724
27291
|
searchResults,
|
|
@@ -26730,7 +27297,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26730
27297
|
clearSearchResults,
|
|
26731
27298
|
clearProductList,
|
|
26732
27299
|
clearSearchContainer,
|
|
26733
|
-
clearRecommendations
|
|
27300
|
+
clearRecommendations,
|
|
27301
|
+
chat,
|
|
27302
|
+
clearChat
|
|
26734
27303
|
};
|
|
26735
27304
|
if (typeof window !== "undefined") {
|
|
26736
27305
|
window.getLupa = lupaSearch;
|