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