@burdenoff/microfe-atheletebridge 2026.625.1 → 2026.625.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/atheletebridge/pages/HomePage.js +272 -268
- package/dist/atheletebridge/pages/HomePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminDashboard.js +76 -44
- package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +63 -55
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +244 -237
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js +59 -57
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +110 -106
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/CartManagementPage.js +166 -159
- package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/UserManagementPage.js +310 -303
- package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +86 -81
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +170 -166
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +141 -109
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +139 -134
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +109 -107
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +318 -318
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +262 -262
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +170 -162
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/HelpSupportPage.js +292 -298
- package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js +99 -91
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/SettingsPage.js +742 -734
- package/dist/atheletebridge/pages/common/SettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +364 -356
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDetailPage.js +276 -241
- package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +260 -250
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CheckoutPage.js +93 -89
- package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js +430 -387
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +526 -490
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +523 -512
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/FavoritesPage.js +83 -75
- package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +116 -108
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +65 -61
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +80 -75
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/ReviewsPage.js +80 -72
- package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +62 -55
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +93 -61
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +89 -84
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +60 -55
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js +345 -311
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +37 -32
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +75 -67
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +352 -319
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js +353 -318
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +133 -128
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +352 -344
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,8 +5,9 @@ import { mockCartOwner as r } from "../../mocks/users.js";
|
|
|
5
5
|
import { useState as i } from "react";
|
|
6
6
|
import { AlertCircle as a, BadgeCheck as o, Bell as s, Building2 as c, Camera as l, CheckCircle2 as u, Clock as d, CreditCard as f, Edit2 as p, Key as m, Lock as h, Save as g, Shield as _, Star as v, User as y } from "lucide-react";
|
|
7
7
|
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
8
|
+
import { EmphasisPanel as C, PagePurpose as w } from "@burdenoff/fe-libs/ui";
|
|
8
9
|
//#region src/atheletebridge/pages/cart-owner/CartOwnerProfilePage.tsx
|
|
9
|
-
var
|
|
10
|
+
var T = [
|
|
10
11
|
{
|
|
11
12
|
id: "personal",
|
|
12
13
|
label: "Personal Info",
|
|
@@ -37,7 +38,7 @@ var C = [
|
|
|
37
38
|
label: "Notifications",
|
|
38
39
|
icon: s
|
|
39
40
|
}
|
|
40
|
-
],
|
|
41
|
+
], E = [
|
|
41
42
|
"Monday",
|
|
42
43
|
"Tuesday",
|
|
43
44
|
"Wednesday",
|
|
@@ -45,8 +46,8 @@ var C = [
|
|
|
45
46
|
"Friday",
|
|
46
47
|
"Saturday",
|
|
47
48
|
"Sunday"
|
|
48
|
-
],
|
|
49
|
-
let { navigateTo: s } = e(), [c, d] = i("personal"), [f, h] = i(!1), [y,
|
|
49
|
+
], D = () => {
|
|
50
|
+
let { navigateTo: s } = e(), [c, d] = i("personal"), [f, h] = i(!1), [y, D] = i(!1), [O, k] = i({
|
|
50
51
|
firstName: r.firstName,
|
|
51
52
|
lastName: r.lastName,
|
|
52
53
|
email: r.email,
|
|
@@ -55,7 +56,7 @@ var C = [
|
|
|
55
56
|
gender: "Male",
|
|
56
57
|
address: "Koramangala 5th Block, Bangalore - 560034",
|
|
57
58
|
bio: "Passionate about South Indian cuisine. Running Dosa Express since 2020."
|
|
58
|
-
}), [
|
|
59
|
+
}), [A, j] = i({
|
|
59
60
|
businessName: "Dosa Express",
|
|
60
61
|
category: "Food & Beverage",
|
|
61
62
|
description: "Authentic South Indian street food with a modern twist.",
|
|
@@ -65,7 +66,7 @@ var C = [
|
|
|
65
66
|
businessAddress: "Koramangala 5th Block, Bangalore - 560034",
|
|
66
67
|
businessPhone: "+91-9876543210",
|
|
67
68
|
businessEmail: "ravi@dosaexpress.in"
|
|
68
|
-
}), [
|
|
69
|
+
}), [M, N] = i({
|
|
69
70
|
workingDays: [
|
|
70
71
|
"Monday",
|
|
71
72
|
"Tuesday",
|
|
@@ -79,32 +80,32 @@ var C = [
|
|
|
79
80
|
preparationTime: 15,
|
|
80
81
|
deliveryRadius: 5,
|
|
81
82
|
maxOrdersPerDay: 100
|
|
82
|
-
}), [
|
|
83
|
+
}), [P, F] = i({
|
|
83
84
|
bankName: "State Bank of India",
|
|
84
85
|
accountHolder: "Ravi Kumar",
|
|
85
86
|
accountNumber: "1234567890123456",
|
|
86
87
|
ifscCode: "SBIN0001234",
|
|
87
88
|
upiId: "ravikumar@sbi",
|
|
88
89
|
payoutSchedule: "weekly"
|
|
89
|
-
}), [
|
|
90
|
+
}), [I, L] = i({
|
|
90
91
|
twoFactorEnabled: !0,
|
|
91
92
|
lastPasswordChange: "2024-01-01"
|
|
92
|
-
}), [
|
|
93
|
+
}), [R, z] = i({
|
|
93
94
|
orderAlerts: !0,
|
|
94
95
|
paymentAlerts: !0,
|
|
95
96
|
reviewAlerts: !0,
|
|
96
97
|
promotionalEmails: !1,
|
|
97
98
|
smsAlerts: !0,
|
|
98
99
|
weeklyReport: !0
|
|
99
|
-
}),
|
|
100
|
+
}), B = {
|
|
100
101
|
rating: 4.5,
|
|
101
102
|
totalOrders: 1247,
|
|
102
103
|
memberSince: "2023-03-01",
|
|
103
104
|
verificationPercentage: 86
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
|
|
105
|
+
}, V = () => {
|
|
106
|
+
D(!0), h(!1), setTimeout(() => D(!1), 3e3);
|
|
107
|
+
}, H = (e) => {
|
|
108
|
+
N((t) => ({
|
|
108
109
|
...t,
|
|
109
110
|
workingDays: t.workingDays.includes(e) ? t.workingDays.filter((t) => t !== e) : [...t.workingDays, e]
|
|
110
111
|
}));
|
|
@@ -121,7 +122,7 @@ var C = [
|
|
|
121
122
|
children: "Cancel"
|
|
122
123
|
}), /* @__PURE__ */ S("button", {
|
|
123
124
|
type: "button",
|
|
124
|
-
onClick:
|
|
125
|
+
onClick: V,
|
|
125
126
|
className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
126
127
|
children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Save"]
|
|
127
128
|
})] }) : /* @__PURE__ */ S("button", {
|
|
@@ -141,53 +142,57 @@ var C = [
|
|
|
141
142
|
children: "Profile saved successfully!"
|
|
142
143
|
})]
|
|
143
144
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
145
|
+
/* @__PURE__ */ x(w, { children: "Your business identity and track record. Keep your profile, contact info and documents up to date, and see your rating, total orders and verification status at a glance. A complete, verified profile earns customer trust and more orders." }),
|
|
146
|
+
/* @__PURE__ */ x(C, {
|
|
147
|
+
className: "p-5",
|
|
148
|
+
children: /* @__PURE__ */ S("div", {
|
|
149
|
+
className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
|
|
150
|
+
children: [
|
|
151
|
+
/* @__PURE__ */ S("div", {
|
|
152
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
153
|
+
children: [/* @__PURE__ */ S("p", {
|
|
154
|
+
className: "text-2xl font-bold text-text-primary flex items-center justify-center gap-1",
|
|
155
|
+
children: [/* @__PURE__ */ x(v, { className: "h-5 w-5 fill-yellow-400 text-yellow-400" }), B.rating]
|
|
156
|
+
}), /* @__PURE__ */ x("p", {
|
|
157
|
+
className: "text-xs text-text-secondary",
|
|
158
|
+
children: "Rating"
|
|
159
|
+
})]
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ S("div", {
|
|
162
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
163
|
+
children: [/* @__PURE__ */ x("p", {
|
|
164
|
+
className: "text-2xl font-bold text-text-primary",
|
|
165
|
+
children: B.totalOrders.toLocaleString()
|
|
166
|
+
}), /* @__PURE__ */ x("p", {
|
|
167
|
+
className: "text-xs text-text-secondary",
|
|
168
|
+
children: "Total Orders"
|
|
169
|
+
})]
|
|
170
|
+
}),
|
|
171
|
+
/* @__PURE__ */ S("div", {
|
|
172
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
173
|
+
children: [/* @__PURE__ */ S("p", {
|
|
174
|
+
className: "text-2xl font-bold text-text-primary",
|
|
175
|
+
children: [B.verificationPercentage, "%"]
|
|
176
|
+
}), /* @__PURE__ */ x("p", {
|
|
177
|
+
className: "text-xs text-text-secondary",
|
|
178
|
+
children: "Verified"
|
|
179
|
+
})]
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ S("div", {
|
|
182
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
183
|
+
children: [/* @__PURE__ */ x("p", {
|
|
184
|
+
className: "text-sm font-bold text-text-primary",
|
|
185
|
+
children: new Date(B.memberSince).toLocaleDateString("en-IN", {
|
|
186
|
+
month: "short",
|
|
187
|
+
year: "numeric"
|
|
188
|
+
})
|
|
189
|
+
}), /* @__PURE__ */ x("p", {
|
|
190
|
+
className: "text-xs text-text-secondary",
|
|
191
|
+
children: "Member Since"
|
|
192
|
+
})]
|
|
193
|
+
})
|
|
194
|
+
]
|
|
195
|
+
})
|
|
191
196
|
}),
|
|
192
197
|
/* @__PURE__ */ S("div", {
|
|
193
198
|
className: "flex flex-col lg:flex-row gap-6",
|
|
@@ -197,7 +202,7 @@ var C = [
|
|
|
197
202
|
className: "lg:hidden rounded-lg border border-border-subtle bg-bg-surface p-3 shadow-sm",
|
|
198
203
|
children: /* @__PURE__ */ x("div", {
|
|
199
204
|
className: "grid grid-cols-3 gap-2",
|
|
200
|
-
children:
|
|
205
|
+
children: T.map((e) => {
|
|
201
206
|
let n = e.icon;
|
|
202
207
|
return /* @__PURE__ */ S("button", {
|
|
203
208
|
type: "button",
|
|
@@ -217,7 +222,7 @@ var C = [
|
|
|
217
222
|
})
|
|
218
223
|
}), /* @__PURE__ */ x("nav", {
|
|
219
224
|
className: "p-2",
|
|
220
|
-
children:
|
|
225
|
+
children: T.map((e) => {
|
|
221
226
|
let n = e.icon;
|
|
222
227
|
return /* @__PURE__ */ S("button", {
|
|
223
228
|
type: "button",
|
|
@@ -242,7 +247,7 @@ var C = [
|
|
|
242
247
|
className: "relative",
|
|
243
248
|
children: [/* @__PURE__ */ S("div", {
|
|
244
249
|
className: "flex h-20 w-20 items-center justify-center rounded-full bg-bg-sunken text-2xl font-bold text-text-primary",
|
|
245
|
-
children: [
|
|
250
|
+
children: [O.firstName[0], O.lastName[0]]
|
|
246
251
|
}), f && /* @__PURE__ */ x("button", {
|
|
247
252
|
type: "button",
|
|
248
253
|
onClick: () => alert("Image upload coming soon!"),
|
|
@@ -253,9 +258,9 @@ var C = [
|
|
|
253
258
|
/* @__PURE__ */ S("p", {
|
|
254
259
|
className: "text-lg font-semibold text-text-primary",
|
|
255
260
|
children: [
|
|
256
|
-
|
|
261
|
+
O.firstName,
|
|
257
262
|
" ",
|
|
258
|
-
|
|
263
|
+
O.lastName
|
|
259
264
|
]
|
|
260
265
|
}),
|
|
261
266
|
/* @__PURE__ */ x("p", {
|
|
@@ -269,7 +274,7 @@ var C = [
|
|
|
269
274
|
children: [/* @__PURE__ */ x(o, { className: "h-3 w-3" }), "Verified"]
|
|
270
275
|
}), /* @__PURE__ */ S("span", {
|
|
271
276
|
className: "flex items-center gap-0.5 text-xs text-yellow-600 dark:text-yellow-400",
|
|
272
|
-
children: [/* @__PURE__ */ x(v, { className: "h-3 w-3 fill-yellow-400 text-yellow-400" }),
|
|
277
|
+
children: [/* @__PURE__ */ x(v, { className: "h-3 w-3 fill-yellow-400 text-yellow-400" }), B.rating]
|
|
273
278
|
})]
|
|
274
279
|
})
|
|
275
280
|
] })]
|
|
@@ -281,8 +286,8 @@ var C = [
|
|
|
281
286
|
children: "First Name"
|
|
282
287
|
}), /* @__PURE__ */ x("input", {
|
|
283
288
|
type: "text",
|
|
284
|
-
value:
|
|
285
|
-
onChange: (e) =>
|
|
289
|
+
value: O.firstName,
|
|
290
|
+
onChange: (e) => k((t) => ({
|
|
286
291
|
...t,
|
|
287
292
|
firstName: e.target.value
|
|
288
293
|
})),
|
|
@@ -293,8 +298,8 @@ var C = [
|
|
|
293
298
|
children: "Last Name"
|
|
294
299
|
}), /* @__PURE__ */ x("input", {
|
|
295
300
|
type: "text",
|
|
296
|
-
value:
|
|
297
|
-
onChange: (e) =>
|
|
301
|
+
value: O.lastName,
|
|
302
|
+
onChange: (e) => k((t) => ({
|
|
298
303
|
...t,
|
|
299
304
|
lastName: e.target.value
|
|
300
305
|
})),
|
|
@@ -309,8 +314,8 @@ var C = [
|
|
|
309
314
|
children: "Email"
|
|
310
315
|
}), /* @__PURE__ */ x("input", {
|
|
311
316
|
type: "email",
|
|
312
|
-
value:
|
|
313
|
-
onChange: (e) =>
|
|
317
|
+
value: O.email,
|
|
318
|
+
onChange: (e) => k((t) => ({
|
|
314
319
|
...t,
|
|
315
320
|
email: e.target.value
|
|
316
321
|
})),
|
|
@@ -321,8 +326,8 @@ var C = [
|
|
|
321
326
|
children: "Phone"
|
|
322
327
|
}), /* @__PURE__ */ x("input", {
|
|
323
328
|
type: "tel",
|
|
324
|
-
value:
|
|
325
|
-
onChange: (e) =>
|
|
329
|
+
value: O.phone,
|
|
330
|
+
onChange: (e) => k((t) => ({
|
|
326
331
|
...t,
|
|
327
332
|
phone: e.target.value
|
|
328
333
|
})),
|
|
@@ -337,8 +342,8 @@ var C = [
|
|
|
337
342
|
children: "Date of Birth"
|
|
338
343
|
}), /* @__PURE__ */ x("input", {
|
|
339
344
|
type: "date",
|
|
340
|
-
value:
|
|
341
|
-
onChange: (e) =>
|
|
345
|
+
value: O.dateOfBirth,
|
|
346
|
+
onChange: (e) => k((t) => ({
|
|
342
347
|
...t,
|
|
343
348
|
dateOfBirth: e.target.value
|
|
344
349
|
})),
|
|
@@ -348,8 +353,8 @@ var C = [
|
|
|
348
353
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
349
354
|
children: "Gender"
|
|
350
355
|
}), /* @__PURE__ */ S("select", {
|
|
351
|
-
value:
|
|
352
|
-
onChange: (e) =>
|
|
356
|
+
value: O.gender,
|
|
357
|
+
onChange: (e) => k((t) => ({
|
|
353
358
|
...t,
|
|
354
359
|
gender: e.target.value
|
|
355
360
|
})),
|
|
@@ -376,8 +381,8 @@ var C = [
|
|
|
376
381
|
children: "Address"
|
|
377
382
|
}), /* @__PURE__ */ x("input", {
|
|
378
383
|
type: "text",
|
|
379
|
-
value:
|
|
380
|
-
onChange: (e) =>
|
|
384
|
+
value: O.address,
|
|
385
|
+
onChange: (e) => k((t) => ({
|
|
381
386
|
...t,
|
|
382
387
|
address: e.target.value
|
|
383
388
|
})),
|
|
@@ -388,8 +393,8 @@ var C = [
|
|
|
388
393
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
389
394
|
children: "Bio"
|
|
390
395
|
}), /* @__PURE__ */ x("textarea", {
|
|
391
|
-
value:
|
|
392
|
-
onChange: (e) =>
|
|
396
|
+
value: O.bio,
|
|
397
|
+
onChange: (e) => k((t) => ({
|
|
393
398
|
...t,
|
|
394
399
|
bio: e.target.value
|
|
395
400
|
})),
|
|
@@ -407,8 +412,8 @@ var C = [
|
|
|
407
412
|
children: "Business Name"
|
|
408
413
|
}), /* @__PURE__ */ x("input", {
|
|
409
414
|
type: "text",
|
|
410
|
-
value:
|
|
411
|
-
onChange: (e) =>
|
|
415
|
+
value: A.businessName,
|
|
416
|
+
onChange: (e) => j((t) => ({
|
|
412
417
|
...t,
|
|
413
418
|
businessName: e.target.value
|
|
414
419
|
})),
|
|
@@ -419,8 +424,8 @@ var C = [
|
|
|
419
424
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
420
425
|
children: "Category"
|
|
421
426
|
}), /* @__PURE__ */ x("select", {
|
|
422
|
-
value:
|
|
423
|
-
onChange: (e) =>
|
|
427
|
+
value: A.category,
|
|
428
|
+
onChange: (e) => j((t) => ({
|
|
424
429
|
...t,
|
|
425
430
|
category: e.target.value
|
|
426
431
|
})),
|
|
@@ -441,8 +446,8 @@ var C = [
|
|
|
441
446
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
442
447
|
children: "Description"
|
|
443
448
|
}), /* @__PURE__ */ x("textarea", {
|
|
444
|
-
value:
|
|
445
|
-
onChange: (e) =>
|
|
449
|
+
value: A.description,
|
|
450
|
+
onChange: (e) => j((t) => ({
|
|
446
451
|
...t,
|
|
447
452
|
description: e.target.value
|
|
448
453
|
})),
|
|
@@ -458,8 +463,8 @@ var C = [
|
|
|
458
463
|
children: "GST Number"
|
|
459
464
|
}), /* @__PURE__ */ x("input", {
|
|
460
465
|
type: "text",
|
|
461
|
-
value:
|
|
462
|
-
onChange: (e) =>
|
|
466
|
+
value: A.gstNumber,
|
|
467
|
+
onChange: (e) => j((t) => ({
|
|
463
468
|
...t,
|
|
464
469
|
gstNumber: e.target.value
|
|
465
470
|
})),
|
|
@@ -471,8 +476,8 @@ var C = [
|
|
|
471
476
|
children: "PAN Number"
|
|
472
477
|
}), /* @__PURE__ */ x("input", {
|
|
473
478
|
type: "text",
|
|
474
|
-
value:
|
|
475
|
-
onChange: (e) =>
|
|
479
|
+
value: A.panNumber,
|
|
480
|
+
onChange: (e) => j((t) => ({
|
|
476
481
|
...t,
|
|
477
482
|
panNumber: e.target.value
|
|
478
483
|
})),
|
|
@@ -484,8 +489,8 @@ var C = [
|
|
|
484
489
|
children: "FSSAI License"
|
|
485
490
|
}), /* @__PURE__ */ x("input", {
|
|
486
491
|
type: "text",
|
|
487
|
-
value:
|
|
488
|
-
onChange: (e) =>
|
|
492
|
+
value: A.fssaiLicense,
|
|
493
|
+
onChange: (e) => j((t) => ({
|
|
489
494
|
...t,
|
|
490
495
|
fssaiLicense: e.target.value
|
|
491
496
|
})),
|
|
@@ -501,8 +506,8 @@ var C = [
|
|
|
501
506
|
children: "Business Phone"
|
|
502
507
|
}), /* @__PURE__ */ x("input", {
|
|
503
508
|
type: "tel",
|
|
504
|
-
value:
|
|
505
|
-
onChange: (e) =>
|
|
509
|
+
value: A.businessPhone,
|
|
510
|
+
onChange: (e) => j((t) => ({
|
|
506
511
|
...t,
|
|
507
512
|
businessPhone: e.target.value
|
|
508
513
|
})),
|
|
@@ -513,8 +518,8 @@ var C = [
|
|
|
513
518
|
children: "Business Email"
|
|
514
519
|
}), /* @__PURE__ */ x("input", {
|
|
515
520
|
type: "email",
|
|
516
|
-
value:
|
|
517
|
-
onChange: (e) =>
|
|
521
|
+
value: A.businessEmail,
|
|
522
|
+
onChange: (e) => j((t) => ({
|
|
518
523
|
...t,
|
|
519
524
|
businessEmail: e.target.value
|
|
520
525
|
})),
|
|
@@ -532,11 +537,11 @@ var C = [
|
|
|
532
537
|
children: "Working Days"
|
|
533
538
|
}), /* @__PURE__ */ x("div", {
|
|
534
539
|
className: "flex flex-wrap gap-2",
|
|
535
|
-
children:
|
|
540
|
+
children: E.map((e) => /* @__PURE__ */ x("button", {
|
|
536
541
|
type: "button",
|
|
537
|
-
onClick: () => f &&
|
|
542
|
+
onClick: () => f && H(e),
|
|
538
543
|
disabled: !f,
|
|
539
|
-
className: t("px-3 py-1.5 rounded-full text-xs font-medium transition-colors",
|
|
544
|
+
className: t("px-3 py-1.5 rounded-full text-xs font-medium transition-colors", M.workingDays.includes(e) ? "bg-blue-500 text-white" : "bg-bg-sunken text-text-secondary", !f && "cursor-not-allowed opacity-70"),
|
|
540
545
|
children: e.slice(0, 3)
|
|
541
546
|
}, e))
|
|
542
547
|
})] }),
|
|
@@ -547,8 +552,8 @@ var C = [
|
|
|
547
552
|
children: "Opening Time"
|
|
548
553
|
}), /* @__PURE__ */ x("input", {
|
|
549
554
|
type: "time",
|
|
550
|
-
value:
|
|
551
|
-
onChange: (e) =>
|
|
555
|
+
value: M.openTime,
|
|
556
|
+
onChange: (e) => N((t) => ({
|
|
552
557
|
...t,
|
|
553
558
|
openTime: e.target.value
|
|
554
559
|
})),
|
|
@@ -559,8 +564,8 @@ var C = [
|
|
|
559
564
|
children: "Closing Time"
|
|
560
565
|
}), /* @__PURE__ */ x("input", {
|
|
561
566
|
type: "time",
|
|
562
|
-
value:
|
|
563
|
-
onChange: (e) =>
|
|
567
|
+
value: M.closeTime,
|
|
568
|
+
onChange: (e) => N((t) => ({
|
|
564
569
|
...t,
|
|
565
570
|
closeTime: e.target.value
|
|
566
571
|
})),
|
|
@@ -576,8 +581,8 @@ var C = [
|
|
|
576
581
|
children: "Prep Time (min)"
|
|
577
582
|
}), /* @__PURE__ */ x("input", {
|
|
578
583
|
type: "number",
|
|
579
|
-
value:
|
|
580
|
-
onChange: (e) =>
|
|
584
|
+
value: M.preparationTime,
|
|
585
|
+
onChange: (e) => N((t) => ({
|
|
581
586
|
...t,
|
|
582
587
|
preparationTime: parseInt(e.target.value) || 0
|
|
583
588
|
})),
|
|
@@ -589,8 +594,8 @@ var C = [
|
|
|
589
594
|
children: "Delivery Radius (km)"
|
|
590
595
|
}), /* @__PURE__ */ x("input", {
|
|
591
596
|
type: "number",
|
|
592
|
-
value:
|
|
593
|
-
onChange: (e) =>
|
|
597
|
+
value: M.deliveryRadius,
|
|
598
|
+
onChange: (e) => N((t) => ({
|
|
594
599
|
...t,
|
|
595
600
|
deliveryRadius: parseInt(e.target.value) || 0
|
|
596
601
|
})),
|
|
@@ -602,8 +607,8 @@ var C = [
|
|
|
602
607
|
children: "Max Orders/Day"
|
|
603
608
|
}), /* @__PURE__ */ x("input", {
|
|
604
609
|
type: "number",
|
|
605
|
-
value:
|
|
606
|
-
onChange: (e) =>
|
|
610
|
+
value: M.maxOrdersPerDay,
|
|
611
|
+
onChange: (e) => N((t) => ({
|
|
607
612
|
...t,
|
|
608
613
|
maxOrdersPerDay: parseInt(e.target.value) || 0
|
|
609
614
|
})),
|
|
@@ -631,8 +636,8 @@ var C = [
|
|
|
631
636
|
children: "Bank Name"
|
|
632
637
|
}), /* @__PURE__ */ x("input", {
|
|
633
638
|
type: "text",
|
|
634
|
-
value:
|
|
635
|
-
onChange: (e) =>
|
|
639
|
+
value: P.bankName,
|
|
640
|
+
onChange: (e) => F((t) => ({
|
|
636
641
|
...t,
|
|
637
642
|
bankName: e.target.value
|
|
638
643
|
})),
|
|
@@ -643,8 +648,8 @@ var C = [
|
|
|
643
648
|
children: "Account Holder"
|
|
644
649
|
}), /* @__PURE__ */ x("input", {
|
|
645
650
|
type: "text",
|
|
646
|
-
value:
|
|
647
|
-
onChange: (e) =>
|
|
651
|
+
value: P.accountHolder,
|
|
652
|
+
onChange: (e) => F((t) => ({
|
|
648
653
|
...t,
|
|
649
654
|
accountHolder: e.target.value
|
|
650
655
|
})),
|
|
@@ -659,8 +664,8 @@ var C = [
|
|
|
659
664
|
children: "Account Number"
|
|
660
665
|
}), /* @__PURE__ */ x("input", {
|
|
661
666
|
type: "text",
|
|
662
|
-
value: f ?
|
|
663
|
-
onChange: (e) =>
|
|
667
|
+
value: f ? P.accountNumber : `****${P.accountNumber.slice(-4)}`,
|
|
668
|
+
onChange: (e) => F((t) => ({
|
|
664
669
|
...t,
|
|
665
670
|
accountNumber: e.target.value
|
|
666
671
|
})),
|
|
@@ -671,8 +676,8 @@ var C = [
|
|
|
671
676
|
children: "IFSC Code"
|
|
672
677
|
}), /* @__PURE__ */ x("input", {
|
|
673
678
|
type: "text",
|
|
674
|
-
value:
|
|
675
|
-
onChange: (e) =>
|
|
679
|
+
value: P.ifscCode,
|
|
680
|
+
onChange: (e) => F((t) => ({
|
|
676
681
|
...t,
|
|
677
682
|
ifscCode: e.target.value
|
|
678
683
|
})),
|
|
@@ -687,8 +692,8 @@ var C = [
|
|
|
687
692
|
children: "UPI ID"
|
|
688
693
|
}), /* @__PURE__ */ x("input", {
|
|
689
694
|
type: "text",
|
|
690
|
-
value:
|
|
691
|
-
onChange: (e) =>
|
|
695
|
+
value: P.upiId,
|
|
696
|
+
onChange: (e) => F((t) => ({
|
|
692
697
|
...t,
|
|
693
698
|
upiId: e.target.value
|
|
694
699
|
})),
|
|
@@ -698,8 +703,8 @@ var C = [
|
|
|
698
703
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
699
704
|
children: "Payout Schedule"
|
|
700
705
|
}), /* @__PURE__ */ S("select", {
|
|
701
|
-
value:
|
|
702
|
-
onChange: (e) =>
|
|
706
|
+
value: P.payoutSchedule,
|
|
707
|
+
onChange: (e) => F((t) => ({
|
|
703
708
|
...t,
|
|
704
709
|
payoutSchedule: e.target.value
|
|
705
710
|
})),
|
|
@@ -742,7 +747,7 @@ var C = [
|
|
|
742
747
|
children: [
|
|
743
748
|
"Last changed:",
|
|
744
749
|
" ",
|
|
745
|
-
new Date(
|
|
750
|
+
new Date(I.lastPasswordChange).toLocaleDateString("en-IN", {
|
|
746
751
|
day: "numeric",
|
|
747
752
|
month: "short",
|
|
748
753
|
year: "numeric"
|
|
@@ -769,14 +774,14 @@ var C = [
|
|
|
769
774
|
children: "Add an extra layer of security to your account"
|
|
770
775
|
})] }), /* @__PURE__ */ x("button", {
|
|
771
776
|
type: "button",
|
|
772
|
-
onClick: () =>
|
|
777
|
+
onClick: () => L((e) => ({
|
|
773
778
|
...e,
|
|
774
779
|
twoFactorEnabled: !e.twoFactorEnabled
|
|
775
780
|
})),
|
|
776
|
-
className: t("h-6 w-11 rounded-full transition-colors relative",
|
|
777
|
-
children: /* @__PURE__ */ x("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform",
|
|
781
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", I.twoFactorEnabled ? "bg-green-500" : "bg-muted-foreground/30"),
|
|
782
|
+
children: /* @__PURE__ */ x("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", I.twoFactorEnabled ? "translate-x-5" : "translate-x-0.5") })
|
|
778
783
|
})]
|
|
779
|
-
}),
|
|
784
|
+
}), I.twoFactorEnabled && /* @__PURE__ */ S("div", {
|
|
780
785
|
className: "mt-3 flex items-center gap-2",
|
|
781
786
|
children: [/* @__PURE__ */ x(u, { className: "h-4 w-4 text-green-600 dark:text-green-400" }), /* @__PURE__ */ x("span", {
|
|
782
787
|
className: "text-xs text-green-600 dark:text-green-400 font-medium",
|
|
@@ -863,12 +868,12 @@ var C = [
|
|
|
863
868
|
children: e.description
|
|
864
869
|
})] }), /* @__PURE__ */ x("button", {
|
|
865
870
|
type: "button",
|
|
866
|
-
onClick: () =>
|
|
871
|
+
onClick: () => z((t) => ({
|
|
867
872
|
...t,
|
|
868
873
|
[e.key]: !t[e.key]
|
|
869
874
|
})),
|
|
870
|
-
className: t("h-6 w-11 rounded-full transition-colors relative",
|
|
871
|
-
children: /* @__PURE__ */ x("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform",
|
|
875
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", R[e.key] ? "bg-blue-500" : "bg-muted-foreground/30"),
|
|
876
|
+
children: /* @__PURE__ */ x("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", R[e.key] ? "translate-x-5" : "translate-x-0.5") })
|
|
872
877
|
})]
|
|
873
878
|
}, e.key))
|
|
874
879
|
})
|
|
@@ -881,6 +886,6 @@ var C = [
|
|
|
881
886
|
});
|
|
882
887
|
};
|
|
883
888
|
//#endregion
|
|
884
|
-
export {
|
|
889
|
+
export { D as CartOwnerProfilePage };
|
|
885
890
|
|
|
886
891
|
//# sourceMappingURL=CartOwnerProfilePage.js.map
|