@getlupa/vue 0.11.0 → 0.11.1
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/lupaContainerStyle.css +1 -1
- package/dist/lupaSearch.js +253 -190
- package/dist/lupaSearch.mjs +253 -190
- package/dist/src/components/search-results/filters/FiltersTopDropdown.vue.d.ts +4 -2
- package/dist/src/components/search-results/filters/MobileFilterSidebar.vue.d.ts +4 -2
- package/dist/src/components/search-results/filters/SearchResultsFilters.vue.d.ts +4 -2
- package/dist/src/components/search-results/filters/facets/Facets.vue.d.ts +4 -2
- package/dist/src/components/search-results/filters/facets/FacetsButton.vue.d.ts +16 -0
- package/dist/src/components/search-results/products/SearchResultsProducts.vue.d.ts +4 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/types/search-results/SearchResultsOptions.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lupaSearch.js
CHANGED
|
@@ -3221,7 +3221,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
3221
3221
|
resetHighlightIndex
|
|
3222
3222
|
};
|
|
3223
3223
|
});
|
|
3224
|
-
const _hoisted_1$
|
|
3224
|
+
const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
|
|
3225
3225
|
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
3226
3226
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
3227
3227
|
const _hoisted_4$s = ["value"];
|
|
@@ -3230,7 +3230,7 @@ const _hoisted_6$9 = {
|
|
|
3230
3230
|
key: 0,
|
|
3231
3231
|
class: "lupa-close-label"
|
|
3232
3232
|
};
|
|
3233
|
-
const _sfc_main$
|
|
3233
|
+
const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
3234
3234
|
__name: "SearchBoxInput",
|
|
3235
3235
|
props: {
|
|
3236
3236
|
options: {},
|
|
@@ -3311,7 +3311,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3311
3311
|
};
|
|
3312
3312
|
__expose({ focus });
|
|
3313
3313
|
return (_ctx, _cache) => {
|
|
3314
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3314
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1e, [
|
|
3315
3315
|
vue.createElementVNode("div", _hoisted_2$P, [
|
|
3316
3316
|
vue.createElementVNode("div", {
|
|
3317
3317
|
class: vue.normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
@@ -3353,7 +3353,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3353
3353
|
};
|
|
3354
3354
|
}
|
|
3355
3355
|
});
|
|
3356
|
-
const _sfc_main$
|
|
3356
|
+
const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
3357
3357
|
__name: "SearchBoxMoreResults",
|
|
3358
3358
|
props: {
|
|
3359
3359
|
labels: {},
|
|
@@ -3385,9 +3385,9 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
3387
|
});
|
|
3388
|
-
const _hoisted_1$
|
|
3388
|
+
const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
|
|
3389
3389
|
const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
|
|
3390
|
-
const _sfc_main$
|
|
3390
|
+
const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
3391
3391
|
__name: "SearchBoxHistoryItem",
|
|
3392
3392
|
props: {
|
|
3393
3393
|
item: {},
|
|
@@ -3403,7 +3403,7 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3403
3403
|
emit("click", { query: props.item });
|
|
3404
3404
|
};
|
|
3405
3405
|
return (_ctx, _cache) => {
|
|
3406
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3406
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1d, [
|
|
3407
3407
|
vue.createElementVNode("div", _hoisted_2$O, [
|
|
3408
3408
|
vue.createElementVNode("div", {
|
|
3409
3409
|
class: vue.normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
@@ -3418,11 +3418,11 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3418
3418
|
};
|
|
3419
3419
|
}
|
|
3420
3420
|
});
|
|
3421
|
-
const _hoisted_1$
|
|
3421
|
+
const _hoisted_1$1c = {
|
|
3422
3422
|
key: 0,
|
|
3423
3423
|
class: "lupa-search-box-history-panel"
|
|
3424
3424
|
};
|
|
3425
|
-
const _sfc_main$
|
|
3425
|
+
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
3426
3426
|
__name: "SearchBoxHistoryPanel",
|
|
3427
3427
|
props: {
|
|
3428
3428
|
options: {}
|
|
@@ -3463,9 +3463,9 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
3463
3463
|
}
|
|
3464
3464
|
};
|
|
3465
3465
|
return (_ctx, _cache) => {
|
|
3466
|
-
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3466
|
+
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1c, [
|
|
3467
3467
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(history), (item, index) => {
|
|
3468
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3468
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1k, {
|
|
3469
3469
|
key: item,
|
|
3470
3470
|
item,
|
|
3471
3471
|
highlighted: index === highlightIndex.value,
|
|
@@ -3481,19 +3481,19 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
3481
3481
|
};
|
|
3482
3482
|
}
|
|
3483
3483
|
});
|
|
3484
|
-
const _hoisted_1$
|
|
3485
|
-
const _sfc_main$
|
|
3484
|
+
const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
|
|
3485
|
+
const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
3486
3486
|
__name: "SearchBoxNoResults",
|
|
3487
3487
|
props: {
|
|
3488
3488
|
labels: {}
|
|
3489
3489
|
},
|
|
3490
3490
|
setup(__props) {
|
|
3491
3491
|
return (_ctx, _cache) => {
|
|
3492
|
-
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$
|
|
3492
|
+
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$1b, vue.toDisplayString(_ctx.labels.noResults), 1);
|
|
3493
3493
|
};
|
|
3494
3494
|
}
|
|
3495
3495
|
});
|
|
3496
|
-
const _hoisted_1$
|
|
3496
|
+
const _hoisted_1$1a = ["innerHTML"];
|
|
3497
3497
|
const _hoisted_2$N = {
|
|
3498
3498
|
key: 1,
|
|
3499
3499
|
"data-cy": "lupa-suggestion-value",
|
|
@@ -3512,7 +3512,7 @@ const _hoisted_5$g = {
|
|
|
3512
3512
|
class: "lupa-suggestion-facet-value",
|
|
3513
3513
|
"data-cy": "lupa-suggestion-facet-value"
|
|
3514
3514
|
};
|
|
3515
|
-
const _sfc_main$
|
|
3515
|
+
const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
3516
3516
|
__name: "SearchBoxSuggestion",
|
|
3517
3517
|
props: {
|
|
3518
3518
|
suggestion: {},
|
|
@@ -3548,7 +3548,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
|
3548
3548
|
class: "lupa-suggestion-value",
|
|
3549
3549
|
"data-cy": "lupa-suggestion-value",
|
|
3550
3550
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
3551
|
-
}, null, 8, _hoisted_1$
|
|
3551
|
+
}, null, 8, _hoisted_1$1a)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$N, vue.toDisplayString(_ctx.suggestion.display), 1)),
|
|
3552
3552
|
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
|
|
3553
3553
|
vue.createElementVNode("span", _hoisted_4$r, vue.toDisplayString(facetLabel.value), 1),
|
|
3554
3554
|
vue.createElementVNode("span", _hoisted_5$g, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -3557,11 +3557,11 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
|
3557
3557
|
};
|
|
3558
3558
|
}
|
|
3559
3559
|
});
|
|
3560
|
-
const _hoisted_1$
|
|
3560
|
+
const _hoisted_1$19 = {
|
|
3561
3561
|
id: "lupa-search-box-suggestions",
|
|
3562
3562
|
"data-cy": "lupa-search-box-suggestions"
|
|
3563
3563
|
};
|
|
3564
|
-
const _sfc_main$
|
|
3564
|
+
const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
3565
3565
|
__name: "SearchBoxSuggestions",
|
|
3566
3566
|
props: {
|
|
3567
3567
|
items: {},
|
|
@@ -3621,9 +3621,9 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
|
3621
3621
|
});
|
|
3622
3622
|
});
|
|
3623
3623
|
return (_ctx, _cache) => {
|
|
3624
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3624
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$19, [
|
|
3625
3625
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
|
|
3626
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3626
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1h, {
|
|
3627
3627
|
key: getSuggestionKey(item),
|
|
3628
3628
|
class: vue.normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
3629
3629
|
suggestion: item,
|
|
@@ -3651,7 +3651,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
3651
3651
|
}, timeout);
|
|
3652
3652
|
};
|
|
3653
3653
|
};
|
|
3654
|
-
const _sfc_main$
|
|
3654
|
+
const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
3655
3655
|
__name: "SearchBoxSuggestionsWrapper",
|
|
3656
3656
|
props: {
|
|
3657
3657
|
panel: {},
|
|
@@ -3692,7 +3692,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
|
3692
3692
|
};
|
|
3693
3693
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
3694
3694
|
return (_ctx, _cache) => {
|
|
3695
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3695
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1g, {
|
|
3696
3696
|
items: searchResult.value,
|
|
3697
3697
|
highlight: _ctx.panel.highlight,
|
|
3698
3698
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -3795,8 +3795,8 @@ const replaceImageWithPlaceholder = (e, placeholder) => {
|
|
|
3795
3795
|
targetImage.src = placeholder;
|
|
3796
3796
|
}
|
|
3797
3797
|
};
|
|
3798
|
-
const _hoisted_1$
|
|
3799
|
-
const _sfc_main$
|
|
3798
|
+
const _hoisted_1$18 = ["src"];
|
|
3799
|
+
const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
3800
3800
|
__name: "ProductImage",
|
|
3801
3801
|
props: {
|
|
3802
3802
|
item: {},
|
|
@@ -3914,7 +3914,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3914
3914
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
3915
3915
|
onError: replaceWithPlaceholder,
|
|
3916
3916
|
key: finalUrl.value
|
|
3917
|
-
}), null, 16, _hoisted_1$
|
|
3917
|
+
}), null, 16, _hoisted_1$18))
|
|
3918
3918
|
]),
|
|
3919
3919
|
_: 1
|
|
3920
3920
|
})
|
|
@@ -3922,7 +3922,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3922
3922
|
};
|
|
3923
3923
|
}
|
|
3924
3924
|
});
|
|
3925
|
-
const _sfc_main$
|
|
3925
|
+
const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
3926
3926
|
__name: "SearchBoxProductImage",
|
|
3927
3927
|
props: {
|
|
3928
3928
|
item: {},
|
|
@@ -3930,7 +3930,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
3930
3930
|
},
|
|
3931
3931
|
setup(__props) {
|
|
3932
3932
|
return (_ctx, _cache) => {
|
|
3933
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3933
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1e, {
|
|
3934
3934
|
item: _ctx.item,
|
|
3935
3935
|
options: _ctx.options,
|
|
3936
3936
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -3939,12 +3939,12 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
3939
3939
|
};
|
|
3940
3940
|
}
|
|
3941
3941
|
});
|
|
3942
|
-
const _hoisted_1$
|
|
3942
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
3943
3943
|
const _hoisted_2$M = {
|
|
3944
3944
|
key: 1,
|
|
3945
3945
|
class: "lupa-search-box-product-title"
|
|
3946
3946
|
};
|
|
3947
|
-
const _sfc_main$
|
|
3947
|
+
const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
3948
3948
|
__name: "SearchBoxProductTitle",
|
|
3949
3949
|
props: {
|
|
3950
3950
|
item: {},
|
|
@@ -3964,18 +3964,18 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
3964
3964
|
key: 0,
|
|
3965
3965
|
class: "lupa-search-box-product-title",
|
|
3966
3966
|
innerHTML: title.value
|
|
3967
|
-
}, null, 8, _hoisted_1$
|
|
3967
|
+
}, null, 8, _hoisted_1$17)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$M, [
|
|
3968
3968
|
vue.createElementVNode("strong", null, vue.toDisplayString(title.value), 1)
|
|
3969
3969
|
]));
|
|
3970
3970
|
};
|
|
3971
3971
|
}
|
|
3972
3972
|
});
|
|
3973
|
-
const _hoisted_1$
|
|
3973
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
3974
3974
|
const _hoisted_2$L = {
|
|
3975
3975
|
key: 1,
|
|
3976
3976
|
class: "lupa-search-box-product-description"
|
|
3977
3977
|
};
|
|
3978
|
-
const _sfc_main$
|
|
3978
|
+
const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
3979
3979
|
__name: "SearchBoxProductDescription",
|
|
3980
3980
|
props: {
|
|
3981
3981
|
item: {},
|
|
@@ -3995,12 +3995,12 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
3995
3995
|
key: 0,
|
|
3996
3996
|
class: "lupa-search-box-product-description",
|
|
3997
3997
|
innerHTML: description.value
|
|
3998
|
-
}, null, 8, _hoisted_1$
|
|
3998
|
+
}, null, 8, _hoisted_1$16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$L, vue.toDisplayString(description.value), 1));
|
|
3999
3999
|
};
|
|
4000
4000
|
}
|
|
4001
4001
|
});
|
|
4002
|
-
const _hoisted_1$
|
|
4003
|
-
const _sfc_main$
|
|
4002
|
+
const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
|
|
4003
|
+
const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
4004
4004
|
__name: "SearchBoxProductPrice",
|
|
4005
4005
|
props: {
|
|
4006
4006
|
item: {},
|
|
@@ -4018,14 +4018,14 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4018
4018
|
);
|
|
4019
4019
|
});
|
|
4020
4020
|
return (_ctx, _cache) => {
|
|
4021
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4021
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
|
|
4022
4022
|
vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
|
|
4023
4023
|
]);
|
|
4024
4024
|
};
|
|
4025
4025
|
}
|
|
4026
4026
|
});
|
|
4027
|
-
const _hoisted_1$
|
|
4028
|
-
const _sfc_main$
|
|
4027
|
+
const _hoisted_1$14 = { class: "lupa-search-box-product-regular-price" };
|
|
4028
|
+
const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
4029
4029
|
__name: "SearchBoxProductRegularPrice",
|
|
4030
4030
|
props: {
|
|
4031
4031
|
item: {},
|
|
@@ -4043,16 +4043,16 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4043
4043
|
);
|
|
4044
4044
|
});
|
|
4045
4045
|
return (_ctx, _cache) => {
|
|
4046
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4046
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$14, vue.toDisplayString(price.value), 1);
|
|
4047
4047
|
};
|
|
4048
4048
|
}
|
|
4049
4049
|
});
|
|
4050
|
-
const _hoisted_1$
|
|
4050
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
4051
4051
|
const _hoisted_2$K = { key: 0 };
|
|
4052
4052
|
const _hoisted_3$y = { key: 1 };
|
|
4053
4053
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
4054
4054
|
const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
|
|
4055
|
-
const _sfc_main$
|
|
4055
|
+
const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
4056
4056
|
__name: "SearchBoxProductCustom",
|
|
4057
4057
|
props: {
|
|
4058
4058
|
item: {},
|
|
@@ -4078,7 +4078,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4078
4078
|
key: 0,
|
|
4079
4079
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
4080
4080
|
innerHTML: text.value
|
|
4081
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
4081
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
4082
4082
|
key: 1,
|
|
4083
4083
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
4084
4084
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
@@ -4090,8 +4090,8 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4090
4090
|
};
|
|
4091
4091
|
}
|
|
4092
4092
|
});
|
|
4093
|
-
const _hoisted_1$
|
|
4094
|
-
const _sfc_main$
|
|
4093
|
+
const _hoisted_1$12 = ["innerHTML"];
|
|
4094
|
+
const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
4095
4095
|
__name: "SearchBoxProductCustomHtml",
|
|
4096
4096
|
props: {
|
|
4097
4097
|
item: {},
|
|
@@ -4111,7 +4111,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4111
4111
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
4112
4112
|
class: className.value,
|
|
4113
4113
|
innerHTML: text.value
|
|
4114
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
4114
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
|
|
4115
4115
|
};
|
|
4116
4116
|
}
|
|
4117
4117
|
});
|
|
@@ -4309,10 +4309,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
4309
4309
|
clearSearchResult
|
|
4310
4310
|
};
|
|
4311
4311
|
});
|
|
4312
|
-
const _hoisted_1$
|
|
4312
|
+
const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
4313
4313
|
const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
|
|
4314
4314
|
const _hoisted_3$x = ["onClick", "disabled"];
|
|
4315
|
-
const _sfc_main$
|
|
4315
|
+
const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
4316
4316
|
__name: "SearchBoxProductAddToCart",
|
|
4317
4317
|
props: {
|
|
4318
4318
|
item: {},
|
|
@@ -4339,7 +4339,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4339
4339
|
loading.value = false;
|
|
4340
4340
|
});
|
|
4341
4341
|
return (_ctx, _cache) => {
|
|
4342
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4342
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
|
|
4343
4343
|
vue.createElementVNode("div", _hoisted_2$J, [
|
|
4344
4344
|
vue.createElementVNode("button", {
|
|
4345
4345
|
onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -4353,23 +4353,23 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4353
4353
|
};
|
|
4354
4354
|
}
|
|
4355
4355
|
});
|
|
4356
|
-
const _hoisted_1
|
|
4356
|
+
const _hoisted_1$10 = {
|
|
4357
4357
|
key: 1,
|
|
4358
4358
|
class: "lupa-search-box-element-badge-wrapper"
|
|
4359
4359
|
};
|
|
4360
4360
|
const __default__$4 = {
|
|
4361
4361
|
components: {
|
|
4362
|
-
SearchBoxProductImage: _sfc_main$
|
|
4363
|
-
SearchBoxProductTitle: _sfc_main$
|
|
4364
|
-
SearchBoxProductDescription: _sfc_main$
|
|
4365
|
-
SearchBoxProductPrice: _sfc_main$
|
|
4366
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
4367
|
-
SearchBoxProductCustom: _sfc_main$
|
|
4368
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
4369
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
4362
|
+
SearchBoxProductImage: _sfc_main$1d,
|
|
4363
|
+
SearchBoxProductTitle: _sfc_main$1c,
|
|
4364
|
+
SearchBoxProductDescription: _sfc_main$1b,
|
|
4365
|
+
SearchBoxProductPrice: _sfc_main$1a,
|
|
4366
|
+
SearchBoxProductRegularPrice: _sfc_main$19,
|
|
4367
|
+
SearchBoxProductCustom: _sfc_main$18,
|
|
4368
|
+
SearchBoxProductCustomHtml: _sfc_main$17,
|
|
4369
|
+
SearchBoxProductAddToCart: _sfc_main$16
|
|
4370
4370
|
}
|
|
4371
4371
|
};
|
|
4372
|
-
const _sfc_main$
|
|
4372
|
+
const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
|
|
4373
4373
|
__name: "SearchBoxProductElement",
|
|
4374
4374
|
props: {
|
|
4375
4375
|
item: {},
|
|
@@ -4427,7 +4427,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4427
4427
|
class: vue.normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
4428
4428
|
inStock: _ctx.isInStock
|
|
4429
4429
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : vue.createCommentVNode("", true)
|
|
4430
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1
|
|
4430
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$10, [
|
|
4431
4431
|
displayElement.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(elementComponent.value), {
|
|
4432
4432
|
key: 0,
|
|
4433
4433
|
item: enhancedItem.value,
|
|
@@ -4441,14 +4441,14 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4441
4441
|
};
|
|
4442
4442
|
}
|
|
4443
4443
|
}));
|
|
4444
|
-
const _hoisted_1
|
|
4444
|
+
const _hoisted_1$$ = { class: "lupa-badge-title" };
|
|
4445
4445
|
const _hoisted_2$I = ["src"];
|
|
4446
4446
|
const _hoisted_3$w = { key: 1 };
|
|
4447
4447
|
const _hoisted_4$p = {
|
|
4448
4448
|
key: 0,
|
|
4449
4449
|
class: "lupa-badge-full-text"
|
|
4450
4450
|
};
|
|
4451
|
-
const _sfc_main$
|
|
4451
|
+
const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
4452
4452
|
__name: "SearchResultGeneratedBadge",
|
|
4453
4453
|
props: {
|
|
4454
4454
|
options: {},
|
|
@@ -4481,7 +4481,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4481
4481
|
class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
4482
4482
|
style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
4483
4483
|
}, [
|
|
4484
|
-
vue.createElementVNode("span", _hoisted_1
|
|
4484
|
+
vue.createElementVNode("span", _hoisted_1$$, [
|
|
4485
4485
|
image.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
4486
4486
|
key: 0,
|
|
4487
4487
|
src: image.value
|
|
@@ -4493,8 +4493,8 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4493
4493
|
};
|
|
4494
4494
|
}
|
|
4495
4495
|
});
|
|
4496
|
-
const _hoisted_1$
|
|
4497
|
-
const _sfc_main$
|
|
4496
|
+
const _hoisted_1$_ = { class: "lupa-generated-badges" };
|
|
4497
|
+
const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
4498
4498
|
__name: "SearchResultGeneratedBadges",
|
|
4499
4499
|
props: {
|
|
4500
4500
|
options: {}
|
|
@@ -4520,9 +4520,9 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4520
4520
|
})).filter((b) => Boolean(b.id));
|
|
4521
4521
|
});
|
|
4522
4522
|
return (_ctx, _cache) => {
|
|
4523
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4523
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
|
|
4524
4524
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
|
|
4525
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4525
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$14, {
|
|
4526
4526
|
key: badge.id,
|
|
4527
4527
|
badge,
|
|
4528
4528
|
options: _ctx.options
|
|
@@ -4532,8 +4532,8 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4532
4532
|
};
|
|
4533
4533
|
}
|
|
4534
4534
|
});
|
|
4535
|
-
const _hoisted_1$
|
|
4536
|
-
const _sfc_main$
|
|
4535
|
+
const _hoisted_1$Z = ["innerHTML"];
|
|
4536
|
+
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
4537
4537
|
__name: "CustomBadge",
|
|
4538
4538
|
props: {
|
|
4539
4539
|
badge: {}
|
|
@@ -4552,12 +4552,12 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4552
4552
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4553
4553
|
class: vue.normalizeClass(className.value),
|
|
4554
4554
|
innerHTML: text.value
|
|
4555
|
-
}, null, 10, _hoisted_1$
|
|
4555
|
+
}, null, 10, _hoisted_1$Z);
|
|
4556
4556
|
};
|
|
4557
4557
|
}
|
|
4558
4558
|
});
|
|
4559
|
-
const _hoisted_1$
|
|
4560
|
-
const _sfc_main$
|
|
4559
|
+
const _hoisted_1$Y = { class: "lupa-text-badges" };
|
|
4560
|
+
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
4561
4561
|
__name: "TextBadge",
|
|
4562
4562
|
props: {
|
|
4563
4563
|
badge: {}
|
|
@@ -4572,7 +4572,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4572
4572
|
return badges.value.slice(0, props.badge.maxItems);
|
|
4573
4573
|
});
|
|
4574
4574
|
return (_ctx, _cache) => {
|
|
4575
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4575
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
|
|
4576
4576
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
4577
4577
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4578
4578
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -4583,9 +4583,9 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4583
4583
|
};
|
|
4584
4584
|
}
|
|
4585
4585
|
});
|
|
4586
|
-
const _hoisted_1$
|
|
4586
|
+
const _hoisted_1$X = { class: "lupa-image-badges" };
|
|
4587
4587
|
const _hoisted_2$H = ["src"];
|
|
4588
|
-
const _sfc_main
|
|
4588
|
+
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
4589
4589
|
__name: "ImageBadge",
|
|
4590
4590
|
props: {
|
|
4591
4591
|
badge: {}
|
|
@@ -4605,7 +4605,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4605
4605
|
return `${props.badge.rootImageUrl}${src}`;
|
|
4606
4606
|
};
|
|
4607
4607
|
return (_ctx, _cache) => {
|
|
4608
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4608
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
4609
4609
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
4610
4610
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4611
4611
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -4620,15 +4620,15 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4620
4620
|
};
|
|
4621
4621
|
}
|
|
4622
4622
|
});
|
|
4623
|
-
const _hoisted_1$
|
|
4623
|
+
const _hoisted_1$W = { id: "lupa-search-results-badges" };
|
|
4624
4624
|
const __default__$3 = {
|
|
4625
4625
|
components: {
|
|
4626
|
-
CustomBadge: _sfc_main$
|
|
4627
|
-
TextBadge: _sfc_main$
|
|
4628
|
-
ImageBadge: _sfc_main
|
|
4626
|
+
CustomBadge: _sfc_main$12,
|
|
4627
|
+
TextBadge: _sfc_main$11,
|
|
4628
|
+
ImageBadge: _sfc_main$10
|
|
4629
4629
|
}
|
|
4630
4630
|
};
|
|
4631
|
-
const _sfc_main
|
|
4631
|
+
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
|
|
4632
4632
|
__name: "SearchResultsBadgeWrapper",
|
|
4633
4633
|
props: {
|
|
4634
4634
|
position: {},
|
|
@@ -4684,7 +4684,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
4684
4684
|
}
|
|
4685
4685
|
};
|
|
4686
4686
|
return (_ctx, _cache) => {
|
|
4687
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4687
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
|
|
4688
4688
|
vue.createElementVNode("div", {
|
|
4689
4689
|
id: "lupa-badges",
|
|
4690
4690
|
class: vue.normalizeClass(anchorPosition.value)
|
|
@@ -4695,7 +4695,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
4695
4695
|
badge
|
|
4696
4696
|
}, null, 8, ["badge"]);
|
|
4697
4697
|
}), 128)),
|
|
4698
|
-
positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4698
|
+
positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$13, {
|
|
4699
4699
|
key: 0,
|
|
4700
4700
|
options: _ctx.options
|
|
4701
4701
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true)
|
|
@@ -4704,14 +4704,14 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
4704
4704
|
};
|
|
4705
4705
|
}
|
|
4706
4706
|
}));
|
|
4707
|
-
const _hoisted_1$
|
|
4707
|
+
const _hoisted_1$V = ["href"];
|
|
4708
4708
|
const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
|
|
4709
4709
|
const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
|
|
4710
4710
|
const _hoisted_4$o = {
|
|
4711
4711
|
key: 0,
|
|
4712
4712
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
4713
4713
|
};
|
|
4714
|
-
const _sfc_main$
|
|
4714
|
+
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
4715
4715
|
__name: "SearchBoxProduct",
|
|
4716
4716
|
props: {
|
|
4717
4717
|
item: {},
|
|
@@ -4772,7 +4772,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
4772
4772
|
}), [
|
|
4773
4773
|
vue.createElementVNode("div", _hoisted_2$G, [
|
|
4774
4774
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
|
|
4775
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4775
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$15, {
|
|
4776
4776
|
class: "lupa-search-box-product-element",
|
|
4777
4777
|
item: _ctx.item,
|
|
4778
4778
|
element,
|
|
@@ -4785,7 +4785,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
4785
4785
|
vue.createElementVNode("div", _hoisted_3$v, [
|
|
4786
4786
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
|
|
4787
4787
|
var _a;
|
|
4788
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4788
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$15, {
|
|
4789
4789
|
key: element.key,
|
|
4790
4790
|
class: "lupa-search-box-product-element",
|
|
4791
4791
|
item: _ctx.item,
|
|
@@ -4796,7 +4796,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
4796
4796
|
badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
|
|
4797
4797
|
name: "badges",
|
|
4798
4798
|
fn: vue.withCtx(() => [
|
|
4799
|
-
vue.createVNode(_sfc_main
|
|
4799
|
+
vue.createVNode(_sfc_main$$, {
|
|
4800
4800
|
options: badgeOptions.value,
|
|
4801
4801
|
position: "card"
|
|
4802
4802
|
}, null, 8, ["options"])
|
|
@@ -4807,7 +4807,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
4807
4807
|
}), 128))
|
|
4808
4808
|
]),
|
|
4809
4809
|
addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, [
|
|
4810
|
-
vue.createVNode(_sfc_main$
|
|
4810
|
+
vue.createVNode(_sfc_main$15, {
|
|
4811
4811
|
class: "lupa-search-box-product-element",
|
|
4812
4812
|
item: _ctx.item,
|
|
4813
4813
|
element: addToCartElement.value,
|
|
@@ -4816,7 +4816,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
4816
4816
|
isInStock: isInStock.value
|
|
4817
4817
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
4818
4818
|
])) : vue.createCommentVNode("", true)
|
|
4819
|
-
], 16, _hoisted_1$
|
|
4819
|
+
], 16, _hoisted_1$V);
|
|
4820
4820
|
};
|
|
4821
4821
|
}
|
|
4822
4822
|
});
|
|
@@ -4877,8 +4877,8 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
4877
4877
|
};
|
|
4878
4878
|
return { trackSearch, trackResults, trackEvent };
|
|
4879
4879
|
});
|
|
4880
|
-
const _hoisted_1$
|
|
4881
|
-
const _sfc_main$
|
|
4880
|
+
const _hoisted_1$U = { id: "lupa-search-box-products" };
|
|
4881
|
+
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
4882
4882
|
__name: "SearchBoxProducts",
|
|
4883
4883
|
props: {
|
|
4884
4884
|
items: {},
|
|
@@ -4939,7 +4939,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
4939
4939
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
4940
4940
|
};
|
|
4941
4941
|
return (_ctx, _cache) => {
|
|
4942
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4942
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
|
|
4943
4943
|
_ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.items, (item, index) => {
|
|
4944
4944
|
return vue.renderSlot(_ctx.$slots, "productCard", {
|
|
4945
4945
|
key: index,
|
|
@@ -4951,7 +4951,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
4951
4951
|
itemClicked: handleProductClick
|
|
4952
4952
|
});
|
|
4953
4953
|
}), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.items, (item, index) => {
|
|
4954
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4954
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$_, {
|
|
4955
4955
|
key: index,
|
|
4956
4956
|
item,
|
|
4957
4957
|
panelOptions: _ctx.panelOptions,
|
|
@@ -4965,7 +4965,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
4965
4965
|
};
|
|
4966
4966
|
}
|
|
4967
4967
|
});
|
|
4968
|
-
const _sfc_main$
|
|
4968
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
4969
4969
|
__name: "SearchBoxProductsWrapper",
|
|
4970
4970
|
props: {
|
|
4971
4971
|
panel: {},
|
|
@@ -5017,7 +5017,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
5017
5017
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
5018
5018
|
return (_ctx, _cache) => {
|
|
5019
5019
|
var _a, _b;
|
|
5020
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5020
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$Z, {
|
|
5021
5021
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
5022
5022
|
panelOptions: _ctx.panel,
|
|
5023
5023
|
labels: _ctx.labels,
|
|
@@ -5035,7 +5035,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
5035
5035
|
};
|
|
5036
5036
|
}
|
|
5037
5037
|
});
|
|
5038
|
-
const _sfc_main$
|
|
5038
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
5039
5039
|
__name: "SearchBoxRelatedSourceWrapper",
|
|
5040
5040
|
props: {
|
|
5041
5041
|
panel: {},
|
|
@@ -5107,7 +5107,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
5107
5107
|
});
|
|
5108
5108
|
return (_ctx, _cache) => {
|
|
5109
5109
|
var _a, _b;
|
|
5110
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5110
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$Z, {
|
|
5111
5111
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
5112
5112
|
panelOptions: documentPanelOptions.value,
|
|
5113
5113
|
labels: _ctx.labels,
|
|
@@ -5125,7 +5125,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
5125
5125
|
};
|
|
5126
5126
|
}
|
|
5127
5127
|
});
|
|
5128
|
-
const _hoisted_1$
|
|
5128
|
+
const _hoisted_1$T = {
|
|
5129
5129
|
key: 0,
|
|
5130
5130
|
id: "lupa-search-box-panel"
|
|
5131
5131
|
};
|
|
@@ -5144,12 +5144,12 @@ const _hoisted_5$e = {
|
|
|
5144
5144
|
};
|
|
5145
5145
|
const __default__$2 = {
|
|
5146
5146
|
components: {
|
|
5147
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
5148
|
-
SearchBoxProductsWrapper: _sfc_main$
|
|
5149
|
-
SearchBoxRelatedSourceWrapper: _sfc_main$
|
|
5147
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1f,
|
|
5148
|
+
SearchBoxProductsWrapper: _sfc_main$Y,
|
|
5149
|
+
SearchBoxRelatedSourceWrapper: _sfc_main$X
|
|
5150
5150
|
}
|
|
5151
5151
|
};
|
|
5152
|
-
const _sfc_main$
|
|
5152
|
+
const _sfc_main$W = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
|
|
5153
5153
|
__name: "SearchBoxMainPanel",
|
|
5154
5154
|
props: {
|
|
5155
5155
|
options: {},
|
|
@@ -5295,7 +5295,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
5295
5295
|
ref_key: "panelContainer",
|
|
5296
5296
|
ref: panelContainer
|
|
5297
5297
|
}, [
|
|
5298
|
-
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5298
|
+
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
|
|
5299
5299
|
labels.value.closePanel ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
5300
5300
|
key: 0,
|
|
5301
5301
|
class: "lupa-search-box-close-panel",
|
|
@@ -5340,18 +5340,18 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
5340
5340
|
], 10, _hoisted_2$F);
|
|
5341
5341
|
}), 128))
|
|
5342
5342
|
], 4),
|
|
5343
|
-
!vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5343
|
+
!vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$1i, {
|
|
5344
5344
|
key: 1,
|
|
5345
5345
|
labels: labels.value
|
|
5346
5346
|
}, null, 8, ["labels"])) : vue.createCommentVNode("", true),
|
|
5347
|
-
vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5347
|
+
vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$1l, {
|
|
5348
5348
|
key: 2,
|
|
5349
5349
|
labels: labels.value,
|
|
5350
5350
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
5351
5351
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
5352
5352
|
}, null, 8, ["labels", "showTotalCount"])) : vue.createCommentVNode("", true)
|
|
5353
5353
|
])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$e, [
|
|
5354
|
-
vue.createVNode(_sfc_main$
|
|
5354
|
+
vue.createVNode(_sfc_main$1j, {
|
|
5355
5355
|
options: _ctx.options.history,
|
|
5356
5356
|
history: history.value,
|
|
5357
5357
|
onGoToResults: handleGoToResults,
|
|
@@ -5376,9 +5376,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
5376
5376
|
const elements = getElements(triggers);
|
|
5377
5377
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
5378
5378
|
};
|
|
5379
|
-
const _hoisted_1$
|
|
5379
|
+
const _hoisted_1$S = { id: "lupa-search-box" };
|
|
5380
5380
|
const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
|
|
5381
|
-
const _sfc_main$
|
|
5381
|
+
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
5382
5382
|
__name: "SearchBox",
|
|
5383
5383
|
props: {
|
|
5384
5384
|
options: {},
|
|
@@ -5623,9 +5623,9 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
5623
5623
|
};
|
|
5624
5624
|
return (_ctx, _cache) => {
|
|
5625
5625
|
var _a2;
|
|
5626
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5626
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
|
|
5627
5627
|
vue.createElementVNode("div", _hoisted_2$E, [
|
|
5628
|
-
vue.createVNode(_sfc_main$
|
|
5628
|
+
vue.createVNode(_sfc_main$1m, {
|
|
5629
5629
|
options: inputOptions.value,
|
|
5630
5630
|
suggestedValue: suggestedValue.value,
|
|
5631
5631
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -5636,7 +5636,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
5636
5636
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
5637
5637
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
5638
5638
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
5639
|
-
opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5639
|
+
opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$W, {
|
|
5640
5640
|
key: 0,
|
|
5641
5641
|
options: panelOptions.value,
|
|
5642
5642
|
inputValue: inputValue.value,
|
|
@@ -5740,7 +5740,7 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
|
|
|
5740
5740
|
options.options.onError(e);
|
|
5741
5741
|
}
|
|
5742
5742
|
});
|
|
5743
|
-
const _hoisted_1$
|
|
5743
|
+
const _hoisted_1$R = {
|
|
5744
5744
|
key: 0,
|
|
5745
5745
|
id: "lupa-search-results-did-you-mean"
|
|
5746
5746
|
};
|
|
@@ -5753,7 +5753,7 @@ const _hoisted_3$t = {
|
|
|
5753
5753
|
"data-cy": "did-you-mean-label"
|
|
5754
5754
|
};
|
|
5755
5755
|
const _hoisted_4$m = { key: 1 };
|
|
5756
|
-
const _sfc_main$
|
|
5756
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
5757
5757
|
__name: "SearchResultsDidYouMean",
|
|
5758
5758
|
props: {
|
|
5759
5759
|
labels: {}
|
|
@@ -5785,7 +5785,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
5785
5785
|
paramStore.goToResults({ searchText, facet });
|
|
5786
5786
|
};
|
|
5787
5787
|
return (_ctx, _cache) => {
|
|
5788
|
-
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5788
|
+
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
|
|
5789
5789
|
vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$D, [
|
|
5790
5790
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
5791
5791
|
return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
|
|
@@ -5811,12 +5811,12 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
5811
5811
|
};
|
|
5812
5812
|
}
|
|
5813
5813
|
});
|
|
5814
|
-
const _hoisted_1$
|
|
5814
|
+
const _hoisted_1$Q = {
|
|
5815
5815
|
key: 0,
|
|
5816
5816
|
class: "lupa-search-results-summary"
|
|
5817
5817
|
};
|
|
5818
5818
|
const _hoisted_2$C = ["innerHTML"];
|
|
5819
|
-
const _sfc_main$
|
|
5819
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
5820
5820
|
__name: "SearchResultsSummary",
|
|
5821
5821
|
props: {
|
|
5822
5822
|
label: {},
|
|
@@ -5831,7 +5831,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
5831
5831
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
5832
5832
|
});
|
|
5833
5833
|
return (_ctx, _cache) => {
|
|
5834
|
-
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5834
|
+
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
|
|
5835
5835
|
vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
|
|
5836
5836
|
_ctx.clearable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
5837
5837
|
key: 0,
|
|
@@ -5843,7 +5843,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
5843
5843
|
};
|
|
5844
5844
|
}
|
|
5845
5845
|
});
|
|
5846
|
-
const _hoisted_1$
|
|
5846
|
+
const _hoisted_1$P = {
|
|
5847
5847
|
key: 0,
|
|
5848
5848
|
class: "lupa-result-page-title",
|
|
5849
5849
|
"data-cy": "lupa-result-page-title"
|
|
@@ -5854,7 +5854,7 @@ const _hoisted_3$s = {
|
|
|
5854
5854
|
class: "lupa-results-total-count"
|
|
5855
5855
|
};
|
|
5856
5856
|
const _hoisted_4$l = ["innerHTML"];
|
|
5857
|
-
const _sfc_main$
|
|
5857
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
5858
5858
|
__name: "SearchResultsTitle",
|
|
5859
5859
|
props: {
|
|
5860
5860
|
options: {},
|
|
@@ -5889,12 +5889,12 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
5889
5889
|
});
|
|
5890
5890
|
return (_ctx, _cache) => {
|
|
5891
5891
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
5892
|
-
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$
|
|
5892
|
+
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$P, [
|
|
5893
5893
|
vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
5894
5894
|
queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$B, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
|
|
5895
5895
|
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$s, "(" + vue.toDisplayString(vue.unref(totalItems)) + ")", 1)) : vue.createCommentVNode("", true)
|
|
5896
5896
|
])) : vue.createCommentVNode("", true),
|
|
5897
|
-
_ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5897
|
+
_ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
|
|
5898
5898
|
key: 1,
|
|
5899
5899
|
label: summaryLabel.value
|
|
5900
5900
|
}, null, 8, ["label"])) : vue.createCommentVNode("", true),
|
|
@@ -5907,7 +5907,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
5907
5907
|
};
|
|
5908
5908
|
}
|
|
5909
5909
|
});
|
|
5910
|
-
const _hoisted_1$
|
|
5910
|
+
const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
|
|
5911
5911
|
const _hoisted_2$A = {
|
|
5912
5912
|
class: "lupa-current-filter-label",
|
|
5913
5913
|
"data-cy": "lupa-current-filter-label"
|
|
@@ -5916,7 +5916,7 @@ const _hoisted_3$r = {
|
|
|
5916
5916
|
class: "lupa-current-filter-value",
|
|
5917
5917
|
"data-cy": "lupa-current-filter-value"
|
|
5918
5918
|
};
|
|
5919
|
-
const _sfc_main$
|
|
5919
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
5920
5920
|
__name: "CurrentFilterDisplay",
|
|
5921
5921
|
props: {
|
|
5922
5922
|
filter: {}
|
|
@@ -5928,7 +5928,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
5928
5928
|
emit("remove", { filter: props.filter });
|
|
5929
5929
|
};
|
|
5930
5930
|
return (_ctx, _cache) => {
|
|
5931
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5931
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
|
|
5932
5932
|
vue.createElementVNode("div", {
|
|
5933
5933
|
class: "lupa-current-filter-action",
|
|
5934
5934
|
onClick: handleClick
|
|
@@ -5939,7 +5939,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
5939
5939
|
};
|
|
5940
5940
|
}
|
|
5941
5941
|
});
|
|
5942
|
-
const _hoisted_1$
|
|
5942
|
+
const _hoisted_1$N = { class: "lupa-filter-title-text" };
|
|
5943
5943
|
const _hoisted_2$z = {
|
|
5944
5944
|
key: 0,
|
|
5945
5945
|
class: "lupa-filter-count"
|
|
@@ -5949,7 +5949,7 @@ const _hoisted_3$q = {
|
|
|
5949
5949
|
class: "filter-values"
|
|
5950
5950
|
};
|
|
5951
5951
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
5952
|
-
const _sfc_main$
|
|
5952
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
5953
5953
|
__name: "CurrentFilters",
|
|
5954
5954
|
props: {
|
|
5955
5955
|
options: {},
|
|
@@ -6010,7 +6010,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
6010
6010
|
class: "lupa-current-filter-title",
|
|
6011
6011
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
6012
6012
|
}, [
|
|
6013
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
6013
|
+
vue.createElementVNode("div", _hoisted_1$N, [
|
|
6014
6014
|
vue.createTextVNode(vue.toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
6015
6015
|
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$z, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
|
|
6016
6016
|
]),
|
|
@@ -6022,7 +6022,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
6022
6022
|
!_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$q, [
|
|
6023
6023
|
vue.createElementVNode("div", _hoisted_4$k, [
|
|
6024
6024
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(displayFilters), (filter) => {
|
|
6025
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6025
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$R, {
|
|
6026
6026
|
key: filter.key + "_" + filter.value,
|
|
6027
6027
|
filter,
|
|
6028
6028
|
onRemove: handleRemove
|
|
@@ -6039,8 +6039,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
6039
6039
|
};
|
|
6040
6040
|
}
|
|
6041
6041
|
});
|
|
6042
|
-
const _hoisted_1$
|
|
6043
|
-
const _sfc_main$
|
|
6042
|
+
const _hoisted_1$M = ["href"];
|
|
6043
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
6044
6044
|
__name: "CategoryFilterItem",
|
|
6045
6045
|
props: {
|
|
6046
6046
|
options: {},
|
|
@@ -6077,12 +6077,12 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
6077
6077
|
"data-cy": "lupa-child-category-item",
|
|
6078
6078
|
href: urlLink.value,
|
|
6079
6079
|
onClick: handleNavigation
|
|
6080
|
-
}, vue.toDisplayString(title.value), 9, _hoisted_1$
|
|
6080
|
+
}, vue.toDisplayString(title.value), 9, _hoisted_1$M)
|
|
6081
6081
|
], 2);
|
|
6082
6082
|
};
|
|
6083
6083
|
}
|
|
6084
6084
|
});
|
|
6085
|
-
const _hoisted_1$
|
|
6085
|
+
const _hoisted_1$L = {
|
|
6086
6086
|
class: "lupa-category-filter",
|
|
6087
6087
|
"data-cy": "lupa-category-filter"
|
|
6088
6088
|
};
|
|
@@ -6090,7 +6090,7 @@ const _hoisted_2$y = { class: "lupa-category-back" };
|
|
|
6090
6090
|
const _hoisted_3$p = ["href"];
|
|
6091
6091
|
const _hoisted_4$j = ["href"];
|
|
6092
6092
|
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
6093
|
-
const _sfc_main$
|
|
6093
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
6094
6094
|
__name: "CategoryFilter",
|
|
6095
6095
|
props: {
|
|
6096
6096
|
options: {}
|
|
@@ -6176,7 +6176,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6176
6176
|
};
|
|
6177
6177
|
__expose({ fetch: fetch2 });
|
|
6178
6178
|
return (_ctx, _cache) => {
|
|
6179
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6179
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
|
|
6180
6180
|
vue.createElementVNode("div", _hoisted_2$y, [
|
|
6181
6181
|
hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
6182
6182
|
key: 0,
|
|
@@ -6197,7 +6197,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6197
6197
|
], 2),
|
|
6198
6198
|
vue.createElementVNode("div", _hoisted_5$d, [
|
|
6199
6199
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
|
|
6200
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6200
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$P, {
|
|
6201
6201
|
key: getCategoryKey(child),
|
|
6202
6202
|
item: child,
|
|
6203
6203
|
options: _ctx.options
|
|
@@ -6208,7 +6208,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6208
6208
|
};
|
|
6209
6209
|
}
|
|
6210
6210
|
});
|
|
6211
|
-
const _hoisted_1$
|
|
6211
|
+
const _hoisted_1$K = {
|
|
6212
6212
|
class: "lupa-search-result-facet-term-values",
|
|
6213
6213
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
6214
6214
|
};
|
|
@@ -6224,7 +6224,7 @@ const _hoisted_8$1 = {
|
|
|
6224
6224
|
};
|
|
6225
6225
|
const _hoisted_9$1 = { key: 0 };
|
|
6226
6226
|
const _hoisted_10$1 = { key: 1 };
|
|
6227
|
-
const _sfc_main$
|
|
6227
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
6228
6228
|
__name: "TermFacet",
|
|
6229
6229
|
props: {
|
|
6230
6230
|
options: {},
|
|
@@ -6293,7 +6293,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
6293
6293
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
6294
6294
|
};
|
|
6295
6295
|
return (_ctx, _cache) => {
|
|
6296
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6296
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
|
|
6297
6297
|
isFilterable.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
6298
6298
|
key: 0,
|
|
6299
6299
|
class: "lupa-term-filter",
|
|
@@ -7311,7 +7311,7 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
7311
7311
|
m.render = function(e, t, r, i, n, o) {
|
|
7312
7312
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
7313
7313
|
}, m.__file = "src/Slider.vue";
|
|
7314
|
-
const _hoisted_1$
|
|
7314
|
+
const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
|
|
7315
7315
|
const _hoisted_2$w = {
|
|
7316
7316
|
key: 0,
|
|
7317
7317
|
class: "lupa-stats-facet-summary"
|
|
@@ -7339,7 +7339,7 @@ const _hoisted_13 = {
|
|
|
7339
7339
|
key: 2,
|
|
7340
7340
|
class: "lupa-stats-slider-wrapper"
|
|
7341
7341
|
};
|
|
7342
|
-
const _sfc_main$
|
|
7342
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
7343
7343
|
__name: "StatsFacet",
|
|
7344
7344
|
props: {
|
|
7345
7345
|
options: {},
|
|
@@ -7508,7 +7508,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7508
7508
|
innerSliderRange.value = value;
|
|
7509
7509
|
};
|
|
7510
7510
|
return (_ctx, _cache) => {
|
|
7511
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7511
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
|
|
7512
7512
|
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$w, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$n, [
|
|
7513
7513
|
vue.createElementVNode("div", null, [
|
|
7514
7514
|
rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$h, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
|
|
@@ -7575,7 +7575,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7575
7575
|
};
|
|
7576
7576
|
}
|
|
7577
7577
|
});
|
|
7578
|
-
const _hoisted_1$
|
|
7578
|
+
const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
|
|
7579
7579
|
const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
|
|
7580
7580
|
const _hoisted_3$m = { class: "lupa-term-label" };
|
|
7581
7581
|
const _hoisted_4$g = {
|
|
@@ -7586,7 +7586,7 @@ const _hoisted_5$a = {
|
|
|
7586
7586
|
key: 0,
|
|
7587
7587
|
class: "lupa-facet-level"
|
|
7588
7588
|
};
|
|
7589
|
-
const _sfc_main$
|
|
7589
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
7590
7590
|
__name: "HierarchyFacetLevel",
|
|
7591
7591
|
props: {
|
|
7592
7592
|
options: {},
|
|
@@ -7632,7 +7632,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7632
7632
|
"data-cy": "lupa-facet-term",
|
|
7633
7633
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
7634
7634
|
}, [
|
|
7635
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
7635
|
+
vue.createElementVNode("div", _hoisted_1$I, [
|
|
7636
7636
|
vue.createElementVNode("span", {
|
|
7637
7637
|
class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
7638
7638
|
}, null, 2)
|
|
@@ -7658,13 +7658,13 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7658
7658
|
};
|
|
7659
7659
|
}
|
|
7660
7660
|
});
|
|
7661
|
-
const _hoisted_1$
|
|
7661
|
+
const _hoisted_1$H = {
|
|
7662
7662
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
7663
7663
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
7664
7664
|
};
|
|
7665
7665
|
const _hoisted_2$u = { key: 0 };
|
|
7666
7666
|
const _hoisted_3$l = ["placeholder"];
|
|
7667
|
-
const _sfc_main$
|
|
7667
|
+
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
7668
7668
|
__name: "HierarchyFacet",
|
|
7669
7669
|
props: {
|
|
7670
7670
|
options: {},
|
|
@@ -7714,7 +7714,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
7714
7714
|
showAll.value = true;
|
|
7715
7715
|
};
|
|
7716
7716
|
return (_ctx, _cache) => {
|
|
7717
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7717
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
|
|
7718
7718
|
isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, [
|
|
7719
7719
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
7720
7720
|
class: "lupa-term-filter",
|
|
@@ -7726,7 +7726,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
7726
7726
|
])
|
|
7727
7727
|
])) : vue.createCommentVNode("", true),
|
|
7728
7728
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
|
|
7729
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7729
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$L, {
|
|
7730
7730
|
key: item.title,
|
|
7731
7731
|
options: _ctx.options,
|
|
7732
7732
|
item,
|
|
@@ -7746,7 +7746,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
7746
7746
|
};
|
|
7747
7747
|
}
|
|
7748
7748
|
});
|
|
7749
|
-
const _hoisted_1$
|
|
7749
|
+
const _hoisted_1$G = { class: "lupa-facet-label-text" };
|
|
7750
7750
|
const _hoisted_2$t = {
|
|
7751
7751
|
key: 0,
|
|
7752
7752
|
class: "lupa-facet-content",
|
|
@@ -7754,12 +7754,12 @@ const _hoisted_2$t = {
|
|
|
7754
7754
|
};
|
|
7755
7755
|
const __default__$1 = {
|
|
7756
7756
|
components: {
|
|
7757
|
-
TermFacet: _sfc_main$
|
|
7758
|
-
StatsFacet: _sfc_main$
|
|
7759
|
-
HierarchyFacet: _sfc_main$
|
|
7757
|
+
TermFacet: _sfc_main$N,
|
|
7758
|
+
StatsFacet: _sfc_main$M,
|
|
7759
|
+
HierarchyFacet: _sfc_main$K
|
|
7760
7760
|
}
|
|
7761
7761
|
};
|
|
7762
|
-
const _sfc_main$
|
|
7762
|
+
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
7763
7763
|
__name: "FacetDisplay",
|
|
7764
7764
|
props: {
|
|
7765
7765
|
options: {},
|
|
@@ -7871,7 +7871,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
7871
7871
|
"data-cy": "lupa-search-result-facet-label",
|
|
7872
7872
|
onClick: toggleFacet
|
|
7873
7873
|
}, [
|
|
7874
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
7874
|
+
vue.createElementVNode("div", _hoisted_1$G, vue.toDisplayString(facet.value.label), 1),
|
|
7875
7875
|
vue.createElementVNode("div", {
|
|
7876
7876
|
class: vue.normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
7877
7877
|
}, null, 2)
|
|
@@ -7894,12 +7894,12 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
7894
7894
|
};
|
|
7895
7895
|
}
|
|
7896
7896
|
}));
|
|
7897
|
-
const _hoisted_1$
|
|
7897
|
+
const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
|
|
7898
7898
|
const _hoisted_2$s = {
|
|
7899
7899
|
key: 0,
|
|
7900
7900
|
class: "lupa-facets-title"
|
|
7901
7901
|
};
|
|
7902
|
-
const _sfc_main$
|
|
7902
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
7903
7903
|
__name: "FacetList",
|
|
7904
7904
|
props: {
|
|
7905
7905
|
options: {},
|
|
@@ -7933,14 +7933,14 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
7933
7933
|
};
|
|
7934
7934
|
return (_ctx, _cache) => {
|
|
7935
7935
|
var _a;
|
|
7936
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7936
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
|
|
7937
7937
|
_ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$s, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
|
|
7938
7938
|
vue.createElementVNode("div", {
|
|
7939
7939
|
class: vue.normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
7940
7940
|
}, [
|
|
7941
7941
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayFacets.value, (facet) => {
|
|
7942
7942
|
var _a2;
|
|
7943
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7943
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$J, {
|
|
7944
7944
|
key: facet.key,
|
|
7945
7945
|
facet,
|
|
7946
7946
|
currentFilters: currentFiltersValue.value,
|
|
@@ -7955,6 +7955,31 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
7955
7955
|
};
|
|
7956
7956
|
}
|
|
7957
7957
|
});
|
|
7958
|
+
const _hoisted_1$E = ["onClick"];
|
|
7959
|
+
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
7960
|
+
__name: "FacetsButton",
|
|
7961
|
+
props: {
|
|
7962
|
+
options: {}
|
|
7963
|
+
},
|
|
7964
|
+
emits: ["filter"],
|
|
7965
|
+
setup(__props, { emit }) {
|
|
7966
|
+
const props = __props;
|
|
7967
|
+
const label = vue.computed(() => {
|
|
7968
|
+
var _a, _b;
|
|
7969
|
+
return (_b = (_a = props.options.labels) == null ? void 0 : _a.facetFilterButton) != null ? _b : "";
|
|
7970
|
+
});
|
|
7971
|
+
const handleClick = () => {
|
|
7972
|
+
emit("filter");
|
|
7973
|
+
};
|
|
7974
|
+
return (_ctx, _cache) => {
|
|
7975
|
+
return label.value ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
7976
|
+
key: 0,
|
|
7977
|
+
class: "lupa-facets-button-filter",
|
|
7978
|
+
onClick: vue.withModifiers(handleClick, ["stop"])
|
|
7979
|
+
}, vue.toDisplayString(label.value), 9, _hoisted_1$E)) : vue.createCommentVNode("", true);
|
|
7980
|
+
};
|
|
7981
|
+
}
|
|
7982
|
+
});
|
|
7958
7983
|
const _hoisted_1$D = { class: "lupa-search-result-facets" };
|
|
7959
7984
|
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
7960
7985
|
__name: "Facets",
|
|
@@ -7963,7 +7988,8 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
7963
7988
|
facetStyle: {},
|
|
7964
7989
|
clearable: { type: Boolean }
|
|
7965
7990
|
},
|
|
7966
|
-
|
|
7991
|
+
emits: ["filter"],
|
|
7992
|
+
setup(__props, { emit }) {
|
|
7967
7993
|
const props = __props;
|
|
7968
7994
|
const paramStore = useParamsStore();
|
|
7969
7995
|
const searchResultStore = useSearchResultStore();
|
|
@@ -7993,6 +8019,9 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
7993
8019
|
timeout: (_f = (_e = searchResultOptions.value.scrollToResults) == null ? void 0 : _e.timeout) != null ? _f : 500
|
|
7994
8020
|
};
|
|
7995
8021
|
});
|
|
8022
|
+
const showFilterButton = vue.computed(() => {
|
|
8023
|
+
return props.options.filterBehavior === "withFilterButton";
|
|
8024
|
+
});
|
|
7996
8025
|
const handleFacetSelect = (facetAction) => {
|
|
7997
8026
|
switch (facetAction.type) {
|
|
7998
8027
|
case "terms":
|
|
@@ -8031,9 +8060,12 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
8031
8060
|
const param = getFacetKey(facet.key, facet.type);
|
|
8032
8061
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
8033
8062
|
};
|
|
8063
|
+
const filter = () => {
|
|
8064
|
+
emit("filter");
|
|
8065
|
+
};
|
|
8034
8066
|
return (_ctx, _cache) => {
|
|
8035
8067
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
|
|
8036
|
-
regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8068
|
+
regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
8037
8069
|
key: 0,
|
|
8038
8070
|
options: _ctx.options,
|
|
8039
8071
|
facets: regularFacets.value,
|
|
@@ -8042,7 +8074,12 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
8042
8074
|
clearable: _ctx.clearable,
|
|
8043
8075
|
onSelect: handleFacetSelect,
|
|
8044
8076
|
onClear: clear
|
|
8045
|
-
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : vue.createCommentVNode("", true)
|
|
8077
|
+
}, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : vue.createCommentVNode("", true),
|
|
8078
|
+
showFilterButton.value ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
|
|
8079
|
+
key: 1,
|
|
8080
|
+
options: _ctx.options,
|
|
8081
|
+
onFilter: filter
|
|
8082
|
+
}, null, 8, ["options"])) : vue.createCommentVNode("", true)
|
|
8046
8083
|
]);
|
|
8047
8084
|
};
|
|
8048
8085
|
}
|
|
@@ -8057,7 +8094,8 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
8057
8094
|
options: {},
|
|
8058
8095
|
expandable: { type: Boolean }
|
|
8059
8096
|
},
|
|
8060
|
-
|
|
8097
|
+
emits: ["filter"],
|
|
8098
|
+
setup(__props, { expose: __expose, emit }) {
|
|
8061
8099
|
const props = __props;
|
|
8062
8100
|
const categoryFilters = vue.ref(null);
|
|
8063
8101
|
const desktopFiltersVisible = vue.computed(() => {
|
|
@@ -8071,6 +8109,9 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
8071
8109
|
const showCurrentFilters = vue.computed(() => {
|
|
8072
8110
|
return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
|
|
8073
8111
|
});
|
|
8112
|
+
const filter = () => {
|
|
8113
|
+
emit("filter");
|
|
8114
|
+
};
|
|
8074
8115
|
const fetch2 = () => {
|
|
8075
8116
|
var _a;
|
|
8076
8117
|
if (categoryFilters.value) {
|
|
@@ -8081,12 +8122,12 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
8081
8122
|
return (_ctx, _cache) => {
|
|
8082
8123
|
var _a;
|
|
8083
8124
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
|
|
8084
|
-
showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8125
|
+
showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Q, {
|
|
8085
8126
|
key: 0,
|
|
8086
8127
|
options: _ctx.options.currentFilters,
|
|
8087
8128
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
8088
8129
|
}, null, 8, ["options", "expandable"])) : vue.createCommentVNode("", true),
|
|
8089
|
-
_ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8130
|
+
_ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$O, {
|
|
8090
8131
|
key: 1,
|
|
8091
8132
|
options: _ctx.options.categories,
|
|
8092
8133
|
ref_key: "categoryFilters",
|
|
@@ -8094,7 +8135,8 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
8094
8135
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
8095
8136
|
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
|
|
8096
8137
|
key: 2,
|
|
8097
|
-
options: _ctx.options.facets
|
|
8138
|
+
options: _ctx.options.facets,
|
|
8139
|
+
onFilter: filter
|
|
8098
8140
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true)
|
|
8099
8141
|
]);
|
|
8100
8142
|
};
|
|
@@ -8118,7 +8160,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
8118
8160
|
props: {
|
|
8119
8161
|
options: {}
|
|
8120
8162
|
},
|
|
8121
|
-
|
|
8163
|
+
emits: ["filter"],
|
|
8164
|
+
setup(__props, { emit }) {
|
|
8122
8165
|
const props = __props;
|
|
8123
8166
|
const searchResultStore = useSearchResultStore();
|
|
8124
8167
|
const { currentFilterCount } = storeToRefs(searchResultStore);
|
|
@@ -8138,6 +8181,10 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
8138
8181
|
const handleMobileToggle = () => {
|
|
8139
8182
|
searchResultStore.setSidebarState({ visible: false });
|
|
8140
8183
|
};
|
|
8184
|
+
const filter = () => {
|
|
8185
|
+
emit("filter");
|
|
8186
|
+
handleMobileToggle();
|
|
8187
|
+
};
|
|
8141
8188
|
return (_ctx, _cache) => {
|
|
8142
8189
|
return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
8143
8190
|
vue.createElementVNode("div", {
|
|
@@ -8158,7 +8205,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
8158
8205
|
vue.createElementVNode("div", _hoisted_7$4, [
|
|
8159
8206
|
vue.createVNode(_sfc_main$F, {
|
|
8160
8207
|
options: _ctx.options,
|
|
8161
|
-
expandable: isActiveFiltersExpanded.value
|
|
8208
|
+
expandable: isActiveFiltersExpanded.value,
|
|
8209
|
+
onFilter: filter
|
|
8162
8210
|
}, null, 8, ["options", "expandable"])
|
|
8163
8211
|
])
|
|
8164
8212
|
])
|
|
@@ -8229,7 +8277,11 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
8229
8277
|
props: {
|
|
8230
8278
|
options: {}
|
|
8231
8279
|
},
|
|
8232
|
-
|
|
8280
|
+
emits: ["filter"],
|
|
8281
|
+
setup(__props, { emit }) {
|
|
8282
|
+
const filter = () => {
|
|
8283
|
+
emit("filter");
|
|
8284
|
+
};
|
|
8233
8285
|
return (_ctx, _cache) => {
|
|
8234
8286
|
var _a;
|
|
8235
8287
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
|
|
@@ -8237,7 +8289,8 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
8237
8289
|
key: 0,
|
|
8238
8290
|
options: _ctx.options.facets,
|
|
8239
8291
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
8240
|
-
clearable: true
|
|
8292
|
+
clearable: true,
|
|
8293
|
+
onFilter: filter
|
|
8241
8294
|
}, null, 8, ["options", "facet-style"])) : vue.createCommentVNode("", true)
|
|
8242
8295
|
]);
|
|
8243
8296
|
};
|
|
@@ -8674,7 +8727,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
8674
8727
|
}, [
|
|
8675
8728
|
vue.createElementVNode("div", _hoisted_1$t, [
|
|
8676
8729
|
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, { key: 0 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$m)),
|
|
8677
|
-
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8730
|
+
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
|
|
8678
8731
|
key: 2,
|
|
8679
8732
|
label: searchSummaryLabel.value,
|
|
8680
8733
|
clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
|
|
@@ -8715,7 +8768,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
8715
8768
|
},
|
|
8716
8769
|
setup(__props) {
|
|
8717
8770
|
return (_ctx, _cache) => {
|
|
8718
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8771
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1e, {
|
|
8719
8772
|
item: _ctx.item,
|
|
8720
8773
|
options: _ctx.options,
|
|
8721
8774
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -9353,7 +9406,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9353
9406
|
"data-cy": "lupa-search-result-product-card",
|
|
9354
9407
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
9355
9408
|
}, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
|
|
9356
|
-
vue.createVNode(_sfc_main
|
|
9409
|
+
vue.createVNode(_sfc_main$$, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
9357
9410
|
vue.createElementVNode("div", {
|
|
9358
9411
|
class: vue.normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
9359
9412
|
}, [
|
|
@@ -9373,7 +9426,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9373
9426
|
link: link.value
|
|
9374
9427
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
9375
9428
|
}), 128)),
|
|
9376
|
-
vue.createVNode(_sfc_main
|
|
9429
|
+
vue.createVNode(_sfc_main$$, {
|
|
9377
9430
|
options: badgesOptions.value,
|
|
9378
9431
|
position: "image",
|
|
9379
9432
|
class: "lupa-image-badges"
|
|
@@ -9716,7 +9769,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9716
9769
|
options: {},
|
|
9717
9770
|
ssr: { type: Boolean }
|
|
9718
9771
|
},
|
|
9719
|
-
|
|
9772
|
+
emits: ["filter"],
|
|
9773
|
+
setup(__props, { emit }) {
|
|
9720
9774
|
const props = __props;
|
|
9721
9775
|
const searchResultStore = useSearchResultStore();
|
|
9722
9776
|
const paramStore = useParamsStore();
|
|
@@ -9807,6 +9861,9 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9807
9861
|
params: [{ name: optionStore.getQueryParamName(QUERY_PARAMS.PAGE), value: "1" }]
|
|
9808
9862
|
});
|
|
9809
9863
|
};
|
|
9864
|
+
const filter = () => {
|
|
9865
|
+
emit("filter");
|
|
9866
|
+
};
|
|
9810
9867
|
return (_ctx, _cache) => {
|
|
9811
9868
|
var _a;
|
|
9812
9869
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
|
|
@@ -9823,9 +9880,10 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9823
9880
|
key: 1,
|
|
9824
9881
|
class: "lupa-toolbar-mobile",
|
|
9825
9882
|
options: _ctx.options,
|
|
9826
|
-
"pagination-location": "top"
|
|
9883
|
+
"pagination-location": "top",
|
|
9884
|
+
onFilter: filter
|
|
9827
9885
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
9828
|
-
currentFilterOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9886
|
+
currentFilterOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Q, {
|
|
9829
9887
|
key: 2,
|
|
9830
9888
|
class: vue.normalizeClass(currentFiltersClass.value),
|
|
9831
9889
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -10180,8 +10238,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10180
10238
|
class: vue.normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !vue.unref(hasResults) }])
|
|
10181
10239
|
}, [
|
|
10182
10240
|
_ctx.isContainer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
10183
|
-
vue.createVNode(_sfc_main$
|
|
10184
|
-
vue.createVNode(_sfc_main$
|
|
10241
|
+
vue.createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
10242
|
+
vue.createVNode(_sfc_main$S, {
|
|
10185
10243
|
"show-summary": true,
|
|
10186
10244
|
options: _ctx.options,
|
|
10187
10245
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -10193,7 +10251,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10193
10251
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
10194
10252
|
_ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
10195
10253
|
key: 2,
|
|
10196
|
-
options: _ctx.options.filters
|
|
10254
|
+
options: _ctx.options.filters,
|
|
10255
|
+
onFilter: handleParamsChange
|
|
10197
10256
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
10198
10257
|
vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$D, {
|
|
10199
10258
|
key: 3,
|
|
@@ -10204,17 +10263,19 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10204
10263
|
key: 0,
|
|
10205
10264
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
10206
10265
|
ref_key: "searchResultsFilters",
|
|
10207
|
-
ref: searchResultsFilters
|
|
10266
|
+
ref: searchResultsFilters,
|
|
10267
|
+
onFilter: handleParamsChange
|
|
10208
10268
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
10209
10269
|
vue.createElementVNode("div", _hoisted_3$4, [
|
|
10210
|
-
vue.createVNode(_sfc_main$
|
|
10211
|
-
vue.createVNode(_sfc_main$
|
|
10270
|
+
vue.createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
10271
|
+
vue.createVNode(_sfc_main$S, {
|
|
10212
10272
|
options: _ctx.options,
|
|
10213
10273
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
10214
10274
|
}, null, 8, ["options", "is-product-list"]),
|
|
10215
10275
|
vue.createVNode(_sfc_main$e, {
|
|
10216
10276
|
options: _ctx.options,
|
|
10217
|
-
ssr: ssrEnabled.value
|
|
10277
|
+
ssr: ssrEnabled.value,
|
|
10278
|
+
onFilter: handleParamsChange
|
|
10218
10279
|
}, {
|
|
10219
10280
|
append: vue.withCtx(() => [
|
|
10220
10281
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -10223,8 +10284,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10223
10284
|
}, 8, ["options", "ssr"])
|
|
10224
10285
|
])
|
|
10225
10286
|
])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
|
|
10226
|
-
vue.createVNode(_sfc_main$
|
|
10227
|
-
vue.createVNode(_sfc_main$
|
|
10287
|
+
vue.createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
10288
|
+
vue.createVNode(_sfc_main$S, {
|
|
10228
10289
|
options: _ctx.options,
|
|
10229
10290
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
10230
10291
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -10233,11 +10294,13 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10233
10294
|
key: 0,
|
|
10234
10295
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
10235
10296
|
ref_key: "searchResultsFilters",
|
|
10236
|
-
ref: searchResultsFilters
|
|
10297
|
+
ref: searchResultsFilters,
|
|
10298
|
+
onFilter: handleParamsChange
|
|
10237
10299
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
10238
10300
|
vue.createVNode(_sfc_main$e, {
|
|
10239
10301
|
options: _ctx.options,
|
|
10240
|
-
ssr: ssrEnabled.value
|
|
10302
|
+
ssr: ssrEnabled.value,
|
|
10303
|
+
onFilter: handleParamsChange
|
|
10241
10304
|
}, vue.createSlots({
|
|
10242
10305
|
append: vue.withCtx(() => [
|
|
10243
10306
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -15859,7 +15922,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15859
15922
|
onClick: vue.withModifiers(innerClick, ["stop"])
|
|
15860
15923
|
}, [
|
|
15861
15924
|
vue.createElementVNode("div", _hoisted_2$7, [
|
|
15862
|
-
vue.createVNode(_sfc_main$
|
|
15925
|
+
vue.createVNode(_sfc_main$V, {
|
|
15863
15926
|
options: fullSearchBoxOptions.value,
|
|
15864
15927
|
"is-search-container": true,
|
|
15865
15928
|
ref_key: "searchBox",
|
|
@@ -17337,7 +17400,7 @@ exports.DocumentElementType = DocumentElementType;
|
|
|
17337
17400
|
exports.LupaSearch = LupaSearch;
|
|
17338
17401
|
exports.ProductList = _sfc_main$a;
|
|
17339
17402
|
exports.Recommendations = _sfc_main$8;
|
|
17340
|
-
exports.SearchBox = _sfc_main$
|
|
17403
|
+
exports.SearchBox = _sfc_main$V;
|
|
17341
17404
|
exports.SearchBoxPanelType = SearchBoxPanelType;
|
|
17342
17405
|
exports.SearchContainer = _sfc_main$9;
|
|
17343
17406
|
exports.SearchResults = _sfc_main$c;
|