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