@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.js
CHANGED
|
@@ -3299,7 +3299,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
3299
3299
|
resetHighlightIndex
|
|
3300
3300
|
};
|
|
3301
3301
|
});
|
|
3302
|
-
const _hoisted_1$
|
|
3302
|
+
const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
|
|
3303
3303
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
3304
3304
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
3305
3305
|
const _hoisted_4$t = ["value"];
|
|
@@ -3396,7 +3396,7 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
|
|
|
3396
3396
|
};
|
|
3397
3397
|
__expose({ focus });
|
|
3398
3398
|
return (_ctx, _cache) => {
|
|
3399
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3399
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1d, [
|
|
3400
3400
|
vue.createElementVNode("div", _hoisted_2$R, [
|
|
3401
3401
|
vue.createElementVNode("div", {
|
|
3402
3402
|
class: vue.normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
|
|
@@ -3474,7 +3474,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
|
3474
3474
|
};
|
|
3475
3475
|
}
|
|
3476
3476
|
});
|
|
3477
|
-
const _hoisted_1$
|
|
3477
|
+
const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
|
|
3478
3478
|
const _hoisted_2$Q = { class: "lupa-search-box-history-item-content" };
|
|
3479
3479
|
const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
3480
3480
|
__name: "SearchBoxHistoryItem",
|
|
@@ -3492,7 +3492,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3492
3492
|
emit("click", { query: props.item });
|
|
3493
3493
|
};
|
|
3494
3494
|
return (_ctx, _cache) => {
|
|
3495
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3495
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1c, [
|
|
3496
3496
|
vue.createElementVNode("div", _hoisted_2$Q, [
|
|
3497
3497
|
vue.createElementVNode("div", {
|
|
3498
3498
|
class: vue.normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
|
|
@@ -3507,7 +3507,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3507
3507
|
};
|
|
3508
3508
|
}
|
|
3509
3509
|
});
|
|
3510
|
-
const _hoisted_1$
|
|
3510
|
+
const _hoisted_1$1b = {
|
|
3511
3511
|
key: 0,
|
|
3512
3512
|
class: "lupa-search-box-history-panel"
|
|
3513
3513
|
};
|
|
@@ -3552,7 +3552,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
3552
3552
|
}
|
|
3553
3553
|
};
|
|
3554
3554
|
return (_ctx, _cache) => {
|
|
3555
|
-
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3555
|
+
return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1b, [
|
|
3556
3556
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(history), (item, index) => {
|
|
3557
3557
|
return vue.openBlock(), vue.createBlock(_sfc_main$1l, {
|
|
3558
3558
|
key: item,
|
|
@@ -3570,7 +3570,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
3570
3570
|
};
|
|
3571
3571
|
}
|
|
3572
3572
|
});
|
|
3573
|
-
const _hoisted_1$
|
|
3573
|
+
const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
|
|
3574
3574
|
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
3575
3575
|
__name: "SearchBoxNoResults",
|
|
3576
3576
|
props: {
|
|
@@ -3578,11 +3578,11 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3578
3578
|
},
|
|
3579
3579
|
setup(__props) {
|
|
3580
3580
|
return (_ctx, _cache) => {
|
|
3581
|
-
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$
|
|
3581
|
+
return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$1a, vue.toDisplayString(_ctx.labels.noResults), 1);
|
|
3582
3582
|
};
|
|
3583
3583
|
}
|
|
3584
3584
|
});
|
|
3585
|
-
const _hoisted_1$
|
|
3585
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
3586
3586
|
const _hoisted_2$P = {
|
|
3587
3587
|
key: 1,
|
|
3588
3588
|
"data-cy": "lupa-suggestion-value",
|
|
@@ -3637,7 +3637,7 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
3637
3637
|
class: "lupa-suggestion-value",
|
|
3638
3638
|
"data-cy": "lupa-suggestion-value",
|
|
3639
3639
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
3640
|
-
}, null, 8, _hoisted_1$
|
|
3640
|
+
}, null, 8, _hoisted_1$19)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, vue.toDisplayString(_ctx.suggestion.display), 1)),
|
|
3641
3641
|
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
|
|
3642
3642
|
vue.createElementVNode("span", _hoisted_4$s, vue.toDisplayString(facetLabel.value), 1),
|
|
3643
3643
|
vue.createElementVNode("span", _hoisted_5$i, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
@@ -3646,7 +3646,7 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
3646
3646
|
};
|
|
3647
3647
|
}
|
|
3648
3648
|
});
|
|
3649
|
-
const _hoisted_1$
|
|
3649
|
+
const _hoisted_1$18 = {
|
|
3650
3650
|
id: "lupa-search-box-suggestions",
|
|
3651
3651
|
"data-cy": "lupa-search-box-suggestions"
|
|
3652
3652
|
};
|
|
@@ -3710,7 +3710,7 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
|
3710
3710
|
});
|
|
3711
3711
|
});
|
|
3712
3712
|
return (_ctx, _cache) => {
|
|
3713
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3713
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$18, [
|
|
3714
3714
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
|
|
3715
3715
|
return vue.openBlock(), vue.createBlock(_sfc_main$1i, {
|
|
3716
3716
|
key: getSuggestionKey(item),
|
|
@@ -3885,7 +3885,7 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
|
3885
3885
|
targetImage.src = placeholder;
|
|
3886
3886
|
}
|
|
3887
3887
|
};
|
|
3888
|
-
const _hoisted_1$
|
|
3888
|
+
const _hoisted_1$17 = ["src"];
|
|
3889
3889
|
const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
3890
3890
|
__name: "ProductImage",
|
|
3891
3891
|
props: {
|
|
@@ -4004,7 +4004,7 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
|
4004
4004
|
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
|
|
4005
4005
|
onError: replaceWithPlaceholder,
|
|
4006
4006
|
key: finalUrl.value
|
|
4007
|
-
}), null, 16, _hoisted_1$
|
|
4007
|
+
}), null, 16, _hoisted_1$17))
|
|
4008
4008
|
]),
|
|
4009
4009
|
_: 1
|
|
4010
4010
|
})
|
|
@@ -4029,7 +4029,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
|
4029
4029
|
};
|
|
4030
4030
|
}
|
|
4031
4031
|
});
|
|
4032
|
-
const _hoisted_1$
|
|
4032
|
+
const _hoisted_1$16 = ["innerHTML"];
|
|
4033
4033
|
const _hoisted_2$O = {
|
|
4034
4034
|
key: 1,
|
|
4035
4035
|
class: "lupa-search-box-product-title"
|
|
@@ -4054,13 +4054,13 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
4054
4054
|
key: 0,
|
|
4055
4055
|
class: "lupa-search-box-product-title",
|
|
4056
4056
|
innerHTML: title.value
|
|
4057
|
-
}, null, 8, _hoisted_1$
|
|
4057
|
+
}, null, 8, _hoisted_1$16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$O, [
|
|
4058
4058
|
vue.createElementVNode("strong", null, vue.toDisplayString(title.value), 1)
|
|
4059
4059
|
]));
|
|
4060
4060
|
};
|
|
4061
4061
|
}
|
|
4062
4062
|
});
|
|
4063
|
-
const _hoisted_1$
|
|
4063
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
4064
4064
|
const _hoisted_2$N = {
|
|
4065
4065
|
key: 1,
|
|
4066
4066
|
class: "lupa-search-box-product-description"
|
|
@@ -4085,11 +4085,11 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
4085
4085
|
key: 0,
|
|
4086
4086
|
class: "lupa-search-box-product-description",
|
|
4087
4087
|
innerHTML: description.value
|
|
4088
|
-
}, null, 8, _hoisted_1$
|
|
4088
|
+
}, null, 8, _hoisted_1$15)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$N, vue.toDisplayString(description.value), 1));
|
|
4089
4089
|
};
|
|
4090
4090
|
}
|
|
4091
4091
|
});
|
|
4092
|
-
const _hoisted_1$
|
|
4092
|
+
const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
|
|
4093
4093
|
const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
4094
4094
|
__name: "SearchBoxProductPrice",
|
|
4095
4095
|
props: {
|
|
@@ -4108,13 +4108,12 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
4108
4108
|
);
|
|
4109
4109
|
});
|
|
4110
4110
|
return (_ctx, _cache) => {
|
|
4111
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4111
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$14, [
|
|
4112
4112
|
vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
|
|
4113
4113
|
]);
|
|
4114
4114
|
};
|
|
4115
4115
|
}
|
|
4116
4116
|
});
|
|
4117
|
-
const _hoisted_1$15 = { class: "lupa-search-box-product-regular-price" };
|
|
4118
4117
|
const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
4119
4118
|
__name: "SearchBoxProductRegularPrice",
|
|
4120
4119
|
props: {
|
|
@@ -4124,6 +4123,9 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
4124
4123
|
},
|
|
4125
4124
|
setup(__props) {
|
|
4126
4125
|
const props = __props;
|
|
4126
|
+
const className = vue.computed(() => {
|
|
4127
|
+
return props.options.className;
|
|
4128
|
+
});
|
|
4127
4129
|
const price = vue.computed(() => {
|
|
4128
4130
|
var _a, _b;
|
|
4129
4131
|
return formatPrice(
|
|
@@ -4133,11 +4135,13 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
4133
4135
|
);
|
|
4134
4136
|
});
|
|
4135
4137
|
return (_ctx, _cache) => {
|
|
4136
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
4138
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4139
|
+
class: vue.normalizeClass([className.value, "lupa-search-box-product-regular-price"])
|
|
4140
|
+
}, vue.toDisplayString(price.value), 3);
|
|
4137
4141
|
};
|
|
4138
4142
|
}
|
|
4139
4143
|
});
|
|
4140
|
-
const _hoisted_1$
|
|
4144
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
4141
4145
|
const _hoisted_2$M = { key: 0 };
|
|
4142
4146
|
const _hoisted_3$z = { key: 1 };
|
|
4143
4147
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
@@ -4168,7 +4172,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4168
4172
|
key: 0,
|
|
4169
4173
|
class: [className.value, "lupa-search-box-product-custom"],
|
|
4170
4174
|
innerHTML: text.value
|
|
4171
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
4175
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
4172
4176
|
key: 1,
|
|
4173
4177
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
4174
4178
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
@@ -4180,7 +4184,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4180
4184
|
};
|
|
4181
4185
|
}
|
|
4182
4186
|
});
|
|
4183
|
-
const _hoisted_1$
|
|
4187
|
+
const _hoisted_1$12 = ["innerHTML"];
|
|
4184
4188
|
const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
4185
4189
|
__name: "SearchBoxProductCustomHtml",
|
|
4186
4190
|
props: {
|
|
@@ -4201,7 +4205,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4201
4205
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
4202
4206
|
class: className.value,
|
|
4203
4207
|
innerHTML: text.value
|
|
4204
|
-
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$
|
|
4208
|
+
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
|
|
4205
4209
|
};
|
|
4206
4210
|
}
|
|
4207
4211
|
});
|
|
@@ -4429,7 +4433,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
4429
4433
|
filterVisibleFilterValues
|
|
4430
4434
|
};
|
|
4431
4435
|
});
|
|
4432
|
-
const _hoisted_1$
|
|
4436
|
+
const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
4433
4437
|
const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
|
|
4434
4438
|
const _hoisted_3$y = ["onClick", "disabled"];
|
|
4435
4439
|
const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -4459,7 +4463,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4459
4463
|
loading.value = false;
|
|
4460
4464
|
});
|
|
4461
4465
|
return (_ctx, _cache) => {
|
|
4462
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4466
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
|
|
4463
4467
|
vue.createElementVNode("div", _hoisted_2$L, [
|
|
4464
4468
|
vue.createElementVNode("button", {
|
|
4465
4469
|
onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
|
|
@@ -4473,7 +4477,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4473
4477
|
};
|
|
4474
4478
|
}
|
|
4475
4479
|
});
|
|
4476
|
-
const _hoisted_1$
|
|
4480
|
+
const _hoisted_1$10 = {
|
|
4477
4481
|
key: 1,
|
|
4478
4482
|
class: "lupa-search-box-element-badge-wrapper"
|
|
4479
4483
|
};
|
|
@@ -4547,7 +4551,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4547
4551
|
class: vue.normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
|
|
4548
4552
|
inStock: _ctx.isInStock
|
|
4549
4553
|
}, null, 8, ["item", "options", "labels", "class", "inStock"])) : vue.createCommentVNode("", true)
|
|
4550
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4554
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$10, [
|
|
4551
4555
|
displayElement.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(elementComponent.value), {
|
|
4552
4556
|
key: 0,
|
|
4553
4557
|
item: enhancedItem.value,
|
|
@@ -4561,7 +4565,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4561
4565
|
};
|
|
4562
4566
|
}
|
|
4563
4567
|
}));
|
|
4564
|
-
const _hoisted_1
|
|
4568
|
+
const _hoisted_1$$ = { class: "lupa-badge-title" };
|
|
4565
4569
|
const _hoisted_2$K = ["src"];
|
|
4566
4570
|
const _hoisted_3$x = { key: 1 };
|
|
4567
4571
|
const _hoisted_4$q = {
|
|
@@ -4601,7 +4605,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4601
4605
|
class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
|
|
4602
4606
|
style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
|
|
4603
4607
|
}, [
|
|
4604
|
-
vue.createElementVNode("span", _hoisted_1
|
|
4608
|
+
vue.createElementVNode("span", _hoisted_1$$, [
|
|
4605
4609
|
image.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
4606
4610
|
key: 0,
|
|
4607
4611
|
src: image.value
|
|
@@ -4613,7 +4617,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4613
4617
|
};
|
|
4614
4618
|
}
|
|
4615
4619
|
});
|
|
4616
|
-
const _hoisted_1
|
|
4620
|
+
const _hoisted_1$_ = { class: "lupa-generated-badges" };
|
|
4617
4621
|
const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
4618
4622
|
__name: "SearchResultGeneratedBadges",
|
|
4619
4623
|
props: {
|
|
@@ -4640,7 +4644,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4640
4644
|
})).filter((b) => Boolean(b.id));
|
|
4641
4645
|
});
|
|
4642
4646
|
return (_ctx, _cache) => {
|
|
4643
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1
|
|
4647
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
|
|
4644
4648
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
|
|
4645
4649
|
return vue.openBlock(), vue.createBlock(_sfc_main$15, {
|
|
4646
4650
|
key: badge.id,
|
|
@@ -4652,7 +4656,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4652
4656
|
};
|
|
4653
4657
|
}
|
|
4654
4658
|
});
|
|
4655
|
-
const _hoisted_1$
|
|
4659
|
+
const _hoisted_1$Z = ["innerHTML"];
|
|
4656
4660
|
const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
4657
4661
|
__name: "CustomBadge",
|
|
4658
4662
|
props: {
|
|
@@ -4672,11 +4676,11 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4672
4676
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4673
4677
|
class: vue.normalizeClass(className.value),
|
|
4674
4678
|
innerHTML: text.value
|
|
4675
|
-
}, null, 10, _hoisted_1$
|
|
4679
|
+
}, null, 10, _hoisted_1$Z);
|
|
4676
4680
|
};
|
|
4677
4681
|
}
|
|
4678
4682
|
});
|
|
4679
|
-
const _hoisted_1$
|
|
4683
|
+
const _hoisted_1$Y = { class: "lupa-text-badges" };
|
|
4680
4684
|
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
4681
4685
|
__name: "TextBadge",
|
|
4682
4686
|
props: {
|
|
@@ -4692,7 +4696,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4692
4696
|
return badges.value.slice(0, props.badge.maxItems);
|
|
4693
4697
|
});
|
|
4694
4698
|
return (_ctx, _cache) => {
|
|
4695
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4699
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
|
|
4696
4700
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
4697
4701
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4698
4702
|
class: "lupa-badge lupa-text-badge",
|
|
@@ -4703,7 +4707,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4703
4707
|
};
|
|
4704
4708
|
}
|
|
4705
4709
|
});
|
|
4706
|
-
const _hoisted_1$
|
|
4710
|
+
const _hoisted_1$X = { class: "lupa-image-badges" };
|
|
4707
4711
|
const _hoisted_2$J = ["src"];
|
|
4708
4712
|
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
4709
4713
|
__name: "ImageBadge",
|
|
@@ -4725,7 +4729,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4725
4729
|
return `${props.badge.rootImageUrl}${src}`;
|
|
4726
4730
|
};
|
|
4727
4731
|
return (_ctx, _cache) => {
|
|
4728
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4732
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
4729
4733
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
|
|
4730
4734
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4731
4735
|
class: "lupa-badge lupa-image-badge",
|
|
@@ -4740,7 +4744,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4740
4744
|
};
|
|
4741
4745
|
}
|
|
4742
4746
|
});
|
|
4743
|
-
const _hoisted_1$
|
|
4747
|
+
const _hoisted_1$W = { id: "lupa-search-results-badges" };
|
|
4744
4748
|
const __default__$3 = {
|
|
4745
4749
|
components: {
|
|
4746
4750
|
CustomBadge: _sfc_main$13,
|
|
@@ -4804,7 +4808,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4804
4808
|
}
|
|
4805
4809
|
};
|
|
4806
4810
|
return (_ctx, _cache) => {
|
|
4807
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4811
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
|
|
4808
4812
|
vue.createElementVNode("div", {
|
|
4809
4813
|
id: "lupa-badges",
|
|
4810
4814
|
class: vue.normalizeClass(anchorPosition.value)
|
|
@@ -4824,7 +4828,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4824
4828
|
};
|
|
4825
4829
|
}
|
|
4826
4830
|
}));
|
|
4827
|
-
const _hoisted_1$
|
|
4831
|
+
const _hoisted_1$V = ["href"];
|
|
4828
4832
|
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
4829
4833
|
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
4830
4834
|
const _hoisted_4$p = {
|
|
@@ -4936,7 +4940,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4936
4940
|
isInStock: isInStock.value
|
|
4937
4941
|
}, null, 8, ["item", "element", "labels", "link", "isInStock"])
|
|
4938
4942
|
])) : vue.createCommentVNode("", true)
|
|
4939
|
-
], 16, _hoisted_1$
|
|
4943
|
+
], 16, _hoisted_1$V);
|
|
4940
4944
|
};
|
|
4941
4945
|
}
|
|
4942
4946
|
});
|
|
@@ -4997,7 +5001,7 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
4997
5001
|
};
|
|
4998
5002
|
return { trackSearch, trackResults, trackEvent };
|
|
4999
5003
|
});
|
|
5000
|
-
const _hoisted_1$
|
|
5004
|
+
const _hoisted_1$U = { id: "lupa-search-box-products" };
|
|
5001
5005
|
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
5002
5006
|
__name: "SearchBoxProducts",
|
|
5003
5007
|
props: {
|
|
@@ -5059,7 +5063,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
5059
5063
|
handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
|
|
5060
5064
|
};
|
|
5061
5065
|
return (_ctx, _cache) => {
|
|
5062
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5066
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
|
|
5063
5067
|
_ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.items, (item, index) => {
|
|
5064
5068
|
return vue.renderSlot(_ctx.$slots, "productCard", {
|
|
5065
5069
|
key: index,
|
|
@@ -5086,7 +5090,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
5086
5090
|
};
|
|
5087
5091
|
}
|
|
5088
5092
|
});
|
|
5089
|
-
const _hoisted_1$
|
|
5093
|
+
const _hoisted_1$T = { class: "lupa-search-box-documents-go-to-results-wrapper" };
|
|
5090
5094
|
const _hoisted_2$H = { key: 0 };
|
|
5091
5095
|
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
5092
5096
|
__name: "SearchBoxProductsGoToResultsButton",
|
|
@@ -5118,7 +5122,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5118
5122
|
emit("goToResults");
|
|
5119
5123
|
};
|
|
5120
5124
|
return (_ctx, _cache) => {
|
|
5121
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5125
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
|
|
5122
5126
|
vue.createElementVNode("button", {
|
|
5123
5127
|
class: "lupa-search-box-documents-go-to-results-button",
|
|
5124
5128
|
onClick: goToResults
|
|
@@ -5307,7 +5311,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
5307
5311
|
};
|
|
5308
5312
|
}
|
|
5309
5313
|
});
|
|
5310
|
-
const _hoisted_1$
|
|
5314
|
+
const _hoisted_1$S = {
|
|
5311
5315
|
key: 0,
|
|
5312
5316
|
id: "lupa-search-box-panel"
|
|
5313
5317
|
};
|
|
@@ -5477,7 +5481,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
5477
5481
|
ref_key: "panelContainer",
|
|
5478
5482
|
ref: panelContainer
|
|
5479
5483
|
}, [
|
|
5480
|
-
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5484
|
+
displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
|
|
5481
5485
|
labels.value.closePanel ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
5482
5486
|
key: 0,
|
|
5483
5487
|
class: "lupa-search-box-close-panel",
|
|
@@ -5560,7 +5564,7 @@ const unbindSearchTriggers = (triggers = [], event) => {
|
|
|
5560
5564
|
const elements = getElements(triggers);
|
|
5561
5565
|
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
5562
5566
|
};
|
|
5563
|
-
const _hoisted_1$
|
|
5567
|
+
const _hoisted_1$R = { id: "lupa-search-box" };
|
|
5564
5568
|
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
5565
5569
|
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
5566
5570
|
__name: "SearchBox",
|
|
@@ -5814,7 +5818,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
5814
5818
|
};
|
|
5815
5819
|
return (_ctx, _cache) => {
|
|
5816
5820
|
var _a2;
|
|
5817
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5821
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
|
|
5818
5822
|
vue.createElementVNode("div", _hoisted_2$F, [
|
|
5819
5823
|
vue.createVNode(_sfc_main$1n, {
|
|
5820
5824
|
options: inputOptions.value,
|
|
@@ -5932,7 +5936,7 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
|
|
|
5932
5936
|
options.options.onError(e2);
|
|
5933
5937
|
}
|
|
5934
5938
|
});
|
|
5935
|
-
const _hoisted_1$
|
|
5939
|
+
const _hoisted_1$Q = {
|
|
5936
5940
|
key: 0,
|
|
5937
5941
|
id: "lupa-search-results-did-you-mean"
|
|
5938
5942
|
};
|
|
@@ -5977,7 +5981,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
5977
5981
|
paramStore.goToResults({ searchText, facet });
|
|
5978
5982
|
};
|
|
5979
5983
|
return (_ctx, _cache) => {
|
|
5980
|
-
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5984
|
+
return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
|
|
5981
5985
|
vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$E, [
|
|
5982
5986
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
|
|
5983
5987
|
return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
|
|
@@ -6003,7 +6007,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
6003
6007
|
};
|
|
6004
6008
|
}
|
|
6005
6009
|
});
|
|
6006
|
-
const _hoisted_1$
|
|
6010
|
+
const _hoisted_1$P = {
|
|
6007
6011
|
key: 0,
|
|
6008
6012
|
class: "lupa-search-results-summary"
|
|
6009
6013
|
};
|
|
@@ -6023,7 +6027,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
6023
6027
|
return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
|
|
6024
6028
|
});
|
|
6025
6029
|
return (_ctx, _cache) => {
|
|
6026
|
-
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6030
|
+
return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
|
|
6027
6031
|
vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
|
|
6028
6032
|
_ctx.clearable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
6029
6033
|
key: 0,
|
|
@@ -6035,7 +6039,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
6035
6039
|
};
|
|
6036
6040
|
}
|
|
6037
6041
|
});
|
|
6038
|
-
const _hoisted_1$
|
|
6042
|
+
const _hoisted_1$O = {
|
|
6039
6043
|
key: 0,
|
|
6040
6044
|
class: "lupa-result-page-title",
|
|
6041
6045
|
"data-cy": "lupa-result-page-title"
|
|
@@ -6086,7 +6090,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
6086
6090
|
});
|
|
6087
6091
|
return (_ctx, _cache) => {
|
|
6088
6092
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
6089
|
-
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$
|
|
6093
|
+
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$O, [
|
|
6090
6094
|
vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
6091
6095
|
queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$C, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
|
|
6092
6096
|
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$t, [
|
|
@@ -6108,7 +6112,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
6108
6112
|
};
|
|
6109
6113
|
}
|
|
6110
6114
|
});
|
|
6111
|
-
const _hoisted_1$
|
|
6115
|
+
const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
|
|
6112
6116
|
const _hoisted_2$B = {
|
|
6113
6117
|
class: "lupa-current-filter-label",
|
|
6114
6118
|
"data-cy": "lupa-current-filter-label"
|
|
@@ -6129,7 +6133,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
6129
6133
|
emit("remove", { filter: props.filter });
|
|
6130
6134
|
};
|
|
6131
6135
|
return (_ctx, _cache) => {
|
|
6132
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6136
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
|
|
6133
6137
|
vue.createElementVNode("div", {
|
|
6134
6138
|
class: "lupa-current-filter-action",
|
|
6135
6139
|
onClick: handleClick
|
|
@@ -6140,7 +6144,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
6140
6144
|
};
|
|
6141
6145
|
}
|
|
6142
6146
|
});
|
|
6143
|
-
const _hoisted_1$
|
|
6147
|
+
const _hoisted_1$M = { class: "lupa-filter-title-text" };
|
|
6144
6148
|
const _hoisted_2$A = {
|
|
6145
6149
|
key: 0,
|
|
6146
6150
|
class: "lupa-filter-count"
|
|
@@ -6223,7 +6227,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6223
6227
|
class: "lupa-current-filter-title",
|
|
6224
6228
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
|
6225
6229
|
}, [
|
|
6226
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
6230
|
+
vue.createElementVNode("div", _hoisted_1$M, [
|
|
6227
6231
|
vue.createTextVNode(vue.toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
|
|
6228
6232
|
_ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$A, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
|
|
6229
6233
|
]),
|
|
@@ -6252,7 +6256,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6252
6256
|
};
|
|
6253
6257
|
}
|
|
6254
6258
|
});
|
|
6255
|
-
const _hoisted_1$
|
|
6259
|
+
const _hoisted_1$L = ["href"];
|
|
6256
6260
|
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
6257
6261
|
__name: "CategoryFilterItem",
|
|
6258
6262
|
props: {
|
|
@@ -6290,12 +6294,12 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
6290
6294
|
"data-cy": "lupa-child-category-item",
|
|
6291
6295
|
href: urlLink.value,
|
|
6292
6296
|
onClick: handleNavigation
|
|
6293
|
-
}, vue.toDisplayString(title.value), 9, _hoisted_1$
|
|
6297
|
+
}, vue.toDisplayString(title.value), 9, _hoisted_1$L)
|
|
6294
6298
|
], 2);
|
|
6295
6299
|
};
|
|
6296
6300
|
}
|
|
6297
6301
|
});
|
|
6298
|
-
const _hoisted_1$
|
|
6302
|
+
const _hoisted_1$K = {
|
|
6299
6303
|
class: "lupa-category-filter",
|
|
6300
6304
|
"data-cy": "lupa-category-filter"
|
|
6301
6305
|
};
|
|
@@ -6389,7 +6393,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
6389
6393
|
};
|
|
6390
6394
|
__expose({ fetch: fetch2 });
|
|
6391
6395
|
return (_ctx, _cache) => {
|
|
6392
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6396
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
|
|
6393
6397
|
vue.createElementVNode("div", _hoisted_2$z, [
|
|
6394
6398
|
hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
6395
6399
|
key: 0,
|
|
@@ -6421,7 +6425,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
6421
6425
|
};
|
|
6422
6426
|
}
|
|
6423
6427
|
});
|
|
6424
|
-
const _hoisted_1$
|
|
6428
|
+
const _hoisted_1$J = {
|
|
6425
6429
|
class: "lupa-search-result-facet-term-values",
|
|
6426
6430
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
6427
6431
|
};
|
|
@@ -6508,7 +6512,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6508
6512
|
return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
|
|
6509
6513
|
};
|
|
6510
6514
|
return (_ctx, _cache) => {
|
|
6511
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6515
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
|
|
6512
6516
|
isFilterable.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
6513
6517
|
key: 0,
|
|
6514
6518
|
class: "lupa-term-filter",
|
|
@@ -7526,7 +7530,7 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
7526
7530
|
m.render = function(e2, t, r, i, n, o) {
|
|
7527
7531
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
7528
7532
|
}, m.__file = "src/Slider.vue";
|
|
7529
|
-
const _hoisted_1$
|
|
7533
|
+
const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
|
|
7530
7534
|
const _hoisted_2$x = {
|
|
7531
7535
|
key: 0,
|
|
7532
7536
|
class: "lupa-stats-facet-summary"
|
|
@@ -7727,7 +7731,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7727
7731
|
innerSliderRange.value = value;
|
|
7728
7732
|
};
|
|
7729
7733
|
return (_ctx, _cache) => {
|
|
7730
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7734
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
7731
7735
|
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
|
|
7732
7736
|
vue.createElementVNode("div", null, [
|
|
7733
7737
|
rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
|
|
@@ -7794,7 +7798,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7794
7798
|
};
|
|
7795
7799
|
}
|
|
7796
7800
|
});
|
|
7797
|
-
const _hoisted_1$
|
|
7801
|
+
const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
|
|
7798
7802
|
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
7799
7803
|
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
7800
7804
|
const _hoisted_4$h = {
|
|
@@ -7851,7 +7855,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7851
7855
|
"data-cy": "lupa-facet-term",
|
|
7852
7856
|
onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
|
|
7853
7857
|
}, [
|
|
7854
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
7858
|
+
vue.createElementVNode("div", _hoisted_1$H, [
|
|
7855
7859
|
vue.createElementVNode("span", {
|
|
7856
7860
|
class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
|
|
7857
7861
|
}, null, 2)
|
|
@@ -7877,7 +7881,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7877
7881
|
};
|
|
7878
7882
|
}
|
|
7879
7883
|
});
|
|
7880
|
-
const _hoisted_1$
|
|
7884
|
+
const _hoisted_1$G = {
|
|
7881
7885
|
class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
|
|
7882
7886
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
7883
7887
|
};
|
|
@@ -7933,7 +7937,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7933
7937
|
showAll.value = true;
|
|
7934
7938
|
};
|
|
7935
7939
|
return (_ctx, _cache) => {
|
|
7936
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7940
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
|
|
7937
7941
|
isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$v, [
|
|
7938
7942
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
7939
7943
|
class: "lupa-term-filter",
|
|
@@ -7965,7 +7969,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7965
7969
|
};
|
|
7966
7970
|
}
|
|
7967
7971
|
});
|
|
7968
|
-
const _hoisted_1$
|
|
7972
|
+
const _hoisted_1$F = { class: "lupa-facet-label-text" };
|
|
7969
7973
|
const _hoisted_2$u = {
|
|
7970
7974
|
key: 0,
|
|
7971
7975
|
class: "lupa-facet-content",
|
|
@@ -8090,7 +8094,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
8090
8094
|
"data-cy": "lupa-search-result-facet-label",
|
|
8091
8095
|
onClick: toggleFacet
|
|
8092
8096
|
}, [
|
|
8093
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
8097
|
+
vue.createElementVNode("div", _hoisted_1$F, vue.toDisplayString(facet.value.label), 1),
|
|
8094
8098
|
vue.createElementVNode("div", {
|
|
8095
8099
|
class: vue.normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
|
|
8096
8100
|
}, null, 2)
|
|
@@ -8113,7 +8117,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
8113
8117
|
};
|
|
8114
8118
|
}
|
|
8115
8119
|
}));
|
|
8116
|
-
const _hoisted_1$
|
|
8120
|
+
const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
|
|
8117
8121
|
const _hoisted_2$t = {
|
|
8118
8122
|
key: 0,
|
|
8119
8123
|
class: "lupa-facets-title"
|
|
@@ -8152,7 +8156,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
8152
8156
|
};
|
|
8153
8157
|
return (_ctx, _cache) => {
|
|
8154
8158
|
var _a;
|
|
8155
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8159
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
|
|
8156
8160
|
_ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
|
|
8157
8161
|
vue.createElementVNode("div", {
|
|
8158
8162
|
class: vue.normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
|
|
@@ -8174,7 +8178,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
8174
8178
|
};
|
|
8175
8179
|
}
|
|
8176
8180
|
});
|
|
8177
|
-
const _hoisted_1$
|
|
8181
|
+
const _hoisted_1$D = ["onClick"];
|
|
8178
8182
|
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
8179
8183
|
__name: "FacetsButton",
|
|
8180
8184
|
props: {
|
|
@@ -8195,11 +8199,11 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
8195
8199
|
key: 0,
|
|
8196
8200
|
class: "lupa-facets-button-filter",
|
|
8197
8201
|
onClick: vue.withModifiers(handleClick, ["stop"])
|
|
8198
|
-
}, vue.toDisplayString(label.value), 9, _hoisted_1$
|
|
8202
|
+
}, vue.toDisplayString(label.value), 9, _hoisted_1$D)) : vue.createCommentVNode("", true);
|
|
8199
8203
|
};
|
|
8200
8204
|
}
|
|
8201
8205
|
});
|
|
8202
|
-
const _hoisted_1$
|
|
8206
|
+
const _hoisted_1$C = { class: "lupa-search-result-facets" };
|
|
8203
8207
|
const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
|
|
8204
8208
|
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
8205
8209
|
__name: "Facets",
|
|
@@ -8284,7 +8288,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
8284
8288
|
emit("filter");
|
|
8285
8289
|
};
|
|
8286
8290
|
return (_ctx, _cache) => {
|
|
8287
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8291
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
|
|
8288
8292
|
regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
8289
8293
|
key: 0,
|
|
8290
8294
|
options: _ctx.options,
|
|
@@ -8306,7 +8310,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
8306
8310
|
};
|
|
8307
8311
|
}
|
|
8308
8312
|
});
|
|
8309
|
-
const _hoisted_1$
|
|
8313
|
+
const _hoisted_1$B = {
|
|
8310
8314
|
id: "lupa-search-result-filters",
|
|
8311
8315
|
class: "lupa-search-result-filters"
|
|
8312
8316
|
};
|
|
@@ -8343,7 +8347,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
8343
8347
|
__expose({ fetch: fetch2 });
|
|
8344
8348
|
return (_ctx, _cache) => {
|
|
8345
8349
|
var _a;
|
|
8346
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8350
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
8347
8351
|
showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Q, {
|
|
8348
8352
|
key: 0,
|
|
8349
8353
|
options: _ctx.options.currentFilters,
|
|
@@ -8364,7 +8368,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
8364
8368
|
};
|
|
8365
8369
|
}
|
|
8366
8370
|
});
|
|
8367
|
-
const _hoisted_1$
|
|
8371
|
+
const _hoisted_1$A = {
|
|
8368
8372
|
key: 0,
|
|
8369
8373
|
class: "lupa-mobile-filter-sidebar"
|
|
8370
8374
|
};
|
|
@@ -8408,7 +8412,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
8408
8412
|
handleMobileToggle();
|
|
8409
8413
|
};
|
|
8410
8414
|
return (_ctx, _cache) => {
|
|
8411
|
-
return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8415
|
+
return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
8412
8416
|
vue.createElementVNode("div", {
|
|
8413
8417
|
class: "lupa-sidebar-close",
|
|
8414
8418
|
onClick: vue.withModifiers(handleMobileToggle, ["stop"])
|
|
@@ -8436,7 +8440,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
8436
8440
|
};
|
|
8437
8441
|
}
|
|
8438
8442
|
});
|
|
8439
|
-
const _hoisted_1$
|
|
8443
|
+
const _hoisted_1$z = { id: "lupa-search-results-breadcrumbs" };
|
|
8440
8444
|
const _hoisted_2$q = ["href", "onClick"];
|
|
8441
8445
|
const _hoisted_3$k = {
|
|
8442
8446
|
key: 1,
|
|
@@ -8468,7 +8472,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
8468
8472
|
handleRoutingEvent(link, event, hasEventRouting.value);
|
|
8469
8473
|
};
|
|
8470
8474
|
return (_ctx, _cache) => {
|
|
8471
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8475
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
|
|
8472
8476
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(breadcrumbsValue.value, (breadcrumb, index) => {
|
|
8473
8477
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
8474
8478
|
class: "lupa-search-results-breadcrumb",
|
|
@@ -8490,9 +8494,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
8490
8494
|
};
|
|
8491
8495
|
}
|
|
8492
8496
|
});
|
|
8493
|
-
const _hoisted_1$
|
|
8497
|
+
const _hoisted_1$y = {
|
|
8494
8498
|
id: "lupa-search-result-filters",
|
|
8495
|
-
class: "lupa-search-result-filters"
|
|
8499
|
+
class: "lupa-search-result-filters lupa-search-result-top-filters"
|
|
8496
8500
|
};
|
|
8497
8501
|
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
8498
8502
|
__name: "FiltersTopDropdown",
|
|
@@ -8506,7 +8510,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
8506
8510
|
};
|
|
8507
8511
|
return (_ctx, _cache) => {
|
|
8508
8512
|
var _a;
|
|
8509
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8513
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
|
|
8510
8514
|
_ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
|
|
8511
8515
|
key: 0,
|
|
8512
8516
|
options: _ctx.options.facets,
|
|
@@ -8518,7 +8522,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
8518
8522
|
};
|
|
8519
8523
|
}
|
|
8520
8524
|
});
|
|
8521
|
-
const _hoisted_1$
|
|
8525
|
+
const _hoisted_1$x = { id: "lupa-search-results-layout-selection" };
|
|
8522
8526
|
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
8523
8527
|
__name: "SearchResultsLayoutSelection",
|
|
8524
8528
|
setup(__props) {
|
|
@@ -8530,7 +8534,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
8530
8534
|
searchResultStore.setLayout(layout2);
|
|
8531
8535
|
};
|
|
8532
8536
|
return (_ctx, _cache) => {
|
|
8533
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8537
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
|
|
8534
8538
|
vue.createElementVNode("div", {
|
|
8535
8539
|
class: vue.normalizeClass([
|
|
8536
8540
|
"lupa-layout-selection-grid",
|
|
@@ -8552,7 +8556,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
8552
8556
|
};
|
|
8553
8557
|
}
|
|
8554
8558
|
});
|
|
8555
|
-
const _hoisted_1$
|
|
8559
|
+
const _hoisted_1$w = {
|
|
8556
8560
|
key: 0,
|
|
8557
8561
|
class: "lupa-mobile-toggle-filter-count"
|
|
8558
8562
|
};
|
|
@@ -8574,12 +8578,12 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
8574
8578
|
onClick: handleMobileToggle
|
|
8575
8579
|
}, [
|
|
8576
8580
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
8577
|
-
_ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
8581
|
+
_ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$w, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
|
|
8578
8582
|
], 2);
|
|
8579
8583
|
};
|
|
8580
8584
|
}
|
|
8581
8585
|
});
|
|
8582
|
-
const _hoisted_1$
|
|
8586
|
+
const _hoisted_1$v = {
|
|
8583
8587
|
key: 0,
|
|
8584
8588
|
id: "lupa-search-results-page-select",
|
|
8585
8589
|
"data-cy": "lupa-search-results-page-select"
|
|
@@ -8670,7 +8674,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
8670
8674
|
}
|
|
8671
8675
|
};
|
|
8672
8676
|
return (_ctx, _cache) => {
|
|
8673
|
-
return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8677
|
+
return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
|
|
8674
8678
|
showBack.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
8675
8679
|
key: 0,
|
|
8676
8680
|
class: vue.normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
|
|
@@ -8714,7 +8718,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
8714
8718
|
};
|
|
8715
8719
|
}
|
|
8716
8720
|
});
|
|
8717
|
-
const _hoisted_1$
|
|
8721
|
+
const _hoisted_1$u = {
|
|
8718
8722
|
id: "lupa-search-results-page-size",
|
|
8719
8723
|
"data-cy": "lupa-search-results-page-size"
|
|
8720
8724
|
};
|
|
@@ -8750,7 +8754,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
8750
8754
|
});
|
|
8751
8755
|
};
|
|
8752
8756
|
return (_ctx, _cache) => {
|
|
8753
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8757
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
|
|
8754
8758
|
vue.createElementVNode("div", _hoisted_2$o, [
|
|
8755
8759
|
vue.createElementVNode("label", _hoisted_3$i, vue.toDisplayString(label.value), 1),
|
|
8756
8760
|
vue.createElementVNode("select", {
|
|
@@ -8773,7 +8777,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
8773
8777
|
};
|
|
8774
8778
|
}
|
|
8775
8779
|
});
|
|
8776
|
-
const _hoisted_1$
|
|
8780
|
+
const _hoisted_1$t = {
|
|
8777
8781
|
id: "lupa-search-results-sort",
|
|
8778
8782
|
class: "lupa-search-results-sort"
|
|
8779
8783
|
};
|
|
@@ -8830,7 +8834,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
8830
8834
|
previousKey.value = selectedKey.value;
|
|
8831
8835
|
};
|
|
8832
8836
|
return (_ctx, _cache) => {
|
|
8833
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8837
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
|
|
8834
8838
|
vue.createElementVNode("div", _hoisted_2$n, [
|
|
8835
8839
|
vue.createElementVNode("label", _hoisted_3$h, vue.toDisplayString(_ctx.options.label), 1),
|
|
8836
8840
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
@@ -8855,7 +8859,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
8855
8859
|
};
|
|
8856
8860
|
}
|
|
8857
8861
|
});
|
|
8858
|
-
const _hoisted_1$
|
|
8862
|
+
const _hoisted_1$s = { class: "lupa-toolbar-left" };
|
|
8859
8863
|
const _hoisted_2$m = {
|
|
8860
8864
|
key: 0,
|
|
8861
8865
|
class: "lupa-toolbar-right-title"
|
|
@@ -8977,7 +8981,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
8977
8981
|
id: "lupa-search-results-toolbar",
|
|
8978
8982
|
class: vue.normalizeClass({ "lupa-filter-no-results": !hasResults.value })
|
|
8979
8983
|
}, [
|
|
8980
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
8984
|
+
vue.createElementVNode("div", _hoisted_1$s, [
|
|
8981
8985
|
toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$m, vue.toDisplayString(toolbarLeftLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
8982
8986
|
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g)),
|
|
8983
8987
|
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
|
|
@@ -9031,7 +9035,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
9031
9035
|
};
|
|
9032
9036
|
}
|
|
9033
9037
|
});
|
|
9034
|
-
const _hoisted_1$
|
|
9038
|
+
const _hoisted_1$r = ["innerHTML"];
|
|
9035
9039
|
const _hoisted_2$l = ["title"];
|
|
9036
9040
|
const _hoisted_3$f = {
|
|
9037
9041
|
key: 0,
|
|
@@ -9071,7 +9075,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
9071
9075
|
class: "lupa-search-results-product-title",
|
|
9072
9076
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
9073
9077
|
innerHTML: title.value
|
|
9074
|
-
}, null, 12, _hoisted_1$
|
|
9078
|
+
}, null, 12, _hoisted_1$r)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
9075
9079
|
key: 1,
|
|
9076
9080
|
class: "lupa-search-results-product-title",
|
|
9077
9081
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
@@ -9088,7 +9092,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
9088
9092
|
};
|
|
9089
9093
|
}
|
|
9090
9094
|
});
|
|
9091
|
-
const _hoisted_1$
|
|
9095
|
+
const _hoisted_1$q = ["innerHTML"];
|
|
9092
9096
|
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
9093
9097
|
__name: "SearchResultsProductDescription",
|
|
9094
9098
|
props: {
|
|
@@ -9113,7 +9117,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
9113
9117
|
class: "lupa-search-results-product-description",
|
|
9114
9118
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
9115
9119
|
innerHTML: description.value
|
|
9116
|
-
}, null, 12, _hoisted_1$
|
|
9120
|
+
}, null, 12, _hoisted_1$q)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
9117
9121
|
key: 1,
|
|
9118
9122
|
class: "lupa-search-results-product-description",
|
|
9119
9123
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
|
|
@@ -9121,7 +9125,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
9121
9125
|
};
|
|
9122
9126
|
}
|
|
9123
9127
|
});
|
|
9124
|
-
const _hoisted_1$
|
|
9128
|
+
const _hoisted_1$p = { id: "lupa-search-results-rating" };
|
|
9125
9129
|
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
9126
9130
|
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
9127
9131
|
const _hoisted_4$9 = ["innerHTML"];
|
|
@@ -9160,7 +9164,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
9160
9164
|
return generateLink(props.options.links.ratingDetails, props.item);
|
|
9161
9165
|
});
|
|
9162
9166
|
return (_ctx, _cache) => {
|
|
9163
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9167
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
|
|
9164
9168
|
vue.createElementVNode("div", _hoisted_2$k, [
|
|
9165
9169
|
vue.createElementVNode("div", _hoisted_3$e, [
|
|
9166
9170
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
|
|
@@ -9194,7 +9198,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
9194
9198
|
};
|
|
9195
9199
|
}
|
|
9196
9200
|
});
|
|
9197
|
-
const _hoisted_1$
|
|
9201
|
+
const _hoisted_1$o = {
|
|
9198
9202
|
class: "lupa-search-results-product-regular-price",
|
|
9199
9203
|
"data-cy": "lupa-search-results-product-regular-price"
|
|
9200
9204
|
};
|
|
@@ -9216,14 +9220,10 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
9216
9220
|
);
|
|
9217
9221
|
});
|
|
9218
9222
|
return (_ctx, _cache) => {
|
|
9219
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9223
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, vue.toDisplayString(price.value), 1);
|
|
9220
9224
|
};
|
|
9221
9225
|
}
|
|
9222
9226
|
});
|
|
9223
|
-
const _hoisted_1$o = {
|
|
9224
|
-
class: "lupa-search-results-product-price",
|
|
9225
|
-
"data-cy": "lupa-search-results-product-price"
|
|
9226
|
-
};
|
|
9227
9227
|
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
9228
9228
|
__name: "SearchResultsProductPrice",
|
|
9229
9229
|
props: {
|
|
@@ -9233,6 +9233,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
9233
9233
|
},
|
|
9234
9234
|
setup(__props) {
|
|
9235
9235
|
const props = __props;
|
|
9236
|
+
const className = vue.computed(() => {
|
|
9237
|
+
return props.options.className;
|
|
9238
|
+
});
|
|
9236
9239
|
const price = vue.computed(() => {
|
|
9237
9240
|
var _a, _b;
|
|
9238
9241
|
return formatPrice(
|
|
@@ -9242,9 +9245,12 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
9242
9245
|
);
|
|
9243
9246
|
});
|
|
9244
9247
|
return (_ctx, _cache) => {
|
|
9245
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
9248
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
9249
|
+
class: vue.normalizeClass([className.value, "lupa-search-results-product-price"]),
|
|
9250
|
+
"data-cy": "lupa-search-results-product-price"
|
|
9251
|
+
}, [
|
|
9246
9252
|
vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
|
|
9247
|
-
]);
|
|
9253
|
+
], 2);
|
|
9248
9254
|
};
|
|
9249
9255
|
}
|
|
9250
9256
|
});
|