@getlupa/client 1.14.5 → 1.14.6
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 +707 -587
- package/dist/lupaSearch.js +707 -587
- package/dist/lupaSearch.mjs +707 -587
- package/dist/lupaSearch.umd.js +707 -587
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -6314,6 +6314,44 @@ const withModifiers = (fn, modifiers) => {
|
|
|
6314
6314
|
return fn(event, ...args);
|
|
6315
6315
|
};
|
|
6316
6316
|
};
|
|
6317
|
+
const vShow = {
|
|
6318
|
+
beforeMount(el, { value }, { transition }) {
|
|
6319
|
+
el._vod = el.style.display === "none" ? "" : el.style.display;
|
|
6320
|
+
if (transition && value) {
|
|
6321
|
+
transition.beforeEnter(el);
|
|
6322
|
+
} else {
|
|
6323
|
+
setDisplay(el, value);
|
|
6324
|
+
}
|
|
6325
|
+
},
|
|
6326
|
+
mounted(el, { value }, { transition }) {
|
|
6327
|
+
if (transition && value) {
|
|
6328
|
+
transition.enter(el);
|
|
6329
|
+
}
|
|
6330
|
+
},
|
|
6331
|
+
updated(el, { value, oldValue }, { transition }) {
|
|
6332
|
+
if (!value === !oldValue)
|
|
6333
|
+
return;
|
|
6334
|
+
if (transition) {
|
|
6335
|
+
if (value) {
|
|
6336
|
+
transition.beforeEnter(el);
|
|
6337
|
+
setDisplay(el, true);
|
|
6338
|
+
transition.enter(el);
|
|
6339
|
+
} else {
|
|
6340
|
+
transition.leave(el, () => {
|
|
6341
|
+
setDisplay(el, false);
|
|
6342
|
+
});
|
|
6343
|
+
}
|
|
6344
|
+
} else {
|
|
6345
|
+
setDisplay(el, value);
|
|
6346
|
+
}
|
|
6347
|
+
},
|
|
6348
|
+
beforeUnmount(el, { value }) {
|
|
6349
|
+
setDisplay(el, value);
|
|
6350
|
+
}
|
|
6351
|
+
};
|
|
6352
|
+
function setDisplay(el, value) {
|
|
6353
|
+
el.style.display = value ? el._vod : "none";
|
|
6354
|
+
}
|
|
6317
6355
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
6318
6356
|
let renderer;
|
|
6319
6357
|
function ensureRenderer() {
|
|
@@ -8556,20 +8594,20 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
8556
8594
|
resetHighlightIndex
|
|
8557
8595
|
};
|
|
8558
8596
|
});
|
|
8559
|
-
const _hoisted_1$
|
|
8597
|
+
const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
|
|
8560
8598
|
const _hoisted_2$S = { class: "lupa-input-clear" };
|
|
8561
8599
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8562
|
-
const _hoisted_4$
|
|
8563
|
-
const _hoisted_5$
|
|
8564
|
-
const _hoisted_6$
|
|
8600
|
+
const _hoisted_4$s = ["value"];
|
|
8601
|
+
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8602
|
+
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8565
8603
|
const _hoisted_7$7 = [
|
|
8566
|
-
_hoisted_6$
|
|
8604
|
+
_hoisted_6$9
|
|
8567
8605
|
];
|
|
8568
8606
|
const _hoisted_8$3 = {
|
|
8569
8607
|
key: 0,
|
|
8570
8608
|
class: "lupa-close-label"
|
|
8571
8609
|
};
|
|
8572
|
-
const _sfc_main$
|
|
8610
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8573
8611
|
__name: "SearchBoxInput",
|
|
8574
8612
|
props: {
|
|
8575
8613
|
options: {},
|
|
@@ -8653,7 +8691,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8653
8691
|
};
|
|
8654
8692
|
__expose({ focus });
|
|
8655
8693
|
return (_ctx, _cache) => {
|
|
8656
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8694
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
8657
8695
|
createBaseVNode("div", _hoisted_2$S, [
|
|
8658
8696
|
createBaseVNode("div", {
|
|
8659
8697
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
@@ -8666,7 +8704,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8666
8704
|
"aria-hidden": "true",
|
|
8667
8705
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8668
8706
|
disabled: ""
|
|
8669
|
-
}, null, 8, _hoisted_4$
|
|
8707
|
+
}, null, 8, _hoisted_4$s),
|
|
8670
8708
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8671
8709
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8672
8710
|
}, inputAttributes.value, {
|
|
@@ -8680,7 +8718,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8680
8718
|
placeholder: labels.value.placeholder,
|
|
8681
8719
|
onInput: handleInput,
|
|
8682
8720
|
onFocus: handleFocus
|
|
8683
|
-
}), null, 16, _hoisted_5$
|
|
8721
|
+
}), null, 16, _hoisted_5$i), [
|
|
8684
8722
|
[vModelText, inputValue.value]
|
|
8685
8723
|
]),
|
|
8686
8724
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8699,7 +8737,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8699
8737
|
};
|
|
8700
8738
|
}
|
|
8701
8739
|
});
|
|
8702
|
-
const _sfc_main$
|
|
8740
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8703
8741
|
__name: "SearchBoxMoreResults",
|
|
8704
8742
|
props: {
|
|
8705
8743
|
labels: {},
|
|
@@ -8731,9 +8769,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
8731
8769
|
};
|
|
8732
8770
|
}
|
|
8733
8771
|
});
|
|
8734
|
-
const _hoisted_1$
|
|
8772
|
+
const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
|
|
8735
8773
|
const _hoisted_2$R = { class: "lupa-search-box-history-item-content" };
|
|
8736
|
-
const _sfc_main$
|
|
8774
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
8737
8775
|
__name: "SearchBoxHistoryItem",
|
|
8738
8776
|
props: {
|
|
8739
8777
|
item: {},
|
|
@@ -8749,7 +8787,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
8749
8787
|
emit2("click", { query: props.item });
|
|
8750
8788
|
};
|
|
8751
8789
|
return (_ctx, _cache) => {
|
|
8752
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8790
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
8753
8791
|
createBaseVNode("div", _hoisted_2$R, [
|
|
8754
8792
|
createBaseVNode("div", {
|
|
8755
8793
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
@@ -8764,11 +8802,11 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
8764
8802
|
};
|
|
8765
8803
|
}
|
|
8766
8804
|
});
|
|
8767
|
-
const _hoisted_1$
|
|
8805
|
+
const _hoisted_1$1c = {
|
|
8768
8806
|
key: 0,
|
|
8769
8807
|
class: "lupa-search-box-history-panel"
|
|
8770
8808
|
};
|
|
8771
|
-
const _sfc_main$
|
|
8809
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
8772
8810
|
__name: "SearchBoxHistoryPanel",
|
|
8773
8811
|
props: {
|
|
8774
8812
|
options: {}
|
|
@@ -8809,9 +8847,9 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
8809
8847
|
}
|
|
8810
8848
|
};
|
|
8811
8849
|
return (_ctx, _cache) => {
|
|
8812
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8850
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
8813
8851
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8814
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8852
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
8815
8853
|
key: item,
|
|
8816
8854
|
item,
|
|
8817
8855
|
highlighted: index === highlightIndex.value,
|
|
@@ -8827,15 +8865,15 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
8827
8865
|
};
|
|
8828
8866
|
}
|
|
8829
8867
|
});
|
|
8830
|
-
const _hoisted_1$
|
|
8831
|
-
const _sfc_main$
|
|
8868
|
+
const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
|
|
8869
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
8832
8870
|
__name: "SearchBoxNoResults",
|
|
8833
8871
|
props: {
|
|
8834
8872
|
labels: {}
|
|
8835
8873
|
},
|
|
8836
8874
|
setup(__props) {
|
|
8837
8875
|
return (_ctx, _cache) => {
|
|
8838
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8876
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
|
|
8839
8877
|
};
|
|
8840
8878
|
}
|
|
8841
8879
|
});
|
|
@@ -8867,7 +8905,7 @@ const generateGridTemplate = (elements) => {
|
|
|
8867
8905
|
}
|
|
8868
8906
|
return gridTemplate.join(" ");
|
|
8869
8907
|
};
|
|
8870
|
-
const _hoisted_1$
|
|
8908
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
8871
8909
|
const _hoisted_2$Q = {
|
|
8872
8910
|
key: 1,
|
|
8873
8911
|
"data-cy": "lupa-suggestion-value",
|
|
@@ -8878,15 +8916,15 @@ const _hoisted_3$A = {
|
|
|
8878
8916
|
class: "lupa-suggestion-facet",
|
|
8879
8917
|
"data-cy": "lupa-suggestion-facet"
|
|
8880
8918
|
};
|
|
8881
|
-
const _hoisted_4$
|
|
8919
|
+
const _hoisted_4$r = {
|
|
8882
8920
|
class: "lupa-suggestion-facet-label",
|
|
8883
8921
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8884
8922
|
};
|
|
8885
|
-
const _hoisted_5$
|
|
8923
|
+
const _hoisted_5$h = {
|
|
8886
8924
|
class: "lupa-suggestion-facet-value",
|
|
8887
8925
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8888
8926
|
};
|
|
8889
|
-
const _sfc_main$
|
|
8927
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
8890
8928
|
__name: "SearchBoxSuggestion",
|
|
8891
8929
|
props: {
|
|
8892
8930
|
suggestion: {},
|
|
@@ -8922,20 +8960,20 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8922
8960
|
class: "lupa-suggestion-value",
|
|
8923
8961
|
"data-cy": "lupa-suggestion-value",
|
|
8924
8962
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8925
|
-
}, null, 8, _hoisted_1$
|
|
8963
|
+
}, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8926
8964
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8927
|
-
createBaseVNode("span", _hoisted_4$
|
|
8928
|
-
createBaseVNode("span", _hoisted_5$
|
|
8965
|
+
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8966
|
+
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8929
8967
|
])) : createCommentVNode("", true)
|
|
8930
8968
|
]);
|
|
8931
8969
|
};
|
|
8932
8970
|
}
|
|
8933
8971
|
});
|
|
8934
|
-
const _hoisted_1$
|
|
8972
|
+
const _hoisted_1$19 = {
|
|
8935
8973
|
id: "lupa-search-box-suggestions",
|
|
8936
8974
|
"data-cy": "lupa-search-box-suggestions"
|
|
8937
8975
|
};
|
|
8938
|
-
const _sfc_main$
|
|
8976
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
8939
8977
|
__name: "SearchBoxSuggestions",
|
|
8940
8978
|
props: {
|
|
8941
8979
|
items: {},
|
|
@@ -8995,9 +9033,9 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
8995
9033
|
});
|
|
8996
9034
|
});
|
|
8997
9035
|
return (_ctx, _cache) => {
|
|
8998
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9036
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
8999
9037
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9000
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9038
|
+
return openBlock(), createBlock(_sfc_main$1k, {
|
|
9001
9039
|
key: getSuggestionKey(item),
|
|
9002
9040
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9003
9041
|
suggestion: item,
|
|
@@ -9025,7 +9063,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
9025
9063
|
}, timeout);
|
|
9026
9064
|
};
|
|
9027
9065
|
};
|
|
9028
|
-
const _sfc_main$
|
|
9066
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
9029
9067
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9030
9068
|
props: {
|
|
9031
9069
|
panel: {},
|
|
@@ -9067,7 +9105,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
9067
9105
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9068
9106
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9069
9107
|
return (_ctx, _cache) => {
|
|
9070
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9108
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
9071
9109
|
items: searchResult.value,
|
|
9072
9110
|
highlight: _ctx.panel.highlight,
|
|
9073
9111
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18141,9 +18179,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
18141
18179
|
targetImage.src = placeholder;
|
|
18142
18180
|
}
|
|
18143
18181
|
};
|
|
18144
|
-
const _hoisted_1$
|
|
18182
|
+
const _hoisted_1$18 = ["src"];
|
|
18145
18183
|
const _hoisted_2$P = ["src"];
|
|
18146
|
-
const _sfc_main$
|
|
18184
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18147
18185
|
__name: "ProductImage",
|
|
18148
18186
|
props: {
|
|
18149
18187
|
item: {},
|
|
@@ -18285,7 +18323,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18285
18323
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18286
18324
|
onError: replaceWithPlaceholder,
|
|
18287
18325
|
key: finalUrl.value
|
|
18288
|
-
}), null, 16, _hoisted_1$
|
|
18326
|
+
}), null, 16, _hoisted_1$18))
|
|
18289
18327
|
]),
|
|
18290
18328
|
_: 1
|
|
18291
18329
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18298,7 +18336,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18298
18336
|
};
|
|
18299
18337
|
}
|
|
18300
18338
|
});
|
|
18301
|
-
const _sfc_main$
|
|
18339
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18302
18340
|
__name: "SearchBoxProductImage",
|
|
18303
18341
|
props: {
|
|
18304
18342
|
item: {},
|
|
@@ -18306,7 +18344,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18306
18344
|
},
|
|
18307
18345
|
setup(__props) {
|
|
18308
18346
|
return (_ctx, _cache) => {
|
|
18309
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18347
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
18310
18348
|
item: _ctx.item,
|
|
18311
18349
|
options: _ctx.options,
|
|
18312
18350
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18315,12 +18353,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18315
18353
|
};
|
|
18316
18354
|
}
|
|
18317
18355
|
});
|
|
18318
|
-
const _hoisted_1$
|
|
18356
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
18319
18357
|
const _hoisted_2$O = {
|
|
18320
18358
|
key: 1,
|
|
18321
18359
|
class: "lupa-search-box-product-title"
|
|
18322
18360
|
};
|
|
18323
|
-
const _sfc_main$
|
|
18361
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18324
18362
|
__name: "SearchBoxProductTitle",
|
|
18325
18363
|
props: {
|
|
18326
18364
|
item: {},
|
|
@@ -18343,18 +18381,18 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18343
18381
|
key: 0,
|
|
18344
18382
|
class: "lupa-search-box-product-title",
|
|
18345
18383
|
innerHTML: sanitizedTitle.value
|
|
18346
|
-
}, null, 8, _hoisted_1$
|
|
18384
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
|
|
18347
18385
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18348
18386
|
]));
|
|
18349
18387
|
};
|
|
18350
18388
|
}
|
|
18351
18389
|
});
|
|
18352
|
-
const _hoisted_1$
|
|
18390
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18353
18391
|
const _hoisted_2$N = {
|
|
18354
18392
|
key: 1,
|
|
18355
18393
|
class: "lupa-search-box-product-description"
|
|
18356
18394
|
};
|
|
18357
|
-
const _sfc_main$
|
|
18395
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18358
18396
|
__name: "SearchBoxProductDescription",
|
|
18359
18397
|
props: {
|
|
18360
18398
|
item: {},
|
|
@@ -18377,12 +18415,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
18377
18415
|
key: 0,
|
|
18378
18416
|
class: "lupa-search-box-product-description",
|
|
18379
18417
|
innerHTML: sanitizedDescription.value
|
|
18380
|
-
}, null, 8, _hoisted_1$
|
|
18418
|
+
}, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(description.value), 1));
|
|
18381
18419
|
};
|
|
18382
18420
|
}
|
|
18383
18421
|
});
|
|
18384
|
-
const _hoisted_1$
|
|
18385
|
-
const _sfc_main$
|
|
18422
|
+
const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
|
|
18423
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18386
18424
|
__name: "SearchBoxProductPrice",
|
|
18387
18425
|
props: {
|
|
18388
18426
|
item: {},
|
|
@@ -18400,13 +18438,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
18400
18438
|
);
|
|
18401
18439
|
});
|
|
18402
18440
|
return (_ctx, _cache) => {
|
|
18403
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18441
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
18404
18442
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18405
18443
|
]);
|
|
18406
18444
|
};
|
|
18407
18445
|
}
|
|
18408
18446
|
});
|
|
18409
|
-
const _sfc_main$
|
|
18447
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
18410
18448
|
__name: "SearchBoxProductRegularPrice",
|
|
18411
18449
|
props: {
|
|
18412
18450
|
item: {},
|
|
@@ -18433,12 +18471,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
18433
18471
|
};
|
|
18434
18472
|
}
|
|
18435
18473
|
});
|
|
18436
|
-
const _hoisted_1$
|
|
18474
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
18437
18475
|
const _hoisted_2$M = { key: 0 };
|
|
18438
18476
|
const _hoisted_3$z = { key: 1 };
|
|
18439
|
-
const _hoisted_4$
|
|
18440
|
-
const _hoisted_5$
|
|
18441
|
-
const _sfc_main$
|
|
18477
|
+
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
18478
|
+
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
18479
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
18442
18480
|
__name: "SearchBoxProductCustom",
|
|
18443
18481
|
props: {
|
|
18444
18482
|
item: {},
|
|
@@ -18464,20 +18502,20 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
18464
18502
|
key: 0,
|
|
18465
18503
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18466
18504
|
innerHTML: text.value
|
|
18467
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18505
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$14)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18468
18506
|
key: 1,
|
|
18469
18507
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18470
18508
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18471
18509
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
18472
|
-
createBaseVNode("div", _hoisted_4$
|
|
18473
|
-
createBaseVNode("div", _hoisted_5$
|
|
18510
|
+
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
18511
|
+
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
18474
18512
|
]))
|
|
18475
18513
|
], 16));
|
|
18476
18514
|
};
|
|
18477
18515
|
}
|
|
18478
18516
|
});
|
|
18479
|
-
const _hoisted_1$
|
|
18480
|
-
const _sfc_main$
|
|
18517
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
18518
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
18481
18519
|
__name: "SearchBoxProductCustomHtml",
|
|
18482
18520
|
props: {
|
|
18483
18521
|
item: {},
|
|
@@ -18502,7 +18540,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
18502
18540
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18503
18541
|
class: className.value,
|
|
18504
18542
|
innerHTML: text.value
|
|
18505
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18543
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13);
|
|
18506
18544
|
};
|
|
18507
18545
|
}
|
|
18508
18546
|
});
|
|
@@ -18736,10 +18774,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18736
18774
|
setRelatedCategoryChildren
|
|
18737
18775
|
};
|
|
18738
18776
|
});
|
|
18739
|
-
const _hoisted_1$
|
|
18777
|
+
const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18740
18778
|
const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
|
|
18741
18779
|
const _hoisted_3$y = ["onClick", "disabled"];
|
|
18742
|
-
const _sfc_main$
|
|
18780
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
18743
18781
|
__name: "SearchBoxProductAddToCart",
|
|
18744
18782
|
props: {
|
|
18745
18783
|
item: {},
|
|
@@ -18772,7 +18810,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
18772
18810
|
loading.value = false;
|
|
18773
18811
|
});
|
|
18774
18812
|
return (_ctx, _cache) => {
|
|
18775
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18813
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
18776
18814
|
createBaseVNode("div", _hoisted_2$L, [
|
|
18777
18815
|
createBaseVNode("button", {
|
|
18778
18816
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -18786,23 +18824,23 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
18786
18824
|
};
|
|
18787
18825
|
}
|
|
18788
18826
|
});
|
|
18789
|
-
const _hoisted_1$
|
|
18827
|
+
const _hoisted_1$11 = {
|
|
18790
18828
|
key: 1,
|
|
18791
18829
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18792
18830
|
};
|
|
18793
18831
|
const __default__$4 = {
|
|
18794
18832
|
components: {
|
|
18795
|
-
SearchBoxProductImage: _sfc_main$
|
|
18796
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18797
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18798
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18799
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18800
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18801
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18802
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18833
|
+
SearchBoxProductImage: _sfc_main$1g,
|
|
18834
|
+
SearchBoxProductTitle: _sfc_main$1f,
|
|
18835
|
+
SearchBoxProductDescription: _sfc_main$1e,
|
|
18836
|
+
SearchBoxProductPrice: _sfc_main$1d,
|
|
18837
|
+
SearchBoxProductRegularPrice: _sfc_main$1c,
|
|
18838
|
+
SearchBoxProductCustom: _sfc_main$1b,
|
|
18839
|
+
SearchBoxProductCustomHtml: _sfc_main$1a,
|
|
18840
|
+
SearchBoxProductAddToCart: _sfc_main$19
|
|
18803
18841
|
}
|
|
18804
18842
|
};
|
|
18805
|
-
const _sfc_main$
|
|
18843
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18806
18844
|
__name: "SearchBoxProductElement",
|
|
18807
18845
|
props: {
|
|
18808
18846
|
item: {},
|
|
@@ -18865,7 +18903,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18865
18903
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
18866
18904
|
inStock: _ctx.isInStock
|
|
18867
18905
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
18868
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18906
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
18869
18907
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18870
18908
|
key: 0,
|
|
18871
18909
|
item: enhancedItem.value,
|
|
@@ -18879,14 +18917,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18879
18917
|
};
|
|
18880
18918
|
}
|
|
18881
18919
|
}));
|
|
18882
|
-
const _hoisted_1
|
|
18920
|
+
const _hoisted_1$10 = { class: "lupa-badge-title" };
|
|
18883
18921
|
const _hoisted_2$K = ["src"];
|
|
18884
18922
|
const _hoisted_3$x = { key: 1 };
|
|
18885
|
-
const _hoisted_4$
|
|
18923
|
+
const _hoisted_4$p = {
|
|
18886
18924
|
key: 0,
|
|
18887
18925
|
class: "lupa-badge-full-text"
|
|
18888
18926
|
};
|
|
18889
|
-
const _sfc_main$
|
|
18927
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
18890
18928
|
__name: "SearchResultGeneratedBadge",
|
|
18891
18929
|
props: {
|
|
18892
18930
|
options: {},
|
|
@@ -18919,20 +18957,20 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
18919
18957
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
18920
18958
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
18921
18959
|
}, [
|
|
18922
|
-
createBaseVNode("span", _hoisted_1
|
|
18960
|
+
createBaseVNode("span", _hoisted_1$10, [
|
|
18923
18961
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
18924
18962
|
key: 0,
|
|
18925
18963
|
src: image.value
|
|
18926
18964
|
}, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
|
|
18927
18965
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
18928
18966
|
]),
|
|
18929
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
18967
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
18930
18968
|
], 6);
|
|
18931
18969
|
};
|
|
18932
18970
|
}
|
|
18933
18971
|
});
|
|
18934
|
-
const _hoisted_1
|
|
18935
|
-
const _sfc_main$
|
|
18972
|
+
const _hoisted_1$$ = { class: "lupa-generated-badges" };
|
|
18973
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
18936
18974
|
__name: "SearchResultGeneratedBadges",
|
|
18937
18975
|
props: {
|
|
18938
18976
|
options: {}
|
|
@@ -18958,9 +18996,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
18958
18996
|
})).filter((b) => Boolean(b.id));
|
|
18959
18997
|
});
|
|
18960
18998
|
return (_ctx, _cache) => {
|
|
18961
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
18999
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
18962
19000
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
18963
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19001
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
18964
19002
|
key: badge.id,
|
|
18965
19003
|
badge,
|
|
18966
19004
|
options: _ctx.options
|
|
@@ -18970,8 +19008,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
18970
19008
|
};
|
|
18971
19009
|
}
|
|
18972
19010
|
});
|
|
18973
|
-
const _hoisted_1$
|
|
18974
|
-
const _sfc_main$
|
|
19011
|
+
const _hoisted_1$_ = ["innerHTML"];
|
|
19012
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
18975
19013
|
__name: "CustomBadge",
|
|
18976
19014
|
props: {
|
|
18977
19015
|
badge: {}
|
|
@@ -18992,12 +19030,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
18992
19030
|
return openBlock(), createElementBlock("div", {
|
|
18993
19031
|
class: normalizeClass(className.value),
|
|
18994
19032
|
innerHTML: text.value
|
|
18995
|
-
}, null, 10, _hoisted_1$
|
|
19033
|
+
}, null, 10, _hoisted_1$_);
|
|
18996
19034
|
};
|
|
18997
19035
|
}
|
|
18998
19036
|
});
|
|
18999
|
-
const _hoisted_1$
|
|
19000
|
-
const _sfc_main$
|
|
19037
|
+
const _hoisted_1$Z = { class: "lupa-text-badges" };
|
|
19038
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
19001
19039
|
__name: "TextBadge",
|
|
19002
19040
|
props: {
|
|
19003
19041
|
badge: {}
|
|
@@ -19012,7 +19050,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19012
19050
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19013
19051
|
});
|
|
19014
19052
|
return (_ctx, _cache) => {
|
|
19015
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19053
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
19016
19054
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19017
19055
|
return openBlock(), createElementBlock("div", {
|
|
19018
19056
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19023,9 +19061,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19023
19061
|
};
|
|
19024
19062
|
}
|
|
19025
19063
|
});
|
|
19026
|
-
const _hoisted_1$
|
|
19064
|
+
const _hoisted_1$Y = { class: "lupa-image-badges" };
|
|
19027
19065
|
const _hoisted_2$J = ["src"];
|
|
19028
|
-
const _sfc_main$
|
|
19066
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19029
19067
|
__name: "ImageBadge",
|
|
19030
19068
|
props: {
|
|
19031
19069
|
badge: {}
|
|
@@ -19045,7 +19083,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19045
19083
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19046
19084
|
};
|
|
19047
19085
|
return (_ctx, _cache) => {
|
|
19048
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19086
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
19049
19087
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19050
19088
|
return openBlock(), createElementBlock("div", {
|
|
19051
19089
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19060,15 +19098,15 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19060
19098
|
};
|
|
19061
19099
|
}
|
|
19062
19100
|
});
|
|
19063
|
-
const _hoisted_1$
|
|
19101
|
+
const _hoisted_1$X = { id: "lupa-search-results-badges" };
|
|
19064
19102
|
const __default__$3 = {
|
|
19065
19103
|
components: {
|
|
19066
|
-
CustomBadge: _sfc_main$
|
|
19067
|
-
TextBadge: _sfc_main$
|
|
19068
|
-
ImageBadge: _sfc_main$
|
|
19104
|
+
CustomBadge: _sfc_main$15,
|
|
19105
|
+
TextBadge: _sfc_main$14,
|
|
19106
|
+
ImageBadge: _sfc_main$13
|
|
19069
19107
|
}
|
|
19070
19108
|
};
|
|
19071
|
-
const _sfc_main$
|
|
19109
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19072
19110
|
__name: "SearchResultsBadgeWrapper",
|
|
19073
19111
|
props: {
|
|
19074
19112
|
position: {},
|
|
@@ -19129,7 +19167,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19129
19167
|
}
|
|
19130
19168
|
};
|
|
19131
19169
|
return (_ctx, _cache) => {
|
|
19132
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19170
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19133
19171
|
createBaseVNode("div", {
|
|
19134
19172
|
id: "lupa-badges",
|
|
19135
19173
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19140,7 +19178,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19140
19178
|
badge
|
|
19141
19179
|
}, null, 8, ["badge"]);
|
|
19142
19180
|
}), 128)),
|
|
19143
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19181
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$16, {
|
|
19144
19182
|
key: 0,
|
|
19145
19183
|
options: _ctx.options
|
|
19146
19184
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19149,13 +19187,13 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19149
19187
|
};
|
|
19150
19188
|
}
|
|
19151
19189
|
}));
|
|
19152
|
-
const _hoisted_1$
|
|
19190
|
+
const _hoisted_1$W = ["href"];
|
|
19153
19191
|
const _hoisted_2$I = { class: "lupa-search-box-product-details-section" };
|
|
19154
19192
|
const _hoisted_3$w = {
|
|
19155
19193
|
key: 0,
|
|
19156
19194
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19157
19195
|
};
|
|
19158
|
-
const _sfc_main
|
|
19196
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19159
19197
|
__name: "SearchBoxProduct",
|
|
19160
19198
|
props: {
|
|
19161
19199
|
item: {},
|
|
@@ -19241,7 +19279,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19241
19279
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19242
19280
|
}, [
|
|
19243
19281
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19244
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19282
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
19245
19283
|
class: "lupa-search-box-product-element",
|
|
19246
19284
|
item: _ctx.item,
|
|
19247
19285
|
element,
|
|
@@ -19254,7 +19292,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19254
19292
|
createBaseVNode("div", _hoisted_2$I, [
|
|
19255
19293
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19256
19294
|
var _a;
|
|
19257
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19295
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
19258
19296
|
key: element.key,
|
|
19259
19297
|
class: "lupa-search-box-product-element",
|
|
19260
19298
|
item: _ctx.item,
|
|
@@ -19265,7 +19303,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19265
19303
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19266
19304
|
name: "badges",
|
|
19267
19305
|
fn: withCtx(() => [
|
|
19268
|
-
createVNode(_sfc_main$
|
|
19306
|
+
createVNode(_sfc_main$12, {
|
|
19269
19307
|
options: badgeOptions.value,
|
|
19270
19308
|
position: "card"
|
|
19271
19309
|
}, null, 8, ["options"])
|
|
@@ -19276,7 +19314,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19276
19314
|
}), 128))
|
|
19277
19315
|
]),
|
|
19278
19316
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
19279
|
-
createVNode(_sfc_main$
|
|
19317
|
+
createVNode(_sfc_main$18, {
|
|
19280
19318
|
class: "lupa-search-box-product-element",
|
|
19281
19319
|
item: _ctx.item,
|
|
19282
19320
|
element: addToCartElement.value,
|
|
@@ -19285,7 +19323,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19285
19323
|
isInStock: isInStock.value
|
|
19286
19324
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19287
19325
|
])) : createCommentVNode("", true)
|
|
19288
|
-
], 16, _hoisted_1$
|
|
19326
|
+
], 16, _hoisted_1$W);
|
|
19289
19327
|
};
|
|
19290
19328
|
}
|
|
19291
19329
|
});
|
|
@@ -19346,8 +19384,8 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
19346
19384
|
};
|
|
19347
19385
|
return { trackSearch, trackResults, trackEvent };
|
|
19348
19386
|
});
|
|
19349
|
-
const _hoisted_1$
|
|
19350
|
-
const _sfc_main$
|
|
19387
|
+
const _hoisted_1$V = { id: "lupa-search-box-products" };
|
|
19388
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19351
19389
|
__name: "SearchBoxProducts",
|
|
19352
19390
|
props: {
|
|
19353
19391
|
items: {},
|
|
@@ -19408,7 +19446,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
19408
19446
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19409
19447
|
};
|
|
19410
19448
|
return (_ctx, _cache) => {
|
|
19411
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19449
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
19412
19450
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19413
19451
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19414
19452
|
key: index,
|
|
@@ -19420,7 +19458,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
19420
19458
|
itemClicked: handleProductClick
|
|
19421
19459
|
});
|
|
19422
19460
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19423
|
-
return openBlock(), createBlock(_sfc_main
|
|
19461
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
19424
19462
|
key: index,
|
|
19425
19463
|
item,
|
|
19426
19464
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19435,9 +19473,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
19435
19473
|
};
|
|
19436
19474
|
}
|
|
19437
19475
|
});
|
|
19438
|
-
const _hoisted_1$
|
|
19476
|
+
const _hoisted_1$U = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19439
19477
|
const _hoisted_2$H = { key: 0 };
|
|
19440
|
-
const _sfc_main
|
|
19478
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
19441
19479
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19442
19480
|
props: {
|
|
19443
19481
|
options: {},
|
|
@@ -19467,7 +19505,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
19467
19505
|
emit2("goToResults");
|
|
19468
19506
|
};
|
|
19469
19507
|
return (_ctx, _cache) => {
|
|
19470
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19508
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
19471
19509
|
createBaseVNode("button", {
|
|
19472
19510
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19473
19511
|
onClick: goToResults
|
|
@@ -19479,7 +19517,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
19479
19517
|
};
|
|
19480
19518
|
}
|
|
19481
19519
|
});
|
|
19482
|
-
const _sfc_main$
|
|
19520
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
19483
19521
|
__name: "SearchBoxProductsWrapper",
|
|
19484
19522
|
props: {
|
|
19485
19523
|
panel: {},
|
|
@@ -19536,7 +19574,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
19536
19574
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19537
19575
|
return (_ctx, _cache) => {
|
|
19538
19576
|
var _a, _b;
|
|
19539
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19577
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
19540
19578
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19541
19579
|
panelOptions: _ctx.panel,
|
|
19542
19580
|
labels: _ctx.labels,
|
|
@@ -19546,7 +19584,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
19546
19584
|
default: withCtx(() => {
|
|
19547
19585
|
var _a2;
|
|
19548
19586
|
return [
|
|
19549
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main
|
|
19587
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$$, {
|
|
19550
19588
|
key: 0,
|
|
19551
19589
|
options: _ctx.searchBoxOptions,
|
|
19552
19590
|
panel: _ctx.panel,
|
|
@@ -19567,7 +19605,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
19567
19605
|
};
|
|
19568
19606
|
}
|
|
19569
19607
|
});
|
|
19570
|
-
const _sfc_main$
|
|
19608
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
19571
19609
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19572
19610
|
props: {
|
|
19573
19611
|
panel: {},
|
|
@@ -19639,7 +19677,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
19639
19677
|
});
|
|
19640
19678
|
return (_ctx, _cache) => {
|
|
19641
19679
|
var _a, _b;
|
|
19642
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19680
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
19643
19681
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19644
19682
|
panelOptions: documentPanelOptions.value,
|
|
19645
19683
|
labels: _ctx.labels,
|
|
@@ -19657,7 +19695,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
19657
19695
|
};
|
|
19658
19696
|
}
|
|
19659
19697
|
});
|
|
19660
|
-
const _hoisted_1$
|
|
19698
|
+
const _hoisted_1$T = {
|
|
19661
19699
|
key: 0,
|
|
19662
19700
|
id: "lupa-search-box-panel"
|
|
19663
19701
|
};
|
|
@@ -19666,22 +19704,22 @@ const _hoisted_3$v = {
|
|
|
19666
19704
|
key: 0,
|
|
19667
19705
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19668
19706
|
};
|
|
19669
|
-
const _hoisted_4$
|
|
19707
|
+
const _hoisted_4$o = {
|
|
19670
19708
|
key: 1,
|
|
19671
19709
|
class: "lupa-panel-title"
|
|
19672
19710
|
};
|
|
19673
|
-
const _hoisted_5$
|
|
19711
|
+
const _hoisted_5$f = {
|
|
19674
19712
|
key: 1,
|
|
19675
19713
|
id: "lupa-search-box-panel"
|
|
19676
19714
|
};
|
|
19677
19715
|
const __default__$2 = {
|
|
19678
19716
|
components: {
|
|
19679
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19680
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19681
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
19717
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1i,
|
|
19718
|
+
SearchBoxProductsWrapper: _sfc_main$_,
|
|
19719
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$Z
|
|
19682
19720
|
}
|
|
19683
19721
|
};
|
|
19684
|
-
const _sfc_main$
|
|
19722
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19685
19723
|
__name: "SearchBoxMainPanel",
|
|
19686
19724
|
props: {
|
|
19687
19725
|
options: {},
|
|
@@ -19837,7 +19875,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
19837
19875
|
ref_key: "panelContainer",
|
|
19838
19876
|
ref: panelContainer
|
|
19839
19877
|
}, [
|
|
19840
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19878
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
19841
19879
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
19842
19880
|
key: 0,
|
|
19843
19881
|
class: "lupa-search-box-close-panel",
|
|
@@ -19860,7 +19898,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
19860
19898
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
19861
19899
|
}, [
|
|
19862
19900
|
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$v, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
19863
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19901
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
19864
19902
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
19865
19903
|
key: 2,
|
|
19866
19904
|
panel,
|
|
@@ -19885,18 +19923,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
19885
19923
|
], 14, _hoisted_2$G);
|
|
19886
19924
|
}), 128))
|
|
19887
19925
|
], 4),
|
|
19888
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
19926
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
19889
19927
|
key: 1,
|
|
19890
19928
|
labels: labels.value
|
|
19891
19929
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
19892
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
19930
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
19893
19931
|
key: 2,
|
|
19894
19932
|
labels: labels.value,
|
|
19895
19933
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
19896
19934
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
19897
19935
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
19898
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19899
|
-
createVNode(_sfc_main$
|
|
19936
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
19937
|
+
createVNode(_sfc_main$1m, {
|
|
19900
19938
|
options: _ctx.options.history,
|
|
19901
19939
|
history: history.value,
|
|
19902
19940
|
onGoToResults: handleGoToResults,
|
|
@@ -19921,9 +19959,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
19921
19959
|
const elements = getElements(triggers);
|
|
19922
19960
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
19923
19961
|
};
|
|
19924
|
-
const _hoisted_1$
|
|
19962
|
+
const _hoisted_1$S = { id: "lupa-search-box" };
|
|
19925
19963
|
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
19926
|
-
const _sfc_main$
|
|
19964
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
19927
19965
|
__name: "SearchBox",
|
|
19928
19966
|
props: {
|
|
19929
19967
|
options: {},
|
|
@@ -20183,9 +20221,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
20183
20221
|
};
|
|
20184
20222
|
return (_ctx, _cache) => {
|
|
20185
20223
|
var _a2;
|
|
20186
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20224
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
20187
20225
|
createBaseVNode("div", _hoisted_2$F, [
|
|
20188
|
-
createVNode(_sfc_main$
|
|
20226
|
+
createVNode(_sfc_main$1p, {
|
|
20189
20227
|
options: inputOptions.value,
|
|
20190
20228
|
suggestedValue: suggestedValue.value,
|
|
20191
20229
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20198,7 +20236,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
20198
20236
|
onSearch: handleSearch,
|
|
20199
20237
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20200
20238
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20201
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
20239
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
20202
20240
|
key: 0,
|
|
20203
20241
|
options: panelOptions.value,
|
|
20204
20242
|
inputValue: inputValue.value,
|
|
@@ -20287,7 +20325,7 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
20287
20325
|
}
|
|
20288
20326
|
return searchParams;
|
|
20289
20327
|
};
|
|
20290
|
-
const _hoisted_1$
|
|
20328
|
+
const _hoisted_1$R = {
|
|
20291
20329
|
key: 0,
|
|
20292
20330
|
id: "lupa-search-results-did-you-mean"
|
|
20293
20331
|
};
|
|
@@ -20299,8 +20337,8 @@ const _hoisted_3$u = {
|
|
|
20299
20337
|
key: 1,
|
|
20300
20338
|
"data-cy": "did-you-mean-label"
|
|
20301
20339
|
};
|
|
20302
|
-
const _hoisted_4$
|
|
20303
|
-
const _sfc_main$
|
|
20340
|
+
const _hoisted_4$n = { key: 1 };
|
|
20341
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20304
20342
|
__name: "SearchResultsDidYouMean",
|
|
20305
20343
|
props: {
|
|
20306
20344
|
labels: {}
|
|
@@ -20332,7 +20370,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20332
20370
|
paramStore.goToResults({ searchText, facet });
|
|
20333
20371
|
};
|
|
20334
20372
|
return (_ctx, _cache) => {
|
|
20335
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20373
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
20336
20374
|
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
20337
20375
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20338
20376
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
@@ -20350,7 +20388,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20350
20388
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20351
20389
|
"data-cy": "did-you-mean-value",
|
|
20352
20390
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20353
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20391
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
20354
20392
|
]);
|
|
20355
20393
|
}), 128))
|
|
20356
20394
|
])) : createCommentVNode("", true)
|
|
@@ -20358,12 +20396,12 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20358
20396
|
};
|
|
20359
20397
|
}
|
|
20360
20398
|
});
|
|
20361
|
-
const _hoisted_1$
|
|
20399
|
+
const _hoisted_1$Q = {
|
|
20362
20400
|
key: 0,
|
|
20363
20401
|
class: "lupa-search-results-summary"
|
|
20364
20402
|
};
|
|
20365
20403
|
const _hoisted_2$D = ["innerHTML"];
|
|
20366
|
-
const _sfc_main$
|
|
20404
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20367
20405
|
__name: "SearchResultsSummary",
|
|
20368
20406
|
props: {
|
|
20369
20407
|
label: {},
|
|
@@ -20378,7 +20416,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
20378
20416
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20379
20417
|
});
|
|
20380
20418
|
return (_ctx, _cache) => {
|
|
20381
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20419
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
20382
20420
|
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
20383
20421
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20384
20422
|
key: 0,
|
|
@@ -20390,7 +20428,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
20390
20428
|
};
|
|
20391
20429
|
}
|
|
20392
20430
|
});
|
|
20393
|
-
const _hoisted_1$
|
|
20431
|
+
const _hoisted_1$P = {
|
|
20394
20432
|
key: 0,
|
|
20395
20433
|
class: "lupa-result-page-title",
|
|
20396
20434
|
"data-cy": "lupa-result-page-title"
|
|
@@ -20400,9 +20438,9 @@ const _hoisted_3$t = {
|
|
|
20400
20438
|
key: 1,
|
|
20401
20439
|
class: "lupa-results-total-count"
|
|
20402
20440
|
};
|
|
20403
|
-
const _hoisted_4$
|
|
20404
|
-
const _hoisted_5$
|
|
20405
|
-
const _sfc_main$
|
|
20441
|
+
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
20442
|
+
const _hoisted_5$e = ["innerHTML"];
|
|
20443
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20406
20444
|
__name: "SearchResultsTitle",
|
|
20407
20445
|
props: {
|
|
20408
20446
|
options: {},
|
|
@@ -20441,16 +20479,16 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20441
20479
|
});
|
|
20442
20480
|
return (_ctx, _cache) => {
|
|
20443
20481
|
return openBlock(), createElementBlock("div", null, [
|
|
20444
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20482
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
20445
20483
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20446
20484
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20447
20485
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
|
|
20448
20486
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20449
|
-
createBaseVNode("span", _hoisted_4$
|
|
20487
|
+
createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
|
|
20450
20488
|
createTextVNode(")")
|
|
20451
20489
|
])) : createCommentVNode("", true)
|
|
20452
20490
|
])) : createCommentVNode("", true),
|
|
20453
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20491
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$V, {
|
|
20454
20492
|
key: 1,
|
|
20455
20493
|
label: summaryLabel.value
|
|
20456
20494
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20458,12 +20496,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20458
20496
|
key: 2,
|
|
20459
20497
|
class: "lupa-result-page-description-top",
|
|
20460
20498
|
innerHTML: descriptionTop.value
|
|
20461
|
-
}, null, 8, _hoisted_5$
|
|
20499
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
|
|
20462
20500
|
]);
|
|
20463
20501
|
};
|
|
20464
20502
|
}
|
|
20465
20503
|
});
|
|
20466
|
-
const _hoisted_1$
|
|
20504
|
+
const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
|
|
20467
20505
|
const _hoisted_2$B = {
|
|
20468
20506
|
class: "lupa-current-filter-label",
|
|
20469
20507
|
"data-cy": "lupa-current-filter-label"
|
|
@@ -20472,7 +20510,7 @@ const _hoisted_3$s = {
|
|
|
20472
20510
|
class: "lupa-current-filter-value",
|
|
20473
20511
|
"data-cy": "lupa-current-filter-value"
|
|
20474
20512
|
};
|
|
20475
|
-
const _sfc_main$
|
|
20513
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20476
20514
|
__name: "CurrentFilterDisplay",
|
|
20477
20515
|
props: {
|
|
20478
20516
|
filter: {}
|
|
@@ -20484,7 +20522,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
20484
20522
|
emit2("remove", { filter: props.filter });
|
|
20485
20523
|
};
|
|
20486
20524
|
return (_ctx, _cache) => {
|
|
20487
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20525
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
20488
20526
|
createBaseVNode("div", {
|
|
20489
20527
|
class: "lupa-current-filter-action",
|
|
20490
20528
|
onClick: handleClick
|
|
@@ -20495,7 +20533,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
20495
20533
|
};
|
|
20496
20534
|
}
|
|
20497
20535
|
});
|
|
20498
|
-
const _hoisted_1$
|
|
20536
|
+
const _hoisted_1$N = { class: "lupa-filter-title-text" };
|
|
20499
20537
|
const _hoisted_2$A = {
|
|
20500
20538
|
key: 0,
|
|
20501
20539
|
class: "lupa-filter-count"
|
|
@@ -20504,8 +20542,8 @@ const _hoisted_3$r = {
|
|
|
20504
20542
|
key: 0,
|
|
20505
20543
|
class: "filter-values"
|
|
20506
20544
|
};
|
|
20507
|
-
const _hoisted_4$
|
|
20508
|
-
const _sfc_main$
|
|
20545
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
20546
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20509
20547
|
__name: "CurrentFilters",
|
|
20510
20548
|
props: {
|
|
20511
20549
|
options: {},
|
|
@@ -20578,7 +20616,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
20578
20616
|
class: "lupa-current-filter-title",
|
|
20579
20617
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20580
20618
|
}, [
|
|
20581
|
-
createBaseVNode("div", _hoisted_1$
|
|
20619
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
20582
20620
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20583
20621
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20584
20622
|
]),
|
|
@@ -20588,9 +20626,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
20588
20626
|
}, null, 2)) : createCommentVNode("", true)
|
|
20589
20627
|
]),
|
|
20590
20628
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
20591
|
-
createBaseVNode("div", _hoisted_4$
|
|
20629
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
20592
20630
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20593
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20631
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
20594
20632
|
key: filter2.key + "_" + filter2.value,
|
|
20595
20633
|
filter: filter2,
|
|
20596
20634
|
onRemove: handleRemove
|
|
@@ -20607,8 +20645,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
20607
20645
|
};
|
|
20608
20646
|
}
|
|
20609
20647
|
});
|
|
20610
|
-
const _hoisted_1$
|
|
20611
|
-
const _sfc_main$
|
|
20648
|
+
const _hoisted_1$M = ["href"];
|
|
20649
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
20612
20650
|
__name: "CategoryFilterItem",
|
|
20613
20651
|
props: {
|
|
20614
20652
|
options: {},
|
|
@@ -20645,20 +20683,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
20645
20683
|
"data-cy": "lupa-child-category-item",
|
|
20646
20684
|
href: urlLink.value,
|
|
20647
20685
|
onClick: handleNavigation
|
|
20648
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20686
|
+
}, toDisplayString(title.value), 9, _hoisted_1$M)
|
|
20649
20687
|
], 2);
|
|
20650
20688
|
};
|
|
20651
20689
|
}
|
|
20652
20690
|
});
|
|
20653
|
-
const _hoisted_1$
|
|
20691
|
+
const _hoisted_1$L = {
|
|
20654
20692
|
class: "lupa-category-filter",
|
|
20655
20693
|
"data-cy": "lupa-category-filter"
|
|
20656
20694
|
};
|
|
20657
20695
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
20658
20696
|
const _hoisted_3$q = ["href"];
|
|
20659
|
-
const _hoisted_4$
|
|
20660
|
-
const _hoisted_5$
|
|
20661
|
-
const _sfc_main$
|
|
20697
|
+
const _hoisted_4$k = ["href"];
|
|
20698
|
+
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
20699
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
20662
20700
|
__name: "CategoryFilter",
|
|
20663
20701
|
props: {
|
|
20664
20702
|
options: {}
|
|
@@ -20746,7 +20784,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20746
20784
|
};
|
|
20747
20785
|
__expose({ fetch: fetch2 });
|
|
20748
20786
|
return (_ctx, _cache) => {
|
|
20749
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20787
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
20750
20788
|
createBaseVNode("div", _hoisted_2$z, [
|
|
20751
20789
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20752
20790
|
key: 0,
|
|
@@ -20763,11 +20801,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20763
20801
|
href: parentUrlLink.value,
|
|
20764
20802
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
20765
20803
|
onClick: handleNavigationParent
|
|
20766
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
20804
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
20767
20805
|
], 2),
|
|
20768
|
-
createBaseVNode("div", _hoisted_5$
|
|
20806
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
20769
20807
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20770
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20808
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
20771
20809
|
key: getCategoryKey(child),
|
|
20772
20810
|
item: child,
|
|
20773
20811
|
options: _ctx.options
|
|
@@ -20778,15 +20816,15 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20778
20816
|
};
|
|
20779
20817
|
}
|
|
20780
20818
|
});
|
|
20781
|
-
const _hoisted_1$
|
|
20819
|
+
const _hoisted_1$K = {
|
|
20782
20820
|
class: "lupa-search-result-facet-term-values",
|
|
20783
20821
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20784
20822
|
};
|
|
20785
20823
|
const _hoisted_2$y = ["placeholder"];
|
|
20786
20824
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
20787
|
-
const _hoisted_4$
|
|
20788
|
-
const _hoisted_5$
|
|
20789
|
-
const _hoisted_6$
|
|
20825
|
+
const _hoisted_4$j = ["onClick"];
|
|
20826
|
+
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
20827
|
+
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20790
20828
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
20791
20829
|
const _hoisted_8$2 = {
|
|
20792
20830
|
key: 0,
|
|
@@ -20794,7 +20832,7 @@ const _hoisted_8$2 = {
|
|
|
20794
20832
|
};
|
|
20795
20833
|
const _hoisted_9$2 = { key: 0 };
|
|
20796
20834
|
const _hoisted_10$1 = { key: 1 };
|
|
20797
|
-
const _sfc_main$
|
|
20835
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
20798
20836
|
__name: "TermFacet",
|
|
20799
20837
|
props: {
|
|
20800
20838
|
options: {},
|
|
@@ -20865,7 +20903,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
20865
20903
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
20866
20904
|
};
|
|
20867
20905
|
return (_ctx, _cache) => {
|
|
20868
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20906
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
20869
20907
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
20870
20908
|
key: 0,
|
|
20871
20909
|
class: "lupa-term-filter",
|
|
@@ -20883,16 +20921,16 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
20883
20921
|
key: item.title,
|
|
20884
20922
|
onClick: ($event) => handleFacetClick(item)
|
|
20885
20923
|
}, [
|
|
20886
|
-
createBaseVNode("div", _hoisted_5$
|
|
20924
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
20887
20925
|
createBaseVNode("span", {
|
|
20888
20926
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
20889
20927
|
}, null, 2)
|
|
20890
20928
|
]),
|
|
20891
|
-
createBaseVNode("div", _hoisted_6$
|
|
20929
|
+
createBaseVNode("div", _hoisted_6$8, [
|
|
20892
20930
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
20893
20931
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
20894
20932
|
])
|
|
20895
|
-
], 10, _hoisted_4$
|
|
20933
|
+
], 10, _hoisted_4$j);
|
|
20896
20934
|
}), 128))
|
|
20897
20935
|
]),
|
|
20898
20936
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -21883,7 +21921,7 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
21883
21921
|
m.render = function(e2, t, r, i, n, o) {
|
|
21884
21922
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
21885
21923
|
}, m.__file = "src/Slider.vue";
|
|
21886
|
-
const _hoisted_1$
|
|
21924
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
|
|
21887
21925
|
const _hoisted_2$x = {
|
|
21888
21926
|
key: 0,
|
|
21889
21927
|
class: "lupa-stats-facet-summary"
|
|
@@ -21892,12 +21930,12 @@ const _hoisted_3$o = {
|
|
|
21892
21930
|
key: 1,
|
|
21893
21931
|
class: "lupa-stats-facet-summary-input"
|
|
21894
21932
|
};
|
|
21895
|
-
const _hoisted_4$
|
|
21933
|
+
const _hoisted_4$i = {
|
|
21896
21934
|
key: 0,
|
|
21897
21935
|
class: "lupa-stats-range-label"
|
|
21898
21936
|
};
|
|
21899
|
-
const _hoisted_5$
|
|
21900
|
-
const _hoisted_6$
|
|
21937
|
+
const _hoisted_5$b = { class: "lupa-stats-from" };
|
|
21938
|
+
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
21901
21939
|
const _hoisted_7$5 = { key: 0 };
|
|
21902
21940
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
21903
21941
|
const _hoisted_9$1 = {
|
|
@@ -21911,7 +21949,7 @@ const _hoisted_13 = {
|
|
|
21911
21949
|
key: 2,
|
|
21912
21950
|
class: "lupa-stats-slider-wrapper"
|
|
21913
21951
|
};
|
|
21914
|
-
const _sfc_main$
|
|
21952
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
21915
21953
|
__name: "StatsFacet",
|
|
21916
21954
|
props: {
|
|
21917
21955
|
options: {},
|
|
@@ -22084,11 +22122,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22084
22122
|
innerSliderRange.value = value;
|
|
22085
22123
|
};
|
|
22086
22124
|
return (_ctx, _cache) => {
|
|
22087
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22125
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
22088
22126
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
22089
22127
|
createBaseVNode("div", null, [
|
|
22090
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22091
|
-
createBaseVNode("div", _hoisted_5$
|
|
22128
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22129
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
22092
22130
|
withDirectives(createBaseVNode("input", {
|
|
22093
22131
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
22094
22132
|
type: "text",
|
|
@@ -22097,7 +22135,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22097
22135
|
min: facetMin.value,
|
|
22098
22136
|
pattern: sliderInputFormat.value,
|
|
22099
22137
|
"aria-label": ariaLabelFrom.value
|
|
22100
|
-
}, null, 8, _hoisted_6$
|
|
22138
|
+
}, null, 8, _hoisted_6$7), [
|
|
22101
22139
|
[
|
|
22102
22140
|
vModelText,
|
|
22103
22141
|
fromValue.value,
|
|
@@ -22151,18 +22189,18 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22151
22189
|
};
|
|
22152
22190
|
}
|
|
22153
22191
|
});
|
|
22154
|
-
const _hoisted_1$
|
|
22192
|
+
const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
|
|
22155
22193
|
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
22156
22194
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
22157
|
-
const _hoisted_4$
|
|
22195
|
+
const _hoisted_4$h = {
|
|
22158
22196
|
key: 0,
|
|
22159
22197
|
class: "lupa-term-count"
|
|
22160
22198
|
};
|
|
22161
|
-
const _hoisted_5$
|
|
22199
|
+
const _hoisted_5$a = {
|
|
22162
22200
|
key: 0,
|
|
22163
22201
|
class: "lupa-facet-level"
|
|
22164
22202
|
};
|
|
22165
|
-
const _sfc_main$
|
|
22203
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22166
22204
|
__name: "HierarchyFacetLevel",
|
|
22167
22205
|
props: {
|
|
22168
22206
|
options: {},
|
|
@@ -22208,17 +22246,17 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22208
22246
|
"data-cy": "lupa-facet-term",
|
|
22209
22247
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22210
22248
|
}, [
|
|
22211
|
-
createBaseVNode("div", _hoisted_1$
|
|
22249
|
+
createBaseVNode("div", _hoisted_1$I, [
|
|
22212
22250
|
createBaseVNode("span", {
|
|
22213
22251
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22214
22252
|
}, null, 2)
|
|
22215
22253
|
]),
|
|
22216
22254
|
createBaseVNode("div", _hoisted_2$w, [
|
|
22217
22255
|
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22218
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22256
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22219
22257
|
])
|
|
22220
22258
|
]),
|
|
22221
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
22259
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
22222
22260
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
22223
22261
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
22224
22262
|
key: itemChild.title,
|
|
@@ -22234,13 +22272,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22234
22272
|
};
|
|
22235
22273
|
}
|
|
22236
22274
|
});
|
|
22237
|
-
const _hoisted_1$
|
|
22275
|
+
const _hoisted_1$H = {
|
|
22238
22276
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22239
22277
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22240
22278
|
};
|
|
22241
22279
|
const _hoisted_2$v = { key: 0 };
|
|
22242
22280
|
const _hoisted_3$m = ["placeholder"];
|
|
22243
|
-
const _sfc_main$
|
|
22281
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22244
22282
|
__name: "HierarchyFacet",
|
|
22245
22283
|
props: {
|
|
22246
22284
|
options: {},
|
|
@@ -22290,7 +22328,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22290
22328
|
showAll.value = true;
|
|
22291
22329
|
};
|
|
22292
22330
|
return (_ctx, _cache) => {
|
|
22293
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22331
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
22294
22332
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
22295
22333
|
withDirectives(createBaseVNode("input", {
|
|
22296
22334
|
class: "lupa-term-filter",
|
|
@@ -22302,7 +22340,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22302
22340
|
])
|
|
22303
22341
|
])) : createCommentVNode("", true),
|
|
22304
22342
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22305
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22343
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
22306
22344
|
key: item.title,
|
|
22307
22345
|
options: _ctx.options,
|
|
22308
22346
|
item,
|
|
@@ -22322,7 +22360,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22322
22360
|
};
|
|
22323
22361
|
}
|
|
22324
22362
|
});
|
|
22325
|
-
const _hoisted_1$
|
|
22363
|
+
const _hoisted_1$G = { class: "lupa-facet-label-text" };
|
|
22326
22364
|
const _hoisted_2$u = {
|
|
22327
22365
|
key: 0,
|
|
22328
22366
|
class: "lupa-facet-content",
|
|
@@ -22330,12 +22368,12 @@ const _hoisted_2$u = {
|
|
|
22330
22368
|
};
|
|
22331
22369
|
const __default__$1 = {
|
|
22332
22370
|
components: {
|
|
22333
|
-
TermFacet: _sfc_main$
|
|
22334
|
-
StatsFacet: _sfc_main$
|
|
22335
|
-
HierarchyFacet: _sfc_main$
|
|
22371
|
+
TermFacet: _sfc_main$P,
|
|
22372
|
+
StatsFacet: _sfc_main$O,
|
|
22373
|
+
HierarchyFacet: _sfc_main$M
|
|
22336
22374
|
}
|
|
22337
22375
|
};
|
|
22338
|
-
const _sfc_main$
|
|
22376
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22339
22377
|
__name: "FacetDisplay",
|
|
22340
22378
|
props: {
|
|
22341
22379
|
options: {},
|
|
@@ -22447,7 +22485,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22447
22485
|
"data-cy": "lupa-search-result-facet-label",
|
|
22448
22486
|
onClick: toggleFacet
|
|
22449
22487
|
}, [
|
|
22450
|
-
createBaseVNode("div", _hoisted_1$
|
|
22488
|
+
createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
|
|
22451
22489
|
createBaseVNode("div", {
|
|
22452
22490
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22453
22491
|
}, null, 2)
|
|
@@ -22470,12 +22508,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22470
22508
|
};
|
|
22471
22509
|
}
|
|
22472
22510
|
}));
|
|
22473
|
-
const _hoisted_1$
|
|
22511
|
+
const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
|
|
22474
22512
|
const _hoisted_2$t = {
|
|
22475
22513
|
key: 0,
|
|
22476
22514
|
class: "lupa-facets-title"
|
|
22477
22515
|
};
|
|
22478
|
-
const _sfc_main$
|
|
22516
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22479
22517
|
__name: "FacetList",
|
|
22480
22518
|
props: {
|
|
22481
22519
|
options: {},
|
|
@@ -22509,14 +22547,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22509
22547
|
};
|
|
22510
22548
|
return (_ctx, _cache) => {
|
|
22511
22549
|
var _a;
|
|
22512
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22550
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22513
22551
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22514
22552
|
createBaseVNode("div", {
|
|
22515
22553
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22516
22554
|
}, [
|
|
22517
22555
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22518
22556
|
var _a2;
|
|
22519
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22557
|
+
return openBlock(), createBlock(_sfc_main$L, {
|
|
22520
22558
|
key: facet.key,
|
|
22521
22559
|
facet,
|
|
22522
22560
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22531,8 +22569,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22531
22569
|
};
|
|
22532
22570
|
}
|
|
22533
22571
|
});
|
|
22534
|
-
const _hoisted_1$
|
|
22535
|
-
const _sfc_main$
|
|
22572
|
+
const _hoisted_1$E = ["onClick"];
|
|
22573
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22536
22574
|
__name: "FacetsButton",
|
|
22537
22575
|
props: {
|
|
22538
22576
|
options: {}
|
|
@@ -22552,13 +22590,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
22552
22590
|
key: 0,
|
|
22553
22591
|
class: "lupa-facets-button-filter",
|
|
22554
22592
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22555
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22593
|
+
}, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
|
|
22556
22594
|
};
|
|
22557
22595
|
}
|
|
22558
22596
|
});
|
|
22559
|
-
const _hoisted_1$
|
|
22597
|
+
const _hoisted_1$D = { class: "lupa-search-result-facets" };
|
|
22560
22598
|
const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
|
|
22561
|
-
const _sfc_main$
|
|
22599
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
22562
22600
|
__name: "Facets",
|
|
22563
22601
|
props: {
|
|
22564
22602
|
options: {},
|
|
@@ -22641,8 +22679,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
22641
22679
|
emit2("filter");
|
|
22642
22680
|
};
|
|
22643
22681
|
return (_ctx, _cache) => {
|
|
22644
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22645
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22682
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
22683
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22646
22684
|
key: 0,
|
|
22647
22685
|
options: _ctx.options,
|
|
22648
22686
|
facets: regularFacets.value,
|
|
@@ -22653,7 +22691,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
22653
22691
|
onClear: clear2
|
|
22654
22692
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22655
22693
|
createBaseVNode("div", _hoisted_2$s, [
|
|
22656
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22694
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
22657
22695
|
key: 0,
|
|
22658
22696
|
options: _ctx.options,
|
|
22659
22697
|
onFilter: filter2
|
|
@@ -22663,11 +22701,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
22663
22701
|
};
|
|
22664
22702
|
}
|
|
22665
22703
|
});
|
|
22666
|
-
const _hoisted_1$
|
|
22704
|
+
const _hoisted_1$C = {
|
|
22667
22705
|
id: "lupa-search-result-filters",
|
|
22668
22706
|
class: "lupa-search-result-filters"
|
|
22669
22707
|
};
|
|
22670
|
-
const _sfc_main$
|
|
22708
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22671
22709
|
__name: "SearchResultsFilters",
|
|
22672
22710
|
props: {
|
|
22673
22711
|
options: {},
|
|
@@ -22700,19 +22738,19 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
22700
22738
|
__expose({ fetch: fetch2 });
|
|
22701
22739
|
return (_ctx, _cache) => {
|
|
22702
22740
|
var _a;
|
|
22703
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22704
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22741
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
22742
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
22705
22743
|
key: 0,
|
|
22706
22744
|
options: _ctx.options.currentFilters,
|
|
22707
22745
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22708
22746
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22709
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22747
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
22710
22748
|
key: 1,
|
|
22711
22749
|
options: _ctx.options.categories,
|
|
22712
22750
|
ref_key: "categoryFilters",
|
|
22713
22751
|
ref: categoryFilters
|
|
22714
22752
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22715
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22753
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
|
|
22716
22754
|
key: 2,
|
|
22717
22755
|
options: _ctx.options.facets,
|
|
22718
22756
|
onFilter: filter2
|
|
@@ -22721,20 +22759,20 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
22721
22759
|
};
|
|
22722
22760
|
}
|
|
22723
22761
|
});
|
|
22724
|
-
const _hoisted_1$
|
|
22762
|
+
const _hoisted_1$B = {
|
|
22725
22763
|
key: 0,
|
|
22726
22764
|
class: "lupa-mobile-filter-sidebar"
|
|
22727
22765
|
};
|
|
22728
22766
|
const _hoisted_2$r = ["onClick"];
|
|
22729
22767
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
22730
|
-
const _hoisted_4$
|
|
22731
|
-
const _hoisted_5$
|
|
22732
|
-
const _hoisted_6$
|
|
22768
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
22769
|
+
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
22770
|
+
const _hoisted_6$6 = {
|
|
22733
22771
|
key: 0,
|
|
22734
22772
|
class: "lupa-sidebar-filter-count"
|
|
22735
22773
|
};
|
|
22736
22774
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22737
|
-
const _sfc_main$
|
|
22775
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
22738
22776
|
__name: "MobileFilterSidebar",
|
|
22739
22777
|
props: {
|
|
22740
22778
|
options: {}
|
|
@@ -22765,16 +22803,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22765
22803
|
handleMobileToggle();
|
|
22766
22804
|
};
|
|
22767
22805
|
return (_ctx, _cache) => {
|
|
22768
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22806
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
22769
22807
|
createBaseVNode("div", {
|
|
22770
22808
|
class: "lupa-sidebar-close",
|
|
22771
22809
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22772
22810
|
}, null, 8, _hoisted_2$r),
|
|
22773
22811
|
createBaseVNode("div", _hoisted_3$l, [
|
|
22774
|
-
createBaseVNode("div", _hoisted_4$
|
|
22775
|
-
createBaseVNode("div", _hoisted_5$
|
|
22812
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
22813
|
+
createBaseVNode("div", _hoisted_5$9, [
|
|
22776
22814
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22777
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
22815
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22778
22816
|
]),
|
|
22779
22817
|
createBaseVNode("div", {
|
|
22780
22818
|
class: "lupa-filter-toggle-mobile",
|
|
@@ -22782,7 +22820,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22782
22820
|
})
|
|
22783
22821
|
]),
|
|
22784
22822
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22785
|
-
createVNode(_sfc_main$
|
|
22823
|
+
createVNode(_sfc_main$H, {
|
|
22786
22824
|
options: _ctx.options,
|
|
22787
22825
|
expandable: isActiveFiltersExpanded.value,
|
|
22788
22826
|
onFilter: filter2
|
|
@@ -22793,14 +22831,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22793
22831
|
};
|
|
22794
22832
|
}
|
|
22795
22833
|
});
|
|
22796
|
-
const _hoisted_1$
|
|
22834
|
+
const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
|
|
22797
22835
|
const _hoisted_2$q = ["href", "onClick"];
|
|
22798
22836
|
const _hoisted_3$k = {
|
|
22799
22837
|
key: 1,
|
|
22800
22838
|
class: "lupa-search-results-breadcrumb-text"
|
|
22801
22839
|
};
|
|
22802
|
-
const _hoisted_4$
|
|
22803
|
-
const _sfc_main$
|
|
22840
|
+
const _hoisted_4$f = { key: 2 };
|
|
22841
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22804
22842
|
__name: "SearchResultsBreadcrumbs",
|
|
22805
22843
|
props: {
|
|
22806
22844
|
breadcrumbs: {}
|
|
@@ -22825,7 +22863,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
22825
22863
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
22826
22864
|
};
|
|
22827
22865
|
return (_ctx, _cache) => {
|
|
22828
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
22829
22867
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
22830
22868
|
return openBlock(), createElementBlock("span", {
|
|
22831
22869
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -22840,18 +22878,18 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
22840
22878
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
22841
22879
|
}
|
|
22842
22880
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
22843
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22881
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
|
|
22844
22882
|
]);
|
|
22845
22883
|
}), 128))
|
|
22846
22884
|
]);
|
|
22847
22885
|
};
|
|
22848
22886
|
}
|
|
22849
22887
|
});
|
|
22850
|
-
const _hoisted_1$
|
|
22888
|
+
const _hoisted_1$z = {
|
|
22851
22889
|
id: "lupa-search-result-filters",
|
|
22852
22890
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
22853
22891
|
};
|
|
22854
|
-
const _sfc_main$
|
|
22892
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22855
22893
|
__name: "FiltersTopDropdown",
|
|
22856
22894
|
props: {
|
|
22857
22895
|
options: {}
|
|
@@ -22863,8 +22901,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22863
22901
|
};
|
|
22864
22902
|
return (_ctx, _cache) => {
|
|
22865
22903
|
var _a;
|
|
22866
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22867
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22904
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
22905
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
|
|
22868
22906
|
key: 0,
|
|
22869
22907
|
options: _ctx.options.facets,
|
|
22870
22908
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -22875,8 +22913,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22875
22913
|
};
|
|
22876
22914
|
}
|
|
22877
22915
|
});
|
|
22878
|
-
const _hoisted_1$
|
|
22879
|
-
const _sfc_main$
|
|
22916
|
+
const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
|
|
22917
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22880
22918
|
__name: "SearchResultsLayoutSelection",
|
|
22881
22919
|
setup(__props) {
|
|
22882
22920
|
const searchResultStore = useSearchResultStore();
|
|
@@ -22887,7 +22925,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
22887
22925
|
searchResultStore.setLayout(layout2);
|
|
22888
22926
|
};
|
|
22889
22927
|
return (_ctx, _cache) => {
|
|
22890
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22928
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
22891
22929
|
createBaseVNode("div", {
|
|
22892
22930
|
class: normalizeClass([
|
|
22893
22931
|
"lupa-layout-selection-grid",
|
|
@@ -22909,11 +22947,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
22909
22947
|
};
|
|
22910
22948
|
}
|
|
22911
22949
|
});
|
|
22912
|
-
const _hoisted_1$
|
|
22950
|
+
const _hoisted_1$x = {
|
|
22913
22951
|
key: 0,
|
|
22914
22952
|
class: "lupa-mobile-toggle-filter-count"
|
|
22915
22953
|
};
|
|
22916
|
-
const _sfc_main$
|
|
22954
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
22917
22955
|
__name: "SearchResultsMobileToggle",
|
|
22918
22956
|
props: {
|
|
22919
22957
|
label: {},
|
|
@@ -22931,12 +22969,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
22931
22969
|
onClick: handleMobileToggle
|
|
22932
22970
|
}, [
|
|
22933
22971
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22934
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
22972
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22935
22973
|
], 2);
|
|
22936
22974
|
};
|
|
22937
22975
|
}
|
|
22938
22976
|
});
|
|
22939
|
-
const _hoisted_1$
|
|
22977
|
+
const _hoisted_1$w = {
|
|
22940
22978
|
key: 0,
|
|
22941
22979
|
id: "lupa-search-results-page-select",
|
|
22942
22980
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -22946,11 +22984,11 @@ const _hoisted_2$p = {
|
|
|
22946
22984
|
class: "lupa-page-number-separator"
|
|
22947
22985
|
};
|
|
22948
22986
|
const _hoisted_3$j = ["onClick"];
|
|
22949
|
-
const _hoisted_4$
|
|
22987
|
+
const _hoisted_4$e = {
|
|
22950
22988
|
key: 0,
|
|
22951
22989
|
class: "lupa-page-number-separator"
|
|
22952
22990
|
};
|
|
22953
|
-
const _sfc_main$
|
|
22991
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
22954
22992
|
__name: "SearchResultsPageSelect",
|
|
22955
22993
|
props: {
|
|
22956
22994
|
lastPageLabel: {},
|
|
@@ -23027,7 +23065,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23027
23065
|
}
|
|
23028
23066
|
};
|
|
23029
23067
|
return (_ctx, _cache) => {
|
|
23030
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23068
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
23031
23069
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23032
23070
|
key: 0,
|
|
23033
23071
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23052,7 +23090,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23052
23090
|
}, toDisplayString(page), 11, _hoisted_3$j);
|
|
23053
23091
|
}), 128)),
|
|
23054
23092
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23055
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23093
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
23056
23094
|
createBaseVNode("div", {
|
|
23057
23095
|
class: "lupa-page-number lupa-page-number-last",
|
|
23058
23096
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23071,15 +23109,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23071
23109
|
};
|
|
23072
23110
|
}
|
|
23073
23111
|
});
|
|
23074
|
-
const _hoisted_1$
|
|
23112
|
+
const _hoisted_1$v = {
|
|
23075
23113
|
id: "lupa-search-results-page-size",
|
|
23076
23114
|
"data-cy": "lupa-search-results-page-size"
|
|
23077
23115
|
};
|
|
23078
23116
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
23079
23117
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
23080
|
-
const _hoisted_4$
|
|
23081
|
-
const _hoisted_5$
|
|
23082
|
-
const _sfc_main$
|
|
23118
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23119
|
+
const _hoisted_5$8 = ["value"];
|
|
23120
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23083
23121
|
__name: "SearchResultsPageSize",
|
|
23084
23122
|
props: {
|
|
23085
23123
|
labels: {},
|
|
@@ -23107,7 +23145,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23107
23145
|
});
|
|
23108
23146
|
};
|
|
23109
23147
|
return (_ctx, _cache) => {
|
|
23110
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23148
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
23111
23149
|
createBaseVNode("div", _hoisted_2$o, [
|
|
23112
23150
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
|
|
23113
23151
|
createBaseVNode("select", {
|
|
@@ -23122,23 +23160,23 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23122
23160
|
return openBlock(), createElementBlock("option", {
|
|
23123
23161
|
key: option,
|
|
23124
23162
|
value: option
|
|
23125
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
23163
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$8);
|
|
23126
23164
|
}), 128))
|
|
23127
|
-
], 40, _hoisted_4$
|
|
23165
|
+
], 40, _hoisted_4$d)
|
|
23128
23166
|
])
|
|
23129
23167
|
]);
|
|
23130
23168
|
};
|
|
23131
23169
|
}
|
|
23132
23170
|
});
|
|
23133
|
-
const _hoisted_1$
|
|
23171
|
+
const _hoisted_1$u = {
|
|
23134
23172
|
id: "lupa-search-results-sort",
|
|
23135
23173
|
class: "lupa-search-results-sort"
|
|
23136
23174
|
};
|
|
23137
23175
|
const _hoisted_2$n = { id: "lupa-select" };
|
|
23138
23176
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
23139
|
-
const _hoisted_4$
|
|
23140
|
-
const _hoisted_5$
|
|
23141
|
-
const _sfc_main$
|
|
23177
|
+
const _hoisted_4$c = ["aria-label"];
|
|
23178
|
+
const _hoisted_5$7 = ["value"];
|
|
23179
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23142
23180
|
__name: "SearchResultsSort",
|
|
23143
23181
|
props: {
|
|
23144
23182
|
options: {},
|
|
@@ -23187,7 +23225,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23187
23225
|
previousKey.value = selectedKey.value;
|
|
23188
23226
|
};
|
|
23189
23227
|
return (_ctx, _cache) => {
|
|
23190
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23228
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
23191
23229
|
createBaseVNode("div", _hoisted_2$n, [
|
|
23192
23230
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
23193
23231
|
withDirectives(createBaseVNode("select", {
|
|
@@ -23202,9 +23240,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23202
23240
|
return openBlock(), createElementBlock("option", {
|
|
23203
23241
|
key: option.key,
|
|
23204
23242
|
value: option.key
|
|
23205
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
23243
|
+
}, toDisplayString(option.label), 9, _hoisted_5$7);
|
|
23206
23244
|
}), 128))
|
|
23207
|
-
], 40, _hoisted_4$
|
|
23245
|
+
], 40, _hoisted_4$c), [
|
|
23208
23246
|
[vModelSelect, selectedKey.value]
|
|
23209
23247
|
])
|
|
23210
23248
|
])
|
|
@@ -23212,22 +23250,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23212
23250
|
};
|
|
23213
23251
|
}
|
|
23214
23252
|
});
|
|
23215
|
-
const _hoisted_1$
|
|
23253
|
+
const _hoisted_1$t = { class: "lupa-toolbar-left" };
|
|
23216
23254
|
const _hoisted_2$m = {
|
|
23217
23255
|
key: 0,
|
|
23218
23256
|
class: "lupa-toolbar-right-title"
|
|
23219
23257
|
};
|
|
23220
23258
|
const _hoisted_3$g = { key: 2 };
|
|
23221
|
-
const _hoisted_4$
|
|
23222
|
-
const _hoisted_5$
|
|
23223
|
-
const _hoisted_6$
|
|
23259
|
+
const _hoisted_4$b = { key: 4 };
|
|
23260
|
+
const _hoisted_5$6 = { key: 6 };
|
|
23261
|
+
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23224
23262
|
const _hoisted_7$3 = {
|
|
23225
23263
|
key: 0,
|
|
23226
23264
|
class: "lupa-toolbar-right-title"
|
|
23227
23265
|
};
|
|
23228
23266
|
const _hoisted_8 = { key: 2 };
|
|
23229
23267
|
const _hoisted_9 = { key: 4 };
|
|
23230
|
-
const _sfc_main$
|
|
23268
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23231
23269
|
__name: "SearchResultsToolbar",
|
|
23232
23270
|
props: {
|
|
23233
23271
|
options: {},
|
|
@@ -23334,34 +23372,34 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23334
23372
|
id: "lupa-search-results-toolbar",
|
|
23335
23373
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23336
23374
|
}, [
|
|
23337
|
-
createBaseVNode("div", _hoisted_1$
|
|
23375
|
+
createBaseVNode("div", _hoisted_1$t, [
|
|
23338
23376
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23339
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23340
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23377
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$D, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
23378
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
23341
23379
|
key: 3,
|
|
23342
23380
|
label: searchSummaryLabel.value,
|
|
23343
23381
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23344
23382
|
onClear: handleClearAll
|
|
23345
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23346
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23383
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
23384
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
23347
23385
|
key: 5,
|
|
23348
23386
|
options: paginationOptions.value.pageSelect,
|
|
23349
23387
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
23350
23388
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
23351
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
23389
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$6))
|
|
23352
23390
|
]),
|
|
23353
|
-
createBaseVNode("div", _hoisted_6$
|
|
23391
|
+
createBaseVNode("div", _hoisted_6$5, [
|
|
23354
23392
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23355
|
-
createVNode(_sfc_main$
|
|
23393
|
+
createVNode(_sfc_main$C, {
|
|
23356
23394
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23357
23395
|
"show-filter-count": showMobileFilterCount.value
|
|
23358
23396
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23359
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23397
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$A, {
|
|
23360
23398
|
key: 1,
|
|
23361
23399
|
options: paginationOptions.value.pageSize,
|
|
23362
23400
|
labels: paginationOptions.value.labels
|
|
23363
23401
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23364
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23402
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$z, {
|
|
23365
23403
|
key: 3,
|
|
23366
23404
|
options: sortOptions.value,
|
|
23367
23405
|
callbacks: callbacks.value
|
|
@@ -23371,7 +23409,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23371
23409
|
};
|
|
23372
23410
|
}
|
|
23373
23411
|
});
|
|
23374
|
-
const _sfc_main$
|
|
23412
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23375
23413
|
__name: "SearchResultsProductImage",
|
|
23376
23414
|
props: {
|
|
23377
23415
|
item: {},
|
|
@@ -23379,7 +23417,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23379
23417
|
},
|
|
23380
23418
|
setup(__props) {
|
|
23381
23419
|
return (_ctx, _cache) => {
|
|
23382
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23420
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
23383
23421
|
item: _ctx.item,
|
|
23384
23422
|
options: _ctx.options,
|
|
23385
23423
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23388,16 +23426,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23388
23426
|
};
|
|
23389
23427
|
}
|
|
23390
23428
|
});
|
|
23391
|
-
const _hoisted_1$
|
|
23429
|
+
const _hoisted_1$s = ["title", "innerHTML"];
|
|
23392
23430
|
const _hoisted_2$l = ["title"];
|
|
23393
23431
|
const _hoisted_3$f = ["href", "innerHTML"];
|
|
23394
|
-
const _hoisted_4$
|
|
23395
|
-
const _hoisted_5$
|
|
23432
|
+
const _hoisted_4$a = ["title"];
|
|
23433
|
+
const _hoisted_5$5 = {
|
|
23396
23434
|
key: 0,
|
|
23397
23435
|
class: "lupa-search-results-product-title-text"
|
|
23398
23436
|
};
|
|
23399
|
-
const _hoisted_6$
|
|
23400
|
-
const _sfc_main$
|
|
23437
|
+
const _hoisted_6$4 = ["href"];
|
|
23438
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23401
23439
|
__name: "SearchResultsProductTitle",
|
|
23402
23440
|
props: {
|
|
23403
23441
|
item: {},
|
|
@@ -23434,7 +23472,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
23434
23472
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23435
23473
|
title: sanitizedTitle.value,
|
|
23436
23474
|
innerHTML: sanitizedTitle.value
|
|
23437
|
-
}, null, 12, _hoisted_1$
|
|
23475
|
+
}, null, 12, _hoisted_1$s)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23438
23476
|
key: 1,
|
|
23439
23477
|
class: "lupa-search-results-product-title",
|
|
23440
23478
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23452,19 +23490,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
23452
23490
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23453
23491
|
title: title.value
|
|
23454
23492
|
}, [
|
|
23455
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
23493
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
23456
23494
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
23457
23495
|
key: 1,
|
|
23458
23496
|
href: _ctx.link,
|
|
23459
23497
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23460
23498
|
onClick: handleNavigation
|
|
23461
|
-
}, toDisplayString(title.value), 9, _hoisted_6$
|
|
23462
|
-
], 12, _hoisted_4$
|
|
23499
|
+
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23500
|
+
], 12, _hoisted_4$a));
|
|
23463
23501
|
};
|
|
23464
23502
|
}
|
|
23465
23503
|
});
|
|
23466
|
-
const _hoisted_1$
|
|
23467
|
-
const _sfc_main$
|
|
23504
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
23505
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23468
23506
|
__name: "SearchResultsProductDescription",
|
|
23469
23507
|
props: {
|
|
23470
23508
|
item: {},
|
|
@@ -23491,7 +23529,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23491
23529
|
class: "lupa-search-results-product-description",
|
|
23492
23530
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23493
23531
|
innerHTML: sanitizedDescription.value
|
|
23494
|
-
}, null, 12, _hoisted_1$
|
|
23532
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
23495
23533
|
key: 1,
|
|
23496
23534
|
class: "lupa-search-results-product-description",
|
|
23497
23535
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23499,15 +23537,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23499
23537
|
};
|
|
23500
23538
|
}
|
|
23501
23539
|
});
|
|
23502
|
-
const _hoisted_1$
|
|
23540
|
+
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
23503
23541
|
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
23504
23542
|
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
23505
|
-
const _hoisted_4$
|
|
23506
|
-
const _hoisted_5$
|
|
23507
|
-
const _hoisted_6$
|
|
23543
|
+
const _hoisted_4$9 = ["innerHTML"];
|
|
23544
|
+
const _hoisted_5$4 = { class: "lupa-rating-wrapper" };
|
|
23545
|
+
const _hoisted_6$3 = ["innerHTML"];
|
|
23508
23546
|
const _hoisted_7$2 = ["href"];
|
|
23509
23547
|
const STAR_COUNT = 5;
|
|
23510
|
-
const _sfc_main$
|
|
23548
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23511
23549
|
__name: "SearchResultsProductRating",
|
|
23512
23550
|
props: {
|
|
23513
23551
|
item: {},
|
|
@@ -23538,7 +23576,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23538
23576
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23539
23577
|
});
|
|
23540
23578
|
return (_ctx, _cache) => {
|
|
23541
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23579
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
23542
23580
|
createBaseVNode("div", _hoisted_2$k, [
|
|
23543
23581
|
createBaseVNode("div", _hoisted_3$e, [
|
|
23544
23582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -23546,10 +23584,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23546
23584
|
key: index,
|
|
23547
23585
|
innerHTML: star,
|
|
23548
23586
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23549
|
-
}, null, 8, _hoisted_4$
|
|
23587
|
+
}, null, 8, _hoisted_4$9);
|
|
23550
23588
|
}), 128))
|
|
23551
23589
|
]),
|
|
23552
|
-
createBaseVNode("div", _hoisted_5$
|
|
23590
|
+
createBaseVNode("div", _hoisted_5$4, [
|
|
23553
23591
|
createBaseVNode("div", {
|
|
23554
23592
|
class: "lupa-ratings-highlighted",
|
|
23555
23593
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -23559,7 +23597,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23559
23597
|
key: index,
|
|
23560
23598
|
innerHTML: star,
|
|
23561
23599
|
class: "lupa-rating lupa-rating-highlighted"
|
|
23562
|
-
}, null, 8, _hoisted_6$
|
|
23600
|
+
}, null, 8, _hoisted_6$3);
|
|
23563
23601
|
}), 128))
|
|
23564
23602
|
], 4)
|
|
23565
23603
|
])
|
|
@@ -23572,11 +23610,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23572
23610
|
};
|
|
23573
23611
|
}
|
|
23574
23612
|
});
|
|
23575
|
-
const _hoisted_1$
|
|
23613
|
+
const _hoisted_1$p = {
|
|
23576
23614
|
class: "lupa-search-results-product-regular-price",
|
|
23577
23615
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23578
23616
|
};
|
|
23579
|
-
const _sfc_main$
|
|
23617
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23580
23618
|
__name: "SearchResultsProductRegularPrice",
|
|
23581
23619
|
props: {
|
|
23582
23620
|
item: {},
|
|
@@ -23594,11 +23632,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23594
23632
|
);
|
|
23595
23633
|
});
|
|
23596
23634
|
return (_ctx, _cache) => {
|
|
23597
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23635
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
|
|
23598
23636
|
};
|
|
23599
23637
|
}
|
|
23600
23638
|
});
|
|
23601
|
-
const _sfc_main$
|
|
23639
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23602
23640
|
__name: "SearchResultsProductPrice",
|
|
23603
23641
|
props: {
|
|
23604
23642
|
item: {},
|
|
@@ -23628,10 +23666,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
23628
23666
|
};
|
|
23629
23667
|
}
|
|
23630
23668
|
});
|
|
23631
|
-
const _hoisted_1$
|
|
23669
|
+
const _hoisted_1$o = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23632
23670
|
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
23633
23671
|
const _hoisted_3$d = ["onClick", "disabled"];
|
|
23634
|
-
const _sfc_main$
|
|
23672
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23635
23673
|
__name: "SearchResultsProductAddToCart",
|
|
23636
23674
|
props: {
|
|
23637
23675
|
item: {},
|
|
@@ -23664,7 +23702,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
23664
23702
|
loading.value = false;
|
|
23665
23703
|
});
|
|
23666
23704
|
return (_ctx, _cache) => {
|
|
23667
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23705
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
23668
23706
|
createBaseVNode("div", _hoisted_2$j, [
|
|
23669
23707
|
createBaseVNode("button", {
|
|
23670
23708
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
@@ -23677,12 +23715,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
23677
23715
|
};
|
|
23678
23716
|
}
|
|
23679
23717
|
});
|
|
23680
|
-
const _hoisted_1$
|
|
23718
|
+
const _hoisted_1$n = ["innerHTML"];
|
|
23681
23719
|
const _hoisted_2$i = { key: 0 };
|
|
23682
23720
|
const _hoisted_3$c = { key: 1 };
|
|
23683
|
-
const _hoisted_4$
|
|
23684
|
-
const _hoisted_5$
|
|
23685
|
-
const _sfc_main$
|
|
23721
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
23722
|
+
const _hoisted_5$3 = { class: "lupa-search-box-custom-text" };
|
|
23723
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23686
23724
|
__name: "SearchResultsProductCustom",
|
|
23687
23725
|
props: {
|
|
23688
23726
|
item: {},
|
|
@@ -23720,20 +23758,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
23720
23758
|
key: 0,
|
|
23721
23759
|
class: className.value,
|
|
23722
23760
|
innerHTML: text.value
|
|
23723
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23761
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$n)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23724
23762
|
key: 1,
|
|
23725
23763
|
class: className.value
|
|
23726
23764
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23727
23765
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
23728
|
-
createBaseVNode("div", _hoisted_4$
|
|
23729
|
-
createBaseVNode("div", _hoisted_5$
|
|
23766
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
23767
|
+
createBaseVNode("div", _hoisted_5$3, toDisplayString(text.value), 1)
|
|
23730
23768
|
]))
|
|
23731
23769
|
], 16));
|
|
23732
23770
|
};
|
|
23733
23771
|
}
|
|
23734
23772
|
});
|
|
23735
|
-
const _hoisted_1$
|
|
23736
|
-
const _sfc_main$
|
|
23773
|
+
const _hoisted_1$m = ["innerHTML"];
|
|
23774
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
23737
23775
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23738
23776
|
props: {
|
|
23739
23777
|
item: {},
|
|
@@ -23764,15 +23802,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
23764
23802
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23765
23803
|
class: className.value,
|
|
23766
23804
|
innerHTML: text.value
|
|
23767
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23805
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m);
|
|
23768
23806
|
};
|
|
23769
23807
|
}
|
|
23770
23808
|
});
|
|
23771
|
-
const _hoisted_1$
|
|
23809
|
+
const _hoisted_1$l = { id: "lupa-search-results-rating" };
|
|
23772
23810
|
const _hoisted_2$h = ["innerHTML"];
|
|
23773
23811
|
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
23774
|
-
const _hoisted_4$
|
|
23775
|
-
const _sfc_main$
|
|
23812
|
+
const _hoisted_4$7 = ["href"];
|
|
23813
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
23776
23814
|
__name: "SearchResultsProductSingleStarRating",
|
|
23777
23815
|
props: {
|
|
23778
23816
|
item: {},
|
|
@@ -23800,7 +23838,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
23800
23838
|
return RATING_STAR_HTML;
|
|
23801
23839
|
});
|
|
23802
23840
|
return (_ctx, _cache) => {
|
|
23803
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23841
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
23804
23842
|
createBaseVNode("div", {
|
|
23805
23843
|
innerHTML: star.value,
|
|
23806
23844
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -23809,26 +23847,26 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
23809
23847
|
createBaseVNode("a", {
|
|
23810
23848
|
href: ratingLink.value,
|
|
23811
23849
|
class: "lupa-total-ratings"
|
|
23812
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
23850
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
23813
23851
|
]);
|
|
23814
23852
|
};
|
|
23815
23853
|
}
|
|
23816
23854
|
});
|
|
23817
23855
|
const __default__ = {
|
|
23818
23856
|
components: {
|
|
23819
|
-
SearchResultsProductImage: _sfc_main$
|
|
23820
|
-
SearchResultsProductTitle: _sfc_main$
|
|
23821
|
-
SearchResultsProductDescription: _sfc_main$
|
|
23822
|
-
SearchResultsProductRating: _sfc_main$
|
|
23823
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
23824
|
-
SearchResultsProductPrice: _sfc_main$
|
|
23825
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
23826
|
-
SearchResultsProductCustom: _sfc_main$
|
|
23827
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
23828
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
23829
|
-
}
|
|
23830
|
-
};
|
|
23831
|
-
const _sfc_main$
|
|
23857
|
+
SearchResultsProductImage: _sfc_main$x,
|
|
23858
|
+
SearchResultsProductTitle: _sfc_main$w,
|
|
23859
|
+
SearchResultsProductDescription: _sfc_main$v,
|
|
23860
|
+
SearchResultsProductRating: _sfc_main$u,
|
|
23861
|
+
SearchResultsProductRegularPrice: _sfc_main$t,
|
|
23862
|
+
SearchResultsProductPrice: _sfc_main$s,
|
|
23863
|
+
SearchResultsProductAddToCart: _sfc_main$r,
|
|
23864
|
+
SearchResultsProductCustom: _sfc_main$q,
|
|
23865
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$p,
|
|
23866
|
+
SearchResultsProductSingleStarRating: _sfc_main$o
|
|
23867
|
+
}
|
|
23868
|
+
};
|
|
23869
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
23832
23870
|
__name: "SearchResultsProductCardElement",
|
|
23833
23871
|
props: {
|
|
23834
23872
|
item: {},
|
|
@@ -23904,13 +23942,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
23904
23942
|
};
|
|
23905
23943
|
}
|
|
23906
23944
|
}));
|
|
23907
|
-
const _hoisted_1$
|
|
23945
|
+
const _hoisted_1$k = ["href"];
|
|
23908
23946
|
const _hoisted_2$g = {
|
|
23909
23947
|
key: 0,
|
|
23910
23948
|
class: "lupa-out-of-stock"
|
|
23911
23949
|
};
|
|
23912
23950
|
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
23913
|
-
const _sfc_main$
|
|
23951
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
23914
23952
|
__name: "SearchResultsProductCard",
|
|
23915
23953
|
props: {
|
|
23916
23954
|
product: {},
|
|
@@ -24062,7 +24100,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24062
24100
|
"data-cy": "lupa-search-result-product-card",
|
|
24063
24101
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
24064
24102
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
24065
|
-
createVNode(_sfc_main$
|
|
24103
|
+
createVNode(_sfc_main$12, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24066
24104
|
createBaseVNode("div", {
|
|
24067
24105
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24068
24106
|
}, [
|
|
@@ -24072,7 +24110,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24072
24110
|
onClick: handleNavigation
|
|
24073
24111
|
}, [
|
|
24074
24112
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24075
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24113
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24076
24114
|
class: "lupa-search-results-product-element",
|
|
24077
24115
|
item: _ctx.product,
|
|
24078
24116
|
element,
|
|
@@ -24083,16 +24121,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24083
24121
|
onProductEvent: handleProductEvent
|
|
24084
24122
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24085
24123
|
}), 128)),
|
|
24086
|
-
createVNode(_sfc_main$
|
|
24124
|
+
createVNode(_sfc_main$12, {
|
|
24087
24125
|
options: badgesOptions.value,
|
|
24088
24126
|
position: "image",
|
|
24089
24127
|
class: "lupa-image-badges"
|
|
24090
24128
|
}, null, 8, ["options"]),
|
|
24091
24129
|
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24092
|
-
], 8, _hoisted_1$
|
|
24130
|
+
], 8, _hoisted_1$k),
|
|
24093
24131
|
createBaseVNode("div", _hoisted_3$a, [
|
|
24094
24132
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24095
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24133
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24096
24134
|
class: "lupa-search-results-product-element",
|
|
24097
24135
|
item: _ctx.product,
|
|
24098
24136
|
element,
|
|
@@ -24110,7 +24148,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24110
24148
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24111
24149
|
}, [
|
|
24112
24150
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24113
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24151
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24114
24152
|
class: "lupa-search-results-product-element",
|
|
24115
24153
|
item: _ctx.product,
|
|
24116
24154
|
element,
|
|
@@ -24128,7 +24166,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24128
24166
|
};
|
|
24129
24167
|
}
|
|
24130
24168
|
});
|
|
24131
|
-
const _hoisted_1$
|
|
24169
|
+
const _hoisted_1$j = {
|
|
24132
24170
|
id: "lupa-search-results-similar-queries",
|
|
24133
24171
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24134
24172
|
};
|
|
@@ -24137,14 +24175,14 @@ const _hoisted_3$9 = {
|
|
|
24137
24175
|
class: "lupa-similar-query-label",
|
|
24138
24176
|
"data-cy": "lupa-similar-query-label"
|
|
24139
24177
|
};
|
|
24140
|
-
const _hoisted_4$
|
|
24141
|
-
const _hoisted_5$
|
|
24142
|
-
const _hoisted_6$
|
|
24178
|
+
const _hoisted_4$6 = ["onClick"];
|
|
24179
|
+
const _hoisted_5$2 = ["innerHTML"];
|
|
24180
|
+
const _hoisted_6$2 = { key: 0 };
|
|
24143
24181
|
const _hoisted_7$1 = {
|
|
24144
24182
|
class: "lupa-products",
|
|
24145
24183
|
"data-cy": "lupa-products"
|
|
24146
24184
|
};
|
|
24147
|
-
const _sfc_main$
|
|
24185
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24148
24186
|
__name: "SearchResultsSimilarQueries",
|
|
24149
24187
|
props: {
|
|
24150
24188
|
labels: {},
|
|
@@ -24174,7 +24212,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24174
24212
|
paramsStore.goToResults({ searchText, facet });
|
|
24175
24213
|
};
|
|
24176
24214
|
return (_ctx, _cache) => {
|
|
24177
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24215
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24178
24216
|
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24179
24217
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24180
24218
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -24188,13 +24226,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24188
24226
|
}, [
|
|
24189
24227
|
createBaseVNode("span", {
|
|
24190
24228
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24191
|
-
}, null, 8, _hoisted_5$
|
|
24192
|
-
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
24193
|
-
], 8, _hoisted_4$
|
|
24229
|
+
}, null, 8, _hoisted_5$2),
|
|
24230
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24231
|
+
], 8, _hoisted_4$6)
|
|
24194
24232
|
]),
|
|
24195
24233
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24196
24234
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24197
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24235
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24198
24236
|
style: normalizeStyle(_ctx.columnSize),
|
|
24199
24237
|
key: getDocumentKey(index2, product),
|
|
24200
24238
|
product,
|
|
@@ -24208,7 +24246,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24208
24246
|
};
|
|
24209
24247
|
}
|
|
24210
24248
|
});
|
|
24211
|
-
const _hoisted_1$
|
|
24249
|
+
const _hoisted_1$i = {
|
|
24212
24250
|
key: 0,
|
|
24213
24251
|
class: "lupa-results-additional-panel"
|
|
24214
24252
|
};
|
|
@@ -24216,7 +24254,7 @@ const _hoisted_2$e = {
|
|
|
24216
24254
|
class: "lupa-results-additional-panel-items",
|
|
24217
24255
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24218
24256
|
};
|
|
24219
|
-
const _sfc_main$
|
|
24257
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24220
24258
|
__name: "AdditionalPanel",
|
|
24221
24259
|
props: {
|
|
24222
24260
|
panel: {},
|
|
@@ -24288,10 +24326,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24288
24326
|
handleQueryChange();
|
|
24289
24327
|
});
|
|
24290
24328
|
return (_ctx, _cache) => {
|
|
24291
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24329
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24292
24330
|
createBaseVNode("div", _hoisted_2$e, [
|
|
24293
24331
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24294
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24332
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24295
24333
|
key: index,
|
|
24296
24334
|
product: item,
|
|
24297
24335
|
options: _ctx.panel,
|
|
@@ -24309,11 +24347,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24309
24347
|
};
|
|
24310
24348
|
}
|
|
24311
24349
|
});
|
|
24312
|
-
const _hoisted_1$
|
|
24350
|
+
const _hoisted_1$h = {
|
|
24313
24351
|
key: 0,
|
|
24314
24352
|
class: "lupa-results-additional-panels"
|
|
24315
24353
|
};
|
|
24316
|
-
const _sfc_main$
|
|
24354
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24317
24355
|
__name: "AdditionalPanels",
|
|
24318
24356
|
props: {
|
|
24319
24357
|
options: {},
|
|
@@ -24330,9 +24368,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24330
24368
|
return locationPanels.value.length > 0;
|
|
24331
24369
|
});
|
|
24332
24370
|
return (_ctx, _cache) => {
|
|
24333
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24371
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24334
24372
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24335
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24373
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
24336
24374
|
key: panel.queryKey,
|
|
24337
24375
|
panel,
|
|
24338
24376
|
options: _ctx.sdkOptions
|
|
@@ -24349,11 +24387,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
24349
24387
|
}
|
|
24350
24388
|
return target;
|
|
24351
24389
|
};
|
|
24352
|
-
const _sfc_main$
|
|
24353
|
-
const _hoisted_1$
|
|
24390
|
+
const _sfc_main$i = {};
|
|
24391
|
+
const _hoisted_1$g = { class: "lupa-spinner-wrapper" };
|
|
24354
24392
|
const _hoisted_2$d = { class: "lupa-spinner" };
|
|
24355
24393
|
function _sfc_render(_ctx, _cache) {
|
|
24356
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24394
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24357
24395
|
createBaseVNode("div", _hoisted_2$d, [
|
|
24358
24396
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24359
24397
|
return createBaseVNode("div", { key: x2 });
|
|
@@ -24361,8 +24399,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
24361
24399
|
])
|
|
24362
24400
|
]);
|
|
24363
24401
|
}
|
|
24364
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24365
|
-
const _hoisted_1$
|
|
24402
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
|
|
24403
|
+
const _hoisted_1$f = {
|
|
24366
24404
|
id: "lupa-search-results-similar-results",
|
|
24367
24405
|
"data-cy": "lupa-search-results-similar-results"
|
|
24368
24406
|
};
|
|
@@ -24371,7 +24409,7 @@ const _hoisted_3$8 = {
|
|
|
24371
24409
|
class: "lupa-products",
|
|
24372
24410
|
"data-cy": "lupa-products"
|
|
24373
24411
|
};
|
|
24374
|
-
const _sfc_main$
|
|
24412
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24375
24413
|
__name: "SearchResultsSimilarResults",
|
|
24376
24414
|
props: {
|
|
24377
24415
|
columnSize: {},
|
|
@@ -24387,11 +24425,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24387
24425
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24388
24426
|
};
|
|
24389
24427
|
return (_ctx, _cache) => {
|
|
24390
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24428
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24391
24429
|
createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24392
24430
|
createBaseVNode("div", _hoisted_3$8, [
|
|
24393
24431
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24394
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24432
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24395
24433
|
style: normalizeStyle(_ctx.columnSize),
|
|
24396
24434
|
key: getDocumentKey(index, product),
|
|
24397
24435
|
product,
|
|
@@ -24403,7 +24441,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24403
24441
|
};
|
|
24404
24442
|
}
|
|
24405
24443
|
});
|
|
24406
|
-
const _hoisted_1$
|
|
24444
|
+
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24407
24445
|
const _hoisted_2$b = {
|
|
24408
24446
|
class: "lupa-products",
|
|
24409
24447
|
"data-cy": "lupa-products"
|
|
@@ -24413,14 +24451,14 @@ const _hoisted_3$7 = {
|
|
|
24413
24451
|
class: "lupa-empty-results",
|
|
24414
24452
|
"data-cy": "lupa-no-results-in-page"
|
|
24415
24453
|
};
|
|
24416
|
-
const _hoisted_4$
|
|
24454
|
+
const _hoisted_4$5 = {
|
|
24417
24455
|
key: 3,
|
|
24418
24456
|
class: "lupa-empty-results",
|
|
24419
24457
|
"data-cy": "lupa-no-results"
|
|
24420
24458
|
};
|
|
24421
|
-
const _hoisted_5$
|
|
24422
|
-
const _hoisted_6$
|
|
24423
|
-
const _sfc_main$
|
|
24459
|
+
const _hoisted_5$1 = { key: 4 };
|
|
24460
|
+
const _hoisted_6$1 = { key: 5 };
|
|
24461
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
24424
24462
|
__name: "SearchResultsProducts",
|
|
24425
24463
|
props: {
|
|
24426
24464
|
options: {},
|
|
@@ -24527,24 +24565,24 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24527
24565
|
};
|
|
24528
24566
|
return (_ctx, _cache) => {
|
|
24529
24567
|
var _a;
|
|
24530
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24568
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
24531
24569
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
24532
24570
|
key: 0,
|
|
24533
24571
|
class: "lupa-loader"
|
|
24534
24572
|
})) : createCommentVNode("", true),
|
|
24535
24573
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24536
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24574
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
24537
24575
|
key: 0,
|
|
24538
24576
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24539
24577
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24540
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24578
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$y, {
|
|
24541
24579
|
key: 1,
|
|
24542
24580
|
class: "lupa-toolbar-mobile",
|
|
24543
24581
|
options: _ctx.options,
|
|
24544
24582
|
"pagination-location": "top",
|
|
24545
24583
|
onFilter: filter2
|
|
24546
24584
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24547
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24585
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$S, {
|
|
24548
24586
|
key: 2,
|
|
24549
24587
|
class: normalizeClass(currentFiltersClass.value),
|
|
24550
24588
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24552,18 +24590,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24552
24590
|
expandable: !desktopFiltersExpanded.value
|
|
24553
24591
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24554
24592
|
], 64)) : createCommentVNode("", true),
|
|
24555
|
-
createVNode(_sfc_main$
|
|
24593
|
+
createVNode(_sfc_main$j, {
|
|
24556
24594
|
options: _ctx.options,
|
|
24557
24595
|
location: "top",
|
|
24558
24596
|
sdkOptions: _ctx.options.options
|
|
24559
24597
|
}, null, 8, ["options", "sdkOptions"]),
|
|
24560
24598
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24561
|
-
createVNode(_sfc_main$
|
|
24599
|
+
createVNode(_sfc_main$y, {
|
|
24562
24600
|
class: "lupa-toolbar-top",
|
|
24563
24601
|
options: _ctx.options,
|
|
24564
24602
|
"pagination-location": "top"
|
|
24565
24603
|
}, null, 8, ["options"]),
|
|
24566
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24604
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$S, {
|
|
24567
24605
|
key: 0,
|
|
24568
24606
|
class: normalizeClass(currentFiltersClass.value),
|
|
24569
24607
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24579,7 +24617,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24579
24617
|
options: productCardOptions.value
|
|
24580
24618
|
});
|
|
24581
24619
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24582
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24620
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24583
24621
|
style: normalizeStyle(columnSize.value),
|
|
24584
24622
|
key: getProductKeyAction(index, product),
|
|
24585
24623
|
product,
|
|
@@ -24595,29 +24633,29 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24595
24633
|
onClick: goToFirstPage
|
|
24596
24634
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
24597
24635
|
])) : createCommentVNode("", true),
|
|
24598
|
-
createVNode(_sfc_main$
|
|
24636
|
+
createVNode(_sfc_main$y, {
|
|
24599
24637
|
class: "lupa-toolbar-bottom",
|
|
24600
24638
|
options: _ctx.options,
|
|
24601
24639
|
"pagination-location": "bottom"
|
|
24602
24640
|
}, null, 8, ["options"]),
|
|
24603
|
-
createVNode(_sfc_main$
|
|
24641
|
+
createVNode(_sfc_main$j, {
|
|
24604
24642
|
options: _ctx.options,
|
|
24605
24643
|
location: "bottom",
|
|
24606
24644
|
sdkOptions: _ctx.options.options
|
|
24607
24645
|
}, null, 8, ["options", "sdkOptions"])
|
|
24608
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
24646
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
24609
24647
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
24610
24648
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
24611
24649
|
])) : createCommentVNode("", true),
|
|
24612
|
-
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
24613
|
-
createVNode(_sfc_main$
|
|
24650
|
+
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
24651
|
+
createVNode(_sfc_main$l, {
|
|
24614
24652
|
labels: similarQueriesLabels.value,
|
|
24615
24653
|
columnSize: columnSize.value,
|
|
24616
24654
|
productCardOptions: productCardOptions.value
|
|
24617
24655
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
24618
24656
|
])) : createCommentVNode("", true),
|
|
24619
|
-
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
24620
|
-
createVNode(_sfc_main$
|
|
24657
|
+
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
24658
|
+
createVNode(_sfc_main$h, {
|
|
24621
24659
|
labels: similarResultsLabels.value,
|
|
24622
24660
|
columnSize: columnSize.value,
|
|
24623
24661
|
productCardOptions: productCardOptions.value
|
|
@@ -24628,14 +24666,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24628
24666
|
};
|
|
24629
24667
|
}
|
|
24630
24668
|
});
|
|
24631
|
-
const _hoisted_1$
|
|
24669
|
+
const _hoisted_1$d = { class: "lupa-top-mobile-filter-wrapper" };
|
|
24632
24670
|
const _hoisted_2$a = {
|
|
24633
24671
|
key: 0,
|
|
24634
24672
|
class: "lupa-category-back"
|
|
24635
24673
|
};
|
|
24636
24674
|
const _hoisted_3$6 = ["href"];
|
|
24637
|
-
const _hoisted_4$
|
|
24638
|
-
const _sfc_main$
|
|
24675
|
+
const _hoisted_4$4 = { class: "lupa-child-category-list" };
|
|
24676
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
24639
24677
|
__name: "CategoryTopFilters",
|
|
24640
24678
|
props: {
|
|
24641
24679
|
options: {}
|
|
@@ -24676,7 +24714,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24676
24714
|
return openBlock(), createElementBlock("div", {
|
|
24677
24715
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
24678
24716
|
}, [
|
|
24679
|
-
createBaseVNode("div", _hoisted_1$
|
|
24717
|
+
createBaseVNode("div", _hoisted_1$d, [
|
|
24680
24718
|
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
24681
24719
|
createBaseVNode("a", {
|
|
24682
24720
|
"data-cy": "lupa-category-back",
|
|
@@ -24684,16 +24722,16 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24684
24722
|
onClick: handleNavigationBack
|
|
24685
24723
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
24686
24724
|
])) : createCommentVNode("", true),
|
|
24687
|
-
createBaseVNode("div", _hoisted_4$
|
|
24725
|
+
createBaseVNode("div", _hoisted_4$4, [
|
|
24688
24726
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
24689
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24727
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
24690
24728
|
key: getCategoryKey(child),
|
|
24691
24729
|
item: child,
|
|
24692
24730
|
options: categoryOptions.value
|
|
24693
24731
|
}, null, 8, ["item", "options"]);
|
|
24694
24732
|
}), 128))
|
|
24695
24733
|
]),
|
|
24696
|
-
createVNode(_sfc_main$
|
|
24734
|
+
createVNode(_sfc_main$y, {
|
|
24697
24735
|
class: "lupa-toolbar-mobile",
|
|
24698
24736
|
"pagination-location": "top",
|
|
24699
24737
|
options: _ctx.options
|
|
@@ -24703,7 +24741,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24703
24741
|
};
|
|
24704
24742
|
}
|
|
24705
24743
|
});
|
|
24706
|
-
const _hoisted_1$
|
|
24744
|
+
const _hoisted_1$c = {
|
|
24707
24745
|
key: 0,
|
|
24708
24746
|
class: "lupa-container-title-summary-mobile"
|
|
24709
24747
|
};
|
|
@@ -24713,8 +24751,8 @@ const _hoisted_2$9 = {
|
|
|
24713
24751
|
class: "top-layout-wrapper"
|
|
24714
24752
|
};
|
|
24715
24753
|
const _hoisted_3$5 = { class: "search-content" };
|
|
24716
|
-
const _hoisted_4$
|
|
24717
|
-
const _sfc_main$
|
|
24754
|
+
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
24755
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
24718
24756
|
__name: "SearchResults",
|
|
24719
24757
|
props: {
|
|
24720
24758
|
options: {},
|
|
@@ -24924,29 +24962,29 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24924
24962
|
return openBlock(), createElementBlock("div", {
|
|
24925
24963
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
24926
24964
|
}, [
|
|
24927
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24928
|
-
createVNode(_sfc_main$
|
|
24929
|
-
createVNode(_sfc_main$
|
|
24965
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
24966
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
24967
|
+
createVNode(_sfc_main$U, {
|
|
24930
24968
|
"show-summary": true,
|
|
24931
24969
|
options: _ctx.options,
|
|
24932
24970
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
24933
24971
|
}, null, 8, ["options", "is-product-list"])
|
|
24934
24972
|
])) : createCommentVNode("", true),
|
|
24935
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
24973
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$f, {
|
|
24936
24974
|
key: 1,
|
|
24937
24975
|
options: _ctx.options
|
|
24938
24976
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24939
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
24977
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$G, {
|
|
24940
24978
|
key: 2,
|
|
24941
24979
|
options: _ctx.options.filters,
|
|
24942
24980
|
onFilter: handleParamsChange
|
|
24943
24981
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24944
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
24982
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$F, {
|
|
24945
24983
|
key: 3,
|
|
24946
24984
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
24947
24985
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
24948
24986
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
24949
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
24987
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24950
24988
|
key: 0,
|
|
24951
24989
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
24952
24990
|
ref_key: "searchResultsFilters",
|
|
@@ -24954,12 +24992,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24954
24992
|
onFilter: handleParamsChange
|
|
24955
24993
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24956
24994
|
createBaseVNode("div", _hoisted_3$5, [
|
|
24957
|
-
createVNode(_sfc_main$
|
|
24958
|
-
createVNode(_sfc_main$
|
|
24995
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
24996
|
+
createVNode(_sfc_main$U, {
|
|
24959
24997
|
options: _ctx.options,
|
|
24960
24998
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
24961
24999
|
}, null, 8, ["options", "is-product-list"]),
|
|
24962
|
-
createVNode(_sfc_main$
|
|
25000
|
+
createVNode(_sfc_main$g, {
|
|
24963
25001
|
options: _ctx.options,
|
|
24964
25002
|
ssr: ssrEnabled.value,
|
|
24965
25003
|
onFilter: handleParamsChange
|
|
@@ -24971,20 +25009,20 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24971
25009
|
}, 8, ["options", "ssr"])
|
|
24972
25010
|
])
|
|
24973
25011
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
24974
|
-
createVNode(_sfc_main$
|
|
24975
|
-
createVNode(_sfc_main$
|
|
25012
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25013
|
+
createVNode(_sfc_main$U, {
|
|
24976
25014
|
options: _ctx.options,
|
|
24977
25015
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
24978
25016
|
}, null, 8, ["options", "is-product-list"]),
|
|
24979
|
-
createBaseVNode("div", _hoisted_4$
|
|
24980
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25017
|
+
createBaseVNode("div", _hoisted_4$3, [
|
|
25018
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24981
25019
|
key: 0,
|
|
24982
25020
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
24983
25021
|
ref_key: "searchResultsFilters",
|
|
24984
25022
|
ref: searchResultsFilters,
|
|
24985
25023
|
onFilter: handleParamsChange
|
|
24986
25024
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24987
|
-
createVNode(_sfc_main$
|
|
25025
|
+
createVNode(_sfc_main$g, {
|
|
24988
25026
|
options: _ctx.options,
|
|
24989
25027
|
ssr: ssrEnabled.value,
|
|
24990
25028
|
onFilter: handleParamsChange
|
|
@@ -25008,12 +25046,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
25008
25046
|
};
|
|
25009
25047
|
}
|
|
25010
25048
|
});
|
|
25011
|
-
const _hoisted_1$
|
|
25049
|
+
const _hoisted_1$b = {
|
|
25012
25050
|
key: 0,
|
|
25013
25051
|
class: "lupa-category-overview"
|
|
25014
25052
|
};
|
|
25015
25053
|
const _hoisted_2$8 = ["innerHTML"];
|
|
25016
|
-
const _sfc_main$
|
|
25054
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
25017
25055
|
__name: "CategoryDescription",
|
|
25018
25056
|
props: {
|
|
25019
25057
|
options: {}
|
|
@@ -25031,7 +25069,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25031
25069
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
25032
25070
|
});
|
|
25033
25071
|
return (_ctx, _cache) => {
|
|
25034
|
-
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
25072
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
25035
25073
|
createBaseVNode("div", {
|
|
25036
25074
|
class: "lupa-category-description",
|
|
25037
25075
|
innerHTML: description.value
|
|
@@ -25096,7 +25134,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
25096
25134
|
}
|
|
25097
25135
|
return parsedObject;
|
|
25098
25136
|
};
|
|
25099
|
-
const _sfc_main$
|
|
25137
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
25100
25138
|
__name: "ProductList",
|
|
25101
25139
|
props: {
|
|
25102
25140
|
options: {}
|
|
@@ -25121,7 +25159,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
25121
25159
|
__expose({ fetch: fetch2 });
|
|
25122
25160
|
return (_ctx, _cache) => {
|
|
25123
25161
|
return openBlock(), createElementBlock("div", null, [
|
|
25124
|
-
createVNode(_sfc_main$
|
|
25162
|
+
createVNode(_sfc_main$e, {
|
|
25125
25163
|
options: componentOptions.value,
|
|
25126
25164
|
"initial-filters": _ctx.options.initialFilters,
|
|
25127
25165
|
"is-product-list": true,
|
|
@@ -25129,7 +25167,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
25129
25167
|
ref: searchResults2
|
|
25130
25168
|
}, {
|
|
25131
25169
|
default: withCtx(() => [
|
|
25132
|
-
createVNode(_sfc_main$
|
|
25170
|
+
createVNode(_sfc_main$d, { options: _ctx.options }, null, 8, ["options"])
|
|
25133
25171
|
]),
|
|
25134
25172
|
_: 1
|
|
25135
25173
|
}, 8, ["options", "initial-filters"])
|
|
@@ -30619,9 +30657,9 @@ lodash$1.exports;
|
|
|
30619
30657
|
}).call(commonjsGlobal$1);
|
|
30620
30658
|
})(lodash$1, lodash$1.exports);
|
|
30621
30659
|
var lodashExports$1 = lodash$1.exports;
|
|
30622
|
-
const _hoisted_1$
|
|
30660
|
+
const _hoisted_1$a = ["onClick"];
|
|
30623
30661
|
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
30624
|
-
const _sfc_main$
|
|
30662
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
30625
30663
|
__name: "SearchContainer",
|
|
30626
30664
|
props: {
|
|
30627
30665
|
options: {}
|
|
@@ -30667,7 +30705,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30667
30705
|
onClick: withModifiers(innerClick, ["stop"])
|
|
30668
30706
|
}, [
|
|
30669
30707
|
createBaseVNode("div", _hoisted_2$7, [
|
|
30670
|
-
createVNode(_sfc_main$
|
|
30708
|
+
createVNode(_sfc_main$X, {
|
|
30671
30709
|
options: fullSearchBoxOptions.value,
|
|
30672
30710
|
"is-search-container": true,
|
|
30673
30711
|
ref_key: "searchBox",
|
|
@@ -30675,13 +30713,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30675
30713
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
30676
30714
|
}, null, 8, ["options"])
|
|
30677
30715
|
]),
|
|
30678
|
-
createVNode(_sfc_main$
|
|
30716
|
+
createVNode(_sfc_main$e, {
|
|
30679
30717
|
options: fullSearchResultsOptions.value,
|
|
30680
30718
|
"is-container": true,
|
|
30681
30719
|
ref_key: "searchResults",
|
|
30682
30720
|
ref: searchResults2
|
|
30683
30721
|
}, null, 8, ["options"])
|
|
30684
|
-
], 8, _hoisted_1$
|
|
30722
|
+
], 8, _hoisted_1$a)
|
|
30685
30723
|
]);
|
|
30686
30724
|
};
|
|
30687
30725
|
}
|
|
@@ -31384,7 +31422,7 @@ var Slide = defineComponent({
|
|
|
31384
31422
|
};
|
|
31385
31423
|
}
|
|
31386
31424
|
});
|
|
31387
|
-
const _hoisted_1$
|
|
31425
|
+
const _hoisted_1$9 = {
|
|
31388
31426
|
key: 0,
|
|
31389
31427
|
class: "lupa-search-product-recommendations-wrapper"
|
|
31390
31428
|
};
|
|
@@ -31397,12 +31435,12 @@ const _hoisted_3$4 = {
|
|
|
31397
31435
|
class: "lupa-recommended-products",
|
|
31398
31436
|
"data-cy": "lupa-recommended-products"
|
|
31399
31437
|
};
|
|
31400
|
-
const _hoisted_4$
|
|
31438
|
+
const _hoisted_4$2 = {
|
|
31401
31439
|
key: 1,
|
|
31402
31440
|
class: "lupa-products",
|
|
31403
31441
|
"data-cy": "lupa-products"
|
|
31404
31442
|
};
|
|
31405
|
-
const _sfc_main$
|
|
31443
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
31406
31444
|
__name: "Recommendations",
|
|
31407
31445
|
props: {
|
|
31408
31446
|
options: {}
|
|
@@ -31518,7 +31556,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31518
31556
|
});
|
|
31519
31557
|
__expose({ fetch: fetch2 });
|
|
31520
31558
|
return (_ctx, _cache) => {
|
|
31521
|
-
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31559
|
+
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
31522
31560
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
31523
31561
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
31524
31562
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
@@ -31531,7 +31569,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31531
31569
|
key: getProductKeyAction(index, product)
|
|
31532
31570
|
}, {
|
|
31533
31571
|
default: withCtx(() => [
|
|
31534
|
-
createVNode(_sfc_main$
|
|
31572
|
+
createVNode(_sfc_main$m, {
|
|
31535
31573
|
product,
|
|
31536
31574
|
options: _ctx.options,
|
|
31537
31575
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31542,9 +31580,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31542
31580
|
}), 128))
|
|
31543
31581
|
]),
|
|
31544
31582
|
_: 1
|
|
31545
|
-
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
31583
|
+
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31546
31584
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31547
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31585
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
31548
31586
|
style: normalizeStyle(columnSize.value),
|
|
31549
31587
|
key: getProductKeyAction(index, product),
|
|
31550
31588
|
product,
|
|
@@ -31558,19 +31596,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31558
31596
|
};
|
|
31559
31597
|
}
|
|
31560
31598
|
});
|
|
31561
|
-
const _hoisted_1$
|
|
31599
|
+
const _hoisted_1$8 = { class: "lupa-chat-spinner" };
|
|
31562
31600
|
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31563
31601
|
const _hoisted_3$3 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31564
|
-
const _hoisted_4$
|
|
31565
|
-
const _hoisted_5
|
|
31566
|
-
const _hoisted_6
|
|
31602
|
+
const _hoisted_4$1 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31603
|
+
const _hoisted_5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31604
|
+
const _hoisted_6 = [
|
|
31567
31605
|
_hoisted_2$5,
|
|
31568
31606
|
_hoisted_3$3,
|
|
31569
|
-
_hoisted_4$
|
|
31570
|
-
_hoisted_5
|
|
31607
|
+
_hoisted_4$1,
|
|
31608
|
+
_hoisted_5
|
|
31571
31609
|
];
|
|
31572
31610
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
31573
|
-
const _sfc_main$
|
|
31611
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
31574
31612
|
__name: "ChatSpinner",
|
|
31575
31613
|
props: {
|
|
31576
31614
|
small: { type: Boolean },
|
|
@@ -31578,27 +31616,25 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
31578
31616
|
},
|
|
31579
31617
|
setup(__props) {
|
|
31580
31618
|
return (_ctx, _cache) => {
|
|
31581
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
31619
|
+
return openBlock(), createElementBlock("section", _hoisted_1$8, [
|
|
31582
31620
|
createBaseVNode("div", {
|
|
31583
31621
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
31584
|
-
}, _hoisted_6
|
|
31622
|
+
}, _hoisted_6, 2),
|
|
31585
31623
|
createBaseVNode("div", _hoisted_7, toDisplayString(_ctx.message), 1)
|
|
31586
31624
|
]);
|
|
31587
31625
|
};
|
|
31588
31626
|
}
|
|
31589
31627
|
});
|
|
31590
|
-
const _hoisted_1$
|
|
31628
|
+
const _hoisted_1$7 = { class: "lupa-chat-input-container" };
|
|
31591
31629
|
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
31592
|
-
const _hoisted_3$2 = {
|
|
31593
|
-
|
|
31594
|
-
class: "lupa-chat-form-submit"
|
|
31595
|
-
};
|
|
31596
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31630
|
+
const _hoisted_3$2 = { class: "lupa-chat-form-submit" };
|
|
31631
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
31597
31632
|
__name: "ChatInput",
|
|
31598
31633
|
props: {
|
|
31599
|
-
disabled: { type: Boolean }
|
|
31634
|
+
disabled: { type: Boolean },
|
|
31635
|
+
options: {}
|
|
31600
31636
|
},
|
|
31601
|
-
emits: ["submit"],
|
|
31637
|
+
emits: ["submit", "focus", "blur", "clear"],
|
|
31602
31638
|
setup(__props, { emit: emit2 }) {
|
|
31603
31639
|
const inputValue = ref("");
|
|
31604
31640
|
const submit = () => {
|
|
@@ -31606,7 +31642,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
31606
31642
|
inputValue.value = "";
|
|
31607
31643
|
};
|
|
31608
31644
|
return (_ctx, _cache) => {
|
|
31609
|
-
|
|
31645
|
+
var _a, _b, _c, _d, _e, _f;
|
|
31646
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
31610
31647
|
createBaseVNode("form", {
|
|
31611
31648
|
action: "javascript:void(0);",
|
|
31612
31649
|
class: "chat-input-form",
|
|
@@ -31620,12 +31657,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
31620
31657
|
class: "lupa-search-box-input-field",
|
|
31621
31658
|
"data-cy": "lupa-search-box-input-field",
|
|
31622
31659
|
type: "text",
|
|
31623
|
-
placeholder: "Type your request here..."
|
|
31624
|
-
|
|
31660
|
+
placeholder: "Type your request here...",
|
|
31661
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => emit2("focus")),
|
|
31662
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => emit2("blur"))
|
|
31663
|
+
}, null, 544), [
|
|
31625
31664
|
[vModelText, inputValue.value]
|
|
31626
31665
|
])
|
|
31627
31666
|
]),
|
|
31628
|
-
!_ctx.disabled ? (openBlock(), createElementBlock(
|
|
31667
|
+
!_ctx.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31668
|
+
createBaseVNode("button", _hoisted_3$2, toDisplayString(((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.chatSettings) == null ? void 0 : _b.labels) == null ? void 0 : _c.ask) || "Ask LupaChat"), 1),
|
|
31669
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
|
31670
|
+
key: 0,
|
|
31671
|
+
type: "button",
|
|
31672
|
+
class: "lupa-chat-form-clear",
|
|
31673
|
+
onClick: _cache[3] || (_cache[3] = ($event) => emit2("clear"))
|
|
31674
|
+
}, toDisplayString(((_f = (_e = (_d = _ctx.options) == null ? void 0 : _d.chatSettings) == null ? void 0 : _e.labels) == null ? void 0 : _f.clear) || "Clear Chat"), 1)) : createCommentVNode("", true)
|
|
31675
|
+
], 64)) : (openBlock(), createBlock(_sfc_main$9, {
|
|
31629
31676
|
key: 1,
|
|
31630
31677
|
small: true
|
|
31631
31678
|
}))
|
|
@@ -31764,8 +31811,9 @@ const ChatService = {
|
|
|
31764
31811
|
prepareChatHistory,
|
|
31765
31812
|
getTextResponseChunkStream
|
|
31766
31813
|
};
|
|
31767
|
-
const _hoisted_1$
|
|
31768
|
-
const
|
|
31814
|
+
const _hoisted_1$6 = { class: "lupa-chat-results" };
|
|
31815
|
+
const _hoisted_2$3 = ["href"];
|
|
31816
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
31769
31817
|
__name: "ChatPhraseProductsList",
|
|
31770
31818
|
props: {
|
|
31771
31819
|
options: {},
|
|
@@ -31776,35 +31824,40 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
31776
31824
|
const getProductKeyAction = (index, product) => {
|
|
31777
31825
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
31778
31826
|
};
|
|
31827
|
+
const image = computed(() => {
|
|
31828
|
+
var _a;
|
|
31829
|
+
return (_a = props.options.elements) == null ? void 0 : _a.find((e2) => e2.type === "image");
|
|
31830
|
+
});
|
|
31831
|
+
const getLink = (item) => {
|
|
31832
|
+
var _a, _b, _c;
|
|
31833
|
+
if (!((_a = props.options.links) == null ? void 0 : _a.details)) {
|
|
31834
|
+
return "";
|
|
31835
|
+
}
|
|
31836
|
+
return generateLink((_c = (_b = props.options.links) == null ? void 0 : _b.details) != null ? _c : "", item);
|
|
31837
|
+
};
|
|
31779
31838
|
return (_ctx, _cache) => {
|
|
31780
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
31839
|
+
return openBlock(), createElementBlock("section", _hoisted_1$6, [
|
|
31781
31840
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
31782
|
-
return openBlock(),
|
|
31783
|
-
class: "lupa-chat-product-card",
|
|
31784
|
-
key: getProductKeyAction(index, product)
|
|
31785
|
-
|
|
31786
|
-
|
|
31787
|
-
|
|
31841
|
+
return openBlock(), createElementBlock("div", {
|
|
31842
|
+
class: "lupa-chat-item lupa-chat-product-card-image",
|
|
31843
|
+
key: getProductKeyAction(index, product)
|
|
31844
|
+
}, [
|
|
31845
|
+
createBaseVNode("a", {
|
|
31846
|
+
href: getLink(product)
|
|
31847
|
+
}, [
|
|
31848
|
+
createVNode(_sfc_main$x, {
|
|
31849
|
+
item: product,
|
|
31850
|
+
options: image.value
|
|
31851
|
+
}, null, 8, ["item", "options"])
|
|
31852
|
+
], 8, _hoisted_2$3)
|
|
31853
|
+
]);
|
|
31788
31854
|
}), 128))
|
|
31789
31855
|
]);
|
|
31790
31856
|
};
|
|
31791
31857
|
}
|
|
31792
31858
|
});
|
|
31793
|
-
const _hoisted_1$
|
|
31794
|
-
const
|
|
31795
|
-
const _hoisted_3$1 = {
|
|
31796
|
-
key: 0,
|
|
31797
|
-
class: "alert"
|
|
31798
|
-
};
|
|
31799
|
-
const _hoisted_4$1 = {
|
|
31800
|
-
key: 0,
|
|
31801
|
-
class: "lupa-chat-no-results"
|
|
31802
|
-
};
|
|
31803
|
-
const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no matches for this search term", -1);
|
|
31804
|
-
const _hoisted_6 = [
|
|
31805
|
-
_hoisted_5$1
|
|
31806
|
-
];
|
|
31807
|
-
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
31859
|
+
const _hoisted_1$5 = { class: "lupa-chat-phrase-title" };
|
|
31860
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31808
31861
|
__name: "ChatContentEntryPhrase",
|
|
31809
31862
|
props: {
|
|
31810
31863
|
options: {},
|
|
@@ -31889,29 +31942,87 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
31889
31942
|
return phrases != null ? phrases : [];
|
|
31890
31943
|
});
|
|
31891
31944
|
return (_ctx, _cache) => {
|
|
31892
|
-
return openBlock(), createElementBlock("div",
|
|
31893
|
-
|
|
31894
|
-
|
|
31895
|
-
|
|
31896
|
-
|
|
31945
|
+
return !loading.value && searchResults2.value.length ? (openBlock(), createElementBlock("div", {
|
|
31946
|
+
key: 0,
|
|
31947
|
+
class: normalizeClass(["lupa-chat-content-entry-phrase", { "lupa-chat-incomplete-results": usedPartialResults.value }])
|
|
31948
|
+
}, [
|
|
31949
|
+
createBaseVNode("div", _hoisted_1$5, [
|
|
31950
|
+
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1)
|
|
31897
31951
|
]),
|
|
31898
31952
|
createBaseVNode("div", null, [
|
|
31899
|
-
createVNode(_sfc_main$
|
|
31953
|
+
createVNode(_sfc_main$7, {
|
|
31900
31954
|
"search-results": searchResults2.value,
|
|
31901
31955
|
options: _ctx.options.displayOptions
|
|
31902
31956
|
}, null, 8, ["search-results", "options"])
|
|
31903
|
-
])
|
|
31904
|
-
|
|
31905
|
-
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
|
|
31957
|
+
])
|
|
31958
|
+
], 2)) : createCommentVNode("", true);
|
|
31959
|
+
};
|
|
31960
|
+
}
|
|
31961
|
+
});
|
|
31962
|
+
const _hoisted_1$4 = { class: "lupa-chat-text-response" };
|
|
31963
|
+
const _hoisted_2$2 = ["innerHTML"];
|
|
31964
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
31965
|
+
__name: "ChatTextEntry",
|
|
31966
|
+
props: {
|
|
31967
|
+
content: {},
|
|
31968
|
+
options: {},
|
|
31969
|
+
history: {}
|
|
31970
|
+
},
|
|
31971
|
+
setup(__props) {
|
|
31972
|
+
const props = __props;
|
|
31973
|
+
const content = ref("");
|
|
31974
|
+
const processChunk = (chunk) => {
|
|
31975
|
+
content.value += chunk;
|
|
31976
|
+
};
|
|
31977
|
+
onMounted(() => {
|
|
31978
|
+
var _a;
|
|
31979
|
+
ChatService.getTextResponseChunkStream(
|
|
31980
|
+
props.options.sdkOptions,
|
|
31981
|
+
{
|
|
31982
|
+
initialQuery: props.content,
|
|
31983
|
+
messageHistory: (_a = props.history) != null ? _a : [],
|
|
31984
|
+
queryKey: props.options.displayOptions.queryKey
|
|
31985
|
+
},
|
|
31986
|
+
processChunk,
|
|
31987
|
+
props.options.chatSettings
|
|
31988
|
+
);
|
|
31989
|
+
});
|
|
31990
|
+
return (_ctx, _cache) => {
|
|
31991
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
31992
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$2)
|
|
31909
31993
|
]);
|
|
31910
31994
|
};
|
|
31911
31995
|
}
|
|
31912
31996
|
});
|
|
31913
|
-
const _hoisted_1$3 = { class: "lupa-chat-
|
|
31914
|
-
const
|
|
31997
|
+
const _hoisted_1$3 = { class: "lupa-chat-results" };
|
|
31998
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
31999
|
+
__name: "ChatPhraseProductsCardList",
|
|
32000
|
+
props: {
|
|
32001
|
+
options: {},
|
|
32002
|
+
searchResults: {}
|
|
32003
|
+
},
|
|
32004
|
+
setup(__props) {
|
|
32005
|
+
const props = __props;
|
|
32006
|
+
const getProductKeyAction = (index, product) => {
|
|
32007
|
+
return getProductKey(`${index}`, product, props.options.idKey);
|
|
32008
|
+
};
|
|
32009
|
+
return (_ctx, _cache) => {
|
|
32010
|
+
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32011
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32012
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
32013
|
+
class: "lupa-chat-product-card",
|
|
32014
|
+
key: getProductKeyAction(index, product),
|
|
32015
|
+
product,
|
|
32016
|
+
options: _ctx.options
|
|
32017
|
+
}, null, 8, ["product", "options"]);
|
|
32018
|
+
}), 128))
|
|
32019
|
+
]);
|
|
32020
|
+
};
|
|
32021
|
+
}
|
|
32022
|
+
});
|
|
32023
|
+
const _hoisted_1$2 = { class: "lupa-chat-section-content" };
|
|
32024
|
+
const _hoisted_2$1 = { class: "lupa-chat-content-entry-wrapper" };
|
|
32025
|
+
const _hoisted_3$1 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
31915
32026
|
const MAX_SOURCES_FOR_BEST_ITEM_MATCHING = 250;
|
|
31916
32027
|
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
31917
32028
|
__name: "ChatContentEntry",
|
|
@@ -31970,74 +32081,87 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
31970
32081
|
}).filter(Boolean);
|
|
31971
32082
|
});
|
|
31972
32083
|
return (_ctx, _cache) => {
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
31978
|
-
|
|
31979
|
-
|
|
31980
|
-
|
|
31981
|
-
|
|
31982
|
-
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
|
|
32084
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
32085
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
32086
|
+
createBaseVNode("section", _hoisted_1$2, [
|
|
32087
|
+
createVNode(_sfc_main$5, {
|
|
32088
|
+
content: _ctx.entry.userInput,
|
|
32089
|
+
history: _ctx.history,
|
|
32090
|
+
options: _ctx.options
|
|
32091
|
+
}, null, 8, ["content", "history", "options"]),
|
|
32092
|
+
createBaseVNode("div", _hoisted_2$1, [
|
|
32093
|
+
createBaseVNode("ul", null, [
|
|
32094
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
|
|
32095
|
+
return openBlock(), createElementBlock("li", {
|
|
32096
|
+
key: phrase,
|
|
32097
|
+
class: "lupa-chat-content-entry"
|
|
32098
|
+
}, [
|
|
32099
|
+
phrase ? (openBlock(), createBlock(_sfc_main$6, {
|
|
32100
|
+
key: 0,
|
|
32101
|
+
phrase,
|
|
32102
|
+
options: _ctx.options,
|
|
32103
|
+
onLoaded: loaded
|
|
32104
|
+
}, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
|
|
32105
|
+
]);
|
|
32106
|
+
}), 128))
|
|
32107
|
+
]),
|
|
32108
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
32109
|
+
key: 0,
|
|
32110
|
+
message: (_c = (_b = (_a = _ctx.options.chatSettings) == null ? void 0 : _a.labels) == null ? void 0 : _b.bestMatches) != null ? _c : "Checking for more matches..."
|
|
32111
|
+
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
32112
|
+
])
|
|
31988
32113
|
]),
|
|
31989
|
-
createBaseVNode("section",
|
|
31990
|
-
|
|
31991
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
32114
|
+
createBaseVNode("section", _hoisted_3$1, [
|
|
32115
|
+
createBaseVNode("h3", null, toDisplayString((_f = (_e = (_d = _ctx.options.chatSettings) == null ? void 0 : _d.labels) == null ? void 0 : _e.checkingForMorePhraseMatches) != null ? _f : "Best matches"), 1),
|
|
32116
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
31992
32117
|
key: 0,
|
|
31993
|
-
message: "Selecting the best matches for you. This might take a few seconds."
|
|
31994
|
-
})) : createCommentVNode("", true),
|
|
31995
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
32118
|
+
message: (_i = (_h = (_g = _ctx.options.chatSettings) == null ? void 0 : _g.labels) == null ? void 0 : _h.selectingBestPhrases) != null ? _i : "Selecting the best matches for you. This might take a few seconds."
|
|
32119
|
+
}, null, 8, ["message"])) : createCommentVNode("", true),
|
|
32120
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
31996
32121
|
key: 1,
|
|
31997
32122
|
"search-results": bestMatchProducts.value,
|
|
31998
|
-
options: _ctx.options.displayOptions
|
|
32123
|
+
options: _ctx.options.displayOptions,
|
|
32124
|
+
full: true
|
|
31999
32125
|
}, null, 8, ["search-results", "options"])) : createCommentVNode("", true)
|
|
32000
32126
|
])
|
|
32001
|
-
]);
|
|
32127
|
+
], 64);
|
|
32002
32128
|
};
|
|
32003
32129
|
}
|
|
32004
32130
|
});
|
|
32005
|
-
const _hoisted_1$
|
|
32006
|
-
const _hoisted_2$1 = ["innerHTML"];
|
|
32131
|
+
const _hoisted_1$1 = { key: 0 };
|
|
32007
32132
|
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
32008
|
-
__name: "
|
|
32133
|
+
__name: "ChatContentListEntry",
|
|
32009
32134
|
props: {
|
|
32010
|
-
|
|
32135
|
+
entry: {},
|
|
32011
32136
|
options: {},
|
|
32012
32137
|
history: {}
|
|
32013
32138
|
},
|
|
32014
|
-
|
|
32015
|
-
|
|
32016
|
-
const
|
|
32017
|
-
|
|
32018
|
-
content.value += chunk;
|
|
32139
|
+
emits: ["loaded"],
|
|
32140
|
+
setup(__props, { emit: emit2 }) {
|
|
32141
|
+
const bestItemsLoaded = (items, key) => {
|
|
32142
|
+
emit2("loaded", { items, key });
|
|
32019
32143
|
};
|
|
32020
|
-
onMounted(() => {
|
|
32021
|
-
var _a;
|
|
32022
|
-
ChatService.getTextResponseChunkStream(
|
|
32023
|
-
props.options.sdkOptions,
|
|
32024
|
-
{
|
|
32025
|
-
initialQuery: props.content,
|
|
32026
|
-
messageHistory: (_a = props.history) != null ? _a : [],
|
|
32027
|
-
queryKey: props.options.displayOptions.queryKey
|
|
32028
|
-
},
|
|
32029
|
-
processChunk,
|
|
32030
|
-
props.options.chatSettings
|
|
32031
|
-
);
|
|
32032
|
-
});
|
|
32033
32144
|
return (_ctx, _cache) => {
|
|
32034
|
-
|
|
32035
|
-
|
|
32145
|
+
var _a;
|
|
32146
|
+
return openBlock(), createElementBlock("div", null, [
|
|
32147
|
+
createBaseVNode("h4", {
|
|
32148
|
+
class: "lupa-chat-section-title",
|
|
32149
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.entry.expanded = !_ctx.entry.expanded)
|
|
32150
|
+
}, toDisplayString(_ctx.entry.userInput), 1),
|
|
32151
|
+
((_a = _ctx.entry.suggestedPhrases) == null ? void 0 : _a.length) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
32152
|
+
createVNode(_sfc_main$3$1, {
|
|
32153
|
+
entry: _ctx.entry,
|
|
32154
|
+
options: _ctx.options,
|
|
32155
|
+
history: _ctx.history,
|
|
32156
|
+
onLoaded: _cache[1] || (_cache[1] = (items) => bestItemsLoaded(items, _ctx.entry.key))
|
|
32157
|
+
}, null, 8, ["entry", "options", "history"])
|
|
32158
|
+
], 512)), [
|
|
32159
|
+
[vShow, _ctx.entry.expanded]
|
|
32160
|
+
]) : createCommentVNode("", true)
|
|
32036
32161
|
]);
|
|
32037
32162
|
};
|
|
32038
32163
|
}
|
|
32039
32164
|
});
|
|
32040
|
-
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
32041
32165
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
32042
32166
|
__name: "ChatContentList",
|
|
32043
32167
|
props: {
|
|
@@ -32054,23 +32178,16 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
32054
32178
|
return openBlock(), createElementBlock("div", null, [
|
|
32055
32179
|
createBaseVNode("ul", null, [
|
|
32056
32180
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
32057
|
-
var _a;
|
|
32058
32181
|
return openBlock(), createElementBlock("li", {
|
|
32059
|
-
key: entry.key
|
|
32182
|
+
key: entry.key,
|
|
32183
|
+
class: "chat-content-list-entry"
|
|
32060
32184
|
}, [
|
|
32061
|
-
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
32062
32185
|
createVNode(_sfc_main$2$1, {
|
|
32063
|
-
content: entry.userInput,
|
|
32064
|
-
history: _ctx.history,
|
|
32065
|
-
options: _ctx.options
|
|
32066
|
-
}, null, 8, ["content", "history", "options"]),
|
|
32067
|
-
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
32068
|
-
key: 0,
|
|
32069
32186
|
entry,
|
|
32070
32187
|
options: _ctx.options,
|
|
32071
32188
|
history: _ctx.history,
|
|
32072
32189
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
32073
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
32190
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
32074
32191
|
]);
|
|
32075
32192
|
}), 128))
|
|
32076
32193
|
])
|
|
@@ -32079,19 +32196,13 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
32079
32196
|
}
|
|
32080
32197
|
});
|
|
32081
32198
|
const _hoisted_1 = { class: "lupasearch-chat" };
|
|
32082
|
-
const _hoisted_2 =
|
|
32083
|
-
|
|
32084
|
-
|
|
32085
|
-
const _hoisted_3 = {
|
|
32199
|
+
const _hoisted_2 = { class: "lupasearch-chat-input" };
|
|
32200
|
+
const _hoisted_3 = { class: "lupasearch-chat-content-wrapper" };
|
|
32201
|
+
const _hoisted_4 = {
|
|
32086
32202
|
key: 0,
|
|
32087
32203
|
class: "lupasearch-chat-content"
|
|
32088
32204
|
};
|
|
32089
|
-
const
|
|
32090
|
-
key: 1,
|
|
32091
|
-
class: "lupa-chat-spinner-main"
|
|
32092
|
-
};
|
|
32093
|
-
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
32094
|
-
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
32205
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
32095
32206
|
__name: "ChatContainer",
|
|
32096
32207
|
props: {
|
|
32097
32208
|
options: {}
|
|
@@ -32100,6 +32211,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
32100
32211
|
const props = __props;
|
|
32101
32212
|
const loading = ref(false);
|
|
32102
32213
|
const error = ref("");
|
|
32214
|
+
const focused = ref(false);
|
|
32103
32215
|
const chatContent = ref([]);
|
|
32104
32216
|
const history = computed(() => ChatService.prepareChatHistory(chatContent.value));
|
|
32105
32217
|
const submitChatInput = (input2) => __async2(this, null, function* () {
|
|
@@ -32114,8 +32226,10 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
32114
32226
|
key,
|
|
32115
32227
|
userInput: input2,
|
|
32116
32228
|
allPhrases: [],
|
|
32117
|
-
suggestedPhrases: []
|
|
32229
|
+
suggestedPhrases: [],
|
|
32230
|
+
expanded: true
|
|
32118
32231
|
};
|
|
32232
|
+
chatContent.value = chatContent.value.map((c2) => __spreadProps2(__spreadValues2({}, c2), { expanded: false }));
|
|
32119
32233
|
chatContent.value.push(chatLog);
|
|
32120
32234
|
const request = {
|
|
32121
32235
|
userPrompt: input2,
|
|
@@ -32146,25 +32260,31 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
32146
32260
|
const entry = chatContent.value.find((c2) => c2.key === key);
|
|
32147
32261
|
entry.bestItems = items;
|
|
32148
32262
|
};
|
|
32263
|
+
const clearChatContent = () => {
|
|
32264
|
+
chatContent.value = [];
|
|
32265
|
+
};
|
|
32149
32266
|
return (_ctx, _cache) => {
|
|
32150
32267
|
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
32151
|
-
_hoisted_2,
|
|
32152
|
-
|
|
32153
|
-
createVNode(_sfc_main$1$1, {
|
|
32154
|
-
content: chatContent.value,
|
|
32155
|
-
options: _ctx.options,
|
|
32156
|
-
onLoaded: bestItemsLoaded,
|
|
32157
|
-
history: history.value
|
|
32158
|
-
}, null, 8, ["content", "options", "history"])
|
|
32159
|
-
])) : createCommentVNode("", true),
|
|
32160
|
-
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
32161
|
-
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
32162
|
-
])) : createCommentVNode("", true),
|
|
32163
|
-
createBaseVNode("section", _hoisted_5, [
|
|
32164
|
-
createVNode(_sfc_main$6, {
|
|
32268
|
+
createBaseVNode("section", _hoisted_2, [
|
|
32269
|
+
createVNode(_sfc_main$8, {
|
|
32165
32270
|
onSubmit: submitChatInput,
|
|
32166
|
-
disabled: loading.value
|
|
32167
|
-
|
|
32271
|
+
disabled: loading.value,
|
|
32272
|
+
options: _ctx.options,
|
|
32273
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => focused.value = true),
|
|
32274
|
+
onClear: clearChatContent
|
|
32275
|
+
}, null, 8, ["disabled", "options"]),
|
|
32276
|
+
createBaseVNode("div", _hoisted_3, [
|
|
32277
|
+
chatContent.value.length ? withDirectives((openBlock(), createElementBlock("section", _hoisted_4, [
|
|
32278
|
+
createVNode(_sfc_main$1$1, {
|
|
32279
|
+
content: chatContent.value,
|
|
32280
|
+
options: _ctx.options,
|
|
32281
|
+
history: history.value,
|
|
32282
|
+
onLoaded: bestItemsLoaded
|
|
32283
|
+
}, null, 8, ["content", "options", "history"])
|
|
32284
|
+
], 512)), [
|
|
32285
|
+
[vShow, focused.value]
|
|
32286
|
+
]) : createCommentVNode("", true)
|
|
32287
|
+
])
|
|
32168
32288
|
])
|
|
32169
32289
|
]);
|
|
32170
32290
|
};
|
|
@@ -38100,7 +38220,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38100
38220
|
};
|
|
38101
38221
|
__expose({ fetch: fetch2 });
|
|
38102
38222
|
return (_ctx, _cache) => {
|
|
38103
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38223
|
+
return openBlock(), createBlock(unref(_sfc_main$X), {
|
|
38104
38224
|
options: fullSearchBoxOptions.value,
|
|
38105
38225
|
ref_key: "searchBox",
|
|
38106
38226
|
ref: searchBox2
|
|
@@ -38227,7 +38347,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
38227
38347
|
};
|
|
38228
38348
|
__expose({ fetch: fetch2 });
|
|
38229
38349
|
return (_ctx, _cache) => {
|
|
38230
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38350
|
+
return openBlock(), createBlock(unref(_sfc_main$e), {
|
|
38231
38351
|
options: fullSearchResultsOptions.value,
|
|
38232
38352
|
ref_key: "searchResults",
|
|
38233
38353
|
ref: searchResults2
|
|
@@ -38252,7 +38372,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
38252
38372
|
};
|
|
38253
38373
|
__expose({ fetch: fetch2 });
|
|
38254
38374
|
return (_ctx, _cache) => {
|
|
38255
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38375
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
38256
38376
|
options: fullProductListOptions.value,
|
|
38257
38377
|
ref_key: "productList",
|
|
38258
38378
|
ref: productList2
|
|
@@ -38332,7 +38452,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
38332
38452
|
__expose({ fetch: fetch2, reloadOptions });
|
|
38333
38453
|
return (_ctx, _cache) => {
|
|
38334
38454
|
return openBlock(), createElementBlock("div", null, [
|
|
38335
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
38455
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
38336
38456
|
key: 0,
|
|
38337
38457
|
options: containerOptions.value,
|
|
38338
38458
|
ref_key: "productList",
|
|
@@ -38356,7 +38476,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38356
38476
|
};
|
|
38357
38477
|
__expose({ fetch: fetch2 });
|
|
38358
38478
|
return (_ctx, _cache) => {
|
|
38359
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38479
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
38360
38480
|
options: _ctx.recommendationOptions,
|
|
38361
38481
|
ref_key: "productRecommendations",
|
|
38362
38482
|
ref: productRecommendations
|
|
@@ -38627,7 +38747,7 @@ const chat = (options, mountOptions) => {
|
|
|
38627
38747
|
const instance = createVue(
|
|
38628
38748
|
options.displayOptions.containerSelector,
|
|
38629
38749
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
38630
|
-
_sfc_main$
|
|
38750
|
+
_sfc_main$1q,
|
|
38631
38751
|
{
|
|
38632
38752
|
options
|
|
38633
38753
|
}
|