@plurix/ecom-components 1.16.6-commerce.1 → 1.17.0-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 +1 -2
- package/dist/packages/ProductCard/ProductCardButton/AddToCartButton.js +8 -11
- package/dist/packages/ProductCard/ProductCardButton/index.d.ts +1 -2
- package/dist/packages/ProductCard/ProductCardButton/index.js +13 -20
- package/dist/packages/ProductCard/ProductCardHorizontal/index.d.ts +1 -1
- package/dist/packages/ProductCard/ProductCardHorizontal/index.js +25 -27
- package/dist/packages/ProductCard/ProductCardVertical/index.d.ts +1 -1
- package/dist/packages/ProductCard/ProductCardVertical/index.js +22 -24
- package/dist/packages/ProductCard/index.d.ts +1 -1
- package/dist/packages/ProductCard/index.js +37 -40
- package/dist/packages/Regionalization/components/Navigation.js +21 -21
- package/dist/types/ProductCard.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
interface AddToCartButtonProps {
|
|
2
2
|
handleAddToCart: () => void;
|
|
3
|
-
buttonAddToCartText: string;
|
|
4
3
|
}
|
|
5
|
-
export declare const AddToCartButton: ({ handleAddToCart
|
|
4
|
+
export declare const AddToCartButton: ({ handleAddToCart }: AddToCartButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { CartShop as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
buttonAddToCartText: o
|
|
7
|
-
}) => /* @__PURE__ */ r(
|
|
8
|
-
n,
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { CartShop as a } from "../../../assets/svgs/CartShop.js";
|
|
3
|
+
import i from "./CustomQuantitySelector/Button.js";
|
|
4
|
+
const m = ({ handleAddToCart: t }) => /* @__PURE__ */ o(
|
|
5
|
+
i,
|
|
9
6
|
{
|
|
10
7
|
onClick: t,
|
|
11
8
|
"data-button-variant": "primary",
|
|
@@ -13,11 +10,11 @@ const e = ({
|
|
|
13
10
|
title: "Add to cart Sales",
|
|
14
11
|
className: "product-card-button",
|
|
15
12
|
children: [
|
|
16
|
-
/* @__PURE__ */ a
|
|
17
|
-
|
|
13
|
+
/* @__PURE__ */ r(a, {}),
|
|
14
|
+
"Adicionar"
|
|
18
15
|
]
|
|
19
16
|
}
|
|
20
17
|
);
|
|
21
18
|
export {
|
|
22
|
-
|
|
19
|
+
m as AddToCartButton
|
|
23
20
|
};
|
|
@@ -4,8 +4,7 @@ interface ProductCardButtonProps {
|
|
|
4
4
|
addToCartAction: () => void;
|
|
5
5
|
quantitySelectorAction: ProductCardProps['quantitySelectorAction'];
|
|
6
6
|
productInCart: boolean;
|
|
7
|
-
buttonAddToCartText: string;
|
|
8
7
|
layout?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const ProductCardButton: ({ addToCartAction, quantitySelectorAction, productInCart, layout
|
|
9
|
+
export declare const ProductCardButton: ({ addToCartAction, quantitySelectorAction, productInCart, layout }: ProductCardButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var e = Object.defineProperty, m = Object.defineProperties;
|
|
2
|
+
var p = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var n = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var i = (o, t, r) => t in o ?
|
|
4
|
+
var f = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var i = (o, t, r) => t in o ? e(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
|
+
f.call(t, r) && i(o, r, t[r]);
|
|
8
8
|
if (n)
|
|
9
9
|
for (var r of n(t))
|
|
10
|
-
|
|
10
|
+
l.call(t, r) && i(o, r, t[r]);
|
|
11
11
|
return o;
|
|
12
|
-
}, a = (o, t) =>
|
|
12
|
+
}, a = (o, t) => m(o, p(t));
|
|
13
13
|
import { jsx as d } from "react/jsx-runtime";
|
|
14
|
-
import { AddToCartButton as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
14
|
+
import { AddToCartButton as C } from "./AddToCartButton.js";
|
|
15
|
+
import h from "./QuantitySelector.js";
|
|
16
|
+
const T = ({
|
|
17
17
|
addToCartAction: o,
|
|
18
18
|
quantitySelectorAction: t,
|
|
19
19
|
productInCart: r,
|
|
20
|
-
layout: c
|
|
21
|
-
|
|
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
|
-
) });
|
|
20
|
+
layout: c
|
|
21
|
+
}) => /* @__PURE__ */ d("div", { id: "product-card-button", children: r ? /* @__PURE__ */ d(h, a(u({}, t), { layout: c })) : /* @__PURE__ */ d(C, { handleAddToCart: o }) });
|
|
29
22
|
export {
|
|
30
|
-
|
|
23
|
+
T as ProductCardButton
|
|
31
24
|
};
|
|
@@ -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
|
|
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;
|
|
@@ -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 B } from "../ProducCardUnavailable/index.js";
|
|
4
|
+
import { ProductCardBadgeKg as N } from "../ProductCardBadge/ProductCardBadgeKg.js";
|
|
5
|
+
import { ProductCardDiscountBadge as O } from "../ProductCardBadge/ProductCardDiscountBadge.js";
|
|
6
|
+
import { ProductCardButton as M } from "../ProductCardButton/index.js";
|
|
7
|
+
import { ProductCardImage as p } from "../ProductCardImage/index.js";
|
|
8
|
+
import { ProductCardName as y } from "../ProductCardName/index.js";
|
|
9
|
+
import { ProductCardPrice as U } from "../ProductCardPrice/index.js";
|
|
10
|
+
import { ProductCardPromotionFlag as E } from "../ProductCardPromotionFlag/index.js";
|
|
11
|
+
const T = ({
|
|
12
12
|
account: r,
|
|
13
13
|
hasPlusFriendBadge: c,
|
|
14
14
|
promotion: i,
|
|
@@ -22,14 +22,13 @@ const q = ({
|
|
|
22
22
|
addToCartAction: g,
|
|
23
23
|
quantitySelectorAction: h,
|
|
24
24
|
productInCart: b,
|
|
25
|
-
openModal: v
|
|
26
|
-
buttonAddToCartText: S
|
|
25
|
+
openModal: v
|
|
27
26
|
}) => {
|
|
28
27
|
var m, f;
|
|
29
|
-
const [
|
|
28
|
+
const [S, k] = d(!1), [D, x] = d(!1), z = r === "domolivio" ? "#EBE0CF" : "#FDF3DE";
|
|
30
29
|
if (P)
|
|
31
30
|
return /* @__PURE__ */ s(
|
|
32
|
-
|
|
31
|
+
B,
|
|
33
32
|
{
|
|
34
33
|
image: (m = e.image) == null ? void 0 : m[0],
|
|
35
34
|
name: e.name,
|
|
@@ -43,7 +42,7 @@ const q = ({
|
|
|
43
42
|
{
|
|
44
43
|
className: "product-card-horizontal",
|
|
45
44
|
style: {
|
|
46
|
-
backgroundColor: u ?
|
|
45
|
+
backgroundColor: u ? z : "var(--color-grayScale-faded)"
|
|
47
46
|
},
|
|
48
47
|
children: [
|
|
49
48
|
/* @__PURE__ */ t(
|
|
@@ -53,7 +52,7 @@ const q = ({
|
|
|
53
52
|
onClick: v,
|
|
54
53
|
children: [
|
|
55
54
|
/* @__PURE__ */ s(
|
|
56
|
-
|
|
55
|
+
p,
|
|
57
56
|
{
|
|
58
57
|
isProductClubAndClient: u,
|
|
59
58
|
variant: a,
|
|
@@ -65,26 +64,26 @@ const q = ({
|
|
|
65
64
|
),
|
|
66
65
|
/* @__PURE__ */ t("div", { className: "product-card-horizontal-description", children: [
|
|
67
66
|
/* @__PURE__ */ t("div", { className: "product-card-section-name", children: [
|
|
68
|
-
/* @__PURE__ */ s(
|
|
67
|
+
/* @__PURE__ */ s(y, { name: e.name }),
|
|
69
68
|
/* @__PURE__ */ t(
|
|
70
69
|
"div",
|
|
71
70
|
{
|
|
72
71
|
className: "product-card-section-badge-horizontal",
|
|
73
72
|
style: {
|
|
74
|
-
display: !
|
|
73
|
+
display: !D && !S ? "none" : ""
|
|
75
74
|
},
|
|
76
75
|
children: [
|
|
77
76
|
/* @__PURE__ */ s(
|
|
78
|
-
|
|
77
|
+
N,
|
|
79
78
|
{
|
|
80
79
|
unitMultiplier: e.unitMultiplier,
|
|
81
80
|
skuSpecifications: e.skuSpecifications,
|
|
82
81
|
measurementUnit: e.measurementUnit,
|
|
83
|
-
setIsShowProductBadge:
|
|
82
|
+
setIsShowProductBadge: x
|
|
84
83
|
}
|
|
85
84
|
),
|
|
86
85
|
/* @__PURE__ */ s(
|
|
87
|
-
|
|
86
|
+
O,
|
|
88
87
|
{
|
|
89
88
|
offers: e.offers,
|
|
90
89
|
defaultScListPrice: l,
|
|
@@ -93,7 +92,7 @@ const q = ({
|
|
|
93
92
|
skuSpecifications: e.skuSpecifications,
|
|
94
93
|
unitMultiplier: e.unitMultiplier,
|
|
95
94
|
hasPromotionalPrice: o,
|
|
96
|
-
setIsShowProductBadge:
|
|
95
|
+
setIsShowProductBadge: k
|
|
97
96
|
}
|
|
98
97
|
)
|
|
99
98
|
]
|
|
@@ -101,7 +100,7 @@ const q = ({
|
|
|
101
100
|
)
|
|
102
101
|
] }),
|
|
103
102
|
a === "horizontal" && /* @__PURE__ */ s(
|
|
104
|
-
|
|
103
|
+
E,
|
|
105
104
|
{
|
|
106
105
|
variant: a,
|
|
107
106
|
productSectionBadge: {
|
|
@@ -114,7 +113,7 @@ const q = ({
|
|
|
114
113
|
}
|
|
115
114
|
),
|
|
116
115
|
/* @__PURE__ */ s(
|
|
117
|
-
|
|
116
|
+
U,
|
|
118
117
|
{
|
|
119
118
|
account: r,
|
|
120
119
|
isClubClient: n,
|
|
@@ -139,13 +138,12 @@ const q = ({
|
|
|
139
138
|
}
|
|
140
139
|
),
|
|
141
140
|
/* @__PURE__ */ s(
|
|
142
|
-
|
|
141
|
+
M,
|
|
143
142
|
{
|
|
144
143
|
addToCartAction: g,
|
|
145
144
|
quantitySelectorAction: h,
|
|
146
145
|
productInCart: b,
|
|
147
|
-
layout: a
|
|
148
|
-
buttonAddToCartText: S
|
|
146
|
+
layout: a
|
|
149
147
|
}
|
|
150
148
|
)
|
|
151
149
|
]
|
|
@@ -153,5 +151,5 @@ const q = ({
|
|
|
153
151
|
);
|
|
154
152
|
};
|
|
155
153
|
export {
|
|
156
|
-
|
|
154
|
+
T as ProductCardHorizontal
|
|
157
155
|
};
|
|
@@ -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
|
|
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;
|
|
@@ -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 B } from "../ProducCardUnavailable/index.js";
|
|
4
|
+
import { ProductCardBadgeKg as M } from "../ProductCardBadge/ProductCardBadgeKg.js";
|
|
5
|
+
import { ProductCardDiscountBadge as y } from "../ProductCardBadge/ProductCardDiscountBadge.js";
|
|
6
|
+
import { ProductCardButton as U } from "../ProductCardButton/index.js";
|
|
7
|
+
import { ProductCardImage as x } from "../ProductCardImage/index.js";
|
|
8
|
+
import { ProductCardName as E } from "../ProductCardName/index.js";
|
|
9
|
+
import { ProductCardPrice as I } from "../ProductCardPrice/index.js";
|
|
10
|
+
const G = ({
|
|
11
11
|
account: t,
|
|
12
12
|
hasPlusFriendBadge: o,
|
|
13
13
|
promotion: d,
|
|
@@ -22,14 +22,13 @@ const H = ({
|
|
|
22
22
|
openModal: g,
|
|
23
23
|
addToCartAction: b,
|
|
24
24
|
quantitySelectorAction: v,
|
|
25
|
-
productInCart: h
|
|
26
|
-
buttonAddToCartText: S
|
|
25
|
+
productInCart: h
|
|
27
26
|
}) => {
|
|
28
27
|
var l, u;
|
|
29
|
-
const [
|
|
28
|
+
const [S, k] = f(!1), [D, N] = f(!1), O = t === "domolivio" ? "#EBE0CF" : "#FDF3DE";
|
|
30
29
|
if (p)
|
|
31
30
|
return /* @__PURE__ */ e(
|
|
32
|
-
|
|
31
|
+
B,
|
|
33
32
|
{
|
|
34
33
|
image: (l = i.image) == null ? void 0 : l[0],
|
|
35
34
|
name: i.name,
|
|
@@ -44,7 +43,7 @@ const H = ({
|
|
|
44
43
|
id: "product-card",
|
|
45
44
|
className: "product-card",
|
|
46
45
|
style: {
|
|
47
|
-
backgroundColor: n ?
|
|
46
|
+
backgroundColor: n ? O : "var(--color-grayScale-faded)"
|
|
48
47
|
},
|
|
49
48
|
children: [
|
|
50
49
|
/* @__PURE__ */ s(
|
|
@@ -54,7 +53,7 @@ const H = ({
|
|
|
54
53
|
onClick: g,
|
|
55
54
|
children: [
|
|
56
55
|
/* @__PURE__ */ e(
|
|
57
|
-
|
|
56
|
+
x,
|
|
58
57
|
{
|
|
59
58
|
isProductClubAndClient: n,
|
|
60
59
|
variant: r,
|
|
@@ -66,26 +65,26 @@ const H = ({
|
|
|
66
65
|
),
|
|
67
66
|
/* @__PURE__ */ s("div", { className: "product-card-description", children: [
|
|
68
67
|
/* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
|
|
69
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(E, { name: i.name }),
|
|
70
69
|
/* @__PURE__ */ s(
|
|
71
70
|
"div",
|
|
72
71
|
{
|
|
73
72
|
className: "product-card-section-badge",
|
|
74
73
|
style: {
|
|
75
|
-
display: !
|
|
74
|
+
display: !D && !S ? "none" : ""
|
|
76
75
|
},
|
|
77
76
|
children: [
|
|
78
77
|
/* @__PURE__ */ e(
|
|
79
|
-
|
|
78
|
+
M,
|
|
80
79
|
{
|
|
81
80
|
unitMultiplier: i.unitMultiplier,
|
|
82
81
|
skuSpecifications: i.skuSpecifications,
|
|
83
82
|
measurementUnit: i.measurementUnit,
|
|
84
|
-
setIsShowProductBadge:
|
|
83
|
+
setIsShowProductBadge: N
|
|
85
84
|
}
|
|
86
85
|
),
|
|
87
86
|
/* @__PURE__ */ e(
|
|
88
|
-
|
|
87
|
+
y,
|
|
89
88
|
{
|
|
90
89
|
offers: i.offers,
|
|
91
90
|
defaultScListPrice: c,
|
|
@@ -94,7 +93,7 @@ const H = ({
|
|
|
94
93
|
skuSpecifications: i.skuSpecifications,
|
|
95
94
|
unitMultiplier: i.unitMultiplier,
|
|
96
95
|
hasPromotionalPrice: a,
|
|
97
|
-
setIsShowProductBadge:
|
|
96
|
+
setIsShowProductBadge: k
|
|
98
97
|
}
|
|
99
98
|
)
|
|
100
99
|
]
|
|
@@ -102,7 +101,7 @@ const H = ({
|
|
|
102
101
|
)
|
|
103
102
|
] }),
|
|
104
103
|
/* @__PURE__ */ e(
|
|
105
|
-
|
|
104
|
+
I,
|
|
106
105
|
{
|
|
107
106
|
account: t,
|
|
108
107
|
hasClub: C,
|
|
@@ -128,12 +127,11 @@ const H = ({
|
|
|
128
127
|
}
|
|
129
128
|
),
|
|
130
129
|
/* @__PURE__ */ e(
|
|
131
|
-
|
|
130
|
+
U,
|
|
132
131
|
{
|
|
133
132
|
addToCartAction: b,
|
|
134
133
|
quantitySelectorAction: v,
|
|
135
134
|
productInCart: h,
|
|
136
|
-
buttonAddToCartText: S,
|
|
137
135
|
layout: r
|
|
138
136
|
}
|
|
139
137
|
)
|
|
@@ -142,5 +140,5 @@ const H = ({
|
|
|
142
140
|
);
|
|
143
141
|
};
|
|
144
142
|
export {
|
|
145
|
-
|
|
143
|
+
G as ProductCardVertical
|
|
146
144
|
};
|
|
@@ -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
|
|
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;
|
|
@@ -1,67 +1,64 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ProductCardHorizontal as
|
|
3
|
-
import { ProductCardVertical as
|
|
4
|
-
/* empty css */const
|
|
5
|
-
product:
|
|
1
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
+
import { ProductCardHorizontal as G } from "./ProductCardHorizontal/index.js";
|
|
3
|
+
import { ProductCardVertical as J } from "./ProductCardVertical/index.js";
|
|
4
|
+
/* empty css */const U = ({
|
|
5
|
+
product: C,
|
|
6
6
|
variant: r,
|
|
7
|
-
account:
|
|
7
|
+
account: f,
|
|
8
8
|
hasPlusFriendBadge: i = !1,
|
|
9
9
|
hasPromotionalPrice: l,
|
|
10
|
-
clubPrice:
|
|
11
|
-
defaultScListPrice:
|
|
10
|
+
clubPrice: x,
|
|
11
|
+
defaultScListPrice: V,
|
|
12
12
|
hasClub: m,
|
|
13
|
-
isClubClient:
|
|
14
|
-
openModal:
|
|
15
|
-
promotion:
|
|
16
|
-
outOfStock:
|
|
13
|
+
isClubClient: E,
|
|
14
|
+
openModal: j,
|
|
15
|
+
promotion: p,
|
|
16
|
+
outOfStock: s,
|
|
17
17
|
addToCartAction: z,
|
|
18
18
|
quantitySelectorAction: H,
|
|
19
|
-
productInCart:
|
|
20
|
-
buttonAddToCartText: D
|
|
19
|
+
productInCart: b
|
|
21
20
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
return r === "vertical" ? /* @__PURE__ */
|
|
24
|
-
|
|
21
|
+
const w = !!(m && E);
|
|
22
|
+
return r === "vertical" ? /* @__PURE__ */ D(
|
|
23
|
+
J,
|
|
25
24
|
{
|
|
26
|
-
isClubClient:
|
|
25
|
+
isClubClient: w,
|
|
27
26
|
hasClub: m,
|
|
28
|
-
defaultScListPrice:
|
|
27
|
+
defaultScListPrice: V,
|
|
29
28
|
hasPromotionalPrice: l,
|
|
30
|
-
product:
|
|
29
|
+
product: C,
|
|
31
30
|
variant: r,
|
|
32
|
-
outOfStock:
|
|
33
|
-
promotion:
|
|
34
|
-
clubPrice:
|
|
35
|
-
openModal:
|
|
31
|
+
outOfStock: s,
|
|
32
|
+
promotion: p,
|
|
33
|
+
clubPrice: x,
|
|
34
|
+
openModal: j,
|
|
36
35
|
hasPlusFriendBadge: i,
|
|
37
36
|
addToCartAction: z,
|
|
38
37
|
quantitySelectorAction: H,
|
|
39
|
-
productInCart:
|
|
40
|
-
account:
|
|
41
|
-
buttonAddToCartText: D
|
|
38
|
+
productInCart: b,
|
|
39
|
+
account: f
|
|
42
40
|
}
|
|
43
|
-
) : /* @__PURE__ */
|
|
44
|
-
|
|
41
|
+
) : /* @__PURE__ */ D(
|
|
42
|
+
G,
|
|
45
43
|
{
|
|
46
|
-
openModal:
|
|
47
|
-
isClubClient:
|
|
44
|
+
openModal: j,
|
|
45
|
+
isClubClient: w,
|
|
48
46
|
hasClub: m,
|
|
49
|
-
defaultScListPrice:
|
|
47
|
+
defaultScListPrice: V,
|
|
50
48
|
hasPromotionalPrice: l,
|
|
51
|
-
product:
|
|
49
|
+
product: C,
|
|
52
50
|
variant: r,
|
|
53
51
|
hasPlusFriendBadge: i,
|
|
54
|
-
outOfStock:
|
|
55
|
-
promotion:
|
|
56
|
-
clubPrice:
|
|
52
|
+
outOfStock: s,
|
|
53
|
+
promotion: p,
|
|
54
|
+
clubPrice: x,
|
|
57
55
|
addToCartAction: z,
|
|
58
56
|
quantitySelectorAction: H,
|
|
59
|
-
productInCart:
|
|
60
|
-
account:
|
|
61
|
-
buttonAddToCartText: D
|
|
57
|
+
productInCart: b,
|
|
58
|
+
account: f
|
|
62
59
|
}
|
|
63
60
|
);
|
|
64
61
|
};
|
|
65
62
|
export {
|
|
66
|
-
|
|
63
|
+
U as ProductCard
|
|
67
64
|
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsxs as x, jsx as
|
|
1
|
+
import { jsxs as x, jsx as v } from "react/jsx-runtime";
|
|
2
2
|
import { SetViewButton as d } from "./SetViewButton.js";
|
|
3
3
|
import { ArrowIcon as C } from "../../../assets/svgs/ArrowIcon.js";
|
|
4
4
|
import { useRegionalizationContext as N } from "../context/RegionalizationContext.js";
|
|
5
5
|
import { deliverySetData as V } from "../utils/deliverySetData.js";
|
|
6
6
|
import { pickupSetData as j } from "../utils/pickupSetData.js";
|
|
7
7
|
const F = ({
|
|
8
|
-
moreInfosScreen:
|
|
8
|
+
moreInfosScreen: a,
|
|
9
9
|
pickuConfirmScreem: h
|
|
10
10
|
}) => {
|
|
11
11
|
const {
|
|
12
|
-
confirmButton:
|
|
13
|
-
textBackButton:
|
|
12
|
+
confirmButton: s,
|
|
13
|
+
textBackButton: I,
|
|
14
14
|
delivery: e,
|
|
15
|
-
pickup:
|
|
15
|
+
pickup: l,
|
|
16
16
|
pickupAddress: o,
|
|
17
|
-
internalMethod:
|
|
17
|
+
internalMethod: i,
|
|
18
18
|
regionalizeCatalog: n,
|
|
19
19
|
address: t,
|
|
20
|
-
deliveryRequestInfos:
|
|
21
|
-
postalCode:
|
|
20
|
+
deliveryRequestInfos: S,
|
|
21
|
+
postalCode: p,
|
|
22
22
|
setMethod: r,
|
|
23
|
-
setCity:
|
|
24
|
-
setUf:
|
|
23
|
+
setCity: c,
|
|
24
|
+
setUf: m,
|
|
25
25
|
setPickupName: f,
|
|
26
|
-
setPickupTimes:
|
|
27
|
-
pickupTimes:
|
|
28
|
-
setInputPostalCode:
|
|
26
|
+
setPickupTimes: u,
|
|
27
|
+
pickupTimes: w,
|
|
28
|
+
setInputPostalCode: b
|
|
29
29
|
} = N();
|
|
30
30
|
return /* @__PURE__ */ x("div", { className: "container-navigation", children: [
|
|
31
31
|
/* @__PURE__ */ x(
|
|
32
32
|
d,
|
|
33
33
|
{
|
|
34
|
-
view:
|
|
34
|
+
view: a ? "InitialView" : h ? "AllStoresScreen" : "PostalCodeInputScreen",
|
|
35
35
|
className: "back-button",
|
|
36
36
|
children: [
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
/* @__PURE__ */ v("span", { children: /* @__PURE__ */ v(C, { color: "var(--color-main)" }) }),
|
|
38
|
+
I
|
|
39
39
|
]
|
|
40
40
|
}
|
|
41
41
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ v(
|
|
43
43
|
d,
|
|
44
44
|
{
|
|
45
45
|
view: "InitialView",
|
|
46
|
-
closeModal: !
|
|
46
|
+
closeModal: !a,
|
|
47
47
|
className: "continue-button",
|
|
48
48
|
onClick: () => {
|
|
49
|
-
var
|
|
50
|
-
r == null || r(
|
|
49
|
+
var B;
|
|
50
|
+
r == null || r(i), i === "delivery" && (V(t, S, p), c == null || c(t == null ? void 0 : t.localidade), m == null || m(t == null ? void 0 : t.uf), n == null || n(p)), i === "pickup-in-point" && (b(((B = o == null ? void 0 : o.address) == null ? void 0 : B.postalCode) || ""), j(o, w), f == null || f(o == null ? void 0 : o.name), u == null || u(w), n == null || n(o == null ? void 0 : o.address.postalCode));
|
|
51
51
|
},
|
|
52
|
-
children:
|
|
52
|
+
children: a ? s : i === "delivery" ? e == null ? void 0 : e.confirmButton : l == null ? void 0 : l.confirmButton
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
] });
|