@burdenoff/microfe-kadaikodi 2026.625.1 → 2026.626.2
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/kadaikodi/pages/HomePage.js +19 -14
- package/dist/kadaikodi/pages/HomePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +118 -83
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminDashboard.js +75 -46
- package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +144 -128
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +255 -237
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js +129 -128
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +178 -150
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/CartManagementPage.js +182 -159
- package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/UserManagementPage.js +325 -303
- package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +500 -469
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +534 -503
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +73 -48
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +103 -96
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +130 -129
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +673 -670
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +517 -514
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +140 -125
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/HelpSupportPage.js +302 -311
- package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js +102 -91
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/SettingsPage.js +766 -734
- package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +366 -356
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CartDetailPage.js +243 -213
- package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +200 -195
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CheckoutPage.js +95 -89
- package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js +430 -387
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +488 -478
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +523 -512
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/FavoritesPage.js +83 -75
- package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +116 -108
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +67 -61
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +90 -73
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/ReviewsPage.js +80 -72
- package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +70 -53
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +289 -255
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +92 -84
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +63 -55
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js +339 -311
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +40 -32
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +174 -150
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +302 -273
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js +87 -59
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +82 -75
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +78 -71
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +2 -2
|
@@ -6,22 +6,23 @@ import { formatCurrency as i, formatDate as a } from "../../utils/formatters.js"
|
|
|
6
6
|
import { useState as o } from "react";
|
|
7
7
|
import { AlertTriangle as s, Award as c, BarChart3 as l, Bell as u, Camera as d, CheckCircle2 as f, ChevronRight as p, Edit3 as m, Heart as h, IndianRupee as g, MapPin as _, Save as v, Settings as y, Shield as b, ShoppingBag as x, User as S, UserCircle as C, X as w } from "lucide-react";
|
|
8
8
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
9
|
+
import { GlassCard as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
|
|
9
10
|
//#region src/kadaikodi/pages/customer/CustomerProfilePage.tsx
|
|
10
|
-
var
|
|
11
|
+
var k = [
|
|
11
12
|
"vegetarian",
|
|
12
13
|
"vegan",
|
|
13
14
|
"jain",
|
|
14
15
|
"keto",
|
|
15
16
|
"gluten-free",
|
|
16
17
|
"low-carb"
|
|
17
|
-
],
|
|
18
|
+
], A = [
|
|
18
19
|
"nuts",
|
|
19
20
|
"dairy",
|
|
20
21
|
"eggs",
|
|
21
22
|
"soy",
|
|
22
23
|
"shellfish",
|
|
23
24
|
"gluten"
|
|
24
|
-
],
|
|
25
|
+
], j = [{
|
|
25
26
|
id: "addr-1",
|
|
26
27
|
label: "Home",
|
|
27
28
|
street: "123, MG Road",
|
|
@@ -40,22 +41,22 @@ var D = [
|
|
|
40
41
|
pincode: "560066",
|
|
41
42
|
isDefault: !1
|
|
42
43
|
}];
|
|
43
|
-
function
|
|
44
|
-
let { navigateTo:
|
|
45
|
-
firstName:
|
|
46
|
-
lastName:
|
|
47
|
-
email:
|
|
44
|
+
function M() {
|
|
45
|
+
let { navigateTo: M, currentUser: N } = e(), { data: P = [], isLoading: F } = r({ customerId: N?.id }), [I, L] = o("profile"), [R, z] = o(!1), B = {
|
|
46
|
+
firstName: N?.firstName || N?.name?.split(" ")[0] || "Customer",
|
|
47
|
+
lastName: N?.lastName || N?.name?.split(" ").slice(1).join(" ") || "",
|
|
48
|
+
email: N?.email || "",
|
|
48
49
|
phone: "+91 98765 43210",
|
|
49
|
-
profilePicture:
|
|
50
|
+
profilePicture: N?.avatar,
|
|
50
51
|
isEmailVerified: !0,
|
|
51
52
|
isPhoneVerified: !0,
|
|
52
53
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
53
54
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
54
|
-
}, [
|
|
55
|
-
firstName:
|
|
56
|
-
lastName:
|
|
57
|
-
email:
|
|
58
|
-
phone:
|
|
55
|
+
}, [V, H] = o({
|
|
56
|
+
firstName: B.firstName,
|
|
57
|
+
lastName: B.lastName,
|
|
58
|
+
email: B.email,
|
|
59
|
+
phone: B.phone,
|
|
59
60
|
emergencyContact: {
|
|
60
61
|
name: "Priya Sharma",
|
|
61
62
|
phone: "+91 98765 43211",
|
|
@@ -69,51 +70,51 @@ function A() {
|
|
|
69
70
|
newsletter: !1,
|
|
70
71
|
sms: !0
|
|
71
72
|
}
|
|
72
|
-
}), [
|
|
73
|
-
totalOrders:
|
|
74
|
-
totalSpent:
|
|
75
|
-
loyaltyPoints: Math.floor(
|
|
76
|
-
avgOrderValue:
|
|
73
|
+
}), [U, W] = o({ ...V }), G = {
|
|
74
|
+
totalOrders: P.length,
|
|
75
|
+
totalSpent: P.reduce((e, t) => e + t.total, 0),
|
|
76
|
+
loyaltyPoints: Math.floor(P.reduce((e, t) => e + t.total, 0) / 10),
|
|
77
|
+
avgOrderValue: P.length > 0 ? Math.floor(P.reduce((e, t) => e + t.total, 0) / P.length) : 0,
|
|
77
78
|
favoriteCategory: "South Indian",
|
|
78
|
-
memberSince:
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
}, K = () => {
|
|
82
|
-
H({ ...z }), L(!1);
|
|
83
|
-
}, q = () => {
|
|
84
|
-
B({ ...V }), L(!1), alert("Profile updated successfully");
|
|
79
|
+
memberSince: B.createdAt
|
|
80
|
+
}, K = F, q = () => {
|
|
81
|
+
W({ ...V }), z(!0);
|
|
85
82
|
}, J = () => {
|
|
86
|
-
|
|
87
|
-
}, Y = (
|
|
88
|
-
H((
|
|
83
|
+
W({ ...V }), z(!1);
|
|
84
|
+
}, Y = () => {
|
|
85
|
+
H({ ...U }), z(!1), alert("Profile updated successfully");
|
|
86
|
+
}, X = () => {
|
|
87
|
+
H({ ...U }), alert("Preferences saved successfully");
|
|
88
|
+
}, Z = (e, t) => {
|
|
89
|
+
W((n) => ({
|
|
89
90
|
...n,
|
|
90
91
|
[e]: t
|
|
91
92
|
}));
|
|
92
|
-
},
|
|
93
|
-
|
|
93
|
+
}, Q = (e, t) => {
|
|
94
|
+
W((n) => ({
|
|
94
95
|
...n,
|
|
95
96
|
emergencyContact: {
|
|
96
97
|
...n.emergencyContact,
|
|
97
98
|
[e]: t
|
|
98
99
|
}
|
|
99
100
|
}));
|
|
100
|
-
},
|
|
101
|
-
|
|
101
|
+
}, ee = (e, t) => {
|
|
102
|
+
W((n) => ({
|
|
102
103
|
...n,
|
|
103
104
|
notifications: {
|
|
104
105
|
...n.notifications,
|
|
105
106
|
[e]: t
|
|
106
107
|
}
|
|
107
108
|
}));
|
|
108
|
-
},
|
|
109
|
-
|
|
109
|
+
}, $ = (e, t, n) => {
|
|
110
|
+
W((r) => {
|
|
110
111
|
let i = r[e], a = n ? [...i, t] : i.filter((e) => e !== t);
|
|
111
112
|
return {
|
|
112
113
|
...r,
|
|
113
114
|
[e]: a
|
|
114
115
|
};
|
|
115
116
|
});
|
|
116
|
-
},
|
|
117
|
+
}, te = [
|
|
117
118
|
{
|
|
118
119
|
key: "profile",
|
|
119
120
|
label: "Profile Info",
|
|
@@ -130,7 +131,7 @@ function A() {
|
|
|
130
131
|
icon: l
|
|
131
132
|
}
|
|
132
133
|
];
|
|
133
|
-
return
|
|
134
|
+
return K ? /* @__PURE__ */ T(n, {
|
|
134
135
|
title: "My Profile",
|
|
135
136
|
children: /* @__PURE__ */ E("div", {
|
|
136
137
|
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
@@ -142,480 +143,489 @@ function A() {
|
|
|
142
143
|
}) : /* @__PURE__ */ E(n, {
|
|
143
144
|
title: "My Profile",
|
|
144
145
|
description: "Manage your personal information and preferences",
|
|
145
|
-
children: [
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
alt: `${R.firstName} ${R.lastName}`,
|
|
155
|
-
className: "h-full w-full object-cover"
|
|
156
|
-
}) : /* @__PURE__ */ T("div", {
|
|
157
|
-
className: "flex h-full w-full items-center justify-center text-text-secondary",
|
|
158
|
-
children: /* @__PURE__ */ T(S, { className: "h-10 w-10" })
|
|
159
|
-
})
|
|
160
|
-
}), /* @__PURE__ */ T("button", {
|
|
161
|
-
type: "button",
|
|
162
|
-
className: "absolute bottom-0 right-0 flex h-8 w-8 items-center justify-center rounded-full bg-foreground text-background shadow-sm hover:opacity-90 transition-opacity",
|
|
163
|
-
children: /* @__PURE__ */ T(d, { className: "h-4 w-4" })
|
|
164
|
-
})]
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ E("div", {
|
|
167
|
-
className: "flex-1 text-center sm:text-left",
|
|
168
|
-
children: [
|
|
169
|
-
/* @__PURE__ */ E("h2", {
|
|
170
|
-
className: "text-xl font-semibold text-text-primary",
|
|
171
|
-
children: [
|
|
172
|
-
z.firstName,
|
|
173
|
-
" ",
|
|
174
|
-
z.lastName
|
|
175
|
-
]
|
|
176
|
-
}),
|
|
177
|
-
/* @__PURE__ */ T("p", {
|
|
178
|
-
className: "mt-1 text-sm text-text-secondary",
|
|
179
|
-
children: z.email
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ T("p", {
|
|
182
|
-
className: "mt-0.5 text-sm text-text-secondary",
|
|
183
|
-
children: z.phone
|
|
184
|
-
}),
|
|
185
|
-
/* @__PURE__ */ E("div", {
|
|
186
|
-
className: "flex flex-wrap items-center justify-center sm:justify-start gap-2 mt-2",
|
|
187
|
-
children: [/* @__PURE__ */ E("span", {
|
|
188
|
-
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isEmailVerified ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
189
|
-
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), R.isEmailVerified ? "Email Verified" : "Email Not Verified"]
|
|
190
|
-
}), /* @__PURE__ */ E("span", {
|
|
191
|
-
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isPhoneVerified ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
192
|
-
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), R.isPhoneVerified ? "Phone Verified" : "Phone Not Verified"]
|
|
193
|
-
})]
|
|
194
|
-
})
|
|
195
|
-
]
|
|
196
|
-
}),
|
|
197
|
-
/* @__PURE__ */ E("div", {
|
|
198
|
-
className: "text-center sm:text-right",
|
|
199
|
-
children: [/* @__PURE__ */ T("p", {
|
|
200
|
-
className: "text-2xl font-bold text-text-primary",
|
|
201
|
-
children: U.loyaltyPoints
|
|
202
|
-
}), /* @__PURE__ */ T("p", {
|
|
203
|
-
className: "text-xs text-text-secondary",
|
|
204
|
-
children: "Loyalty Points"
|
|
205
|
-
})]
|
|
206
|
-
})
|
|
207
|
-
]
|
|
208
|
-
}), /* @__PURE__ */ E("div", {
|
|
209
|
-
className: "mt-6 rounded-lg border border-border-subtle bg-bg-surface",
|
|
210
|
-
children: [/* @__PURE__ */ T("div", {
|
|
211
|
-
className: "border-b border-border-subtle",
|
|
212
|
-
children: /* @__PURE__ */ T("nav", {
|
|
213
|
-
className: "flex -mb-px overflow-x-auto",
|
|
214
|
-
children: $.map((e) => {
|
|
215
|
-
let n = e.icon;
|
|
216
|
-
return /* @__PURE__ */ E("button", {
|
|
217
|
-
type: "button",
|
|
218
|
-
className: t("flex items-center gap-2 py-3.5 px-5 text-sm font-medium whitespace-nowrap transition-colors", P === e.key ? "border-b-2 border-foreground text-text-primary" : "text-text-secondary hover:text-text-primary"),
|
|
219
|
-
onClick: () => F(e.key),
|
|
220
|
-
children: [/* @__PURE__ */ T(n, { className: "h-4 w-4" }), e.label]
|
|
221
|
-
}, e.key);
|
|
222
|
-
})
|
|
223
|
-
})
|
|
224
|
-
}), /* @__PURE__ */ E("div", {
|
|
225
|
-
className: "p-5 md:p-6",
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ T(O, {
|
|
148
|
+
className: "mb-6",
|
|
149
|
+
children: "Your account, your way — keep your contact details, delivery address and preferences up to date, check your loyalty rewards, and manage how Kadaikodi reaches you. Accurate details mean smoother orders and deliveries."
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ E(D, {
|
|
152
|
+
treatment: "glass",
|
|
153
|
+
glow: !0,
|
|
154
|
+
className: "flex flex-col items-center sm:flex-row sm:items-start gap-6 p-6",
|
|
226
155
|
children: [
|
|
227
|
-
|
|
228
|
-
className: "
|
|
156
|
+
/* @__PURE__ */ E("div", {
|
|
157
|
+
className: "relative",
|
|
158
|
+
children: [/* @__PURE__ */ T("div", {
|
|
159
|
+
className: "h-24 w-24 rounded-full bg-bg-sunken overflow-hidden",
|
|
160
|
+
children: B.profilePicture ? /* @__PURE__ */ T("img", {
|
|
161
|
+
src: B.profilePicture,
|
|
162
|
+
alt: `${B.firstName} ${B.lastName}`,
|
|
163
|
+
className: "h-full w-full object-cover"
|
|
164
|
+
}) : /* @__PURE__ */ T("div", {
|
|
165
|
+
className: "flex h-full w-full items-center justify-center text-text-secondary",
|
|
166
|
+
children: /* @__PURE__ */ T(S, { className: "h-10 w-10" })
|
|
167
|
+
})
|
|
168
|
+
}), /* @__PURE__ */ T("button", {
|
|
169
|
+
type: "button",
|
|
170
|
+
className: "absolute bottom-0 right-0 flex h-8 w-8 items-center justify-center rounded-full bg-foreground text-background shadow-sm hover:opacity-90 transition-opacity",
|
|
171
|
+
children: /* @__PURE__ */ T(d, { className: "h-4 w-4" })
|
|
172
|
+
})]
|
|
173
|
+
}),
|
|
174
|
+
/* @__PURE__ */ E("div", {
|
|
175
|
+
className: "flex-1 text-center sm:text-left",
|
|
229
176
|
children: [
|
|
230
|
-
/* @__PURE__ */ E("
|
|
231
|
-
className: "
|
|
232
|
-
children: [/* @__PURE__ */ T("h3", {
|
|
233
|
-
className: "text-lg font-semibold text-text-primary",
|
|
234
|
-
children: "Personal Information"
|
|
235
|
-
}), I ? /* @__PURE__ */ E("div", {
|
|
236
|
-
className: "flex gap-2",
|
|
237
|
-
children: [/* @__PURE__ */ E("button", {
|
|
238
|
-
type: "button",
|
|
239
|
-
onClick: q,
|
|
240
|
-
className: "flex items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 transition-opacity",
|
|
241
|
-
children: [/* @__PURE__ */ T(v, { className: "h-3 w-3" }), "Save"]
|
|
242
|
-
}), /* @__PURE__ */ E("button", {
|
|
243
|
-
type: "button",
|
|
244
|
-
onClick: K,
|
|
245
|
-
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
246
|
-
children: [/* @__PURE__ */ T(w, { className: "h-3 w-3" }), "Cancel"]
|
|
247
|
-
})]
|
|
248
|
-
}) : /* @__PURE__ */ E("button", {
|
|
249
|
-
type: "button",
|
|
250
|
-
onClick: G,
|
|
251
|
-
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
252
|
-
children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), "Edit Profile"]
|
|
253
|
-
})]
|
|
254
|
-
}),
|
|
255
|
-
/* @__PURE__ */ E("div", {
|
|
256
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-5",
|
|
177
|
+
/* @__PURE__ */ E("h2", {
|
|
178
|
+
className: "text-xl font-semibold text-text-primary",
|
|
257
179
|
children: [
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}), /* @__PURE__ */ T("input", {
|
|
262
|
-
type: "text",
|
|
263
|
-
value: I ? V.firstName : z.firstName,
|
|
264
|
-
onChange: (e) => Y("firstName", e.target.value),
|
|
265
|
-
disabled: !I,
|
|
266
|
-
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
267
|
-
})] }),
|
|
268
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
269
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
270
|
-
children: "Last Name"
|
|
271
|
-
}), /* @__PURE__ */ T("input", {
|
|
272
|
-
type: "text",
|
|
273
|
-
value: I ? V.lastName : z.lastName,
|
|
274
|
-
onChange: (e) => Y("lastName", e.target.value),
|
|
275
|
-
disabled: !I,
|
|
276
|
-
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
277
|
-
})] }),
|
|
278
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
279
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
280
|
-
children: "Email"
|
|
281
|
-
}), /* @__PURE__ */ T("input", {
|
|
282
|
-
type: "email",
|
|
283
|
-
value: I ? V.email : z.email,
|
|
284
|
-
onChange: (e) => Y("email", e.target.value),
|
|
285
|
-
disabled: !I,
|
|
286
|
-
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
287
|
-
})] }),
|
|
288
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
289
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
290
|
-
children: "Phone"
|
|
291
|
-
}), /* @__PURE__ */ T("input", {
|
|
292
|
-
type: "tel",
|
|
293
|
-
value: I ? V.phone : z.phone,
|
|
294
|
-
onChange: (e) => Y("phone", e.target.value),
|
|
295
|
-
disabled: !I,
|
|
296
|
-
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
297
|
-
})] })
|
|
180
|
+
V.firstName,
|
|
181
|
+
" ",
|
|
182
|
+
V.lastName
|
|
298
183
|
]
|
|
299
184
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
className: "
|
|
302
|
-
children:
|
|
303
|
-
}),
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
children: [
|
|
317
|
-
k[0].city,
|
|
318
|
-
", ",
|
|
319
|
-
k[0].state,
|
|
320
|
-
" - ",
|
|
321
|
-
k[0].pincode
|
|
322
|
-
]
|
|
323
|
-
}),
|
|
324
|
-
/* @__PURE__ */ E("button", {
|
|
325
|
-
type: "button",
|
|
326
|
-
onClick: () => A("/customer/addresses"),
|
|
327
|
-
className: "mt-2 flex items-center gap-1 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
328
|
-
children: [
|
|
329
|
-
/* @__PURE__ */ T(_, { className: "h-3 w-3" }),
|
|
330
|
-
"Manage Addresses",
|
|
331
|
-
/* @__PURE__ */ T(p, { className: "h-3 w-3" })
|
|
332
|
-
]
|
|
333
|
-
})
|
|
334
|
-
]
|
|
335
|
-
})] }),
|
|
336
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h4", {
|
|
337
|
-
className: "text-base font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
338
|
-
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-text-secondary" }), "Emergency Contact"]
|
|
339
|
-
}), /* @__PURE__ */ E("div", {
|
|
340
|
-
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
341
|
-
children: [
|
|
342
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
343
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
344
|
-
children: "Name"
|
|
345
|
-
}), /* @__PURE__ */ T("input", {
|
|
346
|
-
type: "text",
|
|
347
|
-
value: I ? V.emergencyContact.name : z.emergencyContact.name,
|
|
348
|
-
onChange: (e) => X("name", e.target.value),
|
|
349
|
-
disabled: !I,
|
|
350
|
-
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
351
|
-
})] }),
|
|
352
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
353
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
354
|
-
children: "Phone"
|
|
355
|
-
}), /* @__PURE__ */ T("input", {
|
|
356
|
-
type: "tel",
|
|
357
|
-
value: I ? V.emergencyContact.phone : z.emergencyContact.phone,
|
|
358
|
-
onChange: (e) => X("phone", e.target.value),
|
|
359
|
-
disabled: !I,
|
|
360
|
-
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
361
|
-
})] }),
|
|
362
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
363
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
364
|
-
children: "Relationship"
|
|
365
|
-
}), /* @__PURE__ */ T("input", {
|
|
366
|
-
type: "text",
|
|
367
|
-
value: I ? V.emergencyContact.relationship : z.emergencyContact.relationship,
|
|
368
|
-
onChange: (e) => X("relationship", e.target.value),
|
|
369
|
-
disabled: !I,
|
|
370
|
-
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
371
|
-
})] })
|
|
372
|
-
]
|
|
373
|
-
})] }),
|
|
374
|
-
I && /* @__PURE__ */ E("div", {
|
|
375
|
-
className: "flex gap-3 pt-4 border-t border-border-subtle",
|
|
376
|
-
children: [/* @__PURE__ */ E("button", {
|
|
377
|
-
type: "button",
|
|
378
|
-
onClick: q,
|
|
379
|
-
className: "flex items-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
380
|
-
children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Save Changes"]
|
|
381
|
-
}), /* @__PURE__ */ T("button", {
|
|
382
|
-
type: "button",
|
|
383
|
-
onClick: K,
|
|
384
|
-
className: "flex items-center gap-2 rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
385
|
-
children: "Cancel"
|
|
185
|
+
/* @__PURE__ */ T("p", {
|
|
186
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
187
|
+
children: V.email
|
|
188
|
+
}),
|
|
189
|
+
/* @__PURE__ */ T("p", {
|
|
190
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
191
|
+
children: V.phone
|
|
192
|
+
}),
|
|
193
|
+
/* @__PURE__ */ E("div", {
|
|
194
|
+
className: "flex flex-wrap items-center justify-center sm:justify-start gap-2 mt-2",
|
|
195
|
+
children: [/* @__PURE__ */ E("span", {
|
|
196
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", B.isEmailVerified ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
197
|
+
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), B.isEmailVerified ? "Email Verified" : "Email Not Verified"]
|
|
198
|
+
}), /* @__PURE__ */ E("span", {
|
|
199
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", B.isPhoneVerified ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
200
|
+
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), B.isPhoneVerified ? "Phone Verified" : "Phone Not Verified"]
|
|
386
201
|
})]
|
|
387
202
|
})
|
|
388
203
|
]
|
|
389
204
|
}),
|
|
390
|
-
|
|
391
|
-
className: "
|
|
392
|
-
children: [
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
className: "text-sm text-text-primary",
|
|
424
|
-
children: e.label
|
|
425
|
-
})]
|
|
426
|
-
}, e.key))
|
|
427
|
-
})] }),
|
|
428
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
429
|
-
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
430
|
-
children: [/* @__PURE__ */ T(h, { className: "h-4 w-4 text-text-secondary" }), "Dietary Preferences"]
|
|
431
|
-
}), /* @__PURE__ */ T("div", {
|
|
432
|
-
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
433
|
-
children: D.map((e) => /* @__PURE__ */ E("label", {
|
|
434
|
-
className: "flex items-center gap-2 cursor-pointer",
|
|
435
|
-
children: [/* @__PURE__ */ T("input", {
|
|
436
|
-
type: "checkbox",
|
|
437
|
-
checked: V.dietary.includes(e),
|
|
438
|
-
onChange: (t) => Q("dietary", e, t.target.checked),
|
|
439
|
-
className: "h-4 w-4 rounded border-border-subtle text-text-primary focus:ring-[var(--color-focus-ring)]"
|
|
440
|
-
}), /* @__PURE__ */ T("span", {
|
|
441
|
-
className: "text-sm text-text-primary capitalize",
|
|
442
|
-
children: e
|
|
443
|
-
})]
|
|
444
|
-
}, e))
|
|
445
|
-
})] }),
|
|
446
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
447
|
-
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
448
|
-
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-status-error-text" }), "Food Allergies"]
|
|
449
|
-
}), /* @__PURE__ */ T("div", {
|
|
450
|
-
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
451
|
-
children: O.map((e) => /* @__PURE__ */ E("label", {
|
|
452
|
-
className: "flex items-center gap-2 cursor-pointer",
|
|
453
|
-
children: [/* @__PURE__ */ T("input", {
|
|
454
|
-
type: "checkbox",
|
|
455
|
-
checked: V.allergies.includes(e),
|
|
456
|
-
onChange: (t) => Q("allergies", e, t.target.checked),
|
|
457
|
-
className: "h-4 w-4 rounded border-border-subtle text-status-error-text focus:ring-destructive"
|
|
458
|
-
}), /* @__PURE__ */ T("span", {
|
|
459
|
-
className: "text-sm text-text-primary capitalize",
|
|
460
|
-
children: e
|
|
461
|
-
})]
|
|
462
|
-
}, e))
|
|
463
|
-
})] }),
|
|
464
|
-
/* @__PURE__ */ T("div", {
|
|
465
|
-
className: "pt-4 border-t border-border-subtle",
|
|
466
|
-
children: /* @__PURE__ */ E("button", {
|
|
467
|
-
type: "button",
|
|
468
|
-
onClick: J,
|
|
469
|
-
className: "flex items-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
470
|
-
children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Save Preferences"]
|
|
471
|
-
})
|
|
472
|
-
})
|
|
473
|
-
]
|
|
474
|
-
}),
|
|
475
|
-
P === "stats" && /* @__PURE__ */ E("div", {
|
|
476
|
-
className: "space-y-8",
|
|
477
|
-
children: [/* @__PURE__ */ E("div", {
|
|
478
|
-
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
205
|
+
/* @__PURE__ */ E("div", {
|
|
206
|
+
className: "text-center sm:text-right",
|
|
207
|
+
children: [/* @__PURE__ */ T("p", {
|
|
208
|
+
className: "text-2xl font-bold text-text-primary",
|
|
209
|
+
children: G.loyaltyPoints
|
|
210
|
+
}), /* @__PURE__ */ T("p", {
|
|
211
|
+
className: "text-xs text-text-secondary",
|
|
212
|
+
children: "Loyalty Points"
|
|
213
|
+
})]
|
|
214
|
+
})
|
|
215
|
+
]
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ E("div", {
|
|
218
|
+
className: "mt-6 rounded-lg border border-border-subtle bg-bg-surface",
|
|
219
|
+
children: [/* @__PURE__ */ T("div", {
|
|
220
|
+
className: "border-b border-border-subtle",
|
|
221
|
+
children: /* @__PURE__ */ T("nav", {
|
|
222
|
+
className: "flex -mb-px overflow-x-auto",
|
|
223
|
+
children: te.map((e) => {
|
|
224
|
+
let n = e.icon;
|
|
225
|
+
return /* @__PURE__ */ E("button", {
|
|
226
|
+
type: "button",
|
|
227
|
+
className: t("flex items-center gap-2 py-3.5 px-5 text-sm font-medium whitespace-nowrap transition-colors", I === e.key ? "border-b-2 border-foreground text-text-primary" : "text-text-secondary hover:text-text-primary"),
|
|
228
|
+
onClick: () => L(e.key),
|
|
229
|
+
children: [/* @__PURE__ */ T(n, { className: "h-4 w-4" }), e.label]
|
|
230
|
+
}, e.key);
|
|
231
|
+
})
|
|
232
|
+
})
|
|
233
|
+
}), /* @__PURE__ */ E("div", {
|
|
234
|
+
className: "p-5 md:p-6",
|
|
235
|
+
children: [
|
|
236
|
+
I === "profile" && /* @__PURE__ */ E("div", {
|
|
237
|
+
className: "space-y-6",
|
|
479
238
|
children: [
|
|
480
239
|
/* @__PURE__ */ E("div", {
|
|
481
|
-
className: "
|
|
482
|
-
children: [/* @__PURE__ */
|
|
483
|
-
className: "
|
|
484
|
-
children:
|
|
485
|
-
|
|
486
|
-
|
|
240
|
+
className: "flex justify-between items-center",
|
|
241
|
+
children: [/* @__PURE__ */ T("h3", {
|
|
242
|
+
className: "text-lg font-semibold text-text-primary",
|
|
243
|
+
children: "Personal Information"
|
|
244
|
+
}), R ? /* @__PURE__ */ E("div", {
|
|
245
|
+
className: "flex gap-2",
|
|
246
|
+
children: [/* @__PURE__ */ E("button", {
|
|
247
|
+
type: "button",
|
|
248
|
+
onClick: Y,
|
|
249
|
+
className: "flex items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 transition-opacity",
|
|
250
|
+
children: [/* @__PURE__ */ T(v, { className: "h-3 w-3" }), "Save"]
|
|
251
|
+
}), /* @__PURE__ */ E("button", {
|
|
252
|
+
type: "button",
|
|
253
|
+
onClick: J,
|
|
254
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
255
|
+
children: [/* @__PURE__ */ T(w, { className: "h-3 w-3" }), "Cancel"]
|
|
487
256
|
})]
|
|
488
|
-
})
|
|
489
|
-
|
|
490
|
-
|
|
257
|
+
}) : /* @__PURE__ */ E("button", {
|
|
258
|
+
type: "button",
|
|
259
|
+
onClick: q,
|
|
260
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
261
|
+
children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), "Edit Profile"]
|
|
491
262
|
})]
|
|
492
263
|
}),
|
|
493
264
|
/* @__PURE__ */ E("div", {
|
|
494
|
-
className: "
|
|
495
|
-
children: [
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
265
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-5",
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
268
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
269
|
+
children: "First Name"
|
|
270
|
+
}), /* @__PURE__ */ T("input", {
|
|
271
|
+
type: "text",
|
|
272
|
+
value: R ? U.firstName : V.firstName,
|
|
273
|
+
onChange: (e) => Z("firstName", e.target.value),
|
|
274
|
+
disabled: !R,
|
|
275
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !R && "bg-bg-sunken cursor-not-allowed", R && "bg-bg-surface")
|
|
276
|
+
})] }),
|
|
277
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
278
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
279
|
+
children: "Last Name"
|
|
280
|
+
}), /* @__PURE__ */ T("input", {
|
|
281
|
+
type: "text",
|
|
282
|
+
value: R ? U.lastName : V.lastName,
|
|
283
|
+
onChange: (e) => Z("lastName", e.target.value),
|
|
284
|
+
disabled: !R,
|
|
285
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !R && "bg-bg-sunken cursor-not-allowed", R && "bg-bg-surface")
|
|
286
|
+
})] }),
|
|
287
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
288
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
289
|
+
children: "Email"
|
|
290
|
+
}), /* @__PURE__ */ T("input", {
|
|
291
|
+
type: "email",
|
|
292
|
+
value: R ? U.email : V.email,
|
|
293
|
+
onChange: (e) => Z("email", e.target.value),
|
|
294
|
+
disabled: !R,
|
|
295
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !R && "bg-bg-sunken cursor-not-allowed", R && "bg-bg-surface")
|
|
296
|
+
})] }),
|
|
297
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
298
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
299
|
+
children: "Phone"
|
|
300
|
+
}), /* @__PURE__ */ T("input", {
|
|
301
|
+
type: "tel",
|
|
302
|
+
value: R ? U.phone : V.phone,
|
|
303
|
+
onChange: (e) => Z("phone", e.target.value),
|
|
304
|
+
disabled: !R,
|
|
305
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !R && "bg-bg-sunken cursor-not-allowed", R && "bg-bg-surface")
|
|
306
|
+
})] })
|
|
307
|
+
]
|
|
505
308
|
}),
|
|
506
|
-
/* @__PURE__ */ E("div", {
|
|
507
|
-
className: "
|
|
508
|
-
children:
|
|
509
|
-
className: "flex items-center gap-2 mb-2",
|
|
510
|
-
children: [/* @__PURE__ */ T(c, { className: "h-4 w-4 text-text-primary" }), /* @__PURE__ */ T("h4", {
|
|
511
|
-
className: "text-sm font-medium text-text-primary",
|
|
512
|
-
children: "Loyalty Points"
|
|
513
|
-
})]
|
|
514
|
-
}), /* @__PURE__ */ T("p", {
|
|
515
|
-
className: "text-3xl font-bold text-text-primary",
|
|
516
|
-
children: U.loyaltyPoints
|
|
517
|
-
})]
|
|
518
|
-
})
|
|
519
|
-
]
|
|
520
|
-
}), /* @__PURE__ */ E("div", {
|
|
521
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
522
|
-
children: [/* @__PURE__ */ E("div", {
|
|
523
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
524
|
-
children: [/* @__PURE__ */ E("h4", {
|
|
525
|
-
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
526
|
-
children: [/* @__PURE__ */ T(l, { className: "h-4 w-4 text-text-secondary" }), "Order Statistics"]
|
|
309
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h4", {
|
|
310
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
311
|
+
children: "Primary Address"
|
|
527
312
|
}), /* @__PURE__ */ E("div", {
|
|
528
|
-
className: "
|
|
313
|
+
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
529
314
|
children: [
|
|
530
|
-
/* @__PURE__ */
|
|
531
|
-
className: "
|
|
532
|
-
children: [
|
|
533
|
-
className: "text-sm text-text-secondary",
|
|
534
|
-
children: "Average Order Value"
|
|
535
|
-
}), /* @__PURE__ */ T("span", {
|
|
536
|
-
className: "text-sm font-medium text-text-primary",
|
|
537
|
-
children: i(U.avgOrderValue, { minimumFractionDigits: 0 })
|
|
538
|
-
})]
|
|
315
|
+
/* @__PURE__ */ T("p", {
|
|
316
|
+
className: "text-sm font-medium text-text-primary",
|
|
317
|
+
children: j[0].street
|
|
539
318
|
}),
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
className: "
|
|
542
|
-
children: [
|
|
543
|
-
className: "text-sm text-text-secondary",
|
|
544
|
-
children: "Favorite Category"
|
|
545
|
-
}), /* @__PURE__ */ T("span", {
|
|
546
|
-
className: "text-sm font-medium text-text-primary",
|
|
547
|
-
children: U.favoriteCategory
|
|
548
|
-
})]
|
|
319
|
+
/* @__PURE__ */ T("p", {
|
|
320
|
+
className: "text-sm text-text-secondary",
|
|
321
|
+
children: j[0].area
|
|
549
322
|
}),
|
|
550
|
-
/* @__PURE__ */ E("
|
|
551
|
-
className: "
|
|
552
|
-
children: [
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
323
|
+
/* @__PURE__ */ E("p", {
|
|
324
|
+
className: "text-sm text-text-secondary",
|
|
325
|
+
children: [
|
|
326
|
+
j[0].city,
|
|
327
|
+
", ",
|
|
328
|
+
j[0].state,
|
|
329
|
+
" - ",
|
|
330
|
+
j[0].pincode
|
|
331
|
+
]
|
|
332
|
+
}),
|
|
333
|
+
/* @__PURE__ */ E("button", {
|
|
334
|
+
type: "button",
|
|
335
|
+
onClick: () => M("/customer/addresses"),
|
|
336
|
+
className: "mt-2 flex items-center gap-1 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
337
|
+
children: [
|
|
338
|
+
/* @__PURE__ */ T(_, { className: "h-3 w-3" }),
|
|
339
|
+
"Manage Addresses",
|
|
340
|
+
/* @__PURE__ */ T(p, { className: "h-3 w-3" })
|
|
341
|
+
]
|
|
563
342
|
})
|
|
564
343
|
]
|
|
565
|
-
})]
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
570
|
-
children: [/* @__PURE__ */ T(b, { className: "h-4 w-4 text-text-secondary" }), "Account Status"]
|
|
344
|
+
})] }),
|
|
345
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h4", {
|
|
346
|
+
className: "text-base font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
347
|
+
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-text-secondary" }), "Emergency Contact"]
|
|
571
348
|
}), /* @__PURE__ */ E("div", {
|
|
349
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
350
|
+
children: [
|
|
351
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
352
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
353
|
+
children: "Name"
|
|
354
|
+
}), /* @__PURE__ */ T("input", {
|
|
355
|
+
type: "text",
|
|
356
|
+
value: R ? U.emergencyContact.name : V.emergencyContact.name,
|
|
357
|
+
onChange: (e) => Q("name", e.target.value),
|
|
358
|
+
disabled: !R,
|
|
359
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !R && "bg-bg-sunken cursor-not-allowed", R && "bg-bg-surface")
|
|
360
|
+
})] }),
|
|
361
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
362
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
363
|
+
children: "Phone"
|
|
364
|
+
}), /* @__PURE__ */ T("input", {
|
|
365
|
+
type: "tel",
|
|
366
|
+
value: R ? U.emergencyContact.phone : V.emergencyContact.phone,
|
|
367
|
+
onChange: (e) => Q("phone", e.target.value),
|
|
368
|
+
disabled: !R,
|
|
369
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !R && "bg-bg-sunken cursor-not-allowed", R && "bg-bg-surface")
|
|
370
|
+
})] }),
|
|
371
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
372
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
373
|
+
children: "Relationship"
|
|
374
|
+
}), /* @__PURE__ */ T("input", {
|
|
375
|
+
type: "text",
|
|
376
|
+
value: R ? U.emergencyContact.relationship : V.emergencyContact.relationship,
|
|
377
|
+
onChange: (e) => Q("relationship", e.target.value),
|
|
378
|
+
disabled: !R,
|
|
379
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !R && "bg-bg-sunken cursor-not-allowed", R && "bg-bg-surface")
|
|
380
|
+
})] })
|
|
381
|
+
]
|
|
382
|
+
})] }),
|
|
383
|
+
R && /* @__PURE__ */ E("div", {
|
|
384
|
+
className: "flex gap-3 pt-4 border-t border-border-subtle",
|
|
385
|
+
children: [/* @__PURE__ */ E("button", {
|
|
386
|
+
type: "button",
|
|
387
|
+
onClick: Y,
|
|
388
|
+
className: "flex items-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
389
|
+
children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Save Changes"]
|
|
390
|
+
}), /* @__PURE__ */ T("button", {
|
|
391
|
+
type: "button",
|
|
392
|
+
onClick: J,
|
|
393
|
+
className: "flex items-center gap-2 rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
394
|
+
children: "Cancel"
|
|
395
|
+
})]
|
|
396
|
+
})
|
|
397
|
+
]
|
|
398
|
+
}),
|
|
399
|
+
I === "preferences" && /* @__PURE__ */ E("div", {
|
|
400
|
+
className: "space-y-8",
|
|
401
|
+
children: [
|
|
402
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
403
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
404
|
+
children: [/* @__PURE__ */ T(u, { className: "h-4 w-4 text-text-secondary" }), "Notification Preferences"]
|
|
405
|
+
}), /* @__PURE__ */ T("div", {
|
|
572
406
|
className: "space-y-3",
|
|
573
407
|
children: [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
408
|
+
{
|
|
409
|
+
key: "orderUpdates",
|
|
410
|
+
label: "Order status updates"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
key: "promotions",
|
|
414
|
+
label: "Promotional offers and discounts"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
key: "newsletter",
|
|
418
|
+
label: "Newsletter and food recommendations"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
key: "sms",
|
|
422
|
+
label: "SMS notifications"
|
|
423
|
+
}
|
|
424
|
+
].map((e) => /* @__PURE__ */ E("label", {
|
|
425
|
+
className: "flex items-center gap-3 cursor-pointer",
|
|
426
|
+
children: [/* @__PURE__ */ T("input", {
|
|
427
|
+
type: "checkbox",
|
|
428
|
+
checked: U.notifications[e.key],
|
|
429
|
+
onChange: (t) => ee(e.key, t.target.checked),
|
|
430
|
+
className: "h-4 w-4 rounded border-border-subtle text-text-primary focus:ring-[var(--color-focus-ring)]"
|
|
431
|
+
}), /* @__PURE__ */ T("span", {
|
|
432
|
+
className: "text-sm text-text-primary",
|
|
433
|
+
children: e.label
|
|
434
|
+
})]
|
|
435
|
+
}, e.key))
|
|
436
|
+
})] }),
|
|
437
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
438
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
439
|
+
children: [/* @__PURE__ */ T(h, { className: "h-4 w-4 text-text-secondary" }), "Dietary Preferences"]
|
|
440
|
+
}), /* @__PURE__ */ T("div", {
|
|
441
|
+
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
442
|
+
children: k.map((e) => /* @__PURE__ */ E("label", {
|
|
443
|
+
className: "flex items-center gap-2 cursor-pointer",
|
|
444
|
+
children: [/* @__PURE__ */ T("input", {
|
|
445
|
+
type: "checkbox",
|
|
446
|
+
checked: U.dietary.includes(e),
|
|
447
|
+
onChange: (t) => $("dietary", e, t.target.checked),
|
|
448
|
+
className: "h-4 w-4 rounded border-border-subtle text-text-primary focus:ring-[var(--color-focus-ring)]"
|
|
449
|
+
}), /* @__PURE__ */ T("span", {
|
|
450
|
+
className: "text-sm text-text-primary capitalize",
|
|
451
|
+
children: e
|
|
452
|
+
})]
|
|
453
|
+
}, e))
|
|
454
|
+
})] }),
|
|
455
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
456
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
457
|
+
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-status-error-text" }), "Food Allergies"]
|
|
458
|
+
}), /* @__PURE__ */ T("div", {
|
|
459
|
+
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
460
|
+
children: A.map((e) => /* @__PURE__ */ E("label", {
|
|
461
|
+
className: "flex items-center gap-2 cursor-pointer",
|
|
462
|
+
children: [/* @__PURE__ */ T("input", {
|
|
463
|
+
type: "checkbox",
|
|
464
|
+
checked: U.allergies.includes(e),
|
|
465
|
+
onChange: (t) => $("allergies", e, t.target.checked),
|
|
466
|
+
className: "h-4 w-4 rounded border-border-subtle text-status-error-text focus:ring-destructive"
|
|
467
|
+
}), /* @__PURE__ */ T("span", {
|
|
468
|
+
className: "text-sm text-text-primary capitalize",
|
|
469
|
+
children: e
|
|
470
|
+
})]
|
|
471
|
+
}, e))
|
|
472
|
+
})] }),
|
|
473
|
+
/* @__PURE__ */ T("div", {
|
|
474
|
+
className: "pt-4 border-t border-border-subtle",
|
|
475
|
+
children: /* @__PURE__ */ E("button", {
|
|
476
|
+
type: "button",
|
|
477
|
+
onClick: X,
|
|
478
|
+
className: "flex items-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
479
|
+
children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Save Preferences"]
|
|
480
|
+
})
|
|
481
|
+
})
|
|
482
|
+
]
|
|
483
|
+
}),
|
|
484
|
+
I === "stats" && /* @__PURE__ */ E("div", {
|
|
485
|
+
className: "space-y-8",
|
|
486
|
+
children: [/* @__PURE__ */ E("div", {
|
|
487
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
488
|
+
children: [
|
|
489
|
+
/* @__PURE__ */ E("div", {
|
|
490
|
+
className: "rounded-lg bg-[var(--color-accent-soft)] p-5 border border-border-focus/20",
|
|
491
|
+
children: [/* @__PURE__ */ E("div", {
|
|
492
|
+
className: "flex items-center gap-2 mb-2",
|
|
493
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4 text-text-primary" }), /* @__PURE__ */ T("h4", {
|
|
494
|
+
className: "text-sm font-medium text-text-primary",
|
|
495
|
+
children: "Total Orders"
|
|
582
496
|
})]
|
|
583
|
-
}),
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
497
|
+
}), /* @__PURE__ */ T("p", {
|
|
498
|
+
className: "text-3xl font-bold text-text-primary",
|
|
499
|
+
children: G.totalOrders
|
|
500
|
+
})]
|
|
501
|
+
}),
|
|
502
|
+
/* @__PURE__ */ E("div", {
|
|
503
|
+
className: "rounded-lg bg-status-success-bg-subtle p-5 border border-status-success-text/20",
|
|
504
|
+
children: [/* @__PURE__ */ E("div", {
|
|
505
|
+
className: "flex items-center gap-2 mb-2",
|
|
506
|
+
children: [/* @__PURE__ */ T(g, { className: "h-4 w-4 text-status-success-text" }), /* @__PURE__ */ T("h4", {
|
|
507
|
+
className: "text-sm font-medium text-status-success-text",
|
|
508
|
+
children: "Total Spent"
|
|
592
509
|
})]
|
|
593
|
-
}),
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
510
|
+
}), /* @__PURE__ */ T("p", {
|
|
511
|
+
className: "text-3xl font-bold text-status-success-text",
|
|
512
|
+
children: i(G.totalSpent, { minimumFractionDigits: 0 })
|
|
513
|
+
})]
|
|
514
|
+
}),
|
|
515
|
+
/* @__PURE__ */ E("div", {
|
|
516
|
+
className: "rounded-lg bg-accent-purple-subtle p-5 border border-accent-purple/20",
|
|
517
|
+
children: [/* @__PURE__ */ E("div", {
|
|
518
|
+
className: "flex items-center gap-2 mb-2",
|
|
519
|
+
children: [/* @__PURE__ */ T(c, { className: "h-4 w-4 text-text-primary" }), /* @__PURE__ */ T("h4", {
|
|
600
520
|
className: "text-sm font-medium text-text-primary",
|
|
601
|
-
children:
|
|
602
|
-
hour: void 0,
|
|
603
|
-
minute: void 0,
|
|
604
|
-
hour12: void 0
|
|
605
|
-
})
|
|
521
|
+
children: "Loyalty Points"
|
|
606
522
|
})]
|
|
607
|
-
})
|
|
608
|
-
|
|
523
|
+
}), /* @__PURE__ */ T("p", {
|
|
524
|
+
className: "text-3xl font-bold text-text-primary",
|
|
525
|
+
children: G.loyaltyPoints
|
|
526
|
+
})]
|
|
527
|
+
})
|
|
528
|
+
]
|
|
529
|
+
}), /* @__PURE__ */ E("div", {
|
|
530
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
531
|
+
children: [/* @__PURE__ */ E("div", {
|
|
532
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
533
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
534
|
+
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
535
|
+
children: [/* @__PURE__ */ T(l, { className: "h-4 w-4 text-text-secondary" }), "Order Statistics"]
|
|
536
|
+
}), /* @__PURE__ */ E("div", {
|
|
537
|
+
className: "space-y-3",
|
|
538
|
+
children: [
|
|
539
|
+
/* @__PURE__ */ E("div", {
|
|
540
|
+
className: "flex justify-between",
|
|
541
|
+
children: [/* @__PURE__ */ T("span", {
|
|
542
|
+
className: "text-sm text-text-secondary",
|
|
543
|
+
children: "Average Order Value"
|
|
544
|
+
}), /* @__PURE__ */ T("span", {
|
|
545
|
+
className: "text-sm font-medium text-text-primary",
|
|
546
|
+
children: i(G.avgOrderValue, { minimumFractionDigits: 0 })
|
|
547
|
+
})]
|
|
548
|
+
}),
|
|
549
|
+
/* @__PURE__ */ E("div", {
|
|
550
|
+
className: "flex justify-between",
|
|
551
|
+
children: [/* @__PURE__ */ T("span", {
|
|
552
|
+
className: "text-sm text-text-secondary",
|
|
553
|
+
children: "Favorite Category"
|
|
554
|
+
}), /* @__PURE__ */ T("span", {
|
|
555
|
+
className: "text-sm font-medium text-text-primary",
|
|
556
|
+
children: G.favoriteCategory
|
|
557
|
+
})]
|
|
558
|
+
}),
|
|
559
|
+
/* @__PURE__ */ E("div", {
|
|
560
|
+
className: "flex justify-between",
|
|
561
|
+
children: [/* @__PURE__ */ T("span", {
|
|
562
|
+
className: "text-sm text-text-secondary",
|
|
563
|
+
children: "Member Since"
|
|
564
|
+
}), /* @__PURE__ */ T("span", {
|
|
565
|
+
className: "text-sm font-medium text-text-primary",
|
|
566
|
+
children: a(G.memberSince, {
|
|
567
|
+
hour: void 0,
|
|
568
|
+
minute: void 0,
|
|
569
|
+
hour12: void 0
|
|
570
|
+
})
|
|
571
|
+
})]
|
|
572
|
+
})
|
|
573
|
+
]
|
|
574
|
+
})]
|
|
575
|
+
}), /* @__PURE__ */ E("div", {
|
|
576
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
577
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
578
|
+
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
579
|
+
children: [/* @__PURE__ */ T(b, { className: "h-4 w-4 text-text-secondary" }), "Account Status"]
|
|
580
|
+
}), /* @__PURE__ */ E("div", {
|
|
581
|
+
className: "space-y-3",
|
|
582
|
+
children: [
|
|
583
|
+
/* @__PURE__ */ E("div", {
|
|
584
|
+
className: "flex justify-between items-center",
|
|
585
|
+
children: [/* @__PURE__ */ T("span", {
|
|
586
|
+
className: "text-sm text-text-secondary",
|
|
587
|
+
children: "Email Verification"
|
|
588
|
+
}), /* @__PURE__ */ T("span", {
|
|
589
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", B.isEmailVerified ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
590
|
+
children: B.isEmailVerified ? "Verified" : "Not Verified"
|
|
591
|
+
})]
|
|
592
|
+
}),
|
|
593
|
+
/* @__PURE__ */ E("div", {
|
|
594
|
+
className: "flex justify-between items-center",
|
|
595
|
+
children: [/* @__PURE__ */ T("span", {
|
|
596
|
+
className: "text-sm text-text-secondary",
|
|
597
|
+
children: "Phone Verification"
|
|
598
|
+
}), /* @__PURE__ */ T("span", {
|
|
599
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", B.isPhoneVerified ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
600
|
+
children: B.isPhoneVerified ? "Verified" : "Not Verified"
|
|
601
|
+
})]
|
|
602
|
+
}),
|
|
603
|
+
/* @__PURE__ */ E("div", {
|
|
604
|
+
className: "flex justify-between",
|
|
605
|
+
children: [/* @__PURE__ */ T("span", {
|
|
606
|
+
className: "text-sm text-text-secondary",
|
|
607
|
+
children: "Last Updated"
|
|
608
|
+
}), /* @__PURE__ */ T("span", {
|
|
609
|
+
className: "text-sm font-medium text-text-primary",
|
|
610
|
+
children: a(B.updatedAt, {
|
|
611
|
+
hour: void 0,
|
|
612
|
+
minute: void 0,
|
|
613
|
+
hour12: void 0
|
|
614
|
+
})
|
|
615
|
+
})]
|
|
616
|
+
})
|
|
617
|
+
]
|
|
618
|
+
})]
|
|
609
619
|
})]
|
|
610
620
|
})]
|
|
611
|
-
})
|
|
612
|
-
|
|
613
|
-
]
|
|
614
|
-
})
|
|
615
|
-
|
|
621
|
+
})
|
|
622
|
+
]
|
|
623
|
+
})]
|
|
624
|
+
})
|
|
625
|
+
]
|
|
616
626
|
});
|
|
617
627
|
}
|
|
618
628
|
//#endregion
|
|
619
|
-
export {
|
|
629
|
+
export { M as CustomerProfilePage };
|
|
620
630
|
|
|
621
631
|
//# sourceMappingURL=CustomerProfilePage.js.map
|