@getlupa/vue 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaContainerStyle.css +1 -1
- package/dist/lupaSearch.js +123 -117
- package/dist/lupaSearch.mjs +123 -117
- package/dist/src/types/DocumentElement.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lupaSearch.mjs
CHANGED
|
@@ -3297,7 +3297,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
3297
3297
|
resetHighlightIndex
|
|
3298
3298
|
};
|
|
3299
3299
|
});
|
|
3300
|
-
const _hoisted_1$
|
|
3300
|
+
const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
|
|
3301
3301
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
3302
3302
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
3303
3303
|
const _hoisted_4$t = ["value"];
|
|
@@ -3394,7 +3394,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
3394
3394
|
};
|
|
3395
3395
|
__expose({ focus });
|
|
3396
3396
|
return (_ctx, _cache) => {
|
|
3397
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3397
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
3398
3398
|
createElementVNode("div", _hoisted_2$R, [
|
|
3399
3399
|
createElementVNode("div", {
|
|
3400
3400
|
class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
@@ -3472,7 +3472,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
3472
3472
|
};
|
|
3473
3473
|
}
|
|
3474
3474
|
});
|
|
3475
|
-
const _hoisted_1$
|
|
3475
|
+
const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
|
|
3476
3476
|
const _hoisted_2$Q = { class: "lupa-search-box-history-item-content" };
|
|
3477
3477
|
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
3478
3478
|
__name: "SearchBoxHistoryItem",
|
|
@@ -3490,7 +3490,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
3490
3490
|
emit("click", { query: props.item });
|
|
3491
3491
|
};
|
|
3492
3492
|
return (_ctx, _cache) => {
|
|
3493
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3493
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
3494
3494
|
createElementVNode("div", _hoisted_2$Q, [
|
|
3495
3495
|
createElementVNode("div", {
|
|
3496
3496
|
class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
@@ -3505,7 +3505,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
3505
3505
|
};
|
|
3506
3506
|
}
|
|
3507
3507
|
});
|
|
3508
|
-
const _hoisted_1$
|
|
3508
|
+
const _hoisted_1$1b = {
|
|
3509
3509
|
key: 0,
|
|
3510
3510
|
class: "lupa-search-box-history-panel"
|
|
3511
3511
|
};
|
|
@@ -3550,7 +3550,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
3550
3550
|
}
|
|
3551
3551
|
};
|
|
3552
3552
|
return (_ctx, _cache) => {
|
|
3553
|
-
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3553
|
+
return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
3554
3554
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
|
|
3555
3555
|
return openBlock(), createBlock(_sfc_main$1l, {
|
|
3556
3556
|
key: item,
|
|
@@ -3568,7 +3568,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
3568
3568
|
};
|
|
3569
3569
|
}
|
|
3570
3570
|
});
|
|
3571
|
-
const _hoisted_1$
|
|
3571
|
+
const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
|
|
3572
3572
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
3573
3573
|
__name: "SearchBoxNoResults",
|
|
3574
3574
|
props: {
|
|
@@ -3576,11 +3576,11 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
3576
3576
|
},
|
|
3577
3577
|
setup(__props) {
|
|
3578
3578
|
return (_ctx, _cache) => {
|
|
3579
|
-
return openBlock(), createElementBlock("p", _hoisted_1$
|
|
3579
|
+
return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
|
|
3580
3580
|
};
|
|
3581
3581
|
}
|
|
3582
3582
|
});
|
|
3583
|
-
const _hoisted_1$
|
|
3583
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
3584
3584
|
const _hoisted_2$P = {
|
|
3585
3585
|
key: 1,
|
|
3586
3586
|
"data-cy": "lupa-suggestion-value",
|
|
@@ -3635,7 +3635,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
3635
3635
|
class: "lupa-suggestion-value",
|
|
3636
3636
|
"data-cy": "lupa-suggestion-value",
|
|
3637
3637
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
3638
|
-
}, null, 8, _hoisted_1$
|
|
3638
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
3639
3639
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
3640
3640
|
createElementVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
3641
3641
|
createElementVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -3644,7 +3644,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
3644
3644
|
};
|
|
3645
3645
|
}
|
|
3646
3646
|
});
|
|
3647
|
-
const _hoisted_1$
|
|
3647
|
+
const _hoisted_1$18 = {
|
|
3648
3648
|
id: "lupa-search-box-suggestions",
|
|
3649
3649
|
"data-cy": "lupa-search-box-suggestions"
|
|
3650
3650
|
};
|
|
@@ -3708,7 +3708,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
3708
3708
|
});
|
|
3709
3709
|
});
|
|
3710
3710
|
return (_ctx, _cache) => {
|
|
3711
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3711
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
3712
3712
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
3713
3713
|
return openBlock(), createBlock(_sfc_main$1i, {
|
|
3714
3714
|
key: getSuggestionKey(item),
|
|
@@ -3883,7 +3883,7 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
3883
3883
|
targetImage.src = placeholder;
|
|
3884
3884
|
}
|
|
3885
3885
|
};
|
|
3886
|
-
const _hoisted_1$
|
|
3886
|
+
const _hoisted_1$17 = ["src"];
|
|
3887
3887
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
3888
3888
|
__name: "ProductImage",
|
|
3889
3889
|
props: {
|
|
@@ -4002,7 +4002,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
4002
4002
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
4003
4003
|
onError: replaceWithPlaceholder,
|
|
4004
4004
|
key: finalUrl.value
|
|
4005
|
-
}), null, 16, _hoisted_1$
|
|
4005
|
+
}), null, 16, _hoisted_1$17))
|
|
4006
4006
|
]),
|
|
4007
4007
|
_: 1
|
|
4008
4008
|
})
|
|
@@ -4027,7 +4027,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
4027
4027
|
};
|
|
4028
4028
|
}
|
|
4029
4029
|
});
|
|
4030
|
-
const _hoisted_1$
|
|
4030
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
4031
4031
|
const _hoisted_2$O = {
|
|
4032
4032
|
key: 1,
|
|
4033
4033
|
class: "lupa-search-box-product-title"
|
|
@@ -4052,13 +4052,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
4052
4052
|
key: 0,
|
|
4053
4053
|
class: "lupa-search-box-product-title",
|
|
4054
4054
|
innerHTML: title.value
|
|
4055
|
-
}, null, 8, _hoisted_1$
|
|
4055
|
+
}, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
|
|
4056
4056
|
createElementVNode("strong", null, toDisplayString(title.value), 1)
|
|
4057
4057
|
]));
|
|
4058
4058
|
};
|
|
4059
4059
|
}
|
|
4060
4060
|
});
|
|
4061
|
-
const _hoisted_1$
|
|
4061
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
4062
4062
|
const _hoisted_2$N = {
|
|
4063
4063
|
key: 1,
|
|
4064
4064
|
class: "lupa-search-box-product-description"
|
|
@@ -4083,11 +4083,11 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
4083
4083
|
key: 0,
|
|
4084
4084
|
class: "lupa-search-box-product-description",
|
|
4085
4085
|
innerHTML: description.value
|
|
4086
|
-
}, null, 8, _hoisted_1$
|
|
4086
|
+
}, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(description.value), 1));
|
|
4087
4087
|
};
|
|
4088
4088
|
}
|
|
4089
4089
|
});
|
|
4090
|
-
const _hoisted_1$
|
|
4090
|
+
const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
|
|
4091
4091
|
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
4092
4092
|
__name: "SearchBoxProductPrice",
|
|
4093
4093
|
props: {
|
|
@@ -4106,13 +4106,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4106
4106
|
);
|
|
4107
4107
|
});
|
|
4108
4108
|
return (_ctx, _cache) => {
|
|
4109
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4109
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
4110
4110
|
createElementVNode("strong", null, toDisplayString(price.value), 1)
|
|
4111
4111
|
]);
|
|
4112
4112
|
};
|
|
4113
4113
|
}
|
|
4114
4114
|
});
|
|
4115
|
-
const _hoisted_1$15 = { class: "lupa-search-box-product-regular-price" };
|
|
4116
4115
|
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
4117
4116
|
__name: "SearchBoxProductRegularPrice",
|
|
4118
4117
|
props: {
|
|
@@ -4122,6 +4121,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
4122
4121
|
},
|
|
4123
4122
|
setup(__props) {
|
|
4124
4123
|
const props = __props;
|
|
4124
|
+
const className = computed(() => {
|
|
4125
|
+
return props.options.className;
|
|
4126
|
+
});
|
|
4125
4127
|
const price = computed(() => {
|
|
4126
4128
|
var _a, _b;
|
|
4127
4129
|
return formatPrice(
|
|
@@ -4131,11 +4133,13 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
4131
4133
|
);
|
|
4132
4134
|
});
|
|
4133
4135
|
return (_ctx, _cache) => {
|
|
4134
|
-
return openBlock(), createElementBlock("div",
|
|
4136
|
+
return openBlock(), createElementBlock("div", {
|
|
4137
|
+
class: normalizeClass([className.value, "lupa-search-box-product-regular-price"])
|
|
4138
|
+
}, toDisplayString(price.value), 3);
|
|
4135
4139
|
};
|
|
4136
4140
|
}
|
|
4137
4141
|
});
|
|
4138
|
-
const _hoisted_1$
|
|
4142
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
4139
4143
|
const _hoisted_2$M = { key: 0 };
|
|
4140
4144
|
const _hoisted_3$z = { key: 1 };
|
|
4141
4145
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
@@ -4166,7 +4170,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
4166
4170
|
key: 0,
|
|
4167
4171
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
4168
4172
|
innerHTML: text.value
|
|
4169
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
4173
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
4170
4174
|
key: 1,
|
|
4171
4175
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
4172
4176
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
@@ -4178,7 +4182,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
4178
4182
|
};
|
|
4179
4183
|
}
|
|
4180
4184
|
});
|
|
4181
|
-
const _hoisted_1$
|
|
4185
|
+
const _hoisted_1$12 = ["innerHTML"];
|
|
4182
4186
|
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
4183
4187
|
__name: "SearchBoxProductCustomHtml",
|
|
4184
4188
|
props: {
|
|
@@ -4199,7 +4203,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4199
4203
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
4200
4204
|
class: className.value,
|
|
4201
4205
|
innerHTML: text.value
|
|
4202
|
-
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
4206
|
+
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
|
|
4203
4207
|
};
|
|
4204
4208
|
}
|
|
4205
4209
|
});
|
|
@@ -4427,7 +4431,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
4427
4431
|
filterVisibleFilterValues
|
|
4428
4432
|
};
|
|
4429
4433
|
});
|
|
4430
|
-
const _hoisted_1$
|
|
4434
|
+
const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
4431
4435
|
const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
|
|
4432
4436
|
const _hoisted_3$y = ["onClick", "disabled"];
|
|
4433
4437
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
@@ -4457,7 +4461,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
4457
4461
|
loading.value = false;
|
|
4458
4462
|
});
|
|
4459
4463
|
return (_ctx, _cache) => {
|
|
4460
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4464
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
4461
4465
|
createElementVNode("div", _hoisted_2$L, [
|
|
4462
4466
|
createElementVNode("button", {
|
|
4463
4467
|
onClick: withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -4471,7 +4475,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
4471
4475
|
};
|
|
4472
4476
|
}
|
|
4473
4477
|
});
|
|
4474
|
-
const _hoisted_1$
|
|
4478
|
+
const _hoisted_1$10 = {
|
|
4475
4479
|
key: 1,
|
|
4476
4480
|
class: "lupa-search-box-element-badge-wrapper"
|
|
4477
4481
|
};
|
|
@@ -4545,7 +4549,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
4545
4549
|
class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
4546
4550
|
inStock: _ctx.isInStock
|
|
4547
4551
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
|
|
4548
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4552
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
4549
4553
|
displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
|
|
4550
4554
|
key: 0,
|
|
4551
4555
|
item: enhancedItem.value,
|
|
@@ -4559,7 +4563,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
4559
4563
|
};
|
|
4560
4564
|
}
|
|
4561
4565
|
}));
|
|
4562
|
-
const _hoisted_1
|
|
4566
|
+
const _hoisted_1$$ = { class: "lupa-badge-title" };
|
|
4563
4567
|
const _hoisted_2$K = ["src"];
|
|
4564
4568
|
const _hoisted_3$x = { key: 1 };
|
|
4565
4569
|
const _hoisted_4$q = {
|
|
@@ -4599,7 +4603,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4599
4603
|
class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
4600
4604
|
style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
4601
4605
|
}, [
|
|
4602
|
-
createElementVNode("span", _hoisted_1
|
|
4606
|
+
createElementVNode("span", _hoisted_1$$, [
|
|
4603
4607
|
image.value ? (openBlock(), createElementBlock("img", {
|
|
4604
4608
|
key: 0,
|
|
4605
4609
|
src: image.value
|
|
@@ -4611,7 +4615,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4611
4615
|
};
|
|
4612
4616
|
}
|
|
4613
4617
|
});
|
|
4614
|
-
const _hoisted_1
|
|
4618
|
+
const _hoisted_1$_ = { class: "lupa-generated-badges" };
|
|
4615
4619
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
4616
4620
|
__name: "SearchResultGeneratedBadges",
|
|
4617
4621
|
props: {
|
|
@@ -4638,7 +4642,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
4638
4642
|
})).filter((b) => Boolean(b.id));
|
|
4639
4643
|
});
|
|
4640
4644
|
return (_ctx, _cache) => {
|
|
4641
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
4645
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
4642
4646
|
(openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
|
|
4643
4647
|
return openBlock(), createBlock(_sfc_main$15, {
|
|
4644
4648
|
key: badge.id,
|
|
@@ -4650,7 +4654,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
4650
4654
|
};
|
|
4651
4655
|
}
|
|
4652
4656
|
});
|
|
4653
|
-
const _hoisted_1$
|
|
4657
|
+
const _hoisted_1$Z = ["innerHTML"];
|
|
4654
4658
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
4655
4659
|
__name: "CustomBadge",
|
|
4656
4660
|
props: {
|
|
@@ -4670,11 +4674,11 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
4670
4674
|
return openBlock(), createElementBlock("div", {
|
|
4671
4675
|
class: normalizeClass(className.value),
|
|
4672
4676
|
innerHTML: text.value
|
|
4673
|
-
}, null, 10, _hoisted_1$
|
|
4677
|
+
}, null, 10, _hoisted_1$Z);
|
|
4674
4678
|
};
|
|
4675
4679
|
}
|
|
4676
4680
|
});
|
|
4677
|
-
const _hoisted_1$
|
|
4681
|
+
const _hoisted_1$Y = { class: "lupa-text-badges" };
|
|
4678
4682
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
4679
4683
|
__name: "TextBadge",
|
|
4680
4684
|
props: {
|
|
@@ -4690,7 +4694,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4690
4694
|
return badges.value.slice(0, props.badge.maxItems);
|
|
4691
4695
|
});
|
|
4692
4696
|
return (_ctx, _cache) => {
|
|
4693
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4697
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
4694
4698
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
4695
4699
|
return openBlock(), createElementBlock("div", {
|
|
4696
4700
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -4701,7 +4705,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4701
4705
|
};
|
|
4702
4706
|
}
|
|
4703
4707
|
});
|
|
4704
|
-
const _hoisted_1$
|
|
4708
|
+
const _hoisted_1$X = { class: "lupa-image-badges" };
|
|
4705
4709
|
const _hoisted_2$J = ["src"];
|
|
4706
4710
|
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
4707
4711
|
__name: "ImageBadge",
|
|
@@ -4723,7 +4727,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4723
4727
|
return `${props.badge.rootImageUrl}${src}`;
|
|
4724
4728
|
};
|
|
4725
4729
|
return (_ctx, _cache) => {
|
|
4726
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4730
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
4727
4731
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
|
|
4728
4732
|
return openBlock(), createElementBlock("div", {
|
|
4729
4733
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -4738,7 +4742,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4738
4742
|
};
|
|
4739
4743
|
}
|
|
4740
4744
|
});
|
|
4741
|
-
const _hoisted_1$
|
|
4745
|
+
const _hoisted_1$W = { id: "lupa-search-results-badges" };
|
|
4742
4746
|
const __default__$3 = {
|
|
4743
4747
|
components: {
|
|
4744
4748
|
CustomBadge: _sfc_main$13,
|
|
@@ -4802,7 +4806,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
4802
4806
|
}
|
|
4803
4807
|
};
|
|
4804
4808
|
return (_ctx, _cache) => {
|
|
4805
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4809
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
4806
4810
|
createElementVNode("div", {
|
|
4807
4811
|
id: "lupa-badges",
|
|
4808
4812
|
class: normalizeClass(anchorPosition.value)
|
|
@@ -4822,7 +4826,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
|
|
|
4822
4826
|
};
|
|
4823
4827
|
}
|
|
4824
4828
|
}));
|
|
4825
|
-
const _hoisted_1$
|
|
4829
|
+
const _hoisted_1$V = ["href"];
|
|
4826
4830
|
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
4827
4831
|
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
4828
4832
|
const _hoisted_4$p = {
|
|
@@ -4934,7 +4938,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4934
4938
|
isInStock: isInStock.value
|
|
4935
4939
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
4936
4940
|
])) : createCommentVNode("", true)
|
|
4937
|
-
], 16, _hoisted_1$
|
|
4941
|
+
], 16, _hoisted_1$V);
|
|
4938
4942
|
};
|
|
4939
4943
|
}
|
|
4940
4944
|
});
|
|
@@ -4995,7 +4999,7 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
4995
4999
|
};
|
|
4996
5000
|
return { trackSearch, trackResults, trackEvent };
|
|
4997
5001
|
});
|
|
4998
|
-
const _hoisted_1$
|
|
5002
|
+
const _hoisted_1$U = { id: "lupa-search-box-products" };
|
|
4999
5003
|
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
5000
5004
|
__name: "SearchBoxProducts",
|
|
5001
5005
|
props: {
|
|
@@ -5057,7 +5061,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
5057
5061
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
5058
5062
|
};
|
|
5059
5063
|
return (_ctx, _cache) => {
|
|
5060
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5064
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
5061
5065
|
_ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
|
|
5062
5066
|
return renderSlot(_ctx.$slots, "productCard", {
|
|
5063
5067
|
key: index,
|
|
@@ -5084,7 +5088,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
5084
5088
|
};
|
|
5085
5089
|
}
|
|
5086
5090
|
});
|
|
5087
|
-
const _hoisted_1$
|
|
5091
|
+
const _hoisted_1$T = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
5088
5092
|
const _hoisted_2$H = { key: 0 };
|
|
5089
5093
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
5090
5094
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
@@ -5116,7 +5120,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
5116
5120
|
emit("goToResults");
|
|
5117
5121
|
};
|
|
5118
5122
|
return (_ctx, _cache) => {
|
|
5119
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5123
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
5120
5124
|
createElementVNode("button", {
|
|
5121
5125
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
5122
5126
|
onClick: goToResults
|
|
@@ -5305,7 +5309,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
5305
5309
|
};
|
|
5306
5310
|
}
|
|
5307
5311
|
});
|
|
5308
|
-
const _hoisted_1$
|
|
5312
|
+
const _hoisted_1$S = {
|
|
5309
5313
|
key: 0,
|
|
5310
5314
|
id: "lupa-search-box-panel"
|
|
5311
5315
|
};
|
|
@@ -5475,7 +5479,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
5475
5479
|
ref_key: "panelContainer",
|
|
5476
5480
|
ref: panelContainer
|
|
5477
5481
|
}, [
|
|
5478
|
-
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5482
|
+
displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
5479
5483
|
labels.value.closePanel ? (openBlock(), createElementBlock("a", {
|
|
5480
5484
|
key: 0,
|
|
5481
5485
|
class: "lupa-search-box-close-panel",
|
|
@@ -5558,7 +5562,7 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
5558
5562
|
const elements = getElements(triggers);
|
|
5559
5563
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
5560
5564
|
};
|
|
5561
|
-
const _hoisted_1$
|
|
5565
|
+
const _hoisted_1$R = { id: "lupa-search-box" };
|
|
5562
5566
|
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
5563
5567
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
5564
5568
|
__name: "SearchBox",
|
|
@@ -5812,7 +5816,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
5812
5816
|
};
|
|
5813
5817
|
return (_ctx, _cache) => {
|
|
5814
5818
|
var _a2;
|
|
5815
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5819
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
5816
5820
|
createElementVNode("div", _hoisted_2$F, [
|
|
5817
5821
|
createVNode(_sfc_main$1n, {
|
|
5818
5822
|
options: inputOptions.value,
|
|
@@ -5930,7 +5934,7 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
|
|
|
5930
5934
|
options.options.onError(e2);
|
|
5931
5935
|
}
|
|
5932
5936
|
});
|
|
5933
|
-
const _hoisted_1$
|
|
5937
|
+
const _hoisted_1$Q = {
|
|
5934
5938
|
key: 0,
|
|
5935
5939
|
id: "lupa-search-results-did-you-mean"
|
|
5936
5940
|
};
|
|
@@ -5975,7 +5979,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
5975
5979
|
paramStore.goToResults({ searchText, facet });
|
|
5976
5980
|
};
|
|
5977
5981
|
return (_ctx, _cache) => {
|
|
5978
|
-
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5982
|
+
return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
5979
5983
|
unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
5980
5984
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
5981
5985
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
@@ -6001,7 +6005,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
6001
6005
|
};
|
|
6002
6006
|
}
|
|
6003
6007
|
});
|
|
6004
|
-
const _hoisted_1$
|
|
6008
|
+
const _hoisted_1$P = {
|
|
6005
6009
|
key: 0,
|
|
6006
6010
|
class: "lupa-search-results-summary"
|
|
6007
6011
|
};
|
|
@@ -6021,7 +6025,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
6021
6025
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
6022
6026
|
});
|
|
6023
6027
|
return (_ctx, _cache) => {
|
|
6024
|
-
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6028
|
+
return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
6025
6029
|
createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
6026
6030
|
_ctx.clearable ? (openBlock(), createElementBlock("span", {
|
|
6027
6031
|
key: 0,
|
|
@@ -6033,7 +6037,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
6033
6037
|
};
|
|
6034
6038
|
}
|
|
6035
6039
|
});
|
|
6036
|
-
const _hoisted_1$
|
|
6040
|
+
const _hoisted_1$O = {
|
|
6037
6041
|
key: 0,
|
|
6038
6042
|
class: "lupa-result-page-title",
|
|
6039
6043
|
"data-cy": "lupa-result-page-title"
|
|
@@ -6084,7 +6088,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6084
6088
|
});
|
|
6085
6089
|
return (_ctx, _cache) => {
|
|
6086
6090
|
return openBlock(), createElementBlock("div", null, [
|
|
6087
|
-
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
6091
|
+
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
|
|
6088
6092
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
6089
6093
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
6090
6094
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
|
|
@@ -6106,7 +6110,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6106
6110
|
};
|
|
6107
6111
|
}
|
|
6108
6112
|
});
|
|
6109
|
-
const _hoisted_1$
|
|
6113
|
+
const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
|
|
6110
6114
|
const _hoisted_2$B = {
|
|
6111
6115
|
class: "lupa-current-filter-label",
|
|
6112
6116
|
"data-cy": "lupa-current-filter-label"
|
|
@@ -6127,7 +6131,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6127
6131
|
emit("remove", { filter: props.filter });
|
|
6128
6132
|
};
|
|
6129
6133
|
return (_ctx, _cache) => {
|
|
6130
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6134
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
6131
6135
|
createElementVNode("div", {
|
|
6132
6136
|
class: "lupa-current-filter-action",
|
|
6133
6137
|
onClick: handleClick
|
|
@@ -6138,7 +6142,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6138
6142
|
};
|
|
6139
6143
|
}
|
|
6140
6144
|
});
|
|
6141
|
-
const _hoisted_1$
|
|
6145
|
+
const _hoisted_1$M = { class: "lupa-filter-title-text" };
|
|
6142
6146
|
const _hoisted_2$A = {
|
|
6143
6147
|
key: 0,
|
|
6144
6148
|
class: "lupa-filter-count"
|
|
@@ -6221,7 +6225,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
6221
6225
|
class: "lupa-current-filter-title",
|
|
6222
6226
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
6223
6227
|
}, [
|
|
6224
|
-
createElementVNode("div", _hoisted_1$
|
|
6228
|
+
createElementVNode("div", _hoisted_1$M, [
|
|
6225
6229
|
createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
6226
6230
|
_ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
|
|
6227
6231
|
]),
|
|
@@ -6250,7 +6254,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
6250
6254
|
};
|
|
6251
6255
|
}
|
|
6252
6256
|
});
|
|
6253
|
-
const _hoisted_1$
|
|
6257
|
+
const _hoisted_1$L = ["href"];
|
|
6254
6258
|
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
6255
6259
|
__name: "CategoryFilterItem",
|
|
6256
6260
|
props: {
|
|
@@ -6288,12 +6292,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
6288
6292
|
"data-cy": "lupa-child-category-item",
|
|
6289
6293
|
href: urlLink.value,
|
|
6290
6294
|
onClick: handleNavigation
|
|
6291
|
-
}, toDisplayString(title.value), 9, _hoisted_1$
|
|
6295
|
+
}, toDisplayString(title.value), 9, _hoisted_1$L)
|
|
6292
6296
|
], 2);
|
|
6293
6297
|
};
|
|
6294
6298
|
}
|
|
6295
6299
|
});
|
|
6296
|
-
const _hoisted_1$
|
|
6300
|
+
const _hoisted_1$K = {
|
|
6297
6301
|
class: "lupa-category-filter",
|
|
6298
6302
|
"data-cy": "lupa-category-filter"
|
|
6299
6303
|
};
|
|
@@ -6387,7 +6391,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6387
6391
|
};
|
|
6388
6392
|
__expose({ fetch: fetch2 });
|
|
6389
6393
|
return (_ctx, _cache) => {
|
|
6390
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6394
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
6391
6395
|
createElementVNode("div", _hoisted_2$z, [
|
|
6392
6396
|
hasBackButton.value ? (openBlock(), createElementBlock("a", {
|
|
6393
6397
|
key: 0,
|
|
@@ -6419,7 +6423,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6419
6423
|
};
|
|
6420
6424
|
}
|
|
6421
6425
|
});
|
|
6422
|
-
const _hoisted_1$
|
|
6426
|
+
const _hoisted_1$J = {
|
|
6423
6427
|
class: "lupa-search-result-facet-term-values",
|
|
6424
6428
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
6425
6429
|
};
|
|
@@ -6506,7 +6510,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
6506
6510
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
6507
6511
|
};
|
|
6508
6512
|
return (_ctx, _cache) => {
|
|
6509
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6513
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
6510
6514
|
isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
6511
6515
|
key: 0,
|
|
6512
6516
|
class: "lupa-term-filter",
|
|
@@ -7524,7 +7528,7 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
7524
7528
|
m.render = function(e2, t, r, i, n, o) {
|
|
7525
7529
|
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
7526
7530
|
}, m.__file = "src/Slider.vue";
|
|
7527
|
-
const _hoisted_1$
|
|
7531
|
+
const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
|
|
7528
7532
|
const _hoisted_2$x = {
|
|
7529
7533
|
key: 0,
|
|
7530
7534
|
class: "lupa-stats-facet-summary"
|
|
@@ -7725,7 +7729,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7725
7729
|
innerSliderRange.value = value;
|
|
7726
7730
|
};
|
|
7727
7731
|
return (_ctx, _cache) => {
|
|
7728
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7732
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
7729
7733
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
7730
7734
|
createElementVNode("div", null, [
|
|
7731
7735
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
@@ -7792,7 +7796,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7792
7796
|
};
|
|
7793
7797
|
}
|
|
7794
7798
|
});
|
|
7795
|
-
const _hoisted_1$
|
|
7799
|
+
const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
|
|
7796
7800
|
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
7797
7801
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
7798
7802
|
const _hoisted_4$h = {
|
|
@@ -7849,7 +7853,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
7849
7853
|
"data-cy": "lupa-facet-term",
|
|
7850
7854
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
7851
7855
|
}, [
|
|
7852
|
-
createElementVNode("div", _hoisted_1$
|
|
7856
|
+
createElementVNode("div", _hoisted_1$H, [
|
|
7853
7857
|
createElementVNode("span", {
|
|
7854
7858
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
7855
7859
|
}, null, 2)
|
|
@@ -7875,7 +7879,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
7875
7879
|
};
|
|
7876
7880
|
}
|
|
7877
7881
|
});
|
|
7878
|
-
const _hoisted_1$
|
|
7882
|
+
const _hoisted_1$G = {
|
|
7879
7883
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
7880
7884
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
7881
7885
|
};
|
|
@@ -7931,7 +7935,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
7931
7935
|
showAll.value = true;
|
|
7932
7936
|
};
|
|
7933
7937
|
return (_ctx, _cache) => {
|
|
7934
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7938
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
7935
7939
|
isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
7936
7940
|
withDirectives(createElementVNode("input", {
|
|
7937
7941
|
class: "lupa-term-filter",
|
|
@@ -7963,7 +7967,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
7963
7967
|
};
|
|
7964
7968
|
}
|
|
7965
7969
|
});
|
|
7966
|
-
const _hoisted_1$
|
|
7970
|
+
const _hoisted_1$F = { class: "lupa-facet-label-text" };
|
|
7967
7971
|
const _hoisted_2$u = {
|
|
7968
7972
|
key: 0,
|
|
7969
7973
|
class: "lupa-facet-content",
|
|
@@ -8088,7 +8092,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
8088
8092
|
"data-cy": "lupa-search-result-facet-label",
|
|
8089
8093
|
onClick: toggleFacet
|
|
8090
8094
|
}, [
|
|
8091
|
-
createElementVNode("div", _hoisted_1$
|
|
8095
|
+
createElementVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
|
|
8092
8096
|
createElementVNode("div", {
|
|
8093
8097
|
class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
8094
8098
|
}, null, 2)
|
|
@@ -8111,7 +8115,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
8111
8115
|
};
|
|
8112
8116
|
}
|
|
8113
8117
|
}));
|
|
8114
|
-
const _hoisted_1$
|
|
8118
|
+
const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
|
|
8115
8119
|
const _hoisted_2$t = {
|
|
8116
8120
|
key: 0,
|
|
8117
8121
|
class: "lupa-facets-title"
|
|
@@ -8150,7 +8154,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
8150
8154
|
};
|
|
8151
8155
|
return (_ctx, _cache) => {
|
|
8152
8156
|
var _a;
|
|
8153
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8157
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
8154
8158
|
_ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
|
|
8155
8159
|
createElementVNode("div", {
|
|
8156
8160
|
class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
@@ -8172,7 +8176,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
8172
8176
|
};
|
|
8173
8177
|
}
|
|
8174
8178
|
});
|
|
8175
|
-
const _hoisted_1$
|
|
8179
|
+
const _hoisted_1$D = ["onClick"];
|
|
8176
8180
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
8177
8181
|
__name: "FacetsButton",
|
|
8178
8182
|
props: {
|
|
@@ -8193,11 +8197,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8193
8197
|
key: 0,
|
|
8194
8198
|
class: "lupa-facets-button-filter",
|
|
8195
8199
|
onClick: withModifiers(handleClick, ["stop"])
|
|
8196
|
-
}, toDisplayString(label.value), 9, _hoisted_1$
|
|
8200
|
+
}, toDisplayString(label.value), 9, _hoisted_1$D)) : createCommentVNode("", true);
|
|
8197
8201
|
};
|
|
8198
8202
|
}
|
|
8199
8203
|
});
|
|
8200
|
-
const _hoisted_1$
|
|
8204
|
+
const _hoisted_1$C = { class: "lupa-search-result-facets" };
|
|
8201
8205
|
const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
|
|
8202
8206
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
8203
8207
|
__name: "Facets",
|
|
@@ -8282,7 +8286,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
8282
8286
|
emit("filter");
|
|
8283
8287
|
};
|
|
8284
8288
|
return (_ctx, _cache) => {
|
|
8285
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8289
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
8286
8290
|
regularFacets.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
8287
8291
|
key: 0,
|
|
8288
8292
|
options: _ctx.options,
|
|
@@ -8304,7 +8308,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
8304
8308
|
};
|
|
8305
8309
|
}
|
|
8306
8310
|
});
|
|
8307
|
-
const _hoisted_1$
|
|
8311
|
+
const _hoisted_1$B = {
|
|
8308
8312
|
id: "lupa-search-result-filters",
|
|
8309
8313
|
class: "lupa-search-result-filters"
|
|
8310
8314
|
};
|
|
@@ -8341,7 +8345,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
8341
8345
|
__expose({ fetch: fetch2 });
|
|
8342
8346
|
return (_ctx, _cache) => {
|
|
8343
8347
|
var _a;
|
|
8344
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8348
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
8345
8349
|
showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
8346
8350
|
key: 0,
|
|
8347
8351
|
options: _ctx.options.currentFilters,
|
|
@@ -8362,7 +8366,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
8362
8366
|
};
|
|
8363
8367
|
}
|
|
8364
8368
|
});
|
|
8365
|
-
const _hoisted_1$
|
|
8369
|
+
const _hoisted_1$A = {
|
|
8366
8370
|
key: 0,
|
|
8367
8371
|
class: "lupa-mobile-filter-sidebar"
|
|
8368
8372
|
};
|
|
@@ -8406,7 +8410,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
8406
8410
|
handleMobileToggle();
|
|
8407
8411
|
};
|
|
8408
8412
|
return (_ctx, _cache) => {
|
|
8409
|
-
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8413
|
+
return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
8410
8414
|
createElementVNode("div", {
|
|
8411
8415
|
class: "lupa-sidebar-close",
|
|
8412
8416
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
@@ -8434,7 +8438,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
8434
8438
|
};
|
|
8435
8439
|
}
|
|
8436
8440
|
});
|
|
8437
|
-
const _hoisted_1$
|
|
8441
|
+
const _hoisted_1$z = { id: "lupa-search-results-breadcrumbs" };
|
|
8438
8442
|
const _hoisted_2$q = ["href", "onClick"];
|
|
8439
8443
|
const _hoisted_3$k = {
|
|
8440
8444
|
key: 1,
|
|
@@ -8466,7 +8470,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8466
8470
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
8467
8471
|
};
|
|
8468
8472
|
return (_ctx, _cache) => {
|
|
8469
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8473
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
8470
8474
|
(openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
8471
8475
|
return openBlock(), createElementBlock("span", {
|
|
8472
8476
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -8488,9 +8492,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8488
8492
|
};
|
|
8489
8493
|
}
|
|
8490
8494
|
});
|
|
8491
|
-
const _hoisted_1$
|
|
8495
|
+
const _hoisted_1$y = {
|
|
8492
8496
|
id: "lupa-search-result-filters",
|
|
8493
|
-
class: "lupa-search-result-filters"
|
|
8497
|
+
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
8494
8498
|
};
|
|
8495
8499
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
8496
8500
|
__name: "FiltersTopDropdown",
|
|
@@ -8504,7 +8508,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8504
8508
|
};
|
|
8505
8509
|
return (_ctx, _cache) => {
|
|
8506
8510
|
var _a;
|
|
8507
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8511
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
8508
8512
|
_ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
|
|
8509
8513
|
key: 0,
|
|
8510
8514
|
options: _ctx.options.facets,
|
|
@@ -8516,7 +8520,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8516
8520
|
};
|
|
8517
8521
|
}
|
|
8518
8522
|
});
|
|
8519
|
-
const _hoisted_1$
|
|
8523
|
+
const _hoisted_1$x = { id: "lupa-search-results-layout-selection" };
|
|
8520
8524
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
8521
8525
|
__name: "SearchResultsLayoutSelection",
|
|
8522
8526
|
setup(__props) {
|
|
@@ -8528,7 +8532,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
8528
8532
|
searchResultStore.setLayout(layout2);
|
|
8529
8533
|
};
|
|
8530
8534
|
return (_ctx, _cache) => {
|
|
8531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8535
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
8532
8536
|
createElementVNode("div", {
|
|
8533
8537
|
class: normalizeClass([
|
|
8534
8538
|
"lupa-layout-selection-grid",
|
|
@@ -8550,7 +8554,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
8550
8554
|
};
|
|
8551
8555
|
}
|
|
8552
8556
|
});
|
|
8553
|
-
const _hoisted_1$
|
|
8557
|
+
const _hoisted_1$w = {
|
|
8554
8558
|
key: 0,
|
|
8555
8559
|
class: "lupa-mobile-toggle-filter-count"
|
|
8556
8560
|
};
|
|
@@ -8572,12 +8576,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8572
8576
|
onClick: handleMobileToggle
|
|
8573
8577
|
}, [
|
|
8574
8578
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
8575
|
-
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
8579
|
+
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$w, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
8576
8580
|
], 2);
|
|
8577
8581
|
};
|
|
8578
8582
|
}
|
|
8579
8583
|
});
|
|
8580
|
-
const _hoisted_1$
|
|
8584
|
+
const _hoisted_1$v = {
|
|
8581
8585
|
key: 0,
|
|
8582
8586
|
id: "lupa-search-results-page-select",
|
|
8583
8587
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -8668,7 +8672,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
8668
8672
|
}
|
|
8669
8673
|
};
|
|
8670
8674
|
return (_ctx, _cache) => {
|
|
8671
|
-
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8675
|
+
return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
8672
8676
|
showBack.value ? (openBlock(), createElementBlock("div", {
|
|
8673
8677
|
key: 0,
|
|
8674
8678
|
class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -8712,7 +8716,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
8712
8716
|
};
|
|
8713
8717
|
}
|
|
8714
8718
|
});
|
|
8715
|
-
const _hoisted_1$
|
|
8719
|
+
const _hoisted_1$u = {
|
|
8716
8720
|
id: "lupa-search-results-page-size",
|
|
8717
8721
|
"data-cy": "lupa-search-results-page-size"
|
|
8718
8722
|
};
|
|
@@ -8748,7 +8752,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
8748
8752
|
});
|
|
8749
8753
|
};
|
|
8750
8754
|
return (_ctx, _cache) => {
|
|
8751
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8755
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
8752
8756
|
createElementVNode("div", _hoisted_2$o, [
|
|
8753
8757
|
createElementVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
|
|
8754
8758
|
createElementVNode("select", {
|
|
@@ -8771,7 +8775,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
8771
8775
|
};
|
|
8772
8776
|
}
|
|
8773
8777
|
});
|
|
8774
|
-
const _hoisted_1$
|
|
8778
|
+
const _hoisted_1$t = {
|
|
8775
8779
|
id: "lupa-search-results-sort",
|
|
8776
8780
|
class: "lupa-search-results-sort"
|
|
8777
8781
|
};
|
|
@@ -8828,7 +8832,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
8828
8832
|
previousKey.value = selectedKey.value;
|
|
8829
8833
|
};
|
|
8830
8834
|
return (_ctx, _cache) => {
|
|
8831
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8835
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
8832
8836
|
createElementVNode("div", _hoisted_2$n, [
|
|
8833
8837
|
createElementVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
8834
8838
|
withDirectives(createElementVNode("select", {
|
|
@@ -8853,7 +8857,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
8853
8857
|
};
|
|
8854
8858
|
}
|
|
8855
8859
|
});
|
|
8856
|
-
const _hoisted_1$
|
|
8860
|
+
const _hoisted_1$s = { class: "lupa-toolbar-left" };
|
|
8857
8861
|
const _hoisted_2$m = {
|
|
8858
8862
|
key: 0,
|
|
8859
8863
|
class: "lupa-toolbar-right-title"
|
|
@@ -8975,7 +8979,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
8975
8979
|
id: "lupa-search-results-toolbar",
|
|
8976
8980
|
class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
8977
8981
|
}, [
|
|
8978
|
-
createElementVNode("div", _hoisted_1$
|
|
8982
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
8979
8983
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
8980
8984
|
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
8981
8985
|
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
@@ -9029,7 +9033,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
9029
9033
|
};
|
|
9030
9034
|
}
|
|
9031
9035
|
});
|
|
9032
|
-
const _hoisted_1$
|
|
9036
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
9033
9037
|
const _hoisted_2$l = ["title"];
|
|
9034
9038
|
const _hoisted_3$f = {
|
|
9035
9039
|
key: 0,
|
|
@@ -9069,7 +9073,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9069
9073
|
class: "lupa-search-results-product-title",
|
|
9070
9074
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
9071
9075
|
innerHTML: title.value
|
|
9072
|
-
}, null, 12, _hoisted_1$
|
|
9076
|
+
}, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
|
|
9073
9077
|
key: 1,
|
|
9074
9078
|
class: "lupa-search-results-product-title",
|
|
9075
9079
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -9086,7 +9090,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9086
9090
|
};
|
|
9087
9091
|
}
|
|
9088
9092
|
});
|
|
9089
|
-
const _hoisted_1$
|
|
9093
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
9090
9094
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
9091
9095
|
__name: "SearchResultsProductDescription",
|
|
9092
9096
|
props: {
|
|
@@ -9111,7 +9115,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9111
9115
|
class: "lupa-search-results-product-description",
|
|
9112
9116
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
9113
9117
|
innerHTML: description.value
|
|
9114
|
-
}, null, 12, _hoisted_1$
|
|
9118
|
+
}, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
|
|
9115
9119
|
key: 1,
|
|
9116
9120
|
class: "lupa-search-results-product-description",
|
|
9117
9121
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -9119,7 +9123,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9119
9123
|
};
|
|
9120
9124
|
}
|
|
9121
9125
|
});
|
|
9122
|
-
const _hoisted_1$
|
|
9126
|
+
const _hoisted_1$p = { id: "lupa-search-results-rating" };
|
|
9123
9127
|
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
9124
9128
|
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
9125
9129
|
const _hoisted_4$9 = ["innerHTML"];
|
|
@@ -9158,7 +9162,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9158
9162
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
9159
9163
|
});
|
|
9160
9164
|
return (_ctx, _cache) => {
|
|
9161
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9165
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
9162
9166
|
createElementVNode("div", _hoisted_2$k, [
|
|
9163
9167
|
createElementVNode("div", _hoisted_3$e, [
|
|
9164
9168
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
@@ -9192,7 +9196,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9192
9196
|
};
|
|
9193
9197
|
}
|
|
9194
9198
|
});
|
|
9195
|
-
const _hoisted_1$
|
|
9199
|
+
const _hoisted_1$o = {
|
|
9196
9200
|
class: "lupa-search-results-product-regular-price",
|
|
9197
9201
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
9198
9202
|
};
|
|
@@ -9214,14 +9218,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
9214
9218
|
);
|
|
9215
9219
|
});
|
|
9216
9220
|
return (_ctx, _cache) => {
|
|
9217
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9221
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
|
|
9218
9222
|
};
|
|
9219
9223
|
}
|
|
9220
9224
|
});
|
|
9221
|
-
const _hoisted_1$o = {
|
|
9222
|
-
class: "lupa-search-results-product-price",
|
|
9223
|
-
"data-cy": "lupa-search-results-product-price"
|
|
9224
|
-
};
|
|
9225
9225
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
9226
9226
|
__name: "SearchResultsProductPrice",
|
|
9227
9227
|
props: {
|
|
@@ -9231,6 +9231,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
9231
9231
|
},
|
|
9232
9232
|
setup(__props) {
|
|
9233
9233
|
const props = __props;
|
|
9234
|
+
const className = computed(() => {
|
|
9235
|
+
return props.options.className;
|
|
9236
|
+
});
|
|
9234
9237
|
const price = computed(() => {
|
|
9235
9238
|
var _a, _b;
|
|
9236
9239
|
return formatPrice(
|
|
@@ -9240,9 +9243,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
9240
9243
|
);
|
|
9241
9244
|
});
|
|
9242
9245
|
return (_ctx, _cache) => {
|
|
9243
|
-
return openBlock(), createElementBlock("div",
|
|
9246
|
+
return openBlock(), createElementBlock("div", {
|
|
9247
|
+
class: normalizeClass([className.value, "lupa-search-results-product-price"]),
|
|
9248
|
+
"data-cy": "lupa-search-results-product-price"
|
|
9249
|
+
}, [
|
|
9244
9250
|
createElementVNode("strong", null, toDisplayString(price.value), 1)
|
|
9245
|
-
]);
|
|
9251
|
+
], 2);
|
|
9246
9252
|
};
|
|
9247
9253
|
}
|
|
9248
9254
|
});
|