@burdenoff/microfe-coolandlovely 2026.624.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/components/EmptyState.js +17 -21
- package/dist/coolandlovely/components/EmptyState.js.map +1 -1
- package/dist/coolandlovely/components/InvestmentCard.js +25 -23
- package/dist/coolandlovely/components/InvestmentCard.js.map +1 -1
- package/dist/coolandlovely/components/MetricsCard.js +18 -12
- package/dist/coolandlovely/components/MetricsCard.js.map +1 -1
- package/dist/coolandlovely/components/PageLayout.js +38 -19
- package/dist/coolandlovely/components/PageLayout.js.map +1 -1
- package/dist/coolandlovely/components/RatingDisplay.js +3 -3
- package/dist/coolandlovely/components/RatingDisplay.js.map +1 -1
- package/dist/coolandlovely/components/StatusBadge.js +36 -16
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
- package/dist/coolandlovely/pages/HomePage.js +219 -204
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +98 -92
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +111 -77
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +49 -43
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +234 -229
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +67 -62
- 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 +291 -286
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +287 -282
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +108 -100
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +260 -255
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +596 -554
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +187 -182
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +229 -221
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +675 -674
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +525 -524
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +264 -266
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +137 -137
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +81 -75
- 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 +189 -186
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +222 -211
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +219 -222
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +446 -404
- 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 +94 -84
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +121 -112
- 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 +90 -84
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +99 -89
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +74 -68
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +317 -279
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +249 -243
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +87 -81
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +359 -323
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +115 -109
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +179 -146
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +397 -392
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +364 -327
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +580 -543
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +114 -109
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +115 -110
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +100 -95
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import { useInvestments as
|
|
5
|
-
import { formatCurrency as
|
|
6
|
-
import { mockActiveInvestments as
|
|
4
|
+
import { useInvestments as r } from "../../hooks/useCoolAndLovelyApi.js";
|
|
5
|
+
import { formatCurrency as i, formatDate as ee } from "../../utils/formatters.js";
|
|
6
|
+
import { mockActiveInvestments as te } from "../../mocks/data.js";
|
|
7
7
|
import { useCallback as a, useMemo as o, useState as s } from "react";
|
|
8
|
-
import { Bell as c, Briefcase as
|
|
9
|
-
import { Fragment as
|
|
8
|
+
import { Bell as c, Briefcase as ne, Building2 as re, Camera as ie, CheckCircle2 as l, DollarSign as u, Edit3 as d, Eye as f, EyeOff as p, FileText as m, Globe as h, Linkedin as ae, Lock as oe, Mail as se, MapPin as ce, Monitor as g, Phone as _, PieChart as v, Save as y, Shield as b, Smartphone as x, TrendingUp as S, User as C, X as w } from "lucide-react";
|
|
9
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as le, PagePurpose as ue } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/coolandlovely/pages/investor/InvestorProfilePage.tsx
|
|
11
|
-
var
|
|
12
|
+
var O = [
|
|
12
13
|
{
|
|
13
14
|
id: "personal",
|
|
14
15
|
label: "Personal Info",
|
|
15
|
-
Icon:
|
|
16
|
+
Icon: C
|
|
16
17
|
},
|
|
17
18
|
{
|
|
18
19
|
id: "investment",
|
|
19
20
|
label: "Investment Profile",
|
|
20
|
-
Icon:
|
|
21
|
+
Icon: S
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
id: "portfolio",
|
|
24
25
|
label: "Portfolio",
|
|
25
|
-
Icon:
|
|
26
|
+
Icon: v
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
id: "documents",
|
|
@@ -32,14 +33,14 @@ var D = [
|
|
|
32
33
|
{
|
|
33
34
|
id: "security",
|
|
34
35
|
label: "Security",
|
|
35
|
-
Icon:
|
|
36
|
+
Icon: b
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
39
|
id: "notifications",
|
|
39
40
|
label: "Notifications",
|
|
40
41
|
Icon: c
|
|
41
42
|
}
|
|
42
|
-
],
|
|
43
|
+
], de = [
|
|
43
44
|
{
|
|
44
45
|
name: "PAN Card",
|
|
45
46
|
verifiedOn: "15 Dec 2023",
|
|
@@ -60,7 +61,7 @@ var D = [
|
|
|
60
61
|
verifiedOn: "",
|
|
61
62
|
status: "template"
|
|
62
63
|
}
|
|
63
|
-
],
|
|
64
|
+
], fe = [
|
|
64
65
|
{
|
|
65
66
|
device: "Chrome on macOS",
|
|
66
67
|
location: "Bangalore, India",
|
|
@@ -79,7 +80,7 @@ var D = [
|
|
|
79
80
|
date: "2024-01-14T10:20:00Z",
|
|
80
81
|
current: !1
|
|
81
82
|
}
|
|
82
|
-
],
|
|
83
|
+
], pe = [
|
|
83
84
|
"Food & Beverage",
|
|
84
85
|
"Quick Commerce",
|
|
85
86
|
"Cloud Kitchen",
|
|
@@ -90,8 +91,8 @@ var D = [
|
|
|
90
91
|
"Logistics",
|
|
91
92
|
"FinTech"
|
|
92
93
|
];
|
|
93
|
-
function
|
|
94
|
-
let { currentUser: c, navigateTo:
|
|
94
|
+
function k() {
|
|
95
|
+
let { currentUser: c, navigateTo: b } = e(), { data: k = [] } = r(c?.id || ""), [A, j] = s("personal"), [M, N] = s(!1), [P, F] = s(!1), [I, L] = s(""), R = o(() => ({
|
|
95
96
|
firstName: c?.firstName ?? c?.name?.split(" ")[0] ?? "Rajesh",
|
|
96
97
|
lastName: c?.lastName ?? c?.name?.split(" ")[1] ?? "Mehta",
|
|
97
98
|
email: c?.email ?? "investor@burdenoff.com",
|
|
@@ -115,14 +116,14 @@ function A() {
|
|
|
115
116
|
state: "Karnataka",
|
|
116
117
|
country: "India",
|
|
117
118
|
pincode: "560001"
|
|
118
|
-
}), [c]), [
|
|
119
|
+
}), [c]), [z, B] = s(R);
|
|
119
120
|
o(() => ({
|
|
120
|
-
totalInvested:
|
|
121
|
-
portfolioValue:
|
|
122
|
-
totalReturns:
|
|
123
|
-
activeInvestments:
|
|
124
|
-
}), [
|
|
125
|
-
let [
|
|
121
|
+
totalInvested: k.reduce((e, t) => e + t.investedAmount, 0),
|
|
122
|
+
portfolioValue: k.reduce((e, t) => e + t.currentValue, 0),
|
|
123
|
+
totalReturns: k.reduce((e, t) => e + t.returns, 0),
|
|
124
|
+
activeInvestments: k.length
|
|
125
|
+
}), [k]);
|
|
126
|
+
let [V, me] = s([
|
|
126
127
|
{
|
|
127
128
|
id: "opportunities",
|
|
128
129
|
label: "New Investment Opportunities",
|
|
@@ -159,374 +160,378 @@ function A() {
|
|
|
159
160
|
description: "Notifications when dividends are credited to your account",
|
|
160
161
|
enabled: !0
|
|
161
162
|
}
|
|
162
|
-
]), [
|
|
163
|
-
|
|
163
|
+
]), [he, H] = s(!1), [U, W] = s(""), [G, K] = s(""), [q, J] = s(""), [Y, ge] = s(!1), [X, _e] = s(!1), [Z, ve] = s(!1), Q = a((e, t) => {
|
|
164
|
+
B((n) => ({
|
|
164
165
|
...n,
|
|
165
166
|
[e]: t
|
|
166
167
|
}));
|
|
167
|
-
}, []),
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
}, []), $ = a(() => {
|
|
169
|
+
F(!0), setTimeout(() => {
|
|
170
|
+
F(!1), N(!1), L("Profile updated successfully!"), setTimeout(() => L(""), 3e3);
|
|
170
171
|
}, 1200);
|
|
171
|
-
}, []),
|
|
172
|
+
}, []), ye = a((e) => {
|
|
172
173
|
let t = e.target.files?.[0];
|
|
173
174
|
if (t) {
|
|
174
175
|
let e = new FileReader();
|
|
175
176
|
e.onloadend = () => {
|
|
176
|
-
|
|
177
|
+
B((t) => ({
|
|
177
178
|
...t,
|
|
178
179
|
profileImage: e.result
|
|
179
180
|
}));
|
|
180
181
|
}, e.readAsDataURL(t);
|
|
181
182
|
}
|
|
182
|
-
}, []),
|
|
183
|
-
|
|
183
|
+
}, []), be = a((e) => {
|
|
184
|
+
me((t) => t.map((t) => t.id === e ? {
|
|
184
185
|
...t,
|
|
185
186
|
enabled: !t.enabled
|
|
186
187
|
} : t));
|
|
187
|
-
}, []),
|
|
188
|
-
if (!(!
|
|
189
|
-
if (
|
|
188
|
+
}, []), xe = a(() => {
|
|
189
|
+
if (!(!U || !G || !q)) {
|
|
190
|
+
if (G !== q) {
|
|
190
191
|
alert("Passwords do not match");
|
|
191
192
|
return;
|
|
192
193
|
}
|
|
193
|
-
if (
|
|
194
|
+
if (G.length < 8) {
|
|
194
195
|
alert("Password must be at least 8 characters");
|
|
195
196
|
return;
|
|
196
197
|
}
|
|
197
|
-
alert("Password changed successfully!"),
|
|
198
|
+
alert("Password changed successfully!"), H(!1), W(""), K(""), J("");
|
|
198
199
|
}
|
|
199
200
|
}, [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
]),
|
|
204
|
-
|
|
201
|
+
U,
|
|
202
|
+
G,
|
|
203
|
+
q
|
|
204
|
+
]), Se = a(() => {
|
|
205
|
+
ve((e) => {
|
|
205
206
|
let t = !e;
|
|
206
207
|
return alert(t ? "2FA has been enabled" : "2FA has been disabled"), t;
|
|
207
208
|
});
|
|
208
209
|
}, []);
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ D(n, {
|
|
210
211
|
title: "Investor Profile",
|
|
211
212
|
description: "Manage your investment profile and preferences",
|
|
212
|
-
actions: /* @__PURE__ */
|
|
213
|
+
actions: /* @__PURE__ */ D("div", {
|
|
213
214
|
className: "flex items-center gap-2",
|
|
214
|
-
children: [
|
|
215
|
-
className: "text-sm font-medium text-
|
|
216
|
-
children:
|
|
217
|
-
}),
|
|
215
|
+
children: [I && /* @__PURE__ */ E("span", {
|
|
216
|
+
className: "text-sm font-medium text-status-success-text",
|
|
217
|
+
children: I
|
|
218
|
+
}), M ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("button", {
|
|
218
219
|
type: "button",
|
|
219
220
|
onClick: () => {
|
|
220
|
-
|
|
221
|
+
N(!1), B(R);
|
|
221
222
|
},
|
|
222
223
|
className: "flex items-center gap-2 rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
223
|
-
children: [/* @__PURE__ */
|
|
224
|
-
}), /* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ E(w, { className: "h-4 w-4" }), "Cancel"]
|
|
225
|
+
}), /* @__PURE__ */ E("button", {
|
|
225
226
|
type: "button",
|
|
226
|
-
onClick:
|
|
227
|
-
disabled:
|
|
228
|
-
className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
229
|
-
children:
|
|
230
|
-
})] }) : /* @__PURE__ */
|
|
227
|
+
onClick: $,
|
|
228
|
+
disabled: P,
|
|
229
|
+
className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors", P ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
230
|
+
children: P ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(y, { className: "h-4 w-4" }), "Save Changes"] })
|
|
231
|
+
})] }) : /* @__PURE__ */ D("button", {
|
|
231
232
|
type: "button",
|
|
232
|
-
onClick: () =>
|
|
233
|
+
onClick: () => N(!0),
|
|
233
234
|
className: "flex items-center gap-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",
|
|
234
|
-
children: [/* @__PURE__ */
|
|
235
|
+
children: [/* @__PURE__ */ E(d, { className: "h-4 w-4" }), "Edit Profile"]
|
|
235
236
|
})]
|
|
236
237
|
}),
|
|
237
|
-
children: /* @__PURE__ */ E(
|
|
238
|
+
children: [/* @__PURE__ */ E(ue, {
|
|
239
|
+
className: "mb-6",
|
|
240
|
+
icon: /* @__PURE__ */ E(C, { className: "h-4 w-4" }),
|
|
241
|
+
children: "Your investor identity and preferences. Keep your personal and KYC details current, set your investment preferences and risk appetite, manage account security, and see your portfolio snapshot — so opportunities and reporting are tailored to you."
|
|
242
|
+
}), /* @__PURE__ */ D("div", {
|
|
238
243
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
|
|
239
|
-
children: [/* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ D("div", {
|
|
240
245
|
className: "lg:col-span-1",
|
|
241
246
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
className: "
|
|
244
|
-
children: [/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ D(le, {
|
|
248
|
+
className: "p-4 sm:p-6",
|
|
249
|
+
children: [/* @__PURE__ */ D("div", {
|
|
245
250
|
className: "text-center",
|
|
246
251
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ D("div", {
|
|
248
253
|
className: "relative mx-auto inline-block",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
254
|
+
children: [/* @__PURE__ */ E("div", {
|
|
250
255
|
className: "h-20 w-20 overflow-hidden rounded-full bg-bg-sunken sm:h-24 sm:w-24",
|
|
251
|
-
children:
|
|
252
|
-
src:
|
|
256
|
+
children: z.profileImage ? /* @__PURE__ */ E("img", {
|
|
257
|
+
src: z.profileImage,
|
|
253
258
|
alt: "Profile",
|
|
254
259
|
className: "h-full w-full object-cover"
|
|
255
|
-
}) : /* @__PURE__ */
|
|
260
|
+
}) : /* @__PURE__ */ E("div", {
|
|
256
261
|
className: "flex h-full w-full items-center justify-center",
|
|
257
|
-
children: /* @__PURE__ */
|
|
262
|
+
children: /* @__PURE__ */ E(C, { className: "h-10 w-10 text-text-secondary" })
|
|
258
263
|
})
|
|
259
|
-
}),
|
|
264
|
+
}), M && /* @__PURE__ */ D("label", {
|
|
260
265
|
className: "absolute bottom-0 right-0 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ E(ie, { className: "h-4 w-4" }), /* @__PURE__ */ E("input", {
|
|
262
267
|
type: "file",
|
|
263
268
|
accept: "image/*",
|
|
264
|
-
onChange:
|
|
269
|
+
onChange: ye,
|
|
265
270
|
className: "hidden"
|
|
266
271
|
})]
|
|
267
272
|
})]
|
|
268
273
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ D("h3", {
|
|
270
275
|
className: "mt-3 text-base font-semibold text-text-primary sm:text-lg",
|
|
271
276
|
children: [
|
|
272
|
-
|
|
277
|
+
z.firstName,
|
|
273
278
|
" ",
|
|
274
|
-
|
|
279
|
+
z.lastName
|
|
275
280
|
]
|
|
276
281
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ E("p", {
|
|
278
283
|
className: "text-sm text-text-secondary",
|
|
279
|
-
children:
|
|
284
|
+
children: z.investorType
|
|
280
285
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ E("p", {
|
|
282
287
|
className: "mt-1 truncate text-xs text-text-secondary",
|
|
283
|
-
children:
|
|
288
|
+
children: z.companyName
|
|
284
289
|
})
|
|
285
290
|
]
|
|
286
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ D("div", {
|
|
287
292
|
className: "mt-5 space-y-3 border-t border-border-subtle pt-4",
|
|
288
293
|
children: [
|
|
289
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ D("div", {
|
|
290
295
|
className: "flex items-center justify-between",
|
|
291
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ E("span", {
|
|
292
297
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
293
298
|
children: "Portfolio Value"
|
|
294
|
-
}), /* @__PURE__ */
|
|
299
|
+
}), /* @__PURE__ */ E("span", {
|
|
295
300
|
className: "text-xs font-semibold text-primary sm:text-sm",
|
|
296
|
-
children:
|
|
301
|
+
children: i(z.portfolioValue ?? 0, { minimumFractionDigits: 0 })
|
|
297
302
|
})]
|
|
298
303
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ D("div", {
|
|
300
305
|
className: "flex items-center justify-between",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ E("span", {
|
|
302
307
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
303
308
|
children: "Active Investments"
|
|
304
|
-
}), /* @__PURE__ */
|
|
309
|
+
}), /* @__PURE__ */ E("span", {
|
|
305
310
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
306
|
-
children:
|
|
311
|
+
children: z.activeInvestments
|
|
307
312
|
})]
|
|
308
313
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ D("div", {
|
|
310
315
|
className: "flex items-center justify-between",
|
|
311
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ E("span", {
|
|
312
317
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
313
318
|
children: "Total Returns"
|
|
314
|
-
}), /* @__PURE__ */
|
|
315
|
-
className: "text-xs font-semibold text-
|
|
316
|
-
children: ["+",
|
|
319
|
+
}), /* @__PURE__ */ D("span", {
|
|
320
|
+
className: "text-xs font-semibold text-status-success-text sm:text-sm",
|
|
321
|
+
children: ["+", i(z.totalReturns ?? 0, { minimumFractionDigits: 0 })]
|
|
317
322
|
})]
|
|
318
323
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ D("div", {
|
|
320
325
|
className: "flex items-center justify-between",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ E("span", {
|
|
322
327
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
323
328
|
children: "Total Invested"
|
|
324
|
-
}), /* @__PURE__ */
|
|
329
|
+
}), /* @__PURE__ */ E("span", {
|
|
325
330
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
326
|
-
children:
|
|
331
|
+
children: i(z.totalInvested ?? 0, { minimumFractionDigits: 0 })
|
|
327
332
|
})]
|
|
328
333
|
})
|
|
329
334
|
]
|
|
330
335
|
})]
|
|
331
336
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ E("div", {
|
|
333
338
|
className: "mt-4 flex gap-2 overflow-x-auto pb-2 lg:hidden",
|
|
334
|
-
children:
|
|
339
|
+
children: O.map((e) => /* @__PURE__ */ D("button", {
|
|
335
340
|
type: "button",
|
|
336
|
-
onClick: () =>
|
|
337
|
-
className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
341
|
+
onClick: () => j(e.id),
|
|
342
|
+
className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors", A === e.id ? "bg-action-primary-bg text-action-primary-text shadow-sm" : "bg-bg-surface text-text-primary hover:bg-accent"),
|
|
343
|
+
children: [/* @__PURE__ */ E(e.Icon, { className: "h-4 w-4 shrink-0" }), e.label]
|
|
339
344
|
}, e.id))
|
|
340
345
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ E("div", {
|
|
342
347
|
className: "mt-4 hidden space-y-2 lg:block",
|
|
343
|
-
children:
|
|
348
|
+
children: O.map((e) => /* @__PURE__ */ D("button", {
|
|
344
349
|
type: "button",
|
|
345
|
-
onClick: () =>
|
|
346
|
-
className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors",
|
|
347
|
-
children: [/* @__PURE__ */
|
|
350
|
+
onClick: () => j(e.id),
|
|
351
|
+
className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors", A === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-accent"),
|
|
352
|
+
children: [/* @__PURE__ */ E(e.Icon, { className: "h-4 w-4" }), e.label]
|
|
348
353
|
}, e.id))
|
|
349
354
|
})
|
|
350
355
|
]
|
|
351
|
-
}), /* @__PURE__ */
|
|
356
|
+
}), /* @__PURE__ */ E("div", {
|
|
352
357
|
className: "lg:col-span-3",
|
|
353
|
-
children: /* @__PURE__ */
|
|
354
|
-
className: "rounded-lg border border-border-
|
|
358
|
+
children: /* @__PURE__ */ D("div", {
|
|
359
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 lg:p-8 bg-gloss-card shadow-pop",
|
|
355
360
|
children: [
|
|
356
|
-
|
|
361
|
+
A === "personal" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
357
362
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
358
363
|
children: "Personal Information"
|
|
359
|
-
}), /* @__PURE__ */
|
|
364
|
+
}), /* @__PURE__ */ D("div", {
|
|
360
365
|
className: "space-y-6",
|
|
361
366
|
children: [
|
|
362
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ D("div", {
|
|
363
368
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
364
369
|
children: [
|
|
365
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
366
371
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
367
372
|
children: "First Name"
|
|
368
|
-
}), /* @__PURE__ */
|
|
373
|
+
}), /* @__PURE__ */ E("input", {
|
|
369
374
|
type: "text",
|
|
370
|
-
value:
|
|
371
|
-
onChange: (e) =>
|
|
372
|
-
disabled: !
|
|
375
|
+
value: z.firstName,
|
|
376
|
+
onChange: (e) => Q("firstName", e.target.value),
|
|
377
|
+
disabled: !M,
|
|
373
378
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
374
379
|
})] }),
|
|
375
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
376
381
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
377
382
|
children: "Last Name"
|
|
378
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ E("input", {
|
|
379
384
|
type: "text",
|
|
380
|
-
value:
|
|
381
|
-
onChange: (e) =>
|
|
382
|
-
disabled: !
|
|
385
|
+
value: z.lastName,
|
|
386
|
+
onChange: (e) => Q("lastName", e.target.value),
|
|
387
|
+
disabled: !M,
|
|
383
388
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
384
389
|
})] }),
|
|
385
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
386
391
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
387
392
|
children: "Email Address"
|
|
388
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ D("div", {
|
|
389
394
|
className: "relative",
|
|
390
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ E(se, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
391
396
|
type: "email",
|
|
392
|
-
value:
|
|
393
|
-
onChange: (e) =>
|
|
394
|
-
disabled: !
|
|
397
|
+
value: z.email,
|
|
398
|
+
onChange: (e) => Q("email", e.target.value),
|
|
399
|
+
disabled: !M,
|
|
395
400
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
396
401
|
})]
|
|
397
402
|
})] }),
|
|
398
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
399
404
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
400
405
|
children: "Phone Number"
|
|
401
|
-
}), /* @__PURE__ */
|
|
406
|
+
}), /* @__PURE__ */ D("div", {
|
|
402
407
|
className: "relative",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ E(_, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
404
409
|
type: "tel",
|
|
405
|
-
value:
|
|
406
|
-
onChange: (e) =>
|
|
407
|
-
disabled: !
|
|
410
|
+
value: z.phone,
|
|
411
|
+
onChange: (e) => Q("phone", e.target.value),
|
|
412
|
+
disabled: !M,
|
|
408
413
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
409
414
|
})]
|
|
410
415
|
})] })
|
|
411
416
|
]
|
|
412
417
|
}),
|
|
413
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ D("div", {
|
|
414
419
|
className: "border-t border-border-subtle pt-6",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
420
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
416
421
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
417
422
|
children: "Professional Details"
|
|
418
|
-
}), /* @__PURE__ */
|
|
423
|
+
}), /* @__PURE__ */ D("div", {
|
|
419
424
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
420
425
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
422
427
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
423
428
|
children: "Company/Organization"
|
|
424
|
-
}), /* @__PURE__ */
|
|
429
|
+
}), /* @__PURE__ */ D("div", {
|
|
425
430
|
className: "relative",
|
|
426
|
-
children: [/* @__PURE__ */
|
|
431
|
+
children: [/* @__PURE__ */ E(re, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
427
432
|
type: "text",
|
|
428
|
-
value:
|
|
429
|
-
onChange: (e) =>
|
|
430
|
-
disabled: !
|
|
433
|
+
value: z.companyName,
|
|
434
|
+
onChange: (e) => Q("companyName", e.target.value),
|
|
435
|
+
disabled: !M,
|
|
431
436
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
432
437
|
})]
|
|
433
438
|
})] }),
|
|
434
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
435
440
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
436
441
|
children: "Designation"
|
|
437
|
-
}), /* @__PURE__ */
|
|
442
|
+
}), /* @__PURE__ */ E("input", {
|
|
438
443
|
type: "text",
|
|
439
|
-
value:
|
|
440
|
-
onChange: (e) =>
|
|
441
|
-
disabled: !
|
|
444
|
+
value: z.designation,
|
|
445
|
+
onChange: (e) => Q("designation", e.target.value),
|
|
446
|
+
disabled: !M,
|
|
442
447
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
443
448
|
})] }),
|
|
444
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
445
450
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
446
451
|
children: "Company Website"
|
|
447
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ D("div", {
|
|
448
453
|
className: "relative",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
454
|
+
children: [/* @__PURE__ */ E(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
450
455
|
type: "text",
|
|
451
|
-
value:
|
|
452
|
-
onChange: (e) =>
|
|
453
|
-
disabled: !
|
|
456
|
+
value: z.companyWebsite,
|
|
457
|
+
onChange: (e) => Q("companyWebsite", e.target.value),
|
|
458
|
+
disabled: !M,
|
|
454
459
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
455
460
|
})]
|
|
456
461
|
})] }),
|
|
457
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
458
463
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
459
464
|
children: "LinkedIn Profile"
|
|
460
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ D("div", {
|
|
461
466
|
className: "relative",
|
|
462
|
-
children: [/* @__PURE__ */
|
|
467
|
+
children: [/* @__PURE__ */ E(ae, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
463
468
|
type: "text",
|
|
464
|
-
value:
|
|
465
|
-
onChange: (e) =>
|
|
466
|
-
disabled: !
|
|
469
|
+
value: z.linkedinProfile,
|
|
470
|
+
onChange: (e) => Q("linkedinProfile", e.target.value),
|
|
471
|
+
disabled: !M,
|
|
467
472
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
468
473
|
})]
|
|
469
474
|
})] })
|
|
470
475
|
]
|
|
471
476
|
})]
|
|
472
477
|
}),
|
|
473
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ D("div", {
|
|
474
479
|
className: "border-t border-border-subtle pt-6",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
480
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
476
481
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
477
482
|
children: "Address"
|
|
478
|
-
}), /* @__PURE__ */
|
|
483
|
+
}), /* @__PURE__ */ D("div", {
|
|
479
484
|
className: "space-y-4",
|
|
480
|
-
children: [/* @__PURE__ */
|
|
485
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
481
486
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
482
487
|
children: "Street Address"
|
|
483
|
-
}), /* @__PURE__ */
|
|
488
|
+
}), /* @__PURE__ */ E("textarea", {
|
|
484
489
|
rows: 2,
|
|
485
|
-
value:
|
|
486
|
-
onChange: (e) =>
|
|
487
|
-
disabled: !
|
|
490
|
+
value: z.address,
|
|
491
|
+
onChange: (e) => Q("address", e.target.value),
|
|
492
|
+
disabled: !M,
|
|
488
493
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
489
|
-
})] }), /* @__PURE__ */
|
|
494
|
+
})] }), /* @__PURE__ */ D("div", {
|
|
490
495
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
491
496
|
children: [
|
|
492
|
-
/* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
493
498
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
494
499
|
children: "City"
|
|
495
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ E("input", {
|
|
496
501
|
type: "text",
|
|
497
|
-
value:
|
|
498
|
-
onChange: (e) =>
|
|
499
|
-
disabled: !
|
|
502
|
+
value: z.city,
|
|
503
|
+
onChange: (e) => Q("city", e.target.value),
|
|
504
|
+
disabled: !M,
|
|
500
505
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
501
506
|
})] }),
|
|
502
|
-
/* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
503
508
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
504
509
|
children: "State"
|
|
505
|
-
}), /* @__PURE__ */
|
|
510
|
+
}), /* @__PURE__ */ E("input", {
|
|
506
511
|
type: "text",
|
|
507
|
-
value:
|
|
508
|
-
onChange: (e) =>
|
|
509
|
-
disabled: !
|
|
512
|
+
value: z.state,
|
|
513
|
+
onChange: (e) => Q("state", e.target.value),
|
|
514
|
+
disabled: !M,
|
|
510
515
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
511
516
|
})] }),
|
|
512
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
513
518
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
514
519
|
children: "Country"
|
|
515
|
-
}), /* @__PURE__ */
|
|
520
|
+
}), /* @__PURE__ */ E("input", {
|
|
516
521
|
type: "text",
|
|
517
|
-
value:
|
|
518
|
-
onChange: (e) =>
|
|
519
|
-
disabled: !
|
|
522
|
+
value: z.country,
|
|
523
|
+
onChange: (e) => Q("country", e.target.value),
|
|
524
|
+
disabled: !M,
|
|
520
525
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
521
526
|
})] }),
|
|
522
|
-
/* @__PURE__ */
|
|
527
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
523
528
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
524
529
|
children: "Pincode"
|
|
525
|
-
}), /* @__PURE__ */
|
|
530
|
+
}), /* @__PURE__ */ E("input", {
|
|
526
531
|
type: "text",
|
|
527
|
-
value:
|
|
528
|
-
onChange: (e) =>
|
|
529
|
-
disabled: !
|
|
532
|
+
value: z.pincode,
|
|
533
|
+
onChange: (e) => Q("pincode", e.target.value),
|
|
534
|
+
disabled: !M,
|
|
530
535
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
531
536
|
})] })
|
|
532
537
|
]
|
|
@@ -535,187 +540,187 @@ function A() {
|
|
|
535
540
|
})
|
|
536
541
|
]
|
|
537
542
|
})] }),
|
|
538
|
-
|
|
543
|
+
A === "investment" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
539
544
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
540
545
|
children: "Investment Profile"
|
|
541
|
-
}), /* @__PURE__ */
|
|
546
|
+
}), /* @__PURE__ */ D("div", {
|
|
542
547
|
className: "space-y-6",
|
|
543
548
|
children: [
|
|
544
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ D("div", {
|
|
545
550
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
546
551
|
children: [
|
|
547
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
548
553
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
549
554
|
children: "Investor Type"
|
|
550
|
-
}), /* @__PURE__ */
|
|
551
|
-
value:
|
|
552
|
-
onChange: (e) =>
|
|
553
|
-
disabled: !
|
|
555
|
+
}), /* @__PURE__ */ D("select", {
|
|
556
|
+
value: z.investorType,
|
|
557
|
+
onChange: (e) => Q("investorType", e.target.value),
|
|
558
|
+
disabled: !M,
|
|
554
559
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
555
560
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ E("option", { children: "Angel Investor" }),
|
|
562
|
+
/* @__PURE__ */ E("option", { children: "Venture Capitalist" }),
|
|
563
|
+
/* @__PURE__ */ E("option", { children: "Private Equity" }),
|
|
564
|
+
/* @__PURE__ */ E("option", { children: "Strategic Investor" })
|
|
560
565
|
]
|
|
561
566
|
})] }),
|
|
562
|
-
/* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
563
568
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
564
569
|
children: "Investment Range"
|
|
565
|
-
}), /* @__PURE__ */
|
|
566
|
-
value:
|
|
567
|
-
onChange: (e) =>
|
|
568
|
-
disabled: !
|
|
570
|
+
}), /* @__PURE__ */ D("select", {
|
|
571
|
+
value: z.investmentRange,
|
|
572
|
+
onChange: (e) => Q("investmentRange", e.target.value),
|
|
573
|
+
disabled: !M,
|
|
569
574
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
570
575
|
children: [
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ E("option", { children: "1L - 5L" }),
|
|
577
|
+
/* @__PURE__ */ E("option", { children: "5L - 25L" }),
|
|
578
|
+
/* @__PURE__ */ E("option", { children: "25L - 1Cr" }),
|
|
579
|
+
/* @__PURE__ */ E("option", { children: "1Cr+" })
|
|
575
580
|
]
|
|
576
581
|
})] }),
|
|
577
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
578
583
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
579
584
|
children: "Investment Horizon"
|
|
580
|
-
}), /* @__PURE__ */
|
|
581
|
-
value:
|
|
582
|
-
onChange: (e) =>
|
|
583
|
-
disabled: !
|
|
585
|
+
}), /* @__PURE__ */ D("select", {
|
|
586
|
+
value: z.investmentHorizon,
|
|
587
|
+
onChange: (e) => Q("investmentHorizon", e.target.value),
|
|
588
|
+
disabled: !M,
|
|
584
589
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
585
590
|
children: [
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ E("option", { children: "1-2 years" }),
|
|
592
|
+
/* @__PURE__ */ E("option", { children: "3-5 years" }),
|
|
593
|
+
/* @__PURE__ */ E("option", { children: "5-7 years" }),
|
|
594
|
+
/* @__PURE__ */ E("option", { children: "7+ years" })
|
|
590
595
|
]
|
|
591
596
|
})] }),
|
|
592
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
593
598
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
594
599
|
children: "Risk Profile"
|
|
595
|
-
}), /* @__PURE__ */
|
|
596
|
-
value:
|
|
597
|
-
onChange: (e) =>
|
|
598
|
-
disabled: !
|
|
600
|
+
}), /* @__PURE__ */ D("select", {
|
|
601
|
+
value: z.riskProfile,
|
|
602
|
+
onChange: (e) => Q("riskProfile", e.target.value),
|
|
603
|
+
disabled: !M,
|
|
599
604
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
600
605
|
children: [
|
|
601
|
-
/* @__PURE__ */
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
606
|
+
/* @__PURE__ */ E("option", { children: "Conservative" }),
|
|
607
|
+
/* @__PURE__ */ E("option", { children: "Moderate" }),
|
|
608
|
+
/* @__PURE__ */ E("option", { children: "Aggressive" })
|
|
604
609
|
]
|
|
605
610
|
})] })
|
|
606
611
|
]
|
|
607
612
|
}),
|
|
608
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
609
614
|
className: "mb-3 block text-sm font-medium text-text-primary",
|
|
610
615
|
children: "Preferred Sectors"
|
|
611
|
-
}), /* @__PURE__ */
|
|
616
|
+
}), /* @__PURE__ */ E("div", {
|
|
612
617
|
className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
|
|
613
|
-
children:
|
|
618
|
+
children: pe.map((e) => /* @__PURE__ */ D("label", {
|
|
614
619
|
className: "flex items-center gap-2",
|
|
615
|
-
children: [/* @__PURE__ */
|
|
620
|
+
children: [/* @__PURE__ */ E("input", {
|
|
616
621
|
type: "checkbox",
|
|
617
|
-
checked:
|
|
622
|
+
checked: z.preferredSectors.includes(e),
|
|
618
623
|
onChange: (t) => {
|
|
619
|
-
t.target.checked ?
|
|
624
|
+
t.target.checked ? Q("preferredSectors", [...z.preferredSectors, e]) : Q("preferredSectors", z.preferredSectors.filter((t) => t !== e));
|
|
620
625
|
},
|
|
621
|
-
disabled: !
|
|
626
|
+
disabled: !M,
|
|
622
627
|
className: "h-4 w-4 rounded border-border-subtle text-primary focus:ring-[var(--color-focus-ring)]"
|
|
623
|
-
}), /* @__PURE__ */
|
|
628
|
+
}), /* @__PURE__ */ E("span", {
|
|
624
629
|
className: "text-sm text-text-primary",
|
|
625
630
|
children: e
|
|
626
631
|
})]
|
|
627
632
|
}, e))
|
|
628
633
|
})] }),
|
|
629
|
-
/* @__PURE__ */
|
|
634
|
+
/* @__PURE__ */ D("div", {
|
|
630
635
|
className: "rounded-lg border border-border-subtle p-4",
|
|
631
|
-
children: [/* @__PURE__ */
|
|
636
|
+
children: [/* @__PURE__ */ D("div", {
|
|
632
637
|
className: "mb-2 flex items-center justify-between",
|
|
633
|
-
children: [/* @__PURE__ */
|
|
638
|
+
children: [/* @__PURE__ */ E("p", {
|
|
634
639
|
className: "text-sm font-medium text-text-primary",
|
|
635
640
|
children: "Risk Tolerance"
|
|
636
|
-
}), /* @__PURE__ */
|
|
637
|
-
className: t("text-sm font-semibold",
|
|
638
|
-
children:
|
|
641
|
+
}), /* @__PURE__ */ E("span", {
|
|
642
|
+
className: t("text-sm font-semibold", z.riskProfile === "Conservative" ? "text-status-success-text" : z.riskProfile === "Moderate" ? "text-status-warning-text" : "text-status-error-text"),
|
|
643
|
+
children: z.riskProfile
|
|
639
644
|
})]
|
|
640
|
-
}), /* @__PURE__ */
|
|
645
|
+
}), /* @__PURE__ */ E("div", {
|
|
641
646
|
className: "flex gap-1",
|
|
642
647
|
children: [
|
|
643
648
|
"Conservative",
|
|
644
649
|
"Moderate",
|
|
645
650
|
"Aggressive"
|
|
646
|
-
].map((e) => /* @__PURE__ */
|
|
651
|
+
].map((e) => /* @__PURE__ */ E("div", { className: t("h-2.5 flex-1 rounded-full", e === "Conservative" && "bg-status-success-bg-subtle/30", e === "Moderate" && "bg-status-warning-bg-subtle/30", e === "Aggressive" && "bg-status-error-bg-subtle/30", e === z.riskProfile && e === "Conservative" && "bg-status-success-bg-subtle", e === z.riskProfile && e === "Moderate" && "bg-status-warning-bg-subtle", e === z.riskProfile && e === "Aggressive" && "bg-status-error-bg-subtle") }, e))
|
|
647
652
|
})]
|
|
648
653
|
})
|
|
649
654
|
]
|
|
650
655
|
})] }),
|
|
651
|
-
|
|
652
|
-
/* @__PURE__ */
|
|
656
|
+
A === "portfolio" && /* @__PURE__ */ D("div", { children: [
|
|
657
|
+
/* @__PURE__ */ E("h2", {
|
|
653
658
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
654
659
|
children: "Investment Portfolio"
|
|
655
660
|
}),
|
|
656
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ D("div", {
|
|
657
662
|
className: "mb-8 grid grid-cols-2 gap-4 sm:grid-cols-4 sm:gap-6",
|
|
658
663
|
children: [
|
|
659
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ D("div", {
|
|
660
665
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
661
666
|
children: [
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ E(u, { className: "mb-2 h-7 w-7 text-primary sm:h-8 sm:w-8" }),
|
|
668
|
+
/* @__PURE__ */ E("div", {
|
|
664
669
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
665
|
-
children:
|
|
670
|
+
children: i(z.totalInvested ?? 0, {
|
|
666
671
|
minimumFractionDigits: 0,
|
|
667
672
|
notation: "compact"
|
|
668
673
|
})
|
|
669
674
|
}),
|
|
670
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ E("div", {
|
|
671
676
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
672
677
|
children: "Total Invested"
|
|
673
678
|
})
|
|
674
679
|
]
|
|
675
680
|
}),
|
|
676
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ D("div", {
|
|
677
682
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
678
683
|
children: [
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ E(ne, { className: "mb-2 h-7 w-7 text-accent-blue sm:h-8 sm:w-8" }),
|
|
685
|
+
/* @__PURE__ */ E("div", {
|
|
681
686
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
682
|
-
children:
|
|
687
|
+
children: z.activeInvestments
|
|
683
688
|
}),
|
|
684
|
-
/* @__PURE__ */
|
|
689
|
+
/* @__PURE__ */ E("div", {
|
|
685
690
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
686
691
|
children: "Active Investments"
|
|
687
692
|
})
|
|
688
693
|
]
|
|
689
694
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
695
|
+
/* @__PURE__ */ D("div", {
|
|
691
696
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
692
697
|
children: [
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ E(S, { className: "mb-2 h-7 w-7 text-status-success-text sm:h-8 sm:w-8" }),
|
|
699
|
+
/* @__PURE__ */ E("div", {
|
|
695
700
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
696
|
-
children:
|
|
701
|
+
children: i(z.totalReturns ?? 0, {
|
|
697
702
|
minimumFractionDigits: 0,
|
|
698
703
|
notation: "compact"
|
|
699
704
|
})
|
|
700
705
|
}),
|
|
701
|
-
/* @__PURE__ */
|
|
706
|
+
/* @__PURE__ */ E("div", {
|
|
702
707
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
703
708
|
children: "Total Returns"
|
|
704
709
|
})
|
|
705
710
|
]
|
|
706
711
|
}),
|
|
707
|
-
/* @__PURE__ */
|
|
712
|
+
/* @__PURE__ */ D("div", {
|
|
708
713
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
709
714
|
children: [
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ E(v, { className: "mb-2 h-7 w-7 text-accent-purple sm:h-8 sm:w-8" }),
|
|
716
|
+
/* @__PURE__ */ E("div", {
|
|
712
717
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
713
|
-
children:
|
|
718
|
+
children: i(z.portfolioValue ?? 0, {
|
|
714
719
|
minimumFractionDigits: 0,
|
|
715
720
|
notation: "compact"
|
|
716
721
|
})
|
|
717
722
|
}),
|
|
718
|
-
/* @__PURE__ */
|
|
723
|
+
/* @__PURE__ */ E("div", {
|
|
719
724
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
720
725
|
children: "Portfolio Value"
|
|
721
726
|
})
|
|
@@ -723,94 +728,94 @@ function A() {
|
|
|
723
728
|
})
|
|
724
729
|
]
|
|
725
730
|
}),
|
|
726
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h3", {
|
|
727
732
|
className: "mb-4 text-base font-semibold text-text-primary",
|
|
728
733
|
children: "Active Investments"
|
|
729
|
-
}), /* @__PURE__ */
|
|
734
|
+
}), /* @__PURE__ */ E("div", {
|
|
730
735
|
className: "space-y-3",
|
|
731
|
-
children:
|
|
736
|
+
children: te.map((e, n) => /* @__PURE__ */ D("div", {
|
|
732
737
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
733
|
-
children: [/* @__PURE__ */
|
|
738
|
+
children: [/* @__PURE__ */ D("div", {
|
|
734
739
|
className: "mb-3 flex items-start justify-between",
|
|
735
|
-
children: [/* @__PURE__ */
|
|
740
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
736
741
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
737
742
|
children: e.cartName
|
|
738
|
-
}), /* @__PURE__ */
|
|
739
|
-
className: t("text-sm font-semibold", e.returns > 0 ? "text-
|
|
743
|
+
}), /* @__PURE__ */ D("span", {
|
|
744
|
+
className: t("text-sm font-semibold", e.returns > 0 ? "text-status-success-text" : "text-status-error-text"),
|
|
740
745
|
children: [
|
|
741
746
|
e.returns > 0 ? "+" : "",
|
|
742
747
|
e.returns,
|
|
743
748
|
"%"
|
|
744
749
|
]
|
|
745
750
|
})]
|
|
746
|
-
}), /* @__PURE__ */
|
|
751
|
+
}), /* @__PURE__ */ D("div", {
|
|
747
752
|
className: "grid grid-cols-1 gap-3 text-sm sm:grid-cols-3",
|
|
748
753
|
children: [
|
|
749
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
750
755
|
className: "text-text-secondary",
|
|
751
756
|
children: "Invested: "
|
|
752
|
-
}), /* @__PURE__ */
|
|
757
|
+
}), /* @__PURE__ */ E("span", {
|
|
753
758
|
className: "font-medium text-text-primary",
|
|
754
|
-
children:
|
|
759
|
+
children: i(e.investedAmount, { minimumFractionDigits: 0 })
|
|
755
760
|
})] }),
|
|
756
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
757
762
|
className: "text-text-secondary",
|
|
758
763
|
children: "Current Value: "
|
|
759
|
-
}), /* @__PURE__ */
|
|
764
|
+
}), /* @__PURE__ */ E("span", {
|
|
760
765
|
className: "font-medium text-text-primary",
|
|
761
|
-
children:
|
|
766
|
+
children: i(e.currentValue, { minimumFractionDigits: 0 })
|
|
762
767
|
})] }),
|
|
763
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
764
769
|
className: "text-text-secondary",
|
|
765
770
|
children: "Returns: "
|
|
766
|
-
}), /* @__PURE__ */
|
|
767
|
-
className: "font-medium text-
|
|
768
|
-
children:
|
|
771
|
+
}), /* @__PURE__ */ E("span", {
|
|
772
|
+
className: "font-medium text-status-success-text",
|
|
773
|
+
children: i(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
|
|
769
774
|
})] })
|
|
770
775
|
]
|
|
771
776
|
})]
|
|
772
777
|
}, n))
|
|
773
778
|
})] })
|
|
774
779
|
] }),
|
|
775
|
-
|
|
780
|
+
A === "documents" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
776
781
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
777
782
|
children: "Documents & KYC"
|
|
778
|
-
}), /* @__PURE__ */
|
|
783
|
+
}), /* @__PURE__ */ D("div", {
|
|
779
784
|
className: "space-y-6",
|
|
780
785
|
children: [
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
className: "flex items-center gap-2 rounded-lg bg-
|
|
783
|
-
children: [/* @__PURE__ */
|
|
784
|
-
className: "text-sm font-medium text-
|
|
786
|
+
/* @__PURE__ */ D("div", {
|
|
787
|
+
className: "flex items-center gap-2 rounded-lg bg-status-success-bg-subtle/10 px-4 py-3",
|
|
788
|
+
children: [/* @__PURE__ */ E(l, { className: "h-5 w-5 text-status-success-text" }), /* @__PURE__ */ E("p", {
|
|
789
|
+
className: "text-sm font-medium text-status-success-text",
|
|
785
790
|
children: "Your KYC is complete and verified"
|
|
786
791
|
})]
|
|
787
792
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ E("div", {
|
|
789
794
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
790
|
-
children:
|
|
791
|
-
className: "rounded-lg border border-border-
|
|
795
|
+
children: de.map((e) => /* @__PURE__ */ D("div", {
|
|
796
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
792
797
|
children: [
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
798
|
+
/* @__PURE__ */ E(m, { className: "mb-3 h-8 w-8 text-primary" }),
|
|
799
|
+
/* @__PURE__ */ E("h3", {
|
|
795
800
|
className: "text-base font-semibold text-text-primary",
|
|
796
801
|
children: e.name
|
|
797
802
|
}),
|
|
798
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ E("p", {
|
|
799
804
|
className: "mt-1 text-sm text-text-secondary",
|
|
800
805
|
children: e.status === "verified" ? `Verified on ${e.verifiedOn}` : e.status === "uploaded" ? `Uploaded on ${e.verifiedOn}` : "Template available"
|
|
801
806
|
}),
|
|
802
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ D("div", {
|
|
803
808
|
className: "mt-3 flex items-center gap-2",
|
|
804
809
|
children: [
|
|
805
|
-
e.status === "verified" && /* @__PURE__ */
|
|
806
|
-
className: "flex items-center gap-1 rounded-full bg-
|
|
807
|
-
children: [/* @__PURE__ */
|
|
810
|
+
e.status === "verified" && /* @__PURE__ */ D("span", {
|
|
811
|
+
className: "flex items-center gap-1 rounded-full bg-status-success-bg-subtle/20 px-2 py-0.5 text-xs font-medium text-status-success-text",
|
|
812
|
+
children: [/* @__PURE__ */ E(l, { className: "h-3 w-3" }), "Verified"]
|
|
808
813
|
}),
|
|
809
|
-
e.status === "uploaded" && /* @__PURE__ */
|
|
810
|
-
className: "flex items-center gap-1 rounded-full bg-blue-
|
|
811
|
-
children: [/* @__PURE__ */
|
|
814
|
+
e.status === "uploaded" && /* @__PURE__ */ D("span", {
|
|
815
|
+
className: "flex items-center gap-1 rounded-full bg-accent-blue-subtle/20 px-2 py-0.5 text-xs font-medium text-accent-blue",
|
|
816
|
+
children: [/* @__PURE__ */ E(m, { className: "h-3 w-3" }), "Uploaded"]
|
|
812
817
|
}),
|
|
813
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ E("button", {
|
|
814
819
|
type: "button",
|
|
815
820
|
onClick: () => alert(e.status === "template" ? `Downloading ${e.name} template...` : `Viewing ${e.name}...`),
|
|
816
821
|
className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
@@ -821,21 +826,21 @@ function A() {
|
|
|
821
826
|
]
|
|
822
827
|
}, e.name))
|
|
823
828
|
}),
|
|
824
|
-
|
|
829
|
+
M && /* @__PURE__ */ D("div", {
|
|
825
830
|
className: "rounded-lg border-2 border-dashed border-border-subtle p-6 text-center",
|
|
826
831
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ E(m, { className: "mx-auto mb-2 h-8 w-8 text-text-secondary" }),
|
|
833
|
+
/* @__PURE__ */ E("p", {
|
|
829
834
|
className: "text-sm font-medium text-text-primary",
|
|
830
835
|
children: "Upload New Document"
|
|
831
836
|
}),
|
|
832
|
-
/* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ E("p", {
|
|
833
838
|
className: "mt-1 text-xs text-text-secondary",
|
|
834
839
|
children: "PDF, JPG, or PNG up to 10MB"
|
|
835
840
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ D("label", {
|
|
837
842
|
className: "mt-3 inline-block cursor-pointer 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",
|
|
838
|
-
children: ["Choose File", /* @__PURE__ */
|
|
843
|
+
children: ["Choose File", /* @__PURE__ */ E("input", {
|
|
839
844
|
type: "file",
|
|
840
845
|
accept: ".pdf,.jpg,.png",
|
|
841
846
|
className: "hidden"
|
|
@@ -845,161 +850,161 @@ function A() {
|
|
|
845
850
|
})
|
|
846
851
|
]
|
|
847
852
|
})] }),
|
|
848
|
-
|
|
853
|
+
A === "security" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
849
854
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
850
855
|
children: "Security Settings"
|
|
851
|
-
}), /* @__PURE__ */
|
|
856
|
+
}), /* @__PURE__ */ D("div", {
|
|
852
857
|
className: "space-y-6",
|
|
853
858
|
children: [
|
|
854
|
-
/* @__PURE__ */
|
|
859
|
+
/* @__PURE__ */ D("div", {
|
|
855
860
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
856
861
|
children: [
|
|
857
|
-
/* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ D("div", {
|
|
858
863
|
className: "flex items-center gap-3 mb-3",
|
|
859
|
-
children: [/* @__PURE__ */
|
|
864
|
+
children: [/* @__PURE__ */ E(oe, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
860
865
|
className: "text-base font-semibold text-text-primary",
|
|
861
866
|
children: "Change Password"
|
|
862
867
|
})]
|
|
863
868
|
}),
|
|
864
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ E("p", {
|
|
865
870
|
className: "mb-4 text-sm text-text-secondary",
|
|
866
871
|
children: "Update your password regularly to keep your account secure"
|
|
867
872
|
}),
|
|
868
|
-
|
|
873
|
+
he ? /* @__PURE__ */ D("div", {
|
|
869
874
|
className: "space-y-4",
|
|
870
875
|
children: [
|
|
871
|
-
/* @__PURE__ */
|
|
876
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
872
877
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
873
878
|
children: "Current Password"
|
|
874
|
-
}), /* @__PURE__ */
|
|
879
|
+
}), /* @__PURE__ */ D("div", {
|
|
875
880
|
className: "relative",
|
|
876
|
-
children: [/* @__PURE__ */
|
|
877
|
-
type:
|
|
878
|
-
value:
|
|
879
|
-
onChange: (e) =>
|
|
881
|
+
children: [/* @__PURE__ */ E("input", {
|
|
882
|
+
type: Y ? "text" : "password",
|
|
883
|
+
value: U,
|
|
884
|
+
onChange: (e) => W(e.target.value),
|
|
880
885
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 pr-10 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
881
|
-
}), /* @__PURE__ */
|
|
886
|
+
}), /* @__PURE__ */ E("button", {
|
|
882
887
|
type: "button",
|
|
883
|
-
onClick: () =>
|
|
888
|
+
onClick: () => ge(!Y),
|
|
884
889
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
885
|
-
children:
|
|
890
|
+
children: E(Y ? p : f, { className: "h-4 w-4" })
|
|
886
891
|
})]
|
|
887
892
|
})] }),
|
|
888
|
-
/* @__PURE__ */
|
|
893
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
889
894
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
890
895
|
children: "New Password"
|
|
891
|
-
}), /* @__PURE__ */
|
|
896
|
+
}), /* @__PURE__ */ D("div", {
|
|
892
897
|
className: "relative",
|
|
893
|
-
children: [/* @__PURE__ */
|
|
894
|
-
type:
|
|
895
|
-
value:
|
|
896
|
-
onChange: (e) =>
|
|
898
|
+
children: [/* @__PURE__ */ E("input", {
|
|
899
|
+
type: X ? "text" : "password",
|
|
900
|
+
value: G,
|
|
901
|
+
onChange: (e) => K(e.target.value),
|
|
897
902
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 pr-10 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
898
|
-
}), /* @__PURE__ */
|
|
903
|
+
}), /* @__PURE__ */ E("button", {
|
|
899
904
|
type: "button",
|
|
900
|
-
onClick: () =>
|
|
905
|
+
onClick: () => _e(!X),
|
|
901
906
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
902
|
-
children:
|
|
907
|
+
children: E(X ? p : f, { className: "h-4 w-4" })
|
|
903
908
|
})]
|
|
904
909
|
})] }),
|
|
905
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
906
911
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
907
912
|
children: "Confirm New Password"
|
|
908
|
-
}), /* @__PURE__ */
|
|
913
|
+
}), /* @__PURE__ */ E("input", {
|
|
909
914
|
type: "password",
|
|
910
|
-
value:
|
|
911
|
-
onChange: (e) =>
|
|
915
|
+
value: q,
|
|
916
|
+
onChange: (e) => J(e.target.value),
|
|
912
917
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
913
918
|
})] }),
|
|
914
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ D("div", {
|
|
915
920
|
className: "flex gap-3",
|
|
916
|
-
children: [/* @__PURE__ */
|
|
921
|
+
children: [/* @__PURE__ */ E("button", {
|
|
917
922
|
type: "button",
|
|
918
|
-
onClick:
|
|
923
|
+
onClick: xe,
|
|
919
924
|
className: "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",
|
|
920
925
|
children: "Update Password"
|
|
921
|
-
}), /* @__PURE__ */
|
|
926
|
+
}), /* @__PURE__ */ E("button", {
|
|
922
927
|
type: "button",
|
|
923
928
|
onClick: () => {
|
|
924
|
-
|
|
929
|
+
H(!1), W(""), K(""), J("");
|
|
925
930
|
},
|
|
926
931
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
927
932
|
children: "Cancel"
|
|
928
933
|
})]
|
|
929
934
|
})
|
|
930
935
|
]
|
|
931
|
-
}) : /* @__PURE__ */
|
|
936
|
+
}) : /* @__PURE__ */ E("button", {
|
|
932
937
|
type: "button",
|
|
933
|
-
onClick: () =>
|
|
938
|
+
onClick: () => H(!0),
|
|
934
939
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
935
940
|
children: "Change Password"
|
|
936
941
|
})
|
|
937
942
|
]
|
|
938
943
|
}),
|
|
939
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ D("div", {
|
|
940
945
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
941
946
|
children: [
|
|
942
|
-
/* @__PURE__ */
|
|
947
|
+
/* @__PURE__ */ D("div", {
|
|
943
948
|
className: "flex items-center gap-3 mb-3",
|
|
944
|
-
children: [/* @__PURE__ */
|
|
949
|
+
children: [/* @__PURE__ */ E(x, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
945
950
|
className: "text-base font-semibold text-text-primary",
|
|
946
951
|
children: "Two-Factor Authentication"
|
|
947
952
|
})]
|
|
948
953
|
}),
|
|
949
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ E("p", {
|
|
950
955
|
className: "mb-4 text-sm text-text-secondary",
|
|
951
956
|
children: "Add an extra layer of security to your investment account"
|
|
952
957
|
}),
|
|
953
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ D("div", {
|
|
954
959
|
className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 p-3",
|
|
955
|
-
children: [/* @__PURE__ */
|
|
960
|
+
children: [/* @__PURE__ */ E("div", {
|
|
956
961
|
className: "flex items-center gap-2",
|
|
957
|
-
children: /* @__PURE__ */
|
|
958
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
959
|
-
children:
|
|
962
|
+
children: /* @__PURE__ */ E("span", {
|
|
963
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", Z ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-bg-sunken text-text-secondary"),
|
|
964
|
+
children: Z ? "Enabled" : "Disabled"
|
|
960
965
|
})
|
|
961
|
-
}), /* @__PURE__ */
|
|
966
|
+
}), /* @__PURE__ */ E("button", {
|
|
962
967
|
type: "button",
|
|
963
|
-
onClick:
|
|
964
|
-
className: t("rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
965
|
-
children:
|
|
968
|
+
onClick: Se,
|
|
969
|
+
className: t("rounded-lg px-4 py-2 text-sm font-medium transition-colors", Z ? "border border-border-subtle text-text-primary hover:bg-accent" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
970
|
+
children: Z ? "Disable 2FA" : "Enable 2FA"
|
|
966
971
|
})]
|
|
967
972
|
})
|
|
968
973
|
]
|
|
969
974
|
}),
|
|
970
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ D("div", {
|
|
971
976
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
972
|
-
children: [/* @__PURE__ */
|
|
977
|
+
children: [/* @__PURE__ */ D("div", {
|
|
973
978
|
className: "flex items-center gap-3 mb-4",
|
|
974
|
-
children: [/* @__PURE__ */
|
|
979
|
+
children: [/* @__PURE__ */ E(g, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
975
980
|
className: "text-base font-semibold text-text-primary",
|
|
976
981
|
children: "Login Activity"
|
|
977
982
|
})]
|
|
978
|
-
}), /* @__PURE__ */
|
|
983
|
+
}), /* @__PURE__ */ E("div", {
|
|
979
984
|
className: "space-y-3",
|
|
980
|
-
children:
|
|
985
|
+
children: fe.map((e, t) => /* @__PURE__ */ D("div", {
|
|
981
986
|
className: "flex items-center justify-between rounded-lg bg-bg-sunken/30 p-3",
|
|
982
|
-
children: [/* @__PURE__ */
|
|
987
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
983
988
|
className: "flex items-center gap-2",
|
|
984
|
-
children: [/* @__PURE__ */
|
|
989
|
+
children: [/* @__PURE__ */ E("p", {
|
|
985
990
|
className: "text-sm font-medium text-text-primary",
|
|
986
991
|
children: e.device
|
|
987
|
-
}), e.current && /* @__PURE__ */
|
|
988
|
-
className: "rounded-full bg-
|
|
992
|
+
}), e.current && /* @__PURE__ */ E("span", {
|
|
993
|
+
className: "rounded-full bg-status-success-bg-subtle/20 px-2 py-0.5 text-xs font-medium text-status-success-text",
|
|
989
994
|
children: "Current"
|
|
990
995
|
})]
|
|
991
|
-
}), /* @__PURE__ */
|
|
996
|
+
}), /* @__PURE__ */ D("div", {
|
|
992
997
|
className: "mt-1 flex items-center gap-2 text-xs text-text-secondary",
|
|
993
998
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ E(ce, { className: "h-3 w-3" }),
|
|
1000
|
+
/* @__PURE__ */ E("span", { children: e.location }),
|
|
1001
|
+
/* @__PURE__ */ E("span", { children: "•" }),
|
|
1002
|
+
/* @__PURE__ */ E("span", { children: ee(e.date, {
|
|
998
1003
|
hour: "numeric",
|
|
999
1004
|
minute: "2-digit"
|
|
1000
1005
|
}) })
|
|
1001
1006
|
]
|
|
1002
|
-
})] }), !e.current && /* @__PURE__ */
|
|
1007
|
+
})] }), !e.current && /* @__PURE__ */ E("button", {
|
|
1003
1008
|
type: "button",
|
|
1004
1009
|
onClick: () => alert("Session revoked"),
|
|
1005
1010
|
className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
@@ -1010,42 +1015,42 @@ function A() {
|
|
|
1010
1015
|
})
|
|
1011
1016
|
]
|
|
1012
1017
|
})] }),
|
|
1013
|
-
|
|
1018
|
+
A === "notifications" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
1014
1019
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
1015
1020
|
children: "Notification Preferences"
|
|
1016
|
-
}), /* @__PURE__ */
|
|
1021
|
+
}), /* @__PURE__ */ D("div", {
|
|
1017
1022
|
className: "space-y-4",
|
|
1018
|
-
children: [
|
|
1023
|
+
children: [V.map((e) => /* @__PURE__ */ D("div", {
|
|
1019
1024
|
className: "flex items-center justify-between rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
1020
|
-
children: [/* @__PURE__ */
|
|
1025
|
+
children: [/* @__PURE__ */ D("div", {
|
|
1021
1026
|
className: "flex-1 pr-4",
|
|
1022
|
-
children: [/* @__PURE__ */
|
|
1027
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
1023
1028
|
className: "text-sm font-medium text-text-primary",
|
|
1024
1029
|
children: e.label
|
|
1025
|
-
}), /* @__PURE__ */
|
|
1030
|
+
}), /* @__PURE__ */ E("p", {
|
|
1026
1031
|
className: "mt-0.5 text-xs text-text-secondary sm:text-sm",
|
|
1027
1032
|
children: e.description
|
|
1028
1033
|
})]
|
|
1029
|
-
}), /* @__PURE__ */
|
|
1034
|
+
}), /* @__PURE__ */ E("button", {
|
|
1030
1035
|
type: "button",
|
|
1031
1036
|
onClick: () => {
|
|
1032
|
-
|
|
1037
|
+
M && be(e.id);
|
|
1033
1038
|
},
|
|
1034
|
-
disabled: !
|
|
1035
|
-
className: t("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full transition-colors duration-200", e.enabled ? "bg-action-primary-bg" : "bg-bg-sunken", !
|
|
1036
|
-
children: /* @__PURE__ */
|
|
1039
|
+
disabled: !M,
|
|
1040
|
+
className: t("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full transition-colors duration-200", e.enabled ? "bg-action-primary-bg" : "bg-bg-sunken", !M && "cursor-not-allowed opacity-60"),
|
|
1041
|
+
children: /* @__PURE__ */ E("span", { className: t("pointer-events-none inline-block h-5 w-5 translate-y-0.5 rounded-full bg-white shadow ring-0 transition-transform duration-200", e.enabled ? "translate-x-5" : "translate-x-0.5") })
|
|
1037
1042
|
})]
|
|
1038
|
-
}, e.id)), /* @__PURE__ */
|
|
1043
|
+
}, e.id)), /* @__PURE__ */ E("div", {
|
|
1039
1044
|
className: "mt-4 rounded-lg border border-border-subtle bg-bg-sunken/50 p-4",
|
|
1040
|
-
children: /* @__PURE__ */
|
|
1045
|
+
children: /* @__PURE__ */ D("p", {
|
|
1041
1046
|
className: "text-sm text-text-secondary",
|
|
1042
1047
|
children: [
|
|
1043
|
-
|
|
1048
|
+
V.filter((e) => e.enabled).length,
|
|
1044
1049
|
" of ",
|
|
1045
|
-
|
|
1050
|
+
V.length,
|
|
1046
1051
|
" ",
|
|
1047
1052
|
"notification types enabled.",
|
|
1048
|
-
!
|
|
1053
|
+
!M && /* @__PURE__ */ E("span", {
|
|
1049
1054
|
className: "ml-1",
|
|
1050
1055
|
children: "Click \"Edit Profile\" to modify preferences."
|
|
1051
1056
|
})
|
|
@@ -1056,10 +1061,10 @@ function A() {
|
|
|
1056
1061
|
]
|
|
1057
1062
|
})
|
|
1058
1063
|
})]
|
|
1059
|
-
})
|
|
1064
|
+
})]
|
|
1060
1065
|
});
|
|
1061
1066
|
}
|
|
1062
1067
|
//#endregion
|
|
1063
|
-
export {
|
|
1068
|
+
export { k as InvestorProfilePage };
|
|
1064
1069
|
|
|
1065
1070
|
//# sourceMappingURL=InvestorProfilePage.js.map
|