@burdenoff/microfe-kadaikodi 2026.626.2 → 2026.704.2

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