@getlupa/vue 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containerStyle.css +1 -1
- package/dist/lupaContainerStyle.css +1 -1
- package/dist/lupaSearch.js +487 -430
- package/dist/lupaSearch.mjs +487 -430
- package/dist/src/components/search-results/products/similar-results/SearchResultsSimilarResults.vue.d.ts +31 -0
- package/dist/src/constants/searchResults.const.d.ts +1 -0
- package/dist/src/types/search-results/SearchResultsOptions.d.ts +4 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -2022,7 +2022,8 @@ const DEFAULT_OPTIONS_RESULTS = {
|
|
|
2022
2022
|
noResultsSuggestion: "No results found for this query: {1}",
|
|
2023
2023
|
didYouMean: "Did you mean to search: {1}",
|
|
2024
2024
|
similarQuery: "Search results for phrase {1}",
|
|
2025
|
-
similarQueries: "Similar queries:"
|
|
2025
|
+
similarQueries: "Similar queries:",
|
|
2026
|
+
similarResultsLabel: "Related to your query:"
|
|
2026
2027
|
},
|
|
2027
2028
|
grid: {
|
|
2028
2029
|
columns: {
|
|
@@ -3032,16 +3033,16 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
3032
3033
|
resetHighlightIndex
|
|
3033
3034
|
};
|
|
3034
3035
|
});
|
|
3035
|
-
const _hoisted_1$
|
|
3036
|
-
const _hoisted_2$
|
|
3037
|
-
const _hoisted_3$
|
|
3036
|
+
const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
|
|
3037
|
+
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
3038
|
+
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
3038
3039
|
const _hoisted_4$q = ["value"];
|
|
3039
3040
|
const _hoisted_5$f = ["placeholder"];
|
|
3040
|
-
const _hoisted_6$
|
|
3041
|
+
const _hoisted_6$9 = {
|
|
3041
3042
|
key: 0,
|
|
3042
3043
|
class: "lupa-close-label"
|
|
3043
3044
|
};
|
|
3044
|
-
const _sfc_main$
|
|
3045
|
+
const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
3045
3046
|
__name: "SearchBoxInput",
|
|
3046
3047
|
props: {
|
|
3047
3048
|
options: {},
|
|
@@ -3118,14 +3119,14 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3118
3119
|
};
|
|
3119
3120
|
__expose({ focus });
|
|
3120
3121
|
return (_ctx, _cache) => {
|
|
3121
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3122
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3122
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1c, [
|
|
3123
|
+
vue.createElementVNode("div", _hoisted_2$P, [
|
|
3123
3124
|
vue.createElementVNode("div", {
|
|
3124
3125
|
class: vue.normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
3125
3126
|
onClick: clear
|
|
3126
3127
|
}, null, 2)
|
|
3127
3128
|
]),
|
|
3128
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3129
|
+
vue.createElementVNode("div", _hoisted_3$B, [
|
|
3129
3130
|
vue.createElementVNode("input", {
|
|
3130
3131
|
class: "lupa-hint",
|
|
3131
3132
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
@@ -3152,13 +3153,13 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3152
3153
|
class: "lupa-close-search-container",
|
|
3153
3154
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
3154
3155
|
}, [
|
|
3155
|
-
labels.value.close ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$
|
|
3156
|
+
labels.value.close ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$9, vue.toDisplayString(labels.value.close), 1)) : vue.createCommentVNode("", true)
|
|
3156
3157
|
])) : vue.createCommentVNode("", true)
|
|
3157
3158
|
]);
|
|
3158
3159
|
};
|
|
3159
3160
|
}
|
|
3160
3161
|
});
|
|
3161
|
-
const _sfc_main$
|
|
3162
|
+
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
3162
3163
|
__name: "SearchBoxMoreResults",
|
|
3163
3164
|
props: {
|
|
3164
3165
|
labels: {},
|
|
@@ -3190,9 +3191,9 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
3190
3191
|
};
|
|
3191
3192
|
}
|
|
3192
3193
|
});
|
|
3193
|
-
const _hoisted_1$
|
|
3194
|
-
const _hoisted_2$
|
|
3195
|
-
const _sfc_main$
|
|
3194
|
+
const _hoisted_1$1b = { class: "lupa-search-box-history-item" };
|
|
3195
|
+
const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
|
|
3196
|
+
const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
3196
3197
|
__name: "SearchBoxHistoryItem",
|
|
3197
3198
|
props: {
|
|
3198
3199
|
item: {},
|
|
@@ -3208,8 +3209,8 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
|
3208
3209
|
emit("click", { query: props.item });
|
|
3209
3210
|
};
|
|
3210
3211
|
return (_ctx, _cache) => {
|
|
3211
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3212
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3212
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1b, [
|
|
3213
|
+
vue.createElementVNode("div", _hoisted_2$O, [
|
|
3213
3214
|
vue.createElementVNode("div", {
|
|
3214
3215
|
class: vue.normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
3215
3216
|
onClick: click2
|
|
@@ -3223,11 +3224,11 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
|
3223
3224
|
};
|
|
3224
3225
|
}
|
|
3225
3226
|
});
|
|
3226
|
-
const _hoisted_1$
|
|
3227
|
+
const _hoisted_1$1a = {
|
|
3227
3228
|
key: 0,
|
|
3228
3229
|
class: "lupa-search-box-history-panel"
|
|
3229
3230
|
};
|
|
3230
|
-
const _sfc_main$
|
|
3231
|
+
const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
3231
3232
|
__name: "SearchBoxHistoryPanel",
|
|
3232
3233
|
props: {
|
|
3233
3234
|
options: {}
|
|
@@ -3268,9 +3269,9 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
|
3268
3269
|
}
|
|
3269
3270
|
};
|
|
3270
3271
|
return (_ctx, _cache) => {
|
|
3271
|
-
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3272
|
+
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1a, [
|
|
3272
3273
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(history), (item, index) => {
|
|
3273
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3274
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1i, {
|
|
3274
3275
|
key: item,
|
|
3275
3276
|
item,
|
|
3276
3277
|
highlighted: index === highlightIndex.value,
|
|
@@ -3286,25 +3287,25 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
|
3286
3287
|
};
|
|
3287
3288
|
}
|
|
3288
3289
|
});
|
|
3289
|
-
const _hoisted_1$
|
|
3290
|
-
const _sfc_main$
|
|
3290
|
+
const _hoisted_1$19 = { class: "lupa-search-box-no-results" };
|
|
3291
|
+
const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
3291
3292
|
__name: "SearchBoxNoResults",
|
|
3292
3293
|
props: {
|
|
3293
3294
|
labels: {}
|
|
3294
3295
|
},
|
|
3295
3296
|
setup(__props) {
|
|
3296
3297
|
return (_ctx, _cache) => {
|
|
3297
|
-
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$
|
|
3298
|
+
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$19, vue.toDisplayString(_ctx.labels.noResults), 1);
|
|
3298
3299
|
};
|
|
3299
3300
|
}
|
|
3300
3301
|
});
|
|
3301
|
-
const _hoisted_1$
|
|
3302
|
-
const _hoisted_2$
|
|
3302
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
3303
|
+
const _hoisted_2$N = {
|
|
3303
3304
|
key: 1,
|
|
3304
3305
|
"data-cy": "lupa-suggestion-value",
|
|
3305
3306
|
class: "lupa-suggestion-value"
|
|
3306
3307
|
};
|
|
3307
|
-
const _hoisted_3$
|
|
3308
|
+
const _hoisted_3$A = {
|
|
3308
3309
|
key: 2,
|
|
3309
3310
|
class: "lupa-suggestion-facet",
|
|
3310
3311
|
"data-cy": "lupa-suggestion-facet"
|
|
@@ -3317,7 +3318,7 @@ const _hoisted_5$e = {
|
|
|
3317
3318
|
class: "lupa-suggestion-facet-value",
|
|
3318
3319
|
"data-cy": "lupa-suggestion-facet-value"
|
|
3319
3320
|
};
|
|
3320
|
-
const _sfc_main$
|
|
3321
|
+
const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
3321
3322
|
__name: "SearchBoxSuggestion",
|
|
3322
3323
|
props: {
|
|
3323
3324
|
suggestion: {},
|
|
@@ -3353,8 +3354,8 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
|
3353
3354
|
class: "lupa-suggestion-value",
|
|
3354
3355
|
"data-cy": "lupa-suggestion-value",
|
|
3355
3356
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
3356
|
-
}, null, 8, _hoisted_1$
|
|
3357
|
-
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
3357
|
+
}, null, 8, _hoisted_1$18)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$N, vue.toDisplayString(_ctx.suggestion.display), 1)),
|
|
3358
|
+
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
|
|
3358
3359
|
vue.createElementVNode("span", _hoisted_4$p, vue.toDisplayString(facetLabel.value), 1),
|
|
3359
3360
|
vue.createElementVNode("span", _hoisted_5$e, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
3360
3361
|
])) : vue.createCommentVNode("", true)
|
|
@@ -3362,11 +3363,11 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
|
3362
3363
|
};
|
|
3363
3364
|
}
|
|
3364
3365
|
});
|
|
3365
|
-
const _hoisted_1$
|
|
3366
|
+
const _hoisted_1$17 = {
|
|
3366
3367
|
id: "lupa-search-box-suggestions",
|
|
3367
3368
|
"data-cy": "lupa-search-box-suggestions"
|
|
3368
3369
|
};
|
|
3369
|
-
const _sfc_main$
|
|
3370
|
+
const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
3370
3371
|
__name: "SearchBoxSuggestions",
|
|
3371
3372
|
props: {
|
|
3372
3373
|
items: {},
|
|
@@ -3426,9 +3427,9 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3426
3427
|
});
|
|
3427
3428
|
});
|
|
3428
3429
|
return (_ctx, _cache) => {
|
|
3429
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3430
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$17, [
|
|
3430
3431
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
|
|
3431
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3432
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1f, {
|
|
3432
3433
|
key: getSuggestionKey(item),
|
|
3433
3434
|
class: vue.normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
|
|
3434
3435
|
suggestion: item,
|
|
@@ -3456,7 +3457,7 @@ const debounce$1 = (func, timeout) => {
|
|
|
3456
3457
|
}, timeout);
|
|
3457
3458
|
};
|
|
3458
3459
|
};
|
|
3459
|
-
const _sfc_main$
|
|
3460
|
+
const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
3460
3461
|
__name: "SearchBoxSuggestionsWrapper",
|
|
3461
3462
|
props: {
|
|
3462
3463
|
panel: {},
|
|
@@ -3497,7 +3498,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
3497
3498
|
};
|
|
3498
3499
|
const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
|
|
3499
3500
|
return (_ctx, _cache) => {
|
|
3500
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3501
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1e, {
|
|
3501
3502
|
items: searchResult.value,
|
|
3502
3503
|
highlight: _ctx.panel.highlight,
|
|
3503
3504
|
queryKey: _ctx.panel.queryKey,
|
|
@@ -3575,8 +3576,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
3575
3576
|
});
|
|
3576
3577
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
3577
3578
|
});
|
|
3578
|
-
const _hoisted_1$
|
|
3579
|
-
const _sfc_main$
|
|
3579
|
+
const _hoisted_1$16 = ["src"];
|
|
3580
|
+
const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
3580
3581
|
__name: "ProductImage",
|
|
3581
3582
|
props: {
|
|
3582
3583
|
item: {},
|
|
@@ -3624,12 +3625,12 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
3624
3625
|
class: vue.normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
|
|
3625
3626
|
src: finalUrl.value,
|
|
3626
3627
|
onError: replaceWithPlaceholder
|
|
3627
|
-
}, null, 42, _hoisted_1$
|
|
3628
|
+
}, null, 42, _hoisted_1$16)
|
|
3628
3629
|
], 2);
|
|
3629
3630
|
};
|
|
3630
3631
|
}
|
|
3631
3632
|
});
|
|
3632
|
-
const _sfc_main$
|
|
3633
|
+
const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
3633
3634
|
__name: "SearchBoxProductImage",
|
|
3634
3635
|
props: {
|
|
3635
3636
|
item: {},
|
|
@@ -3637,7 +3638,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
3637
3638
|
},
|
|
3638
3639
|
setup(__props) {
|
|
3639
3640
|
return (_ctx, _cache) => {
|
|
3640
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3641
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1c, {
|
|
3641
3642
|
item: _ctx.item,
|
|
3642
3643
|
options: _ctx.options,
|
|
3643
3644
|
"wrapper-class": "lupa-search-box-image-wrapper",
|
|
@@ -3646,12 +3647,12 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
3646
3647
|
};
|
|
3647
3648
|
}
|
|
3648
3649
|
});
|
|
3649
|
-
const _hoisted_1$
|
|
3650
|
-
const _hoisted_2$
|
|
3650
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
3651
|
+
const _hoisted_2$M = {
|
|
3651
3652
|
key: 1,
|
|
3652
3653
|
class: "lupa-search-box-product-title"
|
|
3653
3654
|
};
|
|
3654
|
-
const _sfc_main$
|
|
3655
|
+
const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
3655
3656
|
__name: "SearchBoxProductTitle",
|
|
3656
3657
|
props: {
|
|
3657
3658
|
item: {},
|
|
@@ -3671,18 +3672,18 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3671
3672
|
key: 0,
|
|
3672
3673
|
class: "lupa-search-box-product-title",
|
|
3673
3674
|
innerHTML: title.value
|
|
3674
|
-
}, null, 8, _hoisted_1$
|
|
3675
|
+
}, null, 8, _hoisted_1$15)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$M, [
|
|
3675
3676
|
vue.createElementVNode("strong", null, vue.toDisplayString(title.value), 1)
|
|
3676
3677
|
]));
|
|
3677
3678
|
};
|
|
3678
3679
|
}
|
|
3679
3680
|
});
|
|
3680
|
-
const _hoisted_1$
|
|
3681
|
-
const _hoisted_2$
|
|
3681
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
3682
|
+
const _hoisted_2$L = {
|
|
3682
3683
|
key: 1,
|
|
3683
3684
|
class: "lupa-search-box-product-description"
|
|
3684
3685
|
};
|
|
3685
|
-
const _sfc_main$
|
|
3686
|
+
const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
3686
3687
|
__name: "SearchBoxProductDescription",
|
|
3687
3688
|
props: {
|
|
3688
3689
|
item: {},
|
|
@@ -3702,12 +3703,12 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3702
3703
|
key: 0,
|
|
3703
3704
|
class: "lupa-search-box-product-description",
|
|
3704
3705
|
innerHTML: description.value
|
|
3705
|
-
}, null, 8, _hoisted_1$
|
|
3706
|
+
}, null, 8, _hoisted_1$14)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$L, vue.toDisplayString(description.value), 1));
|
|
3706
3707
|
};
|
|
3707
3708
|
}
|
|
3708
3709
|
});
|
|
3709
|
-
const _hoisted_1$
|
|
3710
|
-
const _sfc_main$
|
|
3710
|
+
const _hoisted_1$13 = { class: "lupa-search-box-product-price" };
|
|
3711
|
+
const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
3711
3712
|
__name: "SearchBoxProductPrice",
|
|
3712
3713
|
props: {
|
|
3713
3714
|
item: {},
|
|
@@ -3725,14 +3726,14 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3725
3726
|
);
|
|
3726
3727
|
});
|
|
3727
3728
|
return (_ctx, _cache) => {
|
|
3728
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3729
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$13, [
|
|
3729
3730
|
vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
|
|
3730
3731
|
]);
|
|
3731
3732
|
};
|
|
3732
3733
|
}
|
|
3733
3734
|
});
|
|
3734
|
-
const _hoisted_1$
|
|
3735
|
-
const _sfc_main$
|
|
3735
|
+
const _hoisted_1$12 = { class: "lupa-search-box-product-regular-price" };
|
|
3736
|
+
const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
3736
3737
|
__name: "SearchBoxProductRegularPrice",
|
|
3737
3738
|
props: {
|
|
3738
3739
|
item: {},
|
|
@@ -3750,16 +3751,16 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3750
3751
|
);
|
|
3751
3752
|
});
|
|
3752
3753
|
return (_ctx, _cache) => {
|
|
3753
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3754
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, vue.toDisplayString(price.value), 1);
|
|
3754
3755
|
};
|
|
3755
3756
|
}
|
|
3756
3757
|
});
|
|
3757
|
-
const _hoisted_1$
|
|
3758
|
-
const _hoisted_2$
|
|
3759
|
-
const _hoisted_3$
|
|
3758
|
+
const _hoisted_1$11 = ["innerHTML"];
|
|
3759
|
+
const _hoisted_2$K = { key: 0 };
|
|
3760
|
+
const _hoisted_3$z = { key: 1 };
|
|
3760
3761
|
const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
|
|
3761
3762
|
const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
|
|
3762
|
-
const _sfc_main$
|
|
3763
|
+
const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
3763
3764
|
__name: "SearchBoxProductCustom",
|
|
3764
3765
|
props: {
|
|
3765
3766
|
item: {},
|
|
@@ -3785,11 +3786,11 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3785
3786
|
key: 0,
|
|
3786
3787
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
3787
3788
|
innerHTML: text.value
|
|
3788
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
3789
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
3789
3790
|
key: 1,
|
|
3790
3791
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
3791
3792
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
3792
|
-
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
3793
|
+
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$K, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
|
|
3793
3794
|
vue.createElementVNode("div", _hoisted_4$o, vue.toDisplayString(label.value), 1),
|
|
3794
3795
|
vue.createElementVNode("div", _hoisted_5$d, vue.toDisplayString(text.value), 1)
|
|
3795
3796
|
]))
|
|
@@ -3797,8 +3798,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3797
3798
|
};
|
|
3798
3799
|
}
|
|
3799
3800
|
});
|
|
3800
|
-
const _hoisted_1
|
|
3801
|
-
const _sfc_main$
|
|
3801
|
+
const _hoisted_1$10 = ["innerHTML"];
|
|
3802
|
+
const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
3802
3803
|
__name: "SearchBoxProductCustomHtml",
|
|
3803
3804
|
props: {
|
|
3804
3805
|
item: {},
|
|
@@ -3818,7 +3819,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3818
3819
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
3819
3820
|
class: className.value,
|
|
3820
3821
|
innerHTML: text.value
|
|
3821
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1
|
|
3822
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10);
|
|
3822
3823
|
};
|
|
3823
3824
|
}
|
|
3824
3825
|
});
|
|
@@ -4013,10 +4014,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
4013
4014
|
setLoading
|
|
4014
4015
|
};
|
|
4015
4016
|
});
|
|
4016
|
-
const _hoisted_1
|
|
4017
|
-
const _hoisted_2$
|
|
4018
|
-
const _hoisted_3$
|
|
4019
|
-
const _sfc_main$
|
|
4017
|
+
const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
4018
|
+
const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
|
|
4019
|
+
const _hoisted_3$y = ["onClick", "disabled"];
|
|
4020
|
+
const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
4020
4021
|
__name: "SearchBoxProductAddToCart",
|
|
4021
4022
|
props: {
|
|
4022
4023
|
item: {},
|
|
@@ -4043,15 +4044,15 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4043
4044
|
loading.value = false;
|
|
4044
4045
|
});
|
|
4045
4046
|
return (_ctx, _cache) => {
|
|
4046
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1
|
|
4047
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
4047
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
|
|
4048
|
+
vue.createElementVNode("div", _hoisted_2$J, [
|
|
4048
4049
|
vue.createElementVNode("button", {
|
|
4049
4050
|
onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
|
|
4050
4051
|
class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
4051
4052
|
"data-cy": "lupa-add-to-cart",
|
|
4052
4053
|
type: "button",
|
|
4053
4054
|
disabled: !inStockValue.value || loading.value
|
|
4054
|
-
}, vue.toDisplayString(label.value), 11, _hoisted_3$
|
|
4055
|
+
}, vue.toDisplayString(label.value), 11, _hoisted_3$y)
|
|
4055
4056
|
])
|
|
4056
4057
|
]);
|
|
4057
4058
|
};
|
|
@@ -4059,17 +4060,17 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4059
4060
|
});
|
|
4060
4061
|
const __default__$4 = {
|
|
4061
4062
|
components: {
|
|
4062
|
-
SearchBoxProductImage: _sfc_main$
|
|
4063
|
-
SearchBoxProductTitle: _sfc_main$
|
|
4064
|
-
SearchBoxProductDescription: _sfc_main$
|
|
4065
|
-
SearchBoxProductPrice: _sfc_main$
|
|
4066
|
-
SearchBoxProductRegularPrice: _sfc_main$
|
|
4067
|
-
SearchBoxProductCustom: _sfc_main$
|
|
4068
|
-
SearchBoxProductCustomHtml: _sfc_main$
|
|
4069
|
-
SearchBoxProductAddToCart: _sfc_main$
|
|
4063
|
+
SearchBoxProductImage: _sfc_main$1b,
|
|
4064
|
+
SearchBoxProductTitle: _sfc_main$1a,
|
|
4065
|
+
SearchBoxProductDescription: _sfc_main$19,
|
|
4066
|
+
SearchBoxProductPrice: _sfc_main$18,
|
|
4067
|
+
SearchBoxProductRegularPrice: _sfc_main$17,
|
|
4068
|
+
SearchBoxProductCustom: _sfc_main$16,
|
|
4069
|
+
SearchBoxProductCustomHtml: _sfc_main$15,
|
|
4070
|
+
SearchBoxProductAddToCart: _sfc_main$14
|
|
4070
4071
|
}
|
|
4071
4072
|
};
|
|
4072
|
-
const _sfc_main$
|
|
4073
|
+
const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
|
|
4073
4074
|
__name: "SearchBoxProductElement",
|
|
4074
4075
|
props: {
|
|
4075
4076
|
item: {},
|
|
@@ -4183,14 +4184,14 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
4183
4184
|
};
|
|
4184
4185
|
return { trackSearch, trackResults, trackEvent };
|
|
4185
4186
|
});
|
|
4186
|
-
const _hoisted_1$
|
|
4187
|
-
const _hoisted_2$
|
|
4188
|
-
const _hoisted_3$
|
|
4187
|
+
const _hoisted_1$_ = ["href"];
|
|
4188
|
+
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
4189
|
+
const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
|
|
4189
4190
|
const _hoisted_4$n = {
|
|
4190
4191
|
key: 0,
|
|
4191
4192
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
4192
4193
|
};
|
|
4193
|
-
const _sfc_main$
|
|
4194
|
+
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
4194
4195
|
__name: "SearchBoxProduct",
|
|
4195
4196
|
props: {
|
|
4196
4197
|
item: {},
|
|
@@ -4283,9 +4284,9 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4283
4284
|
href: link.value,
|
|
4284
4285
|
onClick: handleClick
|
|
4285
4286
|
}, [
|
|
4286
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
4287
|
+
vue.createElementVNode("div", _hoisted_2$I, [
|
|
4287
4288
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
|
|
4288
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4289
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$13, {
|
|
4289
4290
|
class: "lupa-search-box-product-element",
|
|
4290
4291
|
item: _ctx.item,
|
|
4291
4292
|
element,
|
|
@@ -4295,9 +4296,9 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4295
4296
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
4296
4297
|
}), 128))
|
|
4297
4298
|
]),
|
|
4298
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
4299
|
+
vue.createElementVNode("div", _hoisted_3$x, [
|
|
4299
4300
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
|
|
4300
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4301
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$13, {
|
|
4301
4302
|
class: "lupa-search-box-product-element",
|
|
4302
4303
|
item: _ctx.item,
|
|
4303
4304
|
element,
|
|
@@ -4308,7 +4309,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4308
4309
|
}), 128))
|
|
4309
4310
|
]),
|
|
4310
4311
|
addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$n, [
|
|
4311
|
-
vue.createVNode(_sfc_main$
|
|
4312
|
+
vue.createVNode(_sfc_main$13, {
|
|
4312
4313
|
class: "lupa-search-box-product-element",
|
|
4313
4314
|
item: _ctx.item,
|
|
4314
4315
|
element: addToCartElement.value,
|
|
@@ -4317,12 +4318,12 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4317
4318
|
isInStock: isInStock.value
|
|
4318
4319
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
4319
4320
|
])) : vue.createCommentVNode("", true)
|
|
4320
|
-
], 10, _hoisted_1$
|
|
4321
|
+
], 10, _hoisted_1$_);
|
|
4321
4322
|
};
|
|
4322
4323
|
}
|
|
4323
4324
|
});
|
|
4324
|
-
const _hoisted_1$
|
|
4325
|
-
const _sfc_main$
|
|
4325
|
+
const _hoisted_1$Z = { id: "lupa-search-box-products" };
|
|
4326
|
+
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
4326
4327
|
__name: "SearchBoxProducts",
|
|
4327
4328
|
props: {
|
|
4328
4329
|
items: {},
|
|
@@ -4342,7 +4343,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4342
4343
|
return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
|
|
4343
4344
|
});
|
|
4344
4345
|
return (_ctx, _cache) => {
|
|
4345
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4346
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
|
|
4346
4347
|
_ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.items, (item, index) => {
|
|
4347
4348
|
return vue.renderSlot(_ctx.$slots, "productCard", {
|
|
4348
4349
|
key: index,
|
|
@@ -4354,7 +4355,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4354
4355
|
onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
|
|
4355
4356
|
});
|
|
4356
4357
|
}), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.items, (item, index) => {
|
|
4357
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4358
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$12, {
|
|
4358
4359
|
key: index,
|
|
4359
4360
|
item,
|
|
4360
4361
|
panelOptions: _ctx.panelOptions,
|
|
@@ -4368,7 +4369,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4368
4369
|
};
|
|
4369
4370
|
}
|
|
4370
4371
|
});
|
|
4371
|
-
const _sfc_main
|
|
4372
|
+
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
4372
4373
|
__name: "SearchBoxProductsWrapper",
|
|
4373
4374
|
props: {
|
|
4374
4375
|
panel: {},
|
|
@@ -4420,7 +4421,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4420
4421
|
const getItemsDebounced = debounce$1(getItems, props.debounce);
|
|
4421
4422
|
return (_ctx, _cache) => {
|
|
4422
4423
|
var _a, _b;
|
|
4423
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4424
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$11, {
|
|
4424
4425
|
items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
|
|
4425
4426
|
panelOptions: _ctx.panel,
|
|
4426
4427
|
labels: _ctx.labels,
|
|
@@ -4438,22 +4439,22 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4438
4439
|
};
|
|
4439
4440
|
}
|
|
4440
4441
|
});
|
|
4441
|
-
const _hoisted_1$
|
|
4442
|
+
const _hoisted_1$Y = {
|
|
4442
4443
|
key: 0,
|
|
4443
4444
|
id: "lupa-search-box-panel"
|
|
4444
4445
|
};
|
|
4445
|
-
const _hoisted_2$
|
|
4446
|
-
const _hoisted_3$
|
|
4446
|
+
const _hoisted_2$H = ["data-cy"];
|
|
4447
|
+
const _hoisted_3$w = {
|
|
4447
4448
|
key: 1,
|
|
4448
4449
|
id: "lupa-search-box-panel"
|
|
4449
4450
|
};
|
|
4450
4451
|
const __default__$3 = {
|
|
4451
4452
|
components: {
|
|
4452
|
-
SearchBoxSuggestionsWrapper: _sfc_main$
|
|
4453
|
-
SearchBoxProductsWrapper: _sfc_main
|
|
4453
|
+
SearchBoxSuggestionsWrapper: _sfc_main$1d,
|
|
4454
|
+
SearchBoxProductsWrapper: _sfc_main$10
|
|
4454
4455
|
}
|
|
4455
4456
|
};
|
|
4456
|
-
const _sfc_main
|
|
4457
|
+
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
|
|
4457
4458
|
__name: "SearchBoxMainPanel",
|
|
4458
4459
|
props: {
|
|
4459
4460
|
options: {},
|
|
@@ -4573,7 +4574,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
4573
4574
|
ref_key: "panelContainer",
|
|
4574
4575
|
ref: panelContainer
|
|
4575
4576
|
}, [
|
|
4576
|
-
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4577
|
+
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
|
|
4577
4578
|
vue.createElementVNode("div", {
|
|
4578
4579
|
class: "lupa-main-panel",
|
|
4579
4580
|
style: vue.normalizeStyle(expandOnSinglePanel.value ? { display: "block" } : {}),
|
|
@@ -4607,21 +4608,21 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
4607
4608
|
key: "0"
|
|
4608
4609
|
} : void 0
|
|
4609
4610
|
]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : vue.createCommentVNode("", true)
|
|
4610
|
-
], 10, _hoisted_2$
|
|
4611
|
+
], 10, _hoisted_2$H);
|
|
4611
4612
|
}), 128))
|
|
4612
4613
|
], 4),
|
|
4613
|
-
!vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4614
|
+
!vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$1g, {
|
|
4614
4615
|
key: 0,
|
|
4615
4616
|
labels: labels.value
|
|
4616
4617
|
}, null, 8, ["labels"])) : vue.createCommentVNode("", true),
|
|
4617
|
-
vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4618
|
+
vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$1j, {
|
|
4618
4619
|
key: 1,
|
|
4619
4620
|
labels: labels.value,
|
|
4620
4621
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
4621
4622
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
4622
4623
|
}, null, 8, ["labels", "showTotalCount"])) : vue.createCommentVNode("", true)
|
|
4623
|
-
])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
4624
|
-
vue.createVNode(_sfc_main$
|
|
4624
|
+
])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, [
|
|
4625
|
+
vue.createVNode(_sfc_main$1h, {
|
|
4625
4626
|
options: _ctx.options.history,
|
|
4626
4627
|
history: history.value,
|
|
4627
4628
|
onGoToResults: handleGoToResults,
|
|
@@ -4646,9 +4647,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
4646
4647
|
const elements = getElements(triggers);
|
|
4647
4648
|
elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
|
|
4648
4649
|
};
|
|
4649
|
-
const _hoisted_1$
|
|
4650
|
-
const _hoisted_2$
|
|
4651
|
-
const _sfc_main$
|
|
4650
|
+
const _hoisted_1$X = { id: "lupa-search-box" };
|
|
4651
|
+
const _hoisted_2$G = { class: "lupa-search-box-wrapper" };
|
|
4652
|
+
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
4652
4653
|
__name: "SearchBox",
|
|
4653
4654
|
props: {
|
|
4654
4655
|
options: {},
|
|
@@ -4884,9 +4885,9 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
4884
4885
|
};
|
|
4885
4886
|
return (_ctx, _cache) => {
|
|
4886
4887
|
var _a2;
|
|
4887
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4888
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
4889
|
-
vue.createVNode(_sfc_main$
|
|
4888
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
4889
|
+
vue.createElementVNode("div", _hoisted_2$G, [
|
|
4890
|
+
vue.createVNode(_sfc_main$1k, {
|
|
4890
4891
|
options: inputOptions.value,
|
|
4891
4892
|
suggestedValue: suggestedValue.value,
|
|
4892
4893
|
"can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
|
|
@@ -4897,7 +4898,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
4897
4898
|
onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
|
|
4898
4899
|
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
4899
4900
|
}, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
|
|
4900
|
-
opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main
|
|
4901
|
+
opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$$, {
|
|
4901
4902
|
key: 0,
|
|
4902
4903
|
options: panelOptions.value,
|
|
4903
4904
|
inputValue: inputValue.value,
|
|
@@ -5000,20 +5001,20 @@ const getInitialSearchResults = (options, defaultData) => __async(exports, null,
|
|
|
5000
5001
|
options.options.onError(e);
|
|
5001
5002
|
}
|
|
5002
5003
|
});
|
|
5003
|
-
const _hoisted_1$
|
|
5004
|
+
const _hoisted_1$W = {
|
|
5004
5005
|
key: 0,
|
|
5005
5006
|
id: "lupa-search-results-did-you-mean"
|
|
5006
5007
|
};
|
|
5007
|
-
const _hoisted_2$
|
|
5008
|
+
const _hoisted_2$F = {
|
|
5008
5009
|
key: 0,
|
|
5009
5010
|
"data-cy": "suggested-search-text-label"
|
|
5010
5011
|
};
|
|
5011
|
-
const _hoisted_3$
|
|
5012
|
+
const _hoisted_3$v = {
|
|
5012
5013
|
key: 1,
|
|
5013
5014
|
"data-cy": "did-you-mean-label"
|
|
5014
5015
|
};
|
|
5015
5016
|
const _hoisted_4$m = { key: 1 };
|
|
5016
|
-
const _sfc_main$
|
|
5017
|
+
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
5017
5018
|
__name: "SearchResultsDidYouMean",
|
|
5018
5019
|
props: {
|
|
5019
5020
|
labels: {}
|
|
@@ -5045,8 +5046,8 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
5045
5046
|
paramStore.goToResults({ searchText, facet });
|
|
5046
5047
|
};
|
|
5047
5048
|
return (_ctx, _cache) => {
|
|
5048
|
-
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5049
|
-
vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
5049
|
+
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
|
|
5050
|
+
vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, [
|
|
5050
5051
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
5051
5052
|
return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
|
|
5052
5053
|
vue.createElementVNode("span", {
|
|
@@ -5055,7 +5056,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
5055
5056
|
]);
|
|
5056
5057
|
}), 128))
|
|
5057
5058
|
])) : vue.createCommentVNode("", true),
|
|
5058
|
-
didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
5059
|
+
didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, [
|
|
5059
5060
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
5060
5061
|
return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
|
|
5061
5062
|
label.includes("{1}") ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -5071,12 +5072,12 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
5071
5072
|
};
|
|
5072
5073
|
}
|
|
5073
5074
|
});
|
|
5074
|
-
const _hoisted_1$
|
|
5075
|
+
const _hoisted_1$V = {
|
|
5075
5076
|
key: 0,
|
|
5076
5077
|
class: "lupa-search-results-summary"
|
|
5077
5078
|
};
|
|
5078
|
-
const _hoisted_2$
|
|
5079
|
-
const _sfc_main$
|
|
5079
|
+
const _hoisted_2$E = ["innerHTML"];
|
|
5080
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
5080
5081
|
__name: "SearchResultsSummary",
|
|
5081
5082
|
props: {
|
|
5082
5083
|
label: {},
|
|
@@ -5091,8 +5092,8 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
5091
5092
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
5092
5093
|
});
|
|
5093
5094
|
return (_ctx, _cache) => {
|
|
5094
|
-
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5095
|
-
vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$
|
|
5095
|
+
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
|
|
5096
|
+
vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$E),
|
|
5096
5097
|
_ctx.clearable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
5097
5098
|
key: 0,
|
|
5098
5099
|
class: "lupa-filter-clear",
|
|
@@ -5103,18 +5104,18 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
5103
5104
|
};
|
|
5104
5105
|
}
|
|
5105
5106
|
});
|
|
5106
|
-
const _hoisted_1$
|
|
5107
|
+
const _hoisted_1$U = {
|
|
5107
5108
|
key: 0,
|
|
5108
5109
|
class: "lupa-result-page-title",
|
|
5109
5110
|
"data-cy": "lupa-result-page-title"
|
|
5110
5111
|
};
|
|
5111
|
-
const _hoisted_2$
|
|
5112
|
-
const _hoisted_3$
|
|
5112
|
+
const _hoisted_2$D = { key: 0 };
|
|
5113
|
+
const _hoisted_3$u = {
|
|
5113
5114
|
key: 1,
|
|
5114
5115
|
class: "lupa-results-total-count"
|
|
5115
5116
|
};
|
|
5116
5117
|
const _hoisted_4$l = ["innerHTML"];
|
|
5117
|
-
const _sfc_main$
|
|
5118
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
5118
5119
|
__name: "SearchResultsTitle",
|
|
5119
5120
|
props: {
|
|
5120
5121
|
options: {},
|
|
@@ -5149,12 +5150,12 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
5149
5150
|
});
|
|
5150
5151
|
return (_ctx, _cache) => {
|
|
5151
5152
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
5152
|
-
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$
|
|
5153
|
+
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$U, [
|
|
5153
5154
|
vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
5154
|
-
queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
5155
|
-
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
5155
|
+
queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$D, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
|
|
5156
|
+
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$u, "(" + vue.toDisplayString(vue.unref(totalItems)) + ")", 1)) : vue.createCommentVNode("", true)
|
|
5156
5157
|
])) : vue.createCommentVNode("", true),
|
|
5157
|
-
_ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5158
|
+
_ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$Y, {
|
|
5158
5159
|
key: 1,
|
|
5159
5160
|
label: summaryLabel.value
|
|
5160
5161
|
}, null, 8, ["label"])) : vue.createCommentVNode("", true),
|
|
@@ -5167,16 +5168,16 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
5167
5168
|
};
|
|
5168
5169
|
}
|
|
5169
5170
|
});
|
|
5170
|
-
const _hoisted_1$
|
|
5171
|
-
const _hoisted_2$
|
|
5171
|
+
const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
|
|
5172
|
+
const _hoisted_2$C = {
|
|
5172
5173
|
class: "lupa-current-filter-label",
|
|
5173
5174
|
"data-cy": "lupa-current-filter-label"
|
|
5174
5175
|
};
|
|
5175
|
-
const _hoisted_3$
|
|
5176
|
+
const _hoisted_3$t = {
|
|
5176
5177
|
class: "lupa-current-filter-value",
|
|
5177
5178
|
"data-cy": "lupa-current-filter-value"
|
|
5178
5179
|
};
|
|
5179
|
-
const _sfc_main$
|
|
5180
|
+
const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
5180
5181
|
__name: "CurrentFilterDisplay",
|
|
5181
5182
|
props: {
|
|
5182
5183
|
filter: {}
|
|
@@ -5188,28 +5189,28 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
5188
5189
|
emit("remove", { filter: props.filter });
|
|
5189
5190
|
};
|
|
5190
5191
|
return (_ctx, _cache) => {
|
|
5191
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5192
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
|
|
5192
5193
|
vue.createElementVNode("div", {
|
|
5193
5194
|
class: "lupa-current-filter-action",
|
|
5194
5195
|
onClick: handleClick
|
|
5195
5196
|
}, "⨉"),
|
|
5196
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
5197
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
5197
|
+
vue.createElementVNode("div", _hoisted_2$C, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
5198
|
+
vue.createElementVNode("div", _hoisted_3$t, vue.toDisplayString(_ctx.filter.value), 1)
|
|
5198
5199
|
]);
|
|
5199
5200
|
};
|
|
5200
5201
|
}
|
|
5201
5202
|
});
|
|
5202
|
-
const _hoisted_1$
|
|
5203
|
-
const _hoisted_2$
|
|
5203
|
+
const _hoisted_1$S = { class: "lupa-filter-title-text" };
|
|
5204
|
+
const _hoisted_2$B = {
|
|
5204
5205
|
key: 0,
|
|
5205
5206
|
class: "lupa-filter-count"
|
|
5206
5207
|
};
|
|
5207
|
-
const _hoisted_3$
|
|
5208
|
+
const _hoisted_3$s = {
|
|
5208
5209
|
key: 0,
|
|
5209
5210
|
class: "filter-values"
|
|
5210
5211
|
};
|
|
5211
5212
|
const _hoisted_4$k = { class: "lupa-current-filter-list" };
|
|
5212
|
-
const _sfc_main$
|
|
5213
|
+
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
5213
5214
|
__name: "CurrentFilters",
|
|
5214
5215
|
props: {
|
|
5215
5216
|
options: {},
|
|
@@ -5264,19 +5265,19 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
5264
5265
|
class: "lupa-current-filter-title",
|
|
5265
5266
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
5266
5267
|
}, [
|
|
5267
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
5268
|
+
vue.createElementVNode("div", _hoisted_1$S, [
|
|
5268
5269
|
vue.createTextVNode(vue.toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
5269
|
-
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
5270
|
+
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$B, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
|
|
5270
5271
|
]),
|
|
5271
5272
|
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
5272
5273
|
key: 0,
|
|
5273
5274
|
class: vue.normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
5274
5275
|
}, null, 2)) : vue.createCommentVNode("", true)
|
|
5275
5276
|
]),
|
|
5276
|
-
!_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
5277
|
+
!_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
|
|
5277
5278
|
vue.createElementVNode("div", _hoisted_4$k, [
|
|
5278
5279
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(displayFilters), (filter) => {
|
|
5279
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5280
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$W, {
|
|
5280
5281
|
key: filter.key + "_" + filter.value,
|
|
5281
5282
|
filter,
|
|
5282
5283
|
onRemove: handleRemove
|
|
@@ -5293,8 +5294,8 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
5293
5294
|
};
|
|
5294
5295
|
}
|
|
5295
5296
|
});
|
|
5296
|
-
const _hoisted_1$
|
|
5297
|
-
const _sfc_main$
|
|
5297
|
+
const _hoisted_1$R = ["href"];
|
|
5298
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
5298
5299
|
__name: "CategoryFilterItem",
|
|
5299
5300
|
props: {
|
|
5300
5301
|
options: {},
|
|
@@ -5331,20 +5332,20 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
5331
5332
|
"data-cy": "lupa-child-category-item",
|
|
5332
5333
|
href: urlLink.value,
|
|
5333
5334
|
onClick: handleNavigation
|
|
5334
|
-
}, vue.toDisplayString(title.value), 9, _hoisted_1$
|
|
5335
|
+
}, vue.toDisplayString(title.value), 9, _hoisted_1$R)
|
|
5335
5336
|
], 2);
|
|
5336
5337
|
};
|
|
5337
5338
|
}
|
|
5338
5339
|
});
|
|
5339
|
-
const _hoisted_1$
|
|
5340
|
+
const _hoisted_1$Q = {
|
|
5340
5341
|
class: "lupa-category-filter",
|
|
5341
5342
|
"data-cy": "lupa-category-filter"
|
|
5342
5343
|
};
|
|
5343
|
-
const _hoisted_2$
|
|
5344
|
-
const _hoisted_3$
|
|
5344
|
+
const _hoisted_2$A = { class: "lupa-category-back" };
|
|
5345
|
+
const _hoisted_3$r = ["href"];
|
|
5345
5346
|
const _hoisted_4$j = ["href"];
|
|
5346
5347
|
const _hoisted_5$c = { class: "lupa-child-category-list" };
|
|
5347
|
-
const _sfc_main$
|
|
5348
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
5348
5349
|
__name: "CategoryFilter",
|
|
5349
5350
|
props: {
|
|
5350
5351
|
options: {}
|
|
@@ -5430,14 +5431,14 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
5430
5431
|
};
|
|
5431
5432
|
__expose({ fetch: fetch2 });
|
|
5432
5433
|
return (_ctx, _cache) => {
|
|
5433
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5434
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
5434
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
|
|
5435
|
+
vue.createElementVNode("div", _hoisted_2$A, [
|
|
5435
5436
|
hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
5436
5437
|
key: 0,
|
|
5437
5438
|
"data-cy": "lupa-category-back",
|
|
5438
5439
|
href: backUrlLink.value,
|
|
5439
5440
|
onClick: handleNavigationBack
|
|
5440
|
-
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
5441
|
+
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$r)) : vue.createCommentVNode("", true)
|
|
5441
5442
|
]),
|
|
5442
5443
|
vue.createElementVNode("div", {
|
|
5443
5444
|
class: vue.normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -5451,7 +5452,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
5451
5452
|
], 2),
|
|
5452
5453
|
vue.createElementVNode("div", _hoisted_5$c, [
|
|
5453
5454
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
|
|
5454
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5455
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$U, {
|
|
5455
5456
|
key: getCategoryKey(child),
|
|
5456
5457
|
item: child,
|
|
5457
5458
|
options: _ctx.options
|
|
@@ -5462,15 +5463,15 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
5462
5463
|
};
|
|
5463
5464
|
}
|
|
5464
5465
|
});
|
|
5465
|
-
const _hoisted_1$
|
|
5466
|
+
const _hoisted_1$P = {
|
|
5466
5467
|
class: "lupa-search-result-facet-term-values",
|
|
5467
5468
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
5468
5469
|
};
|
|
5469
|
-
const _hoisted_2$
|
|
5470
|
-
const _hoisted_3$
|
|
5470
|
+
const _hoisted_2$z = ["placeholder"];
|
|
5471
|
+
const _hoisted_3$q = { class: "lupa-terms-list" };
|
|
5471
5472
|
const _hoisted_4$i = ["onClick"];
|
|
5472
5473
|
const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
|
|
5473
|
-
const _hoisted_6$
|
|
5474
|
+
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
5474
5475
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
5475
5476
|
const _hoisted_8$1 = {
|
|
5476
5477
|
key: 0,
|
|
@@ -5478,7 +5479,7 @@ const _hoisted_8$1 = {
|
|
|
5478
5479
|
};
|
|
5479
5480
|
const _hoisted_9$1 = { key: 0 };
|
|
5480
5481
|
const _hoisted_10$1 = { key: 1 };
|
|
5481
|
-
const _sfc_main$
|
|
5482
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
5482
5483
|
__name: "TermFacet",
|
|
5483
5484
|
props: {
|
|
5484
5485
|
options: {},
|
|
@@ -5547,17 +5548,17 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
5547
5548
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
5548
5549
|
};
|
|
5549
5550
|
return (_ctx, _cache) => {
|
|
5550
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5551
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
|
|
5551
5552
|
isFilterable.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
5552
5553
|
key: 0,
|
|
5553
5554
|
class: "lupa-term-filter",
|
|
5554
5555
|
"data-cy": "lupa-term-filter",
|
|
5555
5556
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
5556
5557
|
placeholder: _ctx.options.labels.facetFilter
|
|
5557
|
-
}, null, 8, _hoisted_2$
|
|
5558
|
+
}, null, 8, _hoisted_2$z)), [
|
|
5558
5559
|
[vue.vModelText, termFilter.value]
|
|
5559
5560
|
]) : vue.createCommentVNode("", true),
|
|
5560
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
5561
|
+
vue.createElementVNode("div", _hoisted_3$q, [
|
|
5561
5562
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
|
|
5562
5563
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
5563
5564
|
class: vue.normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -5570,7 +5571,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
5570
5571
|
class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
5571
5572
|
}, null, 2)
|
|
5572
5573
|
]),
|
|
5573
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
5574
|
+
vue.createElementVNode("div", _hoisted_6$8, [
|
|
5574
5575
|
vue.createElementVNode("span", _hoisted_7$6, vue.toDisplayString(item.title), 1),
|
|
5575
5576
|
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$1, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
5576
5577
|
])
|
|
@@ -6565,12 +6566,12 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
6565
6566
|
m.render = function(e, t, r, i, n, o) {
|
|
6566
6567
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
|
|
6567
6568
|
}, m.__file = "src/Slider.vue";
|
|
6568
|
-
const _hoisted_1$
|
|
6569
|
-
const _hoisted_2$
|
|
6569
|
+
const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
|
|
6570
|
+
const _hoisted_2$y = {
|
|
6570
6571
|
key: 0,
|
|
6571
6572
|
class: "lupa-stats-facet-summary"
|
|
6572
6573
|
};
|
|
6573
|
-
const _hoisted_3$
|
|
6574
|
+
const _hoisted_3$p = {
|
|
6574
6575
|
key: 1,
|
|
6575
6576
|
class: "lupa-stats-facet-summary-input"
|
|
6576
6577
|
};
|
|
@@ -6579,7 +6580,7 @@ const _hoisted_4$h = {
|
|
|
6579
6580
|
class: "lupa-stats-range-label"
|
|
6580
6581
|
};
|
|
6581
6582
|
const _hoisted_5$a = { class: "lupa-stats-from" };
|
|
6582
|
-
const _hoisted_6$
|
|
6583
|
+
const _hoisted_6$7 = ["max", "min", "pattern"];
|
|
6583
6584
|
const _hoisted_7$5 = { key: 0 };
|
|
6584
6585
|
const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
6585
6586
|
const _hoisted_9 = {
|
|
@@ -6593,7 +6594,7 @@ const _hoisted_13 = {
|
|
|
6593
6594
|
key: 2,
|
|
6594
6595
|
class: "lupa-stats-slider-wrapper"
|
|
6595
6596
|
};
|
|
6596
|
-
const _sfc_main$
|
|
6597
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
6597
6598
|
__name: "StatsFacet",
|
|
6598
6599
|
props: {
|
|
6599
6600
|
options: {},
|
|
@@ -6741,8 +6742,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6741
6742
|
innerSliderRange.value = value;
|
|
6742
6743
|
};
|
|
6743
6744
|
return (_ctx, _cache) => {
|
|
6744
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6745
|
-
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
6745
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
|
|
6746
|
+
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$p, [
|
|
6746
6747
|
vue.createElementVNode("div", null, [
|
|
6747
6748
|
rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$h, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
|
|
6748
6749
|
vue.createElementVNode("div", _hoisted_5$a, [
|
|
@@ -6753,7 +6754,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6753
6754
|
max: facetMax.value,
|
|
6754
6755
|
min: facetMin.value,
|
|
6755
6756
|
pattern: sliderInputFormat.value
|
|
6756
|
-
}, null, 8, _hoisted_6$
|
|
6757
|
+
}, null, 8, _hoisted_6$7), [
|
|
6757
6758
|
[
|
|
6758
6759
|
vue.vModelText,
|
|
6759
6760
|
fromValue.value,
|
|
@@ -6805,9 +6806,9 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6805
6806
|
};
|
|
6806
6807
|
}
|
|
6807
6808
|
});
|
|
6808
|
-
const _hoisted_1$
|
|
6809
|
-
const _hoisted_2$
|
|
6810
|
-
const _hoisted_3$
|
|
6809
|
+
const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
|
|
6810
|
+
const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
|
|
6811
|
+
const _hoisted_3$o = { class: "lupa-term-label" };
|
|
6811
6812
|
const _hoisted_4$g = {
|
|
6812
6813
|
key: 0,
|
|
6813
6814
|
class: "lupa-term-count"
|
|
@@ -6816,7 +6817,7 @@ const _hoisted_5$9 = {
|
|
|
6816
6817
|
key: 0,
|
|
6817
6818
|
class: "lupa-facet-level"
|
|
6818
6819
|
};
|
|
6819
|
-
const _sfc_main$
|
|
6820
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
6820
6821
|
__name: "HierarchyFacetLevel",
|
|
6821
6822
|
props: {
|
|
6822
6823
|
options: {},
|
|
@@ -6862,13 +6863,13 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
6862
6863
|
"data-cy": "lupa-facet-term",
|
|
6863
6864
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
6864
6865
|
}, [
|
|
6865
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
6866
|
+
vue.createElementVNode("div", _hoisted_1$N, [
|
|
6866
6867
|
vue.createElementVNode("span", {
|
|
6867
6868
|
class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
6868
6869
|
}, null, 2)
|
|
6869
6870
|
]),
|
|
6870
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
6871
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
6871
|
+
vue.createElementVNode("div", _hoisted_2$x, [
|
|
6872
|
+
vue.createElementVNode("span", _hoisted_3$o, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
|
|
6872
6873
|
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$g, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
6873
6874
|
])
|
|
6874
6875
|
]),
|
|
@@ -6888,13 +6889,13 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
6888
6889
|
};
|
|
6889
6890
|
}
|
|
6890
6891
|
});
|
|
6891
|
-
const _hoisted_1$
|
|
6892
|
+
const _hoisted_1$M = {
|
|
6892
6893
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
6893
6894
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
6894
6895
|
};
|
|
6895
|
-
const _hoisted_2$
|
|
6896
|
-
const _hoisted_3$
|
|
6897
|
-
const _sfc_main$
|
|
6896
|
+
const _hoisted_2$w = { key: 0 };
|
|
6897
|
+
const _hoisted_3$n = ["placeholder"];
|
|
6898
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
6898
6899
|
__name: "HierarchyFacet",
|
|
6899
6900
|
props: {
|
|
6900
6901
|
options: {},
|
|
@@ -6944,19 +6945,19 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
6944
6945
|
showAll.value = true;
|
|
6945
6946
|
};
|
|
6946
6947
|
return (_ctx, _cache) => {
|
|
6947
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6948
|
-
isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
6948
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
|
|
6949
|
+
isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$w, [
|
|
6949
6950
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
6950
6951
|
class: "lupa-term-filter",
|
|
6951
6952
|
"data-cy": "lupa-term-filter",
|
|
6952
6953
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
6953
6954
|
placeholder: _ctx.options.labels.facetFilter
|
|
6954
|
-
}, null, 8, _hoisted_3$
|
|
6955
|
+
}, null, 8, _hoisted_3$n), [
|
|
6955
6956
|
[vue.vModelText, termFilter.value]
|
|
6956
6957
|
])
|
|
6957
6958
|
])) : vue.createCommentVNode("", true),
|
|
6958
6959
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
|
|
6959
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6960
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$Q, {
|
|
6960
6961
|
key: item.title,
|
|
6961
6962
|
options: _ctx.options,
|
|
6962
6963
|
item,
|
|
@@ -6976,20 +6977,20 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
6976
6977
|
};
|
|
6977
6978
|
}
|
|
6978
6979
|
});
|
|
6979
|
-
const _hoisted_1$
|
|
6980
|
-
const _hoisted_2$
|
|
6980
|
+
const _hoisted_1$L = { class: "lupa-facet-label-text" };
|
|
6981
|
+
const _hoisted_2$v = {
|
|
6981
6982
|
key: 0,
|
|
6982
6983
|
class: "lupa-facet-content",
|
|
6983
6984
|
"data-cy": "lupa-facet-content"
|
|
6984
6985
|
};
|
|
6985
6986
|
const __default__$2 = {
|
|
6986
6987
|
components: {
|
|
6987
|
-
TermFacet: _sfc_main$
|
|
6988
|
-
StatsFacet: _sfc_main$
|
|
6989
|
-
HierarchyFacet: _sfc_main$
|
|
6988
|
+
TermFacet: _sfc_main$S,
|
|
6989
|
+
StatsFacet: _sfc_main$R,
|
|
6990
|
+
HierarchyFacet: _sfc_main$P
|
|
6990
6991
|
}
|
|
6991
6992
|
};
|
|
6992
|
-
const _sfc_main$
|
|
6993
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
|
|
6993
6994
|
__name: "FacetDisplay",
|
|
6994
6995
|
props: {
|
|
6995
6996
|
options: {},
|
|
@@ -7100,12 +7101,12 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
7100
7101
|
"data-cy": "lupa-search-result-facet-label",
|
|
7101
7102
|
onClick: toggleFacet
|
|
7102
7103
|
}, [
|
|
7103
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
7104
|
+
vue.createElementVNode("div", _hoisted_1$L, vue.toDisplayString(facet.value.label), 1),
|
|
7104
7105
|
vue.createElementVNode("div", {
|
|
7105
7106
|
class: vue.normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
7106
7107
|
}, null, 2)
|
|
7107
7108
|
], 2),
|
|
7108
|
-
isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
7109
|
+
isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$v, [
|
|
7109
7110
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(facetType.value), {
|
|
7110
7111
|
facet: facet.value,
|
|
7111
7112
|
currentFilters: currentFilters.value[facet.value.key],
|
|
@@ -7123,12 +7124,12 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
7123
7124
|
};
|
|
7124
7125
|
}
|
|
7125
7126
|
}));
|
|
7126
|
-
const _hoisted_1$
|
|
7127
|
-
const _hoisted_2$
|
|
7127
|
+
const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
|
|
7128
|
+
const _hoisted_2$u = {
|
|
7128
7129
|
key: 0,
|
|
7129
7130
|
class: "lupa-facets-title"
|
|
7130
7131
|
};
|
|
7131
|
-
const _sfc_main$
|
|
7132
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
7132
7133
|
__name: "FacetList",
|
|
7133
7134
|
props: {
|
|
7134
7135
|
options: {},
|
|
@@ -7162,14 +7163,14 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7162
7163
|
};
|
|
7163
7164
|
return (_ctx, _cache) => {
|
|
7164
7165
|
var _a;
|
|
7165
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7166
|
-
_ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
7166
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
|
|
7167
|
+
_ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
|
|
7167
7168
|
vue.createElementVNode("div", {
|
|
7168
7169
|
class: vue.normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
7169
7170
|
}, [
|
|
7170
7171
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayFacets.value, (facet) => {
|
|
7171
7172
|
var _a2;
|
|
7172
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7173
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$O, {
|
|
7173
7174
|
key: facet.key,
|
|
7174
7175
|
facet,
|
|
7175
7176
|
currentFilters: currentFiltersValue.value,
|
|
@@ -7184,8 +7185,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7184
7185
|
};
|
|
7185
7186
|
}
|
|
7186
7187
|
});
|
|
7187
|
-
const _hoisted_1$
|
|
7188
|
-
const _sfc_main$
|
|
7188
|
+
const _hoisted_1$J = { class: "lupa-search-result-facets" };
|
|
7189
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
7189
7190
|
__name: "Facets",
|
|
7190
7191
|
props: {
|
|
7191
7192
|
options: {},
|
|
@@ -7231,8 +7232,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7231
7232
|
paramStore.removeParameters({ paramsToRemove: [param] });
|
|
7232
7233
|
};
|
|
7233
7234
|
return (_ctx, _cache) => {
|
|
7234
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7235
|
-
regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7235
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
|
|
7236
|
+
regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$N, {
|
|
7236
7237
|
key: 0,
|
|
7237
7238
|
options: _ctx.options,
|
|
7238
7239
|
facets: regularFacets.value,
|
|
@@ -7246,11 +7247,11 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7246
7247
|
};
|
|
7247
7248
|
}
|
|
7248
7249
|
});
|
|
7249
|
-
const _hoisted_1$
|
|
7250
|
+
const _hoisted_1$I = {
|
|
7250
7251
|
id: "lupa-search-result-filters",
|
|
7251
7252
|
class: "lupa-search-result-filters"
|
|
7252
7253
|
};
|
|
7253
|
-
const _sfc_main$
|
|
7254
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
7254
7255
|
__name: "SearchResultsFilters",
|
|
7255
7256
|
props: {
|
|
7256
7257
|
options: {},
|
|
@@ -7279,19 +7280,19 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7279
7280
|
__expose({ fetch: fetch2 });
|
|
7280
7281
|
return (_ctx, _cache) => {
|
|
7281
7282
|
var _a;
|
|
7282
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7283
|
-
showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7283
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
7284
|
+
showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$V, {
|
|
7284
7285
|
key: 0,
|
|
7285
7286
|
options: _ctx.options.currentFilters,
|
|
7286
7287
|
expandable: (_a = _ctx.expandable) != null ? _a : false
|
|
7287
7288
|
}, null, 8, ["options", "expandable"])) : vue.createCommentVNode("", true),
|
|
7288
|
-
_ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7289
|
+
_ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
|
|
7289
7290
|
key: 1,
|
|
7290
7291
|
options: _ctx.options.categories,
|
|
7291
7292
|
ref_key: "categoryFilters",
|
|
7292
7293
|
ref: categoryFilters
|
|
7293
7294
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
7294
|
-
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7295
|
+
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
|
|
7295
7296
|
key: 2,
|
|
7296
7297
|
options: _ctx.options.facets
|
|
7297
7298
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true)
|
|
@@ -7299,20 +7300,20 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7299
7300
|
};
|
|
7300
7301
|
}
|
|
7301
7302
|
});
|
|
7302
|
-
const _hoisted_1$
|
|
7303
|
+
const _hoisted_1$H = {
|
|
7303
7304
|
key: 0,
|
|
7304
7305
|
class: "lupa-mobile-filter-sidebar"
|
|
7305
7306
|
};
|
|
7306
|
-
const _hoisted_2$
|
|
7307
|
-
const _hoisted_3$
|
|
7307
|
+
const _hoisted_2$t = ["onClick"];
|
|
7308
|
+
const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
|
|
7308
7309
|
const _hoisted_4$f = { class: "lupa-sidebar-top" };
|
|
7309
7310
|
const _hoisted_5$8 = { class: "lupa-sidebar-title" };
|
|
7310
|
-
const _hoisted_6$
|
|
7311
|
+
const _hoisted_6$6 = {
|
|
7311
7312
|
key: 0,
|
|
7312
7313
|
class: "lupa-sidebar-filter-count"
|
|
7313
7314
|
};
|
|
7314
7315
|
const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
|
|
7315
|
-
const _sfc_main$
|
|
7316
|
+
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
7316
7317
|
__name: "MobileFilterSidebar",
|
|
7317
7318
|
props: {
|
|
7318
7319
|
options: {}
|
|
@@ -7338,16 +7339,16 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
7338
7339
|
searchResultStore.setSidebarState({ visible: false });
|
|
7339
7340
|
};
|
|
7340
7341
|
return (_ctx, _cache) => {
|
|
7341
|
-
return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7342
|
+
return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
|
|
7342
7343
|
vue.createElementVNode("div", {
|
|
7343
7344
|
class: "lupa-sidebar-close",
|
|
7344
7345
|
onClick: vue.withModifiers(handleMobileToggle, ["stop"])
|
|
7345
|
-
}, null, 8, _hoisted_2$
|
|
7346
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
7346
|
+
}, null, 8, _hoisted_2$t),
|
|
7347
|
+
vue.createElementVNode("div", _hoisted_3$m, [
|
|
7347
7348
|
vue.createElementVNode("div", _hoisted_4$f, [
|
|
7348
7349
|
vue.createElementVNode("div", _hoisted_5$8, [
|
|
7349
7350
|
vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
|
|
7350
|
-
isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$
|
|
7351
|
+
isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
|
|
7351
7352
|
]),
|
|
7352
7353
|
vue.createElementVNode("div", {
|
|
7353
7354
|
class: "lupa-filter-toggle-mobile",
|
|
@@ -7355,7 +7356,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
7355
7356
|
})
|
|
7356
7357
|
]),
|
|
7357
7358
|
vue.createElementVNode("div", _hoisted_7$4, [
|
|
7358
|
-
vue.createVNode(_sfc_main$
|
|
7359
|
+
vue.createVNode(_sfc_main$L, {
|
|
7359
7360
|
options: _ctx.options,
|
|
7360
7361
|
expandable: isActiveFiltersExpanded.value
|
|
7361
7362
|
}, null, 8, ["options", "expandable"])
|
|
@@ -7365,14 +7366,14 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
7365
7366
|
};
|
|
7366
7367
|
}
|
|
7367
7368
|
});
|
|
7368
|
-
const _hoisted_1$
|
|
7369
|
-
const _hoisted_2$
|
|
7370
|
-
const _hoisted_3$
|
|
7369
|
+
const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
|
|
7370
|
+
const _hoisted_2$s = ["href", "onClick"];
|
|
7371
|
+
const _hoisted_3$l = {
|
|
7371
7372
|
key: 1,
|
|
7372
7373
|
class: "lupa-search-results-breadcrumb-text"
|
|
7373
7374
|
};
|
|
7374
7375
|
const _hoisted_4$e = { key: 2 };
|
|
7375
|
-
const _sfc_main$
|
|
7376
|
+
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
7376
7377
|
__name: "SearchResultsBreadcrumbs",
|
|
7377
7378
|
props: {
|
|
7378
7379
|
breadcrumbs: {}
|
|
@@ -7397,7 +7398,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
7397
7398
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
7398
7399
|
};
|
|
7399
7400
|
return (_ctx, _cache) => {
|
|
7400
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7401
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
|
|
7401
7402
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
7402
7403
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
7403
7404
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -7411,7 +7412,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
7411
7412
|
var _a;
|
|
7412
7413
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
7413
7414
|
}
|
|
7414
|
-
}, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$
|
|
7415
|
+
}, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$l, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
7415
7416
|
index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$e, " / ")) : vue.createCommentVNode("", true)
|
|
7416
7417
|
]);
|
|
7417
7418
|
}), 128))
|
|
@@ -7419,11 +7420,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
7419
7420
|
};
|
|
7420
7421
|
}
|
|
7421
7422
|
});
|
|
7422
|
-
const _hoisted_1$
|
|
7423
|
+
const _hoisted_1$F = {
|
|
7423
7424
|
id: "lupa-search-result-filters",
|
|
7424
7425
|
class: "lupa-search-result-filters"
|
|
7425
7426
|
};
|
|
7426
|
-
const _sfc_main$
|
|
7427
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
7427
7428
|
__name: "FiltersTopDropdown",
|
|
7428
7429
|
props: {
|
|
7429
7430
|
options: {}
|
|
@@ -7431,8 +7432,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
7431
7432
|
setup(__props) {
|
|
7432
7433
|
return (_ctx, _cache) => {
|
|
7433
7434
|
var _a;
|
|
7434
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7435
|
-
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7435
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
|
|
7436
|
+
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
|
|
7436
7437
|
key: 0,
|
|
7437
7438
|
options: _ctx.options.facets,
|
|
7438
7439
|
"facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
|
|
@@ -7442,8 +7443,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
7442
7443
|
};
|
|
7443
7444
|
}
|
|
7444
7445
|
});
|
|
7445
|
-
const _hoisted_1$
|
|
7446
|
-
const _sfc_main$
|
|
7446
|
+
const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
|
|
7447
|
+
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
7447
7448
|
__name: "SearchResultsLayoutSelection",
|
|
7448
7449
|
setup(__props) {
|
|
7449
7450
|
const searchResultStore = useSearchResultStore();
|
|
@@ -7454,7 +7455,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
7454
7455
|
searchResultStore.setLayout(layout2);
|
|
7455
7456
|
};
|
|
7456
7457
|
return (_ctx, _cache) => {
|
|
7457
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7458
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
|
|
7458
7459
|
vue.createElementVNode("div", {
|
|
7459
7460
|
class: vue.normalizeClass([
|
|
7460
7461
|
"lupa-layout-selection-grid",
|
|
@@ -7476,11 +7477,11 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
7476
7477
|
};
|
|
7477
7478
|
}
|
|
7478
7479
|
});
|
|
7479
|
-
const _hoisted_1$
|
|
7480
|
+
const _hoisted_1$D = {
|
|
7480
7481
|
key: 0,
|
|
7481
7482
|
class: "lupa-mobile-toggle-filter-count"
|
|
7482
7483
|
};
|
|
7483
|
-
const _sfc_main$
|
|
7484
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
7484
7485
|
__name: "SearchResultsMobileToggle",
|
|
7485
7486
|
props: {
|
|
7486
7487
|
label: {},
|
|
@@ -7498,26 +7499,26 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
7498
7499
|
onClick: handleMobileToggle
|
|
7499
7500
|
}, [
|
|
7500
7501
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
7501
|
-
_ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
7502
|
+
_ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$D, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
|
|
7502
7503
|
], 2);
|
|
7503
7504
|
};
|
|
7504
7505
|
}
|
|
7505
7506
|
});
|
|
7506
|
-
const _hoisted_1$
|
|
7507
|
+
const _hoisted_1$C = {
|
|
7507
7508
|
key: 0,
|
|
7508
7509
|
id: "lupa-search-results-page-select",
|
|
7509
7510
|
"data-cy": "lupa-search-results-page-select"
|
|
7510
7511
|
};
|
|
7511
|
-
const _hoisted_2$
|
|
7512
|
+
const _hoisted_2$r = {
|
|
7512
7513
|
key: 0,
|
|
7513
7514
|
class: "lupa-page-number-separator"
|
|
7514
7515
|
};
|
|
7515
|
-
const _hoisted_3$
|
|
7516
|
+
const _hoisted_3$k = ["onClick"];
|
|
7516
7517
|
const _hoisted_4$d = {
|
|
7517
7518
|
key: 0,
|
|
7518
7519
|
class: "lupa-page-number-separator"
|
|
7519
7520
|
};
|
|
7520
|
-
const _sfc_main$
|
|
7521
|
+
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
7521
7522
|
__name: "SearchResultsPageSelect",
|
|
7522
7523
|
props: {
|
|
7523
7524
|
lastPageLabel: {},
|
|
@@ -7579,7 +7580,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
7579
7580
|
}
|
|
7580
7581
|
};
|
|
7581
7582
|
return (_ctx, _cache) => {
|
|
7582
|
-
return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7583
|
+
return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
|
|
7583
7584
|
showBack.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
7584
7585
|
key: 0,
|
|
7585
7586
|
class: vue.normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -7590,7 +7591,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
7590
7591
|
class: "lupa-page-number lupa-page-number-first",
|
|
7591
7592
|
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
7592
7593
|
}, " 1 "),
|
|
7593
|
-
showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
7594
|
+
showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$r, "...")) : vue.createCommentVNode("", true)
|
|
7594
7595
|
], 64)) : vue.createCommentVNode("", true),
|
|
7595
7596
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pages.value, (page) => {
|
|
7596
7597
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -7601,7 +7602,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
7601
7602
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
7602
7603
|
]),
|
|
7603
7604
|
"data-cy": "lupa-page-number"
|
|
7604
|
-
}, vue.toDisplayString(page), 11, _hoisted_3$
|
|
7605
|
+
}, vue.toDisplayString(page), 11, _hoisted_3$k);
|
|
7605
7606
|
}), 128)),
|
|
7606
7607
|
showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
7607
7608
|
showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d, "...")) : vue.createCommentVNode("", true),
|
|
@@ -7623,13 +7624,13 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
7623
7624
|
};
|
|
7624
7625
|
}
|
|
7625
7626
|
});
|
|
7626
|
-
const _hoisted_1$
|
|
7627
|
+
const _hoisted_1$B = {
|
|
7627
7628
|
id: "lupa-search-results-page-size",
|
|
7628
7629
|
"data-cy": "lupa-search-results-page-size"
|
|
7629
7630
|
};
|
|
7630
|
-
const _hoisted_2$
|
|
7631
|
-
const _hoisted_3$
|
|
7632
|
-
const _sfc_main$
|
|
7631
|
+
const _hoisted_2$q = { id: "lupa-select" };
|
|
7632
|
+
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
7633
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
7633
7634
|
__name: "SearchResultsPageSize",
|
|
7634
7635
|
props: {
|
|
7635
7636
|
label: {},
|
|
@@ -7646,9 +7647,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
7646
7647
|
});
|
|
7647
7648
|
};
|
|
7648
7649
|
return (_ctx, _cache) => {
|
|
7649
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7650
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
7651
|
-
vue.createElementVNode("label", _hoisted_3$
|
|
7650
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
7651
|
+
vue.createElementVNode("div", _hoisted_2$q, [
|
|
7652
|
+
vue.createElementVNode("label", _hoisted_3$j, vue.toDisplayString(_ctx.label), 1),
|
|
7652
7653
|
vue.createElementVNode("select", {
|
|
7653
7654
|
class: "lupa-select-dropdown",
|
|
7654
7655
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
@@ -7665,14 +7666,14 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
7665
7666
|
};
|
|
7666
7667
|
}
|
|
7667
7668
|
});
|
|
7668
|
-
const _hoisted_1$
|
|
7669
|
+
const _hoisted_1$A = {
|
|
7669
7670
|
id: "lupa-search-results-sort",
|
|
7670
7671
|
class: "lupa-search-results-sort"
|
|
7671
7672
|
};
|
|
7672
|
-
const _hoisted_2$
|
|
7673
|
-
const _hoisted_3$
|
|
7673
|
+
const _hoisted_2$p = { id: "lupa-select" };
|
|
7674
|
+
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
7674
7675
|
const _hoisted_4$c = ["value"];
|
|
7675
|
-
const _sfc_main$
|
|
7676
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
7676
7677
|
__name: "SearchResultsSort",
|
|
7677
7678
|
props: {
|
|
7678
7679
|
options: {},
|
|
@@ -7719,9 +7720,9 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
7719
7720
|
previousKey.value = selectedKey.value;
|
|
7720
7721
|
};
|
|
7721
7722
|
return (_ctx, _cache) => {
|
|
7722
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7723
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
7724
|
-
vue.createElementVNode("label", _hoisted_3$
|
|
7723
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
7724
|
+
vue.createElementVNode("div", _hoisted_2$p, [
|
|
7725
|
+
vue.createElementVNode("label", _hoisted_3$i, vue.toDisplayString(_ctx.options.label), 1),
|
|
7725
7726
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
7726
7727
|
class: "lupa-select-dropdown",
|
|
7727
7728
|
"data-cy": "lupa-sort-select-dropdown",
|
|
@@ -7743,14 +7744,14 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
7743
7744
|
};
|
|
7744
7745
|
}
|
|
7745
7746
|
});
|
|
7746
|
-
const _hoisted_1$
|
|
7747
|
-
const _hoisted_2$
|
|
7748
|
-
const _hoisted_3$
|
|
7747
|
+
const _hoisted_1$z = { class: "lupa-toolbar-left" };
|
|
7748
|
+
const _hoisted_2$o = { key: 1 };
|
|
7749
|
+
const _hoisted_3$h = { key: 3 };
|
|
7749
7750
|
const _hoisted_4$b = { key: 5 };
|
|
7750
7751
|
const _hoisted_5$7 = { class: "lupa-toolbar-right" };
|
|
7751
|
-
const _hoisted_6$
|
|
7752
|
+
const _hoisted_6$5 = { key: 1 };
|
|
7752
7753
|
const _hoisted_7$3 = { key: 3 };
|
|
7753
|
-
const _sfc_main$
|
|
7754
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
7754
7755
|
__name: "SearchResultsToolbar",
|
|
7755
7756
|
props: {
|
|
7756
7757
|
options: {},
|
|
@@ -7849,15 +7850,15 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
7849
7850
|
id: "lupa-search-results-toolbar",
|
|
7850
7851
|
class: vue.normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
7851
7852
|
}, [
|
|
7852
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
7853
|
-
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7854
|
-
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7853
|
+
vue.createElementVNode("div", _hoisted_1$z, [
|
|
7854
|
+
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$H, { key: 0 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$o)),
|
|
7855
|
+
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Y, {
|
|
7855
7856
|
key: 2,
|
|
7856
7857
|
label: searchSummaryLabel.value,
|
|
7857
7858
|
clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
|
|
7858
7859
|
onClear: handleClearAll
|
|
7859
|
-
}, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
7860
|
-
displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7860
|
+
}, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$h)),
|
|
7861
|
+
displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
7861
7862
|
key: 4,
|
|
7862
7863
|
options: paginationOptions.value.pageSelect,
|
|
7863
7864
|
"last-page-label": paginationOptions.value.labels.showMore,
|
|
@@ -7865,16 +7866,16 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
7865
7866
|
}, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b))
|
|
7866
7867
|
]),
|
|
7867
7868
|
vue.createElementVNode("div", _hoisted_5$7, [
|
|
7868
|
-
vue.createVNode(_sfc_main$
|
|
7869
|
+
vue.createVNode(_sfc_main$G, {
|
|
7869
7870
|
label: optionsValue.value.labels.mobileFilterButton,
|
|
7870
7871
|
"show-filter-count": showMobileFilterCount.value
|
|
7871
7872
|
}, null, 8, ["label", "show-filter-count"]),
|
|
7872
|
-
paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7873
|
+
paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
7873
7874
|
key: 0,
|
|
7874
7875
|
options: paginationOptions.value.pageSize,
|
|
7875
7876
|
label: paginationOptions.value.labels.pageSize
|
|
7876
|
-
}, null, 8, ["options", "label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
7877
|
-
sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7877
|
+
}, null, 8, ["options", "label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$5)),
|
|
7878
|
+
sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$D, {
|
|
7878
7879
|
key: 2,
|
|
7879
7880
|
options: sortOptions.value,
|
|
7880
7881
|
callbacks: callbacks.value
|
|
@@ -7884,14 +7885,14 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
7884
7885
|
};
|
|
7885
7886
|
}
|
|
7886
7887
|
});
|
|
7887
|
-
const _hoisted_1$
|
|
7888
|
-
const _hoisted_2$
|
|
7889
|
-
const _hoisted_3$
|
|
7888
|
+
const _hoisted_1$y = { class: "lupa-badge-title" };
|
|
7889
|
+
const _hoisted_2$n = ["src"];
|
|
7890
|
+
const _hoisted_3$g = { key: 1 };
|
|
7890
7891
|
const _hoisted_4$a = {
|
|
7891
7892
|
key: 0,
|
|
7892
7893
|
class: "lupa-badge-full-text"
|
|
7893
7894
|
};
|
|
7894
|
-
const _sfc_main$
|
|
7895
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
7895
7896
|
__name: "SearchResultGeneratedBadge",
|
|
7896
7897
|
props: {
|
|
7897
7898
|
options: {},
|
|
@@ -7924,20 +7925,20 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
7924
7925
|
class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
7925
7926
|
style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
7926
7927
|
}, [
|
|
7927
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
7928
|
+
vue.createElementVNode("span", _hoisted_1$y, [
|
|
7928
7929
|
image.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
7929
7930
|
key: 0,
|
|
7930
7931
|
src: image.value
|
|
7931
|
-
}, null, 8, _hoisted_2$
|
|
7932
|
-
hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
7932
|
+
}, null, 8, _hoisted_2$n)) : vue.createCommentVNode("", true),
|
|
7933
|
+
hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$g, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
|
|
7933
7934
|
]),
|
|
7934
7935
|
hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$a, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
|
|
7935
7936
|
], 6);
|
|
7936
7937
|
};
|
|
7937
7938
|
}
|
|
7938
7939
|
});
|
|
7939
|
-
const _hoisted_1$
|
|
7940
|
-
const _sfc_main$
|
|
7940
|
+
const _hoisted_1$x = { class: "lupa-generated-badges" };
|
|
7941
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
7941
7942
|
__name: "SearchResultGeneratedBadges",
|
|
7942
7943
|
props: {
|
|
7943
7944
|
options: {}
|
|
@@ -7963,9 +7964,9 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
7963
7964
|
})).filter((b) => Boolean(b.id));
|
|
7964
7965
|
});
|
|
7965
7966
|
return (_ctx, _cache) => {
|
|
7966
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7967
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
|
|
7967
7968
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
|
|
7968
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7969
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$B, {
|
|
7969
7970
|
key: badge.id,
|
|
7970
7971
|
badge,
|
|
7971
7972
|
options: _ctx.options
|
|
@@ -7975,8 +7976,8 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
7975
7976
|
};
|
|
7976
7977
|
}
|
|
7977
7978
|
});
|
|
7978
|
-
const _hoisted_1$
|
|
7979
|
-
const _sfc_main$
|
|
7979
|
+
const _hoisted_1$w = ["innerHTML"];
|
|
7980
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
7980
7981
|
__name: "CustomBadge",
|
|
7981
7982
|
props: {
|
|
7982
7983
|
badge: {}
|
|
@@ -7995,12 +7996,12 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
7995
7996
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
7996
7997
|
class: vue.normalizeClass(className.value),
|
|
7997
7998
|
innerHTML: text.value
|
|
7998
|
-
}, null, 10, _hoisted_1$
|
|
7999
|
+
}, null, 10, _hoisted_1$w);
|
|
7999
8000
|
};
|
|
8000
8001
|
}
|
|
8001
8002
|
});
|
|
8002
|
-
const _hoisted_1$
|
|
8003
|
-
const _sfc_main$
|
|
8003
|
+
const _hoisted_1$v = { class: "lupa-text-badges" };
|
|
8004
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
8004
8005
|
__name: "TextBadge",
|
|
8005
8006
|
props: {
|
|
8006
8007
|
badge: {}
|
|
@@ -8015,7 +8016,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
8015
8016
|
return badges.value.slice(0, props.badge.maxItems);
|
|
8016
8017
|
});
|
|
8017
8018
|
return (_ctx, _cache) => {
|
|
8018
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8019
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
|
|
8019
8020
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
8020
8021
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
8021
8022
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -8026,9 +8027,9 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
8026
8027
|
};
|
|
8027
8028
|
}
|
|
8028
8029
|
});
|
|
8029
|
-
const _hoisted_1$
|
|
8030
|
-
const _hoisted_2$
|
|
8031
|
-
const _sfc_main$
|
|
8030
|
+
const _hoisted_1$u = { class: "lupa-image-badges" };
|
|
8031
|
+
const _hoisted_2$m = ["src"];
|
|
8032
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
8032
8033
|
__name: "ImageBadge",
|
|
8033
8034
|
props: {
|
|
8034
8035
|
badge: {}
|
|
@@ -8048,7 +8049,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
8048
8049
|
return `${props.badge.rootImageUrl}${src}`;
|
|
8049
8050
|
};
|
|
8050
8051
|
return (_ctx, _cache) => {
|
|
8051
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8052
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
|
|
8052
8053
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
8053
8054
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
8054
8055
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -8056,22 +8057,22 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
8056
8057
|
}, [
|
|
8057
8058
|
vue.createElementVNode("img", {
|
|
8058
8059
|
src: getImageUrl(item)
|
|
8059
|
-
}, null, 8, _hoisted_2$
|
|
8060
|
+
}, null, 8, _hoisted_2$m)
|
|
8060
8061
|
]);
|
|
8061
8062
|
}), 128))
|
|
8062
8063
|
]);
|
|
8063
8064
|
};
|
|
8064
8065
|
}
|
|
8065
8066
|
});
|
|
8066
|
-
const _hoisted_1$
|
|
8067
|
+
const _hoisted_1$t = { id: "lupa-search-results-badges" };
|
|
8067
8068
|
const __default__$1 = {
|
|
8068
8069
|
components: {
|
|
8069
|
-
CustomBadge: _sfc_main$
|
|
8070
|
-
TextBadge: _sfc_main$
|
|
8071
|
-
ImageBadge: _sfc_main$
|
|
8070
|
+
CustomBadge: _sfc_main$z,
|
|
8071
|
+
TextBadge: _sfc_main$y,
|
|
8072
|
+
ImageBadge: _sfc_main$x
|
|
8072
8073
|
}
|
|
8073
8074
|
};
|
|
8074
|
-
const _sfc_main$
|
|
8075
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
8075
8076
|
__name: "SearchResultsBadgeWrapper",
|
|
8076
8077
|
props: {
|
|
8077
8078
|
position: {},
|
|
@@ -8117,7 +8118,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
8117
8118
|
}
|
|
8118
8119
|
};
|
|
8119
8120
|
return (_ctx, _cache) => {
|
|
8120
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8121
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
|
|
8121
8122
|
vue.createElementVNode("div", {
|
|
8122
8123
|
id: "lupa-badges",
|
|
8123
8124
|
class: vue.normalizeClass(anchorPosition.value)
|
|
@@ -8128,7 +8129,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
8128
8129
|
badge
|
|
8129
8130
|
}, null, 8, ["badge"]);
|
|
8130
8131
|
}), 128)),
|
|
8131
|
-
positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8132
|
+
positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
8132
8133
|
key: 0,
|
|
8133
8134
|
options: _ctx.options
|
|
8134
8135
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true)
|
|
@@ -8137,7 +8138,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
8137
8138
|
};
|
|
8138
8139
|
}
|
|
8139
8140
|
}));
|
|
8140
|
-
const _sfc_main$
|
|
8141
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
8141
8142
|
__name: "SearchResultsProductImage",
|
|
8142
8143
|
props: {
|
|
8143
8144
|
item: {},
|
|
@@ -8145,7 +8146,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
8145
8146
|
},
|
|
8146
8147
|
setup(__props) {
|
|
8147
8148
|
return (_ctx, _cache) => {
|
|
8148
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8149
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$1c, {
|
|
8149
8150
|
item: _ctx.item,
|
|
8150
8151
|
options: _ctx.options,
|
|
8151
8152
|
"wrapper-class": "lupa-search-results-image-wrapper",
|
|
@@ -8154,14 +8155,14 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
8154
8155
|
};
|
|
8155
8156
|
}
|
|
8156
8157
|
});
|
|
8157
|
-
const _hoisted_1$
|
|
8158
|
-
const _hoisted_2$
|
|
8159
|
-
const _hoisted_3$
|
|
8158
|
+
const _hoisted_1$s = ["innerHTML"];
|
|
8159
|
+
const _hoisted_2$l = ["title"];
|
|
8160
|
+
const _hoisted_3$f = {
|
|
8160
8161
|
key: 0,
|
|
8161
8162
|
class: "lupa-search-results-product-title-text"
|
|
8162
8163
|
};
|
|
8163
8164
|
const _hoisted_4$9 = ["href"];
|
|
8164
|
-
const _sfc_main$
|
|
8165
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
8165
8166
|
__name: "SearchResultsProductTitle",
|
|
8166
8167
|
props: {
|
|
8167
8168
|
item: {},
|
|
@@ -8194,25 +8195,25 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
8194
8195
|
class: "lupa-search-results-product-title",
|
|
8195
8196
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
8196
8197
|
innerHTML: title.value
|
|
8197
|
-
}, null, 12, _hoisted_1$
|
|
8198
|
+
}, null, 12, _hoisted_1$s)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
8198
8199
|
key: 1,
|
|
8199
8200
|
class: "lupa-search-results-product-title",
|
|
8200
8201
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
8201
8202
|
title: title.value
|
|
8202
8203
|
}, [
|
|
8203
|
-
!_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
8204
|
+
!_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$f, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
|
|
8204
8205
|
_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
8205
8206
|
key: 1,
|
|
8206
8207
|
href: _ctx.link,
|
|
8207
8208
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
8208
8209
|
onClick: handleNavigation
|
|
8209
8210
|
}, vue.toDisplayString(title.value), 9, _hoisted_4$9)) : vue.createCommentVNode("", true)
|
|
8210
|
-
], 12, _hoisted_2$
|
|
8211
|
+
], 12, _hoisted_2$l));
|
|
8211
8212
|
};
|
|
8212
8213
|
}
|
|
8213
8214
|
});
|
|
8214
|
-
const _hoisted_1$
|
|
8215
|
-
const _sfc_main$
|
|
8215
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
8216
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
8216
8217
|
__name: "SearchResultsProductDescription",
|
|
8217
8218
|
props: {
|
|
8218
8219
|
item: {},
|
|
@@ -8236,7 +8237,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
8236
8237
|
class: "lupa-search-results-product-description",
|
|
8237
8238
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
8238
8239
|
innerHTML: description.value
|
|
8239
|
-
}, null, 12, _hoisted_1$
|
|
8240
|
+
}, null, 12, _hoisted_1$r)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
8240
8241
|
key: 1,
|
|
8241
8242
|
class: "lupa-search-results-product-description",
|
|
8242
8243
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -8244,15 +8245,15 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
8244
8245
|
};
|
|
8245
8246
|
}
|
|
8246
8247
|
});
|
|
8247
|
-
const _hoisted_1$
|
|
8248
|
-
const _hoisted_2$
|
|
8249
|
-
const _hoisted_3$
|
|
8248
|
+
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
8249
|
+
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
8250
|
+
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
8250
8251
|
const _hoisted_4$8 = ["innerHTML"];
|
|
8251
8252
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
8252
|
-
const _hoisted_6$
|
|
8253
|
+
const _hoisted_6$4 = ["innerHTML"];
|
|
8253
8254
|
const _hoisted_7$2 = ["href"];
|
|
8254
8255
|
const STAR_COUNT = 5;
|
|
8255
|
-
const _sfc_main$
|
|
8256
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
8256
8257
|
__name: "SearchResultsProductRating",
|
|
8257
8258
|
props: {
|
|
8258
8259
|
item: {},
|
|
@@ -8283,9 +8284,9 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
8283
8284
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
8284
8285
|
});
|
|
8285
8286
|
return (_ctx, _cache) => {
|
|
8286
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8287
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
8288
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
8287
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
|
|
8288
|
+
vue.createElementVNode("div", _hoisted_2$k, [
|
|
8289
|
+
vue.createElementVNode("div", _hoisted_3$e, [
|
|
8289
8290
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
|
|
8290
8291
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
8291
8292
|
key: index,
|
|
@@ -8304,7 +8305,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
8304
8305
|
key: index,
|
|
8305
8306
|
innerHTML: star,
|
|
8306
8307
|
class: "lupa-rating lupa-rating-highlighted"
|
|
8307
|
-
}, null, 8, _hoisted_6$
|
|
8308
|
+
}, null, 8, _hoisted_6$4);
|
|
8308
8309
|
}), 128))
|
|
8309
8310
|
], 4)
|
|
8310
8311
|
])
|
|
@@ -8317,11 +8318,11 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
8317
8318
|
};
|
|
8318
8319
|
}
|
|
8319
8320
|
});
|
|
8320
|
-
const _hoisted_1$
|
|
8321
|
+
const _hoisted_1$p = {
|
|
8321
8322
|
class: "lupa-search-results-product-regular-price",
|
|
8322
8323
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
8323
8324
|
};
|
|
8324
|
-
const _sfc_main$
|
|
8325
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
8325
8326
|
__name: "SearchResultsProductRegularPrice",
|
|
8326
8327
|
props: {
|
|
8327
8328
|
item: {},
|
|
@@ -8339,15 +8340,15 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
8339
8340
|
);
|
|
8340
8341
|
});
|
|
8341
8342
|
return (_ctx, _cache) => {
|
|
8342
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8343
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, vue.toDisplayString(price.value), 1);
|
|
8343
8344
|
};
|
|
8344
8345
|
}
|
|
8345
8346
|
});
|
|
8346
|
-
const _hoisted_1$
|
|
8347
|
+
const _hoisted_1$o = {
|
|
8347
8348
|
class: "lupa-search-results-product-price",
|
|
8348
8349
|
"data-cy": "lupa-search-results-product-price"
|
|
8349
8350
|
};
|
|
8350
|
-
const _sfc_main$
|
|
8351
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
8351
8352
|
__name: "SearchResultsProductPrice",
|
|
8352
8353
|
props: {
|
|
8353
8354
|
item: {},
|
|
@@ -8365,16 +8366,16 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
8365
8366
|
);
|
|
8366
8367
|
});
|
|
8367
8368
|
return (_ctx, _cache) => {
|
|
8368
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8369
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
|
|
8369
8370
|
vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
|
|
8370
8371
|
]);
|
|
8371
8372
|
};
|
|
8372
8373
|
}
|
|
8373
8374
|
});
|
|
8374
|
-
const _hoisted_1$
|
|
8375
|
-
const _hoisted_2$
|
|
8376
|
-
const _hoisted_3$
|
|
8377
|
-
const _sfc_main$
|
|
8375
|
+
const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
8376
|
+
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
8377
|
+
const _hoisted_3$d = ["onClick", "disabled"];
|
|
8378
|
+
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
8378
8379
|
__name: "SearchResultsProductAddToCart",
|
|
8379
8380
|
props: {
|
|
8380
8381
|
item: {},
|
|
@@ -8401,25 +8402,25 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
8401
8402
|
loading.value = false;
|
|
8402
8403
|
});
|
|
8403
8404
|
return (_ctx, _cache) => {
|
|
8404
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8405
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
8405
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
8406
|
+
vue.createElementVNode("div", _hoisted_2$j, [
|
|
8406
8407
|
vue.createElementVNode("button", {
|
|
8407
8408
|
onClick: vue.withModifiers(handleClick, ["stop"]),
|
|
8408
8409
|
class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
8409
8410
|
"data-cy": "lupa-add-to-cart",
|
|
8410
8411
|
disabled: !inStockValue.value || loading.value
|
|
8411
|
-
}, vue.toDisplayString(label.value), 11, _hoisted_3$
|
|
8412
|
+
}, vue.toDisplayString(label.value), 11, _hoisted_3$d)
|
|
8412
8413
|
])
|
|
8413
8414
|
]);
|
|
8414
8415
|
};
|
|
8415
8416
|
}
|
|
8416
8417
|
});
|
|
8417
|
-
const _hoisted_1$
|
|
8418
|
-
const _hoisted_2$
|
|
8419
|
-
const _hoisted_3$
|
|
8418
|
+
const _hoisted_1$m = ["innerHTML"];
|
|
8419
|
+
const _hoisted_2$i = { key: 0 };
|
|
8420
|
+
const _hoisted_3$c = { key: 1 };
|
|
8420
8421
|
const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
|
|
8421
8422
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
8422
|
-
const _sfc_main$
|
|
8423
|
+
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
8423
8424
|
__name: "SearchResultsProductCustom",
|
|
8424
8425
|
props: {
|
|
8425
8426
|
item: {},
|
|
@@ -8457,11 +8458,11 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8457
8458
|
key: 0,
|
|
8458
8459
|
class: className.value,
|
|
8459
8460
|
innerHTML: text.value
|
|
8460
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8461
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
8461
8462
|
key: 1,
|
|
8462
8463
|
class: className.value
|
|
8463
8464
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8464
|
-
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
8465
|
+
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
|
|
8465
8466
|
vue.createElementVNode("div", _hoisted_4$7, vue.toDisplayString(label.value), 1),
|
|
8466
8467
|
vue.createElementVNode("div", _hoisted_5$5, vue.toDisplayString(text.value), 1)
|
|
8467
8468
|
]))
|
|
@@ -8469,8 +8470,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8469
8470
|
};
|
|
8470
8471
|
}
|
|
8471
8472
|
});
|
|
8472
|
-
const _hoisted_1$
|
|
8473
|
-
const _sfc_main$
|
|
8473
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
8474
|
+
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
8474
8475
|
__name: "SearchResultsProductCustomHtmlElement",
|
|
8475
8476
|
props: {
|
|
8476
8477
|
item: {},
|
|
@@ -8494,15 +8495,15 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
8494
8495
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
8495
8496
|
class: className.value,
|
|
8496
8497
|
innerHTML: text.value
|
|
8497
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
8498
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
|
|
8498
8499
|
};
|
|
8499
8500
|
}
|
|
8500
8501
|
});
|
|
8501
|
-
const _hoisted_1$
|
|
8502
|
-
const _hoisted_2$
|
|
8503
|
-
const _hoisted_3$
|
|
8502
|
+
const _hoisted_1$k = { id: "lupa-search-results-rating" };
|
|
8503
|
+
const _hoisted_2$h = ["innerHTML"];
|
|
8504
|
+
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
8504
8505
|
const _hoisted_4$6 = ["href"];
|
|
8505
|
-
const _sfc_main$
|
|
8506
|
+
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
8506
8507
|
__name: "SearchResultsProductSingleStarRating",
|
|
8507
8508
|
props: {
|
|
8508
8509
|
item: {},
|
|
@@ -8530,12 +8531,12 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
8530
8531
|
return RATING_STAR_HTML;
|
|
8531
8532
|
});
|
|
8532
8533
|
return (_ctx, _cache) => {
|
|
8533
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8534
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
|
|
8534
8535
|
vue.createElementVNode("div", {
|
|
8535
8536
|
innerHTML: star.value,
|
|
8536
8537
|
class: "lupa-rating lupa-rating-highlighted"
|
|
8537
|
-
}, null, 8, _hoisted_2$
|
|
8538
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
8538
|
+
}, null, 8, _hoisted_2$h),
|
|
8539
|
+
vue.createElementVNode("div", _hoisted_3$b, vue.toDisplayString(rating.value), 1),
|
|
8539
8540
|
vue.createElementVNode("a", {
|
|
8540
8541
|
href: ratingLink.value,
|
|
8541
8542
|
class: "lupa-total-ratings"
|
|
@@ -8546,19 +8547,19 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
8546
8547
|
});
|
|
8547
8548
|
const __default__ = {
|
|
8548
8549
|
components: {
|
|
8549
|
-
SearchResultsProductImage: _sfc_main$
|
|
8550
|
-
SearchResultsProductTitle: _sfc_main$
|
|
8551
|
-
SearchResultsProductDescription: _sfc_main$
|
|
8552
|
-
SearchResultsProductRating: _sfc_main$
|
|
8553
|
-
SearchResultsProductRegularPrice: _sfc_main$
|
|
8554
|
-
SearchResultsProductPrice: _sfc_main$
|
|
8555
|
-
SearchResultsProductAddToCart: _sfc_main$
|
|
8556
|
-
SearchResultsProductCustom: _sfc_main$
|
|
8557
|
-
SearchResultsProductCustomHtmlElement: _sfc_main$
|
|
8558
|
-
SearchResultsProductSingleStarRating: _sfc_main$
|
|
8550
|
+
SearchResultsProductImage: _sfc_main$v,
|
|
8551
|
+
SearchResultsProductTitle: _sfc_main$u,
|
|
8552
|
+
SearchResultsProductDescription: _sfc_main$t,
|
|
8553
|
+
SearchResultsProductRating: _sfc_main$s,
|
|
8554
|
+
SearchResultsProductRegularPrice: _sfc_main$r,
|
|
8555
|
+
SearchResultsProductPrice: _sfc_main$q,
|
|
8556
|
+
SearchResultsProductAddToCart: _sfc_main$p,
|
|
8557
|
+
SearchResultsProductCustom: _sfc_main$o,
|
|
8558
|
+
SearchResultsProductCustomHtmlElement: _sfc_main$n,
|
|
8559
|
+
SearchResultsProductSingleStarRating: _sfc_main$m
|
|
8559
8560
|
}
|
|
8560
8561
|
};
|
|
8561
|
-
const _sfc_main$
|
|
8562
|
+
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
8562
8563
|
__name: "SearchResultsProductCardElement",
|
|
8563
8564
|
props: {
|
|
8564
8565
|
item: {},
|
|
@@ -8628,13 +8629,13 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
8628
8629
|
};
|
|
8629
8630
|
}
|
|
8630
8631
|
}));
|
|
8631
|
-
const _hoisted_1$
|
|
8632
|
-
const _hoisted_2$
|
|
8632
|
+
const _hoisted_1$j = ["href"];
|
|
8633
|
+
const _hoisted_2$g = {
|
|
8633
8634
|
key: 0,
|
|
8634
8635
|
class: "lupa-out-of-stock"
|
|
8635
8636
|
};
|
|
8636
|
-
const _hoisted_3$
|
|
8637
|
-
const _sfc_main$
|
|
8637
|
+
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
8638
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
8638
8639
|
__name: "SearchResultsProductCard",
|
|
8639
8640
|
props: {
|
|
8640
8641
|
product: {},
|
|
@@ -8779,7 +8780,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
8779
8780
|
class: vue.normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
|
|
8780
8781
|
onClick: handleClick
|
|
8781
8782
|
}, [
|
|
8782
|
-
vue.createVNode(_sfc_main$
|
|
8783
|
+
vue.createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
8783
8784
|
vue.createElementVNode("div", {
|
|
8784
8785
|
class: vue.normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
8785
8786
|
}, [
|
|
@@ -8789,7 +8790,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
8789
8790
|
onClick: handleNavigation
|
|
8790
8791
|
}, [
|
|
8791
8792
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
|
|
8792
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8793
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$l, {
|
|
8793
8794
|
class: "lupa-search-results-product-element",
|
|
8794
8795
|
item: _ctx.product,
|
|
8795
8796
|
element,
|
|
@@ -8799,16 +8800,16 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
8799
8800
|
link: link.value
|
|
8800
8801
|
}, null, 8, ["item", "element", "labels", "inStock", "link"]);
|
|
8801
8802
|
}), 128)),
|
|
8802
|
-
vue.createVNode(_sfc_main$
|
|
8803
|
+
vue.createVNode(_sfc_main$w, {
|
|
8803
8804
|
options: badgesOptions.value,
|
|
8804
8805
|
position: "image",
|
|
8805
8806
|
class: "lupa-image-badges"
|
|
8806
8807
|
}, null, 8, ["options"]),
|
|
8807
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
8808
|
-
], 8, _hoisted_1$
|
|
8809
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
8808
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
|
|
8809
|
+
], 8, _hoisted_1$j),
|
|
8810
|
+
vue.createElementVNode("div", _hoisted_3$a, [
|
|
8810
8811
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
|
|
8811
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8812
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$l, {
|
|
8812
8813
|
class: "lupa-search-results-product-element",
|
|
8813
8814
|
item: _ctx.product,
|
|
8814
8815
|
element,
|
|
@@ -8826,7 +8827,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
8826
8827
|
class: vue.normalizeClass("lupa-element-group-" + group)
|
|
8827
8828
|
}, [
|
|
8828
8829
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getGroupElements(group), (element) => {
|
|
8829
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8830
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$l, {
|
|
8830
8831
|
class: "lupa-search-results-product-element",
|
|
8831
8832
|
item: _ctx.product,
|
|
8832
8833
|
element,
|
|
@@ -8844,23 +8845,23 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
8844
8845
|
};
|
|
8845
8846
|
}
|
|
8846
8847
|
});
|
|
8847
|
-
const _hoisted_1$
|
|
8848
|
+
const _hoisted_1$i = {
|
|
8848
8849
|
id: "lupa-search-results-similar-queries",
|
|
8849
8850
|
"data-cy": "lupa-search-results-similar-queries"
|
|
8850
8851
|
};
|
|
8851
|
-
const _hoisted_2$
|
|
8852
|
-
const _hoisted_3$
|
|
8852
|
+
const _hoisted_2$f = { class: "lupa-similar-queries-label" };
|
|
8853
|
+
const _hoisted_3$9 = {
|
|
8853
8854
|
class: "lupa-similar-query-label",
|
|
8854
8855
|
"data-cy": "lupa-similar-query-label"
|
|
8855
8856
|
};
|
|
8856
8857
|
const _hoisted_4$5 = ["onClick"];
|
|
8857
8858
|
const _hoisted_5$4 = ["innerHTML"];
|
|
8858
|
-
const _hoisted_6$
|
|
8859
|
+
const _hoisted_6$3 = { key: 0 };
|
|
8859
8860
|
const _hoisted_7$1 = {
|
|
8860
8861
|
class: "lupa-products",
|
|
8861
8862
|
"data-cy": "lupa-products"
|
|
8862
8863
|
};
|
|
8863
|
-
const _sfc_main$
|
|
8864
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
8864
8865
|
__name: "SearchResultsSimilarQueries",
|
|
8865
8866
|
props: {
|
|
8866
8867
|
labels: {},
|
|
@@ -8890,11 +8891,11 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
8890
8891
|
paramsStore.goToResults({ searchText, facet });
|
|
8891
8892
|
};
|
|
8892
8893
|
return (_ctx, _cache) => {
|
|
8893
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8894
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
8894
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
|
|
8895
|
+
vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString(_ctx.labels.similarQueries), 1),
|
|
8895
8896
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQueries.value, (similarQuery, index) => {
|
|
8896
8897
|
return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
|
|
8897
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
8898
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
8898
8899
|
vue.createElementVNode("span", null, vue.toDisplayString(similarQueryLabel.value), 1),
|
|
8899
8900
|
vue.createElementVNode("span", {
|
|
8900
8901
|
id: "lupa-similar-query-text-component",
|
|
@@ -8905,12 +8906,12 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
8905
8906
|
vue.createElementVNode("span", {
|
|
8906
8907
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
8907
8908
|
}, null, 8, _hoisted_5$4),
|
|
8908
|
-
similarQuery.count ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$
|
|
8909
|
+
similarQuery.count ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$3, " (" + vue.toDisplayString(similarQuery.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
8909
8910
|
], 8, _hoisted_4$5)
|
|
8910
8911
|
]),
|
|
8911
8912
|
vue.createElementVNode("div", _hoisted_7$1, [
|
|
8912
8913
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQuery.items, (product, index2) => {
|
|
8913
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8914
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
8914
8915
|
style: vue.normalizeStyle(_ctx.columnSize),
|
|
8915
8916
|
key: getDocumentKey(index2, product),
|
|
8916
8917
|
product,
|
|
@@ -8924,15 +8925,15 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
8924
8925
|
};
|
|
8925
8926
|
}
|
|
8926
8927
|
});
|
|
8927
|
-
const _hoisted_1$
|
|
8928
|
+
const _hoisted_1$h = {
|
|
8928
8929
|
key: 0,
|
|
8929
8930
|
class: "lupa-results-additional-panel"
|
|
8930
8931
|
};
|
|
8931
|
-
const _hoisted_2$
|
|
8932
|
+
const _hoisted_2$e = {
|
|
8932
8933
|
class: "lupa-results-additional-panel-items",
|
|
8933
8934
|
"data-cy": "lupa-results-additional-panel-items"
|
|
8934
8935
|
};
|
|
8935
|
-
const _sfc_main$
|
|
8936
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
8936
8937
|
__name: "AdditionalPanel",
|
|
8937
8938
|
props: {
|
|
8938
8939
|
panel: {},
|
|
@@ -9004,10 +9005,10 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
9004
9005
|
handleQueryChange();
|
|
9005
9006
|
});
|
|
9006
9007
|
return (_ctx, _cache) => {
|
|
9007
|
-
return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9008
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
9008
|
+
return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
|
|
9009
|
+
vue.createElementVNode("div", _hoisted_2$e, [
|
|
9009
9010
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleItems.value, (item, index) => {
|
|
9010
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9011
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
9011
9012
|
key: index,
|
|
9012
9013
|
product: item,
|
|
9013
9014
|
options: _ctx.panel,
|
|
@@ -9025,11 +9026,11 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
9025
9026
|
};
|
|
9026
9027
|
}
|
|
9027
9028
|
});
|
|
9028
|
-
const _hoisted_1$
|
|
9029
|
+
const _hoisted_1$g = {
|
|
9029
9030
|
key: 0,
|
|
9030
9031
|
class: "lupa-results-additional-panels"
|
|
9031
9032
|
};
|
|
9032
|
-
const _sfc_main$
|
|
9033
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
9033
9034
|
__name: "AdditionalPanels",
|
|
9034
9035
|
props: {
|
|
9035
9036
|
options: {},
|
|
@@ -9046,9 +9047,9 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
9046
9047
|
return locationPanels.value.length > 0;
|
|
9047
9048
|
});
|
|
9048
9049
|
return (_ctx, _cache) => {
|
|
9049
|
-
return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9050
|
+
return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
|
|
9050
9051
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(locationPanels.value, (panel) => {
|
|
9051
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9052
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$i, {
|
|
9052
9053
|
key: panel.queryKey,
|
|
9053
9054
|
panel,
|
|
9054
9055
|
options: _ctx.sdkOptions
|
|
@@ -9065,19 +9066,60 @@ const _export_sfc = (sfc, props) => {
|
|
|
9065
9066
|
}
|
|
9066
9067
|
return target;
|
|
9067
9068
|
};
|
|
9068
|
-
const _sfc_main$
|
|
9069
|
-
const _hoisted_1$
|
|
9070
|
-
const _hoisted_2$
|
|
9069
|
+
const _sfc_main$g = {};
|
|
9070
|
+
const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
|
|
9071
|
+
const _hoisted_2$d = { class: "lupa-spinner" };
|
|
9071
9072
|
function _sfc_render(_ctx, _cache) {
|
|
9072
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9073
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
9073
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
|
|
9074
|
+
vue.createElementVNode("div", _hoisted_2$d, [
|
|
9074
9075
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(12, (x) => {
|
|
9075
9076
|
return vue.createElementVNode("div", { key: x });
|
|
9076
9077
|
}), 64))
|
|
9077
9078
|
])
|
|
9078
9079
|
]);
|
|
9079
9080
|
}
|
|
9080
|
-
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9081
|
+
const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
|
|
9082
|
+
const _hoisted_1$e = {
|
|
9083
|
+
id: "lupa-search-results-similar-results",
|
|
9084
|
+
"data-cy": "lupa-search-results-similar-results"
|
|
9085
|
+
};
|
|
9086
|
+
const _hoisted_2$c = { class: "lupa-similar-results-label" };
|
|
9087
|
+
const _hoisted_3$8 = {
|
|
9088
|
+
class: "lupa-products",
|
|
9089
|
+
"data-cy": "lupa-products"
|
|
9090
|
+
};
|
|
9091
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
9092
|
+
__name: "SearchResultsSimilarResults",
|
|
9093
|
+
props: {
|
|
9094
|
+
columnSize: {},
|
|
9095
|
+
labels: {},
|
|
9096
|
+
productCardOptions: {}
|
|
9097
|
+
},
|
|
9098
|
+
setup(__props) {
|
|
9099
|
+
const props = __props;
|
|
9100
|
+
const searchResultStore = useSearchResultStore();
|
|
9101
|
+
const { searchResult } = storeToRefs(searchResultStore);
|
|
9102
|
+
const similarResults = vue.computed(() => searchResult.value.similarResults);
|
|
9103
|
+
const getDocumentKey = (index, product) => {
|
|
9104
|
+
return getProductKey(`${index}`, product, props.productCardOptions.idKey);
|
|
9105
|
+
};
|
|
9106
|
+
return (_ctx, _cache) => {
|
|
9107
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
|
|
9108
|
+
vue.createElementVNode("div", _hoisted_2$c, vue.toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
9109
|
+
vue.createElementVNode("div", _hoisted_3$8, [
|
|
9110
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarResults.value.items, (product, index) => {
|
|
9111
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
9112
|
+
style: vue.normalizeStyle(_ctx.columnSize),
|
|
9113
|
+
key: getDocumentKey(index, product),
|
|
9114
|
+
product,
|
|
9115
|
+
options: _ctx.productCardOptions
|
|
9116
|
+
}, null, 8, ["style", "product", "options"]);
|
|
9117
|
+
}), 128))
|
|
9118
|
+
])
|
|
9119
|
+
]);
|
|
9120
|
+
};
|
|
9121
|
+
}
|
|
9122
|
+
});
|
|
9081
9123
|
const _hoisted_1$d = { id: "lupa-search-results-products" };
|
|
9082
9124
|
const _hoisted_2$b = {
|
|
9083
9125
|
class: "lupa-products",
|
|
@@ -9094,6 +9136,7 @@ const _hoisted_4$4 = {
|
|
|
9094
9136
|
"data-cy": "lupa-no-results"
|
|
9095
9137
|
};
|
|
9096
9138
|
const _hoisted_5$3 = { key: 4 };
|
|
9139
|
+
const _hoisted_6$2 = { key: 5 };
|
|
9097
9140
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
9098
9141
|
__name: "SearchResultsProducts",
|
|
9099
9142
|
props: {
|
|
@@ -9131,6 +9174,9 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9131
9174
|
const similarQueriesLabels = vue.computed(() => {
|
|
9132
9175
|
return props.options.labels;
|
|
9133
9176
|
});
|
|
9177
|
+
const similarResultsLabels = vue.computed(() => {
|
|
9178
|
+
return props.options.labels;
|
|
9179
|
+
});
|
|
9134
9180
|
const showTopFilters = vue.computed(() => {
|
|
9135
9181
|
var _a, _b, _c;
|
|
9136
9182
|
return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.style) == null ? void 0 : _c.type) === "top-dropdown";
|
|
@@ -9173,7 +9219,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9173
9219
|
});
|
|
9174
9220
|
const hasSimilarQueries = vue.computed(() => {
|
|
9175
9221
|
var _a;
|
|
9176
|
-
return (_a = searchResult.value.similarQueries) == null ? void 0 : _a.length;
|
|
9222
|
+
return Boolean((_a = searchResult.value.similarQueries) == null ? void 0 : _a.length);
|
|
9223
|
+
});
|
|
9224
|
+
const hasSimilarResults = vue.computed(() => {
|
|
9225
|
+
var _a, _b;
|
|
9226
|
+
return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
|
|
9177
9227
|
});
|
|
9178
9228
|
const getProductKeyAction = (index, product) => {
|
|
9179
9229
|
return getProductKey(`${index}`, product, props.options.idKey);
|
|
@@ -9191,17 +9241,17 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9191
9241
|
class: "lupa-loader"
|
|
9192
9242
|
})) : vue.createCommentVNode("", true),
|
|
9193
9243
|
vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
9194
|
-
showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9244
|
+
showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
9195
9245
|
key: 0,
|
|
9196
9246
|
options: (_a = _ctx.options.filters) != null ? _a : {}
|
|
9197
9247
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
9198
|
-
showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9248
|
+
showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$C, {
|
|
9199
9249
|
key: 1,
|
|
9200
9250
|
class: "lupa-toolbar-mobile",
|
|
9201
9251
|
options: _ctx.options,
|
|
9202
9252
|
"pagination-location": "top"
|
|
9203
9253
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
9204
|
-
currentFilterOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9254
|
+
currentFilterOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$V, {
|
|
9205
9255
|
key: 2,
|
|
9206
9256
|
class: vue.normalizeClass(currentFiltersClass.value),
|
|
9207
9257
|
"data-cy": "lupa-search-result-filters-mobile-toolbar",
|
|
@@ -9209,13 +9259,13 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9209
9259
|
expandable: !desktopFiltersExpanded.value
|
|
9210
9260
|
}, null, 8, ["class", "options", "expandable"])) : vue.createCommentVNode("", true)
|
|
9211
9261
|
], 64)) : vue.createCommentVNode("", true),
|
|
9212
|
-
vue.createVNode(_sfc_main$
|
|
9262
|
+
vue.createVNode(_sfc_main$h, {
|
|
9213
9263
|
options: _ctx.options,
|
|
9214
9264
|
location: "top",
|
|
9215
9265
|
sdkOptions: _ctx.options.options
|
|
9216
9266
|
}, null, 8, ["options", "sdkOptions"]),
|
|
9217
9267
|
vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
9218
|
-
vue.createVNode(_sfc_main$
|
|
9268
|
+
vue.createVNode(_sfc_main$C, {
|
|
9219
9269
|
class: "lupa-toolbar-top",
|
|
9220
9270
|
options: _ctx.options,
|
|
9221
9271
|
"pagination-location": "top"
|
|
@@ -9229,7 +9279,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9229
9279
|
options: productCardOptions.value
|
|
9230
9280
|
});
|
|
9231
9281
|
}), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(searchResult).items, (product, index) => {
|
|
9232
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9282
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
9233
9283
|
style: vue.normalizeStyle(columnSize.value),
|
|
9234
9284
|
key: getProductKeyAction(index, product),
|
|
9235
9285
|
product,
|
|
@@ -9245,12 +9295,12 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9245
9295
|
onClick: goToFirstPage
|
|
9246
9296
|
}, vue.toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : vue.createCommentVNode("", true)
|
|
9247
9297
|
])) : vue.createCommentVNode("", true),
|
|
9248
|
-
vue.createVNode(_sfc_main$
|
|
9298
|
+
vue.createVNode(_sfc_main$C, {
|
|
9249
9299
|
class: "lupa-toolbar-bottom",
|
|
9250
9300
|
options: _ctx.options,
|
|
9251
9301
|
"pagination-location": "bottom"
|
|
9252
9302
|
}, null, 8, ["options"]),
|
|
9253
|
-
vue.createVNode(_sfc_main$
|
|
9303
|
+
vue.createVNode(_sfc_main$h, {
|
|
9254
9304
|
options: _ctx.options,
|
|
9255
9305
|
location: "bottom",
|
|
9256
9306
|
sdkOptions: _ctx.options.options
|
|
@@ -9260,12 +9310,19 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9260
9310
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(currentQueryText)), 1)
|
|
9261
9311
|
])) : vue.createCommentVNode("", true),
|
|
9262
9312
|
hasSimilarQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$3, [
|
|
9263
|
-
vue.createVNode(_sfc_main$
|
|
9313
|
+
vue.createVNode(_sfc_main$j, {
|
|
9264
9314
|
labels: similarQueriesLabels.value,
|
|
9265
9315
|
columnSize: columnSize.value,
|
|
9266
9316
|
productCardOptions: productCardOptions.value
|
|
9267
9317
|
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
9268
9318
|
])) : vue.createCommentVNode("", true),
|
|
9319
|
+
hasSimilarResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$2, [
|
|
9320
|
+
vue.createVNode(_sfc_main$f, {
|
|
9321
|
+
labels: similarResultsLabels.value,
|
|
9322
|
+
columnSize: columnSize.value,
|
|
9323
|
+
productCardOptions: productCardOptions.value
|
|
9324
|
+
}, null, 8, ["labels", "columnSize", "productCardOptions"])
|
|
9325
|
+
])) : vue.createCommentVNode("", true),
|
|
9269
9326
|
vue.renderSlot(_ctx.$slots, "append")
|
|
9270
9327
|
]);
|
|
9271
9328
|
};
|
|
@@ -9317,7 +9374,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9317
9374
|
onClick: handleNavigationBack
|
|
9318
9375
|
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
9319
9376
|
])) : vue.createCommentVNode("", true),
|
|
9320
|
-
vue.createVNode(_sfc_main$
|
|
9377
|
+
vue.createVNode(_sfc_main$C, {
|
|
9321
9378
|
class: "lupa-toolbar-mobile",
|
|
9322
9379
|
"pagination-location": "top",
|
|
9323
9380
|
options: _ctx.options
|
|
@@ -9535,8 +9592,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
9535
9592
|
class: vue.normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !vue.unref(hasResults) }])
|
|
9536
9593
|
}, [
|
|
9537
9594
|
_ctx.isContainer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
9538
|
-
vue.createVNode(_sfc_main$
|
|
9539
|
-
vue.createVNode(_sfc_main$
|
|
9595
|
+
vue.createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
9596
|
+
vue.createVNode(_sfc_main$X, {
|
|
9540
9597
|
"show-summary": true,
|
|
9541
9598
|
options: _ctx.options,
|
|
9542
9599
|
"is-product-list": (_a = _ctx.isProductList) != null ? _a : false
|
|
@@ -9546,24 +9603,24 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
9546
9603
|
key: 1,
|
|
9547
9604
|
options: _ctx.options
|
|
9548
9605
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
9549
|
-
_ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9606
|
+
_ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
|
|
9550
9607
|
key: 2,
|
|
9551
9608
|
options: _ctx.options.filters
|
|
9552
9609
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
9553
|
-
vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9610
|
+
vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
|
|
9554
9611
|
key: 3,
|
|
9555
9612
|
breadcrumbs: _ctx.options.breadcrumbs
|
|
9556
9613
|
}, null, 8, ["breadcrumbs"])) : vue.createCommentVNode("", true),
|
|
9557
9614
|
isTitleResultTopPosition.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
|
|
9558
|
-
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9615
|
+
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
|
|
9559
9616
|
key: 0,
|
|
9560
9617
|
options: (_b = _ctx.options.filters) != null ? _b : {},
|
|
9561
9618
|
ref_key: "searchResultsFilters",
|
|
9562
9619
|
ref: searchResultsFilters
|
|
9563
9620
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
9564
9621
|
vue.createElementVNode("div", _hoisted_3$5, [
|
|
9565
|
-
vue.createVNode(_sfc_main$
|
|
9566
|
-
vue.createVNode(_sfc_main$
|
|
9622
|
+
vue.createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
9623
|
+
vue.createVNode(_sfc_main$X, {
|
|
9567
9624
|
options: _ctx.options,
|
|
9568
9625
|
"is-product-list": (_c = _ctx.isProductList) != null ? _c : false
|
|
9569
9626
|
}, null, 8, ["options", "is-product-list"]),
|
|
@@ -9578,13 +9635,13 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
9578
9635
|
}, 8, ["options", "ssr"])
|
|
9579
9636
|
])
|
|
9580
9637
|
])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
|
|
9581
|
-
vue.createVNode(_sfc_main$
|
|
9582
|
-
vue.createVNode(_sfc_main$
|
|
9638
|
+
vue.createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
9639
|
+
vue.createVNode(_sfc_main$X, {
|
|
9583
9640
|
options: _ctx.options,
|
|
9584
9641
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
9585
9642
|
}, null, 8, ["options", "is-product-list"]),
|
|
9586
9643
|
vue.createElementVNode("div", _hoisted_4$3, [
|
|
9587
|
-
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9644
|
+
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
|
|
9588
9645
|
key: 0,
|
|
9589
9646
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
9590
9647
|
ref_key: "searchResultsFilters",
|
|
@@ -15212,7 +15269,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15212
15269
|
onClick: vue.withModifiers(innerClick, ["stop"])
|
|
15213
15270
|
}, [
|
|
15214
15271
|
vue.createElementVNode("div", _hoisted_2$7, [
|
|
15215
|
-
vue.createVNode(_sfc_main$
|
|
15272
|
+
vue.createVNode(_sfc_main$_, {
|
|
15216
15273
|
options: fullSearchBoxOptions.value,
|
|
15217
15274
|
"is-search-container": true,
|
|
15218
15275
|
ref_key: "searchBox",
|
|
@@ -16034,7 +16091,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16034
16091
|
key: getProductKeyAction(index, product)
|
|
16035
16092
|
}, {
|
|
16036
16093
|
default: vue.withCtx(() => [
|
|
16037
|
-
vue.createVNode(_sfc_main$
|
|
16094
|
+
vue.createVNode(_sfc_main$k, {
|
|
16038
16095
|
product,
|
|
16039
16096
|
options: _ctx.options,
|
|
16040
16097
|
"click-tracking-settings": clickTrackingSettings.value
|
|
@@ -16298,7 +16355,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16298
16355
|
return (_ctx, _cache) => {
|
|
16299
16356
|
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$5, [
|
|
16300
16357
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.searchResults, (product, index) => {
|
|
16301
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
16358
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
16302
16359
|
class: "lupa-chat-product-card",
|
|
16303
16360
|
key: getProductKeyAction(index, product),
|
|
16304
16361
|
product,
|
|
@@ -16720,7 +16777,7 @@ exports.DocumentElementType = DocumentElementType;
|
|
|
16720
16777
|
exports.LupaSearch = LupaSearch;
|
|
16721
16778
|
exports.ProductList = _sfc_main$a;
|
|
16722
16779
|
exports.Recommendations = _sfc_main$8;
|
|
16723
|
-
exports.SearchBox = _sfc_main$
|
|
16780
|
+
exports.SearchBox = _sfc_main$_;
|
|
16724
16781
|
exports.SearchBoxPanelType = SearchBoxPanelType;
|
|
16725
16782
|
exports.SearchContainer = _sfc_main$9;
|
|
16726
16783
|
exports.SearchResults = _sfc_main$c;
|