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