@burdenoff/microfe-adaptercloud 2026.625.2 → 2026.628.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/adaptercloud/AdapterCloudRoot.js +65 -121
  2. package/dist/adaptercloud/AdapterCloudRoot.js.map +1 -1
  3. package/dist/adaptercloud/AdapterCloudRoutes.js +70 -182
  4. package/dist/adaptercloud/AdapterCloudRoutes.js.map +1 -1
  5. package/dist/adaptercloud/components/DataState.js +42 -0
  6. package/dist/adaptercloud/components/DataState.js.map +1 -0
  7. package/dist/adaptercloud/components/SeverityBadge.js +12 -0
  8. package/dist/adaptercloud/components/SeverityBadge.js.map +1 -0
  9. package/dist/adaptercloud/components/StatusBadge.js +43 -44
  10. package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
  11. package/dist/adaptercloud/context/AdapterCloudContext.js +22 -30
  12. package/dist/adaptercloud/context/AdapterCloudContext.js.map +1 -1
  13. package/dist/adaptercloud/hooks/useAdapterCloudApi.js +397 -194
  14. package/dist/adaptercloud/hooks/useAdapterCloudApi.js.map +1 -1
  15. package/dist/adaptercloud/index.js +1 -0
  16. package/dist/adaptercloud/pages/OverviewPage.js +334 -0
  17. package/dist/adaptercloud/pages/OverviewPage.js.map +1 -0
  18. package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js +187 -0
  19. package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js.map +1 -0
  20. package/dist/adaptercloud/pages/adapters/AdapterFormPage.js +278 -0
  21. package/dist/adaptercloud/pages/adapters/AdapterFormPage.js.map +1 -0
  22. package/dist/adaptercloud/pages/adapters/AdaptersListPage.js +172 -0
  23. package/dist/adaptercloud/pages/adapters/AdaptersListPage.js.map +1 -0
  24. package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js +247 -0
  25. package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js.map +1 -0
  26. package/dist/adaptercloud/pages/connections/ConnectionFormPage.js +271 -0
  27. package/dist/adaptercloud/pages/connections/ConnectionFormPage.js.map +1 -0
  28. package/dist/adaptercloud/pages/connections/ConnectionsListPage.js +167 -0
  29. package/dist/adaptercloud/pages/connections/ConnectionsListPage.js.map +1 -0
  30. package/dist/adaptercloud/pages/costs/CostsPage.js +169 -0
  31. package/dist/adaptercloud/pages/costs/CostsPage.js.map +1 -0
  32. package/dist/adaptercloud/pages/drift/DriftListPage.js +132 -0
  33. package/dist/adaptercloud/pages/drift/DriftListPage.js.map +1 -0
  34. package/dist/adaptercloud/pages/policies/PoliciesListPage.js +171 -0
  35. package/dist/adaptercloud/pages/policies/PoliciesListPage.js.map +1 -0
  36. package/dist/adaptercloud/pages/policies/PolicyDetailPage.js +185 -0
  37. package/dist/adaptercloud/pages/policies/PolicyDetailPage.js.map +1 -0
  38. package/dist/adaptercloud/pages/policies/PolicyFormPage.js +215 -0
  39. package/dist/adaptercloud/pages/policies/PolicyFormPage.js.map +1 -0
  40. package/dist/adaptercloud/pages/resources/ResourceDetailPage.js +207 -0
  41. package/dist/adaptercloud/pages/resources/ResourceDetailPage.js.map +1 -0
  42. package/dist/adaptercloud/pages/resources/ResourcesListPage.js +182 -0
  43. package/dist/adaptercloud/pages/resources/ResourcesListPage.js.map +1 -0
  44. package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js +196 -0
  45. package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js.map +1 -0
  46. package/dist/adaptercloud/pages/violations/ViolationsListPage.js +258 -0
  47. package/dist/adaptercloud/pages/violations/ViolationsListPage.js.map +1 -0
  48. package/dist/adaptercloud/store/adaptercloudStore.js +1 -7
  49. package/dist/adaptercloud/store/adaptercloudStore.js.map +1 -1
  50. package/dist/adaptercloud/utils/domain.js +105 -0
  51. package/dist/adaptercloud/utils/domain.js.map +1 -0
  52. package/dist/adaptercloud/utils/formatters.js +1 -12
  53. package/dist/adaptercloud/utils/formatters.js.map +1 -1
  54. package/dist/index.js +5 -4
  55. package/package.json +1 -1
  56. package/dist/adaptercloud/components/InvestmentCard.js +0 -98
  57. package/dist/adaptercloud/components/InvestmentCard.js.map +0 -1
  58. package/dist/adaptercloud/components/RatingDisplay.js +0 -35
  59. package/dist/adaptercloud/components/RatingDisplay.js.map +0 -1
  60. package/dist/adaptercloud/mocks/data.js +0 -1517
  61. package/dist/adaptercloud/mocks/data.js.map +0 -1
  62. package/dist/adaptercloud/mocks/users.js +0 -34
  63. package/dist/adaptercloud/mocks/users.js.map +0 -1
  64. package/dist/adaptercloud/pages/HomePage.js +0 -934
  65. package/dist/adaptercloud/pages/HomePage.js.map +0 -1
  66. package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +0 -653
  67. package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +0 -1
  68. package/dist/adaptercloud/pages/admin/AdminDashboard.js +0 -665
  69. package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +0 -1
  70. package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +0 -426
  71. package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +0 -1
  72. package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +0 -665
  73. package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +0 -1
  74. package/dist/adaptercloud/pages/admin/AdminProfilePage.js +0 -261
  75. package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +0 -1
  76. package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +0 -663
  77. package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +0 -1
  78. package/dist/adaptercloud/pages/admin/CartManagementPage.js +0 -874
  79. package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +0 -1
  80. package/dist/adaptercloud/pages/admin/UserManagementPage.js +0 -898
  81. package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +0 -1
  82. package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +0 -840
  83. package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  84. package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +0 -714
  85. package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  86. package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +0 -788
  87. package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  88. package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +0 -888
  89. package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  90. package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +0 -634
  91. package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  92. package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +0 -907
  93. package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  94. package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +0 -875
  95. package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +0 -1
  96. package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +0 -827
  97. package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +0 -1
  98. package/dist/adaptercloud/pages/common/HelpSupportPage.js +0 -1329
  99. package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +0 -1
  100. package/dist/adaptercloud/pages/common/NotificationCenterPage.js +0 -671
  101. package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +0 -1
  102. package/dist/adaptercloud/pages/common/SettingsPage.js +0 -982
  103. package/dist/adaptercloud/pages/common/SettingsPage.js.map +0 -1
  104. package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +0 -596
  105. package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +0 -1
  106. package/dist/adaptercloud/pages/customer/CartDetailPage.js +0 -623
  107. package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +0 -1
  108. package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +0 -552
  109. package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +0 -1
  110. package/dist/adaptercloud/pages/customer/CheckoutPage.js +0 -534
  111. package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +0 -1
  112. package/dist/adaptercloud/pages/customer/CustomerDashboard.js +0 -525
  113. package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +0 -1
  114. package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +0 -623
  115. package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +0 -1
  116. package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +0 -629
  117. package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +0 -1
  118. package/dist/adaptercloud/pages/customer/FavoritesPage.js +0 -480
  119. package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +0 -1
  120. package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +0 -444
  121. package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +0 -1
  122. package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +0 -391
  123. package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +0 -1
  124. package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +0 -504
  125. package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +0 -1
  126. package/dist/adaptercloud/pages/customer/ReviewsPage.js +0 -609
  127. package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +0 -1
  128. package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +0 -459
  129. package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +0 -1
  130. package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +0 -851
  131. package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +0 -1
  132. package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +0 -942
  133. package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  134. package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +0 -683
  135. package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  136. package/dist/adaptercloud/pages/investor/InvestorDashboard.js +0 -452
  137. package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +0 -1
  138. package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +0 -402
  139. package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  140. package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +0 -571
  141. package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +0 -1
  142. package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +0 -1067
  143. package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +0 -1
  144. package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +0 -526
  145. package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +0 -1
  146. package/dist/adaptercloud/pages/worker/WorkerDashboard.js +0 -659
  147. package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +0 -1
  148. package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +0 -678
  149. package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +0 -1
  150. package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +0 -689
  151. package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +0 -1
  152. package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +0 -582
  153. package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,982 +0,0 @@
1
- import { useAdapterCloud as e } from "../../context/AdapterCloudContext.js";
2
- import { cn as t } from "../../utils/cn.js";
3
- import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { useCallback as r, useMemo as i, useState as a } from "react";
5
- import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
- import { AlertTriangle as s, Bell as c, Building2 as l, Camera as u, CheckCircle2 as d, CreditCard as f, Eye as p, Globe as m, Laptop as h, Loader2 as g, Lock as _, LogOut as v, MapPin as y, Monitor as b, Moon as x, Receipt as S, RotateCcw as C, Save as w, Settings as T, Shield as E, Smartphone as D, Sun as O, Trash2 as k, User as A } from "lucide-react";
7
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
8
- import { EmphasisPanel as P } from "@burdenoff/fe-libs/ui";
9
- //#region src/adaptercloud/pages/common/SettingsPage.tsx
10
- var F = {
11
- profile: {
12
- firstName: "Priya",
13
- lastName: "Customer",
14
- email: "customer@burdenoff.com",
15
- phone: "+91 98765 43220",
16
- bio: "Food enthusiast and tech lover. Always exploring new services and experiences in Bangalore.",
17
- dateOfBirth: "1992-08-15",
18
- gender: "female",
19
- profilePicture: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=200"
20
- },
21
- preferences: {
22
- theme: "system",
23
- language: "en",
24
- timezone: "Asia/Kolkata",
25
- currency: "INR",
26
- notifications: {
27
- email: !0,
28
- sms: !0,
29
- push: !0,
30
- orderUpdates: !0,
31
- promotions: !1,
32
- newsletters: !1,
33
- security: !0
34
- }
35
- },
36
- security: {
37
- twoFactorEnabled: !1,
38
- loginAlerts: !0,
39
- sessionTimeout: "30",
40
- trustedDevices: [
41
- {
42
- id: "dev-1",
43
- name: "MacBook Pro",
44
- browser: "Chrome 126.0",
45
- os: "macOS Sonoma",
46
- lastActive: "2024-06-24T09:30:00Z",
47
- isCurrent: !0
48
- },
49
- {
50
- id: "dev-2",
51
- name: "iPhone 15",
52
- browser: "Safari Mobile",
53
- os: "iOS 17.5",
54
- lastActive: "2024-06-23T18:45:00Z",
55
- isCurrent: !1
56
- },
57
- {
58
- id: "dev-3",
59
- name: "Samsung Galaxy S24",
60
- browser: "Chrome Mobile",
61
- os: "Android 14",
62
- lastActive: "2024-06-20T12:00:00Z",
63
- isCurrent: !1
64
- }
65
- ]
66
- },
67
- privacy: {
68
- profileVisibility: "private",
69
- dataSharing: {
70
- analytics: !0,
71
- marketing: !1,
72
- thirdParty: !1
73
- },
74
- locationTracking: !0,
75
- activityHistory: !0
76
- },
77
- billing: {
78
- paymentMethod: {
79
- type: "card",
80
- last4: "4532",
81
- provider: "Visa"
82
- },
83
- autoRecharge: !1,
84
- autoRechargeAmount: "1000",
85
- invoiceEmail: "customer@burdenoff.com",
86
- gstNumber: "29ABCDE1234F1Z5",
87
- companyName: "",
88
- billingAddress: "123 Tech Park, Koramangala, Bangalore 560034"
89
- }
90
- }, I = [
91
- {
92
- id: "profile",
93
- label: "Profile",
94
- icon: A
95
- },
96
- {
97
- id: "preferences",
98
- label: "Preferences",
99
- icon: T
100
- },
101
- {
102
- id: "security",
103
- label: "Security",
104
- icon: E
105
- },
106
- {
107
- id: "privacy",
108
- label: "Privacy",
109
- icon: p
110
- },
111
- {
112
- id: "billing",
113
- label: "Billing",
114
- icon: f
115
- }
116
- ];
117
- function L({ checked: e, onChange: n, label: r }) {
118
- return /* @__PURE__ */ M("button", {
119
- type: "button",
120
- role: "switch",
121
- "aria-checked": e,
122
- "aria-label": r,
123
- onClick: () => n(!e),
124
- className: t("relative inline-flex h-6 w-11 items-center rounded-full transition-colors shrink-0", e ? "bg-action-primary-bg" : "bg-bg-sunken"),
125
- children: /* @__PURE__ */ M("span", { className: t("inline-block h-4 w-4 transform rounded-full bg-white transition-transform", e ? "translate-x-6" : "translate-x-1") })
126
- });
127
- }
128
- function 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);
134
- return n === e ? t : n;
135
- }, [A]), Y = i(() => I.map((e) => ({
136
- ...e,
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) => ({
140
- ...r,
141
- [e]: {
142
- ...r[e],
143
- [t]: n
144
- }
145
- })), U(!0), q("");
146
- }, []), Z = r((e, t, n, r) => {
147
- V((i) => ({
148
- ...i,
149
- [e]: {
150
- ...i[e],
151
- [t]: {
152
- ...i[e][t],
153
- [n]: r
154
- }
155
- }
156
- })), U(!0), q("");
157
- }, []), Q = r(() => {
158
- V(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");
162
- return;
163
- }
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");
166
- return;
167
- }
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) => ({
171
- ...t,
172
- security: {
173
- ...t.security,
174
- trustedDevices: t.security.trustedDevices.filter((t) => t.id !== e)
175
- }
176
- })), U(!0);
177
- }, []), te = r(() => {
178
- V((e) => ({
179
- ...e,
180
- security: {
181
- ...e.security,
182
- trustedDevices: e.security.trustedDevices.filter((e) => e.isCurrent)
183
- }
184
- })), U(!0);
185
- }, []), ne = r(() => {
186
- window.confirm(J("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]);
188
- return /* @__PURE__ */ N(n, {
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."),
192
- actions: /* @__PURE__ */ N("div", {
193
- className: "flex items-center gap-2",
194
- children: [H && /* @__PURE__ */ N("button", {
195
- type: "button",
196
- onClick: Q,
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",
198
- children: [/* @__PURE__ */ M(C, { className: "h-4 w-4" }), J("adaptercloud.settings.reset", "Reset")]
199
- }), /* @__PURE__ */ M("button", {
200
- type: "button",
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")] })
205
- })]
206
- }),
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",
229
- children: [/* @__PURE__ */ M("div", {
230
- className: "grid grid-cols-5 gap-1 lg:hidden",
231
- children: Y.map((e) => {
232
- let n = e.icon;
233
- return /* @__PURE__ */ N("button", {
234
- type: "button",
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
- })]
241
- }, e.id);
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
- })]
263
- })]
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", {
337
- className: "block text-sm font-medium text-text-primary mb-1.5",
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", {
349
- className: "block text-sm font-medium text-text-primary mb-1.5",
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"
359
- }), /* @__PURE__ */ N("select", {
360
- value: B.profile.gender,
361
- onChange: (e) => X("profile", "gender", e.target.value),
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)]",
363
- children: [
364
- /* @__PURE__ */ M("option", {
365
- value: "",
366
- children: "Select gender"
367
- }),
368
- /* @__PURE__ */ M("option", {
369
- value: "male",
370
- children: "Male"
371
- }),
372
- /* @__PURE__ */ M("option", {
373
- value: "female",
374
- children: "Female"
375
- }),
376
- /* @__PURE__ */ M("option", {
377
- value: "other",
378
- children: "Other"
379
- }),
380
- /* @__PURE__ */ M("option", {
381
- value: "prefer-not-to-say",
382
- children: "Prefer not to say"
383
- })
384
- ]
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"),
513
- children: [
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"
521
- }),
522
- /* @__PURE__ */ M(r, { className: "h-4 w-4" }),
523
- n
524
- ]
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
- })]
643
- }), /* @__PURE__ */ N("select", {
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",
647
- children: [
648
- /* @__PURE__ */ M("option", {
649
- value: "15",
650
- children: "15 minutes"
651
- }),
652
- /* @__PURE__ */ M("option", {
653
- value: "30",
654
- children: "30 minutes"
655
- }),
656
- /* @__PURE__ */ M("option", {
657
- value: "60",
658
- children: "1 hour"
659
- }),
660
- /* @__PURE__ */ M("option", {
661
- value: "120",
662
- children: "2 hours"
663
- }),
664
- /* @__PURE__ */ M("option", {
665
- value: "0",
666
- children: "Never"
667
- })
668
- ]
669
- })]
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"
702
- })]
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"]
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
- })
734
- }), /* @__PURE__ */ N("select", {
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)]",
738
- children: [
739
- /* @__PURE__ */ M("option", {
740
- value: "public",
741
- children: "Public - Anyone can see your profile"
742
- }),
743
- /* @__PURE__ */ M("option", {
744
- value: "private",
745
- children: "Private - Only you can see your profile"
746
- }),
747
- /* @__PURE__ */ M("option", {
748
- value: "friends",
749
- children: "Friends - Only friends can see your profile"
750
- })
751
- ]
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", {
851
- className: "flex items-center justify-between rounded-lg border border-border-subtle p-4",
852
- children: [/* @__PURE__ */ N("div", {
853
- className: "flex items-center gap-3",
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",
856
- children: [
857
- B.billing.paymentMethod.provider,
858
- " ending in",
859
- " ",
860
- B.billing.paymentMethod.last4
861
- ]
862
- }), /* @__PURE__ */ M("p", {
863
- className: "text-xs text-text-secondary capitalize",
864
- children: B.billing.paymentMethod.type
865
- })] })]
866
- }), /* @__PURE__ */ M("button", {
867
- type: "button",
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"
871
- })]
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"
882
- })]
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", {
892
- className: "text-sm font-medium text-text-primary",
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", {
904
- className: "block text-sm font-medium text-text-primary mb-1.5",
905
- children: "Auto Recharge Amount (₹)"
906
- }), /* @__PURE__ */ M("input", {
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)]"
912
- })] })
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
- ]
977
- });
978
- }
979
- //#endregion
980
- export { R as SettingsPage };
981
-
982
- //# sourceMappingURL=SettingsPage.js.map