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