@burdenoff/microfe-adaptercloud 2026.625.1 → 2026.625.2

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