@instockng/storefront-ui 1.0.28 → 1.0.29
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/components/Checkout.d.ts.map +1 -1
- package/dist/contexts/CartContext.d.ts.map +1 -1
- package/dist/index100.mjs +3 -3
- package/dist/index101.mjs +1 -1
- package/dist/index102.mjs +1 -1
- package/dist/index103.mjs +1 -1
- package/dist/index104.mjs +2 -2
- package/dist/index105.mjs +2 -2
- package/dist/index106.mjs +3 -3
- package/dist/index107.mjs +1 -1
- package/dist/index108.mjs +3 -3
- package/dist/index109.mjs +2 -2
- package/dist/index110.mjs +2 -2
- package/dist/index111.mjs +1 -1
- package/dist/index112.mjs +3 -3
- package/dist/index113.mjs +1 -1
- package/dist/index114.mjs +1 -1
- package/dist/index115.mjs +3 -3
- package/dist/index116.mjs +2 -2
- package/dist/index117.mjs +4 -4
- package/dist/index118.mjs +1 -1
- package/dist/index119.mjs +3 -3
- package/dist/index12.mjs +171 -167
- package/dist/index120.mjs +4 -4
- package/dist/index121.mjs +1 -1
- package/dist/index122.mjs +1 -1
- package/dist/index123.mjs +1 -1
- package/dist/index124.mjs +1 -1
- package/dist/index125.mjs +1 -1
- package/dist/index126.mjs +1 -1
- package/dist/index127.mjs +1 -1
- package/dist/index128.mjs +2 -2
- package/dist/index129.mjs +3 -3
- package/dist/index132.mjs +1 -1
- package/dist/index134.mjs +21 -2
- package/dist/index135.mjs +56 -2
- package/dist/index136.mjs +29 -2
- package/dist/index137.mjs +7 -2
- package/dist/index138.mjs +50 -16
- package/dist/index139.mjs +6 -32
- package/dist/index140.mjs +11 -37
- package/dist/index141.mjs +7 -18
- package/dist/index142.mjs +28 -18
- package/dist/index143.mjs +2 -2
- package/dist/index144.mjs +70 -20
- package/dist/index145.mjs +163 -42
- package/dist/index147.mjs +2 -30
- package/dist/index148.mjs +2 -18
- package/dist/index149.mjs +2 -2
- package/dist/index150.mjs +18 -2
- package/dist/index151.mjs +32 -2
- package/dist/index152.mjs +38 -2
- package/dist/index153.mjs +13 -67
- package/dist/index154.mjs +18 -2
- package/dist/index155.mjs +2 -53
- package/dist/index156.mjs +20 -2
- package/dist/index157.mjs +39 -29
- package/dist/index158.mjs +2 -152
- package/dist/index159.mjs +30 -2
- package/dist/index160.mjs +18 -2
- package/dist/index161.mjs +2 -19
- package/dist/index162.mjs +2 -2
- package/dist/index163.mjs +2 -2
- package/dist/index164.mjs +2 -26
- package/dist/index165.mjs +72 -2
- package/dist/index166.mjs +2 -2
- package/dist/index167.mjs +49 -20
- package/dist/index168.mjs +2 -23
- package/dist/index169.mjs +36 -2
- package/dist/index170.mjs +152 -2
- package/dist/index171.mjs +2 -2
- package/dist/index172.mjs +2 -23
- package/dist/index173.mjs +19 -2
- package/dist/index174.mjs +2 -23
- package/dist/index176.mjs +26 -2
- package/dist/index177.mjs +2 -2
- package/dist/index178.mjs +2 -23
- package/dist/index179.mjs +24 -2
- package/dist/index180.mjs +15 -15
- package/dist/index181.mjs +2 -2
- package/dist/index182.mjs +2 -2
- package/dist/index183.mjs +2 -2
- package/dist/index184.mjs +23 -2
- package/dist/index185.mjs +2 -2
- package/dist/index186.mjs +23 -2
- package/dist/index187.mjs +2 -2
- package/dist/index188.mjs +2 -2
- package/dist/index189.mjs +2 -127
- package/dist/index19.mjs +26 -13
- package/dist/index190.mjs +23 -2
- package/dist/index191.mjs +2 -74
- package/dist/index192.mjs +20 -71
- package/dist/index193.mjs +2 -21
- package/dist/index194.mjs +2 -56
- package/dist/index195.mjs +2 -29
- package/dist/index196.mjs +2 -7
- package/dist/index197.mjs +2 -52
- package/dist/index198.mjs +2 -6
- package/dist/index199.mjs +2 -12
- package/dist/index200.mjs +2 -7
- package/dist/index201.mjs +127 -28
- package/dist/index202.mjs +2 -2
- package/dist/index203.mjs +73 -69
- package/dist/index204.mjs +71 -164
- package/dist/index205.mjs +31 -2
- package/dist/index206.mjs +11 -2
- package/dist/index207.mjs +4 -2
- package/dist/index208.mjs +4 -2
- package/dist/index209.mjs +13 -2
- package/dist/index210.mjs +7 -2
- package/dist/index211.mjs +11 -36
- package/dist/index212.mjs +5 -2
- package/dist/index213.mjs +33 -2
- package/dist/index214.mjs +31 -2
- package/dist/index215.mjs +28 -2
- package/dist/index216.mjs +58 -241
- package/dist/index218.mjs +2 -33
- package/dist/index219.mjs +2 -65
- package/dist/index220.mjs +2 -25
- package/dist/index221.mjs +2 -2
- package/dist/index222.mjs +2 -2
- package/dist/index223.mjs +2 -108
- package/dist/index224.mjs +2 -2
- package/dist/index225.mjs +37 -2
- package/dist/index226.mjs +2 -2
- package/dist/index227.mjs +108 -2
- package/dist/index229.mjs +2 -2
- package/dist/index232.mjs +244 -2
- package/dist/index233.mjs +2 -4
- package/dist/index234.mjs +33 -2
- package/dist/index235.mjs +65 -2
- package/dist/index236.mjs +24 -30
- package/dist/index237.mjs +2 -11
- package/dist/index238.mjs +2 -4
- package/dist/index239.mjs +2 -4
- package/dist/index240.mjs +2 -13
- package/dist/index241.mjs +2 -7
- package/dist/index242.mjs +2 -12
- package/dist/index243.mjs +2 -5
- package/dist/index244.mjs +2 -33
- package/dist/index245.mjs +2 -31
- package/dist/index246.mjs +2 -28
- package/dist/index247.mjs +4 -61
- package/dist/index248.mjs +3 -2
- package/dist/index249.mjs +2 -18
- package/dist/index250.mjs +2 -47
- package/dist/index251.mjs +17 -2
- package/dist/index252.mjs +13 -2
- package/dist/index253.mjs +6 -2
- package/dist/index254.mjs +30 -2
- package/dist/index255.mjs +2 -91
- package/dist/index256.mjs +18 -2
- package/dist/index257.mjs +47 -2
- package/dist/index258.mjs +2 -3
- package/dist/index259.mjs +2 -2
- package/dist/index260.mjs +2 -2
- package/dist/index261.mjs +2 -17
- package/dist/index262.mjs +2 -13
- package/dist/index263.mjs +91 -6
- package/dist/index264.mjs +2 -30
- package/dist/index3.mjs +95 -105
- package/dist/index32.mjs +1 -1
- package/dist/index33.mjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.mjs +1 -1
- package/dist/index36.mjs +1 -1
- package/dist/index37.mjs +1 -1
- package/dist/index38.mjs +2 -2
- package/dist/index39.mjs +3 -3
- package/dist/index42.mjs +1 -1
- package/dist/index48.mjs +2 -2
- package/dist/index49.mjs +1 -1
- package/dist/index50.mjs +1 -1
- package/dist/index51.mjs +1 -1
- package/dist/index52.mjs +1 -1
- package/dist/index53.mjs +1 -1
- package/dist/index54.mjs +1 -1
- package/dist/index55.mjs +1 -1
- package/dist/index56.mjs +1 -1
- package/dist/index57.mjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index59.mjs +1 -1
- package/dist/index60.mjs +20 -21
- package/dist/index61.mjs +21 -150
- package/dist/index63.mjs +149 -19
- package/dist/index64.mjs +4 -74
- package/dist/index65.mjs +74 -14
- package/dist/index66.mjs +14 -62
- package/dist/index67.mjs +62 -4
- package/dist/index73.mjs +1 -1
- package/dist/index77.mjs +5 -5
- package/dist/index79.mjs +3 -3
- package/dist/index89.mjs +1 -1
- package/dist/index90.mjs +3 -3
- package/dist/index92.mjs +34 -2
- package/dist/index93.mjs +40 -31
- package/dist/index94.mjs +2 -43
- package/dist/index96.mjs +1 -1
- package/dist/index97.mjs +1 -1
- package/dist/index98.mjs +6 -6
- package/dist/index99.mjs +4 -4
- package/dist/lib/utils.d.ts +8 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Checkout.tsx +11 -1
- package/src/contexts/CartContext.tsx +2 -20
- package/src/lib/utils.ts +20 -0
package/dist/index12.mjs
CHANGED
|
@@ -1,72 +1,74 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { object as
|
|
2
|
+
import { jsxs as a, jsx as e, Fragment as we } from "react/jsx-runtime";
|
|
3
|
+
import { useState as x, useEffect as I, useMemo as $, useCallback as Ce } from "react";
|
|
4
|
+
import { object as G, string as v, ValidationError as Pe } from "./index39.mjs";
|
|
5
5
|
import "./index20.mjs";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
|
-
import { useGetDeliveryZones as
|
|
8
|
-
import { useCart as
|
|
9
|
-
import { Modal as
|
|
7
|
+
import { useGetDeliveryZones as ke } from "./index35.mjs";
|
|
8
|
+
import { useCart as Me } from "./index3.mjs";
|
|
9
|
+
import { Modal as ne } from "./index16.mjs";
|
|
10
10
|
import { FormInput as k } from "./index17.mjs";
|
|
11
|
-
import { FormSelect as
|
|
11
|
+
import { FormSelect as de } from "./index18.mjs";
|
|
12
12
|
import { Button as B } from "./index13.mjs";
|
|
13
|
-
import { Loader2 as
|
|
14
|
-
import { formatCurrency as M, cn as C } from "./index19.mjs";
|
|
15
|
-
import
|
|
16
|
-
import { usePaystackPayment as
|
|
17
|
-
const
|
|
18
|
-
firstName:
|
|
19
|
-
lastName:
|
|
20
|
-
email:
|
|
21
|
-
phone:
|
|
22
|
-
if (!
|
|
23
|
-
const q =
|
|
13
|
+
import { Loader2 as W, ChevronLeft as qe, ChevronRight as Ie, CheckCircle as je, Package as ie, Banknote as ce, Mail as Ze, Phone as Se, ChevronDown as ze, Zap as Fe } from "lucide-react";
|
|
14
|
+
import { formatCurrency as M, cn as C, getFbCookies as oe } from "./index19.mjs";
|
|
15
|
+
import Le from "./index40.mjs";
|
|
16
|
+
import { usePaystackPayment as Be } from "./index41.mjs";
|
|
17
|
+
const Te = (i) => i.replace(/\D/g, ""), _e = G({
|
|
18
|
+
firstName: v().required("First name is required").min(2, "First name must be at least 2 characters").max(50, "First name must be less than 50 characters"),
|
|
19
|
+
lastName: v().required("Last name is required").min(2, "Last name must be at least 2 characters").max(50, "Last name must be less than 50 characters"),
|
|
20
|
+
email: v().required("Email is required").email("Please enter a valid email address"),
|
|
21
|
+
phone: v().required("Phone number is required").test("nigerian-phone", "Please enter a valid Nigerian phone number (e.g. 0812 564 8668)", (i) => {
|
|
22
|
+
if (!i) return !1;
|
|
23
|
+
const q = Te(i);
|
|
24
24
|
return [
|
|
25
25
|
/^0[789]\d{9}$/
|
|
26
26
|
// 0xxxxxxxxx (11 digits total)
|
|
27
|
-
].some((
|
|
27
|
+
].some((N) => N.test(q));
|
|
28
28
|
})
|
|
29
|
-
}),
|
|
30
|
-
address:
|
|
31
|
-
city:
|
|
32
|
-
state:
|
|
33
|
-
deliveryZoneId:
|
|
34
|
-
}),
|
|
35
|
-
paymentMethod:
|
|
29
|
+
}), Ae = G({
|
|
30
|
+
address: v().required("Street address is required").min(10, "Please provide a complete address"),
|
|
31
|
+
city: v().required("City is required").min(3, "City name must be at least 3 characters"),
|
|
32
|
+
state: v().required("State is required").test("not-empty", "State is required", (i) => !!i && i.trim() !== ""),
|
|
33
|
+
deliveryZoneId: v().required("Delivery zone is required").test("not-empty", "Delivery zone is required", (i) => !!i && i.trim() !== "")
|
|
34
|
+
}), Oe = G({
|
|
35
|
+
paymentMethod: v().oneOf(["cod", "online"], "Please select a payment method").required("Payment method is required")
|
|
36
36
|
});
|
|
37
|
-
function
|
|
38
|
-
isOpen:
|
|
37
|
+
function at({
|
|
38
|
+
isOpen: i,
|
|
39
39
|
onClose: q,
|
|
40
40
|
initialData: n,
|
|
41
|
-
onSuccess:
|
|
42
|
-
onError:
|
|
43
|
-
submitButtonText:
|
|
41
|
+
onSuccess: N,
|
|
42
|
+
onError: m,
|
|
43
|
+
submitButtonText: me = "Place Order",
|
|
44
44
|
refundPolicy: j
|
|
45
45
|
}) {
|
|
46
|
-
var
|
|
47
|
-
const
|
|
48
|
-
publicKey:
|
|
46
|
+
var E, D, ee, te, ae, re, se, le;
|
|
47
|
+
const ue = "pk_live_dfb74efb5f74d2acbc253d5ca396ab9015ef0fa7", [c, b] = x("customer"), [Z, he] = x(void 0), [y, K] = x(void 0), [f, T] = x(null), { refetch: Y, isLoading: V, cart: s, updateCartMutation: _, checkoutMutation: ye, clearAndCreateNewCart: H } = Me(), U = Be({
|
|
48
|
+
publicKey: ue,
|
|
49
49
|
onSuccess: async (t) => {
|
|
50
50
|
try {
|
|
51
|
-
const l = await P.mutateAsync({
|
|
51
|
+
const { fbc: l, fbp: d } = oe(), o = await P.mutateAsync({
|
|
52
52
|
firstName: r.firstName,
|
|
53
53
|
lastName: r.lastName,
|
|
54
54
|
email: r.email,
|
|
55
55
|
phone: r.phone,
|
|
56
56
|
address: r.address,
|
|
57
57
|
city: r.city,
|
|
58
|
-
deliveryZoneId:
|
|
58
|
+
deliveryZoneId: y || r.deliveryZoneId,
|
|
59
59
|
paymentMethod: r.paymentMethod,
|
|
60
|
-
paystackReference: t.reference
|
|
60
|
+
paystackReference: t.reference,
|
|
61
|
+
fbc: l,
|
|
62
|
+
fbp: d
|
|
61
63
|
});
|
|
62
|
-
if ("error" in
|
|
63
|
-
const
|
|
64
|
-
|
|
64
|
+
if ("error" in o) {
|
|
65
|
+
const R = o.error;
|
|
66
|
+
m == null || m(new Error((R == null ? void 0 : R.message) || "Checkout failed"));
|
|
65
67
|
return;
|
|
66
68
|
}
|
|
67
|
-
T(
|
|
69
|
+
T(o), H(), N == null || N(o.id);
|
|
68
70
|
} catch (l) {
|
|
69
|
-
|
|
71
|
+
m == null || m(l);
|
|
70
72
|
}
|
|
71
73
|
},
|
|
72
74
|
onClose: () => {
|
|
@@ -74,15 +76,15 @@ function et({
|
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
I(() => {
|
|
77
|
-
|
|
78
|
-
}, [
|
|
79
|
-
const { data:
|
|
80
|
-
enabled: !!((
|
|
81
|
-
}),
|
|
79
|
+
i && Y();
|
|
80
|
+
}, [i, Y]);
|
|
81
|
+
const { data: w } = ke(((E = s == null ? void 0 : s.brand) == null ? void 0 : E.id) || "", {
|
|
82
|
+
enabled: !!((D = s == null ? void 0 : s.brand) != null && D.id)
|
|
83
|
+
}), u = $(() => w == null ? void 0 : w.find((t) => t.id === Z), [w, Z]), p = $(() => u == null ? void 0 : u.zones.find((t) => t.id === y), [u, y]), P = ye;
|
|
82
84
|
I(() => {
|
|
83
|
-
|
|
84
|
-
}, [
|
|
85
|
-
const [r, A] =
|
|
85
|
+
i || (T(null), b("customer"), P.reset());
|
|
86
|
+
}, [i]);
|
|
87
|
+
const [r, A] = x({
|
|
86
88
|
firstName: (n == null ? void 0 : n.firstName) || "",
|
|
87
89
|
lastName: (n == null ? void 0 : n.lastName) || "",
|
|
88
90
|
email: (n == null ? void 0 : n.email) || "",
|
|
@@ -94,11 +96,11 @@ function et({
|
|
|
94
96
|
notes: (n == null ? void 0 : n.notes) || ""
|
|
95
97
|
});
|
|
96
98
|
I(() => {
|
|
97
|
-
|
|
98
|
-
}, [
|
|
99
|
-
const [
|
|
99
|
+
i && b("customer");
|
|
100
|
+
}, [i]);
|
|
101
|
+
const [J, Q] = x(!1);
|
|
100
102
|
I(() => {
|
|
101
|
-
|
|
103
|
+
i && s && !n && !J && (A((t) => {
|
|
102
104
|
var l;
|
|
103
105
|
return {
|
|
104
106
|
...t,
|
|
@@ -108,68 +110,68 @@ function et({
|
|
|
108
110
|
phone: s.customerPhone || t.phone,
|
|
109
111
|
deliveryZoneId: ((l = s.deliveryZone) == null ? void 0 : l.id) || t.deliveryZoneId
|
|
110
112
|
};
|
|
111
|
-
}),
|
|
112
|
-
}, [
|
|
113
|
-
if (
|
|
114
|
-
const t =
|
|
113
|
+
}), Q(!0)), i || Q(!1);
|
|
114
|
+
}, [i, s, n, J]), I(() => {
|
|
115
|
+
if (y) {
|
|
116
|
+
const t = u == null ? void 0 : u.zones.find((l) => l.id === y);
|
|
115
117
|
t && A((l) => ({
|
|
116
118
|
...l,
|
|
117
119
|
paymentMethod: t.allowOnline ? "online" : "cod"
|
|
118
120
|
}));
|
|
119
121
|
}
|
|
120
|
-
}, [
|
|
121
|
-
const [
|
|
122
|
-
const { name: l, value:
|
|
123
|
-
A((
|
|
124
|
-
}, z =
|
|
122
|
+
}, [y, u]);
|
|
123
|
+
const [h, S] = x({}), [O, fe] = x(!1), g = (t) => {
|
|
124
|
+
const { name: l, value: d } = t.target;
|
|
125
|
+
A((o) => ({ ...o, [l]: d })), h[l] && S((o) => ({ ...o, [l]: void 0 }));
|
|
126
|
+
}, z = Ce(
|
|
125
127
|
(t) => {
|
|
126
128
|
const l = r[t];
|
|
127
129
|
if (!l) return;
|
|
128
|
-
const
|
|
129
|
-
t === "firstName" ?
|
|
130
|
+
const d = {};
|
|
131
|
+
t === "firstName" ? d.customerFirstName = l : t === "lastName" ? d.customerLastName = l : t === "email" ? d.customerEmail = l : t === "phone" && (d.customerPhone = l), _.mutate(d);
|
|
130
132
|
},
|
|
131
133
|
[r, _]
|
|
132
134
|
), F = (t) => {
|
|
133
135
|
const l = {};
|
|
134
136
|
try {
|
|
135
137
|
if (t === "customer")
|
|
136
|
-
|
|
138
|
+
_e.validateSync(r, { abortEarly: !1 });
|
|
137
139
|
else if (t === "delivery") {
|
|
138
|
-
const
|
|
140
|
+
const d = {
|
|
139
141
|
address: r.address,
|
|
140
142
|
city: r.city,
|
|
141
143
|
state: Z || r.state || "",
|
|
142
|
-
deliveryZoneId:
|
|
144
|
+
deliveryZoneId: y || r.deliveryZoneId || ""
|
|
143
145
|
};
|
|
144
|
-
|
|
145
|
-
} else t === "payment" &&
|
|
146
|
-
} catch (
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
Ae.validateSync(d, { abortEarly: !1 });
|
|
147
|
+
} else t === "payment" && Oe.validateSync(r, { abortEarly: !1 });
|
|
148
|
+
} catch (d) {
|
|
149
|
+
d instanceof Pe && d.inner.forEach((o) => {
|
|
150
|
+
o.path && (l[o.path] = o.message);
|
|
149
151
|
});
|
|
150
152
|
}
|
|
151
153
|
return S(l), Object.keys(l).length === 0;
|
|
152
|
-
},
|
|
153
|
-
F(c) && (c === "customer" ?
|
|
154
|
-
},
|
|
155
|
-
c === "payment" ?
|
|
156
|
-
},
|
|
154
|
+
}, pe = () => {
|
|
155
|
+
F(c) && (c === "customer" ? b("delivery") : c === "delivery" && b("payment"));
|
|
156
|
+
}, ve = () => {
|
|
157
|
+
c === "payment" ? b("delivery") : c === "delivery" && b("customer");
|
|
158
|
+
}, Ne = async () => {
|
|
157
159
|
if (!F("customer")) {
|
|
158
|
-
|
|
160
|
+
b("customer");
|
|
159
161
|
return;
|
|
160
162
|
}
|
|
161
163
|
if (!F("delivery")) {
|
|
162
|
-
|
|
164
|
+
b("delivery");
|
|
163
165
|
return;
|
|
164
166
|
}
|
|
165
167
|
if (F("payment")) {
|
|
166
168
|
if (r.paymentMethod === "online") {
|
|
167
|
-
if (!
|
|
168
|
-
|
|
169
|
+
if (!U.isLoaded) {
|
|
170
|
+
m == null || m(new Error("Payment system is loading. Please try again."));
|
|
169
171
|
return;
|
|
170
172
|
}
|
|
171
173
|
const t = Math.round(s.pricing.total * 100);
|
|
172
|
-
|
|
174
|
+
U.initializePayment({
|
|
173
175
|
email: r.email || (s == null ? void 0 : s.customerEmail) || "customer@example.com",
|
|
174
176
|
amount: t,
|
|
175
177
|
currency: "NGN",
|
|
@@ -192,52 +194,54 @@ function et({
|
|
|
192
194
|
return;
|
|
193
195
|
}
|
|
194
196
|
try {
|
|
195
|
-
const t = await P.mutateAsync({
|
|
197
|
+
const { fbc: t, fbp: l } = oe(), d = await P.mutateAsync({
|
|
196
198
|
firstName: r.firstName,
|
|
197
199
|
lastName: r.lastName,
|
|
198
200
|
email: r.email,
|
|
199
201
|
phone: r.phone,
|
|
200
202
|
address: r.address,
|
|
201
203
|
city: r.city,
|
|
202
|
-
deliveryZoneId:
|
|
203
|
-
paymentMethod: r.paymentMethod
|
|
204
|
+
deliveryZoneId: y || r.deliveryZoneId,
|
|
205
|
+
paymentMethod: r.paymentMethod,
|
|
206
|
+
fbc: t,
|
|
207
|
+
fbp: l
|
|
204
208
|
});
|
|
205
|
-
if ("error" in
|
|
206
|
-
const
|
|
207
|
-
|
|
209
|
+
if ("error" in d) {
|
|
210
|
+
const o = d.error;
|
|
211
|
+
m == null || m(new Error((o == null ? void 0 : o.message) || "Checkout failed"));
|
|
208
212
|
return;
|
|
209
213
|
}
|
|
210
|
-
T(
|
|
214
|
+
T(d), H(), N == null || N(d.id);
|
|
211
215
|
} catch (t) {
|
|
212
|
-
|
|
216
|
+
m == null || m(t);
|
|
213
217
|
}
|
|
214
218
|
}
|
|
215
|
-
},
|
|
219
|
+
}, be = {
|
|
216
220
|
customer: "Customer Information",
|
|
217
221
|
delivery: "Delivery Address",
|
|
218
222
|
payment: "Payment Method"
|
|
219
|
-
},
|
|
220
|
-
(c === "payment" || c === "delivery") && ((
|
|
221
|
-
|
|
223
|
+
}, ge = $(() => be[c], [c]), xe = /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
224
|
+
(c === "payment" || c === "delivery") && ((ee = s == null ? void 0 : s.pricing) == null ? void 0 : ee.total) && /* @__PURE__ */ a("div", { className: "text-sm text-black relative", children: [
|
|
225
|
+
V && /* @__PURE__ */ e("div", { className: "absolute flex items-center justify-center inset-0 bg-white opacity-50", children: /* @__PURE__ */ e(W, { className: "animate-spin text-accent-500" }) }),
|
|
222
226
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between font-medium", children: [
|
|
223
227
|
/* @__PURE__ */ e("span", { children: "Subtotal" }),
|
|
224
|
-
/* @__PURE__ */ e("span", { children: M(((
|
|
228
|
+
/* @__PURE__ */ e("span", { children: M(((te = s == null ? void 0 : s.pricing) == null ? void 0 : te.subtotal) ?? 0) })
|
|
225
229
|
] }),
|
|
226
230
|
s.pricing.discount && /* @__PURE__ */ a("div", { className: "flex items-center justify-between font-medium", children: [
|
|
227
231
|
/* @__PURE__ */ e("span", { children: "Discount" }),
|
|
228
232
|
/* @__PURE__ */ a("span", { className: "text-green-600", children: [
|
|
229
233
|
"-",
|
|
230
|
-
M(((
|
|
234
|
+
M(((re = (ae = s == null ? void 0 : s.pricing) == null ? void 0 : ae.discount) == null ? void 0 : re.amount) ?? 0)
|
|
231
235
|
] })
|
|
232
236
|
] }),
|
|
233
237
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between font-medium", children: [
|
|
234
238
|
/* @__PURE__ */ e("span", { children: "Delivery Fee" }),
|
|
235
|
-
/* @__PURE__ */ e("span", { children: M(((
|
|
239
|
+
/* @__PURE__ */ e("span", { children: M(((se = s == null ? void 0 : s.pricing) == null ? void 0 : se.deliveryCharge) ?? 0) })
|
|
236
240
|
] }),
|
|
237
241
|
/* @__PURE__ */ e("hr", { className: "border-gray-200 my-2" }),
|
|
238
242
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between font-medium", children: [
|
|
239
243
|
/* @__PURE__ */ e("span", { children: "Total" }),
|
|
240
|
-
/* @__PURE__ */ e("span", { children: M(((
|
|
244
|
+
/* @__PURE__ */ e("span", { children: M(((le = s == null ? void 0 : s.pricing) == null ? void 0 : le.total) ?? 0) })
|
|
241
245
|
] })
|
|
242
246
|
] }),
|
|
243
247
|
/* @__PURE__ */ a("div", { className: "flex gap-3", children: [
|
|
@@ -246,11 +250,11 @@ function et({
|
|
|
246
250
|
{
|
|
247
251
|
type: "button",
|
|
248
252
|
variant: "outline",
|
|
249
|
-
onClick:
|
|
253
|
+
onClick: ve,
|
|
250
254
|
className: "flex-1 border-gray-400",
|
|
251
255
|
size: "lg",
|
|
252
256
|
children: [
|
|
253
|
-
/* @__PURE__ */ e(
|
|
257
|
+
/* @__PURE__ */ e(qe, { className: "mr-2 h-4 w-4" }),
|
|
254
258
|
"Back"
|
|
255
259
|
]
|
|
256
260
|
}
|
|
@@ -259,36 +263,36 @@ function et({
|
|
|
259
263
|
B,
|
|
260
264
|
{
|
|
261
265
|
type: "button",
|
|
262
|
-
onClick:
|
|
266
|
+
onClick: pe,
|
|
263
267
|
className: "flex-1 bg-accent-500 text-white hover:bg-accent-600",
|
|
264
268
|
size: "lg",
|
|
265
269
|
children: [
|
|
266
270
|
"Next",
|
|
267
|
-
/* @__PURE__ */ e(
|
|
271
|
+
/* @__PURE__ */ e(Ie, { className: "ml-2 h-4 w-4" })
|
|
268
272
|
]
|
|
269
273
|
}
|
|
270
274
|
) : /* @__PURE__ */ e(
|
|
271
275
|
B,
|
|
272
276
|
{
|
|
273
277
|
type: "button",
|
|
274
|
-
onClick:
|
|
278
|
+
onClick: Ne,
|
|
275
279
|
disabled: P.isPending,
|
|
276
280
|
className: "flex-1 bg-accent-500 text-white hover:bg-accent-600",
|
|
277
281
|
size: "lg",
|
|
278
|
-
children: P.isPending ? /* @__PURE__ */ a(
|
|
279
|
-
/* @__PURE__ */ e(
|
|
282
|
+
children: P.isPending ? /* @__PURE__ */ a(we, { children: [
|
|
283
|
+
/* @__PURE__ */ e(W, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
280
284
|
"Processing..."
|
|
281
|
-
] }) :
|
|
285
|
+
] }) : me
|
|
282
286
|
}
|
|
283
287
|
)
|
|
284
288
|
] }),
|
|
285
289
|
P.isError && /* @__PURE__ */ e("div", { className: "rounded-lg bg-red-50 p-3 text-sm text-red-600", children: "Failed to place order. Please check your information and try again." })
|
|
286
290
|
] }), L = (t) => !(s != null && s.availablePaymentMethods.includes(t));
|
|
287
|
-
if (
|
|
291
|
+
if (f)
|
|
288
292
|
return /* @__PURE__ */ e(
|
|
289
|
-
|
|
293
|
+
ne,
|
|
290
294
|
{
|
|
291
|
-
isOpen:
|
|
295
|
+
isOpen: i,
|
|
292
296
|
onClose: q,
|
|
293
297
|
title: "Order Placed Successfully!",
|
|
294
298
|
footer: /* @__PURE__ */ e(
|
|
@@ -303,43 +307,43 @@ function et({
|
|
|
303
307
|
size: "lg",
|
|
304
308
|
contentClassName: "p-6",
|
|
305
309
|
children: /* @__PURE__ */ a("div", { className: "text-center space-y-6", children: [
|
|
306
|
-
/* @__PURE__ */ e("div", { className: "flex justify-center", children: /* @__PURE__ */ e("div", { className: "w-20 h-20 bg-green-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
310
|
+
/* @__PURE__ */ e("div", { className: "flex justify-center", children: /* @__PURE__ */ e("div", { className: "w-20 h-20 bg-green-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ e(je, { className: "h-12 w-12 text-green-600" }) }) }),
|
|
307
311
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
308
312
|
/* @__PURE__ */ e("h3", { className: "text-2xl font-bold text-gray-900", children: "Thank You!" }),
|
|
309
313
|
/* @__PURE__ */ e("p", { className: "text-gray-600", children: "Your order has been placed successfully." })
|
|
310
314
|
] }),
|
|
311
315
|
/* @__PURE__ */ a("div", { className: "bg-gray-50 rounded-lg p-6 space-y-4", children: [
|
|
312
316
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-center space-x-2 text-gray-700", children: [
|
|
313
|
-
/* @__PURE__ */ e(
|
|
317
|
+
/* @__PURE__ */ e(ie, { className: "h-5 w-5" }),
|
|
314
318
|
/* @__PURE__ */ a("span", { className: "font-medium", children: [
|
|
315
319
|
"Order #",
|
|
316
|
-
|
|
320
|
+
f.orderNumber
|
|
317
321
|
] })
|
|
318
322
|
] }),
|
|
319
323
|
/* @__PURE__ */ a("div", { className: "border-t border-gray-200 pt-4 space-y-3", children: [
|
|
320
324
|
/* @__PURE__ */ a("div", { className: "flex justify-between text-sm", children: [
|
|
321
325
|
/* @__PURE__ */ e("span", { className: "text-gray-600", children: "Customer" }),
|
|
322
326
|
/* @__PURE__ */ a("span", { className: "font-medium text-gray-900", children: [
|
|
323
|
-
|
|
327
|
+
f.firstName,
|
|
324
328
|
" ",
|
|
325
|
-
|
|
329
|
+
f.lastName
|
|
326
330
|
] })
|
|
327
331
|
] }),
|
|
328
332
|
/* @__PURE__ */ a("div", { className: "flex justify-between text-sm", children: [
|
|
329
333
|
/* @__PURE__ */ e("span", { className: "text-gray-600", children: "Phone" }),
|
|
330
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-gray-900", children:
|
|
334
|
+
/* @__PURE__ */ e("span", { className: "font-medium text-gray-900", children: f.phone })
|
|
331
335
|
] }),
|
|
332
|
-
|
|
336
|
+
f.email && /* @__PURE__ */ a("div", { className: "flex justify-between text-sm", children: [
|
|
333
337
|
/* @__PURE__ */ e("span", { className: "text-gray-600", children: "Email" }),
|
|
334
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-gray-900", children:
|
|
338
|
+
/* @__PURE__ */ e("span", { className: "font-medium text-gray-900", children: f.email })
|
|
335
339
|
] }),
|
|
336
340
|
/* @__PURE__ */ a("div", { className: "flex justify-between text-sm", children: [
|
|
337
341
|
/* @__PURE__ */ e("span", { className: "text-gray-600", children: "Payment Method" }),
|
|
338
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-gray-900", children:
|
|
342
|
+
/* @__PURE__ */ e("span", { className: "font-medium text-gray-900", children: f.paymentMethod === "cod" ? "Cash on Delivery" : "Online Payment" })
|
|
339
343
|
] }),
|
|
340
344
|
/* @__PURE__ */ a("div", { className: "flex justify-between text-sm", children: [
|
|
341
345
|
/* @__PURE__ */ e("span", { className: "text-gray-600", children: "Total" }),
|
|
342
|
-
/* @__PURE__ */ e("span", { className: "font-bold text-gray-900", children: M(
|
|
346
|
+
/* @__PURE__ */ e("span", { className: "font-bold text-gray-900", children: M(f.totalPrice) })
|
|
343
347
|
] })
|
|
344
348
|
] })
|
|
345
349
|
] }),
|
|
@@ -351,27 +355,27 @@ function et({
|
|
|
351
355
|
] })
|
|
352
356
|
}
|
|
353
357
|
);
|
|
354
|
-
const
|
|
358
|
+
const X = p && (c === "delivery" || c === "payment") && (p.waybillOnly || !(p != null && p.allowCOD));
|
|
355
359
|
return /* @__PURE__ */ e(
|
|
356
|
-
|
|
360
|
+
ne,
|
|
357
361
|
{
|
|
358
|
-
isOpen:
|
|
362
|
+
isOpen: i,
|
|
359
363
|
onClose: q,
|
|
360
|
-
title:
|
|
361
|
-
footer:
|
|
364
|
+
title: ge,
|
|
365
|
+
footer: xe,
|
|
362
366
|
size: "lg",
|
|
363
367
|
contentClassName: "p-0",
|
|
364
|
-
children:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
/* @__PURE__ */ e(
|
|
368
|
+
children: V ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center min-h-[300px]", children: /* @__PURE__ */ e(W, { className: "h-8 w-8 animate-spin text-gray-600" }) }) : /* @__PURE__ */ e("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ a("div", { className: "relative w-full", children: [
|
|
369
|
+
X && /* @__PURE__ */ a("div", { className: "space-y-3 p-4 pb-0", children: [
|
|
370
|
+
p.waybillOnly && /* @__PURE__ */ e("div", { className: "bg-amber-50 border border-amber-200 rounded-lg p-4", children: /* @__PURE__ */ a("div", { className: "flex items-start gap-3", children: [
|
|
371
|
+
/* @__PURE__ */ e(ie, { className: "h-5 w-5 text-amber-600 flex-shrink-0 mt-0.5" }),
|
|
368
372
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
369
373
|
/* @__PURE__ */ e("p", { className: "text-sm font-semibold text-amber-900", children: "Waybill Delivery" }),
|
|
370
374
|
/* @__PURE__ */ e("p", { className: "text-sm text-amber-800", children: "We deliver orders to this location using waybill service. You'll need to pick up your order at a motor park near you." })
|
|
371
375
|
] })
|
|
372
376
|
] }) }),
|
|
373
|
-
!(
|
|
374
|
-
/* @__PURE__ */ e(
|
|
377
|
+
!(p != null && p.allowCOD) && /* @__PURE__ */ e("div", { className: "bg-blue-50 border border-blue-200 rounded-lg p-4", children: /* @__PURE__ */ a("div", { className: "flex items-start gap-3", children: [
|
|
378
|
+
/* @__PURE__ */ e(ce, { className: "h-5 w-5 text-blue-600 flex-shrink-0 mt-0.5" }),
|
|
375
379
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
376
380
|
/* @__PURE__ */ e("p", { className: "text-sm font-semibold text-blue-900", children: "Cash on Delivery Unavailable" }),
|
|
377
381
|
/* @__PURE__ */ e("p", { className: "text-sm text-blue-800", children: "We're unable to offer cash on delivery to this location. Please use online payment to complete your order." })
|
|
@@ -396,9 +400,9 @@ function et({
|
|
|
396
400
|
type: "text",
|
|
397
401
|
name: "firstName",
|
|
398
402
|
value: r.firstName,
|
|
399
|
-
onChange:
|
|
403
|
+
onChange: g,
|
|
400
404
|
onBlur: () => z("firstName"),
|
|
401
|
-
error:
|
|
405
|
+
error: h.firstName,
|
|
402
406
|
autoCorrect: "off",
|
|
403
407
|
required: !0
|
|
404
408
|
}
|
|
@@ -410,9 +414,9 @@ function et({
|
|
|
410
414
|
type: "text",
|
|
411
415
|
name: "lastName",
|
|
412
416
|
value: r.lastName,
|
|
413
|
-
onChange:
|
|
417
|
+
onChange: g,
|
|
414
418
|
onBlur: () => z("lastName"),
|
|
415
|
-
error:
|
|
419
|
+
error: h.lastName,
|
|
416
420
|
autoCorrect: "off",
|
|
417
421
|
required: !0
|
|
418
422
|
}
|
|
@@ -424,10 +428,10 @@ function et({
|
|
|
424
428
|
type: "email",
|
|
425
429
|
name: "email",
|
|
426
430
|
value: r.email,
|
|
427
|
-
onChange:
|
|
431
|
+
onChange: g,
|
|
428
432
|
onBlur: () => z("email"),
|
|
429
|
-
error:
|
|
430
|
-
icon: /* @__PURE__ */ e(
|
|
433
|
+
error: h.email,
|
|
434
|
+
icon: /* @__PURE__ */ e(Ze, { size: 16 }),
|
|
431
435
|
autoCorrect: "off",
|
|
432
436
|
required: !0
|
|
433
437
|
}
|
|
@@ -439,12 +443,12 @@ function et({
|
|
|
439
443
|
type: "tel",
|
|
440
444
|
name: "phone",
|
|
441
445
|
value: r.phone,
|
|
442
|
-
onChange:
|
|
446
|
+
onChange: g,
|
|
443
447
|
onBlur: () => z("phone"),
|
|
444
448
|
placeholder: "e.g. 08012345678",
|
|
445
449
|
maxLength: 18,
|
|
446
|
-
error:
|
|
447
|
-
icon: /* @__PURE__ */ e(
|
|
450
|
+
error: h.phone,
|
|
451
|
+
icon: /* @__PURE__ */ e(Se, { size: 16 }),
|
|
448
452
|
autoCorrect: "off",
|
|
449
453
|
required: !0,
|
|
450
454
|
className: "font-semibold"
|
|
@@ -459,8 +463,8 @@ function et({
|
|
|
459
463
|
type: "text",
|
|
460
464
|
name: "address",
|
|
461
465
|
value: r.address,
|
|
462
|
-
onChange:
|
|
463
|
-
error:
|
|
466
|
+
onChange: g,
|
|
467
|
+
error: h.address,
|
|
464
468
|
autoCorrect: "off",
|
|
465
469
|
required: !0
|
|
466
470
|
}
|
|
@@ -473,46 +477,46 @@ function et({
|
|
|
473
477
|
type: "text",
|
|
474
478
|
name: "city",
|
|
475
479
|
value: r.city,
|
|
476
|
-
onChange:
|
|
477
|
-
error:
|
|
480
|
+
onChange: g,
|
|
481
|
+
error: h.city,
|
|
478
482
|
autoCorrect: "off",
|
|
479
483
|
required: !0
|
|
480
484
|
}
|
|
481
485
|
),
|
|
482
486
|
/* @__PURE__ */ a(
|
|
483
|
-
|
|
487
|
+
de,
|
|
484
488
|
{
|
|
485
489
|
label: "State",
|
|
486
490
|
name: "state",
|
|
487
491
|
value: Z || "",
|
|
488
492
|
onChange: (t) => {
|
|
489
|
-
|
|
493
|
+
K("");
|
|
490
494
|
const l = t.target.value;
|
|
491
|
-
|
|
495
|
+
he(l || void 0), h.state && S((d) => ({ ...d, state: void 0 }));
|
|
492
496
|
},
|
|
493
|
-
error:
|
|
497
|
+
error: h.state,
|
|
494
498
|
required: !0,
|
|
495
499
|
children: [
|
|
496
500
|
/* @__PURE__ */ e("option", { disabled: !0, value: "", children: "Select State" }),
|
|
497
|
-
|
|
501
|
+
w == null ? void 0 : w.map((t) => /* @__PURE__ */ e("option", { value: t.id, children: t.name }, t.id))
|
|
498
502
|
]
|
|
499
503
|
}
|
|
500
504
|
),
|
|
501
505
|
/* @__PURE__ */ a(
|
|
502
|
-
|
|
506
|
+
de,
|
|
503
507
|
{
|
|
504
508
|
label: "Delivery Zone",
|
|
505
|
-
value:
|
|
509
|
+
value: y || "",
|
|
506
510
|
onChange: (t) => {
|
|
507
511
|
const l = t.target.value;
|
|
508
|
-
|
|
512
|
+
K(l || void 0), h.deliveryZoneId && S((d) => ({ ...d, deliveryZoneId: void 0 })), l && _.mutate({ deliveryZoneId: l });
|
|
509
513
|
},
|
|
510
|
-
disabled: !
|
|
511
|
-
error:
|
|
514
|
+
disabled: !u,
|
|
515
|
+
error: h.deliveryZoneId,
|
|
512
516
|
required: !0,
|
|
513
517
|
children: [
|
|
514
|
-
/* @__PURE__ */ e("option", { disabled: !0, value: "", children:
|
|
515
|
-
|
|
518
|
+
/* @__PURE__ */ e("option", { disabled: !0, value: "", children: u ? "Select Delivery Zone" : "Select State First" }),
|
|
519
|
+
u == null ? void 0 : u.zones.map((t) => /* @__PURE__ */ a("option", { value: t.id, children: [
|
|
516
520
|
t.name,
|
|
517
521
|
" (",
|
|
518
522
|
M(t.deliveryCost),
|
|
@@ -524,17 +528,17 @@ function et({
|
|
|
524
528
|
] })
|
|
525
529
|
] }) }),
|
|
526
530
|
/* @__PURE__ */ e("div", { className: "w-full min-w-full flex-shrink-0 p-4", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
527
|
-
j && /* @__PURE__ */ a("div", { className: `border border-gray-200 rounded-lg ${
|
|
531
|
+
j && /* @__PURE__ */ a("div", { className: `border border-gray-200 rounded-lg ${X ? "mt-4" : ""}`, children: [
|
|
528
532
|
/* @__PURE__ */ a(
|
|
529
533
|
"button",
|
|
530
534
|
{
|
|
531
535
|
type: "button",
|
|
532
|
-
onClick: () =>
|
|
536
|
+
onClick: () => fe(!O),
|
|
533
537
|
className: "overflow-hidden w-full flex items-center overflow-hidden rounded-lg rounded-b-none justify-between p-4 text-left hover:bg-gray-50 transition-colors",
|
|
534
538
|
children: [
|
|
535
539
|
/* @__PURE__ */ e("span", { className: "text-sm font-bold text-accent-700", children: j.title || "🤔 Curious about Refunds?" }),
|
|
536
540
|
/* @__PURE__ */ e(
|
|
537
|
-
|
|
541
|
+
ze,
|
|
538
542
|
{
|
|
539
543
|
size: 16,
|
|
540
544
|
className: C(
|
|
@@ -581,7 +585,7 @@ function et({
|
|
|
581
585
|
value: "online",
|
|
582
586
|
disabled: L("online"),
|
|
583
587
|
checked: r.paymentMethod === "online",
|
|
584
|
-
onChange:
|
|
588
|
+
onChange: g,
|
|
585
589
|
className: "sr-only"
|
|
586
590
|
}
|
|
587
591
|
),
|
|
@@ -593,7 +597,7 @@ function et({
|
|
|
593
597
|
"p-3 rounded-full",
|
|
594
598
|
r.paymentMethod === "online" ? "bg-accent-100 text-accent-600" : "bg-gray-100 text-gray-600"
|
|
595
599
|
),
|
|
596
|
-
children: /* @__PURE__ */ e(
|
|
600
|
+
children: /* @__PURE__ */ e(Fe, { size: 24 })
|
|
597
601
|
}
|
|
598
602
|
),
|
|
599
603
|
/* @__PURE__ */ a("div", { children: [
|
|
@@ -602,7 +606,7 @@ function et({
|
|
|
602
606
|
/* @__PURE__ */ e(
|
|
603
607
|
"img",
|
|
604
608
|
{
|
|
605
|
-
src:
|
|
609
|
+
src: Le,
|
|
606
610
|
alt: "Paystack",
|
|
607
611
|
className: "h-4 w-auto mt-2 mx-auto"
|
|
608
612
|
}
|
|
@@ -630,7 +634,7 @@ function et({
|
|
|
630
634
|
value: "cod",
|
|
631
635
|
disabled: L("cod"),
|
|
632
636
|
checked: r.paymentMethod === "cod",
|
|
633
|
-
onChange:
|
|
637
|
+
onChange: g,
|
|
634
638
|
className: "sr-only"
|
|
635
639
|
}
|
|
636
640
|
),
|
|
@@ -642,7 +646,7 @@ function et({
|
|
|
642
646
|
"p-3 rounded-full",
|
|
643
647
|
r.paymentMethod === "cod" ? "bg-accent-100 text-accent-600" : "bg-gray-100 text-gray-600"
|
|
644
648
|
),
|
|
645
|
-
children: /* @__PURE__ */ e(
|
|
649
|
+
children: /* @__PURE__ */ e(ce, { size: 24 })
|
|
646
650
|
}
|
|
647
651
|
),
|
|
648
652
|
/* @__PURE__ */ a("div", { children: [
|
|
@@ -655,7 +659,7 @@ function et({
|
|
|
655
659
|
}
|
|
656
660
|
)
|
|
657
661
|
] }),
|
|
658
|
-
|
|
662
|
+
h.paymentMethod && /* @__PURE__ */ e("p", { className: "text-red-600 text-sm", children: h.paymentMethod })
|
|
659
663
|
] }) })
|
|
660
664
|
]
|
|
661
665
|
}
|
|
@@ -665,5 +669,5 @@ function et({
|
|
|
665
669
|
);
|
|
666
670
|
}
|
|
667
671
|
export {
|
|
668
|
-
|
|
672
|
+
at as Checkout
|
|
669
673
|
};
|