@plurix/ecom-components 1.14.1-bugfix-1891.3 → 1.14.1-bugfix-1891.5
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RegionalizationProps } from './types/RegionalizationProps';
|
|
2
2
|
|
|
3
|
-
export declare const Regionalization: ({ setMethod, setPickupName, setCity, deliveryPrice, setUf, setPickupTimes, pricesAndHours, setModalOpen, inputPostalCode, setInputPostalCode, sendPostalCode, status, setStatus, pickupPoints, pickupConfirmScreenText, regionalizeCatalog, titleText, priceStockInformation, moreInfosText, textBackButton, confirmButton, editAddress, delivery, pickup }: RegionalizationProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Regionalization: ({ setMethod, setPickupName, setCity, deliveryPrice, setUf, setPickupTimes, pricesAndHours, setModalOpen, inputPostalCode, setInputPostalCode, sendPostalCode, status, setStatus, pickupPoints, pickupConfirmScreenText, deliveryStartPrice, regionalizeCatalog, titleText, priceStockInformation, moreInfosText, textBackButton, confirmButton, editAddress, delivery, pickup }: RegionalizationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { RegionalizationContextProvider as
|
|
3
|
-
import { ViewsContainer as
|
|
4
|
-
/* empty css */const
|
|
2
|
+
import { RegionalizationContextProvider as S } from "./context/RegionalizationContext.js";
|
|
3
|
+
import { ViewsContainer as k } from "./views/ViewsContainer.js";
|
|
4
|
+
/* empty css */const H = ({
|
|
5
5
|
setMethod: r,
|
|
6
6
|
setPickupName: a,
|
|
7
7
|
setCity: o,
|
|
@@ -17,14 +17,15 @@ import { ViewsContainer as S } from "./views/ViewsContainer.js";
|
|
|
17
17
|
setStatus: u,
|
|
18
18
|
pickupPoints: g,
|
|
19
19
|
pickupConfirmScreenText: b,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
deliveryStartPrice: h,
|
|
21
|
+
regionalizeCatalog: j,
|
|
22
|
+
titleText: x = "Como deseja receber sua compra?",
|
|
23
|
+
priceStockInformation: E = " Preços e estoque podem variar de acordo com a loja que irá te atender",
|
|
24
|
+
moreInfosText: R = "Horários de atendimento e entrega",
|
|
25
|
+
textBackButton: v = "Voltar",
|
|
26
|
+
confirmButton: P = "Ok, Entendi",
|
|
27
|
+
editAddress: f = "Alterar",
|
|
28
|
+
delivery: A = {
|
|
28
29
|
title: "Receber em Casa",
|
|
29
30
|
normalDelivery: "Entrega Agendada",
|
|
30
31
|
expressDelivery: "Entrega Express",
|
|
@@ -43,7 +44,7 @@ import { ViewsContainer as S } from "./views/ViewsContainer.js";
|
|
|
43
44
|
labelAddress: "Entregar em:",
|
|
44
45
|
confirmButton: "Receber em casa"
|
|
45
46
|
},
|
|
46
|
-
pickup:
|
|
47
|
+
pickup: C = {
|
|
47
48
|
title: "Retirar na Loja",
|
|
48
49
|
labelPrice: "Retirada",
|
|
49
50
|
price: 0,
|
|
@@ -59,9 +60,9 @@ import { ViewsContainer as S } from "./views/ViewsContainer.js";
|
|
|
59
60
|
confirmButton: "Retirar na loja"
|
|
60
61
|
}
|
|
61
62
|
}) => /* @__PURE__ */ e(
|
|
62
|
-
|
|
63
|
+
S,
|
|
63
64
|
{
|
|
64
|
-
priceStockInformation:
|
|
65
|
+
priceStockInformation: E,
|
|
65
66
|
setMethod: r,
|
|
66
67
|
setPickupName: a,
|
|
67
68
|
setCity: o,
|
|
@@ -73,21 +74,22 @@ import { ViewsContainer as S } from "./views/ViewsContainer.js";
|
|
|
73
74
|
setInputPostalCode: c,
|
|
74
75
|
sendPostalCode: m,
|
|
75
76
|
pickupPoints: g,
|
|
76
|
-
titleText:
|
|
77
|
-
moreInfosText:
|
|
78
|
-
textBackButton:
|
|
79
|
-
editAddress:
|
|
77
|
+
titleText: x,
|
|
78
|
+
moreInfosText: R,
|
|
79
|
+
textBackButton: v,
|
|
80
|
+
editAddress: f,
|
|
80
81
|
deliveryPrice: t,
|
|
81
|
-
confirmButton:
|
|
82
|
+
confirmButton: P,
|
|
82
83
|
pickupConfirmScreenText: b,
|
|
83
|
-
delivery:
|
|
84
|
-
pickup:
|
|
84
|
+
delivery: A,
|
|
85
|
+
pickup: C,
|
|
85
86
|
setStatus: u,
|
|
86
87
|
status: p,
|
|
87
|
-
regionalizeCatalog:
|
|
88
|
-
|
|
88
|
+
regionalizeCatalog: j,
|
|
89
|
+
deliveryStartPrice: h,
|
|
90
|
+
children: /* @__PURE__ */ e(k, {})
|
|
89
91
|
}
|
|
90
92
|
);
|
|
91
93
|
export {
|
|
92
|
-
|
|
94
|
+
H as Regionalization
|
|
93
95
|
};
|
|
@@ -1,52 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as f } from "react";
|
|
3
|
-
import { Title as
|
|
3
|
+
import { Title as h } from "../components/Title.js";
|
|
4
4
|
import { SetViewButton as n } from "../components/SetViewButton.js";
|
|
5
|
-
import { ArrowIcon as
|
|
6
|
-
import { ShoppingBagsIcon as
|
|
7
|
-
import { ShoppingIcon as
|
|
8
|
-
import { useRegionalizationContext as
|
|
9
|
-
import { formatPrice as
|
|
10
|
-
const
|
|
5
|
+
import { ArrowIcon as v } from "../../../assets/svgs/ArrowIcon.js";
|
|
6
|
+
import { ShoppingBagsIcon as u } from "../../../assets/svgs/ShoppingBagsIcon.js";
|
|
7
|
+
import { ShoppingIcon as I } from "../../../assets/svgs/ShoppingIcon.js";
|
|
8
|
+
import { useRegionalizationContext as S } from "../context/RegionalizationContext.js";
|
|
9
|
+
import { formatPrice as g } from "../utils/formatPrice.js";
|
|
10
|
+
const A = () => {
|
|
11
11
|
const {
|
|
12
|
-
titleText:
|
|
13
|
-
moreInfosText:
|
|
14
|
-
deliveryPrice:
|
|
15
|
-
priceStockInformation:
|
|
12
|
+
titleText: l,
|
|
13
|
+
moreInfosText: a,
|
|
14
|
+
deliveryPrice: c,
|
|
15
|
+
priceStockInformation: m,
|
|
16
16
|
backToDelivery: s,
|
|
17
|
-
setBackToDelivery:
|
|
17
|
+
setBackToDelivery: r,
|
|
18
18
|
status: i,
|
|
19
|
-
setStatus:
|
|
20
|
-
postalCode:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
setStatus: p,
|
|
20
|
+
postalCode: d,
|
|
21
|
+
deliveryStartPrice: t
|
|
22
|
+
} = S();
|
|
23
|
+
return console.log("sbs deliveryPrice", c), console.log("sbs status", i), console.log("sbs postalCode", d), f(() => {
|
|
24
|
+
s && (r == null || r(!1)), (i == null ? void 0 : i.status) === "failed" && p({});
|
|
25
|
+
}, [s, i]), /* @__PURE__ */ o("div", { className: "inital-view-container", children: [
|
|
26
|
+
/* @__PURE__ */ e(h, { title: l }),
|
|
27
|
+
/* @__PURE__ */ e("p", { className: "price-stock-information", children: m }),
|
|
28
|
+
/* @__PURE__ */ o(n, { view: "MoreInfosScreen", className: "more-infos-button", children: [
|
|
29
|
+
a,
|
|
30
|
+
/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(v, { color: "var(--color-main)" }) })
|
|
30
31
|
] }),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
" ",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
/* @__PURE__ */ o("div", { className: "delivery-option-container", children: [
|
|
33
|
+
/* @__PURE__ */ o(n, { view: "PostalCodeInputScreen", className: "option", children: [
|
|
34
|
+
/* @__PURE__ */ e(u, {}),
|
|
35
|
+
/* @__PURE__ */ e("h4", { children: "Receber em casa" }),
|
|
36
|
+
t ? /* @__PURE__ */ o("p", { children: [
|
|
37
|
+
" A partir de ",
|
|
38
|
+
t || ""
|
|
39
|
+
] }) : /* @__PURE__ */ e("p", { children: /* @__PURE__ */ o("p", { children: [
|
|
40
|
+
" A partir de ",
|
|
41
|
+
g(c || 0)
|
|
42
|
+
] }) })
|
|
41
43
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ o(n, { view: "PickupPointInfoScreen", className: "option", children: [
|
|
45
|
+
/* @__PURE__ */ e(I, {}),
|
|
46
|
+
/* @__PURE__ */ e("h4", { children: "Retirar na Loja" }),
|
|
47
|
+
/* @__PURE__ */ e("p", { children: " Grátis" })
|
|
46
48
|
] })
|
|
47
49
|
] })
|
|
48
50
|
] });
|
|
49
51
|
};
|
|
50
52
|
export {
|
|
51
|
-
|
|
53
|
+
A as InitialView
|
|
52
54
|
};
|