@plurix/ecom-components 1.17.0-commerce → 1.17.2-commerce
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/packages/ProductCard/ProductCardButton/AddToCartButton.d.ts +2 -1
- package/dist/packages/ProductCard/ProductCardButton/AddToCartButton.js +11 -8
- package/dist/packages/ProductCard/ProductCardButton/index.d.ts +2 -1
- package/dist/packages/ProductCard/ProductCardButton/index.js +20 -13
- package/dist/packages/ProductCard/ProductCardHorizontal/index.d.ts +1 -1
- package/dist/packages/ProductCard/ProductCardHorizontal/index.js +27 -25
- package/dist/packages/ProductCard/ProductCardVertical/index.d.ts +1 -1
- package/dist/packages/ProductCard/ProductCardVertical/index.js +24 -22
- package/dist/packages/ProductCard/index.d.ts +1 -1
- package/dist/packages/ProductCard/index.js +40 -37
- package/dist/styles/product-card.global.css +1 -1
- package/dist/types/ProductCard.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface AddToCartButtonProps {
|
|
2
2
|
handleAddToCart: () => void;
|
|
3
|
+
buttonAddToCartText: string;
|
|
3
4
|
}
|
|
4
|
-
export declare const AddToCartButton: ({ handleAddToCart }: AddToCartButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const AddToCartButton: ({ handleAddToCart, buttonAddToCartText }: AddToCartButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { CartShop as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { CartShop as i } from "../../../assets/svgs/CartShop.js";
|
|
3
|
+
import n from "./CustomQuantitySelector/Button.js";
|
|
4
|
+
const e = ({
|
|
5
|
+
handleAddToCart: t,
|
|
6
|
+
buttonAddToCartText: o
|
|
7
|
+
}) => /* @__PURE__ */ r(
|
|
8
|
+
n,
|
|
6
9
|
{
|
|
7
10
|
onClick: t,
|
|
8
11
|
"data-button-variant": "primary",
|
|
@@ -10,11 +13,11 @@ const m = ({ handleAddToCart: t }) => /* @__PURE__ */ o(
|
|
|
10
13
|
title: "Add to cart Sales",
|
|
11
14
|
className: "product-card-button",
|
|
12
15
|
children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
16
|
+
/* @__PURE__ */ a(i, {}),
|
|
17
|
+
o
|
|
15
18
|
]
|
|
16
19
|
}
|
|
17
20
|
);
|
|
18
21
|
export {
|
|
19
|
-
|
|
22
|
+
e as AddToCartButton
|
|
20
23
|
};
|
|
@@ -4,7 +4,8 @@ interface ProductCardButtonProps {
|
|
|
4
4
|
addToCartAction: () => void;
|
|
5
5
|
quantitySelectorAction: ProductCardProps['quantitySelectorAction'];
|
|
6
6
|
productInCart: boolean;
|
|
7
|
+
buttonAddToCartText: string;
|
|
7
8
|
layout?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const ProductCardButton: ({ addToCartAction, quantitySelectorAction, productInCart, layout }: ProductCardButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ProductCardButton: ({ addToCartAction, quantitySelectorAction, productInCart, layout, buttonAddToCartText }: ProductCardButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var m = Object.defineProperty, p = Object.defineProperties;
|
|
2
|
+
var f = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var n = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var i = (o, t, r) => t in o ?
|
|
4
|
+
var l = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var i = (o, t, r) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r, u = (o, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
l.call(t, r) && i(o, r, t[r]);
|
|
8
8
|
if (n)
|
|
9
9
|
for (var r of n(t))
|
|
10
|
-
|
|
10
|
+
C.call(t, r) && i(o, r, t[r]);
|
|
11
11
|
return o;
|
|
12
|
-
}, a = (o, t) =>
|
|
12
|
+
}, a = (o, t) => p(o, f(t));
|
|
13
13
|
import { jsx as d } from "react/jsx-runtime";
|
|
14
|
-
import { AddToCartButton as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
14
|
+
import { AddToCartButton as h } from "./AddToCartButton.js";
|
|
15
|
+
import s from "./QuantitySelector.js";
|
|
16
|
+
const b = ({
|
|
17
17
|
addToCartAction: o,
|
|
18
18
|
quantitySelectorAction: t,
|
|
19
19
|
productInCart: r,
|
|
20
|
-
layout: c
|
|
21
|
-
|
|
20
|
+
layout: c,
|
|
21
|
+
buttonAddToCartText: e
|
|
22
|
+
}) => /* @__PURE__ */ d("div", { id: "product-card-button", children: r ? /* @__PURE__ */ d(s, a(u({}, t), { layout: c })) : /* @__PURE__ */ d(
|
|
23
|
+
h,
|
|
24
|
+
{
|
|
25
|
+
handleAddToCart: o,
|
|
26
|
+
buttonAddToCartText: e
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
22
29
|
export {
|
|
23
|
-
|
|
30
|
+
b as ProductCardButton
|
|
24
31
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProductCardProps } from '../../../types/ProductCard';
|
|
2
2
|
|
|
3
|
-
export declare const ProductCardHorizontal: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, addToCartAction, quantitySelectorAction, productInCart, openModal }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ProductCardHorizontal: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, addToCartAction, quantitySelectorAction, productInCart, openModal, buttonAddToCartText }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as s, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
|
-
import { ProductCardUnavailable as
|
|
4
|
-
import { ProductCardBadgeKg as
|
|
5
|
-
import { ProductCardDiscountBadge as
|
|
6
|
-
import { ProductCardButton as
|
|
7
|
-
import { ProductCardImage as
|
|
8
|
-
import { ProductCardName as
|
|
9
|
-
import { ProductCardPrice as
|
|
10
|
-
import { ProductCardPromotionFlag as
|
|
11
|
-
const
|
|
3
|
+
import { ProductCardUnavailable as N } from "../ProducCardUnavailable/index.js";
|
|
4
|
+
import { ProductCardBadgeKg as O } from "../ProductCardBadge/ProductCardBadgeKg.js";
|
|
5
|
+
import { ProductCardDiscountBadge as M } from "../ProductCardBadge/ProductCardDiscountBadge.js";
|
|
6
|
+
import { ProductCardButton as p } from "../ProductCardButton/index.js";
|
|
7
|
+
import { ProductCardImage as y } from "../ProductCardImage/index.js";
|
|
8
|
+
import { ProductCardName as U } from "../ProductCardName/index.js";
|
|
9
|
+
import { ProductCardPrice as E } from "../ProductCardPrice/index.js";
|
|
10
|
+
import { ProductCardPromotionFlag as F } from "../ProductCardPromotionFlag/index.js";
|
|
11
|
+
const q = ({
|
|
12
12
|
account: r,
|
|
13
13
|
hasPlusFriendBadge: c,
|
|
14
14
|
promotion: i,
|
|
@@ -22,13 +22,14 @@ const T = ({
|
|
|
22
22
|
addToCartAction: g,
|
|
23
23
|
quantitySelectorAction: h,
|
|
24
24
|
productInCart: b,
|
|
25
|
-
openModal: v
|
|
25
|
+
openModal: v,
|
|
26
|
+
buttonAddToCartText: S
|
|
26
27
|
}) => {
|
|
27
28
|
var m, f;
|
|
28
|
-
const [
|
|
29
|
+
const [k, D] = d(!1), [x, z] = d(!1), B = r === "domolivio" ? "#EBE0CF" : "#FDF3DE";
|
|
29
30
|
if (P)
|
|
30
31
|
return /* @__PURE__ */ s(
|
|
31
|
-
|
|
32
|
+
N,
|
|
32
33
|
{
|
|
33
34
|
image: (m = e.image) == null ? void 0 : m[0],
|
|
34
35
|
name: e.name,
|
|
@@ -42,7 +43,7 @@ const T = ({
|
|
|
42
43
|
{
|
|
43
44
|
className: "product-card-horizontal",
|
|
44
45
|
style: {
|
|
45
|
-
backgroundColor: u ?
|
|
46
|
+
backgroundColor: u ? B : "var(--color-grayScale-faded)"
|
|
46
47
|
},
|
|
47
48
|
children: [
|
|
48
49
|
/* @__PURE__ */ t(
|
|
@@ -52,7 +53,7 @@ const T = ({
|
|
|
52
53
|
onClick: v,
|
|
53
54
|
children: [
|
|
54
55
|
/* @__PURE__ */ s(
|
|
55
|
-
|
|
56
|
+
y,
|
|
56
57
|
{
|
|
57
58
|
isProductClubAndClient: u,
|
|
58
59
|
variant: a,
|
|
@@ -64,26 +65,26 @@ const T = ({
|
|
|
64
65
|
),
|
|
65
66
|
/* @__PURE__ */ t("div", { className: "product-card-horizontal-description", children: [
|
|
66
67
|
/* @__PURE__ */ t("div", { className: "product-card-section-name", children: [
|
|
67
|
-
/* @__PURE__ */ s(
|
|
68
|
+
/* @__PURE__ */ s(U, { name: e.name }),
|
|
68
69
|
/* @__PURE__ */ t(
|
|
69
70
|
"div",
|
|
70
71
|
{
|
|
71
72
|
className: "product-card-section-badge-horizontal",
|
|
72
73
|
style: {
|
|
73
|
-
display: !
|
|
74
|
+
display: !x && !k ? "none" : ""
|
|
74
75
|
},
|
|
75
76
|
children: [
|
|
76
77
|
/* @__PURE__ */ s(
|
|
77
|
-
|
|
78
|
+
O,
|
|
78
79
|
{
|
|
79
80
|
unitMultiplier: e.unitMultiplier,
|
|
80
81
|
skuSpecifications: e.skuSpecifications,
|
|
81
82
|
measurementUnit: e.measurementUnit,
|
|
82
|
-
setIsShowProductBadge:
|
|
83
|
+
setIsShowProductBadge: z
|
|
83
84
|
}
|
|
84
85
|
),
|
|
85
86
|
/* @__PURE__ */ s(
|
|
86
|
-
|
|
87
|
+
M,
|
|
87
88
|
{
|
|
88
89
|
offers: e.offers,
|
|
89
90
|
defaultScListPrice: l,
|
|
@@ -92,7 +93,7 @@ const T = ({
|
|
|
92
93
|
skuSpecifications: e.skuSpecifications,
|
|
93
94
|
unitMultiplier: e.unitMultiplier,
|
|
94
95
|
hasPromotionalPrice: o,
|
|
95
|
-
setIsShowProductBadge:
|
|
96
|
+
setIsShowProductBadge: D
|
|
96
97
|
}
|
|
97
98
|
)
|
|
98
99
|
]
|
|
@@ -100,7 +101,7 @@ const T = ({
|
|
|
100
101
|
)
|
|
101
102
|
] }),
|
|
102
103
|
a === "horizontal" && /* @__PURE__ */ s(
|
|
103
|
-
|
|
104
|
+
F,
|
|
104
105
|
{
|
|
105
106
|
variant: a,
|
|
106
107
|
productSectionBadge: {
|
|
@@ -113,7 +114,7 @@ const T = ({
|
|
|
113
114
|
}
|
|
114
115
|
),
|
|
115
116
|
/* @__PURE__ */ s(
|
|
116
|
-
|
|
117
|
+
E,
|
|
117
118
|
{
|
|
118
119
|
account: r,
|
|
119
120
|
isClubClient: n,
|
|
@@ -138,12 +139,13 @@ const T = ({
|
|
|
138
139
|
}
|
|
139
140
|
),
|
|
140
141
|
/* @__PURE__ */ s(
|
|
141
|
-
|
|
142
|
+
p,
|
|
142
143
|
{
|
|
143
144
|
addToCartAction: g,
|
|
144
145
|
quantitySelectorAction: h,
|
|
145
146
|
productInCart: b,
|
|
146
|
-
layout: a
|
|
147
|
+
layout: a,
|
|
148
|
+
buttonAddToCartText: S
|
|
147
149
|
}
|
|
148
150
|
)
|
|
149
151
|
]
|
|
@@ -151,5 +153,5 @@ const T = ({
|
|
|
151
153
|
);
|
|
152
154
|
};
|
|
153
155
|
export {
|
|
154
|
-
|
|
156
|
+
q as ProductCardHorizontal
|
|
155
157
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProductCardProps } from '../../../types/ProductCard';
|
|
2
2
|
|
|
3
|
-
export declare const ProductCardVertical: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, hasClub, openModal, addToCartAction, quantitySelectorAction, productInCart }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ProductCardVertical: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, hasClub, openModal, addToCartAction, quantitySelectorAction, productInCart, buttonAddToCartText }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f } from "react";
|
|
3
|
-
import { ProductCardUnavailable as
|
|
4
|
-
import { ProductCardBadgeKg as
|
|
5
|
-
import { ProductCardDiscountBadge as
|
|
6
|
-
import { ProductCardButton as
|
|
7
|
-
import { ProductCardImage as
|
|
8
|
-
import { ProductCardName as
|
|
9
|
-
import { ProductCardPrice as
|
|
10
|
-
const
|
|
3
|
+
import { ProductCardUnavailable as M } from "../ProducCardUnavailable/index.js";
|
|
4
|
+
import { ProductCardBadgeKg as y } from "../ProductCardBadge/ProductCardBadgeKg.js";
|
|
5
|
+
import { ProductCardDiscountBadge as U } from "../ProductCardBadge/ProductCardDiscountBadge.js";
|
|
6
|
+
import { ProductCardButton as x } from "../ProductCardButton/index.js";
|
|
7
|
+
import { ProductCardImage as E } from "../ProductCardImage/index.js";
|
|
8
|
+
import { ProductCardName as I } from "../ProductCardName/index.js";
|
|
9
|
+
import { ProductCardPrice as K } from "../ProductCardPrice/index.js";
|
|
10
|
+
const H = ({
|
|
11
11
|
account: t,
|
|
12
12
|
hasPlusFriendBadge: o,
|
|
13
13
|
promotion: d,
|
|
@@ -22,13 +22,14 @@ const G = ({
|
|
|
22
22
|
openModal: g,
|
|
23
23
|
addToCartAction: b,
|
|
24
24
|
quantitySelectorAction: v,
|
|
25
|
-
productInCart: h
|
|
25
|
+
productInCart: h,
|
|
26
|
+
buttonAddToCartText: S
|
|
26
27
|
}) => {
|
|
27
28
|
var l, u;
|
|
28
|
-
const [
|
|
29
|
+
const [k, D] = f(!1), [N, O] = f(!1), B = t === "domolivio" ? "#EBE0CF" : "#FDF3DE";
|
|
29
30
|
if (p)
|
|
30
31
|
return /* @__PURE__ */ e(
|
|
31
|
-
|
|
32
|
+
M,
|
|
32
33
|
{
|
|
33
34
|
image: (l = i.image) == null ? void 0 : l[0],
|
|
34
35
|
name: i.name,
|
|
@@ -43,7 +44,7 @@ const G = ({
|
|
|
43
44
|
id: "product-card",
|
|
44
45
|
className: "product-card",
|
|
45
46
|
style: {
|
|
46
|
-
backgroundColor: n ?
|
|
47
|
+
backgroundColor: n ? B : "var(--color-grayScale-faded)"
|
|
47
48
|
},
|
|
48
49
|
children: [
|
|
49
50
|
/* @__PURE__ */ s(
|
|
@@ -53,7 +54,7 @@ const G = ({
|
|
|
53
54
|
onClick: g,
|
|
54
55
|
children: [
|
|
55
56
|
/* @__PURE__ */ e(
|
|
56
|
-
|
|
57
|
+
E,
|
|
57
58
|
{
|
|
58
59
|
isProductClubAndClient: n,
|
|
59
60
|
variant: r,
|
|
@@ -65,26 +66,26 @@ const G = ({
|
|
|
65
66
|
),
|
|
66
67
|
/* @__PURE__ */ s("div", { className: "product-card-description", children: [
|
|
67
68
|
/* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
+
/* @__PURE__ */ e(I, { name: i.name }),
|
|
69
70
|
/* @__PURE__ */ s(
|
|
70
71
|
"div",
|
|
71
72
|
{
|
|
72
73
|
className: "product-card-section-badge",
|
|
73
74
|
style: {
|
|
74
|
-
display: !
|
|
75
|
+
display: !N && !k ? "none" : ""
|
|
75
76
|
},
|
|
76
77
|
children: [
|
|
77
78
|
/* @__PURE__ */ e(
|
|
78
|
-
|
|
79
|
+
y,
|
|
79
80
|
{
|
|
80
81
|
unitMultiplier: i.unitMultiplier,
|
|
81
82
|
skuSpecifications: i.skuSpecifications,
|
|
82
83
|
measurementUnit: i.measurementUnit,
|
|
83
|
-
setIsShowProductBadge:
|
|
84
|
+
setIsShowProductBadge: O
|
|
84
85
|
}
|
|
85
86
|
),
|
|
86
87
|
/* @__PURE__ */ e(
|
|
87
|
-
|
|
88
|
+
U,
|
|
88
89
|
{
|
|
89
90
|
offers: i.offers,
|
|
90
91
|
defaultScListPrice: c,
|
|
@@ -93,7 +94,7 @@ const G = ({
|
|
|
93
94
|
skuSpecifications: i.skuSpecifications,
|
|
94
95
|
unitMultiplier: i.unitMultiplier,
|
|
95
96
|
hasPromotionalPrice: a,
|
|
96
|
-
setIsShowProductBadge:
|
|
97
|
+
setIsShowProductBadge: D
|
|
97
98
|
}
|
|
98
99
|
)
|
|
99
100
|
]
|
|
@@ -101,7 +102,7 @@ const G = ({
|
|
|
101
102
|
)
|
|
102
103
|
] }),
|
|
103
104
|
/* @__PURE__ */ e(
|
|
104
|
-
|
|
105
|
+
K,
|
|
105
106
|
{
|
|
106
107
|
account: t,
|
|
107
108
|
hasClub: C,
|
|
@@ -127,11 +128,12 @@ const G = ({
|
|
|
127
128
|
}
|
|
128
129
|
),
|
|
129
130
|
/* @__PURE__ */ e(
|
|
130
|
-
|
|
131
|
+
x,
|
|
131
132
|
{
|
|
132
133
|
addToCartAction: b,
|
|
133
134
|
quantitySelectorAction: v,
|
|
134
135
|
productInCart: h,
|
|
136
|
+
buttonAddToCartText: S,
|
|
135
137
|
layout: r
|
|
136
138
|
}
|
|
137
139
|
)
|
|
@@ -140,5 +142,5 @@ const G = ({
|
|
|
140
142
|
);
|
|
141
143
|
};
|
|
142
144
|
export {
|
|
143
|
-
|
|
145
|
+
H as ProductCardVertical
|
|
144
146
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProductCardProps } from '../../types/ProductCard';
|
|
2
2
|
|
|
3
|
-
export declare const ProductCard: ({ product, variant, account, hasPlusFriendBadge, hasPromotionalPrice, clubPrice, defaultScListPrice, hasClub, isClubClient, openModal, promotion, outOfStock, addToCartAction, quantitySelectorAction, productInCart }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ProductCard: ({ product, variant, account, hasPlusFriendBadge, hasPromotionalPrice, clubPrice, defaultScListPrice, hasClub, isClubClient, openModal, promotion, outOfStock, addToCartAction, quantitySelectorAction, productInCart, buttonAddToCartText }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,64 +1,67 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ProductCardHorizontal as
|
|
3
|
-
import { ProductCardVertical as
|
|
4
|
-
/* empty css */const
|
|
5
|
-
product:
|
|
1
|
+
import { jsx as G } from "react/jsx-runtime";
|
|
2
|
+
import { ProductCardHorizontal as K } from "./ProductCardHorizontal/index.js";
|
|
3
|
+
import { ProductCardVertical as N } from "./ProductCardVertical/index.js";
|
|
4
|
+
/* empty css */const X = ({
|
|
5
|
+
product: f,
|
|
6
6
|
variant: r,
|
|
7
|
-
account:
|
|
7
|
+
account: C,
|
|
8
8
|
hasPlusFriendBadge: i = !1,
|
|
9
9
|
hasPromotionalPrice: l,
|
|
10
|
-
clubPrice:
|
|
11
|
-
defaultScListPrice:
|
|
10
|
+
clubPrice: V,
|
|
11
|
+
defaultScListPrice: j,
|
|
12
12
|
hasClub: m,
|
|
13
|
-
isClubClient:
|
|
14
|
-
openModal:
|
|
15
|
-
promotion:
|
|
16
|
-
outOfStock:
|
|
13
|
+
isClubClient: J,
|
|
14
|
+
openModal: p,
|
|
15
|
+
promotion: s,
|
|
16
|
+
outOfStock: x,
|
|
17
17
|
addToCartAction: z,
|
|
18
18
|
quantitySelectorAction: H,
|
|
19
|
-
productInCart:
|
|
19
|
+
productInCart: w,
|
|
20
|
+
buttonAddToCartText: D
|
|
20
21
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
return r === "vertical" ? /* @__PURE__ */
|
|
23
|
-
|
|
22
|
+
const E = !!(m && J);
|
|
23
|
+
return r === "vertical" ? /* @__PURE__ */ G(
|
|
24
|
+
N,
|
|
24
25
|
{
|
|
25
|
-
isClubClient:
|
|
26
|
+
isClubClient: E,
|
|
26
27
|
hasClub: m,
|
|
27
|
-
defaultScListPrice:
|
|
28
|
+
defaultScListPrice: j,
|
|
28
29
|
hasPromotionalPrice: l,
|
|
29
|
-
product:
|
|
30
|
+
product: f,
|
|
30
31
|
variant: r,
|
|
31
|
-
outOfStock:
|
|
32
|
-
promotion:
|
|
33
|
-
clubPrice:
|
|
34
|
-
openModal:
|
|
32
|
+
outOfStock: x,
|
|
33
|
+
promotion: s,
|
|
34
|
+
clubPrice: V,
|
|
35
|
+
openModal: p,
|
|
35
36
|
hasPlusFriendBadge: i,
|
|
36
37
|
addToCartAction: z,
|
|
37
38
|
quantitySelectorAction: H,
|
|
38
|
-
productInCart:
|
|
39
|
-
account:
|
|
39
|
+
productInCart: w,
|
|
40
|
+
account: C,
|
|
41
|
+
buttonAddToCartText: D
|
|
40
42
|
}
|
|
41
|
-
) : /* @__PURE__ */
|
|
42
|
-
|
|
43
|
+
) : /* @__PURE__ */ G(
|
|
44
|
+
K,
|
|
43
45
|
{
|
|
44
|
-
openModal:
|
|
45
|
-
isClubClient:
|
|
46
|
+
openModal: p,
|
|
47
|
+
isClubClient: E,
|
|
46
48
|
hasClub: m,
|
|
47
|
-
defaultScListPrice:
|
|
49
|
+
defaultScListPrice: j,
|
|
48
50
|
hasPromotionalPrice: l,
|
|
49
|
-
product:
|
|
51
|
+
product: f,
|
|
50
52
|
variant: r,
|
|
51
53
|
hasPlusFriendBadge: i,
|
|
52
|
-
outOfStock:
|
|
53
|
-
promotion:
|
|
54
|
-
clubPrice:
|
|
54
|
+
outOfStock: x,
|
|
55
|
+
promotion: s,
|
|
56
|
+
clubPrice: V,
|
|
55
57
|
addToCartAction: z,
|
|
56
58
|
quantitySelectorAction: H,
|
|
57
|
-
productInCart:
|
|
58
|
-
account:
|
|
59
|
+
productInCart: w,
|
|
60
|
+
account: C,
|
|
61
|
+
buttonAddToCartText: D
|
|
59
62
|
}
|
|
60
63
|
);
|
|
61
64
|
};
|
|
62
65
|
export {
|
|
63
|
-
|
|
66
|
+
X as ProductCard
|
|
64
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{-webkit-tap-highlight-color:transparent}:root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-radius:8px;overflow:hidden}.clean-button{display:flex;flex-direction:column;appearance:none;border:none;background:none;outline:none;text-align:left;cursor:pointer;font:inherit;color:inherit;margin:0;padding:0;text-transform:none;height:100%}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;height:100%}.invisible-button{width:100%;height:46px;background-color:transparent}.product-card-horizontal .invisible-button{height:38px}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{position:relative;display:flex;flex-direction:column;width:304px;height:100%;min-height:163px;max-height:206px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-section-product-horizontal{display:flex;flex-direction:row;position:relative;height:100%;border-radius:8px}.product-card-section-product-horizontal .product-card-image-container{position:relative;align-self:flex-start;padding:0 var(--product-card-horizontal-padding);height:100%}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain;margin-top:8px;margin-bottom:auto}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;height:100%;width:100%;padding:7.5px 8px;border-radius:8px;border-bottom-left-radius:unset;border-top-left-radius:unset}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1;background-color:var(--color-grayScale-faded)}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:calc(100% - 16px);height:40px;padding:8px 16px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-button span{display:flex;align-items:center;gap:4px}#product-card-button{position:absolute;bottom:0;left:0;width:stretch}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:var(--color-grayScale-white)}.product-card .product-card-image-container{border-top:7px}.product-card-horizontal .product-card-image-container{border-top-left-radius:7px;border-bottom-left-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;border-radius:4px;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+.product-card-unavailable-text{width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-description{padding:8px 16px 0}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}.product-card .quantity-selector,.product-card .product-card-button,.product-card-horizontal .quantity-selector,.product-card-horizontal .product-card-button{width:calc(100% - 32px);margin:8px 16px}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:calc(100% - 16px);height:40px;margin:8px;border:1px solid var(--color-grayScale-light);border-radius:20px;background-color:var(--color-grayScale-white);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:100%;padding:var(--space-0);background-color:#e6e6e6;border:unset;border-bottom-left-radius:20px;border-top-left-radius:20px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-top-right-radius:20px;border-top-left-radius:unset;border-bottom-right-radius:20px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}}}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@include media(">tablet"){.product-add-text p {font-size: var(--text-size-1); line-height: 18px;}}.product-card-unavailable-text{height:40px;margin:8px;align-content:center;border:1px solid var(--color-grayScale-light);border-radius:20px;position:absolute;bottom:0;left:0;width:stretch;background-color:var(--color-grayScale-lightest)}.product-card-unavailable-text p{text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;color:var(--color-grayScale-darkest)}
|
|
1
|
+
*{-webkit-tap-highlight-color:transparent}:root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-radius:8px;overflow:hidden}.clean-button{display:flex;flex-direction:column;appearance:none;border:none;background:none;outline:none;text-align:left;cursor:pointer;font:inherit;color:inherit;margin:0;padding:0;text-transform:none;height:100%}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;height:100%}.invisible-button{width:100%;height:46px;background-color:transparent}.product-card-horizontal .invisible-button{height:38px}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{position:relative;display:flex;flex-direction:column;width:304px;height:100%;min-height:163px;max-height:206px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-section-product-horizontal{display:flex;flex-direction:row;position:relative;height:100%;border-radius:8px}.product-card-section-product-horizontal .product-card-image-container{position:relative;align-self:flex-start;padding:0 var(--product-card-horizontal-padding);height:100%;min-height:163px;max-height:206px}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain;margin-top:8px;margin-bottom:auto}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;height:100%;width:100%;padding:7.5px 8px;border-radius:8px;border-bottom-left-radius:unset;border-top-left-radius:unset}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1;background-color:var(--color-grayScale-faded)}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:calc(100% - 16px);height:40px;padding:8px 16px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-button span{display:flex;align-items:center;gap:4px}#product-card-button{position:absolute;bottom:0;left:0;width:stretch}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:var(--color-grayScale-white)}.product-card .product-card-image-container{border-top:7px}.product-card-horizontal .product-card-image-container{border-top-left-radius:7px;border-bottom-left-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 16px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;border-radius:4px;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+.product-card-unavailable-text{width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-description{padding:8px 16px 0}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{width:calc(100% - 32px);max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}.product-card .quantity-selector,.product-card .product-card-button,.product-card-horizontal .quantity-selector,.product-card-horizontal .product-card-button{width:calc(100% - 32px);margin:8px 16px}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:calc(100% - 16px);height:40px;margin:8px;border:1px solid var(--color-grayScale-light);border-radius:20px;background-color:var(--color-grayScale-white);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:100%;padding:var(--space-0);background-color:#e6e6e6;border:unset;border-bottom-left-radius:20px;border-top-left-radius:20px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-top-right-radius:20px;border-top-left-radius:unset;border-bottom-right-radius:20px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}}}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@include media(">tablet"){.product-add-text p {font-size: var(--text-size-1); line-height: 18px;}}.product-card-unavailable-text{height:40px;margin:8px;align-content:center;border:1px solid var(--color-grayScale-light);border-radius:20px;position:absolute;bottom:0;left:0;width:stretch;background-color:var(--color-grayScale-lightest)}.product-card-unavailable-text p{text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;color:var(--color-grayScale-darkest)}
|