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