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