@getlupa/client 1.3.9 → 1.4.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/lupaChatStyle.css +1 -1
- package/dist/lupaSearch.iife.js +509 -441
- package/dist/lupaSearch.js +509 -441
- package/dist/lupaSearch.mjs +509 -441
- package/dist/lupaSearch.umd.js +509 -441
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -7654,8 +7654,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7654
7654
|
resetHighlightIndex
|
|
7655
7655
|
};
|
|
7656
7656
|
});
|
|
7657
|
-
const _hoisted_1$
|
|
7658
|
-
const _hoisted_2$
|
|
7657
|
+
const _hoisted_1$1a = { id: "lupa-search-box-input-container" };
|
|
7658
|
+
const _hoisted_2$O = { class: "lupa-input-clear" };
|
|
7659
7659
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
7660
7660
|
const _hoisted_4$r = ["value"];
|
|
7661
7661
|
const _hoisted_5$f = ["placeholder"];
|
|
@@ -7663,7 +7663,7 @@ const _hoisted_6$8 = {
|
|
|
7663
7663
|
key: 0,
|
|
7664
7664
|
class: "lupa-close-label"
|
|
7665
7665
|
};
|
|
7666
|
-
const _sfc_main$
|
|
7666
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
7667
7667
|
__name: "SearchBoxInput",
|
|
7668
7668
|
props: {
|
|
7669
7669
|
options: {},
|
|
@@ -7740,8 +7740,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7740
7740
|
};
|
|
7741
7741
|
__expose({ focus });
|
|
7742
7742
|
return (_ctx, _cache) => {
|
|
7743
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7744
|
-
createBaseVNode("div", _hoisted_2$
|
|
7743
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
7744
|
+
createBaseVNode("div", _hoisted_2$O, [
|
|
7745
7745
|
createBaseVNode("div", {
|
|
7746
7746
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
7747
7747
|
onClick: clear2
|
|
@@ -7780,7 +7780,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
7780
7780
|
};
|
|
7781
7781
|
}
|
|
7782
7782
|
});
|
|
7783
|
-
const _sfc_main$
|
|
7783
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
7784
7784
|
__name: "SearchBoxMoreResults",
|
|
7785
7785
|
props: {
|
|
7786
7786
|
labels: {},
|
|
@@ -7812,9 +7812,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
7812
7812
|
};
|
|
7813
7813
|
}
|
|
7814
7814
|
});
|
|
7815
|
-
const _hoisted_1$
|
|
7816
|
-
const _hoisted_2$
|
|
7817
|
-
const _sfc_main$
|
|
7815
|
+
const _hoisted_1$19 = { class: "lupa-search-box-history-item" };
|
|
7816
|
+
const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
|
|
7817
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
7818
7818
|
__name: "SearchBoxHistoryItem",
|
|
7819
7819
|
props: {
|
|
7820
7820
|
item: {},
|
|
@@ -7830,8 +7830,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
7830
7830
|
emit2("click", { query: props.item });
|
|
7831
7831
|
};
|
|
7832
7832
|
return (_ctx, _cache) => {
|
|
7833
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7834
|
-
createBaseVNode("div", _hoisted_2$
|
|
7833
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
7834
|
+
createBaseVNode("div", _hoisted_2$N, [
|
|
7835
7835
|
createBaseVNode("div", {
|
|
7836
7836
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
7837
7837
|
onClick: click2
|
|
@@ -7845,11 +7845,11 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
7845
7845
|
};
|
|
7846
7846
|
}
|
|
7847
7847
|
});
|
|
7848
|
-
const _hoisted_1$
|
|
7848
|
+
const _hoisted_1$18 = {
|
|
7849
7849
|
key: 0,
|
|
7850
7850
|
class: "lupa-search-box-history-panel"
|
|
7851
7851
|
};
|
|
7852
|
-
const _sfc_main$
|
|
7852
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
7853
7853
|
__name: "SearchBoxHistoryPanel",
|
|
7854
7854
|
props: {
|
|
7855
7855
|
options: {}
|
|
@@ -7890,9 +7890,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
7890
7890
|
}
|
|
7891
7891
|
};
|
|
7892
7892
|
return (_ctx, _cache) => {
|
|
7893
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7893
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
7894
7894
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
7895
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7895
|
+
return openBlock(), createBlock(_sfc_main$1g, {
|
|
7896
7896
|
key: item,
|
|
7897
7897
|
item,
|
|
7898
7898
|
highlighted: index === highlightIndex.value,
|
|
@@ -7908,8 +7908,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
7908
7908
|
};
|
|
7909
7909
|
}
|
|
7910
7910
|
});
|
|
7911
|
-
const _hoisted_1$
|
|
7912
|
-
const _hoisted_2$
|
|
7911
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
7912
|
+
const _hoisted_2$M = {
|
|
7913
7913
|
key: 1,
|
|
7914
7914
|
"data-cy": "lupa-suggestion-value",
|
|
7915
7915
|
class: "lupa-suggestion-value"
|
|
@@ -7927,7 +7927,7 @@ const _hoisted_5$e = {
|
|
|
7927
7927
|
class: "lupa-suggestion-facet-value",
|
|
7928
7928
|
"data-cy": "lupa-suggestion-facet-value"
|
|
7929
7929
|
};
|
|
7930
|
-
const _sfc_main$
|
|
7930
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
7931
7931
|
__name: "SearchBoxSuggestion",
|
|
7932
7932
|
props: {
|
|
7933
7933
|
suggestion: {},
|
|
@@ -7963,7 +7963,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
7963
7963
|
class: "lupa-suggestion-value",
|
|
7964
7964
|
"data-cy": "lupa-suggestion-value",
|
|
7965
7965
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
7966
|
-
}, null, 8, _hoisted_1$
|
|
7966
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
|
|
7967
7967
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
7968
7968
|
createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
|
|
7969
7969
|
createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -7972,11 +7972,11 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
7972
7972
|
};
|
|
7973
7973
|
}
|
|
7974
7974
|
});
|
|
7975
|
-
const _hoisted_1$
|
|
7975
|
+
const _hoisted_1$16 = {
|
|
7976
7976
|
id: "lupa-search-box-suggestions",
|
|
7977
7977
|
"data-cy": "lupa-search-box-suggestions"
|
|
7978
7978
|
};
|
|
7979
|
-
const _sfc_main$
|
|
7979
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
7980
7980
|
__name: "SearchBoxSuggestions",
|
|
7981
7981
|
props: {
|
|
7982
7982
|
items: {},
|
|
@@ -8036,9 +8036,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8036
8036
|
});
|
|
8037
8037
|
});
|
|
8038
8038
|
return (_ctx, _cache) => {
|
|
8039
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8039
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
8040
8040
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
8041
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8041
|
+
return openBlock(), createBlock(_sfc_main$1e, {
|
|
8042
8042
|
key: getSuggestionKey(item),
|
|
8043
8043
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
8044
8044
|
suggestion: item,
|
|
@@ -8066,7 +8066,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
8066
8066
|
}, timeout);
|
|
8067
8067
|
};
|
|
8068
8068
|
};
|
|
8069
|
-
const _sfc_main$
|
|
8069
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8070
8070
|
__name: "SearchBoxSuggestionsWrapper",
|
|
8071
8071
|
props: {
|
|
8072
8072
|
panel: {},
|
|
@@ -8107,7 +8107,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
8107
8107
|
};
|
|
8108
8108
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
8109
8109
|
return (_ctx, _cache) => {
|
|
8110
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8110
|
+
return openBlock(), createBlock(_sfc_main$1d, {
|
|
8111
8111
|
items: searchResult.value,
|
|
8112
8112
|
highlight: _ctx.panel.highlight,
|
|
8113
8113
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -8185,8 +8185,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8185
8185
|
});
|
|
8186
8186
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8187
8187
|
});
|
|
8188
|
-
const _hoisted_1$
|
|
8189
|
-
const _sfc_main$
|
|
8188
|
+
const _hoisted_1$15 = ["src"];
|
|
8189
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
8190
8190
|
__name: "ProductImage",
|
|
8191
8191
|
props: {
|
|
8192
8192
|
item: {},
|
|
@@ -8234,12 +8234,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
8234
8234
|
class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
8235
8235
|
src: finalUrl.value,
|
|
8236
8236
|
onError: replaceWithPlaceholder
|
|
8237
|
-
}, null, 42, _hoisted_1$
|
|
8237
|
+
}, null, 42, _hoisted_1$15)
|
|
8238
8238
|
], 2);
|
|
8239
8239
|
};
|
|
8240
8240
|
}
|
|
8241
8241
|
});
|
|
8242
|
-
const _sfc_main$
|
|
8242
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
8243
8243
|
__name: "SearchBoxProductImage",
|
|
8244
8244
|
props: {
|
|
8245
8245
|
item: {},
|
|
@@ -8247,7 +8247,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8247
8247
|
},
|
|
8248
8248
|
setup(__props) {
|
|
8249
8249
|
return (_ctx, _cache) => {
|
|
8250
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8250
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
8251
8251
|
item: _ctx.item,
|
|
8252
8252
|
options: _ctx.options,
|
|
8253
8253
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -8256,12 +8256,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8256
8256
|
};
|
|
8257
8257
|
}
|
|
8258
8258
|
});
|
|
8259
|
-
const _hoisted_1$
|
|
8260
|
-
const _hoisted_2$
|
|
8259
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
8260
|
+
const _hoisted_2$L = {
|
|
8261
8261
|
key: 1,
|
|
8262
8262
|
class: "lupa-search-box-product-title"
|
|
8263
8263
|
};
|
|
8264
|
-
const _sfc_main$
|
|
8264
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8265
8265
|
__name: "SearchBoxProductTitle",
|
|
8266
8266
|
props: {
|
|
8267
8267
|
item: {},
|
|
@@ -8281,18 +8281,18 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
8281
8281
|
key: 0,
|
|
8282
8282
|
class: "lupa-search-box-product-title",
|
|
8283
8283
|
innerHTML: title.value
|
|
8284
|
-
}, null, 8, _hoisted_1$
|
|
8284
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
|
|
8285
8285
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
8286
8286
|
]));
|
|
8287
8287
|
};
|
|
8288
8288
|
}
|
|
8289
8289
|
});
|
|
8290
|
-
const _hoisted_1$
|
|
8291
|
-
const _hoisted_2$
|
|
8290
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
8291
|
+
const _hoisted_2$K = {
|
|
8292
8292
|
key: 1,
|
|
8293
8293
|
class: "lupa-search-box-product-description"
|
|
8294
8294
|
};
|
|
8295
|
-
const _sfc_main$
|
|
8295
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
8296
8296
|
__name: "SearchBoxProductDescription",
|
|
8297
8297
|
props: {
|
|
8298
8298
|
item: {},
|
|
@@ -8312,12 +8312,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8312
8312
|
key: 0,
|
|
8313
8313
|
class: "lupa-search-box-product-description",
|
|
8314
8314
|
innerHTML: description.value
|
|
8315
|
-
}, null, 8, _hoisted_1$
|
|
8315
|
+
}, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
|
|
8316
8316
|
};
|
|
8317
8317
|
}
|
|
8318
8318
|
});
|
|
8319
|
-
const _hoisted_1$
|
|
8320
|
-
const _sfc_main$
|
|
8319
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
|
|
8320
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8321
8321
|
__name: "SearchBoxProductPrice",
|
|
8322
8322
|
props: {
|
|
8323
8323
|
item: {},
|
|
@@ -8335,14 +8335,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8335
8335
|
);
|
|
8336
8336
|
});
|
|
8337
8337
|
return (_ctx, _cache) => {
|
|
8338
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8338
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
8339
8339
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
8340
8340
|
]);
|
|
8341
8341
|
};
|
|
8342
8342
|
}
|
|
8343
8343
|
});
|
|
8344
|
-
const _hoisted_1$
|
|
8345
|
-
const _sfc_main$
|
|
8344
|
+
const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
|
|
8345
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8346
8346
|
__name: "SearchBoxProductRegularPrice",
|
|
8347
8347
|
props: {
|
|
8348
8348
|
item: {},
|
|
@@ -8360,16 +8360,16 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8360
8360
|
);
|
|
8361
8361
|
});
|
|
8362
8362
|
return (_ctx, _cache) => {
|
|
8363
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8363
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
|
|
8364
8364
|
};
|
|
8365
8365
|
}
|
|
8366
8366
|
});
|
|
8367
|
-
const _hoisted_1
|
|
8368
|
-
const _hoisted_2$
|
|
8367
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
8368
|
+
const _hoisted_2$J = { key: 0 };
|
|
8369
8369
|
const _hoisted_3$y = { key: 1 };
|
|
8370
8370
|
const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
|
|
8371
8371
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
8372
|
-
const _sfc_main$
|
|
8372
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
8373
8373
|
__name: "SearchBoxProductCustom",
|
|
8374
8374
|
props: {
|
|
8375
8375
|
item: {},
|
|
@@ -8395,11 +8395,11 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8395
8395
|
key: 0,
|
|
8396
8396
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
8397
8397
|
innerHTML: text.value
|
|
8398
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8398
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
8399
8399
|
key: 1,
|
|
8400
8400
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8401
8401
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8402
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8402
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
8403
8403
|
createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
|
|
8404
8404
|
createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
|
|
8405
8405
|
]))
|
|
@@ -8407,8 +8407,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
8407
8407
|
};
|
|
8408
8408
|
}
|
|
8409
8409
|
});
|
|
8410
|
-
const _hoisted_1
|
|
8411
|
-
const _sfc_main$
|
|
8410
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
8411
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
8412
8412
|
__name: "SearchBoxProductCustomHtml",
|
|
8413
8413
|
props: {
|
|
8414
8414
|
item: {},
|
|
@@ -8428,7 +8428,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
8428
8428
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
8429
8429
|
class: className.value,
|
|
8430
8430
|
innerHTML: text.value
|
|
8431
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
8431
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
|
|
8432
8432
|
};
|
|
8433
8433
|
}
|
|
8434
8434
|
});
|
|
@@ -8623,10 +8623,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
8623
8623
|
setLoading
|
|
8624
8624
|
};
|
|
8625
8625
|
});
|
|
8626
|
-
const _hoisted_1$
|
|
8627
|
-
const _hoisted_2$
|
|
8626
|
+
const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
8627
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
|
|
8628
8628
|
const _hoisted_3$x = ["onClick", "disabled"];
|
|
8629
|
-
const _sfc_main$
|
|
8629
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
8630
8630
|
__name: "SearchBoxProductAddToCart",
|
|
8631
8631
|
props: {
|
|
8632
8632
|
item: {},
|
|
@@ -8653,8 +8653,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8653
8653
|
loading.value = false;
|
|
8654
8654
|
});
|
|
8655
8655
|
return (_ctx, _cache) => {
|
|
8656
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8657
|
-
createBaseVNode("div", _hoisted_2$
|
|
8656
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
8657
|
+
createBaseVNode("div", _hoisted_2$I, [
|
|
8658
8658
|
createBaseVNode("button", {
|
|
8659
8659
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
8660
8660
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -8669,17 +8669,17 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8669
8669
|
});
|
|
8670
8670
|
const __default__$4 = {
|
|
8671
8671
|
components: {
|
|
8672
|
-
SearchBoxProductImage: _sfc_main$
|
|
8673
|
-
SearchBoxProductTitle: _sfc_main$
|
|
8674
|
-
SearchBoxProductDescription: _sfc_main$
|
|
8675
|
-
SearchBoxProductPrice: _sfc_main$
|
|
8676
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
8677
|
-
SearchBoxProductCustom: _sfc_main$
|
|
8678
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
8679
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
8672
|
+
SearchBoxProductImage: _sfc_main$1a,
|
|
8673
|
+
SearchBoxProductTitle: _sfc_main$19,
|
|
8674
|
+
SearchBoxProductDescription: _sfc_main$18,
|
|
8675
|
+
SearchBoxProductPrice: _sfc_main$17,
|
|
8676
|
+
SearchBoxProductRegularPrice: _sfc_main$16,
|
|
8677
|
+
SearchBoxProductCustom: _sfc_main$15,
|
|
8678
|
+
SearchBoxProductCustomHtml: _sfc_main$14,
|
|
8679
|
+
SearchBoxProductAddToCart: _sfc_main$13
|
|
8680
8680
|
}
|
|
8681
8681
|
};
|
|
8682
|
-
const _sfc_main$
|
|
8682
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
8683
8683
|
__name: "SearchBoxProductElement",
|
|
8684
8684
|
props: {
|
|
8685
8685
|
item: {},
|
|
@@ -8793,14 +8793,14 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
8793
8793
|
};
|
|
8794
8794
|
return { trackSearch, trackResults, trackEvent };
|
|
8795
8795
|
});
|
|
8796
|
-
const _hoisted_1$
|
|
8797
|
-
const _hoisted_2$
|
|
8796
|
+
const _hoisted_1$Z = ["href"];
|
|
8797
|
+
const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
|
|
8798
8798
|
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
8799
8799
|
const _hoisted_4$o = {
|
|
8800
8800
|
key: 0,
|
|
8801
8801
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8802
8802
|
};
|
|
8803
|
-
const _sfc_main$
|
|
8803
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8804
8804
|
__name: "SearchBoxProduct",
|
|
8805
8805
|
props: {
|
|
8806
8806
|
item: {},
|
|
@@ -8893,9 +8893,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8893
8893
|
href: link.value,
|
|
8894
8894
|
onClick: handleClick
|
|
8895
8895
|
}, [
|
|
8896
|
-
createBaseVNode("div", _hoisted_2$
|
|
8896
|
+
createBaseVNode("div", _hoisted_2$H, [
|
|
8897
8897
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
8898
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8898
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8899
8899
|
class: "lupa-search-box-product-element",
|
|
8900
8900
|
item: _ctx.item,
|
|
8901
8901
|
element,
|
|
@@ -8907,7 +8907,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8907
8907
|
]),
|
|
8908
8908
|
createBaseVNode("div", _hoisted_3$w, [
|
|
8909
8909
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
8910
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8910
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
8911
8911
|
class: "lupa-search-box-product-element",
|
|
8912
8912
|
item: _ctx.item,
|
|
8913
8913
|
element,
|
|
@@ -8918,7 +8918,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8918
8918
|
}), 128))
|
|
8919
8919
|
]),
|
|
8920
8920
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
8921
|
-
createVNode(_sfc_main$
|
|
8921
|
+
createVNode(_sfc_main$12, {
|
|
8922
8922
|
class: "lupa-search-box-product-element",
|
|
8923
8923
|
item: _ctx.item,
|
|
8924
8924
|
element: addToCartElement.value,
|
|
@@ -8927,12 +8927,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8927
8927
|
isInStock: isInStock.value
|
|
8928
8928
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
8929
8929
|
])) : createCommentVNode("", true)
|
|
8930
|
-
], 10, _hoisted_1$
|
|
8930
|
+
], 10, _hoisted_1$Z);
|
|
8931
8931
|
};
|
|
8932
8932
|
}
|
|
8933
8933
|
});
|
|
8934
|
-
const _hoisted_1$
|
|
8935
|
-
const _sfc_main
|
|
8934
|
+
const _hoisted_1$Y = { id: "lupa-search-box-products" };
|
|
8935
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8936
8936
|
__name: "SearchBoxProducts",
|
|
8937
8937
|
props: {
|
|
8938
8938
|
items: {},
|
|
@@ -8952,7 +8952,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8952
8952
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
8953
8953
|
});
|
|
8954
8954
|
return (_ctx, _cache) => {
|
|
8955
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8955
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
8956
8956
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
8957
8957
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
8958
8958
|
key: index,
|
|
@@ -8964,7 +8964,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8964
8964
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
8965
8965
|
});
|
|
8966
8966
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
8967
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8967
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
8968
8968
|
key: index,
|
|
8969
8969
|
item,
|
|
8970
8970
|
panelOptions: _ctx.panelOptions,
|
|
@@ -8978,7 +8978,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8978
8978
|
};
|
|
8979
8979
|
}
|
|
8980
8980
|
});
|
|
8981
|
-
const _sfc_main
|
|
8981
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8982
8982
|
__name: "SearchBoxProductsWrapper",
|
|
8983
8983
|
props: {
|
|
8984
8984
|
panel: {},
|
|
@@ -9030,7 +9030,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9030
9030
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
9031
9031
|
return (_ctx, _cache) => {
|
|
9032
9032
|
var _a, _b;
|
|
9033
|
-
return openBlock(), createBlock(_sfc_main
|
|
9033
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
9034
9034
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
9035
9035
|
panelOptions: _ctx.panel,
|
|
9036
9036
|
labels: _ctx.labels,
|
|
@@ -9048,11 +9048,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
9048
9048
|
};
|
|
9049
9049
|
}
|
|
9050
9050
|
});
|
|
9051
|
-
const _hoisted_1$
|
|
9051
|
+
const _hoisted_1$X = {
|
|
9052
9052
|
key: 0,
|
|
9053
9053
|
id: "lupa-search-box-panel"
|
|
9054
9054
|
};
|
|
9055
|
-
const _hoisted_2$
|
|
9055
|
+
const _hoisted_2$G = {
|
|
9056
9056
|
class: "lupa-main-panel",
|
|
9057
9057
|
"data-cy": "lupa-main-panel"
|
|
9058
9058
|
};
|
|
@@ -9063,11 +9063,11 @@ const _hoisted_4$n = {
|
|
|
9063
9063
|
};
|
|
9064
9064
|
const __default__$3 = {
|
|
9065
9065
|
components: {
|
|
9066
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
9067
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
9066
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1c,
|
|
9067
|
+
SearchBoxProductsWrapper: _sfc_main$$
|
|
9068
9068
|
}
|
|
9069
9069
|
};
|
|
9070
|
-
const _sfc_main$
|
|
9070
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
9071
9071
|
__name: "SearchBoxMainPanel",
|
|
9072
9072
|
props: {
|
|
9073
9073
|
options: {},
|
|
@@ -9181,8 +9181,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9181
9181
|
ref_key: "panelContainer",
|
|
9182
9182
|
ref: panelContainer
|
|
9183
9183
|
}, [
|
|
9184
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9185
|
-
createBaseVNode("div", _hoisted_2$
|
|
9184
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
9185
|
+
createBaseVNode("div", _hoisted_2$G, [
|
|
9186
9186
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
|
|
9187
9187
|
return openBlock(), createElementBlock("div", {
|
|
9188
9188
|
key: index,
|
|
@@ -9214,13 +9214,13 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9214
9214
|
], 10, _hoisted_3$v);
|
|
9215
9215
|
}), 128))
|
|
9216
9216
|
]),
|
|
9217
|
-
createVNode(_sfc_main$
|
|
9217
|
+
createVNode(_sfc_main$1h, {
|
|
9218
9218
|
labels: labels.value,
|
|
9219
9219
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9220
9220
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9221
9221
|
}, null, 8, ["labels", "showTotalCount"])
|
|
9222
9222
|
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
9223
|
-
createVNode(_sfc_main$
|
|
9223
|
+
createVNode(_sfc_main$1f, {
|
|
9224
9224
|
options: _ctx.options.history,
|
|
9225
9225
|
history: history.value,
|
|
9226
9226
|
onGoToResults: handleGoToResults,
|
|
@@ -9245,9 +9245,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
9245
9245
|
const elements = getElements(triggers);
|
|
9246
9246
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
9247
9247
|
};
|
|
9248
|
-
const _hoisted_1$
|
|
9249
|
-
const _hoisted_2$
|
|
9250
|
-
const _sfc_main$
|
|
9248
|
+
const _hoisted_1$W = { id: "lupa-search-box" };
|
|
9249
|
+
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
9250
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9251
9251
|
__name: "SearchBox",
|
|
9252
9252
|
props: {
|
|
9253
9253
|
options: {},
|
|
@@ -9480,9 +9480,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9480
9480
|
};
|
|
9481
9481
|
return (_ctx, _cache) => {
|
|
9482
9482
|
var _a2;
|
|
9483
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9484
|
-
createBaseVNode("div", _hoisted_2$
|
|
9485
|
-
createVNode(_sfc_main$
|
|
9483
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
9484
|
+
createBaseVNode("div", _hoisted_2$F, [
|
|
9485
|
+
createVNode(_sfc_main$1i, {
|
|
9486
9486
|
options: inputOptions.value,
|
|
9487
9487
|
suggestedValue: suggestedValue.value,
|
|
9488
9488
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -9493,7 +9493,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9493
9493
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
9494
9494
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
9495
9495
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
9496
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
9496
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
|
|
9497
9497
|
key: 0,
|
|
9498
9498
|
options: panelOptions.value,
|
|
9499
9499
|
inputValue: inputValue.value,
|
|
@@ -9580,11 +9580,11 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
9580
9580
|
}
|
|
9581
9581
|
return searchParams;
|
|
9582
9582
|
};
|
|
9583
|
-
const _hoisted_1$
|
|
9583
|
+
const _hoisted_1$V = {
|
|
9584
9584
|
key: 0,
|
|
9585
9585
|
id: "lupa-search-results-did-you-mean"
|
|
9586
9586
|
};
|
|
9587
|
-
const _hoisted_2$
|
|
9587
|
+
const _hoisted_2$E = {
|
|
9588
9588
|
key: 0,
|
|
9589
9589
|
"data-cy": "suggested-search-text-label"
|
|
9590
9590
|
};
|
|
@@ -9593,7 +9593,7 @@ const _hoisted_3$u = {
|
|
|
9593
9593
|
"data-cy": "did-you-mean-label"
|
|
9594
9594
|
};
|
|
9595
9595
|
const _hoisted_4$m = { key: 1 };
|
|
9596
|
-
const _sfc_main$
|
|
9596
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9597
9597
|
__name: "SearchResultsDidYouMean",
|
|
9598
9598
|
props: {
|
|
9599
9599
|
labels: {}
|
|
@@ -9625,8 +9625,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9625
9625
|
paramStore.goToResults({ searchText, facet });
|
|
9626
9626
|
};
|
|
9627
9627
|
return (_ctx, _cache) => {
|
|
9628
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9629
|
-
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9628
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
9629
|
+
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
9630
9630
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
9631
9631
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
9632
9632
|
createBaseVNode("span", {
|
|
@@ -9651,12 +9651,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9651
9651
|
};
|
|
9652
9652
|
}
|
|
9653
9653
|
});
|
|
9654
|
-
const _hoisted_1$
|
|
9654
|
+
const _hoisted_1$U = {
|
|
9655
9655
|
key: 0,
|
|
9656
9656
|
class: "lupa-search-results-summary"
|
|
9657
9657
|
};
|
|
9658
|
-
const _hoisted_2$
|
|
9659
|
-
const _sfc_main$
|
|
9658
|
+
const _hoisted_2$D = ["innerHTML"];
|
|
9659
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9660
9660
|
__name: "SearchResultsSummary",
|
|
9661
9661
|
props: {
|
|
9662
9662
|
label: {},
|
|
@@ -9671,8 +9671,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9671
9671
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
9672
9672
|
});
|
|
9673
9673
|
return (_ctx, _cache) => {
|
|
9674
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9675
|
-
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
9674
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
9675
|
+
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
9676
9676
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
9677
9677
|
key: 0,
|
|
9678
9678
|
class: "lupa-filter-clear",
|
|
@@ -9683,18 +9683,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9683
9683
|
};
|
|
9684
9684
|
}
|
|
9685
9685
|
});
|
|
9686
|
-
const _hoisted_1$
|
|
9686
|
+
const _hoisted_1$T = {
|
|
9687
9687
|
key: 0,
|
|
9688
9688
|
class: "lupa-result-page-title",
|
|
9689
9689
|
"data-cy": "lupa-result-page-title"
|
|
9690
9690
|
};
|
|
9691
|
-
const _hoisted_2$
|
|
9691
|
+
const _hoisted_2$C = { key: 0 };
|
|
9692
9692
|
const _hoisted_3$t = {
|
|
9693
9693
|
key: 1,
|
|
9694
9694
|
class: "lupa-results-total-count"
|
|
9695
9695
|
};
|
|
9696
9696
|
const _hoisted_4$l = ["innerHTML"];
|
|
9697
|
-
const _sfc_main$
|
|
9697
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9698
9698
|
__name: "SearchResultsTitle",
|
|
9699
9699
|
props: {
|
|
9700
9700
|
options: {},
|
|
@@ -9729,12 +9729,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9729
9729
|
});
|
|
9730
9730
|
return (_ctx, _cache) => {
|
|
9731
9731
|
return openBlock(), createElementBlock("div", null, [
|
|
9732
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
9732
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
|
|
9733
9733
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
9734
|
-
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9734
|
+
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
9735
9735
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
|
|
9736
9736
|
])) : createCommentVNode("", true),
|
|
9737
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
9737
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
|
|
9738
9738
|
key: 1,
|
|
9739
9739
|
label: summaryLabel.value
|
|
9740
9740
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -9747,8 +9747,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9747
9747
|
};
|
|
9748
9748
|
}
|
|
9749
9749
|
});
|
|
9750
|
-
const _hoisted_1$
|
|
9751
|
-
const _hoisted_2$
|
|
9750
|
+
const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
|
|
9751
|
+
const _hoisted_2$B = {
|
|
9752
9752
|
class: "lupa-current-filter-label",
|
|
9753
9753
|
"data-cy": "lupa-current-filter-label"
|
|
9754
9754
|
};
|
|
@@ -9756,7 +9756,7 @@ const _hoisted_3$s = {
|
|
|
9756
9756
|
class: "lupa-current-filter-value",
|
|
9757
9757
|
"data-cy": "lupa-current-filter-value"
|
|
9758
9758
|
};
|
|
9759
|
-
const _sfc_main$
|
|
9759
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9760
9760
|
__name: "CurrentFilterDisplay",
|
|
9761
9761
|
props: {
|
|
9762
9762
|
filter: {}
|
|
@@ -9768,19 +9768,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
9768
9768
|
emit2("remove", { filter: props.filter });
|
|
9769
9769
|
};
|
|
9770
9770
|
return (_ctx, _cache) => {
|
|
9771
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9771
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
9772
9772
|
createBaseVNode("div", {
|
|
9773
9773
|
class: "lupa-current-filter-action",
|
|
9774
9774
|
onClick: handleClick
|
|
9775
9775
|
}, "⨉"),
|
|
9776
|
-
createBaseVNode("div", _hoisted_2$
|
|
9776
|
+
createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
9777
9777
|
createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
|
|
9778
9778
|
]);
|
|
9779
9779
|
};
|
|
9780
9780
|
}
|
|
9781
9781
|
});
|
|
9782
|
-
const _hoisted_1$
|
|
9783
|
-
const _hoisted_2$
|
|
9782
|
+
const _hoisted_1$R = { class: "lupa-filter-title-text" };
|
|
9783
|
+
const _hoisted_2$A = {
|
|
9784
9784
|
key: 0,
|
|
9785
9785
|
class: "lupa-filter-count"
|
|
9786
9786
|
};
|
|
@@ -9789,7 +9789,7 @@ const _hoisted_3$r = {
|
|
|
9789
9789
|
class: "filter-values"
|
|
9790
9790
|
};
|
|
9791
9791
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
9792
|
-
const _sfc_main$
|
|
9792
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
9793
9793
|
__name: "CurrentFilters",
|
|
9794
9794
|
props: {
|
|
9795
9795
|
options: {},
|
|
@@ -9844,9 +9844,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9844
9844
|
class: "lupa-current-filter-title",
|
|
9845
9845
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
9846
9846
|
}, [
|
|
9847
|
-
createBaseVNode("div", _hoisted_1$
|
|
9847
|
+
createBaseVNode("div", _hoisted_1$R, [
|
|
9848
9848
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
9849
|
-
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9849
|
+
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
9850
9850
|
]),
|
|
9851
9851
|
_ctx.expandable ? (openBlock(), createElementBlock("div", {
|
|
9852
9852
|
key: 0,
|
|
@@ -9856,7 +9856,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9856
9856
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
9857
9857
|
createBaseVNode("div", _hoisted_4$k, [
|
|
9858
9858
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
9859
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9859
|
+
return openBlock(), createBlock(_sfc_main$V, {
|
|
9860
9860
|
key: filter.key + "_" + filter.value,
|
|
9861
9861
|
filter,
|
|
9862
9862
|
onRemove: handleRemove
|
|
@@ -9873,8 +9873,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9873
9873
|
};
|
|
9874
9874
|
}
|
|
9875
9875
|
});
|
|
9876
|
-
const _hoisted_1$
|
|
9877
|
-
const _sfc_main$
|
|
9876
|
+
const _hoisted_1$Q = ["href"];
|
|
9877
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9878
9878
|
__name: "CategoryFilterItem",
|
|
9879
9879
|
props: {
|
|
9880
9880
|
options: {},
|
|
@@ -9911,20 +9911,20 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
9911
9911
|
"data-cy": "lupa-child-category-item",
|
|
9912
9912
|
href: urlLink.value,
|
|
9913
9913
|
onClick: handleNavigation
|
|
9914
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
9914
|
+
}, toDisplayString(title.value), 9, _hoisted_1$Q)
|
|
9915
9915
|
], 2);
|
|
9916
9916
|
};
|
|
9917
9917
|
}
|
|
9918
9918
|
});
|
|
9919
|
-
const _hoisted_1$
|
|
9919
|
+
const _hoisted_1$P = {
|
|
9920
9920
|
class: "lupa-category-filter",
|
|
9921
9921
|
"data-cy": "lupa-category-filter"
|
|
9922
9922
|
};
|
|
9923
|
-
const _hoisted_2$
|
|
9923
|
+
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
9924
9924
|
const _hoisted_3$q = ["href"];
|
|
9925
9925
|
const _hoisted_4$j = ["href"];
|
|
9926
9926
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
9927
|
-
const _sfc_main$
|
|
9927
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9928
9928
|
__name: "CategoryFilter",
|
|
9929
9929
|
props: {
|
|
9930
9930
|
options: {}
|
|
@@ -10010,8 +10010,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10010
10010
|
};
|
|
10011
10011
|
__expose({ fetch: fetch2 });
|
|
10012
10012
|
return (_ctx, _cache) => {
|
|
10013
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10014
|
-
createBaseVNode("div", _hoisted_2$
|
|
10013
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10014
|
+
createBaseVNode("div", _hoisted_2$z, [
|
|
10015
10015
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
10016
10016
|
key: 0,
|
|
10017
10017
|
"data-cy": "lupa-category-back",
|
|
@@ -10031,7 +10031,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10031
10031
|
], 2),
|
|
10032
10032
|
createBaseVNode("div", _hoisted_5$c, [
|
|
10033
10033
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10034
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10034
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
10035
10035
|
key: getCategoryKey(child),
|
|
10036
10036
|
item: child,
|
|
10037
10037
|
options: _ctx.options
|
|
@@ -10042,11 +10042,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10042
10042
|
};
|
|
10043
10043
|
}
|
|
10044
10044
|
});
|
|
10045
|
-
const _hoisted_1$
|
|
10045
|
+
const _hoisted_1$O = {
|
|
10046
10046
|
class: "lupa-search-result-facet-term-values",
|
|
10047
10047
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
10048
10048
|
};
|
|
10049
|
-
const _hoisted_2$
|
|
10049
|
+
const _hoisted_2$y = ["placeholder"];
|
|
10050
10050
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
10051
10051
|
const _hoisted_4$i = ["onClick"];
|
|
10052
10052
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
@@ -10058,7 +10058,7 @@ const _hoisted_8$1 = {
|
|
|
10058
10058
|
};
|
|
10059
10059
|
const _hoisted_9$1 = { key: 0 };
|
|
10060
10060
|
const _hoisted_10$1 = { key: 1 };
|
|
10061
|
-
const _sfc_main$
|
|
10061
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10062
10062
|
__name: "TermFacet",
|
|
10063
10063
|
props: {
|
|
10064
10064
|
options: {},
|
|
@@ -10127,14 +10127,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
10127
10127
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
10128
10128
|
};
|
|
10129
10129
|
return (_ctx, _cache) => {
|
|
10130
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10130
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
10131
10131
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
10132
10132
|
key: 0,
|
|
10133
10133
|
class: "lupa-term-filter",
|
|
10134
10134
|
"data-cy": "lupa-term-filter",
|
|
10135
10135
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
10136
10136
|
placeholder: _ctx.options.labels.facetFilter
|
|
10137
|
-
}, null, 8, _hoisted_2$
|
|
10137
|
+
}, null, 8, _hoisted_2$y)), [
|
|
10138
10138
|
[vModelText, termFilter.value]
|
|
10139
10139
|
]) : createCommentVNode("", true),
|
|
10140
10140
|
createBaseVNode("div", _hoisted_3$p, [
|
|
@@ -11145,8 +11145,8 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
11145
11145
|
m.render = function(e, t, r, i, n, o) {
|
|
11146
11146
|
return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
11147
11147
|
}, m.__file = "src/Slider.vue";
|
|
11148
|
-
const _hoisted_1$
|
|
11149
|
-
const _hoisted_2$
|
|
11148
|
+
const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
|
|
11149
|
+
const _hoisted_2$x = {
|
|
11150
11150
|
key: 0,
|
|
11151
11151
|
class: "lupa-stats-facet-summary"
|
|
11152
11152
|
};
|
|
@@ -11173,7 +11173,7 @@ const _hoisted_13 = {
|
|
|
11173
11173
|
key: 2,
|
|
11174
11174
|
class: "lupa-stats-slider-wrapper"
|
|
11175
11175
|
};
|
|
11176
|
-
const _sfc_main$
|
|
11176
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11177
11177
|
__name: "StatsFacet",
|
|
11178
11178
|
props: {
|
|
11179
11179
|
options: {},
|
|
@@ -11321,8 +11321,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11321
11321
|
innerSliderRange.value = value;
|
|
11322
11322
|
};
|
|
11323
11323
|
return (_ctx, _cache) => {
|
|
11324
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11325
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11324
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
11325
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
11326
11326
|
createBaseVNode("div", null, [
|
|
11327
11327
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11328
11328
|
createBaseVNode("div", _hoisted_5$a, [
|
|
@@ -11385,8 +11385,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11385
11385
|
};
|
|
11386
11386
|
}
|
|
11387
11387
|
});
|
|
11388
|
-
const _hoisted_1$
|
|
11389
|
-
const _hoisted_2$
|
|
11388
|
+
const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
|
|
11389
|
+
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
11390
11390
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
11391
11391
|
const _hoisted_4$g = {
|
|
11392
11392
|
key: 0,
|
|
@@ -11396,7 +11396,7 @@ const _hoisted_5$9 = {
|
|
|
11396
11396
|
key: 0,
|
|
11397
11397
|
class: "lupa-facet-level"
|
|
11398
11398
|
};
|
|
11399
|
-
const _sfc_main$
|
|
11399
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11400
11400
|
__name: "HierarchyFacetLevel",
|
|
11401
11401
|
props: {
|
|
11402
11402
|
options: {},
|
|
@@ -11442,12 +11442,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11442
11442
|
"data-cy": "lupa-facet-term",
|
|
11443
11443
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
11444
11444
|
}, [
|
|
11445
|
-
createBaseVNode("div", _hoisted_1$
|
|
11445
|
+
createBaseVNode("div", _hoisted_1$M, [
|
|
11446
11446
|
createBaseVNode("span", {
|
|
11447
11447
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
11448
11448
|
}, null, 2)
|
|
11449
11449
|
]),
|
|
11450
|
-
createBaseVNode("div", _hoisted_2$
|
|
11450
|
+
createBaseVNode("div", _hoisted_2$w, [
|
|
11451
11451
|
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11452
11452
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11453
11453
|
])
|
|
@@ -11468,13 +11468,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11468
11468
|
};
|
|
11469
11469
|
}
|
|
11470
11470
|
});
|
|
11471
|
-
const _hoisted_1$
|
|
11471
|
+
const _hoisted_1$L = {
|
|
11472
11472
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
11473
11473
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11474
11474
|
};
|
|
11475
|
-
const _hoisted_2$
|
|
11475
|
+
const _hoisted_2$v = { key: 0 };
|
|
11476
11476
|
const _hoisted_3$m = ["placeholder"];
|
|
11477
|
-
const _sfc_main$
|
|
11477
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11478
11478
|
__name: "HierarchyFacet",
|
|
11479
11479
|
props: {
|
|
11480
11480
|
options: {},
|
|
@@ -11524,8 +11524,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11524
11524
|
showAll.value = true;
|
|
11525
11525
|
};
|
|
11526
11526
|
return (_ctx, _cache) => {
|
|
11527
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11528
|
-
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11527
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
11528
|
+
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
11529
11529
|
withDirectives(createBaseVNode("input", {
|
|
11530
11530
|
class: "lupa-term-filter",
|
|
11531
11531
|
"data-cy": "lupa-term-filter",
|
|
@@ -11536,7 +11536,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11536
11536
|
])
|
|
11537
11537
|
])) : createCommentVNode("", true),
|
|
11538
11538
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11539
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11539
|
+
return openBlock(), createBlock(_sfc_main$P, {
|
|
11540
11540
|
key: item.title,
|
|
11541
11541
|
options: _ctx.options,
|
|
11542
11542
|
item,
|
|
@@ -11556,20 +11556,20 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11556
11556
|
};
|
|
11557
11557
|
}
|
|
11558
11558
|
});
|
|
11559
|
-
const _hoisted_1$
|
|
11560
|
-
const _hoisted_2$
|
|
11559
|
+
const _hoisted_1$K = { class: "lupa-facet-label-text" };
|
|
11560
|
+
const _hoisted_2$u = {
|
|
11561
11561
|
key: 0,
|
|
11562
11562
|
class: "lupa-facet-content",
|
|
11563
11563
|
"data-cy": "lupa-facet-content"
|
|
11564
11564
|
};
|
|
11565
11565
|
const __default__$2 = {
|
|
11566
11566
|
components: {
|
|
11567
|
-
TermFacet: _sfc_main$
|
|
11568
|
-
StatsFacet: _sfc_main$
|
|
11569
|
-
HierarchyFacet: _sfc_main$
|
|
11567
|
+
TermFacet: _sfc_main$R,
|
|
11568
|
+
StatsFacet: _sfc_main$Q,
|
|
11569
|
+
HierarchyFacet: _sfc_main$O
|
|
11570
11570
|
}
|
|
11571
11571
|
};
|
|
11572
|
-
const _sfc_main$
|
|
11572
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
11573
11573
|
__name: "FacetDisplay",
|
|
11574
11574
|
props: {
|
|
11575
11575
|
options: {},
|
|
@@ -11680,12 +11680,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11680
11680
|
"data-cy": "lupa-search-result-facet-label",
|
|
11681
11681
|
onClick: toggleFacet
|
|
11682
11682
|
}, [
|
|
11683
|
-
createBaseVNode("div", _hoisted_1$
|
|
11683
|
+
createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
|
|
11684
11684
|
createBaseVNode("div", {
|
|
11685
11685
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
11686
11686
|
}, null, 2)
|
|
11687
11687
|
], 2),
|
|
11688
|
-
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11688
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
11689
11689
|
(openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
|
|
11690
11690
|
facet: facet.value,
|
|
11691
11691
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -11703,12 +11703,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11703
11703
|
};
|
|
11704
11704
|
}
|
|
11705
11705
|
}));
|
|
11706
|
-
const _hoisted_1$
|
|
11707
|
-
const _hoisted_2$
|
|
11706
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
|
|
11707
|
+
const _hoisted_2$t = {
|
|
11708
11708
|
key: 0,
|
|
11709
11709
|
class: "lupa-facets-title"
|
|
11710
11710
|
};
|
|
11711
|
-
const _sfc_main$
|
|
11711
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11712
11712
|
__name: "FacetList",
|
|
11713
11713
|
props: {
|
|
11714
11714
|
options: {},
|
|
@@ -11742,14 +11742,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11742
11742
|
};
|
|
11743
11743
|
return (_ctx, _cache) => {
|
|
11744
11744
|
var _a;
|
|
11745
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11746
|
-
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11745
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
11746
|
+
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
11747
11747
|
createBaseVNode("div", {
|
|
11748
11748
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
11749
11749
|
}, [
|
|
11750
11750
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
11751
11751
|
var _a2;
|
|
11752
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11752
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
11753
11753
|
key: facet.key,
|
|
11754
11754
|
facet,
|
|
11755
11755
|
currentFilters: currentFiltersValue.value,
|
|
@@ -11764,8 +11764,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11764
11764
|
};
|
|
11765
11765
|
}
|
|
11766
11766
|
});
|
|
11767
|
-
const _hoisted_1$
|
|
11768
|
-
const _sfc_main$
|
|
11767
|
+
const _hoisted_1$I = { class: "lupa-search-result-facets" };
|
|
11768
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
11769
11769
|
__name: "Facets",
|
|
11770
11770
|
props: {
|
|
11771
11771
|
options: {},
|
|
@@ -11811,8 +11811,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11811
11811
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
11812
11812
|
};
|
|
11813
11813
|
return (_ctx, _cache) => {
|
|
11814
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11815
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
11814
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
11815
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
11816
11816
|
key: 0,
|
|
11817
11817
|
options: _ctx.options,
|
|
11818
11818
|
facets: regularFacets.value,
|
|
@@ -11826,11 +11826,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11826
11826
|
};
|
|
11827
11827
|
}
|
|
11828
11828
|
});
|
|
11829
|
-
const _hoisted_1$
|
|
11829
|
+
const _hoisted_1$H = {
|
|
11830
11830
|
id: "lupa-search-result-filters",
|
|
11831
11831
|
class: "lupa-search-result-filters"
|
|
11832
11832
|
};
|
|
11833
|
-
const _sfc_main$
|
|
11833
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11834
11834
|
__name: "SearchResultsFilters",
|
|
11835
11835
|
props: {
|
|
11836
11836
|
options: {},
|
|
@@ -11859,19 +11859,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11859
11859
|
__expose({ fetch: fetch2 });
|
|
11860
11860
|
return (_ctx, _cache) => {
|
|
11861
11861
|
var _a;
|
|
11862
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11863
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
11862
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11863
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
11864
11864
|
key: 0,
|
|
11865
11865
|
options: _ctx.options.currentFilters,
|
|
11866
11866
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
11867
11867
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
11868
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
11868
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
|
|
11869
11869
|
key: 1,
|
|
11870
11870
|
options: _ctx.options.categories,
|
|
11871
11871
|
ref_key: "categoryFilters",
|
|
11872
11872
|
ref: categoryFilters
|
|
11873
11873
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
11874
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
11874
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11875
11875
|
key: 2,
|
|
11876
11876
|
options: _ctx.options.facets
|
|
11877
11877
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -11879,11 +11879,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11879
11879
|
};
|
|
11880
11880
|
}
|
|
11881
11881
|
});
|
|
11882
|
-
const _hoisted_1$
|
|
11882
|
+
const _hoisted_1$G = {
|
|
11883
11883
|
key: 0,
|
|
11884
11884
|
class: "lupa-mobile-filter-sidebar"
|
|
11885
11885
|
};
|
|
11886
|
-
const _hoisted_2$
|
|
11886
|
+
const _hoisted_2$s = ["onClick"];
|
|
11887
11887
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
11888
11888
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
11889
11889
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
@@ -11892,7 +11892,7 @@ const _hoisted_6$5 = {
|
|
|
11892
11892
|
class: "lupa-sidebar-filter-count"
|
|
11893
11893
|
};
|
|
11894
11894
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
11895
|
-
const _sfc_main$
|
|
11895
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11896
11896
|
__name: "MobileFilterSidebar",
|
|
11897
11897
|
props: {
|
|
11898
11898
|
options: {}
|
|
@@ -11918,11 +11918,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11918
11918
|
searchResultStore.setSidebarState({ visible: false });
|
|
11919
11919
|
};
|
|
11920
11920
|
return (_ctx, _cache) => {
|
|
11921
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11921
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11922
11922
|
createBaseVNode("div", {
|
|
11923
11923
|
class: "lupa-sidebar-close",
|
|
11924
11924
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
11925
|
-
}, null, 8, _hoisted_2$
|
|
11925
|
+
}, null, 8, _hoisted_2$s),
|
|
11926
11926
|
createBaseVNode("div", _hoisted_3$l, [
|
|
11927
11927
|
createBaseVNode("div", _hoisted_4$f, [
|
|
11928
11928
|
createBaseVNode("div", _hoisted_5$8, [
|
|
@@ -11935,7 +11935,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11935
11935
|
})
|
|
11936
11936
|
]),
|
|
11937
11937
|
createBaseVNode("div", _hoisted_7$4, [
|
|
11938
|
-
createVNode(_sfc_main$
|
|
11938
|
+
createVNode(_sfc_main$K, {
|
|
11939
11939
|
options: _ctx.options,
|
|
11940
11940
|
expandable: isActiveFiltersExpanded.value
|
|
11941
11941
|
}, null, 8, ["options", "expandable"])
|
|
@@ -11945,14 +11945,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11945
11945
|
};
|
|
11946
11946
|
}
|
|
11947
11947
|
});
|
|
11948
|
-
const _hoisted_1$
|
|
11949
|
-
const _hoisted_2$
|
|
11948
|
+
const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
|
|
11949
|
+
const _hoisted_2$r = ["href", "onClick"];
|
|
11950
11950
|
const _hoisted_3$k = {
|
|
11951
11951
|
key: 1,
|
|
11952
11952
|
class: "lupa-search-results-breadcrumb-text"
|
|
11953
11953
|
};
|
|
11954
11954
|
const _hoisted_4$e = { key: 2 };
|
|
11955
|
-
const _sfc_main$
|
|
11955
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11956
11956
|
__name: "SearchResultsBreadcrumbs",
|
|
11957
11957
|
props: {
|
|
11958
11958
|
breadcrumbs: {}
|
|
@@ -11977,7 +11977,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11977
11977
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
11978
11978
|
};
|
|
11979
11979
|
return (_ctx, _cache) => {
|
|
11980
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11980
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11981
11981
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
11982
11982
|
return openBlock(), createElementBlock("span", {
|
|
11983
11983
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -11991,7 +11991,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11991
11991
|
var _a;
|
|
11992
11992
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
11993
11993
|
}
|
|
11994
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
11994
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
11995
11995
|
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
|
|
11996
11996
|
]);
|
|
11997
11997
|
}), 128))
|
|
@@ -11999,11 +11999,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11999
11999
|
};
|
|
12000
12000
|
}
|
|
12001
12001
|
});
|
|
12002
|
-
const _hoisted_1$
|
|
12002
|
+
const _hoisted_1$E = {
|
|
12003
12003
|
id: "lupa-search-result-filters",
|
|
12004
12004
|
class: "lupa-search-result-filters"
|
|
12005
12005
|
};
|
|
12006
|
-
const _sfc_main$
|
|
12006
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
12007
12007
|
__name: "FiltersTopDropdown",
|
|
12008
12008
|
props: {
|
|
12009
12009
|
options: {}
|
|
@@ -12011,8 +12011,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12011
12011
|
setup(__props) {
|
|
12012
12012
|
return (_ctx, _cache) => {
|
|
12013
12013
|
var _a;
|
|
12014
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12015
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
12014
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
12015
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
|
|
12016
12016
|
key: 0,
|
|
12017
12017
|
options: _ctx.options.facets,
|
|
12018
12018
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -12022,8 +12022,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12022
12022
|
};
|
|
12023
12023
|
}
|
|
12024
12024
|
});
|
|
12025
|
-
const _hoisted_1$
|
|
12026
|
-
const _sfc_main$
|
|
12025
|
+
const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
|
|
12026
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12027
12027
|
__name: "SearchResultsLayoutSelection",
|
|
12028
12028
|
setup(__props) {
|
|
12029
12029
|
const searchResultStore = useSearchResultStore();
|
|
@@ -12034,7 +12034,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12034
12034
|
searchResultStore.setLayout(layout2);
|
|
12035
12035
|
};
|
|
12036
12036
|
return (_ctx, _cache) => {
|
|
12037
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12037
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
12038
12038
|
createBaseVNode("div", {
|
|
12039
12039
|
class: normalizeClass([
|
|
12040
12040
|
"lupa-layout-selection-grid",
|
|
@@ -12056,11 +12056,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12056
12056
|
};
|
|
12057
12057
|
}
|
|
12058
12058
|
});
|
|
12059
|
-
const _hoisted_1$
|
|
12059
|
+
const _hoisted_1$C = {
|
|
12060
12060
|
key: 0,
|
|
12061
12061
|
class: "lupa-mobile-toggle-filter-count"
|
|
12062
12062
|
};
|
|
12063
|
-
const _sfc_main$
|
|
12063
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12064
12064
|
__name: "SearchResultsMobileToggle",
|
|
12065
12065
|
props: {
|
|
12066
12066
|
label: {},
|
|
@@ -12078,17 +12078,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12078
12078
|
onClick: handleMobileToggle
|
|
12079
12079
|
}, [
|
|
12080
12080
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
12081
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
12081
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12082
12082
|
], 2);
|
|
12083
12083
|
};
|
|
12084
12084
|
}
|
|
12085
12085
|
});
|
|
12086
|
-
const _hoisted_1$
|
|
12086
|
+
const _hoisted_1$B = {
|
|
12087
12087
|
key: 0,
|
|
12088
12088
|
id: "lupa-search-results-page-select",
|
|
12089
12089
|
"data-cy": "lupa-search-results-page-select"
|
|
12090
12090
|
};
|
|
12091
|
-
const _hoisted_2$
|
|
12091
|
+
const _hoisted_2$q = {
|
|
12092
12092
|
key: 0,
|
|
12093
12093
|
class: "lupa-page-number-separator"
|
|
12094
12094
|
};
|
|
@@ -12097,7 +12097,7 @@ const _hoisted_4$d = {
|
|
|
12097
12097
|
key: 0,
|
|
12098
12098
|
class: "lupa-page-number-separator"
|
|
12099
12099
|
};
|
|
12100
|
-
const _sfc_main$
|
|
12100
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12101
12101
|
__name: "SearchResultsPageSelect",
|
|
12102
12102
|
props: {
|
|
12103
12103
|
lastPageLabel: {},
|
|
@@ -12159,7 +12159,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12159
12159
|
}
|
|
12160
12160
|
};
|
|
12161
12161
|
return (_ctx, _cache) => {
|
|
12162
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12162
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
12163
12163
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
12164
12164
|
key: 0,
|
|
12165
12165
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -12170,7 +12170,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12170
12170
|
class: "lupa-page-number lupa-page-number-first",
|
|
12171
12171
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
12172
12172
|
}, " 1 "),
|
|
12173
|
-
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12173
|
+
showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
|
|
12174
12174
|
], 64)) : createCommentVNode("", true),
|
|
12175
12175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
|
|
12176
12176
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12203,13 +12203,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12203
12203
|
};
|
|
12204
12204
|
}
|
|
12205
12205
|
});
|
|
12206
|
-
const _hoisted_1$
|
|
12206
|
+
const _hoisted_1$A = {
|
|
12207
12207
|
id: "lupa-search-results-page-size",
|
|
12208
12208
|
"data-cy": "lupa-search-results-page-size"
|
|
12209
12209
|
};
|
|
12210
|
-
const _hoisted_2$
|
|
12210
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
12211
12211
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12212
|
-
const _sfc_main$
|
|
12212
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12213
12213
|
__name: "SearchResultsPageSize",
|
|
12214
12214
|
props: {
|
|
12215
12215
|
label: {},
|
|
@@ -12226,8 +12226,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12226
12226
|
});
|
|
12227
12227
|
};
|
|
12228
12228
|
return (_ctx, _cache) => {
|
|
12229
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12230
|
-
createBaseVNode("div", _hoisted_2$
|
|
12229
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
12230
|
+
createBaseVNode("div", _hoisted_2$p, [
|
|
12231
12231
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
|
|
12232
12232
|
createBaseVNode("select", {
|
|
12233
12233
|
class: "lupa-select-dropdown",
|
|
@@ -12245,14 +12245,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12245
12245
|
};
|
|
12246
12246
|
}
|
|
12247
12247
|
});
|
|
12248
|
-
const _hoisted_1$
|
|
12248
|
+
const _hoisted_1$z = {
|
|
12249
12249
|
id: "lupa-search-results-sort",
|
|
12250
12250
|
class: "lupa-search-results-sort"
|
|
12251
12251
|
};
|
|
12252
|
-
const _hoisted_2$
|
|
12252
|
+
const _hoisted_2$o = { id: "lupa-select" };
|
|
12253
12253
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
12254
12254
|
const _hoisted_4$c = ["value"];
|
|
12255
|
-
const _sfc_main$
|
|
12255
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
12256
12256
|
__name: "SearchResultsSort",
|
|
12257
12257
|
props: {
|
|
12258
12258
|
options: {},
|
|
@@ -12299,8 +12299,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12299
12299
|
previousKey.value = selectedKey.value;
|
|
12300
12300
|
};
|
|
12301
12301
|
return (_ctx, _cache) => {
|
|
12302
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12303
|
-
createBaseVNode("div", _hoisted_2$
|
|
12302
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
12303
|
+
createBaseVNode("div", _hoisted_2$o, [
|
|
12304
12304
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
12305
12305
|
withDirectives(createBaseVNode("select", {
|
|
12306
12306
|
class: "lupa-select-dropdown",
|
|
@@ -12323,14 +12323,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12323
12323
|
};
|
|
12324
12324
|
}
|
|
12325
12325
|
});
|
|
12326
|
-
const _hoisted_1$
|
|
12327
|
-
const _hoisted_2$
|
|
12326
|
+
const _hoisted_1$y = { class: "lupa-toolbar-left" };
|
|
12327
|
+
const _hoisted_2$n = { key: 1 };
|
|
12328
12328
|
const _hoisted_3$g = { key: 3 };
|
|
12329
12329
|
const _hoisted_4$b = { key: 5 };
|
|
12330
12330
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
12331
12331
|
const _hoisted_6$4 = { key: 1 };
|
|
12332
12332
|
const _hoisted_7$3 = { key: 3 };
|
|
12333
|
-
const _sfc_main$
|
|
12333
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
12334
12334
|
__name: "SearchResultsToolbar",
|
|
12335
12335
|
props: {
|
|
12336
12336
|
options: {},
|
|
@@ -12429,15 +12429,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12429
12429
|
id: "lupa-search-results-toolbar",
|
|
12430
12430
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
12431
12431
|
}, [
|
|
12432
|
-
createBaseVNode("div", _hoisted_1$
|
|
12433
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
12434
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
12432
|
+
createBaseVNode("div", _hoisted_1$y, [
|
|
12433
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
|
|
12434
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
|
|
12435
12435
|
key: 2,
|
|
12436
12436
|
label: searchSummaryLabel.value,
|
|
12437
12437
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
12438
12438
|
onClear: handleClearAll
|
|
12439
12439
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
12440
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
12440
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
12441
12441
|
key: 4,
|
|
12442
12442
|
options: paginationOptions.value.pageSelect,
|
|
12443
12443
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -12445,16 +12445,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12445
12445
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
|
|
12446
12446
|
]),
|
|
12447
12447
|
createBaseVNode("div", _hoisted_5$7, [
|
|
12448
|
-
createVNode(_sfc_main$
|
|
12448
|
+
createVNode(_sfc_main$F, {
|
|
12449
12449
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
12450
12450
|
"show-filter-count": showMobileFilterCount.value
|
|
12451
12451
|
}, null, 8, ["label", "show-filter-count"]),
|
|
12452
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
12452
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
12453
12453
|
key: 0,
|
|
12454
12454
|
options: paginationOptions.value.pageSize,
|
|
12455
12455
|
label: paginationOptions.value.labels.pageSize
|
|
12456
12456
|
}, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
|
|
12457
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
12457
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
12458
12458
|
key: 2,
|
|
12459
12459
|
options: sortOptions.value,
|
|
12460
12460
|
callbacks: callbacks.value
|
|
@@ -12464,14 +12464,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12464
12464
|
};
|
|
12465
12465
|
}
|
|
12466
12466
|
});
|
|
12467
|
-
const _hoisted_1$
|
|
12468
|
-
const _hoisted_2$
|
|
12467
|
+
const _hoisted_1$x = { class: "lupa-badge-title" };
|
|
12468
|
+
const _hoisted_2$m = ["src"];
|
|
12469
12469
|
const _hoisted_3$f = { key: 1 };
|
|
12470
12470
|
const _hoisted_4$a = {
|
|
12471
12471
|
key: 0,
|
|
12472
12472
|
class: "lupa-badge-full-text"
|
|
12473
12473
|
};
|
|
12474
|
-
const _sfc_main$
|
|
12474
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
12475
12475
|
__name: "SearchResultGeneratedBadge",
|
|
12476
12476
|
props: {
|
|
12477
12477
|
options: {},
|
|
@@ -12504,11 +12504,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12504
12504
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
12505
12505
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
12506
12506
|
}, [
|
|
12507
|
-
createBaseVNode("span", _hoisted_1$
|
|
12507
|
+
createBaseVNode("span", _hoisted_1$x, [
|
|
12508
12508
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
12509
12509
|
key: 0,
|
|
12510
12510
|
src: image.value
|
|
12511
|
-
}, null, 8, _hoisted_2$
|
|
12511
|
+
}, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
|
|
12512
12512
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
12513
12513
|
]),
|
|
12514
12514
|
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
@@ -12516,8 +12516,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12516
12516
|
};
|
|
12517
12517
|
}
|
|
12518
12518
|
});
|
|
12519
|
-
const _hoisted_1$
|
|
12520
|
-
const _sfc_main$
|
|
12519
|
+
const _hoisted_1$w = { class: "lupa-generated-badges" };
|
|
12520
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12521
12521
|
__name: "SearchResultGeneratedBadges",
|
|
12522
12522
|
props: {
|
|
12523
12523
|
options: {}
|
|
@@ -12543,9 +12543,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12543
12543
|
})).filter((b) => Boolean(b.id));
|
|
12544
12544
|
});
|
|
12545
12545
|
return (_ctx, _cache) => {
|
|
12546
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12546
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12547
12547
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
12548
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12548
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
12549
12549
|
key: badge.id,
|
|
12550
12550
|
badge,
|
|
12551
12551
|
options: _ctx.options
|
|
@@ -12555,8 +12555,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12555
12555
|
};
|
|
12556
12556
|
}
|
|
12557
12557
|
});
|
|
12558
|
-
const _hoisted_1$
|
|
12559
|
-
const _sfc_main$
|
|
12558
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
12559
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12560
12560
|
__name: "CustomBadge",
|
|
12561
12561
|
props: {
|
|
12562
12562
|
badge: {}
|
|
@@ -12575,12 +12575,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12575
12575
|
return openBlock(), createElementBlock("div", {
|
|
12576
12576
|
class: normalizeClass(className.value),
|
|
12577
12577
|
innerHTML: text.value
|
|
12578
|
-
}, null, 10, _hoisted_1$
|
|
12578
|
+
}, null, 10, _hoisted_1$v);
|
|
12579
12579
|
};
|
|
12580
12580
|
}
|
|
12581
12581
|
});
|
|
12582
|
-
const _hoisted_1$
|
|
12583
|
-
const _sfc_main$
|
|
12582
|
+
const _hoisted_1$u = { class: "lupa-text-badges" };
|
|
12583
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12584
12584
|
__name: "TextBadge",
|
|
12585
12585
|
props: {
|
|
12586
12586
|
badge: {}
|
|
@@ -12595,7 +12595,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12595
12595
|
return badges.value.slice(0, props.badge.maxItems);
|
|
12596
12596
|
});
|
|
12597
12597
|
return (_ctx, _cache) => {
|
|
12598
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12598
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
12599
12599
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12600
12600
|
return openBlock(), createElementBlock("div", {
|
|
12601
12601
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -12606,9 +12606,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12606
12606
|
};
|
|
12607
12607
|
}
|
|
12608
12608
|
});
|
|
12609
|
-
const _hoisted_1$
|
|
12610
|
-
const _hoisted_2$
|
|
12611
|
-
const _sfc_main$
|
|
12609
|
+
const _hoisted_1$t = { class: "lupa-image-badges" };
|
|
12610
|
+
const _hoisted_2$l = ["src"];
|
|
12611
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12612
12612
|
__name: "ImageBadge",
|
|
12613
12613
|
props: {
|
|
12614
12614
|
badge: {}
|
|
@@ -12628,7 +12628,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12628
12628
|
return `${props.badge.rootImageUrl}${src}`;
|
|
12629
12629
|
};
|
|
12630
12630
|
return (_ctx, _cache) => {
|
|
12631
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12631
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
12632
12632
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
12633
12633
|
return openBlock(), createElementBlock("div", {
|
|
12634
12634
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -12636,22 +12636,22 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12636
12636
|
}, [
|
|
12637
12637
|
createBaseVNode("img", {
|
|
12638
12638
|
src: getImageUrl(item)
|
|
12639
|
-
}, null, 8, _hoisted_2$
|
|
12639
|
+
}, null, 8, _hoisted_2$l)
|
|
12640
12640
|
]);
|
|
12641
12641
|
}), 128))
|
|
12642
12642
|
]);
|
|
12643
12643
|
};
|
|
12644
12644
|
}
|
|
12645
12645
|
});
|
|
12646
|
-
const _hoisted_1$
|
|
12646
|
+
const _hoisted_1$s = { id: "lupa-search-results-badges" };
|
|
12647
12647
|
const __default__$1 = {
|
|
12648
12648
|
components: {
|
|
12649
|
-
CustomBadge: _sfc_main$
|
|
12650
|
-
TextBadge: _sfc_main$
|
|
12651
|
-
ImageBadge: _sfc_main$
|
|
12649
|
+
CustomBadge: _sfc_main$y,
|
|
12650
|
+
TextBadge: _sfc_main$x,
|
|
12651
|
+
ImageBadge: _sfc_main$w
|
|
12652
12652
|
}
|
|
12653
12653
|
};
|
|
12654
|
-
const _sfc_main$
|
|
12654
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
12655
12655
|
__name: "SearchResultsBadgeWrapper",
|
|
12656
12656
|
props: {
|
|
12657
12657
|
position: {},
|
|
@@ -12697,7 +12697,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12697
12697
|
}
|
|
12698
12698
|
};
|
|
12699
12699
|
return (_ctx, _cache) => {
|
|
12700
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12700
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
12701
12701
|
createBaseVNode("div", {
|
|
12702
12702
|
id: "lupa-badges",
|
|
12703
12703
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -12708,7 +12708,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12708
12708
|
badge
|
|
12709
12709
|
}, null, 8, ["badge"]);
|
|
12710
12710
|
}), 128)),
|
|
12711
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
12711
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
|
|
12712
12712
|
key: 0,
|
|
12713
12713
|
options: _ctx.options
|
|
12714
12714
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -12717,7 +12717,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
12717
12717
|
};
|
|
12718
12718
|
}
|
|
12719
12719
|
}));
|
|
12720
|
-
const _sfc_main$
|
|
12720
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
12721
12721
|
__name: "SearchResultsProductImage",
|
|
12722
12722
|
props: {
|
|
12723
12723
|
item: {},
|
|
@@ -12725,7 +12725,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12725
12725
|
},
|
|
12726
12726
|
setup(__props) {
|
|
12727
12727
|
return (_ctx, _cache) => {
|
|
12728
|
-
return openBlock(), createBlock(_sfc_main$
|
|
12728
|
+
return openBlock(), createBlock(_sfc_main$1b, {
|
|
12729
12729
|
item: _ctx.item,
|
|
12730
12730
|
options: _ctx.options,
|
|
12731
12731
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -12734,14 +12734,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
12734
12734
|
};
|
|
12735
12735
|
}
|
|
12736
12736
|
});
|
|
12737
|
-
const _hoisted_1$
|
|
12738
|
-
const _hoisted_2$
|
|
12737
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
12738
|
+
const _hoisted_2$k = ["title"];
|
|
12739
12739
|
const _hoisted_3$e = {
|
|
12740
12740
|
key: 0,
|
|
12741
12741
|
class: "lupa-search-results-product-title-text"
|
|
12742
12742
|
};
|
|
12743
12743
|
const _hoisted_4$9 = ["href"];
|
|
12744
|
-
const _sfc_main$
|
|
12744
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12745
12745
|
__name: "SearchResultsProductTitle",
|
|
12746
12746
|
props: {
|
|
12747
12747
|
item: {},
|
|
@@ -12774,7 +12774,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12774
12774
|
class: "lupa-search-results-product-title",
|
|
12775
12775
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12776
12776
|
innerHTML: title.value
|
|
12777
|
-
}, null, 12, _hoisted_1$
|
|
12777
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
12778
12778
|
key: 1,
|
|
12779
12779
|
class: "lupa-search-results-product-title",
|
|
12780
12780
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -12787,12 +12787,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12787
12787
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
12788
12788
|
onClick: handleNavigation
|
|
12789
12789
|
}, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
|
|
12790
|
-
], 12, _hoisted_2$
|
|
12790
|
+
], 12, _hoisted_2$k));
|
|
12791
12791
|
};
|
|
12792
12792
|
}
|
|
12793
12793
|
});
|
|
12794
|
-
const _hoisted_1$
|
|
12795
|
-
const _sfc_main$
|
|
12794
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
12795
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12796
12796
|
__name: "SearchResultsProductDescription",
|
|
12797
12797
|
props: {
|
|
12798
12798
|
item: {},
|
|
@@ -12816,7 +12816,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12816
12816
|
class: "lupa-search-results-product-description",
|
|
12817
12817
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
12818
12818
|
innerHTML: description.value
|
|
12819
|
-
}, null, 12, _hoisted_1$
|
|
12819
|
+
}, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
|
|
12820
12820
|
key: 1,
|
|
12821
12821
|
class: "lupa-search-results-product-description",
|
|
12822
12822
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -12824,15 +12824,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12824
12824
|
};
|
|
12825
12825
|
}
|
|
12826
12826
|
});
|
|
12827
|
-
const _hoisted_1$
|
|
12828
|
-
const _hoisted_2$
|
|
12827
|
+
const _hoisted_1$p = { id: "lupa-search-results-rating" };
|
|
12828
|
+
const _hoisted_2$j = { class: "lupa-ratings" };
|
|
12829
12829
|
const _hoisted_3$d = { class: "lupa-ratings-base" };
|
|
12830
12830
|
const _hoisted_4$8 = ["innerHTML"];
|
|
12831
12831
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
12832
12832
|
const _hoisted_6$3 = ["innerHTML"];
|
|
12833
12833
|
const _hoisted_7$2 = ["href"];
|
|
12834
12834
|
const STAR_COUNT = 5;
|
|
12835
|
-
const _sfc_main$
|
|
12835
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12836
12836
|
__name: "SearchResultsProductRating",
|
|
12837
12837
|
props: {
|
|
12838
12838
|
item: {},
|
|
@@ -12863,8 +12863,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12863
12863
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
12864
12864
|
});
|
|
12865
12865
|
return (_ctx, _cache) => {
|
|
12866
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12867
|
-
createBaseVNode("div", _hoisted_2$
|
|
12866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12867
|
+
createBaseVNode("div", _hoisted_2$j, [
|
|
12868
12868
|
createBaseVNode("div", _hoisted_3$d, [
|
|
12869
12869
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
12870
12870
|
return openBlock(), createElementBlock("div", {
|
|
@@ -12897,11 +12897,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12897
12897
|
};
|
|
12898
12898
|
}
|
|
12899
12899
|
});
|
|
12900
|
-
const _hoisted_1$
|
|
12900
|
+
const _hoisted_1$o = {
|
|
12901
12901
|
class: "lupa-search-results-product-regular-price",
|
|
12902
12902
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
12903
12903
|
};
|
|
12904
|
-
const _sfc_main$
|
|
12904
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
12905
12905
|
__name: "SearchResultsProductRegularPrice",
|
|
12906
12906
|
props: {
|
|
12907
12907
|
item: {},
|
|
@@ -12919,15 +12919,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
12919
12919
|
);
|
|
12920
12920
|
});
|
|
12921
12921
|
return (_ctx, _cache) => {
|
|
12922
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12922
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
|
|
12923
12923
|
};
|
|
12924
12924
|
}
|
|
12925
12925
|
});
|
|
12926
|
-
const _hoisted_1$
|
|
12926
|
+
const _hoisted_1$n = {
|
|
12927
12927
|
class: "lupa-search-results-product-price",
|
|
12928
12928
|
"data-cy": "lupa-search-results-product-price"
|
|
12929
12929
|
};
|
|
12930
|
-
const _sfc_main$
|
|
12930
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
12931
12931
|
__name: "SearchResultsProductPrice",
|
|
12932
12932
|
props: {
|
|
12933
12933
|
item: {},
|
|
@@ -12945,16 +12945,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
12945
12945
|
);
|
|
12946
12946
|
});
|
|
12947
12947
|
return (_ctx, _cache) => {
|
|
12948
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12948
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
12949
12949
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
12950
12950
|
]);
|
|
12951
12951
|
};
|
|
12952
12952
|
}
|
|
12953
12953
|
});
|
|
12954
|
-
const _hoisted_1$
|
|
12955
|
-
const _hoisted_2$
|
|
12954
|
+
const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
12955
|
+
const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
|
|
12956
12956
|
const _hoisted_3$c = ["onClick", "disabled"];
|
|
12957
|
-
const _sfc_main$
|
|
12957
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
12958
12958
|
__name: "SearchResultsProductAddToCart",
|
|
12959
12959
|
props: {
|
|
12960
12960
|
item: {},
|
|
@@ -12981,8 +12981,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12981
12981
|
loading.value = false;
|
|
12982
12982
|
});
|
|
12983
12983
|
return (_ctx, _cache) => {
|
|
12984
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12985
|
-
createBaseVNode("div", _hoisted_2$
|
|
12984
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
12985
|
+
createBaseVNode("div", _hoisted_2$i, [
|
|
12986
12986
|
createBaseVNode("button", {
|
|
12987
12987
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
12988
12988
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
@@ -12994,12 +12994,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
12994
12994
|
};
|
|
12995
12995
|
}
|
|
12996
12996
|
});
|
|
12997
|
-
const _hoisted_1$
|
|
12998
|
-
const _hoisted_2$
|
|
12997
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
12998
|
+
const _hoisted_2$h = { key: 0 };
|
|
12999
12999
|
const _hoisted_3$b = { key: 1 };
|
|
13000
13000
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
13001
13001
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
13002
|
-
const _sfc_main$
|
|
13002
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13003
13003
|
__name: "SearchResultsProductCustom",
|
|
13004
13004
|
props: {
|
|
13005
13005
|
item: {},
|
|
@@ -13037,11 +13037,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13037
13037
|
key: 0,
|
|
13038
13038
|
class: className.value,
|
|
13039
13039
|
innerHTML: text.value
|
|
13040
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13040
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
13041
13041
|
key: 1,
|
|
13042
13042
|
class: className.value
|
|
13043
13043
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
13044
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13044
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
13045
13045
|
createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
|
|
13046
13046
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
13047
13047
|
]))
|
|
@@ -13049,8 +13049,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
13049
13049
|
};
|
|
13050
13050
|
}
|
|
13051
13051
|
});
|
|
13052
|
-
const _hoisted_1$
|
|
13053
|
-
const _sfc_main$
|
|
13052
|
+
const _hoisted_1$k = ["innerHTML"];
|
|
13053
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13054
13054
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
13055
13055
|
props: {
|
|
13056
13056
|
item: {},
|
|
@@ -13074,15 +13074,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13074
13074
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
13075
13075
|
class: className.value,
|
|
13076
13076
|
innerHTML: text.value
|
|
13077
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
13077
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
|
|
13078
13078
|
};
|
|
13079
13079
|
}
|
|
13080
13080
|
});
|
|
13081
|
-
const _hoisted_1$
|
|
13082
|
-
const _hoisted_2$
|
|
13081
|
+
const _hoisted_1$j = { id: "lupa-search-results-rating" };
|
|
13082
|
+
const _hoisted_2$g = ["innerHTML"];
|
|
13083
13083
|
const _hoisted_3$a = { class: "lupa-ratings" };
|
|
13084
13084
|
const _hoisted_4$6 = ["href"];
|
|
13085
|
-
const _sfc_main$
|
|
13085
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
13086
13086
|
__name: "SearchResultsProductSingleStarRating",
|
|
13087
13087
|
props: {
|
|
13088
13088
|
item: {},
|
|
@@ -13110,11 +13110,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13110
13110
|
return RATING_STAR_HTML;
|
|
13111
13111
|
});
|
|
13112
13112
|
return (_ctx, _cache) => {
|
|
13113
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13113
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
13114
13114
|
createBaseVNode("div", {
|
|
13115
13115
|
innerHTML: star.value,
|
|
13116
13116
|
class: "lupa-rating lupa-rating-highlighted"
|
|
13117
|
-
}, null, 8, _hoisted_2$
|
|
13117
|
+
}, null, 8, _hoisted_2$g),
|
|
13118
13118
|
createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
|
|
13119
13119
|
createBaseVNode("a", {
|
|
13120
13120
|
href: ratingLink.value,
|
|
@@ -13126,19 +13126,19 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13126
13126
|
});
|
|
13127
13127
|
const __default__ = {
|
|
13128
13128
|
components: {
|
|
13129
|
-
SearchResultsProductImage: _sfc_main$
|
|
13130
|
-
SearchResultsProductTitle: _sfc_main$
|
|
13131
|
-
SearchResultsProductDescription: _sfc_main$
|
|
13132
|
-
SearchResultsProductRating: _sfc_main$
|
|
13133
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
13134
|
-
SearchResultsProductPrice: _sfc_main$
|
|
13135
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
13136
|
-
SearchResultsProductCustom: _sfc_main$
|
|
13137
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
13138
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
13139
|
-
}
|
|
13140
|
-
};
|
|
13141
|
-
const _sfc_main$
|
|
13129
|
+
SearchResultsProductImage: _sfc_main$u,
|
|
13130
|
+
SearchResultsProductTitle: _sfc_main$t,
|
|
13131
|
+
SearchResultsProductDescription: _sfc_main$s,
|
|
13132
|
+
SearchResultsProductRating: _sfc_main$r,
|
|
13133
|
+
SearchResultsProductRegularPrice: _sfc_main$q,
|
|
13134
|
+
SearchResultsProductPrice: _sfc_main$p,
|
|
13135
|
+
SearchResultsProductAddToCart: _sfc_main$o,
|
|
13136
|
+
SearchResultsProductCustom: _sfc_main$n,
|
|
13137
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$m,
|
|
13138
|
+
SearchResultsProductSingleStarRating: _sfc_main$l
|
|
13139
|
+
}
|
|
13140
|
+
};
|
|
13141
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
13142
13142
|
__name: "SearchResultsProductCardElement",
|
|
13143
13143
|
props: {
|
|
13144
13144
|
item: {},
|
|
@@ -13208,13 +13208,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
13208
13208
|
};
|
|
13209
13209
|
}
|
|
13210
13210
|
}));
|
|
13211
|
-
const _hoisted_1$
|
|
13212
|
-
const _hoisted_2$
|
|
13211
|
+
const _hoisted_1$i = ["href"];
|
|
13212
|
+
const _hoisted_2$f = {
|
|
13213
13213
|
key: 0,
|
|
13214
13214
|
class: "lupa-out-of-stock"
|
|
13215
13215
|
};
|
|
13216
13216
|
const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
|
|
13217
|
-
const _sfc_main$
|
|
13217
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
13218
13218
|
__name: "SearchResultsProductCard",
|
|
13219
13219
|
props: {
|
|
13220
13220
|
product: {},
|
|
@@ -13359,7 +13359,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13359
13359
|
class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
13360
13360
|
onClick: handleClick
|
|
13361
13361
|
}, [
|
|
13362
|
-
createVNode(_sfc_main$
|
|
13362
|
+
createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
13363
13363
|
createBaseVNode("div", {
|
|
13364
13364
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
13365
13365
|
}, [
|
|
@@ -13369,7 +13369,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13369
13369
|
onClick: handleNavigation
|
|
13370
13370
|
}, [
|
|
13371
13371
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
13372
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13372
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13373
13373
|
class: "lupa-search-results-product-element",
|
|
13374
13374
|
item: _ctx.product,
|
|
13375
13375
|
element,
|
|
@@ -13379,16 +13379,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13379
13379
|
link: link.value
|
|
13380
13380
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
13381
13381
|
}), 128)),
|
|
13382
|
-
createVNode(_sfc_main$
|
|
13382
|
+
createVNode(_sfc_main$v, {
|
|
13383
13383
|
options: badgesOptions.value,
|
|
13384
13384
|
position: "image",
|
|
13385
13385
|
class: "lupa-image-badges"
|
|
13386
13386
|
}, null, 8, ["options"]),
|
|
13387
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13388
|
-
], 8, _hoisted_1$
|
|
13387
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
13388
|
+
], 8, _hoisted_1$i),
|
|
13389
13389
|
createBaseVNode("div", _hoisted_3$9, [
|
|
13390
13390
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
13391
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13391
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13392
13392
|
class: "lupa-search-results-product-element",
|
|
13393
13393
|
item: _ctx.product,
|
|
13394
13394
|
element,
|
|
@@ -13406,7 +13406,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13406
13406
|
class: normalizeClass("lupa-element-group-" + group)
|
|
13407
13407
|
}, [
|
|
13408
13408
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
13409
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13409
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
13410
13410
|
class: "lupa-search-results-product-element",
|
|
13411
13411
|
item: _ctx.product,
|
|
13412
13412
|
element,
|
|
@@ -13424,11 +13424,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13424
13424
|
};
|
|
13425
13425
|
}
|
|
13426
13426
|
});
|
|
13427
|
-
const _hoisted_1$
|
|
13427
|
+
const _hoisted_1$h = {
|
|
13428
13428
|
id: "lupa-search-results-similar-queries",
|
|
13429
13429
|
"data-cy": "lupa-search-results-similar-queries"
|
|
13430
13430
|
};
|
|
13431
|
-
const _hoisted_2$
|
|
13431
|
+
const _hoisted_2$e = { class: "lupa-similar-queries-label" };
|
|
13432
13432
|
const _hoisted_3$8 = {
|
|
13433
13433
|
class: "lupa-similar-query-label",
|
|
13434
13434
|
"data-cy": "lupa-similar-query-label"
|
|
@@ -13440,7 +13440,7 @@ const _hoisted_7$1 = {
|
|
|
13440
13440
|
class: "lupa-products",
|
|
13441
13441
|
"data-cy": "lupa-products"
|
|
13442
13442
|
};
|
|
13443
|
-
const _sfc_main$
|
|
13443
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13444
13444
|
__name: "SearchResultsSimilarQueries",
|
|
13445
13445
|
props: {
|
|
13446
13446
|
labels: {},
|
|
@@ -13470,8 +13470,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13470
13470
|
paramsStore.goToResults({ searchText, facet });
|
|
13471
13471
|
};
|
|
13472
13472
|
return (_ctx, _cache) => {
|
|
13473
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13474
|
-
createBaseVNode("div", _hoisted_2$
|
|
13473
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
13474
|
+
createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
13475
13475
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
13476
13476
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
13477
13477
|
createBaseVNode("div", _hoisted_3$8, [
|
|
@@ -13490,7 +13490,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13490
13490
|
]),
|
|
13491
13491
|
createBaseVNode("div", _hoisted_7$1, [
|
|
13492
13492
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
13493
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13493
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13494
13494
|
style: normalizeStyle(_ctx.columnSize),
|
|
13495
13495
|
key: getDocumentKey(index2, product),
|
|
13496
13496
|
product,
|
|
@@ -13504,15 +13504,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13504
13504
|
};
|
|
13505
13505
|
}
|
|
13506
13506
|
});
|
|
13507
|
-
const _hoisted_1$
|
|
13507
|
+
const _hoisted_1$g = {
|
|
13508
13508
|
key: 0,
|
|
13509
13509
|
class: "lupa-results-additional-panel"
|
|
13510
13510
|
};
|
|
13511
|
-
const _hoisted_2$
|
|
13511
|
+
const _hoisted_2$d = {
|
|
13512
13512
|
class: "lupa-results-additional-panel-items",
|
|
13513
13513
|
"data-cy": "lupa-results-additional-panel-items"
|
|
13514
13514
|
};
|
|
13515
|
-
const _sfc_main$
|
|
13515
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13516
13516
|
__name: "AdditionalPanel",
|
|
13517
13517
|
props: {
|
|
13518
13518
|
panel: {},
|
|
@@ -13584,10 +13584,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
13584
13584
|
handleQueryChange();
|
|
13585
13585
|
});
|
|
13586
13586
|
return (_ctx, _cache) => {
|
|
13587
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13588
|
-
createBaseVNode("div", _hoisted_2$
|
|
13587
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
13588
|
+
createBaseVNode("div", _hoisted_2$d, [
|
|
13589
13589
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
13590
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13590
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13591
13591
|
key: index,
|
|
13592
13592
|
product: item,
|
|
13593
13593
|
options: _ctx.panel,
|
|
@@ -13605,11 +13605,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
13605
13605
|
};
|
|
13606
13606
|
}
|
|
13607
13607
|
});
|
|
13608
|
-
const _hoisted_1$
|
|
13608
|
+
const _hoisted_1$f = {
|
|
13609
13609
|
key: 0,
|
|
13610
13610
|
class: "lupa-results-additional-panels"
|
|
13611
13611
|
};
|
|
13612
|
-
const _sfc_main$
|
|
13612
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
13613
13613
|
__name: "AdditionalPanels",
|
|
13614
13614
|
props: {
|
|
13615
13615
|
options: {},
|
|
@@ -13626,9 +13626,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
13626
13626
|
return locationPanels.value.length > 0;
|
|
13627
13627
|
});
|
|
13628
13628
|
return (_ctx, _cache) => {
|
|
13629
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13629
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13630
13630
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
13631
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13631
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
13632
13632
|
key: panel.queryKey,
|
|
13633
13633
|
panel,
|
|
13634
13634
|
options: _ctx.sdkOptions
|
|
@@ -13645,21 +13645,21 @@ const _export_sfc = (sfc, props) => {
|
|
|
13645
13645
|
}
|
|
13646
13646
|
return target;
|
|
13647
13647
|
};
|
|
13648
|
-
const _sfc_main$
|
|
13649
|
-
const _hoisted_1$
|
|
13650
|
-
const _hoisted_2$
|
|
13648
|
+
const _sfc_main$f = {};
|
|
13649
|
+
const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
|
|
13650
|
+
const _hoisted_2$c = { class: "lupa-spinner" };
|
|
13651
13651
|
function _sfc_render(_ctx, _cache) {
|
|
13652
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13653
|
-
createBaseVNode("div", _hoisted_2$
|
|
13652
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
13653
|
+
createBaseVNode("div", _hoisted_2$c, [
|
|
13654
13654
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
|
|
13655
13655
|
return createBaseVNode("div", { key: x });
|
|
13656
13656
|
}), 64))
|
|
13657
13657
|
])
|
|
13658
13658
|
]);
|
|
13659
13659
|
}
|
|
13660
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13661
|
-
const _hoisted_1$
|
|
13662
|
-
const _hoisted_2$
|
|
13660
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
13661
|
+
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
13662
|
+
const _hoisted_2$b = {
|
|
13663
13663
|
class: "lupa-products",
|
|
13664
13664
|
"data-cy": "lupa-products"
|
|
13665
13665
|
};
|
|
@@ -13674,7 +13674,7 @@ const _hoisted_4$4 = {
|
|
|
13674
13674
|
"data-cy": "lupa-no-results"
|
|
13675
13675
|
};
|
|
13676
13676
|
const _hoisted_5$3 = { key: 4 };
|
|
13677
|
-
const _sfc_main$
|
|
13677
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
13678
13678
|
__name: "SearchResultsProducts",
|
|
13679
13679
|
props: {
|
|
13680
13680
|
options: {},
|
|
@@ -13765,23 +13765,23 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13765
13765
|
};
|
|
13766
13766
|
return (_ctx, _cache) => {
|
|
13767
13767
|
var _a;
|
|
13768
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13768
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
13769
13769
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
13770
13770
|
key: 0,
|
|
13771
13771
|
class: "lupa-loader"
|
|
13772
13772
|
})) : createCommentVNode("", true),
|
|
13773
13773
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13774
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13774
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
13775
13775
|
key: 0,
|
|
13776
13776
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
13777
13777
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13778
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
13778
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
13779
13779
|
key: 1,
|
|
13780
13780
|
class: "lupa-toolbar-mobile",
|
|
13781
13781
|
options: _ctx.options,
|
|
13782
13782
|
"pagination-location": "top"
|
|
13783
13783
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
13784
|
-
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
13784
|
+
currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
|
|
13785
13785
|
key: 2,
|
|
13786
13786
|
class: normalizeClass(currentFiltersClass.value),
|
|
13787
13787
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -13789,18 +13789,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13789
13789
|
expandable: !desktopFiltersExpanded.value
|
|
13790
13790
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
13791
13791
|
], 64)) : createCommentVNode("", true),
|
|
13792
|
-
createVNode(_sfc_main$
|
|
13792
|
+
createVNode(_sfc_main$g, {
|
|
13793
13793
|
options: _ctx.options,
|
|
13794
13794
|
location: "top",
|
|
13795
13795
|
sdkOptions: _ctx.options.options
|
|
13796
13796
|
}, null, 8, ["options", "sdkOptions"]),
|
|
13797
13797
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13798
|
-
createVNode(_sfc_main$
|
|
13798
|
+
createVNode(_sfc_main$B, {
|
|
13799
13799
|
class: "lupa-toolbar-top",
|
|
13800
13800
|
options: _ctx.options,
|
|
13801
13801
|
"pagination-location": "top"
|
|
13802
13802
|
}, null, 8, ["options"]),
|
|
13803
|
-
createBaseVNode("div", _hoisted_2$
|
|
13803
|
+
createBaseVNode("div", _hoisted_2$b, [
|
|
13804
13804
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13805
13805
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
13806
13806
|
style: normalizeStyle(columnSize.value),
|
|
@@ -13809,7 +13809,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13809
13809
|
options: productCardOptions.value
|
|
13810
13810
|
});
|
|
13811
13811
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
13812
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13812
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
13813
13813
|
style: normalizeStyle(columnSize.value),
|
|
13814
13814
|
key: getProductKeyAction(index, product),
|
|
13815
13815
|
product,
|
|
@@ -13825,12 +13825,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13825
13825
|
onClick: goToFirstPage
|
|
13826
13826
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
13827
13827
|
])) : createCommentVNode("", true),
|
|
13828
|
-
createVNode(_sfc_main$
|
|
13828
|
+
createVNode(_sfc_main$B, {
|
|
13829
13829
|
class: "lupa-toolbar-bottom",
|
|
13830
13830
|
options: _ctx.options,
|
|
13831
13831
|
"pagination-location": "bottom"
|
|
13832
13832
|
}, null, 8, ["options"]),
|
|
13833
|
-
createVNode(_sfc_main$
|
|
13833
|
+
createVNode(_sfc_main$g, {
|
|
13834
13834
|
options: _ctx.options,
|
|
13835
13835
|
location: "bottom",
|
|
13836
13836
|
sdkOptions: _ctx.options.options
|
|
@@ -13840,7 +13840,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13840
13840
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
13841
13841
|
])) : createCommentVNode("", true),
|
|
13842
13842
|
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
13843
|
-
createVNode(_sfc_main$
|
|
13843
|
+
createVNode(_sfc_main$i, {
|
|
13844
13844
|
labels: similarQueriesLabels.value,
|
|
13845
13845
|
columnSize: columnSize.value,
|
|
13846
13846
|
productCardOptions: productCardOptions.value
|
|
@@ -13851,13 +13851,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13851
13851
|
};
|
|
13852
13852
|
}
|
|
13853
13853
|
});
|
|
13854
|
-
const _hoisted_1$
|
|
13855
|
-
const _hoisted_2$
|
|
13854
|
+
const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
|
|
13855
|
+
const _hoisted_2$a = {
|
|
13856
13856
|
key: 0,
|
|
13857
13857
|
class: "lupa-category-back"
|
|
13858
13858
|
};
|
|
13859
13859
|
const _hoisted_3$6 = ["href"];
|
|
13860
|
-
const _sfc_main$
|
|
13860
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13861
13861
|
__name: "CategoryTopFilters",
|
|
13862
13862
|
props: {
|
|
13863
13863
|
options: {}
|
|
@@ -13889,15 +13889,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13889
13889
|
return openBlock(), createElementBlock("div", {
|
|
13890
13890
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
13891
13891
|
}, [
|
|
13892
|
-
createBaseVNode("div", _hoisted_1$
|
|
13893
|
-
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13892
|
+
createBaseVNode("div", _hoisted_1$c, [
|
|
13893
|
+
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
13894
13894
|
createBaseVNode("a", {
|
|
13895
13895
|
"data-cy": "lupa-category-back",
|
|
13896
13896
|
href: backUrlLink.value,
|
|
13897
13897
|
onClick: handleNavigationBack
|
|
13898
13898
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
13899
13899
|
])) : createCommentVNode("", true),
|
|
13900
|
-
createVNode(_sfc_main$
|
|
13900
|
+
createVNode(_sfc_main$B, {
|
|
13901
13901
|
class: "lupa-toolbar-mobile",
|
|
13902
13902
|
"pagination-location": "top",
|
|
13903
13903
|
options: _ctx.options
|
|
@@ -13907,18 +13907,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13907
13907
|
};
|
|
13908
13908
|
}
|
|
13909
13909
|
});
|
|
13910
|
-
const _hoisted_1$
|
|
13910
|
+
const _hoisted_1$b = {
|
|
13911
13911
|
key: 0,
|
|
13912
13912
|
class: "lupa-container-title-summary-mobile"
|
|
13913
13913
|
};
|
|
13914
|
-
const _hoisted_2$
|
|
13914
|
+
const _hoisted_2$9 = {
|
|
13915
13915
|
key: 4,
|
|
13916
13916
|
id: "lupa-search-results",
|
|
13917
13917
|
class: "top-layout-wrapper"
|
|
13918
13918
|
};
|
|
13919
13919
|
const _hoisted_3$5 = { class: "search-content" };
|
|
13920
13920
|
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
13921
|
-
const _sfc_main$
|
|
13921
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13922
13922
|
__name: "SearchResults",
|
|
13923
13923
|
props: {
|
|
13924
13924
|
options: {},
|
|
@@ -14107,40 +14107,40 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14107
14107
|
return openBlock(), createElementBlock("div", {
|
|
14108
14108
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
14109
14109
|
}, [
|
|
14110
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14111
|
-
createVNode(_sfc_main$
|
|
14112
|
-
createVNode(_sfc_main$
|
|
14110
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
14111
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14112
|
+
createVNode(_sfc_main$W, {
|
|
14113
14113
|
"show-summary": true,
|
|
14114
14114
|
options: _ctx.options,
|
|
14115
14115
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
14116
14116
|
}, null, 8, ["options", "is-product-list"])
|
|
14117
14117
|
])) : createCommentVNode("", true),
|
|
14118
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
14118
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
14119
14119
|
key: 1,
|
|
14120
14120
|
options: _ctx.options
|
|
14121
14121
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14122
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
14122
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
|
|
14123
14123
|
key: 2,
|
|
14124
14124
|
options: _ctx.options.filters
|
|
14125
14125
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14126
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
14126
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
|
|
14127
14127
|
key: 3,
|
|
14128
14128
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
14129
14129
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
14130
|
-
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14131
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14130
|
+
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
14131
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14132
14132
|
key: 0,
|
|
14133
14133
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
14134
14134
|
ref_key: "searchResultsFilters",
|
|
14135
14135
|
ref: searchResultsFilters
|
|
14136
14136
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14137
14137
|
createBaseVNode("div", _hoisted_3$5, [
|
|
14138
|
-
createVNode(_sfc_main$
|
|
14139
|
-
createVNode(_sfc_main$
|
|
14138
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14139
|
+
createVNode(_sfc_main$W, {
|
|
14140
14140
|
options: _ctx.options,
|
|
14141
14141
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
14142
14142
|
}, null, 8, ["options", "is-product-list"]),
|
|
14143
|
-
createVNode(_sfc_main$
|
|
14143
|
+
createVNode(_sfc_main$e, {
|
|
14144
14144
|
options: _ctx.options,
|
|
14145
14145
|
ssr: ssrEnabled.value
|
|
14146
14146
|
}, {
|
|
@@ -14151,19 +14151,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14151
14151
|
}, 8, ["options", "ssr"])
|
|
14152
14152
|
])
|
|
14153
14153
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
14154
|
-
createVNode(_sfc_main$
|
|
14155
|
-
createVNode(_sfc_main$
|
|
14154
|
+
createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
14155
|
+
createVNode(_sfc_main$W, {
|
|
14156
14156
|
options: _ctx.options,
|
|
14157
14157
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
14158
14158
|
}, null, 8, ["options", "is-product-list"]),
|
|
14159
14159
|
createBaseVNode("div", _hoisted_4$3, [
|
|
14160
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
14160
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
14161
14161
|
key: 0,
|
|
14162
14162
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
14163
14163
|
ref_key: "searchResultsFilters",
|
|
14164
14164
|
ref: searchResultsFilters
|
|
14165
14165
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
14166
|
-
createVNode(_sfc_main$
|
|
14166
|
+
createVNode(_sfc_main$e, {
|
|
14167
14167
|
options: _ctx.options,
|
|
14168
14168
|
ssr: ssrEnabled.value
|
|
14169
14169
|
}, createSlots({
|
|
@@ -14186,12 +14186,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14186
14186
|
};
|
|
14187
14187
|
}
|
|
14188
14188
|
});
|
|
14189
|
-
const _hoisted_1$
|
|
14189
|
+
const _hoisted_1$a = {
|
|
14190
14190
|
key: 0,
|
|
14191
14191
|
class: "lupa-category-overview"
|
|
14192
14192
|
};
|
|
14193
|
-
const _hoisted_2$
|
|
14194
|
-
const _sfc_main$
|
|
14193
|
+
const _hoisted_2$8 = ["innerHTML"];
|
|
14194
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
14195
14195
|
__name: "CategoryDescription",
|
|
14196
14196
|
props: {
|
|
14197
14197
|
options: {}
|
|
@@ -14207,16 +14207,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
14207
14207
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14208
14208
|
});
|
|
14209
14209
|
return (_ctx, _cache) => {
|
|
14210
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14210
|
+
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14211
14211
|
createBaseVNode("div", {
|
|
14212
14212
|
class: "lupa-category-description",
|
|
14213
14213
|
innerHTML: description.value
|
|
14214
|
-
}, null, 8, _hoisted_2$
|
|
14214
|
+
}, null, 8, _hoisted_2$8)
|
|
14215
14215
|
])) : createCommentVNode("", true);
|
|
14216
14216
|
};
|
|
14217
14217
|
}
|
|
14218
14218
|
});
|
|
14219
|
-
const _sfc_main$
|
|
14219
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
14220
14220
|
__name: "ProductList",
|
|
14221
14221
|
props: {
|
|
14222
14222
|
options: {}
|
|
@@ -14238,7 +14238,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
14238
14238
|
__expose({ fetch: fetch2 });
|
|
14239
14239
|
return (_ctx, _cache) => {
|
|
14240
14240
|
return openBlock(), createElementBlock("div", null, [
|
|
14241
|
-
createVNode(_sfc_main$
|
|
14241
|
+
createVNode(_sfc_main$c, {
|
|
14242
14242
|
options: componentOptions.value,
|
|
14243
14243
|
"initial-filters": _ctx.options.initialFilters,
|
|
14244
14244
|
"is-product-list": true,
|
|
@@ -14246,7 +14246,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
14246
14246
|
ref: searchResults2
|
|
14247
14247
|
}, {
|
|
14248
14248
|
default: withCtx(() => [
|
|
14249
|
-
createVNode(_sfc_main$
|
|
14249
|
+
createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
|
|
14250
14250
|
]),
|
|
14251
14251
|
_: 1
|
|
14252
14252
|
}, 8, ["options", "initial-filters"])
|
|
@@ -19737,9 +19737,9 @@ lodash$1.exports;
|
|
|
19737
19737
|
}).call(commonjsGlobal$1);
|
|
19738
19738
|
})(lodash$1, lodash$1.exports);
|
|
19739
19739
|
var lodashExports$1 = lodash$1.exports;
|
|
19740
|
-
const _hoisted_1$
|
|
19741
|
-
const _hoisted_2$
|
|
19742
|
-
const _sfc_main$
|
|
19740
|
+
const _hoisted_1$9 = ["onClick"];
|
|
19741
|
+
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
19742
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
19743
19743
|
__name: "SearchContainer",
|
|
19744
19744
|
props: {
|
|
19745
19745
|
options: {}
|
|
@@ -19784,8 +19784,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19784
19784
|
class: "lupa-search-container",
|
|
19785
19785
|
onClick: withModifiers(innerClick, ["stop"])
|
|
19786
19786
|
}, [
|
|
19787
|
-
createBaseVNode("div", _hoisted_2$
|
|
19788
|
-
createVNode(_sfc_main$
|
|
19787
|
+
createBaseVNode("div", _hoisted_2$7, [
|
|
19788
|
+
createVNode(_sfc_main$Z, {
|
|
19789
19789
|
options: fullSearchBoxOptions.value,
|
|
19790
19790
|
"is-search-container": true,
|
|
19791
19791
|
ref_key: "searchBox",
|
|
@@ -19793,13 +19793,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19793
19793
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
19794
19794
|
}, null, 8, ["options"])
|
|
19795
19795
|
]),
|
|
19796
|
-
createVNode(_sfc_main$
|
|
19796
|
+
createVNode(_sfc_main$c, {
|
|
19797
19797
|
options: fullSearchResultsOptions.value,
|
|
19798
19798
|
"is-container": true,
|
|
19799
19799
|
ref_key: "searchResults",
|
|
19800
19800
|
ref: searchResults2
|
|
19801
19801
|
}, null, 8, ["options"])
|
|
19802
|
-
], 8, _hoisted_1$
|
|
19802
|
+
], 8, _hoisted_1$9)
|
|
19803
19803
|
]);
|
|
19804
19804
|
};
|
|
19805
19805
|
}
|
|
@@ -20502,13 +20502,13 @@ var Slide = defineComponent({
|
|
|
20502
20502
|
};
|
|
20503
20503
|
}
|
|
20504
20504
|
});
|
|
20505
|
-
const _hoisted_1$
|
|
20506
|
-
const _hoisted_2$
|
|
20505
|
+
const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
20506
|
+
const _hoisted_2$6 = {
|
|
20507
20507
|
key: 0,
|
|
20508
20508
|
class: "lupa-recommended-products",
|
|
20509
20509
|
"data-cy": "lupa-recommended-products"
|
|
20510
20510
|
};
|
|
20511
|
-
const _sfc_main$
|
|
20511
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
20512
20512
|
__name: "Recommendations",
|
|
20513
20513
|
props: {
|
|
20514
20514
|
options: {}
|
|
@@ -20594,8 +20594,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20594
20594
|
});
|
|
20595
20595
|
__expose({ fetch: fetch2 });
|
|
20596
20596
|
return (_ctx, _cache) => {
|
|
20597
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20598
|
-
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20597
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
20598
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
20599
20599
|
createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
|
|
20600
20600
|
addons: withCtx(() => [
|
|
20601
20601
|
createVNode(unref(Navigation))
|
|
@@ -20606,7 +20606,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20606
20606
|
key: getProductKeyAction(index, product)
|
|
20607
20607
|
}, {
|
|
20608
20608
|
default: withCtx(() => [
|
|
20609
|
-
createVNode(_sfc_main$
|
|
20609
|
+
createVNode(_sfc_main$j, {
|
|
20610
20610
|
product,
|
|
20611
20611
|
options: _ctx.options,
|
|
20612
20612
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -20623,19 +20623,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20623
20623
|
};
|
|
20624
20624
|
}
|
|
20625
20625
|
});
|
|
20626
|
-
const _hoisted_1$
|
|
20627
|
-
const _hoisted_2$
|
|
20626
|
+
const _hoisted_1$7 = { class: "lupa-chat-spinner" };
|
|
20627
|
+
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20628
20628
|
const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20629
20629
|
const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20630
20630
|
const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
20631
20631
|
const _hoisted_6$1 = [
|
|
20632
|
-
_hoisted_2$
|
|
20632
|
+
_hoisted_2$5,
|
|
20633
20633
|
_hoisted_3$4,
|
|
20634
20634
|
_hoisted_4$2,
|
|
20635
20635
|
_hoisted_5$2
|
|
20636
20636
|
];
|
|
20637
20637
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
20638
|
-
const _sfc_main$
|
|
20638
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
20639
20639
|
__name: "ChatSpinner",
|
|
20640
20640
|
props: {
|
|
20641
20641
|
small: { type: Boolean },
|
|
@@ -20643,7 +20643,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
20643
20643
|
},
|
|
20644
20644
|
setup(__props) {
|
|
20645
20645
|
return (_ctx, _cache) => {
|
|
20646
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20646
|
+
return openBlock(), createElementBlock("section", _hoisted_1$7, [
|
|
20647
20647
|
createBaseVNode("div", {
|
|
20648
20648
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
20649
20649
|
}, _hoisted_6$1, 2),
|
|
@@ -20652,13 +20652,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
20652
20652
|
};
|
|
20653
20653
|
}
|
|
20654
20654
|
});
|
|
20655
|
-
const _hoisted_1$
|
|
20656
|
-
const _hoisted_2$
|
|
20655
|
+
const _hoisted_1$6 = { class: "lupa-chat-input-container" };
|
|
20656
|
+
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
20657
20657
|
const _hoisted_3$3 = {
|
|
20658
20658
|
key: 0,
|
|
20659
20659
|
class: "lupa-chat-form-submit"
|
|
20660
20660
|
};
|
|
20661
|
-
const _sfc_main$
|
|
20661
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
20662
20662
|
__name: "ChatInput",
|
|
20663
20663
|
props: {
|
|
20664
20664
|
disabled: { type: Boolean }
|
|
@@ -20671,13 +20671,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20671
20671
|
inputValue.value = "";
|
|
20672
20672
|
};
|
|
20673
20673
|
return (_ctx, _cache) => {
|
|
20674
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20674
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
20675
20675
|
createBaseVNode("form", {
|
|
20676
20676
|
action: "javascript:void(0);",
|
|
20677
20677
|
class: "chat-input-form",
|
|
20678
20678
|
onSubmit: submit
|
|
20679
20679
|
}, [
|
|
20680
|
-
createBaseVNode("div", _hoisted_2$
|
|
20680
|
+
createBaseVNode("div", _hoisted_2$4, [
|
|
20681
20681
|
withDirectives(createBaseVNode("input", {
|
|
20682
20682
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
20683
20683
|
ref: "mainInput",
|
|
@@ -20690,7 +20690,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20690
20690
|
[vModelText, inputValue.value]
|
|
20691
20691
|
])
|
|
20692
20692
|
]),
|
|
20693
|
-
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$
|
|
20693
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
|
|
20694
20694
|
key: 1,
|
|
20695
20695
|
small: true
|
|
20696
20696
|
}))
|
|
@@ -20819,15 +20819,36 @@ const prepareChatHistory = (chatLog) => {
|
|
|
20819
20819
|
}
|
|
20820
20820
|
return history;
|
|
20821
20821
|
};
|
|
20822
|
+
const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
|
|
20823
|
+
var _a;
|
|
20824
|
+
fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
|
|
20825
|
+
body: JSON.stringify({ initialQuery, messageHistory }),
|
|
20826
|
+
headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
|
|
20827
|
+
})).then((response) => {
|
|
20828
|
+
const reader = response.body.getReader();
|
|
20829
|
+
return reader.read().then(function processStream({ done, value }) {
|
|
20830
|
+
if (done) {
|
|
20831
|
+
return "";
|
|
20832
|
+
}
|
|
20833
|
+
const result = new TextDecoder("utf-8").decode(value);
|
|
20834
|
+
const sanitezedResult = result.replace("\n", '<div class="br"></div>');
|
|
20835
|
+
onChunkReceived(sanitezedResult);
|
|
20836
|
+
return reader.read().then(processStream);
|
|
20837
|
+
});
|
|
20838
|
+
}).catch((error) => {
|
|
20839
|
+
console.error(`Fetch Error: ${error}`);
|
|
20840
|
+
});
|
|
20841
|
+
};
|
|
20822
20842
|
const ChatService = {
|
|
20823
20843
|
suggestSearchChatPhrases,
|
|
20824
20844
|
suggestPhraseAlternatives,
|
|
20825
20845
|
suggestSimplifiedPhrases,
|
|
20826
20846
|
suggestBestProductMatches,
|
|
20827
|
-
prepareChatHistory
|
|
20847
|
+
prepareChatHistory,
|
|
20848
|
+
getTextResponseChunkStream
|
|
20828
20849
|
};
|
|
20829
|
-
const _hoisted_1$
|
|
20830
|
-
const _sfc_main$
|
|
20850
|
+
const _hoisted_1$5 = { class: "lupa-chat-results" };
|
|
20851
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
20831
20852
|
__name: "ChatPhraseProductsList",
|
|
20832
20853
|
props: {
|
|
20833
20854
|
options: {},
|
|
@@ -20839,9 +20860,9 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
20839
20860
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
20840
20861
|
};
|
|
20841
20862
|
return (_ctx, _cache) => {
|
|
20842
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
20863
|
+
return openBlock(), createElementBlock("section", _hoisted_1$5, [
|
|
20843
20864
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
20844
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20865
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
20845
20866
|
class: "lupa-chat-product-card",
|
|
20846
20867
|
key: getProductKeyAction(index, product),
|
|
20847
20868
|
product,
|
|
@@ -20852,8 +20873,8 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
20852
20873
|
};
|
|
20853
20874
|
}
|
|
20854
20875
|
});
|
|
20855
|
-
const _hoisted_1$
|
|
20856
|
-
const _hoisted_2$
|
|
20876
|
+
const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
|
|
20877
|
+
const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
|
|
20857
20878
|
const _hoisted_3$2 = {
|
|
20858
20879
|
key: 0,
|
|
20859
20880
|
class: "alert"
|
|
@@ -20866,7 +20887,7 @@ const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no mat
|
|
|
20866
20887
|
const _hoisted_6 = [
|
|
20867
20888
|
_hoisted_5$1
|
|
20868
20889
|
];
|
|
20869
|
-
const _sfc_main$
|
|
20890
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
20870
20891
|
__name: "ChatContentEntryPhrase",
|
|
20871
20892
|
props: {
|
|
20872
20893
|
options: {},
|
|
@@ -20946,20 +20967,20 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
20946
20967
|
return phrases != null ? phrases : [];
|
|
20947
20968
|
});
|
|
20948
20969
|
return (_ctx, _cache) => {
|
|
20949
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20950
|
-
createBaseVNode("div", _hoisted_2$
|
|
20970
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
20971
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
20951
20972
|
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
|
|
20952
20973
|
createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
|
|
20953
20974
|
usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
|
|
20954
20975
|
]),
|
|
20955
20976
|
createBaseVNode("div", null, [
|
|
20956
|
-
createVNode(_sfc_main$
|
|
20977
|
+
createVNode(_sfc_main$5, {
|
|
20957
20978
|
"search-results": searchResults2.value,
|
|
20958
20979
|
options: _ctx.options.displayOptions
|
|
20959
20980
|
}, null, 8, ["search-results", "options"])
|
|
20960
20981
|
]),
|
|
20961
20982
|
!loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
|
|
20962
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
20983
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
20963
20984
|
key: 1,
|
|
20964
20985
|
message: currentAction.value
|
|
20965
20986
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
@@ -20967,10 +20988,10 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
20967
20988
|
};
|
|
20968
20989
|
}
|
|
20969
20990
|
});
|
|
20970
|
-
const _hoisted_1$
|
|
20971
|
-
const _hoisted_2$
|
|
20991
|
+
const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
20992
|
+
const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
|
|
20972
20993
|
const _hoisted_3$1 = { key: 0 };
|
|
20973
|
-
const _sfc_main$
|
|
20994
|
+
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
20974
20995
|
__name: "ChatContentEntry",
|
|
20975
20996
|
props: {
|
|
20976
20997
|
entry: {},
|
|
@@ -21035,7 +21056,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21035
21056
|
key: phrase,
|
|
21036
21057
|
class: "lupa-chat-content-entry"
|
|
21037
21058
|
}, [
|
|
21038
|
-
phrase ? (openBlock(), createBlock(_sfc_main$
|
|
21059
|
+
phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
21039
21060
|
key: 0,
|
|
21040
21061
|
phrase,
|
|
21041
21062
|
options: _ctx.options,
|
|
@@ -21044,14 +21065,14 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21044
21065
|
]);
|
|
21045
21066
|
}), 128))
|
|
21046
21067
|
]),
|
|
21047
|
-
createBaseVNode("section", _hoisted_1$
|
|
21048
|
-
_hoisted_2$
|
|
21068
|
+
createBaseVNode("section", _hoisted_1$3, [
|
|
21069
|
+
_hoisted_2$2,
|
|
21049
21070
|
explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
|
|
21050
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
21071
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
21051
21072
|
key: 1,
|
|
21052
21073
|
message: "Selecting the best matches for you. This might take a few seconds."
|
|
21053
21074
|
})) : createCommentVNode("", true),
|
|
21054
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
21075
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
|
|
21055
21076
|
key: 2,
|
|
21056
21077
|
"search-results": bestMatchProducts.value,
|
|
21057
21078
|
options: _ctx.options.displayOptions
|
|
@@ -21061,6 +21082,39 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
21061
21082
|
};
|
|
21062
21083
|
}
|
|
21063
21084
|
});
|
|
21085
|
+
const _hoisted_1$2 = { class: "lupa-chat-text-response" };
|
|
21086
|
+
const _hoisted_2$1 = ["innerHTML"];
|
|
21087
|
+
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
21088
|
+
__name: "ChatTextEntry",
|
|
21089
|
+
props: {
|
|
21090
|
+
content: {},
|
|
21091
|
+
options: {},
|
|
21092
|
+
history: {}
|
|
21093
|
+
},
|
|
21094
|
+
setup(__props) {
|
|
21095
|
+
const props = __props;
|
|
21096
|
+
const content = ref("");
|
|
21097
|
+
const processChunk = (chunk) => {
|
|
21098
|
+
content.value += chunk;
|
|
21099
|
+
};
|
|
21100
|
+
onMounted(() => {
|
|
21101
|
+
var _a;
|
|
21102
|
+
ChatService.getTextResponseChunkStream(
|
|
21103
|
+
props.options.sdkOptions,
|
|
21104
|
+
{
|
|
21105
|
+
initialQuery: props.content,
|
|
21106
|
+
messageHistory: (_a = props.history) != null ? _a : []
|
|
21107
|
+
},
|
|
21108
|
+
processChunk
|
|
21109
|
+
);
|
|
21110
|
+
});
|
|
21111
|
+
return (_ctx, _cache) => {
|
|
21112
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
21113
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
|
|
21114
|
+
]);
|
|
21115
|
+
};
|
|
21116
|
+
}
|
|
21117
|
+
});
|
|
21064
21118
|
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
21065
21119
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
21066
21120
|
__name: "ChatContentList",
|
|
@@ -21078,16 +21132,23 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
21078
21132
|
return openBlock(), createElementBlock("div", null, [
|
|
21079
21133
|
createBaseVNode("ul", null, [
|
|
21080
21134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
21135
|
+
var _a;
|
|
21081
21136
|
return openBlock(), createElementBlock("li", {
|
|
21082
21137
|
key: entry.key
|
|
21083
21138
|
}, [
|
|
21084
21139
|
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
21085
21140
|
createVNode(_sfc_main$2$1, {
|
|
21141
|
+
content: entry.userInput,
|
|
21142
|
+
history: _ctx.history,
|
|
21143
|
+
options: _ctx.options
|
|
21144
|
+
}, null, 8, ["content", "history", "options"]),
|
|
21145
|
+
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
21146
|
+
key: 0,
|
|
21086
21147
|
entry,
|
|
21087
21148
|
options: _ctx.options,
|
|
21088
21149
|
history: _ctx.history,
|
|
21089
21150
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
21090
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
21151
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
|
|
21091
21152
|
]);
|
|
21092
21153
|
}), 128))
|
|
21093
21154
|
])
|
|
@@ -21108,7 +21169,7 @@ const _hoisted_4 = {
|
|
|
21108
21169
|
class: "lupa-chat-spinner-main"
|
|
21109
21170
|
};
|
|
21110
21171
|
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
21111
|
-
const _sfc_main$
|
|
21172
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
21112
21173
|
__name: "ChatContainer",
|
|
21113
21174
|
props: {
|
|
21114
21175
|
options: {}
|
|
@@ -21126,6 +21187,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21126
21187
|
}
|
|
21127
21188
|
try {
|
|
21128
21189
|
loading.value = true;
|
|
21190
|
+
const key = Date.now().toString();
|
|
21191
|
+
let chatLog = {
|
|
21192
|
+
key,
|
|
21193
|
+
userInput: input,
|
|
21194
|
+
allPhrases: [],
|
|
21195
|
+
suggestedPhrases: []
|
|
21196
|
+
};
|
|
21197
|
+
chatContent.value.push(chatLog);
|
|
21129
21198
|
const request = {
|
|
21130
21199
|
userPrompt: input,
|
|
21131
21200
|
messageHistory: (_a = history.value) != null ? _a : [],
|
|
@@ -21140,13 +21209,12 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21140
21209
|
return;
|
|
21141
21210
|
}
|
|
21142
21211
|
const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
chatContent.value.push(chatLog);
|
|
21212
|
+
chatContent.value = chatContent.value.map(
|
|
21213
|
+
(c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
|
|
21214
|
+
allPhrases: [...validPhrases],
|
|
21215
|
+
suggestedPhrases: phrases
|
|
21216
|
+
}) : c2
|
|
21217
|
+
);
|
|
21150
21218
|
} finally {
|
|
21151
21219
|
loading.value = false;
|
|
21152
21220
|
}
|
|
@@ -21167,10 +21235,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
21167
21235
|
}, null, 8, ["content", "options", "history"])
|
|
21168
21236
|
])) : createCommentVNode("", true),
|
|
21169
21237
|
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
21170
|
-
createVNode(_sfc_main$
|
|
21238
|
+
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
21171
21239
|
])) : createCommentVNode("", true),
|
|
21172
21240
|
createBaseVNode("section", _hoisted_5, [
|
|
21173
|
-
createVNode(_sfc_main$
|
|
21241
|
+
createVNode(_sfc_main$6, {
|
|
21174
21242
|
onSubmit: submitChatInput,
|
|
21175
21243
|
disabled: loading.value
|
|
21176
21244
|
}, null, 8, ["disabled"])
|
|
@@ -26741,7 +26809,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26741
26809
|
};
|
|
26742
26810
|
__expose({ fetch: fetch2 });
|
|
26743
26811
|
return (_ctx, _cache) => {
|
|
26744
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26812
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
26745
26813
|
options: fullSearchBoxOptions.value,
|
|
26746
26814
|
ref_key: "searchBox",
|
|
26747
26815
|
ref: searchBox2
|
|
@@ -26868,7 +26936,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
26868
26936
|
};
|
|
26869
26937
|
__expose({ fetch: fetch2 });
|
|
26870
26938
|
return (_ctx, _cache) => {
|
|
26871
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26939
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
26872
26940
|
options: fullSearchResultsOptions.value,
|
|
26873
26941
|
ref_key: "searchResults",
|
|
26874
26942
|
ref: searchResults2
|
|
@@ -26893,7 +26961,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26893
26961
|
};
|
|
26894
26962
|
__expose({ fetch: fetch2 });
|
|
26895
26963
|
return (_ctx, _cache) => {
|
|
26896
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
26964
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
26897
26965
|
options: fullProductListOptions.value,
|
|
26898
26966
|
ref_key: "productList",
|
|
26899
26967
|
ref: productList2
|
|
@@ -26973,7 +27041,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26973
27041
|
__expose({ fetch: fetch2, reloadOptions });
|
|
26974
27042
|
return (_ctx, _cache) => {
|
|
26975
27043
|
return openBlock(), createElementBlock("div", null, [
|
|
26976
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
27044
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
26977
27045
|
key: 0,
|
|
26978
27046
|
options: containerOptions.value,
|
|
26979
27047
|
ref_key: "productList",
|
|
@@ -26997,7 +27065,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26997
27065
|
};
|
|
26998
27066
|
__expose({ fetch: fetch2 });
|
|
26999
27067
|
return (_ctx, _cache) => {
|
|
27000
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27068
|
+
return openBlock(), createBlock(unref(_sfc_main$8), {
|
|
27001
27069
|
options: _ctx.recommendationOptions,
|
|
27002
27070
|
ref_key: "productRecommendations",
|
|
27003
27071
|
ref: productRecommendations
|
|
@@ -27216,7 +27284,7 @@ const chat = (options, mountOptions) => {
|
|
|
27216
27284
|
}
|
|
27217
27285
|
return;
|
|
27218
27286
|
}
|
|
27219
|
-
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$
|
|
27287
|
+
const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1j, {
|
|
27220
27288
|
options
|
|
27221
27289
|
});
|
|
27222
27290
|
if (!instance) {
|