@plurix/ecom-components 1.14.1-bugfix-1891.0 → 1.14.1-bugfix-1891.1
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,51 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { Title as
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import { Title as d } 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 h } from "../../../assets/svgs/ArrowIcon.js";
|
|
6
|
+
import { ShoppingBagsIcon as v } from "../../../assets/svgs/ShoppingBagsIcon.js";
|
|
7
|
+
import { ShoppingIcon as u } from "../../../assets/svgs/ShoppingIcon.js";
|
|
8
|
+
import { useRegionalizationContext as I } from "../context/RegionalizationContext.js";
|
|
9
|
+
import { formatPrice as S } from "../utils/formatPrice.js";
|
|
10
|
+
const y = () => {
|
|
11
11
|
const {
|
|
12
|
-
titleText:
|
|
12
|
+
titleText: c,
|
|
13
13
|
moreInfosText: l,
|
|
14
|
-
deliveryPrice:
|
|
15
|
-
priceStockInformation:
|
|
16
|
-
backToDelivery:
|
|
17
|
-
setBackToDelivery:
|
|
14
|
+
deliveryPrice: r,
|
|
15
|
+
priceStockInformation: a,
|
|
16
|
+
backToDelivery: s,
|
|
17
|
+
setBackToDelivery: t,
|
|
18
18
|
status: i,
|
|
19
|
-
setStatus:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */ o(
|
|
19
|
+
setStatus: m,
|
|
20
|
+
postalCode: p
|
|
21
|
+
} = I();
|
|
22
|
+
return console.log("sbs deliveryPrice", r), console.log("sbs status", i), console.log("sbs postalCode", p), f(() => {
|
|
23
|
+
s && (t == null || t(!1)), (i == null ? void 0 : i.status) === "failed" && m({});
|
|
24
|
+
}, [s, i]), /* @__PURE__ */ e("div", { className: "inital-view-container", children: [
|
|
25
|
+
/* @__PURE__ */ o(d, { title: c }),
|
|
26
|
+
/* @__PURE__ */ o("p", { className: "price-stock-information", children: a }),
|
|
27
|
+
/* @__PURE__ */ e(n, { view: "MoreInfosScreen", className: "more-infos-button", children: [
|
|
27
28
|
l,
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(h, { color: "var(--color-main)" }) })
|
|
29
30
|
] }),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "delivery-option-container", children: [
|
|
32
|
+
/* @__PURE__ */ e(n, { view: "PostalCodeInputScreen", className: "option", children: [
|
|
33
|
+
/* @__PURE__ */ o(v, {}),
|
|
34
|
+
/* @__PURE__ */ o("h4", { children: "Receber em casa" }),
|
|
35
|
+
/* @__PURE__ */ e("p", { children: [
|
|
35
36
|
" ",
|
|
36
37
|
"A partir de",
|
|
37
38
|
" ",
|
|
38
|
-
|
|
39
|
+
r ? S(r) : "Consulte o valor"
|
|
39
40
|
] })
|
|
40
41
|
] }),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ e(n, { view: "PickupPointInfoScreen", className: "option", children: [
|
|
43
|
+
/* @__PURE__ */ o(u, {}),
|
|
44
|
+
/* @__PURE__ */ o("h4", { children: "Retirar na Loja" }),
|
|
45
|
+
/* @__PURE__ */ o("p", { children: " Grátis" })
|
|
45
46
|
] })
|
|
46
47
|
] })
|
|
47
48
|
] });
|
|
48
49
|
};
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
y as InitialView
|
|
51
52
|
};
|