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