@getlupa/client 1.14.4 → 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 +684 -537
- package/dist/lupaSearch.js +684 -537
- package/dist/lupaSearch.mjs +684 -537
- package/dist/lupaSearch.umd.js +684 -537
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -6314,6 +6314,44 @@ const withModifiers = (fn, modifiers) => {
|
|
|
6314
6314
|
return fn(event, ...args);
|
|
6315
6315
|
};
|
|
6316
6316
|
};
|
|
6317
|
+
const vShow = {
|
|
6318
|
+
beforeMount(el, { value }, { transition }) {
|
|
6319
|
+
el._vod = el.style.display === "none" ? "" : el.style.display;
|
|
6320
|
+
if (transition && value) {
|
|
6321
|
+
transition.beforeEnter(el);
|
|
6322
|
+
} else {
|
|
6323
|
+
setDisplay(el, value);
|
|
6324
|
+
}
|
|
6325
|
+
},
|
|
6326
|
+
mounted(el, { value }, { transition }) {
|
|
6327
|
+
if (transition && value) {
|
|
6328
|
+
transition.enter(el);
|
|
6329
|
+
}
|
|
6330
|
+
},
|
|
6331
|
+
updated(el, { value, oldValue }, { transition }) {
|
|
6332
|
+
if (!value === !oldValue)
|
|
6333
|
+
return;
|
|
6334
|
+
if (transition) {
|
|
6335
|
+
if (value) {
|
|
6336
|
+
transition.beforeEnter(el);
|
|
6337
|
+
setDisplay(el, true);
|
|
6338
|
+
transition.enter(el);
|
|
6339
|
+
} else {
|
|
6340
|
+
transition.leave(el, () => {
|
|
6341
|
+
setDisplay(el, false);
|
|
6342
|
+
});
|
|
6343
|
+
}
|
|
6344
|
+
} else {
|
|
6345
|
+
setDisplay(el, value);
|
|
6346
|
+
}
|
|
6347
|
+
},
|
|
6348
|
+
beforeUnmount(el, { value }) {
|
|
6349
|
+
setDisplay(el, value);
|
|
6350
|
+
}
|
|
6351
|
+
};
|
|
6352
|
+
function setDisplay(el, value) {
|
|
6353
|
+
el.style.display = value ? el._vod : "none";
|
|
6354
|
+
}
|
|
6317
6355
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
6318
6356
|
let renderer;
|
|
6319
6357
|
function ensureRenderer() {
|
|
@@ -8556,20 +8594,20 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
8556
8594
|
resetHighlightIndex
|
|
8557
8595
|
};
|
|
8558
8596
|
});
|
|
8559
|
-
const _hoisted_1$
|
|
8597
|
+
const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
|
|
8560
8598
|
const _hoisted_2$S = { class: "lupa-input-clear" };
|
|
8561
8599
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8562
8600
|
const _hoisted_4$s = ["value"];
|
|
8563
|
-
const _hoisted_5$
|
|
8564
|
-
const _hoisted_6$
|
|
8601
|
+
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8602
|
+
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8565
8603
|
const _hoisted_7$7 = [
|
|
8566
|
-
_hoisted_6$
|
|
8604
|
+
_hoisted_6$9
|
|
8567
8605
|
];
|
|
8568
8606
|
const _hoisted_8$3 = {
|
|
8569
8607
|
key: 0,
|
|
8570
8608
|
class: "lupa-close-label"
|
|
8571
8609
|
};
|
|
8572
|
-
const _sfc_main$
|
|
8610
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
8573
8611
|
__name: "SearchBoxInput",
|
|
8574
8612
|
props: {
|
|
8575
8613
|
options: {},
|
|
@@ -8653,7 +8691,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8653
8691
|
};
|
|
8654
8692
|
__expose({ focus });
|
|
8655
8693
|
return (_ctx, _cache) => {
|
|
8656
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8694
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
8657
8695
|
createBaseVNode("div", _hoisted_2$S, [
|
|
8658
8696
|
createBaseVNode("div", {
|
|
8659
8697
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
@@ -8680,7 +8718,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8680
8718
|
placeholder: labels.value.placeholder,
|
|
8681
8719
|
onInput: handleInput,
|
|
8682
8720
|
onFocus: handleFocus
|
|
8683
|
-
}), null, 16, _hoisted_5$
|
|
8721
|
+
}), null, 16, _hoisted_5$i), [
|
|
8684
8722
|
[vModelText, inputValue.value]
|
|
8685
8723
|
]),
|
|
8686
8724
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8699,7 +8737,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8699
8737
|
};
|
|
8700
8738
|
}
|
|
8701
8739
|
});
|
|
8702
|
-
const _sfc_main$
|
|
8740
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
8703
8741
|
__name: "SearchBoxMoreResults",
|
|
8704
8742
|
props: {
|
|
8705
8743
|
labels: {},
|
|
@@ -8731,9 +8769,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
8731
8769
|
};
|
|
8732
8770
|
}
|
|
8733
8771
|
});
|
|
8734
|
-
const _hoisted_1$
|
|
8772
|
+
const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
|
|
8735
8773
|
const _hoisted_2$R = { class: "lupa-search-box-history-item-content" };
|
|
8736
|
-
const _sfc_main$
|
|
8774
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
8737
8775
|
__name: "SearchBoxHistoryItem",
|
|
8738
8776
|
props: {
|
|
8739
8777
|
item: {},
|
|
@@ -8749,7 +8787,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
8749
8787
|
emit2("click", { query: props.item });
|
|
8750
8788
|
};
|
|
8751
8789
|
return (_ctx, _cache) => {
|
|
8752
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8790
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
8753
8791
|
createBaseVNode("div", _hoisted_2$R, [
|
|
8754
8792
|
createBaseVNode("div", {
|
|
8755
8793
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
@@ -8764,11 +8802,11 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
8764
8802
|
};
|
|
8765
8803
|
}
|
|
8766
8804
|
});
|
|
8767
|
-
const _hoisted_1$
|
|
8805
|
+
const _hoisted_1$1c = {
|
|
8768
8806
|
key: 0,
|
|
8769
8807
|
class: "lupa-search-box-history-panel"
|
|
8770
8808
|
};
|
|
8771
|
-
const _sfc_main$
|
|
8809
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
8772
8810
|
__name: "SearchBoxHistoryPanel",
|
|
8773
8811
|
props: {
|
|
8774
8812
|
options: {}
|
|
@@ -8809,9 +8847,9 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
8809
8847
|
}
|
|
8810
8848
|
};
|
|
8811
8849
|
return (_ctx, _cache) => {
|
|
8812
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8850
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
8813
8851
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
8814
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8852
|
+
return openBlock(), createBlock(_sfc_main$1n, {
|
|
8815
8853
|
key: item,
|
|
8816
8854
|
item,
|
|
8817
8855
|
highlighted: index === highlightIndex.value,
|
|
@@ -8827,15 +8865,15 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
8827
8865
|
};
|
|
8828
8866
|
}
|
|
8829
8867
|
});
|
|
8830
|
-
const _hoisted_1$
|
|
8831
|
-
const _sfc_main$
|
|
8868
|
+
const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
|
|
8869
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
8832
8870
|
__name: "SearchBoxNoResults",
|
|
8833
8871
|
props: {
|
|
8834
8872
|
labels: {}
|
|
8835
8873
|
},
|
|
8836
8874
|
setup(__props) {
|
|
8837
8875
|
return (_ctx, _cache) => {
|
|
8838
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
8876
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
|
|
8839
8877
|
};
|
|
8840
8878
|
}
|
|
8841
8879
|
});
|
|
@@ -8867,7 +8905,7 @@ const generateGridTemplate = (elements) => {
|
|
|
8867
8905
|
}
|
|
8868
8906
|
return gridTemplate.join(" ");
|
|
8869
8907
|
};
|
|
8870
|
-
const _hoisted_1$
|
|
8908
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
8871
8909
|
const _hoisted_2$Q = {
|
|
8872
8910
|
key: 1,
|
|
8873
8911
|
"data-cy": "lupa-suggestion-value",
|
|
@@ -8882,11 +8920,11 @@ const _hoisted_4$r = {
|
|
|
8882
8920
|
class: "lupa-suggestion-facet-label",
|
|
8883
8921
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8884
8922
|
};
|
|
8885
|
-
const _hoisted_5$
|
|
8923
|
+
const _hoisted_5$h = {
|
|
8886
8924
|
class: "lupa-suggestion-facet-value",
|
|
8887
8925
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8888
8926
|
};
|
|
8889
|
-
const _sfc_main$
|
|
8927
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
8890
8928
|
__name: "SearchBoxSuggestion",
|
|
8891
8929
|
props: {
|
|
8892
8930
|
suggestion: {},
|
|
@@ -8922,20 +8960,20 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8922
8960
|
class: "lupa-suggestion-value",
|
|
8923
8961
|
"data-cy": "lupa-suggestion-value",
|
|
8924
8962
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8925
|
-
}, null, 8, _hoisted_1$
|
|
8963
|
+
}, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8926
8964
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8927
8965
|
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8928
|
-
createBaseVNode("span", _hoisted_5$
|
|
8966
|
+
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8929
8967
|
])) : createCommentVNode("", true)
|
|
8930
8968
|
]);
|
|
8931
8969
|
};
|
|
8932
8970
|
}
|
|
8933
8971
|
});
|
|
8934
|
-
const _hoisted_1$
|
|
8972
|
+
const _hoisted_1$19 = {
|
|
8935
8973
|
id: "lupa-search-box-suggestions",
|
|
8936
8974
|
"data-cy": "lupa-search-box-suggestions"
|
|
8937
8975
|
};
|
|
8938
|
-
const _sfc_main$
|
|
8976
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
8939
8977
|
__name: "SearchBoxSuggestions",
|
|
8940
8978
|
props: {
|
|
8941
8979
|
items: {},
|
|
@@ -8995,9 +9033,9 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
8995
9033
|
});
|
|
8996
9034
|
});
|
|
8997
9035
|
return (_ctx, _cache) => {
|
|
8998
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9036
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
8999
9037
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
9000
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9038
|
+
return openBlock(), createBlock(_sfc_main$1k, {
|
|
9001
9039
|
key: getSuggestionKey(item),
|
|
9002
9040
|
class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
9003
9041
|
suggestion: item,
|
|
@@ -9025,7 +9063,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
9025
9063
|
}, timeout);
|
|
9026
9064
|
};
|
|
9027
9065
|
};
|
|
9028
|
-
const _sfc_main$
|
|
9066
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
9029
9067
|
__name: "SearchBoxSuggestionsWrapper",
|
|
9030
9068
|
props: {
|
|
9031
9069
|
panel: {},
|
|
@@ -9067,7 +9105,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
9067
9105
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
9068
9106
|
watch(() => props.panel.limit, getSuggestionsDebounced);
|
|
9069
9107
|
return (_ctx, _cache) => {
|
|
9070
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9108
|
+
return openBlock(), createBlock(_sfc_main$1j, {
|
|
9071
9109
|
items: searchResult.value,
|
|
9072
9110
|
highlight: _ctx.panel.highlight,
|
|
9073
9111
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -18141,9 +18179,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
18141
18179
|
targetImage.src = placeholder;
|
|
18142
18180
|
}
|
|
18143
18181
|
};
|
|
18144
|
-
const _hoisted_1$
|
|
18182
|
+
const _hoisted_1$18 = ["src"];
|
|
18145
18183
|
const _hoisted_2$P = ["src"];
|
|
18146
|
-
const _sfc_main$
|
|
18184
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18147
18185
|
__name: "ProductImage",
|
|
18148
18186
|
props: {
|
|
18149
18187
|
item: {},
|
|
@@ -18285,7 +18323,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18285
18323
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
18286
18324
|
onError: replaceWithPlaceholder,
|
|
18287
18325
|
key: finalUrl.value
|
|
18288
|
-
}), null, 16, _hoisted_1$
|
|
18326
|
+
}), null, 16, _hoisted_1$18))
|
|
18289
18327
|
]),
|
|
18290
18328
|
_: 1
|
|
18291
18329
|
})) : (openBlock(), createElementBlock("img", mergeProps({
|
|
@@ -18298,7 +18336,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18298
18336
|
};
|
|
18299
18337
|
}
|
|
18300
18338
|
});
|
|
18301
|
-
const _sfc_main$
|
|
18339
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18302
18340
|
__name: "SearchBoxProductImage",
|
|
18303
18341
|
props: {
|
|
18304
18342
|
item: {},
|
|
@@ -18306,7 +18344,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18306
18344
|
},
|
|
18307
18345
|
setup(__props) {
|
|
18308
18346
|
return (_ctx, _cache) => {
|
|
18309
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18347
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
18310
18348
|
item: _ctx.item,
|
|
18311
18349
|
options: _ctx.options,
|
|
18312
18350
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -18315,12 +18353,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18315
18353
|
};
|
|
18316
18354
|
}
|
|
18317
18355
|
});
|
|
18318
|
-
const _hoisted_1$
|
|
18356
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
18319
18357
|
const _hoisted_2$O = {
|
|
18320
18358
|
key: 1,
|
|
18321
18359
|
class: "lupa-search-box-product-title"
|
|
18322
18360
|
};
|
|
18323
|
-
const _sfc_main$
|
|
18361
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18324
18362
|
__name: "SearchBoxProductTitle",
|
|
18325
18363
|
props: {
|
|
18326
18364
|
item: {},
|
|
@@ -18343,18 +18381,18 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18343
18381
|
key: 0,
|
|
18344
18382
|
class: "lupa-search-box-product-title",
|
|
18345
18383
|
innerHTML: sanitizedTitle.value
|
|
18346
|
-
}, null, 8, _hoisted_1$
|
|
18384
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
|
|
18347
18385
|
createBaseVNode("strong", null, toDisplayString(title.value), 1)
|
|
18348
18386
|
]));
|
|
18349
18387
|
};
|
|
18350
18388
|
}
|
|
18351
18389
|
});
|
|
18352
|
-
const _hoisted_1$
|
|
18390
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
18353
18391
|
const _hoisted_2$N = {
|
|
18354
18392
|
key: 1,
|
|
18355
18393
|
class: "lupa-search-box-product-description"
|
|
18356
18394
|
};
|
|
18357
|
-
const _sfc_main$
|
|
18395
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18358
18396
|
__name: "SearchBoxProductDescription",
|
|
18359
18397
|
props: {
|
|
18360
18398
|
item: {},
|
|
@@ -18377,12 +18415,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
18377
18415
|
key: 0,
|
|
18378
18416
|
class: "lupa-search-box-product-description",
|
|
18379
18417
|
innerHTML: sanitizedDescription.value
|
|
18380
|
-
}, null, 8, _hoisted_1$
|
|
18418
|
+
}, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(description.value), 1));
|
|
18381
18419
|
};
|
|
18382
18420
|
}
|
|
18383
18421
|
});
|
|
18384
|
-
const _hoisted_1$
|
|
18385
|
-
const _sfc_main$
|
|
18422
|
+
const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
|
|
18423
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18386
18424
|
__name: "SearchBoxProductPrice",
|
|
18387
18425
|
props: {
|
|
18388
18426
|
item: {},
|
|
@@ -18400,13 +18438,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
18400
18438
|
);
|
|
18401
18439
|
});
|
|
18402
18440
|
return (_ctx, _cache) => {
|
|
18403
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18441
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
18404
18442
|
createBaseVNode("strong", null, toDisplayString(price.value), 1)
|
|
18405
18443
|
]);
|
|
18406
18444
|
};
|
|
18407
18445
|
}
|
|
18408
18446
|
});
|
|
18409
|
-
const _sfc_main$
|
|
18447
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
18410
18448
|
__name: "SearchBoxProductRegularPrice",
|
|
18411
18449
|
props: {
|
|
18412
18450
|
item: {},
|
|
@@ -18433,12 +18471,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
18433
18471
|
};
|
|
18434
18472
|
}
|
|
18435
18473
|
});
|
|
18436
|
-
const _hoisted_1$
|
|
18474
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
18437
18475
|
const _hoisted_2$M = { key: 0 };
|
|
18438
18476
|
const _hoisted_3$z = { key: 1 };
|
|
18439
18477
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
18440
|
-
const _hoisted_5$
|
|
18441
|
-
const _sfc_main$
|
|
18478
|
+
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
18479
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
18442
18480
|
__name: "SearchBoxProductCustom",
|
|
18443
18481
|
props: {
|
|
18444
18482
|
item: {},
|
|
@@ -18464,20 +18502,20 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
18464
18502
|
key: 0,
|
|
18465
18503
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
18466
18504
|
innerHTML: text.value
|
|
18467
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18505
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$14)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
18468
18506
|
key: 1,
|
|
18469
18507
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18470
18508
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18471
18509
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
18472
18510
|
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
18473
|
-
createBaseVNode("div", _hoisted_5$
|
|
18511
|
+
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
18474
18512
|
]))
|
|
18475
18513
|
], 16));
|
|
18476
18514
|
};
|
|
18477
18515
|
}
|
|
18478
18516
|
});
|
|
18479
|
-
const _hoisted_1$
|
|
18480
|
-
const _sfc_main$
|
|
18517
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
18518
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
18481
18519
|
__name: "SearchBoxProductCustomHtml",
|
|
18482
18520
|
props: {
|
|
18483
18521
|
item: {},
|
|
@@ -18502,7 +18540,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
18502
18540
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18503
18541
|
class: className.value,
|
|
18504
18542
|
innerHTML: text.value
|
|
18505
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
18543
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13);
|
|
18506
18544
|
};
|
|
18507
18545
|
}
|
|
18508
18546
|
});
|
|
@@ -18558,6 +18596,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18558
18596
|
const layout = ref(ResultsLayoutEnum.GRID);
|
|
18559
18597
|
const loading = ref(false);
|
|
18560
18598
|
const isMobileSidebarVisible = ref(false);
|
|
18599
|
+
const relatedCategoryChildren = ref([]);
|
|
18561
18600
|
const optionsStore = useOptionsStore();
|
|
18562
18601
|
const paramsStore = useParamsStore();
|
|
18563
18602
|
const screenStore = useScreenStore();
|
|
@@ -18699,6 +18738,9 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18699
18738
|
const hasExactMatch = items.some((item) => getNormalizedString(item.title) === searchInput);
|
|
18700
18739
|
return hasExactMatch ? items.filter((item) => getNormalizedString(item.title) === searchInput) : items;
|
|
18701
18740
|
};
|
|
18741
|
+
const setRelatedCategoryChildren = (children) => {
|
|
18742
|
+
relatedCategoryChildren.value = [...children];
|
|
18743
|
+
};
|
|
18702
18744
|
return {
|
|
18703
18745
|
isMobileSidebarVisible,
|
|
18704
18746
|
searchResult,
|
|
@@ -18719,6 +18761,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18719
18761
|
itemRange,
|
|
18720
18762
|
isPageEmpty,
|
|
18721
18763
|
hideFiltersOnExactMatchForKeys,
|
|
18764
|
+
relatedCategoryChildren,
|
|
18722
18765
|
setSidebarState,
|
|
18723
18766
|
queryFacet,
|
|
18724
18767
|
add: add2,
|
|
@@ -18727,13 +18770,14 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
18727
18770
|
setLayout,
|
|
18728
18771
|
setLoading,
|
|
18729
18772
|
clearSearchResult,
|
|
18730
|
-
filterVisibleFilterValues
|
|
18773
|
+
filterVisibleFilterValues,
|
|
18774
|
+
setRelatedCategoryChildren
|
|
18731
18775
|
};
|
|
18732
18776
|
});
|
|
18733
|
-
const _hoisted_1$
|
|
18777
|
+
const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
18734
18778
|
const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
|
|
18735
18779
|
const _hoisted_3$y = ["onClick", "disabled"];
|
|
18736
|
-
const _sfc_main$
|
|
18780
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
18737
18781
|
__name: "SearchBoxProductAddToCart",
|
|
18738
18782
|
props: {
|
|
18739
18783
|
item: {},
|
|
@@ -18766,7 +18810,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
18766
18810
|
loading.value = false;
|
|
18767
18811
|
});
|
|
18768
18812
|
return (_ctx, _cache) => {
|
|
18769
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18813
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
18770
18814
|
createBaseVNode("div", _hoisted_2$L, [
|
|
18771
18815
|
createBaseVNode("button", {
|
|
18772
18816
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -18780,23 +18824,23 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
18780
18824
|
};
|
|
18781
18825
|
}
|
|
18782
18826
|
});
|
|
18783
|
-
const _hoisted_1$
|
|
18827
|
+
const _hoisted_1$11 = {
|
|
18784
18828
|
key: 1,
|
|
18785
18829
|
class: "lupa-search-box-element-badge-wrapper"
|
|
18786
18830
|
};
|
|
18787
18831
|
const __default__$4 = {
|
|
18788
18832
|
components: {
|
|
18789
|
-
SearchBoxProductImage: _sfc_main$
|
|
18790
|
-
SearchBoxProductTitle: _sfc_main$
|
|
18791
|
-
SearchBoxProductDescription: _sfc_main$
|
|
18792
|
-
SearchBoxProductPrice: _sfc_main$
|
|
18793
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
18794
|
-
SearchBoxProductCustom: _sfc_main$
|
|
18795
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
18796
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
18833
|
+
SearchBoxProductImage: _sfc_main$1g,
|
|
18834
|
+
SearchBoxProductTitle: _sfc_main$1f,
|
|
18835
|
+
SearchBoxProductDescription: _sfc_main$1e,
|
|
18836
|
+
SearchBoxProductPrice: _sfc_main$1d,
|
|
18837
|
+
SearchBoxProductRegularPrice: _sfc_main$1c,
|
|
18838
|
+
SearchBoxProductCustom: _sfc_main$1b,
|
|
18839
|
+
SearchBoxProductCustomHtml: _sfc_main$1a,
|
|
18840
|
+
SearchBoxProductAddToCart: _sfc_main$19
|
|
18797
18841
|
}
|
|
18798
18842
|
};
|
|
18799
|
-
const _sfc_main$
|
|
18843
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
|
|
18800
18844
|
__name: "SearchBoxProductElement",
|
|
18801
18845
|
props: {
|
|
18802
18846
|
item: {},
|
|
@@ -18859,7 +18903,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18859
18903
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
18860
18904
|
inStock: _ctx.isInStock
|
|
18861
18905
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
18862
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18906
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
18863
18907
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
18864
18908
|
key: 0,
|
|
18865
18909
|
item: enhancedItem.value,
|
|
@@ -18873,14 +18917,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18873
18917
|
};
|
|
18874
18918
|
}
|
|
18875
18919
|
}));
|
|
18876
|
-
const _hoisted_1
|
|
18920
|
+
const _hoisted_1$10 = { class: "lupa-badge-title" };
|
|
18877
18921
|
const _hoisted_2$K = ["src"];
|
|
18878
18922
|
const _hoisted_3$x = { key: 1 };
|
|
18879
18923
|
const _hoisted_4$p = {
|
|
18880
18924
|
key: 0,
|
|
18881
18925
|
class: "lupa-badge-full-text"
|
|
18882
18926
|
};
|
|
18883
|
-
const _sfc_main$
|
|
18927
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
18884
18928
|
__name: "SearchResultGeneratedBadge",
|
|
18885
18929
|
props: {
|
|
18886
18930
|
options: {},
|
|
@@ -18913,7 +18957,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
18913
18957
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
18914
18958
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
18915
18959
|
}, [
|
|
18916
|
-
createBaseVNode("span", _hoisted_1
|
|
18960
|
+
createBaseVNode("span", _hoisted_1$10, [
|
|
18917
18961
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
18918
18962
|
key: 0,
|
|
18919
18963
|
src: image.value
|
|
@@ -18925,8 +18969,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
18925
18969
|
};
|
|
18926
18970
|
}
|
|
18927
18971
|
});
|
|
18928
|
-
const _hoisted_1
|
|
18929
|
-
const _sfc_main$
|
|
18972
|
+
const _hoisted_1$$ = { class: "lupa-generated-badges" };
|
|
18973
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
18930
18974
|
__name: "SearchResultGeneratedBadges",
|
|
18931
18975
|
props: {
|
|
18932
18976
|
options: {}
|
|
@@ -18952,9 +18996,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
18952
18996
|
})).filter((b) => Boolean(b.id));
|
|
18953
18997
|
});
|
|
18954
18998
|
return (_ctx, _cache) => {
|
|
18955
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
18999
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
18956
19000
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
18957
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19001
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
18958
19002
|
key: badge.id,
|
|
18959
19003
|
badge,
|
|
18960
19004
|
options: _ctx.options
|
|
@@ -18964,8 +19008,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
18964
19008
|
};
|
|
18965
19009
|
}
|
|
18966
19010
|
});
|
|
18967
|
-
const _hoisted_1$
|
|
18968
|
-
const _sfc_main$
|
|
19011
|
+
const _hoisted_1$_ = ["innerHTML"];
|
|
19012
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
18969
19013
|
__name: "CustomBadge",
|
|
18970
19014
|
props: {
|
|
18971
19015
|
badge: {}
|
|
@@ -18986,12 +19030,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
18986
19030
|
return openBlock(), createElementBlock("div", {
|
|
18987
19031
|
class: normalizeClass(className.value),
|
|
18988
19032
|
innerHTML: text.value
|
|
18989
|
-
}, null, 10, _hoisted_1$
|
|
19033
|
+
}, null, 10, _hoisted_1$_);
|
|
18990
19034
|
};
|
|
18991
19035
|
}
|
|
18992
19036
|
});
|
|
18993
|
-
const _hoisted_1$
|
|
18994
|
-
const _sfc_main$
|
|
19037
|
+
const _hoisted_1$Z = { class: "lupa-text-badges" };
|
|
19038
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
18995
19039
|
__name: "TextBadge",
|
|
18996
19040
|
props: {
|
|
18997
19041
|
badge: {}
|
|
@@ -19006,7 +19050,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19006
19050
|
return badges.value.slice(0, props.badge.maxItems);
|
|
19007
19051
|
});
|
|
19008
19052
|
return (_ctx, _cache) => {
|
|
19009
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19053
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
19010
19054
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19011
19055
|
return openBlock(), createElementBlock("div", {
|
|
19012
19056
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -19017,9 +19061,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19017
19061
|
};
|
|
19018
19062
|
}
|
|
19019
19063
|
});
|
|
19020
|
-
const _hoisted_1$
|
|
19064
|
+
const _hoisted_1$Y = { class: "lupa-image-badges" };
|
|
19021
19065
|
const _hoisted_2$J = ["src"];
|
|
19022
|
-
const _sfc_main$
|
|
19066
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19023
19067
|
__name: "ImageBadge",
|
|
19024
19068
|
props: {
|
|
19025
19069
|
badge: {}
|
|
@@ -19039,7 +19083,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19039
19083
|
return `${props.badge.rootImageUrl}${src}`;
|
|
19040
19084
|
};
|
|
19041
19085
|
return (_ctx, _cache) => {
|
|
19042
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19086
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
19043
19087
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
19044
19088
|
return openBlock(), createElementBlock("div", {
|
|
19045
19089
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -19054,15 +19098,15 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
19054
19098
|
};
|
|
19055
19099
|
}
|
|
19056
19100
|
});
|
|
19057
|
-
const _hoisted_1$
|
|
19101
|
+
const _hoisted_1$X = { id: "lupa-search-results-badges" };
|
|
19058
19102
|
const __default__$3 = {
|
|
19059
19103
|
components: {
|
|
19060
|
-
CustomBadge: _sfc_main$
|
|
19061
|
-
TextBadge: _sfc_main$
|
|
19062
|
-
ImageBadge: _sfc_main$
|
|
19104
|
+
CustomBadge: _sfc_main$15,
|
|
19105
|
+
TextBadge: _sfc_main$14,
|
|
19106
|
+
ImageBadge: _sfc_main$13
|
|
19063
19107
|
}
|
|
19064
19108
|
};
|
|
19065
|
-
const _sfc_main$
|
|
19109
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
|
|
19066
19110
|
__name: "SearchResultsBadgeWrapper",
|
|
19067
19111
|
props: {
|
|
19068
19112
|
position: {},
|
|
@@ -19123,7 +19167,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19123
19167
|
}
|
|
19124
19168
|
};
|
|
19125
19169
|
return (_ctx, _cache) => {
|
|
19126
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19170
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
19127
19171
|
createBaseVNode("div", {
|
|
19128
19172
|
id: "lupa-badges",
|
|
19129
19173
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -19134,7 +19178,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19134
19178
|
badge
|
|
19135
19179
|
}, null, 8, ["badge"]);
|
|
19136
19180
|
}), 128)),
|
|
19137
|
-
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$
|
|
19181
|
+
positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$16, {
|
|
19138
19182
|
key: 0,
|
|
19139
19183
|
options: _ctx.options
|
|
19140
19184
|
}, null, 8, ["options"])) : createCommentVNode("", true)
|
|
@@ -19143,13 +19187,13 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
19143
19187
|
};
|
|
19144
19188
|
}
|
|
19145
19189
|
}));
|
|
19146
|
-
const _hoisted_1$
|
|
19190
|
+
const _hoisted_1$W = ["href"];
|
|
19147
19191
|
const _hoisted_2$I = { class: "lupa-search-box-product-details-section" };
|
|
19148
19192
|
const _hoisted_3$w = {
|
|
19149
19193
|
key: 0,
|
|
19150
19194
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
19151
19195
|
};
|
|
19152
|
-
const _sfc_main
|
|
19196
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
19153
19197
|
__name: "SearchBoxProduct",
|
|
19154
19198
|
props: {
|
|
19155
19199
|
item: {},
|
|
@@ -19235,7 +19279,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19235
19279
|
style: normalizeStyle(imageStyleOverride.value)
|
|
19236
19280
|
}, [
|
|
19237
19281
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
19238
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19282
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
19239
19283
|
class: "lupa-search-box-product-element",
|
|
19240
19284
|
item: _ctx.item,
|
|
19241
19285
|
element,
|
|
@@ -19248,7 +19292,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19248
19292
|
createBaseVNode("div", _hoisted_2$I, [
|
|
19249
19293
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
19250
19294
|
var _a;
|
|
19251
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19295
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
19252
19296
|
key: element.key,
|
|
19253
19297
|
class: "lupa-search-box-product-element",
|
|
19254
19298
|
item: _ctx.item,
|
|
@@ -19259,7 +19303,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19259
19303
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
19260
19304
|
name: "badges",
|
|
19261
19305
|
fn: withCtx(() => [
|
|
19262
|
-
createVNode(_sfc_main$
|
|
19306
|
+
createVNode(_sfc_main$12, {
|
|
19263
19307
|
options: badgeOptions.value,
|
|
19264
19308
|
position: "card"
|
|
19265
19309
|
}, null, 8, ["options"])
|
|
@@ -19270,7 +19314,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19270
19314
|
}), 128))
|
|
19271
19315
|
]),
|
|
19272
19316
|
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
19273
|
-
createVNode(_sfc_main$
|
|
19317
|
+
createVNode(_sfc_main$18, {
|
|
19274
19318
|
class: "lupa-search-box-product-element",
|
|
19275
19319
|
item: _ctx.item,
|
|
19276
19320
|
element: addToCartElement.value,
|
|
@@ -19279,7 +19323,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
19279
19323
|
isInStock: isInStock.value
|
|
19280
19324
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
19281
19325
|
])) : createCommentVNode("", true)
|
|
19282
|
-
], 16, _hoisted_1$
|
|
19326
|
+
], 16, _hoisted_1$W);
|
|
19283
19327
|
};
|
|
19284
19328
|
}
|
|
19285
19329
|
});
|
|
@@ -19340,8 +19384,8 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
19340
19384
|
};
|
|
19341
19385
|
return { trackSearch, trackResults, trackEvent };
|
|
19342
19386
|
});
|
|
19343
|
-
const _hoisted_1$
|
|
19344
|
-
const _sfc_main$
|
|
19387
|
+
const _hoisted_1$V = { id: "lupa-search-box-products" };
|
|
19388
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
19345
19389
|
__name: "SearchBoxProducts",
|
|
19346
19390
|
props: {
|
|
19347
19391
|
items: {},
|
|
@@ -19402,7 +19446,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
19402
19446
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
19403
19447
|
};
|
|
19404
19448
|
return (_ctx, _cache) => {
|
|
19405
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19449
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
19406
19450
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
19407
19451
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
19408
19452
|
key: index,
|
|
@@ -19414,7 +19458,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
19414
19458
|
itemClicked: handleProductClick
|
|
19415
19459
|
});
|
|
19416
19460
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
|
|
19417
|
-
return openBlock(), createBlock(_sfc_main
|
|
19461
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
19418
19462
|
key: index,
|
|
19419
19463
|
item,
|
|
19420
19464
|
panelOptions: _ctx.panelOptions,
|
|
@@ -19429,9 +19473,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
19429
19473
|
};
|
|
19430
19474
|
}
|
|
19431
19475
|
});
|
|
19432
|
-
const _hoisted_1$
|
|
19476
|
+
const _hoisted_1$U = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
19433
19477
|
const _hoisted_2$H = { key: 0 };
|
|
19434
|
-
const _sfc_main
|
|
19478
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
19435
19479
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
19436
19480
|
props: {
|
|
19437
19481
|
options: {},
|
|
@@ -19461,7 +19505,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
19461
19505
|
emit2("goToResults");
|
|
19462
19506
|
};
|
|
19463
19507
|
return (_ctx, _cache) => {
|
|
19464
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19508
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
19465
19509
|
createBaseVNode("button", {
|
|
19466
19510
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
19467
19511
|
onClick: goToResults
|
|
@@ -19473,7 +19517,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
19473
19517
|
};
|
|
19474
19518
|
}
|
|
19475
19519
|
});
|
|
19476
|
-
const _sfc_main$
|
|
19520
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
19477
19521
|
__name: "SearchBoxProductsWrapper",
|
|
19478
19522
|
props: {
|
|
19479
19523
|
panel: {},
|
|
@@ -19530,7 +19574,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
19530
19574
|
watch(() => props.panel.limit, getItemsDebounced);
|
|
19531
19575
|
return (_ctx, _cache) => {
|
|
19532
19576
|
var _a, _b;
|
|
19533
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19577
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
19534
19578
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19535
19579
|
panelOptions: _ctx.panel,
|
|
19536
19580
|
labels: _ctx.labels,
|
|
@@ -19540,7 +19584,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
19540
19584
|
default: withCtx(() => {
|
|
19541
19585
|
var _a2;
|
|
19542
19586
|
return [
|
|
19543
|
-
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main
|
|
19587
|
+
showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$$, {
|
|
19544
19588
|
key: 0,
|
|
19545
19589
|
options: _ctx.searchBoxOptions,
|
|
19546
19590
|
panel: _ctx.panel,
|
|
@@ -19561,7 +19605,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
19561
19605
|
};
|
|
19562
19606
|
}
|
|
19563
19607
|
});
|
|
19564
|
-
const _sfc_main$
|
|
19608
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
19565
19609
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
19566
19610
|
props: {
|
|
19567
19611
|
panel: {},
|
|
@@ -19633,7 +19677,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
19633
19677
|
});
|
|
19634
19678
|
return (_ctx, _cache) => {
|
|
19635
19679
|
var _a, _b;
|
|
19636
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19680
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
19637
19681
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
19638
19682
|
panelOptions: documentPanelOptions.value,
|
|
19639
19683
|
labels: _ctx.labels,
|
|
@@ -19651,7 +19695,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
19651
19695
|
};
|
|
19652
19696
|
}
|
|
19653
19697
|
});
|
|
19654
|
-
const _hoisted_1$
|
|
19698
|
+
const _hoisted_1$T = {
|
|
19655
19699
|
key: 0,
|
|
19656
19700
|
id: "lupa-search-box-panel"
|
|
19657
19701
|
};
|
|
@@ -19664,18 +19708,18 @@ const _hoisted_4$o = {
|
|
|
19664
19708
|
key: 1,
|
|
19665
19709
|
class: "lupa-panel-title"
|
|
19666
19710
|
};
|
|
19667
|
-
const _hoisted_5$
|
|
19711
|
+
const _hoisted_5$f = {
|
|
19668
19712
|
key: 1,
|
|
19669
19713
|
id: "lupa-search-box-panel"
|
|
19670
19714
|
};
|
|
19671
19715
|
const __default__$2 = {
|
|
19672
19716
|
components: {
|
|
19673
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
19674
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
19675
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
19717
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1i,
|
|
19718
|
+
SearchBoxProductsWrapper: _sfc_main$_,
|
|
19719
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$Z
|
|
19676
19720
|
}
|
|
19677
19721
|
};
|
|
19678
|
-
const _sfc_main$
|
|
19722
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
|
|
19679
19723
|
__name: "SearchBoxMainPanel",
|
|
19680
19724
|
props: {
|
|
19681
19725
|
options: {},
|
|
@@ -19831,7 +19875,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
19831
19875
|
ref_key: "panelContainer",
|
|
19832
19876
|
ref: panelContainer
|
|
19833
19877
|
}, [
|
|
19834
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19878
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
19835
19879
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
19836
19880
|
key: 0,
|
|
19837
19881
|
class: "lupa-search-box-close-panel",
|
|
@@ -19879,18 +19923,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
19879
19923
|
], 14, _hoisted_2$G);
|
|
19880
19924
|
}), 128))
|
|
19881
19925
|
], 4),
|
|
19882
|
-
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$
|
|
19926
|
+
!unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
19883
19927
|
key: 1,
|
|
19884
19928
|
labels: labels.value
|
|
19885
19929
|
}, null, 8, ["labels"])) : createCommentVNode("", true),
|
|
19886
|
-
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$
|
|
19930
|
+
unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
19887
19931
|
key: 2,
|
|
19888
19932
|
labels: labels.value,
|
|
19889
19933
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
19890
19934
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
19891
19935
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
19892
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19893
|
-
createVNode(_sfc_main$
|
|
19936
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
19937
|
+
createVNode(_sfc_main$1m, {
|
|
19894
19938
|
options: _ctx.options.history,
|
|
19895
19939
|
history: history.value,
|
|
19896
19940
|
onGoToResults: handleGoToResults,
|
|
@@ -19915,9 +19959,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
19915
19959
|
const elements = getElements(triggers);
|
|
19916
19960
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
19917
19961
|
};
|
|
19918
|
-
const _hoisted_1$
|
|
19962
|
+
const _hoisted_1$S = { id: "lupa-search-box" };
|
|
19919
19963
|
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
19920
|
-
const _sfc_main$
|
|
19964
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
19921
19965
|
__name: "SearchBox",
|
|
19922
19966
|
props: {
|
|
19923
19967
|
options: {},
|
|
@@ -20177,9 +20221,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
20177
20221
|
};
|
|
20178
20222
|
return (_ctx, _cache) => {
|
|
20179
20223
|
var _a2;
|
|
20180
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20224
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
20181
20225
|
createBaseVNode("div", _hoisted_2$F, [
|
|
20182
|
-
createVNode(_sfc_main$
|
|
20226
|
+
createVNode(_sfc_main$1p, {
|
|
20183
20227
|
options: inputOptions.value,
|
|
20184
20228
|
suggestedValue: suggestedValue.value,
|
|
20185
20229
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -20192,7 +20236,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
20192
20236
|
onSearch: handleSearch,
|
|
20193
20237
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
20194
20238
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
20195
|
-
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$
|
|
20239
|
+
opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Y, {
|
|
20196
20240
|
key: 0,
|
|
20197
20241
|
options: panelOptions.value,
|
|
20198
20242
|
inputValue: inputValue.value,
|
|
@@ -20281,7 +20325,7 @@ const getSearchParams = (url, params, baseUrl) => {
|
|
|
20281
20325
|
}
|
|
20282
20326
|
return searchParams;
|
|
20283
20327
|
};
|
|
20284
|
-
const _hoisted_1$
|
|
20328
|
+
const _hoisted_1$R = {
|
|
20285
20329
|
key: 0,
|
|
20286
20330
|
id: "lupa-search-results-did-you-mean"
|
|
20287
20331
|
};
|
|
@@ -20294,7 +20338,7 @@ const _hoisted_3$u = {
|
|
|
20294
20338
|
"data-cy": "did-you-mean-label"
|
|
20295
20339
|
};
|
|
20296
20340
|
const _hoisted_4$n = { key: 1 };
|
|
20297
|
-
const _sfc_main$
|
|
20341
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20298
20342
|
__name: "SearchResultsDidYouMean",
|
|
20299
20343
|
props: {
|
|
20300
20344
|
labels: {}
|
|
@@ -20326,7 +20370,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20326
20370
|
paramStore.goToResults({ searchText, facet });
|
|
20327
20371
|
};
|
|
20328
20372
|
return (_ctx, _cache) => {
|
|
20329
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20373
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
20330
20374
|
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
20331
20375
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
20332
20376
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
@@ -20352,12 +20396,12 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20352
20396
|
};
|
|
20353
20397
|
}
|
|
20354
20398
|
});
|
|
20355
|
-
const _hoisted_1$
|
|
20399
|
+
const _hoisted_1$Q = {
|
|
20356
20400
|
key: 0,
|
|
20357
20401
|
class: "lupa-search-results-summary"
|
|
20358
20402
|
};
|
|
20359
20403
|
const _hoisted_2$D = ["innerHTML"];
|
|
20360
|
-
const _sfc_main$
|
|
20404
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
20361
20405
|
__name: "SearchResultsSummary",
|
|
20362
20406
|
props: {
|
|
20363
20407
|
label: {},
|
|
@@ -20372,7 +20416,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
20372
20416
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
20373
20417
|
});
|
|
20374
20418
|
return (_ctx, _cache) => {
|
|
20375
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20419
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
20376
20420
|
createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
20377
20421
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
20378
20422
|
key: 0,
|
|
@@ -20384,7 +20428,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
20384
20428
|
};
|
|
20385
20429
|
}
|
|
20386
20430
|
});
|
|
20387
|
-
const _hoisted_1$
|
|
20431
|
+
const _hoisted_1$P = {
|
|
20388
20432
|
key: 0,
|
|
20389
20433
|
class: "lupa-result-page-title",
|
|
20390
20434
|
"data-cy": "lupa-result-page-title"
|
|
@@ -20395,8 +20439,8 @@ const _hoisted_3$t = {
|
|
|
20395
20439
|
class: "lupa-results-total-count"
|
|
20396
20440
|
};
|
|
20397
20441
|
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
20398
|
-
const _hoisted_5$
|
|
20399
|
-
const _sfc_main$
|
|
20442
|
+
const _hoisted_5$e = ["innerHTML"];
|
|
20443
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20400
20444
|
__name: "SearchResultsTitle",
|
|
20401
20445
|
props: {
|
|
20402
20446
|
options: {},
|
|
@@ -20435,7 +20479,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20435
20479
|
});
|
|
20436
20480
|
return (_ctx, _cache) => {
|
|
20437
20481
|
return openBlock(), createElementBlock("div", null, [
|
|
20438
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
20482
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
20439
20483
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
20440
20484
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20441
20485
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
|
|
@@ -20444,7 +20488,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20444
20488
|
createTextVNode(")")
|
|
20445
20489
|
])) : createCommentVNode("", true)
|
|
20446
20490
|
])) : createCommentVNode("", true),
|
|
20447
|
-
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$
|
|
20491
|
+
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$V, {
|
|
20448
20492
|
key: 1,
|
|
20449
20493
|
label: summaryLabel.value
|
|
20450
20494
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -20452,12 +20496,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20452
20496
|
key: 2,
|
|
20453
20497
|
class: "lupa-result-page-description-top",
|
|
20454
20498
|
innerHTML: descriptionTop.value
|
|
20455
|
-
}, null, 8, _hoisted_5$
|
|
20499
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
|
|
20456
20500
|
]);
|
|
20457
20501
|
};
|
|
20458
20502
|
}
|
|
20459
20503
|
});
|
|
20460
|
-
const _hoisted_1$
|
|
20504
|
+
const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
|
|
20461
20505
|
const _hoisted_2$B = {
|
|
20462
20506
|
class: "lupa-current-filter-label",
|
|
20463
20507
|
"data-cy": "lupa-current-filter-label"
|
|
@@ -20466,7 +20510,7 @@ const _hoisted_3$s = {
|
|
|
20466
20510
|
class: "lupa-current-filter-value",
|
|
20467
20511
|
"data-cy": "lupa-current-filter-value"
|
|
20468
20512
|
};
|
|
20469
|
-
const _sfc_main$
|
|
20513
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
20470
20514
|
__name: "CurrentFilterDisplay",
|
|
20471
20515
|
props: {
|
|
20472
20516
|
filter: {}
|
|
@@ -20478,7 +20522,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
20478
20522
|
emit2("remove", { filter: props.filter });
|
|
20479
20523
|
};
|
|
20480
20524
|
return (_ctx, _cache) => {
|
|
20481
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20525
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
20482
20526
|
createBaseVNode("div", {
|
|
20483
20527
|
class: "lupa-current-filter-action",
|
|
20484
20528
|
onClick: handleClick
|
|
@@ -20489,7 +20533,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
20489
20533
|
};
|
|
20490
20534
|
}
|
|
20491
20535
|
});
|
|
20492
|
-
const _hoisted_1$
|
|
20536
|
+
const _hoisted_1$N = { class: "lupa-filter-title-text" };
|
|
20493
20537
|
const _hoisted_2$A = {
|
|
20494
20538
|
key: 0,
|
|
20495
20539
|
class: "lupa-filter-count"
|
|
@@ -20499,7 +20543,7 @@ const _hoisted_3$r = {
|
|
|
20499
20543
|
class: "filter-values"
|
|
20500
20544
|
};
|
|
20501
20545
|
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
20502
|
-
const _sfc_main$
|
|
20546
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20503
20547
|
__name: "CurrentFilters",
|
|
20504
20548
|
props: {
|
|
20505
20549
|
options: {},
|
|
@@ -20572,7 +20616,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
20572
20616
|
class: "lupa-current-filter-title",
|
|
20573
20617
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
20574
20618
|
}, [
|
|
20575
|
-
createBaseVNode("div", _hoisted_1$
|
|
20619
|
+
createBaseVNode("div", _hoisted_1$N, [
|
|
20576
20620
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
20577
20621
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
20578
20622
|
]),
|
|
@@ -20584,7 +20628,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
20584
20628
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
20585
20629
|
createBaseVNode("div", _hoisted_4$l, [
|
|
20586
20630
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20587
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20631
|
+
return openBlock(), createBlock(_sfc_main$T, {
|
|
20588
20632
|
key: filter2.key + "_" + filter2.value,
|
|
20589
20633
|
filter: filter2,
|
|
20590
20634
|
onRemove: handleRemove
|
|
@@ -20601,8 +20645,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
20601
20645
|
};
|
|
20602
20646
|
}
|
|
20603
20647
|
});
|
|
20604
|
-
const _hoisted_1$
|
|
20605
|
-
const _sfc_main$
|
|
20648
|
+
const _hoisted_1$M = ["href"];
|
|
20649
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
20606
20650
|
__name: "CategoryFilterItem",
|
|
20607
20651
|
props: {
|
|
20608
20652
|
options: {},
|
|
@@ -20639,20 +20683,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
20639
20683
|
"data-cy": "lupa-child-category-item",
|
|
20640
20684
|
href: urlLink.value,
|
|
20641
20685
|
onClick: handleNavigation
|
|
20642
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
20686
|
+
}, toDisplayString(title.value), 9, _hoisted_1$M)
|
|
20643
20687
|
], 2);
|
|
20644
20688
|
};
|
|
20645
20689
|
}
|
|
20646
20690
|
});
|
|
20647
|
-
const _hoisted_1$
|
|
20691
|
+
const _hoisted_1$L = {
|
|
20648
20692
|
class: "lupa-category-filter",
|
|
20649
20693
|
"data-cy": "lupa-category-filter"
|
|
20650
20694
|
};
|
|
20651
20695
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
20652
20696
|
const _hoisted_3$q = ["href"];
|
|
20653
20697
|
const _hoisted_4$k = ["href"];
|
|
20654
|
-
const _hoisted_5$
|
|
20655
|
-
const _sfc_main$
|
|
20698
|
+
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
20699
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
20656
20700
|
__name: "CategoryFilter",
|
|
20657
20701
|
props: {
|
|
20658
20702
|
options: {}
|
|
@@ -20661,6 +20705,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20661
20705
|
const props = __props;
|
|
20662
20706
|
const categoryChildren = ref([]);
|
|
20663
20707
|
const optionStore = useOptionsStore();
|
|
20708
|
+
const searchResultsStore = useSearchResultStore();
|
|
20664
20709
|
const { envOptions, searchResultOptions } = storeToRefs(optionStore);
|
|
20665
20710
|
const hasBackButton = computed(() => {
|
|
20666
20711
|
var _a;
|
|
@@ -20697,6 +20742,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20697
20742
|
return;
|
|
20698
20743
|
}
|
|
20699
20744
|
categoryChildren.value = result2.items;
|
|
20745
|
+
searchResultsStore.setRelatedCategoryChildren(categoryChildren.value);
|
|
20700
20746
|
(_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onCategoryFilterResults) == null ? void 0 : _c.call(_b, {
|
|
20701
20747
|
queryKey: props.options.queryKey,
|
|
20702
20748
|
hasResults: result2.total > 0
|
|
@@ -20738,7 +20784,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20738
20784
|
};
|
|
20739
20785
|
__expose({ fetch: fetch2 });
|
|
20740
20786
|
return (_ctx, _cache) => {
|
|
20741
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20787
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
20742
20788
|
createBaseVNode("div", _hoisted_2$z, [
|
|
20743
20789
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
20744
20790
|
key: 0,
|
|
@@ -20757,9 +20803,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20757
20803
|
onClick: handleNavigationParent
|
|
20758
20804
|
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
20759
20805
|
], 2),
|
|
20760
|
-
createBaseVNode("div", _hoisted_5$
|
|
20806
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
20761
20807
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
20762
|
-
return openBlock(), createBlock(_sfc_main$
|
|
20808
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
20763
20809
|
key: getCategoryKey(child),
|
|
20764
20810
|
item: child,
|
|
20765
20811
|
options: _ctx.options
|
|
@@ -20770,15 +20816,15 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
20770
20816
|
};
|
|
20771
20817
|
}
|
|
20772
20818
|
});
|
|
20773
|
-
const _hoisted_1$
|
|
20819
|
+
const _hoisted_1$K = {
|
|
20774
20820
|
class: "lupa-search-result-facet-term-values",
|
|
20775
20821
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
20776
20822
|
};
|
|
20777
20823
|
const _hoisted_2$y = ["placeholder"];
|
|
20778
20824
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
20779
20825
|
const _hoisted_4$j = ["onClick"];
|
|
20780
|
-
const _hoisted_5$
|
|
20781
|
-
const _hoisted_6$
|
|
20826
|
+
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
20827
|
+
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20782
20828
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
20783
20829
|
const _hoisted_8$2 = {
|
|
20784
20830
|
key: 0,
|
|
@@ -20786,7 +20832,7 @@ const _hoisted_8$2 = {
|
|
|
20786
20832
|
};
|
|
20787
20833
|
const _hoisted_9$2 = { key: 0 };
|
|
20788
20834
|
const _hoisted_10$1 = { key: 1 };
|
|
20789
|
-
const _sfc_main$
|
|
20835
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
20790
20836
|
__name: "TermFacet",
|
|
20791
20837
|
props: {
|
|
20792
20838
|
options: {},
|
|
@@ -20857,7 +20903,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
20857
20903
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
20858
20904
|
};
|
|
20859
20905
|
return (_ctx, _cache) => {
|
|
20860
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20906
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
20861
20907
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
20862
20908
|
key: 0,
|
|
20863
20909
|
class: "lupa-term-filter",
|
|
@@ -20875,12 +20921,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
20875
20921
|
key: item.title,
|
|
20876
20922
|
onClick: ($event) => handleFacetClick(item)
|
|
20877
20923
|
}, [
|
|
20878
|
-
createBaseVNode("div", _hoisted_5$
|
|
20924
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
20879
20925
|
createBaseVNode("span", {
|
|
20880
20926
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
20881
20927
|
}, null, 2)
|
|
20882
20928
|
]),
|
|
20883
|
-
createBaseVNode("div", _hoisted_6$
|
|
20929
|
+
createBaseVNode("div", _hoisted_6$8, [
|
|
20884
20930
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
20885
20931
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
20886
20932
|
])
|
|
@@ -21875,7 +21921,7 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
21875
21921
|
m.render = function(e2, t, r, i, n, o) {
|
|
21876
21922
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
21877
21923
|
}, m.__file = "src/Slider.vue";
|
|
21878
|
-
const _hoisted_1$
|
|
21924
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
|
|
21879
21925
|
const _hoisted_2$x = {
|
|
21880
21926
|
key: 0,
|
|
21881
21927
|
class: "lupa-stats-facet-summary"
|
|
@@ -21888,8 +21934,8 @@ const _hoisted_4$i = {
|
|
|
21888
21934
|
key: 0,
|
|
21889
21935
|
class: "lupa-stats-range-label"
|
|
21890
21936
|
};
|
|
21891
|
-
const _hoisted_5$
|
|
21892
|
-
const _hoisted_6$
|
|
21937
|
+
const _hoisted_5$b = { class: "lupa-stats-from" };
|
|
21938
|
+
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
21893
21939
|
const _hoisted_7$5 = { key: 0 };
|
|
21894
21940
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
21895
21941
|
const _hoisted_9$1 = {
|
|
@@ -21903,7 +21949,7 @@ const _hoisted_13 = {
|
|
|
21903
21949
|
key: 2,
|
|
21904
21950
|
class: "lupa-stats-slider-wrapper"
|
|
21905
21951
|
};
|
|
21906
|
-
const _sfc_main$
|
|
21952
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
21907
21953
|
__name: "StatsFacet",
|
|
21908
21954
|
props: {
|
|
21909
21955
|
options: {},
|
|
@@ -22076,11 +22122,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22076
22122
|
innerSliderRange.value = value;
|
|
22077
22123
|
};
|
|
22078
22124
|
return (_ctx, _cache) => {
|
|
22079
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22125
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
22080
22126
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
22081
22127
|
createBaseVNode("div", null, [
|
|
22082
22128
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22083
|
-
createBaseVNode("div", _hoisted_5$
|
|
22129
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
22084
22130
|
withDirectives(createBaseVNode("input", {
|
|
22085
22131
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
22086
22132
|
type: "text",
|
|
@@ -22089,7 +22135,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22089
22135
|
min: facetMin.value,
|
|
22090
22136
|
pattern: sliderInputFormat.value,
|
|
22091
22137
|
"aria-label": ariaLabelFrom.value
|
|
22092
|
-
}, null, 8, _hoisted_6$
|
|
22138
|
+
}, null, 8, _hoisted_6$7), [
|
|
22093
22139
|
[
|
|
22094
22140
|
vModelText,
|
|
22095
22141
|
fromValue.value,
|
|
@@ -22143,18 +22189,18 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
22143
22189
|
};
|
|
22144
22190
|
}
|
|
22145
22191
|
});
|
|
22146
|
-
const _hoisted_1$
|
|
22192
|
+
const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
|
|
22147
22193
|
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
22148
22194
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
22149
22195
|
const _hoisted_4$h = {
|
|
22150
22196
|
key: 0,
|
|
22151
22197
|
class: "lupa-term-count"
|
|
22152
22198
|
};
|
|
22153
|
-
const _hoisted_5$
|
|
22199
|
+
const _hoisted_5$a = {
|
|
22154
22200
|
key: 0,
|
|
22155
22201
|
class: "lupa-facet-level"
|
|
22156
22202
|
};
|
|
22157
|
-
const _sfc_main$
|
|
22203
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
22158
22204
|
__name: "HierarchyFacetLevel",
|
|
22159
22205
|
props: {
|
|
22160
22206
|
options: {},
|
|
@@ -22200,7 +22246,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22200
22246
|
"data-cy": "lupa-facet-term",
|
|
22201
22247
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
22202
22248
|
}, [
|
|
22203
|
-
createBaseVNode("div", _hoisted_1$
|
|
22249
|
+
createBaseVNode("div", _hoisted_1$I, [
|
|
22204
22250
|
createBaseVNode("span", {
|
|
22205
22251
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
22206
22252
|
}, null, 2)
|
|
@@ -22210,7 +22256,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22210
22256
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22211
22257
|
])
|
|
22212
22258
|
]),
|
|
22213
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
22259
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
22214
22260
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
22215
22261
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
22216
22262
|
key: itemChild.title,
|
|
@@ -22226,13 +22272,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
22226
22272
|
};
|
|
22227
22273
|
}
|
|
22228
22274
|
});
|
|
22229
|
-
const _hoisted_1$
|
|
22275
|
+
const _hoisted_1$H = {
|
|
22230
22276
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
22231
22277
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
22232
22278
|
};
|
|
22233
22279
|
const _hoisted_2$v = { key: 0 };
|
|
22234
22280
|
const _hoisted_3$m = ["placeholder"];
|
|
22235
|
-
const _sfc_main$
|
|
22281
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
22236
22282
|
__name: "HierarchyFacet",
|
|
22237
22283
|
props: {
|
|
22238
22284
|
options: {},
|
|
@@ -22282,7 +22328,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22282
22328
|
showAll.value = true;
|
|
22283
22329
|
};
|
|
22284
22330
|
return (_ctx, _cache) => {
|
|
22285
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22331
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
22286
22332
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
22287
22333
|
withDirectives(createBaseVNode("input", {
|
|
22288
22334
|
class: "lupa-term-filter",
|
|
@@ -22294,7 +22340,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22294
22340
|
])
|
|
22295
22341
|
])) : createCommentVNode("", true),
|
|
22296
22342
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
22297
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22343
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
22298
22344
|
key: item.title,
|
|
22299
22345
|
options: _ctx.options,
|
|
22300
22346
|
item,
|
|
@@ -22314,7 +22360,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
22314
22360
|
};
|
|
22315
22361
|
}
|
|
22316
22362
|
});
|
|
22317
|
-
const _hoisted_1$
|
|
22363
|
+
const _hoisted_1$G = { class: "lupa-facet-label-text" };
|
|
22318
22364
|
const _hoisted_2$u = {
|
|
22319
22365
|
key: 0,
|
|
22320
22366
|
class: "lupa-facet-content",
|
|
@@ -22322,12 +22368,12 @@ const _hoisted_2$u = {
|
|
|
22322
22368
|
};
|
|
22323
22369
|
const __default__$1 = {
|
|
22324
22370
|
components: {
|
|
22325
|
-
TermFacet: _sfc_main$
|
|
22326
|
-
StatsFacet: _sfc_main$
|
|
22327
|
-
HierarchyFacet: _sfc_main$
|
|
22371
|
+
TermFacet: _sfc_main$P,
|
|
22372
|
+
StatsFacet: _sfc_main$O,
|
|
22373
|
+
HierarchyFacet: _sfc_main$M
|
|
22328
22374
|
}
|
|
22329
22375
|
};
|
|
22330
|
-
const _sfc_main$
|
|
22376
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
|
|
22331
22377
|
__name: "FacetDisplay",
|
|
22332
22378
|
props: {
|
|
22333
22379
|
options: {},
|
|
@@ -22439,7 +22485,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22439
22485
|
"data-cy": "lupa-search-result-facet-label",
|
|
22440
22486
|
onClick: toggleFacet
|
|
22441
22487
|
}, [
|
|
22442
|
-
createBaseVNode("div", _hoisted_1$
|
|
22488
|
+
createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
|
|
22443
22489
|
createBaseVNode("div", {
|
|
22444
22490
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
22445
22491
|
}, null, 2)
|
|
@@ -22462,12 +22508,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
22462
22508
|
};
|
|
22463
22509
|
}
|
|
22464
22510
|
}));
|
|
22465
|
-
const _hoisted_1$
|
|
22511
|
+
const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
|
|
22466
22512
|
const _hoisted_2$t = {
|
|
22467
22513
|
key: 0,
|
|
22468
22514
|
class: "lupa-facets-title"
|
|
22469
22515
|
};
|
|
22470
|
-
const _sfc_main$
|
|
22516
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
22471
22517
|
__name: "FacetList",
|
|
22472
22518
|
props: {
|
|
22473
22519
|
options: {},
|
|
@@ -22501,14 +22547,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22501
22547
|
};
|
|
22502
22548
|
return (_ctx, _cache) => {
|
|
22503
22549
|
var _a;
|
|
22504
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22550
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
22505
22551
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
22506
22552
|
createBaseVNode("div", {
|
|
22507
22553
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
22508
22554
|
}, [
|
|
22509
22555
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
|
|
22510
22556
|
var _a2;
|
|
22511
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22557
|
+
return openBlock(), createBlock(_sfc_main$L, {
|
|
22512
22558
|
key: facet.key,
|
|
22513
22559
|
facet,
|
|
22514
22560
|
currentFilters: currentFiltersValue.value,
|
|
@@ -22523,8 +22569,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22523
22569
|
};
|
|
22524
22570
|
}
|
|
22525
22571
|
});
|
|
22526
|
-
const _hoisted_1$
|
|
22527
|
-
const _sfc_main$
|
|
22572
|
+
const _hoisted_1$E = ["onClick"];
|
|
22573
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
22528
22574
|
__name: "FacetsButton",
|
|
22529
22575
|
props: {
|
|
22530
22576
|
options: {}
|
|
@@ -22544,13 +22590,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
22544
22590
|
key: 0,
|
|
22545
22591
|
class: "lupa-facets-button-filter",
|
|
22546
22592
|
onClick: withModifiers(handleClick, ["stop"])
|
|
22547
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
22593
|
+
}, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
|
|
22548
22594
|
};
|
|
22549
22595
|
}
|
|
22550
22596
|
});
|
|
22551
|
-
const _hoisted_1$
|
|
22597
|
+
const _hoisted_1$D = { class: "lupa-search-result-facets" };
|
|
22552
22598
|
const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
|
|
22553
|
-
const _sfc_main$
|
|
22599
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
22554
22600
|
__name: "Facets",
|
|
22555
22601
|
props: {
|
|
22556
22602
|
options: {},
|
|
@@ -22633,8 +22679,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
22633
22679
|
emit2("filter");
|
|
22634
22680
|
};
|
|
22635
22681
|
return (_ctx, _cache) => {
|
|
22636
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22637
|
-
regularFacets.value ? (openBlock(), createBlock(_sfc_main$
|
|
22682
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
22683
|
+
regularFacets.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
22638
22684
|
key: 0,
|
|
22639
22685
|
options: _ctx.options,
|
|
22640
22686
|
facets: regularFacets.value,
|
|
@@ -22645,7 +22691,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
22645
22691
|
onClear: clear2
|
|
22646
22692
|
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
|
|
22647
22693
|
createBaseVNode("div", _hoisted_2$s, [
|
|
22648
|
-
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
22694
|
+
showFilterButton.value ? (openBlock(), createBlock(_sfc_main$J, {
|
|
22649
22695
|
key: 0,
|
|
22650
22696
|
options: _ctx.options,
|
|
22651
22697
|
onFilter: filter2
|
|
@@ -22655,11 +22701,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
22655
22701
|
};
|
|
22656
22702
|
}
|
|
22657
22703
|
});
|
|
22658
|
-
const _hoisted_1$
|
|
22704
|
+
const _hoisted_1$C = {
|
|
22659
22705
|
id: "lupa-search-result-filters",
|
|
22660
22706
|
class: "lupa-search-result-filters"
|
|
22661
22707
|
};
|
|
22662
|
-
const _sfc_main$
|
|
22708
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22663
22709
|
__name: "SearchResultsFilters",
|
|
22664
22710
|
props: {
|
|
22665
22711
|
options: {},
|
|
@@ -22692,19 +22738,19 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
22692
22738
|
__expose({ fetch: fetch2 });
|
|
22693
22739
|
return (_ctx, _cache) => {
|
|
22694
22740
|
var _a;
|
|
22695
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22696
|
-
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
22741
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
22742
|
+
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
22697
22743
|
key: 0,
|
|
22698
22744
|
options: _ctx.options.currentFilters,
|
|
22699
22745
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
22700
22746
|
}, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
|
|
22701
|
-
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$
|
|
22747
|
+
_ctx.options.categories ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
22702
22748
|
key: 1,
|
|
22703
22749
|
options: _ctx.options.categories,
|
|
22704
22750
|
ref_key: "categoryFilters",
|
|
22705
22751
|
ref: categoryFilters
|
|
22706
22752
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
22707
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22753
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
|
|
22708
22754
|
key: 2,
|
|
22709
22755
|
options: _ctx.options.facets,
|
|
22710
22756
|
onFilter: filter2
|
|
@@ -22713,20 +22759,20 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
22713
22759
|
};
|
|
22714
22760
|
}
|
|
22715
22761
|
});
|
|
22716
|
-
const _hoisted_1$
|
|
22762
|
+
const _hoisted_1$B = {
|
|
22717
22763
|
key: 0,
|
|
22718
22764
|
class: "lupa-mobile-filter-sidebar"
|
|
22719
22765
|
};
|
|
22720
22766
|
const _hoisted_2$r = ["onClick"];
|
|
22721
22767
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
22722
22768
|
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
22723
|
-
const _hoisted_5$
|
|
22724
|
-
const _hoisted_6$
|
|
22769
|
+
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
22770
|
+
const _hoisted_6$6 = {
|
|
22725
22771
|
key: 0,
|
|
22726
22772
|
class: "lupa-sidebar-filter-count"
|
|
22727
22773
|
};
|
|
22728
22774
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
22729
|
-
const _sfc_main$
|
|
22775
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
22730
22776
|
__name: "MobileFilterSidebar",
|
|
22731
22777
|
props: {
|
|
22732
22778
|
options: {}
|
|
@@ -22757,16 +22803,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22757
22803
|
handleMobileToggle();
|
|
22758
22804
|
};
|
|
22759
22805
|
return (_ctx, _cache) => {
|
|
22760
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22806
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
22761
22807
|
createBaseVNode("div", {
|
|
22762
22808
|
class: "lupa-sidebar-close",
|
|
22763
22809
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22764
22810
|
}, null, 8, _hoisted_2$r),
|
|
22765
22811
|
createBaseVNode("div", _hoisted_3$l, [
|
|
22766
22812
|
createBaseVNode("div", _hoisted_4$g, [
|
|
22767
|
-
createBaseVNode("div", _hoisted_5$
|
|
22813
|
+
createBaseVNode("div", _hoisted_5$9, [
|
|
22768
22814
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22769
|
-
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
22815
|
+
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22770
22816
|
]),
|
|
22771
22817
|
createBaseVNode("div", {
|
|
22772
22818
|
class: "lupa-filter-toggle-mobile",
|
|
@@ -22774,7 +22820,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22774
22820
|
})
|
|
22775
22821
|
]),
|
|
22776
22822
|
createBaseVNode("div", _hoisted_7$4, [
|
|
22777
|
-
createVNode(_sfc_main$
|
|
22823
|
+
createVNode(_sfc_main$H, {
|
|
22778
22824
|
options: _ctx.options,
|
|
22779
22825
|
expandable: isActiveFiltersExpanded.value,
|
|
22780
22826
|
onFilter: filter2
|
|
@@ -22785,14 +22831,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22785
22831
|
};
|
|
22786
22832
|
}
|
|
22787
22833
|
});
|
|
22788
|
-
const _hoisted_1$
|
|
22834
|
+
const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
|
|
22789
22835
|
const _hoisted_2$q = ["href", "onClick"];
|
|
22790
22836
|
const _hoisted_3$k = {
|
|
22791
22837
|
key: 1,
|
|
22792
22838
|
class: "lupa-search-results-breadcrumb-text"
|
|
22793
22839
|
};
|
|
22794
22840
|
const _hoisted_4$f = { key: 2 };
|
|
22795
|
-
const _sfc_main$
|
|
22841
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22796
22842
|
__name: "SearchResultsBreadcrumbs",
|
|
22797
22843
|
props: {
|
|
22798
22844
|
breadcrumbs: {}
|
|
@@ -22817,7 +22863,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
22817
22863
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
22818
22864
|
};
|
|
22819
22865
|
return (_ctx, _cache) => {
|
|
22820
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
22821
22867
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
22822
22868
|
return openBlock(), createElementBlock("span", {
|
|
22823
22869
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -22839,11 +22885,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
22839
22885
|
};
|
|
22840
22886
|
}
|
|
22841
22887
|
});
|
|
22842
|
-
const _hoisted_1$
|
|
22888
|
+
const _hoisted_1$z = {
|
|
22843
22889
|
id: "lupa-search-result-filters",
|
|
22844
22890
|
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
22845
22891
|
};
|
|
22846
|
-
const _sfc_main$
|
|
22892
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22847
22893
|
__name: "FiltersTopDropdown",
|
|
22848
22894
|
props: {
|
|
22849
22895
|
options: {}
|
|
@@ -22855,8 +22901,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22855
22901
|
};
|
|
22856
22902
|
return (_ctx, _cache) => {
|
|
22857
22903
|
var _a;
|
|
22858
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22859
|
-
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$
|
|
22904
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
22905
|
+
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
|
|
22860
22906
|
key: 0,
|
|
22861
22907
|
options: _ctx.options.facets,
|
|
22862
22908
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -22867,8 +22913,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22867
22913
|
};
|
|
22868
22914
|
}
|
|
22869
22915
|
});
|
|
22870
|
-
const _hoisted_1$
|
|
22871
|
-
const _sfc_main$
|
|
22916
|
+
const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
|
|
22917
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22872
22918
|
__name: "SearchResultsLayoutSelection",
|
|
22873
22919
|
setup(__props) {
|
|
22874
22920
|
const searchResultStore = useSearchResultStore();
|
|
@@ -22879,7 +22925,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
22879
22925
|
searchResultStore.setLayout(layout2);
|
|
22880
22926
|
};
|
|
22881
22927
|
return (_ctx, _cache) => {
|
|
22882
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22928
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
22883
22929
|
createBaseVNode("div", {
|
|
22884
22930
|
class: normalizeClass([
|
|
22885
22931
|
"lupa-layout-selection-grid",
|
|
@@ -22901,11 +22947,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
22901
22947
|
};
|
|
22902
22948
|
}
|
|
22903
22949
|
});
|
|
22904
|
-
const _hoisted_1$
|
|
22950
|
+
const _hoisted_1$x = {
|
|
22905
22951
|
key: 0,
|
|
22906
22952
|
class: "lupa-mobile-toggle-filter-count"
|
|
22907
22953
|
};
|
|
22908
|
-
const _sfc_main$
|
|
22954
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
22909
22955
|
__name: "SearchResultsMobileToggle",
|
|
22910
22956
|
props: {
|
|
22911
22957
|
label: {},
|
|
@@ -22923,12 +22969,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
22923
22969
|
onClick: handleMobileToggle
|
|
22924
22970
|
}, [
|
|
22925
22971
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
22926
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
22972
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
22927
22973
|
], 2);
|
|
22928
22974
|
};
|
|
22929
22975
|
}
|
|
22930
22976
|
});
|
|
22931
|
-
const _hoisted_1$
|
|
22977
|
+
const _hoisted_1$w = {
|
|
22932
22978
|
key: 0,
|
|
22933
22979
|
id: "lupa-search-results-page-select",
|
|
22934
22980
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -22942,7 +22988,7 @@ const _hoisted_4$e = {
|
|
|
22942
22988
|
key: 0,
|
|
22943
22989
|
class: "lupa-page-number-separator"
|
|
22944
22990
|
};
|
|
22945
|
-
const _sfc_main$
|
|
22991
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
22946
22992
|
__name: "SearchResultsPageSelect",
|
|
22947
22993
|
props: {
|
|
22948
22994
|
lastPageLabel: {},
|
|
@@ -23019,7 +23065,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23019
23065
|
}
|
|
23020
23066
|
};
|
|
23021
23067
|
return (_ctx, _cache) => {
|
|
23022
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23068
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
23023
23069
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
23024
23070
|
key: 0,
|
|
23025
23071
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -23063,15 +23109,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23063
23109
|
};
|
|
23064
23110
|
}
|
|
23065
23111
|
});
|
|
23066
|
-
const _hoisted_1$
|
|
23112
|
+
const _hoisted_1$v = {
|
|
23067
23113
|
id: "lupa-search-results-page-size",
|
|
23068
23114
|
"data-cy": "lupa-search-results-page-size"
|
|
23069
23115
|
};
|
|
23070
23116
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
23071
23117
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
23072
23118
|
const _hoisted_4$d = ["aria-label"];
|
|
23073
|
-
const _hoisted_5$
|
|
23074
|
-
const _sfc_main$
|
|
23119
|
+
const _hoisted_5$8 = ["value"];
|
|
23120
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23075
23121
|
__name: "SearchResultsPageSize",
|
|
23076
23122
|
props: {
|
|
23077
23123
|
labels: {},
|
|
@@ -23099,7 +23145,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23099
23145
|
});
|
|
23100
23146
|
};
|
|
23101
23147
|
return (_ctx, _cache) => {
|
|
23102
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23148
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
23103
23149
|
createBaseVNode("div", _hoisted_2$o, [
|
|
23104
23150
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
|
|
23105
23151
|
createBaseVNode("select", {
|
|
@@ -23114,7 +23160,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23114
23160
|
return openBlock(), createElementBlock("option", {
|
|
23115
23161
|
key: option,
|
|
23116
23162
|
value: option
|
|
23117
|
-
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$
|
|
23163
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$8);
|
|
23118
23164
|
}), 128))
|
|
23119
23165
|
], 40, _hoisted_4$d)
|
|
23120
23166
|
])
|
|
@@ -23122,15 +23168,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23122
23168
|
};
|
|
23123
23169
|
}
|
|
23124
23170
|
});
|
|
23125
|
-
const _hoisted_1$
|
|
23171
|
+
const _hoisted_1$u = {
|
|
23126
23172
|
id: "lupa-search-results-sort",
|
|
23127
23173
|
class: "lupa-search-results-sort"
|
|
23128
23174
|
};
|
|
23129
23175
|
const _hoisted_2$n = { id: "lupa-select" };
|
|
23130
23176
|
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
23131
23177
|
const _hoisted_4$c = ["aria-label"];
|
|
23132
|
-
const _hoisted_5$
|
|
23133
|
-
const _sfc_main$
|
|
23178
|
+
const _hoisted_5$7 = ["value"];
|
|
23179
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23134
23180
|
__name: "SearchResultsSort",
|
|
23135
23181
|
props: {
|
|
23136
23182
|
options: {},
|
|
@@ -23179,7 +23225,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23179
23225
|
previousKey.value = selectedKey.value;
|
|
23180
23226
|
};
|
|
23181
23227
|
return (_ctx, _cache) => {
|
|
23182
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23228
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
23183
23229
|
createBaseVNode("div", _hoisted_2$n, [
|
|
23184
23230
|
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
23185
23231
|
withDirectives(createBaseVNode("select", {
|
|
@@ -23194,7 +23240,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23194
23240
|
return openBlock(), createElementBlock("option", {
|
|
23195
23241
|
key: option.key,
|
|
23196
23242
|
value: option.key
|
|
23197
|
-
}, toDisplayString(option.label), 9, _hoisted_5$
|
|
23243
|
+
}, toDisplayString(option.label), 9, _hoisted_5$7);
|
|
23198
23244
|
}), 128))
|
|
23199
23245
|
], 40, _hoisted_4$c), [
|
|
23200
23246
|
[vModelSelect, selectedKey.value]
|
|
@@ -23204,22 +23250,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23204
23250
|
};
|
|
23205
23251
|
}
|
|
23206
23252
|
});
|
|
23207
|
-
const _hoisted_1$
|
|
23253
|
+
const _hoisted_1$t = { class: "lupa-toolbar-left" };
|
|
23208
23254
|
const _hoisted_2$m = {
|
|
23209
23255
|
key: 0,
|
|
23210
23256
|
class: "lupa-toolbar-right-title"
|
|
23211
23257
|
};
|
|
23212
23258
|
const _hoisted_3$g = { key: 2 };
|
|
23213
23259
|
const _hoisted_4$b = { key: 4 };
|
|
23214
|
-
const _hoisted_5$
|
|
23215
|
-
const _hoisted_6$
|
|
23260
|
+
const _hoisted_5$6 = { key: 6 };
|
|
23261
|
+
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23216
23262
|
const _hoisted_7$3 = {
|
|
23217
23263
|
key: 0,
|
|
23218
23264
|
class: "lupa-toolbar-right-title"
|
|
23219
23265
|
};
|
|
23220
23266
|
const _hoisted_8 = { key: 2 };
|
|
23221
23267
|
const _hoisted_9 = { key: 4 };
|
|
23222
|
-
const _sfc_main$
|
|
23268
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23223
23269
|
__name: "SearchResultsToolbar",
|
|
23224
23270
|
props: {
|
|
23225
23271
|
options: {},
|
|
@@ -23326,34 +23372,34 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23326
23372
|
id: "lupa-search-results-toolbar",
|
|
23327
23373
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
23328
23374
|
}, [
|
|
23329
|
-
createBaseVNode("div", _hoisted_1$
|
|
23375
|
+
createBaseVNode("div", _hoisted_1$t, [
|
|
23330
23376
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
23331
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$
|
|
23332
|
-
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$
|
|
23377
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$D, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
23378
|
+
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$V, {
|
|
23333
23379
|
key: 3,
|
|
23334
23380
|
label: searchSummaryLabel.value,
|
|
23335
23381
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23336
23382
|
onClear: handleClearAll
|
|
23337
23383
|
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
23338
|
-
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$
|
|
23384
|
+
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
23339
23385
|
key: 5,
|
|
23340
23386
|
options: paginationOptions.value.pageSelect,
|
|
23341
23387
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
23342
23388
|
"first-page-label": paginationOptions.value.labels.showLess
|
|
23343
|
-
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
23389
|
+
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$6))
|
|
23344
23390
|
]),
|
|
23345
|
-
createBaseVNode("div", _hoisted_6$
|
|
23391
|
+
createBaseVNode("div", _hoisted_6$5, [
|
|
23346
23392
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23347
|
-
createVNode(_sfc_main$
|
|
23393
|
+
createVNode(_sfc_main$C, {
|
|
23348
23394
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
23349
23395
|
"show-filter-count": showMobileFilterCount.value
|
|
23350
23396
|
}, null, 8, ["label", "show-filter-count"]),
|
|
23351
|
-
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$
|
|
23397
|
+
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$A, {
|
|
23352
23398
|
key: 1,
|
|
23353
23399
|
options: paginationOptions.value.pageSize,
|
|
23354
23400
|
labels: paginationOptions.value.labels
|
|
23355
23401
|
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
23356
|
-
sortOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
23402
|
+
sortOptions.value ? (openBlock(), createBlock(_sfc_main$z, {
|
|
23357
23403
|
key: 3,
|
|
23358
23404
|
options: sortOptions.value,
|
|
23359
23405
|
callbacks: callbacks.value
|
|
@@ -23363,7 +23409,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23363
23409
|
};
|
|
23364
23410
|
}
|
|
23365
23411
|
});
|
|
23366
|
-
const _sfc_main$
|
|
23412
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23367
23413
|
__name: "SearchResultsProductImage",
|
|
23368
23414
|
props: {
|
|
23369
23415
|
item: {},
|
|
@@ -23371,7 +23417,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23371
23417
|
},
|
|
23372
23418
|
setup(__props) {
|
|
23373
23419
|
return (_ctx, _cache) => {
|
|
23374
|
-
return openBlock(), createBlock(_sfc_main$
|
|
23420
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
23375
23421
|
item: _ctx.item,
|
|
23376
23422
|
options: _ctx.options,
|
|
23377
23423
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -23380,16 +23426,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23380
23426
|
};
|
|
23381
23427
|
}
|
|
23382
23428
|
});
|
|
23383
|
-
const _hoisted_1$
|
|
23429
|
+
const _hoisted_1$s = ["title", "innerHTML"];
|
|
23384
23430
|
const _hoisted_2$l = ["title"];
|
|
23385
23431
|
const _hoisted_3$f = ["href", "innerHTML"];
|
|
23386
23432
|
const _hoisted_4$a = ["title"];
|
|
23387
|
-
const _hoisted_5$
|
|
23433
|
+
const _hoisted_5$5 = {
|
|
23388
23434
|
key: 0,
|
|
23389
23435
|
class: "lupa-search-results-product-title-text"
|
|
23390
23436
|
};
|
|
23391
|
-
const _hoisted_6$
|
|
23392
|
-
const _sfc_main$
|
|
23437
|
+
const _hoisted_6$4 = ["href"];
|
|
23438
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23393
23439
|
__name: "SearchResultsProductTitle",
|
|
23394
23440
|
props: {
|
|
23395
23441
|
item: {},
|
|
@@ -23426,7 +23472,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
23426
23472
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23427
23473
|
title: sanitizedTitle.value,
|
|
23428
23474
|
innerHTML: sanitizedTitle.value
|
|
23429
|
-
}, null, 12, _hoisted_1$
|
|
23475
|
+
}, null, 12, _hoisted_1$s)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
|
|
23430
23476
|
key: 1,
|
|
23431
23477
|
class: "lupa-search-results-product-title",
|
|
23432
23478
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -23444,19 +23490,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
23444
23490
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23445
23491
|
title: title.value
|
|
23446
23492
|
}, [
|
|
23447
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
23493
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
23448
23494
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
23449
23495
|
key: 1,
|
|
23450
23496
|
href: _ctx.link,
|
|
23451
23497
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23452
23498
|
onClick: handleNavigation
|
|
23453
|
-
}, toDisplayString(title.value), 9, _hoisted_6$
|
|
23499
|
+
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23454
23500
|
], 12, _hoisted_4$a));
|
|
23455
23501
|
};
|
|
23456
23502
|
}
|
|
23457
23503
|
});
|
|
23458
|
-
const _hoisted_1$
|
|
23459
|
-
const _sfc_main$
|
|
23504
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
23505
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23460
23506
|
__name: "SearchResultsProductDescription",
|
|
23461
23507
|
props: {
|
|
23462
23508
|
item: {},
|
|
@@ -23483,7 +23529,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23483
23529
|
class: "lupa-search-results-product-description",
|
|
23484
23530
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
23485
23531
|
innerHTML: sanitizedDescription.value
|
|
23486
|
-
}, null, 12, _hoisted_1$
|
|
23532
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
23487
23533
|
key: 1,
|
|
23488
23534
|
class: "lupa-search-results-product-description",
|
|
23489
23535
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -23491,15 +23537,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23491
23537
|
};
|
|
23492
23538
|
}
|
|
23493
23539
|
});
|
|
23494
|
-
const _hoisted_1$
|
|
23540
|
+
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
23495
23541
|
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
23496
23542
|
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
23497
23543
|
const _hoisted_4$9 = ["innerHTML"];
|
|
23498
|
-
const _hoisted_5$
|
|
23499
|
-
const _hoisted_6$
|
|
23544
|
+
const _hoisted_5$4 = { class: "lupa-rating-wrapper" };
|
|
23545
|
+
const _hoisted_6$3 = ["innerHTML"];
|
|
23500
23546
|
const _hoisted_7$2 = ["href"];
|
|
23501
23547
|
const STAR_COUNT = 5;
|
|
23502
|
-
const _sfc_main$
|
|
23548
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23503
23549
|
__name: "SearchResultsProductRating",
|
|
23504
23550
|
props: {
|
|
23505
23551
|
item: {},
|
|
@@ -23530,7 +23576,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23530
23576
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
23531
23577
|
});
|
|
23532
23578
|
return (_ctx, _cache) => {
|
|
23533
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23579
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
23534
23580
|
createBaseVNode("div", _hoisted_2$k, [
|
|
23535
23581
|
createBaseVNode("div", _hoisted_3$e, [
|
|
23536
23582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -23541,7 +23587,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23541
23587
|
}, null, 8, _hoisted_4$9);
|
|
23542
23588
|
}), 128))
|
|
23543
23589
|
]),
|
|
23544
|
-
createBaseVNode("div", _hoisted_5$
|
|
23590
|
+
createBaseVNode("div", _hoisted_5$4, [
|
|
23545
23591
|
createBaseVNode("div", {
|
|
23546
23592
|
class: "lupa-ratings-highlighted",
|
|
23547
23593
|
style: normalizeStyle({ width: ratingPercentage.value + "%" })
|
|
@@ -23551,7 +23597,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23551
23597
|
key: index,
|
|
23552
23598
|
innerHTML: star,
|
|
23553
23599
|
class: "lupa-rating lupa-rating-highlighted"
|
|
23554
|
-
}, null, 8, _hoisted_6$
|
|
23600
|
+
}, null, 8, _hoisted_6$3);
|
|
23555
23601
|
}), 128))
|
|
23556
23602
|
], 4)
|
|
23557
23603
|
])
|
|
@@ -23564,11 +23610,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23564
23610
|
};
|
|
23565
23611
|
}
|
|
23566
23612
|
});
|
|
23567
|
-
const _hoisted_1$
|
|
23613
|
+
const _hoisted_1$p = {
|
|
23568
23614
|
class: "lupa-search-results-product-regular-price",
|
|
23569
23615
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
23570
23616
|
};
|
|
23571
|
-
const _sfc_main$
|
|
23617
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23572
23618
|
__name: "SearchResultsProductRegularPrice",
|
|
23573
23619
|
props: {
|
|
23574
23620
|
item: {},
|
|
@@ -23586,11 +23632,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23586
23632
|
);
|
|
23587
23633
|
});
|
|
23588
23634
|
return (_ctx, _cache) => {
|
|
23589
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23635
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
|
|
23590
23636
|
};
|
|
23591
23637
|
}
|
|
23592
23638
|
});
|
|
23593
|
-
const _sfc_main$
|
|
23639
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23594
23640
|
__name: "SearchResultsProductPrice",
|
|
23595
23641
|
props: {
|
|
23596
23642
|
item: {},
|
|
@@ -23620,10 +23666,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
23620
23666
|
};
|
|
23621
23667
|
}
|
|
23622
23668
|
});
|
|
23623
|
-
const _hoisted_1$
|
|
23669
|
+
const _hoisted_1$o = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
23624
23670
|
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
23625
23671
|
const _hoisted_3$d = ["onClick", "disabled"];
|
|
23626
|
-
const _sfc_main$
|
|
23672
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23627
23673
|
__name: "SearchResultsProductAddToCart",
|
|
23628
23674
|
props: {
|
|
23629
23675
|
item: {},
|
|
@@ -23656,7 +23702,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
23656
23702
|
loading.value = false;
|
|
23657
23703
|
});
|
|
23658
23704
|
return (_ctx, _cache) => {
|
|
23659
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23705
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
23660
23706
|
createBaseVNode("div", _hoisted_2$j, [
|
|
23661
23707
|
createBaseVNode("button", {
|
|
23662
23708
|
onClick: withModifiers(handleClick, ["stop"]),
|
|
@@ -23669,12 +23715,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
23669
23715
|
};
|
|
23670
23716
|
}
|
|
23671
23717
|
});
|
|
23672
|
-
const _hoisted_1$
|
|
23718
|
+
const _hoisted_1$n = ["innerHTML"];
|
|
23673
23719
|
const _hoisted_2$i = { key: 0 };
|
|
23674
23720
|
const _hoisted_3$c = { key: 1 };
|
|
23675
23721
|
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
23676
|
-
const _hoisted_5$
|
|
23677
|
-
const _sfc_main$
|
|
23722
|
+
const _hoisted_5$3 = { class: "lupa-search-box-custom-text" };
|
|
23723
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23678
23724
|
__name: "SearchResultsProductCustom",
|
|
23679
23725
|
props: {
|
|
23680
23726
|
item: {},
|
|
@@ -23712,20 +23758,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
23712
23758
|
key: 0,
|
|
23713
23759
|
class: className.value,
|
|
23714
23760
|
innerHTML: text.value
|
|
23715
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23761
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$n)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
23716
23762
|
key: 1,
|
|
23717
23763
|
class: className.value
|
|
23718
23764
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23719
23765
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
23720
23766
|
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
23721
|
-
createBaseVNode("div", _hoisted_5$
|
|
23767
|
+
createBaseVNode("div", _hoisted_5$3, toDisplayString(text.value), 1)
|
|
23722
23768
|
]))
|
|
23723
23769
|
], 16));
|
|
23724
23770
|
};
|
|
23725
23771
|
}
|
|
23726
23772
|
});
|
|
23727
|
-
const _hoisted_1$
|
|
23728
|
-
const _sfc_main$
|
|
23773
|
+
const _hoisted_1$m = ["innerHTML"];
|
|
23774
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
23729
23775
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
23730
23776
|
props: {
|
|
23731
23777
|
item: {},
|
|
@@ -23756,15 +23802,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
23756
23802
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
23757
23803
|
class: className.value,
|
|
23758
23804
|
innerHTML: text.value
|
|
23759
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
23805
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m);
|
|
23760
23806
|
};
|
|
23761
23807
|
}
|
|
23762
23808
|
});
|
|
23763
|
-
const _hoisted_1$
|
|
23809
|
+
const _hoisted_1$l = { id: "lupa-search-results-rating" };
|
|
23764
23810
|
const _hoisted_2$h = ["innerHTML"];
|
|
23765
23811
|
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
23766
23812
|
const _hoisted_4$7 = ["href"];
|
|
23767
|
-
const _sfc_main$
|
|
23813
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
23768
23814
|
__name: "SearchResultsProductSingleStarRating",
|
|
23769
23815
|
props: {
|
|
23770
23816
|
item: {},
|
|
@@ -23792,7 +23838,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
23792
23838
|
return RATING_STAR_HTML;
|
|
23793
23839
|
});
|
|
23794
23840
|
return (_ctx, _cache) => {
|
|
23795
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23841
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
23796
23842
|
createBaseVNode("div", {
|
|
23797
23843
|
innerHTML: star.value,
|
|
23798
23844
|
class: "lupa-rating lupa-rating-highlighted"
|
|
@@ -23808,19 +23854,19 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
23808
23854
|
});
|
|
23809
23855
|
const __default__ = {
|
|
23810
23856
|
components: {
|
|
23811
|
-
SearchResultsProductImage: _sfc_main$
|
|
23812
|
-
SearchResultsProductTitle: _sfc_main$
|
|
23813
|
-
SearchResultsProductDescription: _sfc_main$
|
|
23814
|
-
SearchResultsProductRating: _sfc_main$
|
|
23815
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
23816
|
-
SearchResultsProductPrice: _sfc_main$
|
|
23817
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
23818
|
-
SearchResultsProductCustom: _sfc_main$
|
|
23819
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
23820
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
23821
|
-
}
|
|
23822
|
-
};
|
|
23823
|
-
const _sfc_main$
|
|
23857
|
+
SearchResultsProductImage: _sfc_main$x,
|
|
23858
|
+
SearchResultsProductTitle: _sfc_main$w,
|
|
23859
|
+
SearchResultsProductDescription: _sfc_main$v,
|
|
23860
|
+
SearchResultsProductRating: _sfc_main$u,
|
|
23861
|
+
SearchResultsProductRegularPrice: _sfc_main$t,
|
|
23862
|
+
SearchResultsProductPrice: _sfc_main$s,
|
|
23863
|
+
SearchResultsProductAddToCart: _sfc_main$r,
|
|
23864
|
+
SearchResultsProductCustom: _sfc_main$q,
|
|
23865
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$p,
|
|
23866
|
+
SearchResultsProductSingleStarRating: _sfc_main$o
|
|
23867
|
+
}
|
|
23868
|
+
};
|
|
23869
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
|
|
23824
23870
|
__name: "SearchResultsProductCardElement",
|
|
23825
23871
|
props: {
|
|
23826
23872
|
item: {},
|
|
@@ -23896,13 +23942,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
23896
23942
|
};
|
|
23897
23943
|
}
|
|
23898
23944
|
}));
|
|
23899
|
-
const _hoisted_1$
|
|
23945
|
+
const _hoisted_1$k = ["href"];
|
|
23900
23946
|
const _hoisted_2$g = {
|
|
23901
23947
|
key: 0,
|
|
23902
23948
|
class: "lupa-out-of-stock"
|
|
23903
23949
|
};
|
|
23904
23950
|
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
23905
|
-
const _sfc_main$
|
|
23951
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
23906
23952
|
__name: "SearchResultsProductCard",
|
|
23907
23953
|
props: {
|
|
23908
23954
|
product: {},
|
|
@@ -24054,7 +24100,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24054
24100
|
"data-cy": "lupa-search-result-product-card",
|
|
24055
24101
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
24056
24102
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
24057
|
-
createVNode(_sfc_main$
|
|
24103
|
+
createVNode(_sfc_main$12, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24058
24104
|
createBaseVNode("div", {
|
|
24059
24105
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
24060
24106
|
}, [
|
|
@@ -24064,7 +24110,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24064
24110
|
onClick: handleNavigation
|
|
24065
24111
|
}, [
|
|
24066
24112
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
|
|
24067
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24113
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24068
24114
|
class: "lupa-search-results-product-element",
|
|
24069
24115
|
item: _ctx.product,
|
|
24070
24116
|
element,
|
|
@@ -24075,16 +24121,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24075
24121
|
onProductEvent: handleProductEvent
|
|
24076
24122
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
24077
24123
|
}), 128)),
|
|
24078
|
-
createVNode(_sfc_main$
|
|
24124
|
+
createVNode(_sfc_main$12, {
|
|
24079
24125
|
options: badgesOptions.value,
|
|
24080
24126
|
position: "image",
|
|
24081
24127
|
class: "lupa-image-badges"
|
|
24082
24128
|
}, null, 8, ["options"]),
|
|
24083
24129
|
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24084
|
-
], 8, _hoisted_1$
|
|
24130
|
+
], 8, _hoisted_1$k),
|
|
24085
24131
|
createBaseVNode("div", _hoisted_3$a, [
|
|
24086
24132
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24087
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24133
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24088
24134
|
class: "lupa-search-results-product-element",
|
|
24089
24135
|
item: _ctx.product,
|
|
24090
24136
|
element,
|
|
@@ -24102,7 +24148,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24102
24148
|
class: normalizeClass("lupa-element-group-" + group)
|
|
24103
24149
|
}, [
|
|
24104
24150
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
|
|
24105
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24151
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
24106
24152
|
class: "lupa-search-results-product-element",
|
|
24107
24153
|
item: _ctx.product,
|
|
24108
24154
|
element,
|
|
@@ -24120,7 +24166,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24120
24166
|
};
|
|
24121
24167
|
}
|
|
24122
24168
|
});
|
|
24123
|
-
const _hoisted_1$
|
|
24169
|
+
const _hoisted_1$j = {
|
|
24124
24170
|
id: "lupa-search-results-similar-queries",
|
|
24125
24171
|
"data-cy": "lupa-search-results-similar-queries"
|
|
24126
24172
|
};
|
|
@@ -24130,13 +24176,13 @@ const _hoisted_3$9 = {
|
|
|
24130
24176
|
"data-cy": "lupa-similar-query-label"
|
|
24131
24177
|
};
|
|
24132
24178
|
const _hoisted_4$6 = ["onClick"];
|
|
24133
|
-
const _hoisted_5$
|
|
24134
|
-
const _hoisted_6$
|
|
24179
|
+
const _hoisted_5$2 = ["innerHTML"];
|
|
24180
|
+
const _hoisted_6$2 = { key: 0 };
|
|
24135
24181
|
const _hoisted_7$1 = {
|
|
24136
24182
|
class: "lupa-products",
|
|
24137
24183
|
"data-cy": "lupa-products"
|
|
24138
24184
|
};
|
|
24139
|
-
const _sfc_main$
|
|
24185
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24140
24186
|
__name: "SearchResultsSimilarQueries",
|
|
24141
24187
|
props: {
|
|
24142
24188
|
labels: {},
|
|
@@ -24166,7 +24212,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24166
24212
|
paramsStore.goToResults({ searchText, facet });
|
|
24167
24213
|
};
|
|
24168
24214
|
return (_ctx, _cache) => {
|
|
24169
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24215
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24170
24216
|
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
24171
24217
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
24172
24218
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
@@ -24180,13 +24226,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24180
24226
|
}, [
|
|
24181
24227
|
createBaseVNode("span", {
|
|
24182
24228
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
24183
|
-
}, null, 8, _hoisted_5$
|
|
24184
|
-
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
24229
|
+
}, null, 8, _hoisted_5$2),
|
|
24230
|
+
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
24185
24231
|
], 8, _hoisted_4$6)
|
|
24186
24232
|
]),
|
|
24187
24233
|
createBaseVNode("div", _hoisted_7$1, [
|
|
24188
24234
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
24189
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24235
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24190
24236
|
style: normalizeStyle(_ctx.columnSize),
|
|
24191
24237
|
key: getDocumentKey(index2, product),
|
|
24192
24238
|
product,
|
|
@@ -24200,7 +24246,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24200
24246
|
};
|
|
24201
24247
|
}
|
|
24202
24248
|
});
|
|
24203
|
-
const _hoisted_1$
|
|
24249
|
+
const _hoisted_1$i = {
|
|
24204
24250
|
key: 0,
|
|
24205
24251
|
class: "lupa-results-additional-panel"
|
|
24206
24252
|
};
|
|
@@ -24208,7 +24254,7 @@ const _hoisted_2$e = {
|
|
|
24208
24254
|
class: "lupa-results-additional-panel-items",
|
|
24209
24255
|
"data-cy": "lupa-results-additional-panel-items"
|
|
24210
24256
|
};
|
|
24211
|
-
const _sfc_main$
|
|
24257
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24212
24258
|
__name: "AdditionalPanel",
|
|
24213
24259
|
props: {
|
|
24214
24260
|
panel: {},
|
|
@@ -24280,10 +24326,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24280
24326
|
handleQueryChange();
|
|
24281
24327
|
});
|
|
24282
24328
|
return (_ctx, _cache) => {
|
|
24283
|
-
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24329
|
+
return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
24284
24330
|
createBaseVNode("div", _hoisted_2$e, [
|
|
24285
24331
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
24286
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24332
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24287
24333
|
key: index,
|
|
24288
24334
|
product: item,
|
|
24289
24335
|
options: _ctx.panel,
|
|
@@ -24301,11 +24347,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24301
24347
|
};
|
|
24302
24348
|
}
|
|
24303
24349
|
});
|
|
24304
|
-
const _hoisted_1$
|
|
24350
|
+
const _hoisted_1$h = {
|
|
24305
24351
|
key: 0,
|
|
24306
24352
|
class: "lupa-results-additional-panels"
|
|
24307
24353
|
};
|
|
24308
|
-
const _sfc_main$
|
|
24354
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24309
24355
|
__name: "AdditionalPanels",
|
|
24310
24356
|
props: {
|
|
24311
24357
|
options: {},
|
|
@@ -24322,9 +24368,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24322
24368
|
return locationPanels.value.length > 0;
|
|
24323
24369
|
});
|
|
24324
24370
|
return (_ctx, _cache) => {
|
|
24325
|
-
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24371
|
+
return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24326
24372
|
(openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
|
|
24327
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24373
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
24328
24374
|
key: panel.queryKey,
|
|
24329
24375
|
panel,
|
|
24330
24376
|
options: _ctx.sdkOptions
|
|
@@ -24341,11 +24387,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
24341
24387
|
}
|
|
24342
24388
|
return target;
|
|
24343
24389
|
};
|
|
24344
|
-
const _sfc_main$
|
|
24345
|
-
const _hoisted_1$
|
|
24390
|
+
const _sfc_main$i = {};
|
|
24391
|
+
const _hoisted_1$g = { class: "lupa-spinner-wrapper" };
|
|
24346
24392
|
const _hoisted_2$d = { class: "lupa-spinner" };
|
|
24347
24393
|
function _sfc_render(_ctx, _cache) {
|
|
24348
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24394
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
24349
24395
|
createBaseVNode("div", _hoisted_2$d, [
|
|
24350
24396
|
(openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
|
|
24351
24397
|
return createBaseVNode("div", { key: x2 });
|
|
@@ -24353,8 +24399,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
24353
24399
|
])
|
|
24354
24400
|
]);
|
|
24355
24401
|
}
|
|
24356
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24357
|
-
const _hoisted_1$
|
|
24402
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
|
|
24403
|
+
const _hoisted_1$f = {
|
|
24358
24404
|
id: "lupa-search-results-similar-results",
|
|
24359
24405
|
"data-cy": "lupa-search-results-similar-results"
|
|
24360
24406
|
};
|
|
@@ -24363,7 +24409,7 @@ const _hoisted_3$8 = {
|
|
|
24363
24409
|
class: "lupa-products",
|
|
24364
24410
|
"data-cy": "lupa-products"
|
|
24365
24411
|
};
|
|
24366
|
-
const _sfc_main$
|
|
24412
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24367
24413
|
__name: "SearchResultsSimilarResults",
|
|
24368
24414
|
props: {
|
|
24369
24415
|
columnSize: {},
|
|
@@ -24379,11 +24425,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24379
24425
|
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
24380
24426
|
};
|
|
24381
24427
|
return (_ctx, _cache) => {
|
|
24382
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24428
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24383
24429
|
createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
24384
24430
|
createBaseVNode("div", _hoisted_3$8, [
|
|
24385
24431
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
24386
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24432
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24387
24433
|
style: normalizeStyle(_ctx.columnSize),
|
|
24388
24434
|
key: getDocumentKey(index, product),
|
|
24389
24435
|
product,
|
|
@@ -24395,7 +24441,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24395
24441
|
};
|
|
24396
24442
|
}
|
|
24397
24443
|
});
|
|
24398
|
-
const _hoisted_1$
|
|
24444
|
+
const _hoisted_1$e = { id: "lupa-search-results-products" };
|
|
24399
24445
|
const _hoisted_2$b = {
|
|
24400
24446
|
class: "lupa-products",
|
|
24401
24447
|
"data-cy": "lupa-products"
|
|
@@ -24410,9 +24456,9 @@ const _hoisted_4$5 = {
|
|
|
24410
24456
|
class: "lupa-empty-results",
|
|
24411
24457
|
"data-cy": "lupa-no-results"
|
|
24412
24458
|
};
|
|
24413
|
-
const _hoisted_5$
|
|
24414
|
-
const _hoisted_6$
|
|
24415
|
-
const _sfc_main$
|
|
24459
|
+
const _hoisted_5$1 = { key: 4 };
|
|
24460
|
+
const _hoisted_6$1 = { key: 5 };
|
|
24461
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
24416
24462
|
__name: "SearchResultsProducts",
|
|
24417
24463
|
props: {
|
|
24418
24464
|
options: {},
|
|
@@ -24519,24 +24565,24 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24519
24565
|
};
|
|
24520
24566
|
return (_ctx, _cache) => {
|
|
24521
24567
|
var _a;
|
|
24522
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24568
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
24523
24569
|
unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
|
|
24524
24570
|
key: 0,
|
|
24525
24571
|
class: "lupa-loader"
|
|
24526
24572
|
})) : createCommentVNode("", true),
|
|
24527
24573
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24528
|
-
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24574
|
+
showTopFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
|
|
24529
24575
|
key: 0,
|
|
24530
24576
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
24531
24577
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24532
|
-
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$
|
|
24578
|
+
showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$y, {
|
|
24533
24579
|
key: 1,
|
|
24534
24580
|
class: "lupa-toolbar-mobile",
|
|
24535
24581
|
options: _ctx.options,
|
|
24536
24582
|
"pagination-location": "top",
|
|
24537
24583
|
onFilter: filter2
|
|
24538
24584
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24539
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24585
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$S, {
|
|
24540
24586
|
key: 2,
|
|
24541
24587
|
class: normalizeClass(currentFiltersClass.value),
|
|
24542
24588
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24544,18 +24590,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24544
24590
|
expandable: !desktopFiltersExpanded.value
|
|
24545
24591
|
}, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
|
|
24546
24592
|
], 64)) : createCommentVNode("", true),
|
|
24547
|
-
createVNode(_sfc_main$
|
|
24593
|
+
createVNode(_sfc_main$j, {
|
|
24548
24594
|
options: _ctx.options,
|
|
24549
24595
|
location: "top",
|
|
24550
24596
|
sdkOptions: _ctx.options.options
|
|
24551
24597
|
}, null, 8, ["options", "sdkOptions"]),
|
|
24552
24598
|
unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
24553
|
-
createVNode(_sfc_main$
|
|
24599
|
+
createVNode(_sfc_main$y, {
|
|
24554
24600
|
class: "lupa-toolbar-top",
|
|
24555
24601
|
options: _ctx.options,
|
|
24556
24602
|
"pagination-location": "top"
|
|
24557
24603
|
}, null, 8, ["options"]),
|
|
24558
|
-
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$
|
|
24604
|
+
currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$S, {
|
|
24559
24605
|
key: 0,
|
|
24560
24606
|
class: normalizeClass(currentFiltersClass.value),
|
|
24561
24607
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -24571,7 +24617,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24571
24617
|
options: productCardOptions.value
|
|
24572
24618
|
});
|
|
24573
24619
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
|
|
24574
|
-
return openBlock(), createBlock(_sfc_main$
|
|
24620
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
24575
24621
|
style: normalizeStyle(columnSize.value),
|
|
24576
24622
|
key: getProductKeyAction(index, product),
|
|
24577
24623
|
product,
|
|
@@ -24587,12 +24633,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24587
24633
|
onClick: goToFirstPage
|
|
24588
24634
|
}, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
|
|
24589
24635
|
])) : createCommentVNode("", true),
|
|
24590
|
-
createVNode(_sfc_main$
|
|
24636
|
+
createVNode(_sfc_main$y, {
|
|
24591
24637
|
class: "lupa-toolbar-bottom",
|
|
24592
24638
|
options: _ctx.options,
|
|
24593
24639
|
"pagination-location": "bottom"
|
|
24594
24640
|
}, null, 8, ["options"]),
|
|
24595
|
-
createVNode(_sfc_main$
|
|
24641
|
+
createVNode(_sfc_main$j, {
|
|
24596
24642
|
options: _ctx.options,
|
|
24597
24643
|
location: "bottom",
|
|
24598
24644
|
sdkOptions: _ctx.options.options
|
|
@@ -24601,15 +24647,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24601
24647
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
24602
24648
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
24603
24649
|
])) : createCommentVNode("", true),
|
|
24604
|
-
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
24605
|
-
createVNode(_sfc_main$
|
|
24650
|
+
hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
24651
|
+
createVNode(_sfc_main$l, {
|
|
24606
24652
|
labels: similarQueriesLabels.value,
|
|
24607
24653
|
columnSize: columnSize.value,
|
|
24608
24654
|
productCardOptions: productCardOptions.value
|
|
24609
24655
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
24610
24656
|
])) : createCommentVNode("", true),
|
|
24611
|
-
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
24612
|
-
createVNode(_sfc_main$
|
|
24657
|
+
hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
24658
|
+
createVNode(_sfc_main$h, {
|
|
24613
24659
|
labels: similarResultsLabels.value,
|
|
24614
24660
|
columnSize: columnSize.value,
|
|
24615
24661
|
productCardOptions: productCardOptions.value
|
|
@@ -24620,19 +24666,22 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24620
24666
|
};
|
|
24621
24667
|
}
|
|
24622
24668
|
});
|
|
24623
|
-
const _hoisted_1$
|
|
24669
|
+
const _hoisted_1$d = { class: "lupa-top-mobile-filter-wrapper" };
|
|
24624
24670
|
const _hoisted_2$a = {
|
|
24625
24671
|
key: 0,
|
|
24626
24672
|
class: "lupa-category-back"
|
|
24627
24673
|
};
|
|
24628
24674
|
const _hoisted_3$6 = ["href"];
|
|
24629
|
-
const
|
|
24675
|
+
const _hoisted_4$4 = { class: "lupa-child-category-list" };
|
|
24676
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
24630
24677
|
__name: "CategoryTopFilters",
|
|
24631
24678
|
props: {
|
|
24632
24679
|
options: {}
|
|
24633
24680
|
},
|
|
24634
24681
|
setup(__props) {
|
|
24635
24682
|
const props = __props;
|
|
24683
|
+
const searchResultsStore = useSearchResultStore();
|
|
24684
|
+
const { relatedCategoryChildren } = storeToRefs(searchResultsStore);
|
|
24636
24685
|
const hasBackButton = computed(() => {
|
|
24637
24686
|
var _a, _b;
|
|
24638
24687
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
|
|
@@ -24648,17 +24697,24 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24648
24697
|
const hasEventRouting = computed(() => {
|
|
24649
24698
|
return props.options.routingBehavior === "event";
|
|
24650
24699
|
});
|
|
24700
|
+
const categoryOptions = computed(() => {
|
|
24701
|
+
return props.options.categories;
|
|
24702
|
+
});
|
|
24651
24703
|
const handleNavigationBack = (event) => {
|
|
24652
24704
|
if (!backUrlLink.value) {
|
|
24653
24705
|
return;
|
|
24654
24706
|
}
|
|
24655
24707
|
handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
|
|
24656
24708
|
};
|
|
24709
|
+
const getCategoryKey = (item) => {
|
|
24710
|
+
var _a, _b, _c, _d, _e, _f;
|
|
24711
|
+
return (item == null ? void 0 : item[(_c = (_b = (_a = categoryOptions.value) == null ? void 0 : _a.keys) == null ? void 0 : _b.titleKey) != null ? _c : ""]) + (item == null ? void 0 : item[(_f = (_e = (_d = categoryOptions.value) == null ? void 0 : _d.keys) == null ? void 0 : _e.urlKey) != null ? _f : ""]);
|
|
24712
|
+
};
|
|
24657
24713
|
return (_ctx, _cache) => {
|
|
24658
24714
|
return openBlock(), createElementBlock("div", {
|
|
24659
24715
|
class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
|
|
24660
24716
|
}, [
|
|
24661
|
-
createBaseVNode("div", _hoisted_1$
|
|
24717
|
+
createBaseVNode("div", _hoisted_1$d, [
|
|
24662
24718
|
hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
24663
24719
|
createBaseVNode("a", {
|
|
24664
24720
|
"data-cy": "lupa-category-back",
|
|
@@ -24666,7 +24722,16 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24666
24722
|
onClick: handleNavigationBack
|
|
24667
24723
|
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
24668
24724
|
])) : createCommentVNode("", true),
|
|
24669
|
-
|
|
24725
|
+
createBaseVNode("div", _hoisted_4$4, [
|
|
24726
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
|
|
24727
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
24728
|
+
key: getCategoryKey(child),
|
|
24729
|
+
item: child,
|
|
24730
|
+
options: categoryOptions.value
|
|
24731
|
+
}, null, 8, ["item", "options"]);
|
|
24732
|
+
}), 128))
|
|
24733
|
+
]),
|
|
24734
|
+
createVNode(_sfc_main$y, {
|
|
24670
24735
|
class: "lupa-toolbar-mobile",
|
|
24671
24736
|
"pagination-location": "top",
|
|
24672
24737
|
options: _ctx.options
|
|
@@ -24676,7 +24741,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24676
24741
|
};
|
|
24677
24742
|
}
|
|
24678
24743
|
});
|
|
24679
|
-
const _hoisted_1$
|
|
24744
|
+
const _hoisted_1$c = {
|
|
24680
24745
|
key: 0,
|
|
24681
24746
|
class: "lupa-container-title-summary-mobile"
|
|
24682
24747
|
};
|
|
@@ -24686,8 +24751,8 @@ const _hoisted_2$9 = {
|
|
|
24686
24751
|
class: "top-layout-wrapper"
|
|
24687
24752
|
};
|
|
24688
24753
|
const _hoisted_3$5 = { class: "search-content" };
|
|
24689
|
-
const _hoisted_4$
|
|
24690
|
-
const _sfc_main$
|
|
24754
|
+
const _hoisted_4$3 = { id: "lupa-search-results" };
|
|
24755
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
24691
24756
|
__name: "SearchResults",
|
|
24692
24757
|
props: {
|
|
24693
24758
|
options: {},
|
|
@@ -24897,29 +24962,29 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24897
24962
|
return openBlock(), createElementBlock("div", {
|
|
24898
24963
|
class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
|
|
24899
24964
|
}, [
|
|
24900
|
-
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24901
|
-
createVNode(_sfc_main$
|
|
24902
|
-
createVNode(_sfc_main$
|
|
24965
|
+
_ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
24966
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
24967
|
+
createVNode(_sfc_main$U, {
|
|
24903
24968
|
"show-summary": true,
|
|
24904
24969
|
options: _ctx.options,
|
|
24905
24970
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
24906
24971
|
}, null, 8, ["options", "is-product-list"])
|
|
24907
24972
|
])) : createCommentVNode("", true),
|
|
24908
|
-
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$
|
|
24973
|
+
isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$f, {
|
|
24909
24974
|
key: 1,
|
|
24910
24975
|
options: _ctx.options
|
|
24911
24976
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24912
|
-
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$
|
|
24977
|
+
_ctx.options.filters ? (openBlock(), createBlock(_sfc_main$G, {
|
|
24913
24978
|
key: 2,
|
|
24914
24979
|
options: _ctx.options.filters,
|
|
24915
24980
|
onFilter: handleParamsChange
|
|
24916
24981
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24917
|
-
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$
|
|
24982
|
+
unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$F, {
|
|
24918
24983
|
key: 3,
|
|
24919
24984
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
24920
24985
|
}, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
|
|
24921
24986
|
isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
24922
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
24987
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24923
24988
|
key: 0,
|
|
24924
24989
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
24925
24990
|
ref_key: "searchResultsFilters",
|
|
@@ -24927,12 +24992,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24927
24992
|
onFilter: handleParamsChange
|
|
24928
24993
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24929
24994
|
createBaseVNode("div", _hoisted_3$5, [
|
|
24930
|
-
createVNode(_sfc_main$
|
|
24931
|
-
createVNode(_sfc_main$
|
|
24995
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
24996
|
+
createVNode(_sfc_main$U, {
|
|
24932
24997
|
options: _ctx.options,
|
|
24933
24998
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
24934
24999
|
}, null, 8, ["options", "is-product-list"]),
|
|
24935
|
-
createVNode(_sfc_main$
|
|
25000
|
+
createVNode(_sfc_main$g, {
|
|
24936
25001
|
options: _ctx.options,
|
|
24937
25002
|
ssr: ssrEnabled.value,
|
|
24938
25003
|
onFilter: handleParamsChange
|
|
@@ -24944,20 +25009,20 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24944
25009
|
}, 8, ["options", "ssr"])
|
|
24945
25010
|
])
|
|
24946
25011
|
])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
24947
|
-
createVNode(_sfc_main$
|
|
24948
|
-
createVNode(_sfc_main$
|
|
25012
|
+
createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
25013
|
+
createVNode(_sfc_main$U, {
|
|
24949
25014
|
options: _ctx.options,
|
|
24950
25015
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
24951
25016
|
}, null, 8, ["options", "is-product-list"]),
|
|
24952
|
-
createBaseVNode("div", _hoisted_4$
|
|
24953
|
-
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$
|
|
25017
|
+
createBaseVNode("div", _hoisted_4$3, [
|
|
25018
|
+
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
|
|
24954
25019
|
key: 0,
|
|
24955
25020
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
24956
25021
|
ref_key: "searchResultsFilters",
|
|
24957
25022
|
ref: searchResultsFilters,
|
|
24958
25023
|
onFilter: handleParamsChange
|
|
24959
25024
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
24960
|
-
createVNode(_sfc_main$
|
|
25025
|
+
createVNode(_sfc_main$g, {
|
|
24961
25026
|
options: _ctx.options,
|
|
24962
25027
|
ssr: ssrEnabled.value,
|
|
24963
25028
|
onFilter: handleParamsChange
|
|
@@ -24981,12 +25046,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24981
25046
|
};
|
|
24982
25047
|
}
|
|
24983
25048
|
});
|
|
24984
|
-
const _hoisted_1$
|
|
25049
|
+
const _hoisted_1$b = {
|
|
24985
25050
|
key: 0,
|
|
24986
25051
|
class: "lupa-category-overview"
|
|
24987
25052
|
};
|
|
24988
25053
|
const _hoisted_2$8 = ["innerHTML"];
|
|
24989
|
-
const _sfc_main$
|
|
25054
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
24990
25055
|
__name: "CategoryDescription",
|
|
24991
25056
|
props: {
|
|
24992
25057
|
options: {}
|
|
@@ -25004,7 +25069,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25004
25069
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
25005
25070
|
});
|
|
25006
25071
|
return (_ctx, _cache) => {
|
|
25007
|
-
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
25072
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
25008
25073
|
createBaseVNode("div", {
|
|
25009
25074
|
class: "lupa-category-description",
|
|
25010
25075
|
innerHTML: description.value
|
|
@@ -25069,7 +25134,7 @@ const processExtractionObject = (value = {}) => {
|
|
|
25069
25134
|
}
|
|
25070
25135
|
return parsedObject;
|
|
25071
25136
|
};
|
|
25072
|
-
const _sfc_main$
|
|
25137
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
25073
25138
|
__name: "ProductList",
|
|
25074
25139
|
props: {
|
|
25075
25140
|
options: {}
|
|
@@ -25094,7 +25159,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
25094
25159
|
__expose({ fetch: fetch2 });
|
|
25095
25160
|
return (_ctx, _cache) => {
|
|
25096
25161
|
return openBlock(), createElementBlock("div", null, [
|
|
25097
|
-
createVNode(_sfc_main$
|
|
25162
|
+
createVNode(_sfc_main$e, {
|
|
25098
25163
|
options: componentOptions.value,
|
|
25099
25164
|
"initial-filters": _ctx.options.initialFilters,
|
|
25100
25165
|
"is-product-list": true,
|
|
@@ -25102,7 +25167,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
25102
25167
|
ref: searchResults2
|
|
25103
25168
|
}, {
|
|
25104
25169
|
default: withCtx(() => [
|
|
25105
|
-
createVNode(_sfc_main$
|
|
25170
|
+
createVNode(_sfc_main$d, { options: _ctx.options }, null, 8, ["options"])
|
|
25106
25171
|
]),
|
|
25107
25172
|
_: 1
|
|
25108
25173
|
}, 8, ["options", "initial-filters"])
|
|
@@ -30592,9 +30657,9 @@ lodash$1.exports;
|
|
|
30592
30657
|
}).call(commonjsGlobal$1);
|
|
30593
30658
|
})(lodash$1, lodash$1.exports);
|
|
30594
30659
|
var lodashExports$1 = lodash$1.exports;
|
|
30595
|
-
const _hoisted_1$
|
|
30660
|
+
const _hoisted_1$a = ["onClick"];
|
|
30596
30661
|
const _hoisted_2$7 = { class: "lupa-search-box-container" };
|
|
30597
|
-
const _sfc_main$
|
|
30662
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
30598
30663
|
__name: "SearchContainer",
|
|
30599
30664
|
props: {
|
|
30600
30665
|
options: {}
|
|
@@ -30640,7 +30705,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30640
30705
|
onClick: withModifiers(innerClick, ["stop"])
|
|
30641
30706
|
}, [
|
|
30642
30707
|
createBaseVNode("div", _hoisted_2$7, [
|
|
30643
|
-
createVNode(_sfc_main$
|
|
30708
|
+
createVNode(_sfc_main$X, {
|
|
30644
30709
|
options: fullSearchBoxOptions.value,
|
|
30645
30710
|
"is-search-container": true,
|
|
30646
30711
|
ref_key: "searchBox",
|
|
@@ -30648,13 +30713,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30648
30713
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
30649
30714
|
}, null, 8, ["options"])
|
|
30650
30715
|
]),
|
|
30651
|
-
createVNode(_sfc_main$
|
|
30716
|
+
createVNode(_sfc_main$e, {
|
|
30652
30717
|
options: fullSearchResultsOptions.value,
|
|
30653
30718
|
"is-container": true,
|
|
30654
30719
|
ref_key: "searchResults",
|
|
30655
30720
|
ref: searchResults2
|
|
30656
30721
|
}, null, 8, ["options"])
|
|
30657
|
-
], 8, _hoisted_1$
|
|
30722
|
+
], 8, _hoisted_1$a)
|
|
30658
30723
|
]);
|
|
30659
30724
|
};
|
|
30660
30725
|
}
|
|
@@ -31357,7 +31422,7 @@ var Slide = defineComponent({
|
|
|
31357
31422
|
};
|
|
31358
31423
|
}
|
|
31359
31424
|
});
|
|
31360
|
-
const _hoisted_1$
|
|
31425
|
+
const _hoisted_1$9 = {
|
|
31361
31426
|
key: 0,
|
|
31362
31427
|
class: "lupa-search-product-recommendations-wrapper"
|
|
31363
31428
|
};
|
|
@@ -31370,12 +31435,12 @@ const _hoisted_3$4 = {
|
|
|
31370
31435
|
class: "lupa-recommended-products",
|
|
31371
31436
|
"data-cy": "lupa-recommended-products"
|
|
31372
31437
|
};
|
|
31373
|
-
const _hoisted_4$
|
|
31438
|
+
const _hoisted_4$2 = {
|
|
31374
31439
|
key: 1,
|
|
31375
31440
|
class: "lupa-products",
|
|
31376
31441
|
"data-cy": "lupa-products"
|
|
31377
31442
|
};
|
|
31378
|
-
const _sfc_main$
|
|
31443
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
31379
31444
|
__name: "Recommendations",
|
|
31380
31445
|
props: {
|
|
31381
31446
|
options: {}
|
|
@@ -31491,7 +31556,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31491
31556
|
});
|
|
31492
31557
|
__expose({ fetch: fetch2 });
|
|
31493
31558
|
return (_ctx, _cache) => {
|
|
31494
|
-
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
31559
|
+
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
31495
31560
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
31496
31561
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
31497
31562
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
@@ -31504,7 +31569,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31504
31569
|
key: getProductKeyAction(index, product)
|
|
31505
31570
|
}, {
|
|
31506
31571
|
default: withCtx(() => [
|
|
31507
|
-
createVNode(_sfc_main$
|
|
31572
|
+
createVNode(_sfc_main$m, {
|
|
31508
31573
|
product,
|
|
31509
31574
|
options: _ctx.options,
|
|
31510
31575
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -31515,9 +31580,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31515
31580
|
}), 128))
|
|
31516
31581
|
]),
|
|
31517
31582
|
_: 1
|
|
31518
|
-
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
31583
|
+
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
31519
31584
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
31520
|
-
return openBlock(), createBlock(_sfc_main$
|
|
31585
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
31521
31586
|
style: normalizeStyle(columnSize.value),
|
|
31522
31587
|
key: getProductKeyAction(index, product),
|
|
31523
31588
|
product,
|
|
@@ -31531,19 +31596,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31531
31596
|
};
|
|
31532
31597
|
}
|
|
31533
31598
|
});
|
|
31534
|
-
const _hoisted_1$
|
|
31599
|
+
const _hoisted_1$8 = { class: "lupa-chat-spinner" };
|
|
31535
31600
|
const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31536
31601
|
const _hoisted_3$3 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31537
|
-
const _hoisted_4$
|
|
31538
|
-
const _hoisted_5
|
|
31539
|
-
const _hoisted_6
|
|
31602
|
+
const _hoisted_4$1 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31603
|
+
const _hoisted_5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
31604
|
+
const _hoisted_6 = [
|
|
31540
31605
|
_hoisted_2$5,
|
|
31541
31606
|
_hoisted_3$3,
|
|
31542
|
-
_hoisted_4$
|
|
31543
|
-
_hoisted_5
|
|
31607
|
+
_hoisted_4$1,
|
|
31608
|
+
_hoisted_5
|
|
31544
31609
|
];
|
|
31545
31610
|
const _hoisted_7 = { class: "lupa-chat-spinner-message" };
|
|
31546
|
-
const _sfc_main$
|
|
31611
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
31547
31612
|
__name: "ChatSpinner",
|
|
31548
31613
|
props: {
|
|
31549
31614
|
small: { type: Boolean },
|
|
@@ -31551,27 +31616,25 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
31551
31616
|
},
|
|
31552
31617
|
setup(__props) {
|
|
31553
31618
|
return (_ctx, _cache) => {
|
|
31554
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
31619
|
+
return openBlock(), createElementBlock("section", _hoisted_1$8, [
|
|
31555
31620
|
createBaseVNode("div", {
|
|
31556
31621
|
class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
|
|
31557
|
-
}, _hoisted_6
|
|
31622
|
+
}, _hoisted_6, 2),
|
|
31558
31623
|
createBaseVNode("div", _hoisted_7, toDisplayString(_ctx.message), 1)
|
|
31559
31624
|
]);
|
|
31560
31625
|
};
|
|
31561
31626
|
}
|
|
31562
31627
|
});
|
|
31563
|
-
const _hoisted_1$
|
|
31628
|
+
const _hoisted_1$7 = { class: "lupa-chat-input-container" };
|
|
31564
31629
|
const _hoisted_2$4 = { id: "lupa-search-box-input" };
|
|
31565
|
-
const _hoisted_3$2 = {
|
|
31566
|
-
|
|
31567
|
-
class: "lupa-chat-form-submit"
|
|
31568
|
-
};
|
|
31569
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31630
|
+
const _hoisted_3$2 = { class: "lupa-chat-form-submit" };
|
|
31631
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
31570
31632
|
__name: "ChatInput",
|
|
31571
31633
|
props: {
|
|
31572
|
-
disabled: { type: Boolean }
|
|
31634
|
+
disabled: { type: Boolean },
|
|
31635
|
+
options: {}
|
|
31573
31636
|
},
|
|
31574
|
-
emits: ["submit"],
|
|
31637
|
+
emits: ["submit", "focus", "blur", "clear"],
|
|
31575
31638
|
setup(__props, { emit: emit2 }) {
|
|
31576
31639
|
const inputValue = ref("");
|
|
31577
31640
|
const submit = () => {
|
|
@@ -31579,7 +31642,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
31579
31642
|
inputValue.value = "";
|
|
31580
31643
|
};
|
|
31581
31644
|
return (_ctx, _cache) => {
|
|
31582
|
-
|
|
31645
|
+
var _a, _b, _c, _d, _e, _f;
|
|
31646
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
31583
31647
|
createBaseVNode("form", {
|
|
31584
31648
|
action: "javascript:void(0);",
|
|
31585
31649
|
class: "chat-input-form",
|
|
@@ -31593,12 +31657,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
31593
31657
|
class: "lupa-search-box-input-field",
|
|
31594
31658
|
"data-cy": "lupa-search-box-input-field",
|
|
31595
31659
|
type: "text",
|
|
31596
|
-
placeholder: "Type your request here..."
|
|
31597
|
-
|
|
31660
|
+
placeholder: "Type your request here...",
|
|
31661
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => emit2("focus")),
|
|
31662
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => emit2("blur"))
|
|
31663
|
+
}, null, 544), [
|
|
31598
31664
|
[vModelText, inputValue.value]
|
|
31599
31665
|
])
|
|
31600
31666
|
]),
|
|
31601
|
-
!_ctx.disabled ? (openBlock(), createElementBlock(
|
|
31667
|
+
!_ctx.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31668
|
+
createBaseVNode("button", _hoisted_3$2, toDisplayString(((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.chatSettings) == null ? void 0 : _b.labels) == null ? void 0 : _c.ask) || "Ask LupaChat"), 1),
|
|
31669
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
|
31670
|
+
key: 0,
|
|
31671
|
+
type: "button",
|
|
31672
|
+
class: "lupa-chat-form-clear",
|
|
31673
|
+
onClick: _cache[3] || (_cache[3] = ($event) => emit2("clear"))
|
|
31674
|
+
}, toDisplayString(((_f = (_e = (_d = _ctx.options) == null ? void 0 : _d.chatSettings) == null ? void 0 : _e.labels) == null ? void 0 : _f.clear) || "Clear Chat"), 1)) : createCommentVNode("", true)
|
|
31675
|
+
], 64)) : (openBlock(), createBlock(_sfc_main$9, {
|
|
31602
31676
|
key: 1,
|
|
31603
31677
|
small: true
|
|
31604
31678
|
}))
|
|
@@ -31737,8 +31811,9 @@ const ChatService = {
|
|
|
31737
31811
|
prepareChatHistory,
|
|
31738
31812
|
getTextResponseChunkStream
|
|
31739
31813
|
};
|
|
31740
|
-
const _hoisted_1$
|
|
31741
|
-
const
|
|
31814
|
+
const _hoisted_1$6 = { class: "lupa-chat-results" };
|
|
31815
|
+
const _hoisted_2$3 = ["href"];
|
|
31816
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
31742
31817
|
__name: "ChatPhraseProductsList",
|
|
31743
31818
|
props: {
|
|
31744
31819
|
options: {},
|
|
@@ -31749,35 +31824,40 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
31749
31824
|
const getProductKeyAction = (index, product) => {
|
|
31750
31825
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
31751
31826
|
};
|
|
31827
|
+
const image = computed(() => {
|
|
31828
|
+
var _a;
|
|
31829
|
+
return (_a = props.options.elements) == null ? void 0 : _a.find((e2) => e2.type === "image");
|
|
31830
|
+
});
|
|
31831
|
+
const getLink = (item) => {
|
|
31832
|
+
var _a, _b, _c;
|
|
31833
|
+
if (!((_a = props.options.links) == null ? void 0 : _a.details)) {
|
|
31834
|
+
return "";
|
|
31835
|
+
}
|
|
31836
|
+
return generateLink((_c = (_b = props.options.links) == null ? void 0 : _b.details) != null ? _c : "", item);
|
|
31837
|
+
};
|
|
31752
31838
|
return (_ctx, _cache) => {
|
|
31753
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
31839
|
+
return openBlock(), createElementBlock("section", _hoisted_1$6, [
|
|
31754
31840
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
31755
|
-
return openBlock(),
|
|
31756
|
-
class: "lupa-chat-product-card",
|
|
31757
|
-
key: getProductKeyAction(index, product)
|
|
31758
|
-
|
|
31759
|
-
|
|
31760
|
-
|
|
31841
|
+
return openBlock(), createElementBlock("div", {
|
|
31842
|
+
class: "lupa-chat-item lupa-chat-product-card-image",
|
|
31843
|
+
key: getProductKeyAction(index, product)
|
|
31844
|
+
}, [
|
|
31845
|
+
createBaseVNode("a", {
|
|
31846
|
+
href: getLink(product)
|
|
31847
|
+
}, [
|
|
31848
|
+
createVNode(_sfc_main$x, {
|
|
31849
|
+
item: product,
|
|
31850
|
+
options: image.value
|
|
31851
|
+
}, null, 8, ["item", "options"])
|
|
31852
|
+
], 8, _hoisted_2$3)
|
|
31853
|
+
]);
|
|
31761
31854
|
}), 128))
|
|
31762
31855
|
]);
|
|
31763
31856
|
};
|
|
31764
31857
|
}
|
|
31765
31858
|
});
|
|
31766
|
-
const _hoisted_1$
|
|
31767
|
-
const
|
|
31768
|
-
const _hoisted_3$1 = {
|
|
31769
|
-
key: 0,
|
|
31770
|
-
class: "alert"
|
|
31771
|
-
};
|
|
31772
|
-
const _hoisted_4$1 = {
|
|
31773
|
-
key: 0,
|
|
31774
|
-
class: "lupa-chat-no-results"
|
|
31775
|
-
};
|
|
31776
|
-
const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no matches for this search term", -1);
|
|
31777
|
-
const _hoisted_6 = [
|
|
31778
|
-
_hoisted_5$1
|
|
31779
|
-
];
|
|
31780
|
-
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
31859
|
+
const _hoisted_1$5 = { class: "lupa-chat-phrase-title" };
|
|
31860
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31781
31861
|
__name: "ChatContentEntryPhrase",
|
|
31782
31862
|
props: {
|
|
31783
31863
|
options: {},
|
|
@@ -31862,29 +31942,87 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
31862
31942
|
return phrases != null ? phrases : [];
|
|
31863
31943
|
});
|
|
31864
31944
|
return (_ctx, _cache) => {
|
|
31865
|
-
return openBlock(), createElementBlock("div",
|
|
31866
|
-
|
|
31867
|
-
|
|
31868
|
-
|
|
31869
|
-
|
|
31945
|
+
return !loading.value && searchResults2.value.length ? (openBlock(), createElementBlock("div", {
|
|
31946
|
+
key: 0,
|
|
31947
|
+
class: normalizeClass(["lupa-chat-content-entry-phrase", { "lupa-chat-incomplete-results": usedPartialResults.value }])
|
|
31948
|
+
}, [
|
|
31949
|
+
createBaseVNode("div", _hoisted_1$5, [
|
|
31950
|
+
createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1)
|
|
31870
31951
|
]),
|
|
31871
31952
|
createBaseVNode("div", null, [
|
|
31872
|
-
createVNode(_sfc_main$
|
|
31953
|
+
createVNode(_sfc_main$7, {
|
|
31873
31954
|
"search-results": searchResults2.value,
|
|
31874
31955
|
options: _ctx.options.displayOptions
|
|
31875
31956
|
}, null, 8, ["search-results", "options"])
|
|
31876
|
-
])
|
|
31877
|
-
|
|
31878
|
-
|
|
31879
|
-
|
|
31880
|
-
|
|
31881
|
-
|
|
31957
|
+
])
|
|
31958
|
+
], 2)) : createCommentVNode("", true);
|
|
31959
|
+
};
|
|
31960
|
+
}
|
|
31961
|
+
});
|
|
31962
|
+
const _hoisted_1$4 = { class: "lupa-chat-text-response" };
|
|
31963
|
+
const _hoisted_2$2 = ["innerHTML"];
|
|
31964
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
31965
|
+
__name: "ChatTextEntry",
|
|
31966
|
+
props: {
|
|
31967
|
+
content: {},
|
|
31968
|
+
options: {},
|
|
31969
|
+
history: {}
|
|
31970
|
+
},
|
|
31971
|
+
setup(__props) {
|
|
31972
|
+
const props = __props;
|
|
31973
|
+
const content = ref("");
|
|
31974
|
+
const processChunk = (chunk) => {
|
|
31975
|
+
content.value += chunk;
|
|
31976
|
+
};
|
|
31977
|
+
onMounted(() => {
|
|
31978
|
+
var _a;
|
|
31979
|
+
ChatService.getTextResponseChunkStream(
|
|
31980
|
+
props.options.sdkOptions,
|
|
31981
|
+
{
|
|
31982
|
+
initialQuery: props.content,
|
|
31983
|
+
messageHistory: (_a = props.history) != null ? _a : [],
|
|
31984
|
+
queryKey: props.options.displayOptions.queryKey
|
|
31985
|
+
},
|
|
31986
|
+
processChunk,
|
|
31987
|
+
props.options.chatSettings
|
|
31988
|
+
);
|
|
31989
|
+
});
|
|
31990
|
+
return (_ctx, _cache) => {
|
|
31991
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
31992
|
+
createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$2)
|
|
31882
31993
|
]);
|
|
31883
31994
|
};
|
|
31884
31995
|
}
|
|
31885
31996
|
});
|
|
31886
|
-
const _hoisted_1$3 = { class: "lupa-chat-
|
|
31887
|
-
const
|
|
31997
|
+
const _hoisted_1$3 = { class: "lupa-chat-results" };
|
|
31998
|
+
const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
31999
|
+
__name: "ChatPhraseProductsCardList",
|
|
32000
|
+
props: {
|
|
32001
|
+
options: {},
|
|
32002
|
+
searchResults: {}
|
|
32003
|
+
},
|
|
32004
|
+
setup(__props) {
|
|
32005
|
+
const props = __props;
|
|
32006
|
+
const getProductKeyAction = (index, product) => {
|
|
32007
|
+
return getProductKey(`${index}`, product, props.options.idKey);
|
|
32008
|
+
};
|
|
32009
|
+
return (_ctx, _cache) => {
|
|
32010
|
+
return openBlock(), createElementBlock("section", _hoisted_1$3, [
|
|
32011
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
|
|
32012
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
32013
|
+
class: "lupa-chat-product-card",
|
|
32014
|
+
key: getProductKeyAction(index, product),
|
|
32015
|
+
product,
|
|
32016
|
+
options: _ctx.options
|
|
32017
|
+
}, null, 8, ["product", "options"]);
|
|
32018
|
+
}), 128))
|
|
32019
|
+
]);
|
|
32020
|
+
};
|
|
32021
|
+
}
|
|
32022
|
+
});
|
|
32023
|
+
const _hoisted_1$2 = { class: "lupa-chat-section-content" };
|
|
32024
|
+
const _hoisted_2$1 = { class: "lupa-chat-content-entry-wrapper" };
|
|
32025
|
+
const _hoisted_3$1 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
|
|
31888
32026
|
const MAX_SOURCES_FOR_BEST_ITEM_MATCHING = 250;
|
|
31889
32027
|
const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
31890
32028
|
__name: "ChatContentEntry",
|
|
@@ -31943,74 +32081,87 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
31943
32081
|
}).filter(Boolean);
|
|
31944
32082
|
});
|
|
31945
32083
|
return (_ctx, _cache) => {
|
|
31946
|
-
|
|
31947
|
-
|
|
31948
|
-
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
|
|
31960
|
-
|
|
32084
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
32085
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
32086
|
+
createBaseVNode("section", _hoisted_1$2, [
|
|
32087
|
+
createVNode(_sfc_main$5, {
|
|
32088
|
+
content: _ctx.entry.userInput,
|
|
32089
|
+
history: _ctx.history,
|
|
32090
|
+
options: _ctx.options
|
|
32091
|
+
}, null, 8, ["content", "history", "options"]),
|
|
32092
|
+
createBaseVNode("div", _hoisted_2$1, [
|
|
32093
|
+
createBaseVNode("ul", null, [
|
|
32094
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
|
|
32095
|
+
return openBlock(), createElementBlock("li", {
|
|
32096
|
+
key: phrase,
|
|
32097
|
+
class: "lupa-chat-content-entry"
|
|
32098
|
+
}, [
|
|
32099
|
+
phrase ? (openBlock(), createBlock(_sfc_main$6, {
|
|
32100
|
+
key: 0,
|
|
32101
|
+
phrase,
|
|
32102
|
+
options: _ctx.options,
|
|
32103
|
+
onLoaded: loaded
|
|
32104
|
+
}, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
|
|
32105
|
+
]);
|
|
32106
|
+
}), 128))
|
|
32107
|
+
]),
|
|
32108
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
32109
|
+
key: 0,
|
|
32110
|
+
message: (_c = (_b = (_a = _ctx.options.chatSettings) == null ? void 0 : _a.labels) == null ? void 0 : _b.bestMatches) != null ? _c : "Checking for more matches..."
|
|
32111
|
+
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
32112
|
+
])
|
|
31961
32113
|
]),
|
|
31962
|
-
createBaseVNode("section",
|
|
31963
|
-
|
|
31964
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
32114
|
+
createBaseVNode("section", _hoisted_3$1, [
|
|
32115
|
+
createBaseVNode("h3", null, toDisplayString((_f = (_e = (_d = _ctx.options.chatSettings) == null ? void 0 : _d.labels) == null ? void 0 : _e.checkingForMorePhraseMatches) != null ? _f : "Best matches"), 1),
|
|
32116
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
31965
32117
|
key: 0,
|
|
31966
|
-
message: "Selecting the best matches for you. This might take a few seconds."
|
|
31967
|
-
})) : createCommentVNode("", true),
|
|
31968
|
-
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
32118
|
+
message: (_i = (_h = (_g = _ctx.options.chatSettings) == null ? void 0 : _g.labels) == null ? void 0 : _h.selectingBestPhrases) != null ? _i : "Selecting the best matches for you. This might take a few seconds."
|
|
32119
|
+
}, null, 8, ["message"])) : createCommentVNode("", true),
|
|
32120
|
+
bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
|
|
31969
32121
|
key: 1,
|
|
31970
32122
|
"search-results": bestMatchProducts.value,
|
|
31971
|
-
options: _ctx.options.displayOptions
|
|
32123
|
+
options: _ctx.options.displayOptions,
|
|
32124
|
+
full: true
|
|
31972
32125
|
}, null, 8, ["search-results", "options"])) : createCommentVNode("", true)
|
|
31973
32126
|
])
|
|
31974
|
-
]);
|
|
32127
|
+
], 64);
|
|
31975
32128
|
};
|
|
31976
32129
|
}
|
|
31977
32130
|
});
|
|
31978
|
-
const _hoisted_1$
|
|
31979
|
-
const _hoisted_2$1 = ["innerHTML"];
|
|
32131
|
+
const _hoisted_1$1 = { key: 0 };
|
|
31980
32132
|
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
31981
|
-
__name: "
|
|
32133
|
+
__name: "ChatContentListEntry",
|
|
31982
32134
|
props: {
|
|
31983
|
-
|
|
32135
|
+
entry: {},
|
|
31984
32136
|
options: {},
|
|
31985
32137
|
history: {}
|
|
31986
32138
|
},
|
|
31987
|
-
|
|
31988
|
-
|
|
31989
|
-
const
|
|
31990
|
-
|
|
31991
|
-
content.value += chunk;
|
|
32139
|
+
emits: ["loaded"],
|
|
32140
|
+
setup(__props, { emit: emit2 }) {
|
|
32141
|
+
const bestItemsLoaded = (items, key) => {
|
|
32142
|
+
emit2("loaded", { items, key });
|
|
31992
32143
|
};
|
|
31993
|
-
onMounted(() => {
|
|
31994
|
-
var _a;
|
|
31995
|
-
ChatService.getTextResponseChunkStream(
|
|
31996
|
-
props.options.sdkOptions,
|
|
31997
|
-
{
|
|
31998
|
-
initialQuery: props.content,
|
|
31999
|
-
messageHistory: (_a = props.history) != null ? _a : [],
|
|
32000
|
-
queryKey: props.options.displayOptions.queryKey
|
|
32001
|
-
},
|
|
32002
|
-
processChunk,
|
|
32003
|
-
props.options.chatSettings
|
|
32004
|
-
);
|
|
32005
|
-
});
|
|
32006
32144
|
return (_ctx, _cache) => {
|
|
32007
|
-
|
|
32008
|
-
|
|
32145
|
+
var _a;
|
|
32146
|
+
return openBlock(), createElementBlock("div", null, [
|
|
32147
|
+
createBaseVNode("h4", {
|
|
32148
|
+
class: "lupa-chat-section-title",
|
|
32149
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.entry.expanded = !_ctx.entry.expanded)
|
|
32150
|
+
}, toDisplayString(_ctx.entry.userInput), 1),
|
|
32151
|
+
((_a = _ctx.entry.suggestedPhrases) == null ? void 0 : _a.length) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
32152
|
+
createVNode(_sfc_main$3$1, {
|
|
32153
|
+
entry: _ctx.entry,
|
|
32154
|
+
options: _ctx.options,
|
|
32155
|
+
history: _ctx.history,
|
|
32156
|
+
onLoaded: _cache[1] || (_cache[1] = (items) => bestItemsLoaded(items, _ctx.entry.key))
|
|
32157
|
+
}, null, 8, ["entry", "options", "history"])
|
|
32158
|
+
], 512)), [
|
|
32159
|
+
[vShow, _ctx.entry.expanded]
|
|
32160
|
+
]) : createCommentVNode("", true)
|
|
32009
32161
|
]);
|
|
32010
32162
|
};
|
|
32011
32163
|
}
|
|
32012
32164
|
});
|
|
32013
|
-
const _hoisted_1$1 = { class: "lupa-chat-section-title" };
|
|
32014
32165
|
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
32015
32166
|
__name: "ChatContentList",
|
|
32016
32167
|
props: {
|
|
@@ -32027,23 +32178,16 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
32027
32178
|
return openBlock(), createElementBlock("div", null, [
|
|
32028
32179
|
createBaseVNode("ul", null, [
|
|
32029
32180
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
|
|
32030
|
-
var _a;
|
|
32031
32181
|
return openBlock(), createElementBlock("li", {
|
|
32032
|
-
key: entry.key
|
|
32182
|
+
key: entry.key,
|
|
32183
|
+
class: "chat-content-list-entry"
|
|
32033
32184
|
}, [
|
|
32034
|
-
createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
|
|
32035
32185
|
createVNode(_sfc_main$2$1, {
|
|
32036
|
-
content: entry.userInput,
|
|
32037
|
-
history: _ctx.history,
|
|
32038
|
-
options: _ctx.options
|
|
32039
|
-
}, null, 8, ["content", "history", "options"]),
|
|
32040
|
-
((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
|
|
32041
|
-
key: 0,
|
|
32042
32186
|
entry,
|
|
32043
32187
|
options: _ctx.options,
|
|
32044
32188
|
history: _ctx.history,
|
|
32045
32189
|
onLoaded: (items) => bestItemsLoaded(items, entry.key)
|
|
32046
|
-
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
32190
|
+
}, null, 8, ["entry", "options", "history", "onLoaded"])
|
|
32047
32191
|
]);
|
|
32048
32192
|
}), 128))
|
|
32049
32193
|
])
|
|
@@ -32052,19 +32196,13 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
32052
32196
|
}
|
|
32053
32197
|
});
|
|
32054
32198
|
const _hoisted_1 = { class: "lupasearch-chat" };
|
|
32055
|
-
const _hoisted_2 =
|
|
32056
|
-
|
|
32057
|
-
|
|
32058
|
-
const _hoisted_3 = {
|
|
32199
|
+
const _hoisted_2 = { class: "lupasearch-chat-input" };
|
|
32200
|
+
const _hoisted_3 = { class: "lupasearch-chat-content-wrapper" };
|
|
32201
|
+
const _hoisted_4 = {
|
|
32059
32202
|
key: 0,
|
|
32060
32203
|
class: "lupasearch-chat-content"
|
|
32061
32204
|
};
|
|
32062
|
-
const
|
|
32063
|
-
key: 1,
|
|
32064
|
-
class: "lupa-chat-spinner-main"
|
|
32065
|
-
};
|
|
32066
|
-
const _hoisted_5 = { class: "lupasearch-chat-input" };
|
|
32067
|
-
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
32205
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
32068
32206
|
__name: "ChatContainer",
|
|
32069
32207
|
props: {
|
|
32070
32208
|
options: {}
|
|
@@ -32073,6 +32211,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
32073
32211
|
const props = __props;
|
|
32074
32212
|
const loading = ref(false);
|
|
32075
32213
|
const error = ref("");
|
|
32214
|
+
const focused = ref(false);
|
|
32076
32215
|
const chatContent = ref([]);
|
|
32077
32216
|
const history = computed(() => ChatService.prepareChatHistory(chatContent.value));
|
|
32078
32217
|
const submitChatInput = (input2) => __async2(this, null, function* () {
|
|
@@ -32087,8 +32226,10 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
32087
32226
|
key,
|
|
32088
32227
|
userInput: input2,
|
|
32089
32228
|
allPhrases: [],
|
|
32090
|
-
suggestedPhrases: []
|
|
32229
|
+
suggestedPhrases: [],
|
|
32230
|
+
expanded: true
|
|
32091
32231
|
};
|
|
32232
|
+
chatContent.value = chatContent.value.map((c2) => __spreadProps2(__spreadValues2({}, c2), { expanded: false }));
|
|
32092
32233
|
chatContent.value.push(chatLog);
|
|
32093
32234
|
const request = {
|
|
32094
32235
|
userPrompt: input2,
|
|
@@ -32119,25 +32260,31 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
32119
32260
|
const entry = chatContent.value.find((c2) => c2.key === key);
|
|
32120
32261
|
entry.bestItems = items;
|
|
32121
32262
|
};
|
|
32263
|
+
const clearChatContent = () => {
|
|
32264
|
+
chatContent.value = [];
|
|
32265
|
+
};
|
|
32122
32266
|
return (_ctx, _cache) => {
|
|
32123
32267
|
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
32124
|
-
_hoisted_2,
|
|
32125
|
-
|
|
32126
|
-
createVNode(_sfc_main$1$1, {
|
|
32127
|
-
content: chatContent.value,
|
|
32128
|
-
options: _ctx.options,
|
|
32129
|
-
onLoaded: bestItemsLoaded,
|
|
32130
|
-
history: history.value
|
|
32131
|
-
}, null, 8, ["content", "options", "history"])
|
|
32132
|
-
])) : createCommentVNode("", true),
|
|
32133
|
-
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
32134
|
-
createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
32135
|
-
])) : createCommentVNode("", true),
|
|
32136
|
-
createBaseVNode("section", _hoisted_5, [
|
|
32137
|
-
createVNode(_sfc_main$6, {
|
|
32268
|
+
createBaseVNode("section", _hoisted_2, [
|
|
32269
|
+
createVNode(_sfc_main$8, {
|
|
32138
32270
|
onSubmit: submitChatInput,
|
|
32139
|
-
disabled: loading.value
|
|
32140
|
-
|
|
32271
|
+
disabled: loading.value,
|
|
32272
|
+
options: _ctx.options,
|
|
32273
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => focused.value = true),
|
|
32274
|
+
onClear: clearChatContent
|
|
32275
|
+
}, null, 8, ["disabled", "options"]),
|
|
32276
|
+
createBaseVNode("div", _hoisted_3, [
|
|
32277
|
+
chatContent.value.length ? withDirectives((openBlock(), createElementBlock("section", _hoisted_4, [
|
|
32278
|
+
createVNode(_sfc_main$1$1, {
|
|
32279
|
+
content: chatContent.value,
|
|
32280
|
+
options: _ctx.options,
|
|
32281
|
+
history: history.value,
|
|
32282
|
+
onLoaded: bestItemsLoaded
|
|
32283
|
+
}, null, 8, ["content", "options", "history"])
|
|
32284
|
+
], 512)), [
|
|
32285
|
+
[vShow, focused.value]
|
|
32286
|
+
]) : createCommentVNode("", true)
|
|
32287
|
+
])
|
|
32141
32288
|
])
|
|
32142
32289
|
]);
|
|
32143
32290
|
};
|
|
@@ -38073,7 +38220,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38073
38220
|
};
|
|
38074
38221
|
__expose({ fetch: fetch2 });
|
|
38075
38222
|
return (_ctx, _cache) => {
|
|
38076
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38223
|
+
return openBlock(), createBlock(unref(_sfc_main$X), {
|
|
38077
38224
|
options: fullSearchBoxOptions.value,
|
|
38078
38225
|
ref_key: "searchBox",
|
|
38079
38226
|
ref: searchBox2
|
|
@@ -38200,7 +38347,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
38200
38347
|
};
|
|
38201
38348
|
__expose({ fetch: fetch2 });
|
|
38202
38349
|
return (_ctx, _cache) => {
|
|
38203
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38350
|
+
return openBlock(), createBlock(unref(_sfc_main$e), {
|
|
38204
38351
|
options: fullSearchResultsOptions.value,
|
|
38205
38352
|
ref_key: "searchResults",
|
|
38206
38353
|
ref: searchResults2
|
|
@@ -38225,7 +38372,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
38225
38372
|
};
|
|
38226
38373
|
__expose({ fetch: fetch2 });
|
|
38227
38374
|
return (_ctx, _cache) => {
|
|
38228
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38375
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
38229
38376
|
options: fullProductListOptions.value,
|
|
38230
38377
|
ref_key: "productList",
|
|
38231
38378
|
ref: productList2
|
|
@@ -38305,7 +38452,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
38305
38452
|
__expose({ fetch: fetch2, reloadOptions });
|
|
38306
38453
|
return (_ctx, _cache) => {
|
|
38307
38454
|
return openBlock(), createElementBlock("div", null, [
|
|
38308
|
-
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
38455
|
+
containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
38309
38456
|
key: 0,
|
|
38310
38457
|
options: containerOptions.value,
|
|
38311
38458
|
ref_key: "productList",
|
|
@@ -38329,7 +38476,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38329
38476
|
};
|
|
38330
38477
|
__expose({ fetch: fetch2 });
|
|
38331
38478
|
return (_ctx, _cache) => {
|
|
38332
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
38479
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
38333
38480
|
options: _ctx.recommendationOptions,
|
|
38334
38481
|
ref_key: "productRecommendations",
|
|
38335
38482
|
ref: productRecommendations
|
|
@@ -38600,7 +38747,7 @@ const chat = (options, mountOptions) => {
|
|
|
38600
38747
|
const instance = createVue(
|
|
38601
38748
|
options.displayOptions.containerSelector,
|
|
38602
38749
|
mountOptions == null ? void 0 : mountOptions.mountingBehavior,
|
|
38603
|
-
_sfc_main$
|
|
38750
|
+
_sfc_main$1q,
|
|
38604
38751
|
{
|
|
38605
38752
|
options
|
|
38606
38753
|
}
|