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