@burdenoff/microfe-atheletebridge 2026.626.1 → 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 (162) hide show
  1. package/dist/atheletebridge/AthleteBridgeRoot.js +49 -129
  2. package/dist/atheletebridge/AthleteBridgeRoot.js.map +1 -1
  3. package/dist/atheletebridge/AthleteBridgeRoutes.js +65 -184
  4. package/dist/atheletebridge/AthleteBridgeRoutes.js.map +1 -1
  5. package/dist/atheletebridge/components/CursorPager.js +34 -0
  6. package/dist/atheletebridge/components/CursorPager.js.map +1 -0
  7. package/dist/atheletebridge/components/FilterSelect.js +22 -0
  8. package/dist/atheletebridge/components/FilterSelect.js.map +1 -0
  9. package/dist/atheletebridge/components/FixtureCard.js +76 -0
  10. package/dist/atheletebridge/components/FixtureCard.js.map +1 -0
  11. package/dist/atheletebridge/components/LoadingState.js +36 -0
  12. package/dist/atheletebridge/components/LoadingState.js.map +1 -0
  13. package/dist/atheletebridge/components/ProgramCard.js +69 -0
  14. package/dist/atheletebridge/components/ProgramCard.js.map +1 -0
  15. package/dist/atheletebridge/components/SessionCard.js +76 -0
  16. package/dist/atheletebridge/components/SessionCard.js.map +1 -0
  17. package/dist/atheletebridge/components/StatusBadge.js +44 -35
  18. package/dist/atheletebridge/components/StatusBadge.js.map +1 -1
  19. package/dist/atheletebridge/components/TeamCard.js +81 -0
  20. package/dist/atheletebridge/components/TeamCard.js.map +1 -0
  21. package/dist/atheletebridge/components/domain.js +47 -0
  22. package/dist/atheletebridge/components/domain.js.map +1 -0
  23. package/dist/atheletebridge/components/form.js +29 -0
  24. package/dist/atheletebridge/components/form.js.map +1 -0
  25. package/dist/atheletebridge/context/AthleteBridgeContext.js +6 -6
  26. package/dist/atheletebridge/context/AthleteBridgeContext.js.map +1 -1
  27. package/dist/atheletebridge/hooks/useAthleteBridgeApi.js +342 -165
  28. package/dist/atheletebridge/hooks/useAthleteBridgeApi.js.map +1 -1
  29. package/dist/atheletebridge/index.js +1 -1
  30. package/dist/atheletebridge/pages/DashboardPage.js +169 -0
  31. package/dist/atheletebridge/pages/DashboardPage.js.map +1 -0
  32. package/dist/atheletebridge/pages/StandingsPage.js +166 -0
  33. package/dist/atheletebridge/pages/StandingsPage.js.map +1 -0
  34. package/dist/atheletebridge/pages/fixtures/FixtureDetailPage.js +201 -0
  35. package/dist/atheletebridge/pages/fixtures/FixtureDetailPage.js.map +1 -0
  36. package/dist/atheletebridge/pages/fixtures/FixtureFormPage.js +205 -0
  37. package/dist/atheletebridge/pages/fixtures/FixtureFormPage.js.map +1 -0
  38. package/dist/atheletebridge/pages/fixtures/FixturesListPage.js +92 -0
  39. package/dist/atheletebridge/pages/fixtures/FixturesListPage.js.map +1 -0
  40. package/dist/atheletebridge/pages/programs/ProgramDetailPage.js +374 -0
  41. package/dist/atheletebridge/pages/programs/ProgramDetailPage.js.map +1 -0
  42. package/dist/atheletebridge/pages/programs/ProgramFormPage.js +207 -0
  43. package/dist/atheletebridge/pages/programs/ProgramFormPage.js.map +1 -0
  44. package/dist/atheletebridge/pages/programs/ProgramsListPage.js +113 -0
  45. package/dist/atheletebridge/pages/programs/ProgramsListPage.js.map +1 -0
  46. package/dist/atheletebridge/pages/sessions/SessionDetailPage.js +224 -0
  47. package/dist/atheletebridge/pages/sessions/SessionDetailPage.js.map +1 -0
  48. package/dist/atheletebridge/pages/sessions/SessionFormPage.js +206 -0
  49. package/dist/atheletebridge/pages/sessions/SessionFormPage.js.map +1 -0
  50. package/dist/atheletebridge/pages/sessions/SessionsListPage.js +92 -0
  51. package/dist/atheletebridge/pages/sessions/SessionsListPage.js.map +1 -0
  52. package/dist/atheletebridge/pages/teams/TeamDetailPage.js +350 -0
  53. package/dist/atheletebridge/pages/teams/TeamDetailPage.js.map +1 -0
  54. package/dist/atheletebridge/pages/teams/TeamFormPage.js +222 -0
  55. package/dist/atheletebridge/pages/teams/TeamFormPage.js.map +1 -0
  56. package/dist/atheletebridge/pages/teams/TeamsListPage.js +101 -0
  57. package/dist/atheletebridge/pages/teams/TeamsListPage.js.map +1 -0
  58. package/dist/atheletebridge/store/atheletebridgeStore.js +2 -13
  59. package/dist/atheletebridge/store/atheletebridgeStore.js.map +1 -1
  60. package/dist/atheletebridge/utils/datetime.js +10 -0
  61. package/dist/atheletebridge/utils/datetime.js.map +1 -0
  62. package/dist/atheletebridge/utils/formatters.js +1 -4
  63. package/dist/atheletebridge/utils/formatters.js.map +1 -1
  64. package/package.json +1 -1
  65. package/dist/atheletebridge/components/InvestmentCard.js +0 -96
  66. package/dist/atheletebridge/components/InvestmentCard.js.map +0 -1
  67. package/dist/atheletebridge/components/RatingDisplay.js +0 -35
  68. package/dist/atheletebridge/components/RatingDisplay.js.map +0 -1
  69. package/dist/atheletebridge/mocks/data.js +0 -1517
  70. package/dist/atheletebridge/mocks/data.js.map +0 -1
  71. package/dist/atheletebridge/mocks/users.js +0 -34
  72. package/dist/atheletebridge/mocks/users.js.map +0 -1
  73. package/dist/atheletebridge/pages/HomePage.js +0 -936
  74. package/dist/atheletebridge/pages/HomePage.js.map +0 -1
  75. package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +0 -653
  76. package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +0 -1
  77. package/dist/atheletebridge/pages/admin/AdminDashboard.js +0 -671
  78. package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +0 -1
  79. package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +0 -429
  80. package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +0 -1
  81. package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +0 -667
  82. package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +0 -1
  83. package/dist/atheletebridge/pages/admin/AdminProfilePage.js +0 -261
  84. package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +0 -1
  85. package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +0 -653
  86. package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +0 -1
  87. package/dist/atheletebridge/pages/admin/CartManagementPage.js +0 -876
  88. package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +0 -1
  89. package/dist/atheletebridge/pages/admin/UserManagementPage.js +0 -900
  90. package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +0 -1
  91. package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +0 -839
  92. package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  93. package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +0 -704
  94. package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  95. package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +0 -792
  96. package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  97. package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  98. package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  99. package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +0 -633
  100. package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  101. package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +0 -913
  102. package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  103. package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +0 -881
  104. package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +0 -1
  105. package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +0 -841
  106. package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +0 -1
  107. package/dist/atheletebridge/pages/common/HelpSupportPage.js +0 -1319
  108. package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +0 -1
  109. package/dist/atheletebridge/pages/common/NotificationCenterPage.js +0 -674
  110. package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +0 -1
  111. package/dist/atheletebridge/pages/common/SettingsPage.js +0 -972
  112. package/dist/atheletebridge/pages/common/SettingsPage.js.map +0 -1
  113. package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +0 -602
  114. package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +0 -1
  115. package/dist/atheletebridge/pages/customer/CartDetailPage.js +0 -656
  116. package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +0 -1
  117. package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +0 -558
  118. package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +0 -1
  119. package/dist/atheletebridge/pages/customer/CheckoutPage.js +0 -536
  120. package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +0 -1
  121. package/dist/atheletebridge/pages/customer/CustomerDashboard.js +0 -539
  122. package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +0 -1
  123. package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +0 -657
  124. package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +0 -1
  125. package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +0 -635
  126. package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +0 -1
  127. package/dist/atheletebridge/pages/customer/FavoritesPage.js +0 -486
  128. package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +0 -1
  129. package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +0 -447
  130. package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +0 -1
  131. package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +0 -393
  132. package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +0 -1
  133. package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +0 -494
  134. package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +0 -1
  135. package/dist/atheletebridge/pages/customer/ReviewsPage.js +0 -615
  136. package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +0 -1
  137. package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +0 -451
  138. package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +0 -1
  139. package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +0 -881
  140. package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +0 -1
  141. package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +0 -945
  142. package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  143. package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +0 -686
  144. package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  145. package/dist/atheletebridge/pages/investor/InvestorDashboard.js +0 -453
  146. package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +0 -1
  147. package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +0 -405
  148. package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  149. package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +0 -577
  150. package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +0 -1
  151. package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +0 -1069
  152. package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +0 -1
  153. package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +0 -530
  154. package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +0 -1
  155. package/dist/atheletebridge/pages/worker/WorkerDashboard.js +0 -669
  156. package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +0 -1
  157. package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +0 -681
  158. package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +0 -1
  159. package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +0 -691
  160. package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +0 -1
  161. package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +0 -588
  162. package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,972 +0,0 @@
1
- import { useAthleteBridge as e } from "../../context/AthleteBridgeContext.js";
2
- import { cn as t } from "../../utils/cn.js";
3
- import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { useCallback as r, useMemo as i, useState as a } from "react";
5
- import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
- import { AlertTriangle as s, Bell as c, Building2 as l, Camera as u, CheckCircle2 as d, CreditCard as f, Eye as p, Globe as m, Laptop as h, Loader2 as g, Lock as _, LogOut as v, MapPin as y, Monitor as b, Moon as x, Receipt as S, RotateCcw as C, Save as w, Settings as T, Shield as E, Smartphone as D, Sun as O, Trash2 as k, User as A } from "lucide-react";
7
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
8
- import { EmphasisPanel as P, PagePurpose as F } from "@burdenoff/fe-libs/ui";
9
- //#region src/atheletebridge/pages/common/SettingsPage.tsx
10
- var I = {
11
- profile: {
12
- firstName: "Priya",
13
- lastName: "Customer",
14
- email: "customer@burdenoff.com",
15
- phone: "+91 98765 43220",
16
- bio: "Food enthusiast and tech lover. Always exploring new services and experiences in Bangalore.",
17
- dateOfBirth: "1992-08-15",
18
- gender: "female",
19
- profilePicture: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=200"
20
- },
21
- preferences: {
22
- theme: "system",
23
- language: "en",
24
- timezone: "Asia/Kolkata",
25
- currency: "INR",
26
- notifications: {
27
- email: !0,
28
- sms: !0,
29
- push: !0,
30
- orderUpdates: !0,
31
- promotions: !1,
32
- newsletters: !1,
33
- security: !0
34
- }
35
- },
36
- security: {
37
- twoFactorEnabled: !1,
38
- loginAlerts: !0,
39
- sessionTimeout: "30",
40
- trustedDevices: [
41
- {
42
- id: "dev-1",
43
- name: "MacBook Pro",
44
- browser: "Chrome 126.0",
45
- os: "macOS Sonoma",
46
- lastActive: "2024-06-24T09:30:00Z",
47
- isCurrent: !0
48
- },
49
- {
50
- id: "dev-2",
51
- name: "iPhone 15",
52
- browser: "Safari Mobile",
53
- os: "iOS 17.5",
54
- lastActive: "2024-06-23T18:45:00Z",
55
- isCurrent: !1
56
- },
57
- {
58
- id: "dev-3",
59
- name: "Samsung Galaxy S24",
60
- browser: "Chrome Mobile",
61
- os: "Android 14",
62
- lastActive: "2024-06-20T12:00:00Z",
63
- isCurrent: !1
64
- }
65
- ]
66
- },
67
- privacy: {
68
- profileVisibility: "private",
69
- dataSharing: {
70
- analytics: !0,
71
- marketing: !1,
72
- thirdParty: !1
73
- },
74
- locationTracking: !0,
75
- activityHistory: !0
76
- },
77
- billing: {
78
- paymentMethod: {
79
- type: "card",
80
- last4: "4532",
81
- provider: "Visa"
82
- },
83
- autoRecharge: !1,
84
- autoRechargeAmount: "1000",
85
- invoiceEmail: "customer@burdenoff.com",
86
- gstNumber: "29ABCDE1234F1Z5",
87
- companyName: "",
88
- billingAddress: "123 Tech Park, Koramangala, Bangalore 560034"
89
- }
90
- }, L = [
91
- {
92
- id: "profile",
93
- label: "Profile",
94
- icon: A
95
- },
96
- {
97
- id: "preferences",
98
- label: "Preferences",
99
- icon: T
100
- },
101
- {
102
- id: "security",
103
- label: "Security",
104
- icon: E
105
- },
106
- {
107
- id: "privacy",
108
- label: "Privacy",
109
- icon: p
110
- },
111
- {
112
- id: "billing",
113
- label: "Billing",
114
- icon: f
115
- }
116
- ];
117
- function R({ checked: e, onChange: n, label: r }) {
118
- return /* @__PURE__ */ M("button", {
119
- type: "button",
120
- role: "switch",
121
- "aria-checked": e,
122
- "aria-label": r,
123
- onClick: () => n(!e),
124
- className: t("relative inline-flex h-6 w-11 items-center rounded-full transition-colors shrink-0", e ? "bg-action-primary-bg" : "bg-bg-sunken"),
125
- children: /* @__PURE__ */ M("span", { className: t("inline-block h-4 w-4 transform rounded-full bg-white transition-transform", e ? "translate-x-6" : "translate-x-1") })
126
- });
127
- }
128
- function z() {
129
- let { currentUser: T } = e(), { t: E } = o(), [A, z] = a("profile"), [B, V] = a(() => {
130
- let e = { ...I };
131
- return T?.firstName && (e.profile.firstName = T.firstName), T?.lastName && (e.profile.lastName = T.lastName), T?.email && (e.profile.email = T.email), e;
132
- }), [H, U] = a(!1), [W, G] = a(!1), [K, q] = a(""), J = r((e, t) => {
133
- let n = E(e);
134
- return n === e ? t : n;
135
- }, [E]), Y = i(() => L.map((e) => ({
136
- ...e,
137
- label: e.id === "profile" ? J("atheletebridge.settings.tabs.profile", "Profile") : e.id === "preferences" ? J("atheletebridge.settings.tabs.preferences", "Preferences") : e.id === "security" ? J("atheletebridge.settings.tabs.security", "Security") : e.id === "privacy" ? J("atheletebridge.settings.tabs.privacy", "Privacy") : J("atheletebridge.settings.tabs.billing", "Billing")
138
- })), [J]), X = r((e, t, n) => {
139
- V((r) => ({
140
- ...r,
141
- [e]: {
142
- ...r[e],
143
- [t]: n
144
- }
145
- })), U(!0), q("");
146
- }, []), Z = r((e, t, n, r) => {
147
- V((i) => ({
148
- ...i,
149
- [e]: {
150
- ...i[e],
151
- [t]: {
152
- ...i[e][t],
153
- [n]: r
154
- }
155
- }
156
- })), U(!0), q("");
157
- }, []), Q = r(() => {
158
- V(I), U(!1), q("");
159
- }, []), $ = r(async () => {
160
- if (!B.profile.firstName.trim() || !B.profile.lastName.trim()) {
161
- q(J("atheletebridge.settings.validation.nameRequired", "First name and last name are required.")), z("profile");
162
- return;
163
- }
164
- if (!B.profile.email.trim() || !B.profile.email.includes("@")) {
165
- q(J("atheletebridge.settings.validation.emailRequired", "A valid email address is required.")), z("profile");
166
- return;
167
- }
168
- G(!0), q(""), await new Promise((e) => setTimeout(e, 1200)), G(!1), U(!1), q(J("atheletebridge.settings.saveSuccess", "Settings saved successfully!")), setTimeout(() => q(""), 3e3);
169
- }, [B, J]), ee = r((e) => {
170
- V((t) => ({
171
- ...t,
172
- security: {
173
- ...t.security,
174
- trustedDevices: t.security.trustedDevices.filter((t) => t.id !== e)
175
- }
176
- })), U(!0);
177
- }, []), te = r(() => {
178
- V((e) => ({
179
- ...e,
180
- security: {
181
- ...e.security,
182
- trustedDevices: e.security.trustedDevices.filter((e) => e.isCurrent)
183
- }
184
- })), U(!0);
185
- }, []), ne = r(() => {
186
- window.confirm(J("atheletebridge.settings.deleteConfirm", "Are you sure you want to delete your account? This action cannot be undone.")) && alert(J("atheletebridge.settings.deleteSubmitted", "Account deletion request submitted. You will receive a confirmation email."));
187
- }, [J]);
188
- return /* @__PURE__ */ N(n, {
189
- title: J("atheletebridge.settings.title", "Settings"),
190
- description: J("atheletebridge.settings.description", "Manage your preferences and account settings"),
191
- actions: /* @__PURE__ */ N("div", {
192
- className: "flex items-center gap-2",
193
- children: [H && /* @__PURE__ */ N("button", {
194
- type: "button",
195
- onClick: Q,
196
- className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
197
- children: [/* @__PURE__ */ M(C, { className: "h-4 w-4" }), J("atheletebridge.settings.reset", "Reset")]
198
- }), /* @__PURE__ */ M("button", {
199
- type: "button",
200
- disabled: !H || W,
201
- onClick: $,
202
- className: t("flex items-center gap-1.5 rounded-lg px-4 py-2 text-sm font-medium transition-colors", H && !W ? "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
203
- children: W ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(g, { className: "h-4 w-4 animate-spin" }), J("atheletebridge.settings.saving", "Saving...")] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(w, { className: "h-4 w-4" }), J("atheletebridge.settings.save", "Save Settings")] })
204
- })]
205
- }),
206
- children: [
207
- /* @__PURE__ */ M(F, {
208
- className: "mb-6",
209
- children: J("atheletebridge.settings.purpose", "Tailor the app to you. Manage your account, notifications, privacy, appearance and payment preferences here. Pick a category on the left, make your changes, and save — your preferences apply everywhere you use the app.")
210
- }),
211
- K && /* @__PURE__ */ N("div", {
212
- className: t("mb-6 flex items-center gap-2 rounded-lg border p-3 text-sm", K.includes("successfully") ? "border-green-500/30 bg-green-500/5 text-green-600 dark:text-green-400" : "border-red-500/30 bg-red-500/5 text-red-600 dark:text-red-400"),
213
- children: [K.includes("successfully") ? /* @__PURE__ */ M(d, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ M(s, { className: "h-4 w-4 shrink-0" }), K]
214
- }),
215
- /* @__PURE__ */ N("div", {
216
- className: "flex flex-col gap-6 lg:flex-row",
217
- children: [/* @__PURE__ */ N("div", {
218
- className: "shrink-0 lg:w-56",
219
- children: [/* @__PURE__ */ M("div", {
220
- className: "grid grid-cols-5 gap-1 lg:hidden",
221
- children: Y.map((e) => {
222
- let n = e.icon;
223
- return /* @__PURE__ */ N("button", {
224
- type: "button",
225
- onClick: () => z(e.id),
226
- className: t("flex flex-col items-center gap-1 rounded-lg py-2.5 text-center transition-colors", A === e.id ? "bg-action-primary-bg/10 text-text-primary" : "text-text-secondary hover:text-text-primary hover:bg-accent"),
227
- children: [/* @__PURE__ */ M(n, { className: "h-4 w-4" }), /* @__PURE__ */ M("span", {
228
- className: "text-xs font-medium",
229
- children: e.label
230
- })]
231
- }, e.id);
232
- })
233
- }), /* @__PURE__ */ N(P, {
234
- className: "hidden lg:block p-0 overflow-hidden",
235
- children: [/* @__PURE__ */ M("div", {
236
- className: "p-3 border-b border-border-subtle",
237
- children: /* @__PURE__ */ M("p", {
238
- className: "text-sm font-semibold text-text-primary",
239
- children: J("atheletebridge.settings.title", "Settings")
240
- })
241
- }), /* @__PURE__ */ M("nav", {
242
- className: "p-2",
243
- children: Y.map((e) => {
244
- let n = e.icon;
245
- return /* @__PURE__ */ N("button", {
246
- type: "button",
247
- onClick: () => z(e.id),
248
- className: t("flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors mb-0.5", A === e.id ? "bg-action-primary-bg/10 text-text-primary" : "text-text-secondary hover:text-text-primary hover:bg-accent"),
249
- children: [/* @__PURE__ */ M(n, { className: "h-4 w-4" }), e.label]
250
- }, e.id);
251
- })
252
- })]
253
- })]
254
- }), /* @__PURE__ */ M("div", {
255
- className: "flex-1 rounded-lg border border-border-subtle bg-bg-surface p-6",
256
- children: {
257
- profile: () => /* @__PURE__ */ N("div", {
258
- className: "space-y-6",
259
- children: [
260
- /* @__PURE__ */ M("h3", {
261
- className: "text-base font-semibold text-text-primary",
262
- children: "Personal Information"
263
- }),
264
- /* @__PURE__ */ N("div", {
265
- className: "flex items-center gap-4",
266
- children: [/* @__PURE__ */ N("div", {
267
- className: "relative",
268
- children: [/* @__PURE__ */ M("img", {
269
- src: B.profile.profilePicture,
270
- alt: "Profile",
271
- className: "h-20 w-20 rounded-full object-cover border border-border-subtle"
272
- }), /* @__PURE__ */ M("button", {
273
- type: "button",
274
- onClick: () => alert("Photo upload coming soon"),
275
- className: "absolute -bottom-1 -right-1 flex h-7 w-7 items-center justify-center rounded-full bg-action-primary-bg text-action-primary-text shadow-sm hover:bg-action-primary-bg/90",
276
- children: /* @__PURE__ */ M(u, { className: "h-3.5 w-3.5" })
277
- })]
278
- }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
279
- className: "text-sm font-medium text-text-primary",
280
- children: "Profile Picture"
281
- }), /* @__PURE__ */ M("p", {
282
- className: "text-xs text-text-secondary",
283
- children: "Upload a new photo (JPG, PNG, max 2MB)"
284
- })] })]
285
- }),
286
- /* @__PURE__ */ N("div", {
287
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
288
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
289
- className: "block text-sm font-medium text-text-primary mb-1.5",
290
- children: "First Name *"
291
- }), /* @__PURE__ */ M("input", {
292
- type: "text",
293
- value: B.profile.firstName,
294
- onChange: (e) => X("profile", "firstName", e.target.value),
295
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
296
- })] }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
297
- className: "block text-sm font-medium text-text-primary mb-1.5",
298
- children: "Last Name *"
299
- }), /* @__PURE__ */ M("input", {
300
- type: "text",
301
- value: B.profile.lastName,
302
- onChange: (e) => X("profile", "lastName", e.target.value),
303
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
304
- })] })]
305
- }),
306
- /* @__PURE__ */ N("div", {
307
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
308
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
309
- className: "block text-sm font-medium text-text-primary mb-1.5",
310
- children: "Email Address *"
311
- }), /* @__PURE__ */ M("input", {
312
- type: "email",
313
- value: B.profile.email,
314
- onChange: (e) => X("profile", "email", e.target.value),
315
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
316
- })] }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
317
- className: "block text-sm font-medium text-text-primary mb-1.5",
318
- children: "Phone Number"
319
- }), /* @__PURE__ */ M("input", {
320
- type: "tel",
321
- value: B.profile.phone,
322
- onChange: (e) => X("profile", "phone", e.target.value),
323
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
324
- })] })]
325
- }),
326
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
327
- className: "block text-sm font-medium text-text-primary mb-1.5",
328
- children: "Bio"
329
- }), /* @__PURE__ */ M("textarea", {
330
- rows: 3,
331
- value: B.profile.bio,
332
- onChange: (e) => X("profile", "bio", e.target.value),
333
- placeholder: "Tell us about yourself...",
334
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none"
335
- })] }),
336
- /* @__PURE__ */ N("div", {
337
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
338
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
339
- className: "block text-sm font-medium text-text-primary mb-1.5",
340
- children: "Date of Birth"
341
- }), /* @__PURE__ */ M("input", {
342
- type: "date",
343
- value: B.profile.dateOfBirth,
344
- onChange: (e) => X("profile", "dateOfBirth", e.target.value),
345
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
346
- })] }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
347
- className: "block text-sm font-medium text-text-primary mb-1.5",
348
- children: "Gender"
349
- }), /* @__PURE__ */ N("select", {
350
- value: B.profile.gender,
351
- onChange: (e) => X("profile", "gender", e.target.value),
352
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
353
- children: [
354
- /* @__PURE__ */ M("option", {
355
- value: "",
356
- children: "Select gender"
357
- }),
358
- /* @__PURE__ */ M("option", {
359
- value: "male",
360
- children: "Male"
361
- }),
362
- /* @__PURE__ */ M("option", {
363
- value: "female",
364
- children: "Female"
365
- }),
366
- /* @__PURE__ */ M("option", {
367
- value: "other",
368
- children: "Other"
369
- }),
370
- /* @__PURE__ */ M("option", {
371
- value: "prefer-not-to-say",
372
- children: "Prefer not to say"
373
- })
374
- ]
375
- })] })]
376
- })
377
- ]
378
- }),
379
- preferences: () => /* @__PURE__ */ N("div", {
380
- className: "space-y-6",
381
- children: [
382
- /* @__PURE__ */ M("h3", {
383
- className: "text-base font-semibold text-text-primary",
384
- children: "App Preferences"
385
- }),
386
- /* @__PURE__ */ N("div", {
387
- className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
388
- children: [
389
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
390
- className: "block text-sm font-medium text-text-primary mb-1.5",
391
- children: /* @__PURE__ */ N("span", {
392
- className: "flex items-center gap-1.5",
393
- children: [/* @__PURE__ */ M(m, { className: "h-4 w-4 text-text-secondary" }), " Language"]
394
- })
395
- }), /* @__PURE__ */ N("select", {
396
- value: B.preferences.language,
397
- onChange: (e) => X("preferences", "language", e.target.value),
398
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
399
- children: [
400
- /* @__PURE__ */ M("option", {
401
- value: "en",
402
- children: "English"
403
- }),
404
- /* @__PURE__ */ M("option", {
405
- value: "hi",
406
- children: "Hindi"
407
- }),
408
- /* @__PURE__ */ M("option", {
409
- value: "ta",
410
- children: "Tamil"
411
- }),
412
- /* @__PURE__ */ M("option", {
413
- value: "kn",
414
- children: "Kannada"
415
- }),
416
- /* @__PURE__ */ M("option", {
417
- value: "te",
418
- children: "Telugu"
419
- }),
420
- /* @__PURE__ */ M("option", {
421
- value: "ml",
422
- children: "Malayalam"
423
- })
424
- ]
425
- })] }),
426
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
427
- className: "block text-sm font-medium text-text-primary mb-1.5",
428
- children: "Timezone"
429
- }), /* @__PURE__ */ N("select", {
430
- value: B.preferences.timezone,
431
- onChange: (e) => X("preferences", "timezone", e.target.value),
432
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
433
- children: [
434
- /* @__PURE__ */ M("option", {
435
- value: "Asia/Kolkata",
436
- children: "India (IST)"
437
- }),
438
- /* @__PURE__ */ M("option", {
439
- value: "Asia/Dubai",
440
- children: "Dubai (GST)"
441
- }),
442
- /* @__PURE__ */ M("option", {
443
- value: "Europe/London",
444
- children: "London (GMT)"
445
- }),
446
- /* @__PURE__ */ M("option", {
447
- value: "America/New_York",
448
- children: "New York (EST)"
449
- })
450
- ]
451
- })] }),
452
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
453
- className: "block text-sm font-medium text-text-primary mb-1.5",
454
- children: "Currency"
455
- }), /* @__PURE__ */ N("select", {
456
- value: B.preferences.currency,
457
- onChange: (e) => X("preferences", "currency", e.target.value),
458
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
459
- children: [
460
- /* @__PURE__ */ M("option", {
461
- value: "INR",
462
- children: "Indian Rupee (₹)"
463
- }),
464
- /* @__PURE__ */ M("option", {
465
- value: "USD",
466
- children: "US Dollar ($)"
467
- }),
468
- /* @__PURE__ */ M("option", {
469
- value: "EUR",
470
- children: "Euro (€)"
471
- }),
472
- /* @__PURE__ */ M("option", {
473
- value: "GBP",
474
- children: "British Pound (£)"
475
- })
476
- ]
477
- })] })
478
- ]
479
- }),
480
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
481
- className: "block text-sm font-medium text-text-primary mb-3",
482
- children: "Theme"
483
- }), /* @__PURE__ */ M("div", {
484
- className: "flex gap-3 flex-wrap",
485
- children: [
486
- {
487
- value: "light",
488
- label: "Light",
489
- Icon: O
490
- },
491
- {
492
- value: "dark",
493
- label: "Dark",
494
- Icon: x
495
- },
496
- {
497
- value: "system",
498
- label: "System",
499
- Icon: b
500
- }
501
- ].map(({ value: e, label: n, Icon: r }) => /* @__PURE__ */ N("label", {
502
- className: t("flex items-center gap-2 rounded-lg border px-4 py-2.5 text-sm font-medium cursor-pointer transition-colors", B.preferences.theme === e ? "border-primary bg-action-primary-bg/10 text-text-primary" : "border-border-subtle text-text-secondary hover:border-accent-foreground/20 hover:text-text-primary"),
503
- children: [
504
- /* @__PURE__ */ M("input", {
505
- type: "radio",
506
- name: "theme",
507
- value: e,
508
- checked: B.preferences.theme === e,
509
- onChange: (e) => X("preferences", "theme", e.target.value),
510
- className: "sr-only"
511
- }),
512
- /* @__PURE__ */ M(r, { className: "h-4 w-4" }),
513
- n
514
- ]
515
- }, e))
516
- })] }),
517
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
518
- className: "flex items-center gap-2 mb-4",
519
- children: [/* @__PURE__ */ M(c, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ M("h4", {
520
- className: "text-sm font-semibold text-text-primary",
521
- children: "Notification Preferences"
522
- })]
523
- }), /* @__PURE__ */ M("div", {
524
- className: "space-y-3",
525
- children: [
526
- {
527
- key: "email",
528
- label: "Email notifications"
529
- },
530
- {
531
- key: "sms",
532
- label: "SMS notifications"
533
- },
534
- {
535
- key: "push",
536
- label: "Push notifications"
537
- },
538
- {
539
- key: "orderUpdates",
540
- label: "Order status updates"
541
- },
542
- {
543
- key: "promotions",
544
- label: "Promotional offers"
545
- },
546
- {
547
- key: "newsletters",
548
- label: "Newsletters and updates"
549
- },
550
- {
551
- key: "security",
552
- label: "Security alerts"
553
- }
554
- ].map((e) => /* @__PURE__ */ N("div", {
555
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-3",
556
- children: [/* @__PURE__ */ M("span", {
557
- className: "text-sm text-text-primary",
558
- children: e.label
559
- }), /* @__PURE__ */ M(R, {
560
- checked: B.preferences.notifications[e.key],
561
- onChange: (t) => Z("preferences", "notifications", e.key, t),
562
- label: e.label
563
- })]
564
- }, e.key))
565
- })] })
566
- ]
567
- }),
568
- security: () => /* @__PURE__ */ N("div", {
569
- className: "space-y-6",
570
- children: [
571
- /* @__PURE__ */ M("h3", {
572
- className: "text-base font-semibold text-text-primary",
573
- children: "Security Settings"
574
- }),
575
- /* @__PURE__ */ N("div", {
576
- className: "flex items-start gap-3 rounded-lg border border-yellow-500/30 bg-yellow-500/5 p-4",
577
- children: [/* @__PURE__ */ M(s, { className: "h-5 w-5 text-yellow-600 dark:text-yellow-400 shrink-0 mt-0.5" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
578
- className: "text-sm font-medium text-text-primary",
579
- children: "Account Security"
580
- }), /* @__PURE__ */ M("p", {
581
- className: "text-xs text-text-secondary",
582
- children: "Keep your account secure by enabling two-factor authentication and monitoring login activity."
583
- })] })]
584
- }),
585
- /* @__PURE__ */ N("div", {
586
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
587
- children: [/* @__PURE__ */ N("div", {
588
- className: "flex-1",
589
- children: [/* @__PURE__ */ N("div", {
590
- className: "flex items-center gap-2",
591
- children: [/* @__PURE__ */ M(_, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ M("p", {
592
- className: "text-sm font-medium text-text-primary",
593
- children: "Two-Factor Authentication"
594
- })]
595
- }), /* @__PURE__ */ M("p", {
596
- className: "text-xs text-text-secondary mt-0.5 ml-6",
597
- children: "Add an extra layer of security to your account"
598
- })]
599
- }), /* @__PURE__ */ M(R, {
600
- checked: B.security.twoFactorEnabled,
601
- onChange: (e) => X("security", "twoFactorEnabled", e),
602
- label: "Two-factor authentication"
603
- })]
604
- }),
605
- /* @__PURE__ */ N("div", {
606
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
607
- children: [/* @__PURE__ */ N("div", {
608
- className: "flex-1",
609
- children: [/* @__PURE__ */ M("p", {
610
- className: "text-sm font-medium text-text-primary",
611
- children: "Login Alerts"
612
- }), /* @__PURE__ */ M("p", {
613
- className: "text-xs text-text-secondary mt-0.5",
614
- children: "Get notified when someone logs into your account"
615
- })]
616
- }), /* @__PURE__ */ M(R, {
617
- checked: B.security.loginAlerts,
618
- onChange: (e) => X("security", "loginAlerts", e),
619
- label: "Login alerts"
620
- })]
621
- }),
622
- /* @__PURE__ */ N("div", {
623
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
624
- children: [/* @__PURE__ */ N("div", {
625
- className: "flex-1",
626
- children: [/* @__PURE__ */ M("p", {
627
- className: "text-sm font-medium text-text-primary",
628
- children: "Session Timeout"
629
- }), /* @__PURE__ */ M("p", {
630
- className: "text-xs text-text-secondary mt-0.5",
631
- children: "Auto-logout after inactivity"
632
- })]
633
- }), /* @__PURE__ */ N("select", {
634
- value: B.security.sessionTimeout,
635
- onChange: (e) => X("security", "sessionTimeout", e.target.value),
636
- className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] w-36",
637
- children: [
638
- /* @__PURE__ */ M("option", {
639
- value: "15",
640
- children: "15 minutes"
641
- }),
642
- /* @__PURE__ */ M("option", {
643
- value: "30",
644
- children: "30 minutes"
645
- }),
646
- /* @__PURE__ */ M("option", {
647
- value: "60",
648
- children: "1 hour"
649
- }),
650
- /* @__PURE__ */ M("option", {
651
- value: "120",
652
- children: "2 hours"
653
- }),
654
- /* @__PURE__ */ M("option", {
655
- value: "0",
656
- children: "Never"
657
- })
658
- ]
659
- })]
660
- }),
661
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h4", {
662
- className: "text-sm font-semibold text-text-primary mb-3",
663
- children: "Trusted Devices"
664
- }), /* @__PURE__ */ M("div", {
665
- className: "space-y-3",
666
- children: B.security.trustedDevices.map((e) => /* @__PURE__ */ N("div", {
667
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
668
- children: [/* @__PURE__ */ N("div", {
669
- className: "flex items-center gap-3",
670
- children: [e.os.toLowerCase().includes("mac") || e.os.toLowerCase().includes("windows") ? /* @__PURE__ */ M(h, { className: "h-5 w-5 text-text-secondary shrink-0" }) : /* @__PURE__ */ M(D, { className: "h-5 w-5 text-text-secondary shrink-0" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
671
- className: "flex items-center gap-2",
672
- children: [/* @__PURE__ */ M("p", {
673
- className: "text-sm font-medium text-text-primary",
674
- children: e.name
675
- }), e.isCurrent && /* @__PURE__ */ M("span", {
676
- className: "inline-flex items-center rounded-full bg-green-500/20 px-2 py-0.5 text-xs font-medium text-green-600 dark:text-green-400",
677
- children: "Current"
678
- })]
679
- }), /* @__PURE__ */ N("p", {
680
- className: "text-xs text-text-secondary",
681
- children: [
682
- e.browser,
683
- " · ",
684
- e.os
685
- ]
686
- })] })]
687
- }), !e.isCurrent && /* @__PURE__ */ M("button", {
688
- type: "button",
689
- onClick: () => ee(e.id),
690
- className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-status-error-text hover:bg-status-error-bg/10 transition-colors",
691
- children: "Remove"
692
- })]
693
- }, e.id))
694
- })] }),
695
- /* @__PURE__ */ N("div", {
696
- className: "flex flex-wrap gap-3",
697
- children: [/* @__PURE__ */ N("button", {
698
- type: "button",
699
- onClick: () => alert("Password change functionality coming soon"),
700
- className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
701
- children: [/* @__PURE__ */ M(_, { className: "h-4 w-4" }), "Change Password"]
702
- }), /* @__PURE__ */ N("button", {
703
- type: "button",
704
- onClick: te,
705
- className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
706
- children: [/* @__PURE__ */ M(v, { className: "h-4 w-4" }), "Logout All Devices"]
707
- })]
708
- })
709
- ]
710
- }),
711
- privacy: () => /* @__PURE__ */ N("div", {
712
- className: "space-y-6",
713
- children: [
714
- /* @__PURE__ */ M("h3", {
715
- className: "text-base font-semibold text-text-primary",
716
- children: "Privacy Controls"
717
- }),
718
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
719
- className: "block text-sm font-medium text-text-primary mb-1.5",
720
- children: /* @__PURE__ */ N("span", {
721
- className: "flex items-center gap-1.5",
722
- children: [/* @__PURE__ */ M(p, { className: "h-4 w-4 text-text-secondary" }), " Profile Visibility"]
723
- })
724
- }), /* @__PURE__ */ N("select", {
725
- value: B.privacy.profileVisibility,
726
- onChange: (e) => X("privacy", "profileVisibility", e.target.value),
727
- className: "w-full max-w-sm rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
728
- children: [
729
- /* @__PURE__ */ M("option", {
730
- value: "public",
731
- children: "Public - Anyone can see your profile"
732
- }),
733
- /* @__PURE__ */ M("option", {
734
- value: "private",
735
- children: "Private - Only you can see your profile"
736
- }),
737
- /* @__PURE__ */ M("option", {
738
- value: "friends",
739
- children: "Friends - Only friends can see your profile"
740
- })
741
- ]
742
- })] }),
743
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h4", {
744
- className: "text-sm font-semibold text-text-primary mb-3",
745
- children: "Data Sharing"
746
- }), /* @__PURE__ */ M("div", {
747
- className: "space-y-3",
748
- children: [
749
- {
750
- key: "analytics",
751
- label: "Share usage analytics to improve the app"
752
- },
753
- {
754
- key: "marketing",
755
- label: "Share data for personalized marketing"
756
- },
757
- {
758
- key: "thirdParty",
759
- label: "Share data with third-party partners"
760
- }
761
- ].map((e) => /* @__PURE__ */ N("div", {
762
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-3",
763
- children: [/* @__PURE__ */ M("span", {
764
- className: "text-sm text-text-primary",
765
- children: e.label
766
- }), /* @__PURE__ */ M(R, {
767
- checked: B.privacy.dataSharing[e.key],
768
- onChange: (t) => Z("privacy", "dataSharing", e.key, t),
769
- label: e.label
770
- })]
771
- }, e.key))
772
- })] }),
773
- /* @__PURE__ */ N("div", {
774
- className: "space-y-3",
775
- children: [/* @__PURE__ */ N("div", {
776
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
777
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
778
- className: "text-sm font-medium text-text-primary",
779
- children: "Location Tracking"
780
- }), /* @__PURE__ */ M("p", {
781
- className: "text-xs text-text-secondary",
782
- children: "Allow app to track your location for better service"
783
- })] }), /* @__PURE__ */ M(R, {
784
- checked: B.privacy.locationTracking,
785
- onChange: (e) => X("privacy", "locationTracking", e),
786
- label: "Location tracking"
787
- })]
788
- }), /* @__PURE__ */ N("div", {
789
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
790
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
791
- className: "text-sm font-medium text-text-primary",
792
- children: "Activity History"
793
- }), /* @__PURE__ */ M("p", {
794
- className: "text-xs text-text-secondary",
795
- children: "Keep track of your orders and activities"
796
- })] }), /* @__PURE__ */ M(R, {
797
- checked: B.privacy.activityHistory,
798
- onChange: (e) => X("privacy", "activityHistory", e),
799
- label: "Activity history"
800
- })]
801
- })]
802
- }),
803
- /* @__PURE__ */ M("div", {
804
- className: "rounded-lg border border-red-500/30 bg-red-500/5 p-4",
805
- children: /* @__PURE__ */ N("div", {
806
- className: "flex items-start gap-3",
807
- children: [/* @__PURE__ */ M(k, { className: "h-5 w-5 text-red-600 dark:text-red-400 shrink-0 mt-0.5" }), /* @__PURE__ */ N("div", { children: [
808
- /* @__PURE__ */ M("p", {
809
- className: "text-sm font-medium text-text-primary",
810
- children: "Delete Account"
811
- }),
812
- /* @__PURE__ */ M("p", {
813
- className: "text-xs text-text-secondary mt-0.5",
814
- children: "Permanently delete your account and all associated data. This action cannot be undone."
815
- }),
816
- /* @__PURE__ */ M("button", {
817
- type: "button",
818
- onClick: ne,
819
- className: "mt-3 rounded-lg border border-red-500/30 px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/10 transition-colors",
820
- children: "Delete Account"
821
- })
822
- ] })]
823
- })
824
- })
825
- ]
826
- }),
827
- billing: () => /* @__PURE__ */ N("div", {
828
- className: "space-y-6",
829
- children: [
830
- /* @__PURE__ */ M("h3", {
831
- className: "text-base font-semibold text-text-primary",
832
- children: "Billing & Payments"
833
- }),
834
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h4", {
835
- className: "text-sm font-semibold text-text-primary mb-3",
836
- children: /* @__PURE__ */ N("span", {
837
- className: "flex items-center gap-1.5",
838
- children: [/* @__PURE__ */ M(f, { className: "h-4 w-4 text-text-secondary" }), " Default Payment Method"]
839
- })
840
- }), B.billing.paymentMethod ? /* @__PURE__ */ N("div", {
841
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
842
- children: [/* @__PURE__ */ N("div", {
843
- className: "flex items-center gap-3",
844
- children: [/* @__PURE__ */ M(f, { className: "h-6 w-6 text-text-secondary" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("p", {
845
- className: "text-sm font-medium text-text-primary",
846
- children: [
847
- B.billing.paymentMethod.provider,
848
- " ending in",
849
- " ",
850
- B.billing.paymentMethod.last4
851
- ]
852
- }), /* @__PURE__ */ M("p", {
853
- className: "text-xs text-text-secondary capitalize",
854
- children: B.billing.paymentMethod.type
855
- })] })]
856
- }), /* @__PURE__ */ M("button", {
857
- type: "button",
858
- onClick: () => alert("Change payment method coming soon"),
859
- className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
860
- children: "Change"
861
- })]
862
- }) : /* @__PURE__ */ N("div", {
863
- className: "rounded-lg border border-border-subtle p-4 text-center",
864
- children: [/* @__PURE__ */ M("p", {
865
- className: "text-sm text-text-secondary",
866
- children: "No default payment method set"
867
- }), /* @__PURE__ */ M("button", {
868
- type: "button",
869
- onClick: () => alert("Add payment method coming soon"),
870
- className: "mt-2 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
871
- children: "Add Payment Method"
872
- })]
873
- })] }),
874
- /* @__PURE__ */ N("div", { children: [
875
- /* @__PURE__ */ M("h4", {
876
- className: "text-sm font-semibold text-text-primary mb-3",
877
- children: "Auto Recharge"
878
- }),
879
- /* @__PURE__ */ N("div", {
880
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4 mb-3",
881
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
882
- className: "text-sm font-medium text-text-primary",
883
- children: "Enable Auto Recharge"
884
- }), /* @__PURE__ */ M("p", {
885
- className: "text-xs text-text-secondary",
886
- children: "Automatically add money when wallet balance is low"
887
- })] }), /* @__PURE__ */ M(R, {
888
- checked: B.billing.autoRecharge,
889
- onChange: (e) => X("billing", "autoRecharge", e),
890
- label: "Auto recharge"
891
- })]
892
- }),
893
- B.billing.autoRecharge && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
894
- className: "block text-sm font-medium text-text-primary mb-1.5",
895
- children: "Auto Recharge Amount (₹)"
896
- }), /* @__PURE__ */ M("input", {
897
- type: "number",
898
- value: B.billing.autoRechargeAmount,
899
- onChange: (e) => X("billing", "autoRechargeAmount", e.target.value),
900
- placeholder: "1000",
901
- className: "w-full max-w-xs rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
902
- })] })
903
- ] }),
904
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
905
- className: "block text-sm font-medium text-text-primary mb-1.5",
906
- children: /* @__PURE__ */ N("span", {
907
- className: "flex items-center gap-1.5",
908
- children: [/* @__PURE__ */ M(S, { className: "h-4 w-4 text-text-secondary" }), " Invoice Email"]
909
- })
910
- }), /* @__PURE__ */ M("input", {
911
- type: "email",
912
- value: B.billing.invoiceEmail,
913
- onChange: (e) => X("billing", "invoiceEmail", e.target.value),
914
- placeholder: "billing@example.com",
915
- className: "w-full max-w-sm rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
916
- })] }),
917
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h4", {
918
- className: "text-sm font-semibold text-text-primary mb-3",
919
- children: /* @__PURE__ */ N("span", {
920
- className: "flex items-center gap-1.5",
921
- children: [/* @__PURE__ */ M(l, { className: "h-4 w-4 text-text-secondary" }), " Tax Information"]
922
- })
923
- }), /* @__PURE__ */ N("div", {
924
- className: "space-y-4",
925
- children: [
926
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
927
- className: "block text-sm font-medium text-text-primary mb-1.5",
928
- children: "GST Number"
929
- }), /* @__PURE__ */ M("input", {
930
- type: "text",
931
- value: B.billing.gstNumber,
932
- onChange: (e) => X("billing", "gstNumber", e.target.value),
933
- placeholder: "29ABCDE1234F1Z5",
934
- className: "w-full max-w-sm rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
935
- })] }),
936
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
937
- className: "block text-sm font-medium text-text-primary mb-1.5",
938
- children: "Company Name"
939
- }), /* @__PURE__ */ M("input", {
940
- type: "text",
941
- value: B.billing.companyName,
942
- onChange: (e) => X("billing", "companyName", e.target.value),
943
- placeholder: "Your Company Name",
944
- className: "w-full max-w-sm rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
945
- })] }),
946
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("label", {
947
- className: "block text-sm font-medium text-text-primary mb-1.5",
948
- children: /* @__PURE__ */ N("span", {
949
- className: "flex items-center gap-1.5",
950
- children: [/* @__PURE__ */ M(y, { className: "h-4 w-4 text-text-secondary" }), " Billing Address"]
951
- })
952
- }), /* @__PURE__ */ M("textarea", {
953
- rows: 3,
954
- value: B.billing.billingAddress,
955
- onChange: (e) => X("billing", "billingAddress", e.target.value),
956
- placeholder: "Enter your complete billing address",
957
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none"
958
- })] })
959
- ]
960
- })] })
961
- ]
962
- })
963
- }[A]()
964
- })]
965
- })
966
- ]
967
- });
968
- }
969
- //#endregion
970
- export { z as SettingsPage };
971
-
972
- //# sourceMappingURL=SettingsPage.js.map