@burdenoff/microfe-coolandlovely 2026.625.2 → 2026.628.1

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