@burdenoff/microfe-kadaikodi 2026.704.1 → 2026.704.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/hooks/useKadaikodiApi.js +77 -26
- package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +341 -461
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminDashboard.js +115 -399
- package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +140 -283
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +282 -453
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js +115 -242
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +2 -2
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +503 -627
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +339 -282
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +323 -422
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +374 -383
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +249 -208
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +1 -1
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +1 -1
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +171 -627
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/HelpSupportPage.js +331 -415
- package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js +18 -670
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CheckoutPage.js +4 -2
- package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js +191 -369
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +233 -389
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +76 -118
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +135 -213
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +272 -774
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +232 -343
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +112 -600
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js +127 -294
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +204 -290
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +159 -500
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +399 -487
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +13 -13
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js +192 -296
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +245 -397
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +85 -117
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +177 -395
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
import { useKadaikodi as e } from "../../context/KadaikodiContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { useOrders as r, useProviders as i } from "../../hooks/useKadaikodiApi.js";
|
|
5
|
+
import { useEffect as a, useMemo as o, useState as s } from "react";
|
|
6
|
+
import { AlertCircle as c, BadgeCheck as l, Bell as u, Building2 as d, Camera as f, CheckCircle2 as p, Clock as m, CreditCard as h, Edit2 as g, Key as _, Lock as v, Save as y, Shield as b, Star as x, User as S } from "lucide-react";
|
|
7
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
8
|
+
import { EmphasisPanel as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
8
9
|
//#region src/kadaikodi/pages/cart-owner/CartOwnerProfilePage.tsx
|
|
9
|
-
var
|
|
10
|
+
var O = [
|
|
10
11
|
{
|
|
11
12
|
id: "personal",
|
|
12
13
|
label: "Personal Info",
|
|
13
|
-
icon:
|
|
14
|
+
icon: S
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
17
|
id: "business",
|
|
17
18
|
label: "Business Details",
|
|
18
|
-
icon:
|
|
19
|
+
icon: d
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
id: "operations",
|
|
22
23
|
label: "Operations",
|
|
23
|
-
icon:
|
|
24
|
+
icon: m
|
|
24
25
|
},
|
|
25
26
|
{
|
|
26
27
|
id: "banking",
|
|
27
28
|
label: "Banking",
|
|
28
|
-
icon:
|
|
29
|
+
icon: h
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
32
|
id: "security",
|
|
32
33
|
label: "Security",
|
|
33
|
-
icon:
|
|
34
|
+
icon: v
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
id: "notifications",
|
|
37
38
|
label: "Notifications",
|
|
38
|
-
icon:
|
|
39
|
+
icon: u
|
|
39
40
|
}
|
|
40
|
-
],
|
|
41
|
+
], k = [
|
|
41
42
|
"Monday",
|
|
42
43
|
"Tuesday",
|
|
43
44
|
"Wednesday",
|
|
@@ -45,27 +46,43 @@ var w = [
|
|
|
45
46
|
"Friday",
|
|
46
47
|
"Saturday",
|
|
47
48
|
"Sunday"
|
|
48
|
-
],
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
], A = [
|
|
50
|
+
"Food & Beverage",
|
|
51
|
+
"Personal Care & Beauty",
|
|
52
|
+
"Repair & Maintenance",
|
|
53
|
+
"Home Services",
|
|
54
|
+
"Retail & Merchandise"
|
|
55
|
+
], j = {
|
|
56
|
+
FOOD_BEVERAGE: "Food & Beverage",
|
|
57
|
+
PERSONAL_CARE_BEAUTY: "Personal Care & Beauty",
|
|
58
|
+
CLOTHING_FASHION: "Clothing & Fashion",
|
|
59
|
+
REPAIR_MAINTENANCE: "Repair & Maintenance",
|
|
60
|
+
HOME_SERVICES: "Home Services",
|
|
61
|
+
HEALTH_WELLNESS: "Health & Wellness",
|
|
62
|
+
EDUCATION_SKILLS: "Education & Skills",
|
|
63
|
+
RETAIL_MERCHANDISE: "Retail & Merchandise",
|
|
64
|
+
GROCERY_ESSENTIALS: "Grocery & Essentials"
|
|
65
|
+
}, M = () => {
|
|
66
|
+
let { navigateTo: u, currentUser: d } = e(), [m, h] = s("personal"), [v, S] = s(!1), [M, N] = s(!1), { data: P = [] } = i(), F = o(() => P.find((e) => e.ownerId === d?.id) ?? P[0], [P, d?.id]), { data: I = [] } = r({ providerId: F?.id }), [L, R] = s({
|
|
67
|
+
firstName: d?.firstName ?? d?.name?.split(" ")[0] ?? "",
|
|
68
|
+
lastName: d?.lastName ?? d?.name?.split(" ").slice(1).join(" ") ?? "",
|
|
69
|
+
email: d?.email ?? "",
|
|
70
|
+
phone: d?.phone ?? "",
|
|
71
|
+
dateOfBirth: "",
|
|
72
|
+
gender: "",
|
|
73
|
+
address: "",
|
|
74
|
+
bio: ""
|
|
75
|
+
}), [z, B] = s({
|
|
76
|
+
businessName: "",
|
|
60
77
|
category: "Food & Beverage",
|
|
61
|
-
description: "
|
|
62
|
-
gstNumber: "
|
|
63
|
-
panNumber: "
|
|
64
|
-
fssaiLicense: "
|
|
65
|
-
businessAddress: "
|
|
66
|
-
businessPhone: "
|
|
67
|
-
businessEmail: "
|
|
68
|
-
}), [
|
|
78
|
+
description: "",
|
|
79
|
+
gstNumber: "",
|
|
80
|
+
panNumber: "",
|
|
81
|
+
fssaiLicense: "",
|
|
82
|
+
businessAddress: "",
|
|
83
|
+
businessPhone: "",
|
|
84
|
+
businessEmail: ""
|
|
85
|
+
}), [V, H] = s({
|
|
69
86
|
workingDays: [
|
|
70
87
|
"Monday",
|
|
71
88
|
"Tuesday",
|
|
@@ -79,652 +96,658 @@ var w = [
|
|
|
79
96
|
preparationTime: 15,
|
|
80
97
|
deliveryRadius: 5,
|
|
81
98
|
maxOrdersPerDay: 100
|
|
82
|
-
}), [
|
|
83
|
-
bankName: "
|
|
84
|
-
accountHolder: "
|
|
85
|
-
accountNumber: "
|
|
86
|
-
ifscCode: "
|
|
87
|
-
upiId: "
|
|
99
|
+
}), [U, W] = s({
|
|
100
|
+
bankName: "",
|
|
101
|
+
accountHolder: "",
|
|
102
|
+
accountNumber: "",
|
|
103
|
+
ifscCode: "",
|
|
104
|
+
upiId: "",
|
|
88
105
|
payoutSchedule: "weekly"
|
|
89
|
-
}), [
|
|
90
|
-
twoFactorEnabled: !0,
|
|
91
|
-
lastPasswordChange: "2024-01-01"
|
|
92
|
-
}), [R, z] = r({
|
|
106
|
+
}), [G, K] = s({ twoFactorEnabled: !1 }), [q, J] = s({
|
|
93
107
|
orderAlerts: !0,
|
|
94
108
|
paymentAlerts: !0,
|
|
95
109
|
reviewAlerts: !0,
|
|
96
110
|
promotionalEmails: !1,
|
|
97
111
|
smsAlerts: !0,
|
|
98
112
|
weeklyReport: !0
|
|
99
|
-
}),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
113
|
+
}), [Y, X] = s(!1);
|
|
114
|
+
a(() => {
|
|
115
|
+
if (!F || Y) return;
|
|
116
|
+
let e = j[F.category] ?? F.category;
|
|
117
|
+
B((t) => ({
|
|
118
|
+
...t,
|
|
119
|
+
businessName: F.name,
|
|
120
|
+
category: A.includes(e) ? e : t.category,
|
|
121
|
+
businessAddress: F.location?.address ?? ""
|
|
122
|
+
})), X(!0);
|
|
123
|
+
}, [F, Y]);
|
|
124
|
+
let Z = {
|
|
125
|
+
rating: F?.rating ?? 0,
|
|
126
|
+
totalOrders: I.length,
|
|
127
|
+
reviews: F?.totalRatings ?? 0,
|
|
128
|
+
memberSince: F?.createdAt ?? null
|
|
129
|
+
}, Q = !!F?.isVerified, $ = () => {
|
|
130
|
+
N(!0), S(!1), setTimeout(() => N(!1), 3e3);
|
|
131
|
+
}, ee = (e) => {
|
|
132
|
+
H((t) => ({
|
|
108
133
|
...t,
|
|
109
134
|
workingDays: t.workingDays.includes(e) ? t.workingDays.filter((t) => t !== e) : [...t.workingDays, e]
|
|
110
135
|
}));
|
|
111
136
|
};
|
|
112
|
-
return /* @__PURE__ */
|
|
137
|
+
return /* @__PURE__ */ T(n, {
|
|
113
138
|
title: "Profile",
|
|
114
139
|
description: "Your business profile and settings",
|
|
115
|
-
actions: /* @__PURE__ */
|
|
140
|
+
actions: /* @__PURE__ */ w("div", {
|
|
116
141
|
className: "flex items-center gap-2",
|
|
117
|
-
children:
|
|
142
|
+
children: v ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("button", {
|
|
118
143
|
type: "button",
|
|
119
|
-
onClick: () =>
|
|
144
|
+
onClick: () => S(!1),
|
|
120
145
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
121
146
|
children: "Cancel"
|
|
122
|
-
}), /* @__PURE__ */
|
|
147
|
+
}), /* @__PURE__ */ T("button", {
|
|
123
148
|
type: "button",
|
|
124
|
-
onClick:
|
|
149
|
+
onClick: $,
|
|
125
150
|
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
|
-
children: [/* @__PURE__ */
|
|
127
|
-
})] }) : /* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ w(y, { className: "h-4 w-4" }), "Save"]
|
|
152
|
+
})] }) : /* @__PURE__ */ T("button", {
|
|
128
153
|
type: "button",
|
|
129
|
-
onClick: () =>
|
|
154
|
+
onClick: () => S(!0),
|
|
130
155
|
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",
|
|
131
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Edit Profile"]
|
|
132
157
|
})
|
|
133
158
|
}),
|
|
134
|
-
children: [/* @__PURE__ */
|
|
159
|
+
children: [/* @__PURE__ */ w(D, {
|
|
135
160
|
className: "mb-6",
|
|
136
161
|
children: "How you and your business show up on Kadaikodi. Use this page to keep your owner details, business identity and notification preferences current — and to see your reputation at a glance (rating, total orders, verification and how long you've been on the platform). A complete, verified profile builds customer trust. Use Edit Profile to update anything."
|
|
137
|
-
}), /* @__PURE__ */
|
|
162
|
+
}), /* @__PURE__ */ T("div", {
|
|
138
163
|
className: "space-y-4",
|
|
139
164
|
children: [
|
|
140
|
-
|
|
165
|
+
M && /* @__PURE__ */ T("div", {
|
|
141
166
|
className: "flex items-center gap-2 rounded-lg border border-status-success-text/30 bg-status-success-bg-subtle p-3",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ w(p, { className: "h-4 w-4 text-status-success-text" }), /* @__PURE__ */ w("span", {
|
|
143
168
|
className: "text-sm font-medium text-status-success-text",
|
|
144
169
|
children: "Profile saved successfully!"
|
|
145
170
|
})]
|
|
146
171
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ T(E, { children: [/* @__PURE__ */ w("h2", {
|
|
148
173
|
className: "mb-4 text-base font-semibold text-text-primary",
|
|
149
174
|
children: "Your Reputation"
|
|
150
|
-
}), /* @__PURE__ */
|
|
175
|
+
}), /* @__PURE__ */ T("div", {
|
|
151
176
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
|
|
152
177
|
children: [
|
|
153
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ T("div", {
|
|
154
179
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ T("p", {
|
|
156
181
|
className: "text-2xl font-bold text-text-primary flex items-center justify-center gap-1",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
158
|
-
}), /* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ w(x, { className: "h-5 w-5 fill-status-warning-text text-status-warning-text" }), Z.reviews > 0 ? Z.rating.toFixed(1) : "—"]
|
|
183
|
+
}), /* @__PURE__ */ w("p", {
|
|
159
184
|
className: "text-xs text-text-secondary",
|
|
160
185
|
children: "Rating"
|
|
161
186
|
})]
|
|
162
187
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ T("div", {
|
|
164
189
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
165
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ w("p", {
|
|
166
191
|
className: "text-2xl font-bold text-text-primary",
|
|
167
|
-
children:
|
|
168
|
-
}), /* @__PURE__ */
|
|
192
|
+
children: Z.totalOrders.toLocaleString()
|
|
193
|
+
}), /* @__PURE__ */ w("p", {
|
|
169
194
|
className: "text-xs text-text-secondary",
|
|
170
195
|
children: "Total Orders"
|
|
171
196
|
})]
|
|
172
197
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ T("div", {
|
|
174
199
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
175
|
-
children: [/* @__PURE__ */
|
|
200
|
+
children: [/* @__PURE__ */ w("p", {
|
|
176
201
|
className: "text-2xl font-bold text-text-primary",
|
|
177
|
-
children:
|
|
178
|
-
}), /* @__PURE__ */
|
|
202
|
+
children: Z.reviews
|
|
203
|
+
}), /* @__PURE__ */ w("p", {
|
|
179
204
|
className: "text-xs text-text-secondary",
|
|
180
|
-
children: "
|
|
205
|
+
children: "Reviews"
|
|
181
206
|
})]
|
|
182
207
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ T("div", {
|
|
184
209
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm text-center",
|
|
185
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ w("p", {
|
|
186
211
|
className: "text-sm font-bold text-text-primary",
|
|
187
|
-
children: new Date(
|
|
212
|
+
children: Z.memberSince ? new Date(Z.memberSince).toLocaleDateString("en-IN", {
|
|
188
213
|
month: "short",
|
|
189
214
|
year: "numeric"
|
|
190
|
-
})
|
|
191
|
-
}), /* @__PURE__ */
|
|
215
|
+
}) : "—"
|
|
216
|
+
}), /* @__PURE__ */ w("p", {
|
|
192
217
|
className: "text-xs text-text-secondary",
|
|
193
218
|
children: "Member Since"
|
|
194
219
|
})]
|
|
195
220
|
})
|
|
196
221
|
]
|
|
197
222
|
})] }),
|
|
198
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ T("div", {
|
|
199
224
|
className: "flex flex-col lg:flex-row gap-6",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ T("div", {
|
|
201
226
|
className: "lg:w-56 shrink-0",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
227
|
+
children: [/* @__PURE__ */ w("div", {
|
|
203
228
|
className: "lg:hidden rounded-lg border border-border-subtle bg-bg-surface p-3 shadow-sm",
|
|
204
|
-
children: /* @__PURE__ */
|
|
229
|
+
children: /* @__PURE__ */ w("div", {
|
|
205
230
|
className: "grid grid-cols-3 gap-2",
|
|
206
|
-
children:
|
|
231
|
+
children: O.map((e) => {
|
|
207
232
|
let n = e.icon;
|
|
208
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ T("button", {
|
|
209
234
|
type: "button",
|
|
210
|
-
onClick: () =>
|
|
211
|
-
className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors",
|
|
212
|
-
children: [/* @__PURE__ */
|
|
235
|
+
onClick: () => h(e.id),
|
|
236
|
+
className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors", m === e.id ? "bg-accent text-text-primary" : "text-text-secondary hover:bg-bg-sunken"),
|
|
237
|
+
children: [/* @__PURE__ */ w(n, { className: "h-4 w-4" }), e.label.split(" ")[0]]
|
|
213
238
|
}, e.id);
|
|
214
239
|
})
|
|
215
240
|
})
|
|
216
|
-
}), /* @__PURE__ */
|
|
241
|
+
}), /* @__PURE__ */ T("div", {
|
|
217
242
|
className: "hidden lg:block rounded-lg border border-border-subtle bg-bg-surface shadow-sm sticky top-24",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ w("div", {
|
|
219
244
|
className: "p-4 border-b border-border-subtle",
|
|
220
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ w("h2", {
|
|
221
246
|
className: "font-semibold text-text-primary text-sm",
|
|
222
247
|
children: "Profile Settings"
|
|
223
248
|
})
|
|
224
|
-
}), /* @__PURE__ */
|
|
249
|
+
}), /* @__PURE__ */ w("nav", {
|
|
225
250
|
className: "p-2",
|
|
226
|
-
children:
|
|
251
|
+
children: O.map((e) => {
|
|
227
252
|
let n = e.icon;
|
|
228
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ T("button", {
|
|
229
254
|
type: "button",
|
|
230
|
-
onClick: () =>
|
|
231
|
-
className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
255
|
+
onClick: () => h(e.id),
|
|
256
|
+
className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors", m === e.id ? "bg-accent text-text-primary font-medium" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
|
|
257
|
+
children: [/* @__PURE__ */ w(n, { className: "h-4 w-4" }), e.label]
|
|
233
258
|
}, e.id);
|
|
234
259
|
})
|
|
235
260
|
})]
|
|
236
261
|
})]
|
|
237
|
-
}), /* @__PURE__ */
|
|
262
|
+
}), /* @__PURE__ */ w("div", {
|
|
238
263
|
className: "flex-1 min-w-0",
|
|
239
|
-
children: /* @__PURE__ */
|
|
264
|
+
children: /* @__PURE__ */ T("div", {
|
|
240
265
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-5 sm:p-6 shadow-sm",
|
|
241
266
|
children: [
|
|
242
|
-
|
|
267
|
+
m === "personal" && /* @__PURE__ */ T("div", {
|
|
243
268
|
className: "space-y-5",
|
|
244
269
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ T("div", {
|
|
246
271
|
className: "flex items-center gap-5",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ T("div", {
|
|
248
273
|
className: "relative",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ T("div", {
|
|
250
275
|
className: "flex h-20 w-20 items-center justify-center rounded-full bg-bg-sunken text-2xl font-bold text-text-primary",
|
|
251
|
-
children: [
|
|
252
|
-
}),
|
|
276
|
+
children: [L.firstName[0], L.lastName[0]]
|
|
277
|
+
}), v && /* @__PURE__ */ w("button", {
|
|
253
278
|
type: "button",
|
|
254
279
|
onClick: () => alert("Image upload coming soon!"),
|
|
255
280
|
className: "absolute -bottom-1 -right-1 flex h-7 w-7 items-center justify-center rounded-full bg-accent text-text-primary border-2 border-card hover:bg-accent/80",
|
|
256
|
-
children: /* @__PURE__ */
|
|
281
|
+
children: /* @__PURE__ */ w(f, { className: "h-3.5 w-3.5" })
|
|
257
282
|
})]
|
|
258
|
-
}), /* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ T("div", { children: [
|
|
284
|
+
/* @__PURE__ */ T("p", {
|
|
260
285
|
className: "text-lg font-semibold text-text-primary",
|
|
261
286
|
children: [
|
|
262
|
-
|
|
287
|
+
L.firstName,
|
|
263
288
|
" ",
|
|
264
|
-
|
|
289
|
+
L.lastName
|
|
265
290
|
]
|
|
266
291
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ w("p", {
|
|
268
293
|
className: "text-sm text-text-secondary",
|
|
269
294
|
children: "Cart Owner"
|
|
270
295
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ T("div", {
|
|
272
297
|
className: "flex items-center gap-2 mt-1",
|
|
273
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [Q && /* @__PURE__ */ T("span", {
|
|
274
299
|
className: "inline-flex items-center gap-1 rounded-full bg-[var(--color-accent-soft)] px-2.5 py-0.5 text-xs font-medium text-text-primary",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
276
|
-
}), /* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ w(l, { className: "h-3 w-3" }), "Verified"]
|
|
301
|
+
}), Z.reviews > 0 && /* @__PURE__ */ T("span", {
|
|
277
302
|
className: "flex items-center gap-0.5 text-xs text-status-warning-text",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ w(x, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), Z.rating.toFixed(1)]
|
|
279
304
|
})]
|
|
280
305
|
})
|
|
281
306
|
] })]
|
|
282
307
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ T("div", {
|
|
284
309
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
286
311
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
287
312
|
children: "First Name"
|
|
288
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ w("input", {
|
|
289
314
|
type: "text",
|
|
290
|
-
value:
|
|
291
|
-
onChange: (e) =>
|
|
315
|
+
value: L.firstName,
|
|
316
|
+
onChange: (e) => R((t) => ({
|
|
292
317
|
...t,
|
|
293
318
|
firstName: e.target.value
|
|
294
319
|
})),
|
|
295
|
-
disabled: !
|
|
296
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
297
|
-
})] }), /* @__PURE__ */
|
|
320
|
+
disabled: !v,
|
|
321
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
322
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
298
323
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
299
324
|
children: "Last Name"
|
|
300
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ w("input", {
|
|
301
326
|
type: "text",
|
|
302
|
-
value:
|
|
303
|
-
onChange: (e) =>
|
|
327
|
+
value: L.lastName,
|
|
328
|
+
onChange: (e) => R((t) => ({
|
|
304
329
|
...t,
|
|
305
330
|
lastName: e.target.value
|
|
306
331
|
})),
|
|
307
|
-
disabled: !
|
|
308
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
332
|
+
disabled: !v,
|
|
333
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
309
334
|
})] })]
|
|
310
335
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ T("div", {
|
|
312
337
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
338
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
314
339
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
315
340
|
children: "Email"
|
|
316
|
-
}), /* @__PURE__ */
|
|
341
|
+
}), /* @__PURE__ */ w("input", {
|
|
317
342
|
type: "email",
|
|
318
|
-
value:
|
|
319
|
-
onChange: (e) =>
|
|
343
|
+
value: L.email,
|
|
344
|
+
onChange: (e) => R((t) => ({
|
|
320
345
|
...t,
|
|
321
346
|
email: e.target.value
|
|
322
347
|
})),
|
|
323
|
-
disabled: !
|
|
324
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
325
|
-
})] }), /* @__PURE__ */
|
|
348
|
+
disabled: !v,
|
|
349
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
350
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
326
351
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
327
352
|
children: "Phone"
|
|
328
|
-
}), /* @__PURE__ */
|
|
353
|
+
}), /* @__PURE__ */ w("input", {
|
|
329
354
|
type: "tel",
|
|
330
|
-
value:
|
|
331
|
-
onChange: (e) =>
|
|
355
|
+
value: L.phone,
|
|
356
|
+
onChange: (e) => R((t) => ({
|
|
332
357
|
...t,
|
|
333
358
|
phone: e.target.value
|
|
334
359
|
})),
|
|
335
|
-
disabled: !
|
|
336
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
360
|
+
disabled: !v,
|
|
361
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
337
362
|
})] })]
|
|
338
363
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ T("div", {
|
|
340
365
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
342
367
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
343
368
|
children: "Date of Birth"
|
|
344
|
-
}), /* @__PURE__ */
|
|
369
|
+
}), /* @__PURE__ */ w("input", {
|
|
345
370
|
type: "date",
|
|
346
|
-
value:
|
|
347
|
-
onChange: (e) =>
|
|
371
|
+
value: L.dateOfBirth,
|
|
372
|
+
onChange: (e) => R((t) => ({
|
|
348
373
|
...t,
|
|
349
374
|
dateOfBirth: e.target.value
|
|
350
375
|
})),
|
|
351
|
-
disabled: !
|
|
352
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
353
|
-
})] }), /* @__PURE__ */
|
|
376
|
+
disabled: !v,
|
|
377
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
378
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
354
379
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
355
380
|
children: "Gender"
|
|
356
|
-
}), /* @__PURE__ */
|
|
357
|
-
value:
|
|
358
|
-
onChange: (e) =>
|
|
381
|
+
}), /* @__PURE__ */ T("select", {
|
|
382
|
+
value: L.gender,
|
|
383
|
+
onChange: (e) => R((t) => ({
|
|
359
384
|
...t,
|
|
360
385
|
gender: e.target.value
|
|
361
386
|
})),
|
|
362
|
-
disabled: !
|
|
363
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
387
|
+
disabled: !v,
|
|
388
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed"),
|
|
364
389
|
children: [
|
|
365
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ w("option", {
|
|
391
|
+
value: "",
|
|
392
|
+
children: "Prefer not to say"
|
|
393
|
+
}),
|
|
394
|
+
/* @__PURE__ */ w("option", {
|
|
366
395
|
value: "Male",
|
|
367
396
|
children: "Male"
|
|
368
397
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ w("option", {
|
|
370
399
|
value: "Female",
|
|
371
400
|
children: "Female"
|
|
372
401
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ w("option", {
|
|
374
403
|
value: "Other",
|
|
375
404
|
children: "Other"
|
|
376
405
|
})
|
|
377
406
|
]
|
|
378
407
|
})] })]
|
|
379
408
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
381
410
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
382
411
|
children: "Address"
|
|
383
|
-
}), /* @__PURE__ */
|
|
412
|
+
}), /* @__PURE__ */ w("input", {
|
|
384
413
|
type: "text",
|
|
385
|
-
value:
|
|
386
|
-
onChange: (e) =>
|
|
414
|
+
value: L.address,
|
|
415
|
+
onChange: (e) => R((t) => ({
|
|
387
416
|
...t,
|
|
388
417
|
address: e.target.value
|
|
389
418
|
})),
|
|
390
|
-
disabled: !
|
|
391
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
419
|
+
disabled: !v,
|
|
420
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
392
421
|
})] }),
|
|
393
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
394
423
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
395
424
|
children: "Bio"
|
|
396
|
-
}), /* @__PURE__ */
|
|
397
|
-
value:
|
|
398
|
-
onChange: (e) =>
|
|
425
|
+
}), /* @__PURE__ */ w("textarea", {
|
|
426
|
+
value: L.bio,
|
|
427
|
+
onChange: (e) => R((t) => ({
|
|
399
428
|
...t,
|
|
400
429
|
bio: e.target.value
|
|
401
430
|
})),
|
|
402
|
-
disabled: !
|
|
431
|
+
disabled: !v,
|
|
403
432
|
rows: 3,
|
|
404
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary resize-none", !
|
|
433
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary resize-none", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
405
434
|
})] })
|
|
406
435
|
]
|
|
407
436
|
}),
|
|
408
|
-
|
|
437
|
+
m === "business" && /* @__PURE__ */ T("div", {
|
|
409
438
|
className: "space-y-5",
|
|
410
439
|
children: [
|
|
411
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
412
441
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
413
442
|
children: "Business Name"
|
|
414
|
-
}), /* @__PURE__ */
|
|
443
|
+
}), /* @__PURE__ */ w("input", {
|
|
415
444
|
type: "text",
|
|
416
|
-
value:
|
|
417
|
-
onChange: (e) =>
|
|
445
|
+
value: z.businessName,
|
|
446
|
+
onChange: (e) => B((t) => ({
|
|
418
447
|
...t,
|
|
419
448
|
businessName: e.target.value
|
|
420
449
|
})),
|
|
421
|
-
disabled: !
|
|
422
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
450
|
+
disabled: !v,
|
|
451
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
423
452
|
})] }),
|
|
424
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
425
454
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
426
455
|
children: "Category"
|
|
427
|
-
}), /* @__PURE__ */
|
|
428
|
-
value:
|
|
429
|
-
onChange: (e) =>
|
|
456
|
+
}), /* @__PURE__ */ w("select", {
|
|
457
|
+
value: z.category,
|
|
458
|
+
onChange: (e) => B((t) => ({
|
|
430
459
|
...t,
|
|
431
460
|
category: e.target.value
|
|
432
461
|
})),
|
|
433
|
-
disabled: !
|
|
434
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
435
|
-
children:
|
|
436
|
-
"Food & Beverage",
|
|
437
|
-
"Personal Care & Beauty",
|
|
438
|
-
"Repair & Maintenance",
|
|
439
|
-
"Home Services",
|
|
440
|
-
"Retail & Merchandise"
|
|
441
|
-
].map((e) => /* @__PURE__ */ b("option", {
|
|
462
|
+
disabled: !v,
|
|
463
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed"),
|
|
464
|
+
children: A.map((e) => /* @__PURE__ */ w("option", {
|
|
442
465
|
value: e,
|
|
443
466
|
children: e
|
|
444
467
|
}, e))
|
|
445
468
|
})] }),
|
|
446
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
447
470
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
448
471
|
children: "Description"
|
|
449
|
-
}), /* @__PURE__ */
|
|
450
|
-
value:
|
|
451
|
-
onChange: (e) =>
|
|
472
|
+
}), /* @__PURE__ */ w("textarea", {
|
|
473
|
+
value: z.description,
|
|
474
|
+
onChange: (e) => B((t) => ({
|
|
452
475
|
...t,
|
|
453
476
|
description: e.target.value
|
|
454
477
|
})),
|
|
455
|
-
disabled: !
|
|
478
|
+
disabled: !v,
|
|
456
479
|
rows: 3,
|
|
457
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary resize-none", !
|
|
480
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary resize-none", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
458
481
|
})] }),
|
|
459
|
-
/* @__PURE__ */
|
|
482
|
+
/* @__PURE__ */ T("div", {
|
|
460
483
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
461
484
|
children: [
|
|
462
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
463
486
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
464
487
|
children: "GST Number"
|
|
465
|
-
}), /* @__PURE__ */
|
|
488
|
+
}), /* @__PURE__ */ w("input", {
|
|
466
489
|
type: "text",
|
|
467
|
-
value:
|
|
468
|
-
onChange: (e) =>
|
|
490
|
+
value: z.gstNumber,
|
|
491
|
+
onChange: (e) => B((t) => ({
|
|
469
492
|
...t,
|
|
470
493
|
gstNumber: e.target.value
|
|
471
494
|
})),
|
|
472
|
-
disabled: !
|
|
473
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
495
|
+
disabled: !v,
|
|
496
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
474
497
|
})] }),
|
|
475
|
-
/* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
476
499
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
477
500
|
children: "PAN Number"
|
|
478
|
-
}), /* @__PURE__ */
|
|
501
|
+
}), /* @__PURE__ */ w("input", {
|
|
479
502
|
type: "text",
|
|
480
|
-
value:
|
|
481
|
-
onChange: (e) =>
|
|
503
|
+
value: z.panNumber,
|
|
504
|
+
onChange: (e) => B((t) => ({
|
|
482
505
|
...t,
|
|
483
506
|
panNumber: e.target.value
|
|
484
507
|
})),
|
|
485
|
-
disabled: !
|
|
486
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
508
|
+
disabled: !v,
|
|
509
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
487
510
|
})] }),
|
|
488
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
489
512
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
490
513
|
children: "FSSAI License"
|
|
491
|
-
}), /* @__PURE__ */
|
|
514
|
+
}), /* @__PURE__ */ w("input", {
|
|
492
515
|
type: "text",
|
|
493
|
-
value:
|
|
494
|
-
onChange: (e) =>
|
|
516
|
+
value: z.fssaiLicense,
|
|
517
|
+
onChange: (e) => B((t) => ({
|
|
495
518
|
...t,
|
|
496
519
|
fssaiLicense: e.target.value
|
|
497
520
|
})),
|
|
498
|
-
disabled: !
|
|
499
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
521
|
+
disabled: !v,
|
|
522
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
500
523
|
})] })
|
|
501
524
|
]
|
|
502
525
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ T("div", {
|
|
504
527
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
505
|
-
children: [/* @__PURE__ */
|
|
528
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
506
529
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
507
530
|
children: "Business Phone"
|
|
508
|
-
}), /* @__PURE__ */
|
|
531
|
+
}), /* @__PURE__ */ w("input", {
|
|
509
532
|
type: "tel",
|
|
510
|
-
value:
|
|
511
|
-
onChange: (e) =>
|
|
533
|
+
value: z.businessPhone,
|
|
534
|
+
onChange: (e) => B((t) => ({
|
|
512
535
|
...t,
|
|
513
536
|
businessPhone: e.target.value
|
|
514
537
|
})),
|
|
515
|
-
disabled: !
|
|
516
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
517
|
-
})] }), /* @__PURE__ */
|
|
538
|
+
disabled: !v,
|
|
539
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
540
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
518
541
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
519
542
|
children: "Business Email"
|
|
520
|
-
}), /* @__PURE__ */
|
|
543
|
+
}), /* @__PURE__ */ w("input", {
|
|
521
544
|
type: "email",
|
|
522
|
-
value:
|
|
523
|
-
onChange: (e) =>
|
|
545
|
+
value: z.businessEmail,
|
|
546
|
+
onChange: (e) => B((t) => ({
|
|
524
547
|
...t,
|
|
525
548
|
businessEmail: e.target.value
|
|
526
549
|
})),
|
|
527
|
-
disabled: !
|
|
528
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
550
|
+
disabled: !v,
|
|
551
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
529
552
|
})] })]
|
|
530
553
|
})
|
|
531
554
|
]
|
|
532
555
|
}),
|
|
533
|
-
|
|
556
|
+
m === "operations" && /* @__PURE__ */ T("div", {
|
|
534
557
|
className: "space-y-5",
|
|
535
558
|
children: [
|
|
536
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
537
560
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
538
561
|
children: "Working Days"
|
|
539
|
-
}), /* @__PURE__ */
|
|
562
|
+
}), /* @__PURE__ */ w("div", {
|
|
540
563
|
className: "flex flex-wrap gap-2",
|
|
541
|
-
children:
|
|
564
|
+
children: k.map((e) => /* @__PURE__ */ w("button", {
|
|
542
565
|
type: "button",
|
|
543
|
-
onClick: () =>
|
|
544
|
-
disabled: !
|
|
545
|
-
className: t("px-3 py-1.5 rounded-full text-xs font-medium transition-colors",
|
|
566
|
+
onClick: () => v && ee(e),
|
|
567
|
+
disabled: !v,
|
|
568
|
+
className: t("px-3 py-1.5 rounded-full text-xs font-medium transition-colors", V.workingDays.includes(e) ? "bg-action-primary-bg text-white" : "bg-bg-sunken text-text-secondary", !v && "cursor-not-allowed opacity-70"),
|
|
546
569
|
children: e.slice(0, 3)
|
|
547
570
|
}, e))
|
|
548
571
|
})] }),
|
|
549
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ T("div", {
|
|
550
573
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
551
|
-
children: [/* @__PURE__ */
|
|
574
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
552
575
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
553
576
|
children: "Opening Time"
|
|
554
|
-
}), /* @__PURE__ */
|
|
577
|
+
}), /* @__PURE__ */ w("input", {
|
|
555
578
|
type: "time",
|
|
556
|
-
value:
|
|
557
|
-
onChange: (e) =>
|
|
579
|
+
value: V.openTime,
|
|
580
|
+
onChange: (e) => H((t) => ({
|
|
558
581
|
...t,
|
|
559
582
|
openTime: e.target.value
|
|
560
583
|
})),
|
|
561
|
-
disabled: !
|
|
562
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
563
|
-
})] }), /* @__PURE__ */
|
|
584
|
+
disabled: !v,
|
|
585
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
586
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
564
587
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
565
588
|
children: "Closing Time"
|
|
566
|
-
}), /* @__PURE__ */
|
|
589
|
+
}), /* @__PURE__ */ w("input", {
|
|
567
590
|
type: "time",
|
|
568
|
-
value:
|
|
569
|
-
onChange: (e) =>
|
|
591
|
+
value: V.closeTime,
|
|
592
|
+
onChange: (e) => H((t) => ({
|
|
570
593
|
...t,
|
|
571
594
|
closeTime: e.target.value
|
|
572
595
|
})),
|
|
573
|
-
disabled: !
|
|
574
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
596
|
+
disabled: !v,
|
|
597
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
575
598
|
})] })]
|
|
576
599
|
}),
|
|
577
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ T("div", {
|
|
578
601
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
579
602
|
children: [
|
|
580
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
581
604
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
582
605
|
children: "Prep Time (min)"
|
|
583
|
-
}), /* @__PURE__ */
|
|
606
|
+
}), /* @__PURE__ */ w("input", {
|
|
584
607
|
type: "number",
|
|
585
|
-
value:
|
|
586
|
-
onChange: (e) =>
|
|
608
|
+
value: V.preparationTime,
|
|
609
|
+
onChange: (e) => H((t) => ({
|
|
587
610
|
...t,
|
|
588
611
|
preparationTime: parseInt(e.target.value) || 0
|
|
589
612
|
})),
|
|
590
|
-
disabled: !
|
|
591
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
613
|
+
disabled: !v,
|
|
614
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
592
615
|
})] }),
|
|
593
|
-
/* @__PURE__ */
|
|
616
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
594
617
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
595
618
|
children: "Delivery Radius (km)"
|
|
596
|
-
}), /* @__PURE__ */
|
|
619
|
+
}), /* @__PURE__ */ w("input", {
|
|
597
620
|
type: "number",
|
|
598
|
-
value:
|
|
599
|
-
onChange: (e) =>
|
|
621
|
+
value: V.deliveryRadius,
|
|
622
|
+
onChange: (e) => H((t) => ({
|
|
600
623
|
...t,
|
|
601
624
|
deliveryRadius: parseInt(e.target.value) || 0
|
|
602
625
|
})),
|
|
603
|
-
disabled: !
|
|
604
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
626
|
+
disabled: !v,
|
|
627
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
605
628
|
})] }),
|
|
606
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
607
630
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
608
631
|
children: "Max Orders/Day"
|
|
609
|
-
}), /* @__PURE__ */
|
|
632
|
+
}), /* @__PURE__ */ w("input", {
|
|
610
633
|
type: "number",
|
|
611
|
-
value:
|
|
612
|
-
onChange: (e) =>
|
|
634
|
+
value: V.maxOrdersPerDay,
|
|
635
|
+
onChange: (e) => H((t) => ({
|
|
613
636
|
...t,
|
|
614
637
|
maxOrdersPerDay: parseInt(e.target.value) || 0
|
|
615
638
|
})),
|
|
616
|
-
disabled: !
|
|
617
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
639
|
+
disabled: !v,
|
|
640
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
618
641
|
})] })
|
|
619
642
|
]
|
|
620
643
|
})
|
|
621
644
|
]
|
|
622
645
|
}),
|
|
623
|
-
|
|
646
|
+
m === "banking" && /* @__PURE__ */ T("div", {
|
|
624
647
|
className: "space-y-5",
|
|
625
648
|
children: [
|
|
626
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ T("div", {
|
|
627
650
|
className: "flex items-start gap-3 rounded-md bg-[var(--color-accent-soft)] border border-border-focus/20 p-3",
|
|
628
|
-
children: [/* @__PURE__ */
|
|
651
|
+
children: [/* @__PURE__ */ w(c, { className: "h-4 w-4 text-text-primary shrink-0 mt-0.5" }), /* @__PURE__ */ w("p", {
|
|
629
652
|
className: "text-xs text-text-primary",
|
|
630
653
|
children: "Bank details are used for payouts. Changes require verification and may take 2-3 business days to process."
|
|
631
654
|
})]
|
|
632
655
|
}),
|
|
633
|
-
/* @__PURE__ */
|
|
656
|
+
/* @__PURE__ */ T("div", {
|
|
634
657
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
635
|
-
children: [/* @__PURE__ */
|
|
658
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
636
659
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
637
660
|
children: "Bank Name"
|
|
638
|
-
}), /* @__PURE__ */
|
|
661
|
+
}), /* @__PURE__ */ w("input", {
|
|
639
662
|
type: "text",
|
|
640
|
-
value:
|
|
641
|
-
onChange: (e) =>
|
|
663
|
+
value: U.bankName,
|
|
664
|
+
onChange: (e) => W((t) => ({
|
|
642
665
|
...t,
|
|
643
666
|
bankName: e.target.value
|
|
644
667
|
})),
|
|
645
|
-
disabled: !
|
|
646
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
647
|
-
})] }), /* @__PURE__ */
|
|
668
|
+
disabled: !v,
|
|
669
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
670
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
648
671
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
649
672
|
children: "Account Holder"
|
|
650
|
-
}), /* @__PURE__ */
|
|
673
|
+
}), /* @__PURE__ */ w("input", {
|
|
651
674
|
type: "text",
|
|
652
|
-
value:
|
|
653
|
-
onChange: (e) =>
|
|
675
|
+
value: U.accountHolder,
|
|
676
|
+
onChange: (e) => W((t) => ({
|
|
654
677
|
...t,
|
|
655
678
|
accountHolder: e.target.value
|
|
656
679
|
})),
|
|
657
|
-
disabled: !
|
|
658
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
680
|
+
disabled: !v,
|
|
681
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
659
682
|
})] })]
|
|
660
683
|
}),
|
|
661
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ T("div", {
|
|
662
685
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
663
|
-
children: [/* @__PURE__ */
|
|
686
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
664
687
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
665
688
|
children: "Account Number"
|
|
666
|
-
}), /* @__PURE__ */
|
|
689
|
+
}), /* @__PURE__ */ w("input", {
|
|
667
690
|
type: "text",
|
|
668
|
-
value:
|
|
669
|
-
onChange: (e) =>
|
|
691
|
+
value: v ? U.accountNumber : `****${U.accountNumber.slice(-4)}`,
|
|
692
|
+
onChange: (e) => W((t) => ({
|
|
670
693
|
...t,
|
|
671
694
|
accountNumber: e.target.value
|
|
672
695
|
})),
|
|
673
|
-
disabled: !
|
|
674
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
675
|
-
})] }), /* @__PURE__ */
|
|
696
|
+
disabled: !v,
|
|
697
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
698
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
676
699
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
677
700
|
children: "IFSC Code"
|
|
678
|
-
}), /* @__PURE__ */
|
|
701
|
+
}), /* @__PURE__ */ w("input", {
|
|
679
702
|
type: "text",
|
|
680
|
-
value:
|
|
681
|
-
onChange: (e) =>
|
|
703
|
+
value: U.ifscCode,
|
|
704
|
+
onChange: (e) => W((t) => ({
|
|
682
705
|
...t,
|
|
683
706
|
ifscCode: e.target.value
|
|
684
707
|
})),
|
|
685
|
-
disabled: !
|
|
686
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
708
|
+
disabled: !v,
|
|
709
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
687
710
|
})] })]
|
|
688
711
|
}),
|
|
689
|
-
/* @__PURE__ */
|
|
712
|
+
/* @__PURE__ */ T("div", {
|
|
690
713
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
691
|
-
children: [/* @__PURE__ */
|
|
714
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
692
715
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
693
716
|
children: "UPI ID"
|
|
694
|
-
}), /* @__PURE__ */
|
|
717
|
+
}), /* @__PURE__ */ w("input", {
|
|
695
718
|
type: "text",
|
|
696
|
-
value:
|
|
697
|
-
onChange: (e) =>
|
|
719
|
+
value: U.upiId,
|
|
720
|
+
onChange: (e) => W((t) => ({
|
|
698
721
|
...t,
|
|
699
722
|
upiId: e.target.value
|
|
700
723
|
})),
|
|
701
|
-
disabled: !
|
|
702
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
703
|
-
})] }), /* @__PURE__ */
|
|
724
|
+
disabled: !v,
|
|
725
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed")
|
|
726
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
704
727
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
705
728
|
children: "Payout Schedule"
|
|
706
|
-
}), /* @__PURE__ */
|
|
707
|
-
value:
|
|
708
|
-
onChange: (e) =>
|
|
729
|
+
}), /* @__PURE__ */ T("select", {
|
|
730
|
+
value: U.payoutSchedule,
|
|
731
|
+
onChange: (e) => W((t) => ({
|
|
709
732
|
...t,
|
|
710
733
|
payoutSchedule: e.target.value
|
|
711
734
|
})),
|
|
712
|
-
disabled: !
|
|
713
|
-
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !
|
|
735
|
+
disabled: !v,
|
|
736
|
+
className: t("w-full rounded-md border border-border-subtle px-3 py-2 text-sm text-text-primary", !v && "bg-bg-sunken/50 cursor-not-allowed"),
|
|
714
737
|
children: [
|
|
715
|
-
/* @__PURE__ */
|
|
738
|
+
/* @__PURE__ */ w("option", {
|
|
716
739
|
value: "daily",
|
|
717
740
|
children: "Daily"
|
|
718
741
|
}),
|
|
719
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ w("option", {
|
|
720
743
|
value: "weekly",
|
|
721
744
|
children: "Weekly"
|
|
722
745
|
}),
|
|
723
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ w("option", {
|
|
724
747
|
value: "biweekly",
|
|
725
748
|
children: "Bi-Weekly"
|
|
726
749
|
}),
|
|
727
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ w("option", {
|
|
728
751
|
value: "monthly",
|
|
729
752
|
children: "Monthly"
|
|
730
753
|
})
|
|
@@ -733,29 +756,21 @@ var w = [
|
|
|
733
756
|
})
|
|
734
757
|
]
|
|
735
758
|
}),
|
|
736
|
-
|
|
759
|
+
m === "security" && /* @__PURE__ */ T("div", {
|
|
737
760
|
className: "space-y-6",
|
|
738
761
|
children: [
|
|
739
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ T("div", {
|
|
740
763
|
className: "rounded-lg border border-border-subtle p-5",
|
|
741
764
|
children: [
|
|
742
|
-
/* @__PURE__ */
|
|
765
|
+
/* @__PURE__ */ T("h3", {
|
|
743
766
|
className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
744
|
-
children: [/* @__PURE__ */
|
|
767
|
+
children: [/* @__PURE__ */ w(_, { className: "h-4 w-4 text-text-secondary" }), "Password"]
|
|
745
768
|
}),
|
|
746
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ w("p", {
|
|
747
770
|
className: "text-xs text-text-secondary mb-3",
|
|
748
|
-
children:
|
|
749
|
-
"Last changed:",
|
|
750
|
-
" ",
|
|
751
|
-
new Date(I.lastPasswordChange).toLocaleDateString("en-IN", {
|
|
752
|
-
day: "numeric",
|
|
753
|
-
month: "short",
|
|
754
|
-
year: "numeric"
|
|
755
|
-
})
|
|
756
|
-
]
|
|
771
|
+
children: "Keep your account secure by using a strong, unique password."
|
|
757
772
|
}),
|
|
758
|
-
/* @__PURE__ */
|
|
773
|
+
/* @__PURE__ */ w("button", {
|
|
759
774
|
type: "button",
|
|
760
775
|
onClick: () => alert("Password change coming soon!"),
|
|
761
776
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
@@ -763,70 +778,46 @@ var w = [
|
|
|
763
778
|
})
|
|
764
779
|
]
|
|
765
780
|
}),
|
|
766
|
-
/* @__PURE__ */
|
|
781
|
+
/* @__PURE__ */ T("div", {
|
|
767
782
|
className: "rounded-lg border border-border-subtle p-5",
|
|
768
|
-
children: [/* @__PURE__ */
|
|
783
|
+
children: [/* @__PURE__ */ T("div", {
|
|
769
784
|
className: "flex items-center justify-between",
|
|
770
|
-
children: [/* @__PURE__ */
|
|
785
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("h3", {
|
|
771
786
|
className: "text-sm font-semibold text-text-primary flex items-center gap-2",
|
|
772
|
-
children: [/* @__PURE__ */ b
|
|
773
|
-
}), /* @__PURE__ */
|
|
787
|
+
children: [/* @__PURE__ */ w(b, { className: "h-4 w-4 text-text-secondary" }), "Two-Factor Authentication"]
|
|
788
|
+
}), /* @__PURE__ */ w("p", {
|
|
774
789
|
className: "text-xs text-text-secondary mt-1",
|
|
775
790
|
children: "Add an extra layer of security to your account"
|
|
776
|
-
})] }), /* @__PURE__ */
|
|
791
|
+
})] }), /* @__PURE__ */ w("button", {
|
|
777
792
|
type: "button",
|
|
778
|
-
onClick: () =>
|
|
793
|
+
onClick: () => K((e) => ({
|
|
779
794
|
...e,
|
|
780
795
|
twoFactorEnabled: !e.twoFactorEnabled
|
|
781
796
|
})),
|
|
782
|
-
className: t("h-6 w-11 rounded-full transition-colors relative",
|
|
783
|
-
children: /* @__PURE__ */
|
|
797
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", G.twoFactorEnabled ? "bg-status-success-text" : "bg-muted-foreground/30"),
|
|
798
|
+
children: /* @__PURE__ */ w("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", G.twoFactorEnabled ? "translate-x-5" : "translate-x-0.5") })
|
|
784
799
|
})]
|
|
785
|
-
}),
|
|
800
|
+
}), G.twoFactorEnabled && /* @__PURE__ */ T("div", {
|
|
786
801
|
className: "mt-3 flex items-center gap-2",
|
|
787
|
-
children: [/* @__PURE__ */
|
|
802
|
+
children: [/* @__PURE__ */ w(p, { className: "h-4 w-4 text-status-success-text" }), /* @__PURE__ */ w("span", {
|
|
788
803
|
className: "text-xs text-status-success-text font-medium",
|
|
789
804
|
children: "2FA is enabled"
|
|
790
805
|
})]
|
|
791
806
|
})]
|
|
792
807
|
}),
|
|
793
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ T("div", {
|
|
794
809
|
className: "rounded-lg border border-border-subtle p-5",
|
|
795
|
-
children: [/* @__PURE__ */
|
|
810
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
796
811
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
797
812
|
children: "Active Sessions"
|
|
798
|
-
}), /* @__PURE__ */
|
|
799
|
-
className: "
|
|
800
|
-
children:
|
|
801
|
-
className: "flex items-center justify-between text-sm",
|
|
802
|
-
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
803
|
-
className: "font-medium text-text-primary",
|
|
804
|
-
children: "Current Device"
|
|
805
|
-
}), /* @__PURE__ */ b("p", {
|
|
806
|
-
className: "text-xs text-text-secondary",
|
|
807
|
-
children: "Chrome on Linux | Bangalore, IN"
|
|
808
|
-
})] }), /* @__PURE__ */ b("span", {
|
|
809
|
-
className: "text-xs text-status-success-text font-medium",
|
|
810
|
-
children: "Active now"
|
|
811
|
-
})]
|
|
812
|
-
}), /* @__PURE__ */ x("div", {
|
|
813
|
-
className: "flex items-center justify-between text-sm",
|
|
814
|
-
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
815
|
-
className: "font-medium text-text-primary",
|
|
816
|
-
children: "Mobile App"
|
|
817
|
-
}), /* @__PURE__ */ b("p", {
|
|
818
|
-
className: "text-xs text-text-secondary",
|
|
819
|
-
children: "Android | Bangalore, IN"
|
|
820
|
-
})] }), /* @__PURE__ */ b("span", {
|
|
821
|
-
className: "text-xs text-text-secondary",
|
|
822
|
-
children: "2 hours ago"
|
|
823
|
-
})]
|
|
824
|
-
})]
|
|
813
|
+
}), /* @__PURE__ */ w("p", {
|
|
814
|
+
className: "text-xs text-text-secondary",
|
|
815
|
+
children: "Session management is coming soon. You'll be able to review and sign out of devices connected to your account here."
|
|
825
816
|
})]
|
|
826
817
|
})
|
|
827
818
|
]
|
|
828
819
|
}),
|
|
829
|
-
|
|
820
|
+
m === "notifications" && /* @__PURE__ */ w("div", {
|
|
830
821
|
className: "space-y-1 divide-y divide-border",
|
|
831
822
|
children: [
|
|
832
823
|
{
|
|
@@ -859,22 +850,22 @@ var w = [
|
|
|
859
850
|
label: "Promotional Emails",
|
|
860
851
|
description: "Tips, news, and promotional content"
|
|
861
852
|
}
|
|
862
|
-
].map((e) => /* @__PURE__ */
|
|
853
|
+
].map((e) => /* @__PURE__ */ T("div", {
|
|
863
854
|
className: "flex items-center justify-between py-3",
|
|
864
|
-
children: [/* @__PURE__ */
|
|
855
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
865
856
|
className: "text-sm font-medium text-text-primary",
|
|
866
857
|
children: e.label
|
|
867
|
-
}), /* @__PURE__ */
|
|
858
|
+
}), /* @__PURE__ */ w("p", {
|
|
868
859
|
className: "text-xs text-text-secondary mt-0.5",
|
|
869
860
|
children: e.description
|
|
870
|
-
})] }), /* @__PURE__ */
|
|
861
|
+
})] }), /* @__PURE__ */ w("button", {
|
|
871
862
|
type: "button",
|
|
872
|
-
onClick: () =>
|
|
863
|
+
onClick: () => J((t) => ({
|
|
873
864
|
...t,
|
|
874
865
|
[e.key]: !t[e.key]
|
|
875
866
|
})),
|
|
876
|
-
className: t("h-6 w-11 rounded-full transition-colors relative",
|
|
877
|
-
children: /* @__PURE__ */
|
|
867
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", q[e.key] ? "bg-action-primary-bg" : "bg-muted-foreground/30"),
|
|
868
|
+
children: /* @__PURE__ */ w("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", q[e.key] ? "translate-x-5" : "translate-x-0.5") })
|
|
878
869
|
})]
|
|
879
870
|
}, e.key))
|
|
880
871
|
})
|
|
@@ -887,6 +878,6 @@ var w = [
|
|
|
887
878
|
});
|
|
888
879
|
};
|
|
889
880
|
//#endregion
|
|
890
|
-
export {
|
|
881
|
+
export { M as CartOwnerProfilePage };
|
|
891
882
|
|
|
892
883
|
//# sourceMappingURL=CartOwnerProfilePage.js.map
|