@burdenoff/microfe-kadaikodi 2026.704.1 → 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 +77 -26
- package/dist/kadaikodi/hooks/useKadaikodiApi.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.map +1 -1
- 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 +323 -422
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +374 -383
- 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 +1 -1
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +1 -1
- 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.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.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
- 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.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 +232 -343
- 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 +127 -294
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +204 -290
- 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 +399 -487
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +13 -13
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js +192 -296
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +245 -397
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +85 -117
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +177 -395
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,27 +2,27 @@ 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
4
|
import { useInvestments as ee } from "../../hooks/useKadaikodiApi.js";
|
|
5
|
-
import { formatCurrency as r
|
|
5
|
+
import { formatCurrency as r } from "../../utils/formatters.js";
|
|
6
6
|
import { useCallback as i, useMemo as a, useState as o } from "react";
|
|
7
|
-
import { Bell as s, Briefcase as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { EmphasisPanel as
|
|
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";
|
|
10
10
|
//#region src/kadaikodi/pages/investor/InvestorProfilePage.tsx
|
|
11
|
-
var
|
|
11
|
+
var E = [
|
|
12
12
|
{
|
|
13
13
|
id: "personal",
|
|
14
14
|
label: "Personal Info",
|
|
15
|
-
Icon:
|
|
15
|
+
Icon: b
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
id: "investment",
|
|
19
19
|
label: "Investment Profile",
|
|
20
|
-
Icon:
|
|
20
|
+
Icon: y
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
id: "portfolio",
|
|
24
24
|
label: "Portfolio",
|
|
25
|
-
Icon:
|
|
25
|
+
Icon: v
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
id: "documents",
|
|
@@ -32,54 +32,14 @@ var D = [
|
|
|
32
32
|
{
|
|
33
33
|
id: "security",
|
|
34
34
|
label: "Security",
|
|
35
|
-
Icon:
|
|
35
|
+
Icon: oe
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
id: "notifications",
|
|
39
39
|
label: "Notifications",
|
|
40
40
|
Icon: s
|
|
41
41
|
}
|
|
42
|
-
],
|
|
43
|
-
{
|
|
44
|
-
name: "PAN Card",
|
|
45
|
-
verifiedOn: "15 Dec 2023",
|
|
46
|
-
status: "verified"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: "Aadhar Card",
|
|
50
|
-
verifiedOn: "15 Dec 2023",
|
|
51
|
-
status: "verified"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "Bank Statement",
|
|
55
|
-
verifiedOn: "20 Dec 2023",
|
|
56
|
-
status: "uploaded"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "Investment Agreement",
|
|
60
|
-
verifiedOn: "",
|
|
61
|
-
status: "template"
|
|
62
|
-
}
|
|
63
|
-
], fe = [
|
|
64
|
-
{
|
|
65
|
-
device: "Chrome on macOS",
|
|
66
|
-
location: "Bangalore, India",
|
|
67
|
-
date: "2024-01-16T08:30:00Z",
|
|
68
|
-
current: !0
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
device: "Safari on iPhone",
|
|
72
|
-
location: "Bangalore, India",
|
|
73
|
-
date: "2024-01-15T19:45:00Z",
|
|
74
|
-
current: !1
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
device: "Chrome on Windows",
|
|
78
|
-
location: "Mumbai, India",
|
|
79
|
-
date: "2024-01-14T10:20:00Z",
|
|
80
|
-
current: !1
|
|
81
|
-
}
|
|
82
|
-
], pe = [
|
|
42
|
+
], le = [
|
|
83
43
|
"Food & Beverage",
|
|
84
44
|
"Quick Commerce",
|
|
85
45
|
"Cloud Kitchen",
|
|
@@ -90,37 +50,33 @@ var D = [
|
|
|
90
50
|
"Logistics",
|
|
91
51
|
"FinTech"
|
|
92
52
|
];
|
|
93
|
-
function
|
|
94
|
-
let { currentUser: s, navigateTo:
|
|
95
|
-
firstName: s?.firstName ?? s?.name?.split(" ")[0] ?? "
|
|
96
|
-
lastName: s?.lastName ?? s?.name?.split(" ")
|
|
97
|
-
email: s?.email ?? "
|
|
98
|
-
phone:
|
|
99
|
-
profileImage: s?.avatar ?? "",
|
|
100
|
-
investorType: "
|
|
101
|
-
investmentRange: "
|
|
102
|
-
preferredSectors: [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
portfolioValue: O.reduce((e, t) => e + t.currentValue, 0),
|
|
121
|
-
totalReturns: O.reduce((e, t) => e + t.returns, 0),
|
|
122
|
-
activeInvestments: O.length
|
|
123
|
-
}), [O]), [V, me] = o([
|
|
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([
|
|
124
80
|
{
|
|
125
81
|
id: "opportunities",
|
|
126
82
|
label: "New Investment Opportunities",
|
|
@@ -157,377 +113,377 @@ function O() {
|
|
|
157
113
|
description: "Notifications when dividends are credited to your account",
|
|
158
114
|
enabled: !0
|
|
159
115
|
}
|
|
160
|
-
]), [
|
|
161
|
-
|
|
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) => ({
|
|
162
118
|
...n,
|
|
163
119
|
[e]: t
|
|
164
120
|
}));
|
|
165
|
-
}, []),
|
|
166
|
-
|
|
167
|
-
|
|
121
|
+
}, []), pe = i(() => {
|
|
122
|
+
N(!0), setTimeout(() => {
|
|
123
|
+
N(!1), j(!1), F("Profile updated successfully!"), setTimeout(() => F(""), 3e3);
|
|
168
124
|
}, 1200);
|
|
169
|
-
}, []),
|
|
125
|
+
}, []), me = i((e) => {
|
|
170
126
|
let t = e.target.files?.[0];
|
|
171
127
|
if (t) {
|
|
172
128
|
let e = new FileReader();
|
|
173
129
|
e.onloadend = () => {
|
|
174
|
-
|
|
130
|
+
R((t) => ({
|
|
175
131
|
...t,
|
|
176
132
|
profileImage: e.result
|
|
177
133
|
}));
|
|
178
134
|
}, e.readAsDataURL(t);
|
|
179
135
|
}
|
|
180
|
-
}, []),
|
|
181
|
-
|
|
136
|
+
}, []), he = i((e) => {
|
|
137
|
+
V((t) => t.map((t) => t.id === e ? {
|
|
182
138
|
...t,
|
|
183
139
|
enabled: !t.enabled
|
|
184
140
|
} : t));
|
|
185
|
-
}, []),
|
|
186
|
-
if (!(!
|
|
187
|
-
if (
|
|
141
|
+
}, []), ge = i(() => {
|
|
142
|
+
if (!(!W || !K || !J)) {
|
|
143
|
+
if (K !== J) {
|
|
188
144
|
alert("Passwords do not match");
|
|
189
145
|
return;
|
|
190
146
|
}
|
|
191
|
-
if (
|
|
147
|
+
if (K.length < 8) {
|
|
192
148
|
alert("Password must be at least 8 characters");
|
|
193
149
|
return;
|
|
194
150
|
}
|
|
195
|
-
alert("Password changed successfully!"),
|
|
151
|
+
alert("Password changed successfully!"), U(!1), G(""), q(""), Y("");
|
|
196
152
|
}
|
|
197
153
|
}, [
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
]),
|
|
202
|
-
|
|
154
|
+
W,
|
|
155
|
+
K,
|
|
156
|
+
J
|
|
157
|
+
]), _e = i(() => {
|
|
158
|
+
fe((e) => {
|
|
203
159
|
let t = !e;
|
|
204
160
|
return alert(t ? "2FA has been enabled" : "2FA has been disabled"), t;
|
|
205
161
|
});
|
|
206
162
|
}, []);
|
|
207
|
-
return /* @__PURE__ */
|
|
163
|
+
return /* @__PURE__ */ C(n, {
|
|
208
164
|
title: "Investor Profile",
|
|
209
165
|
description: "Manage your investment profile and preferences",
|
|
210
|
-
actions: /* @__PURE__ */
|
|
166
|
+
actions: /* @__PURE__ */ C("div", {
|
|
211
167
|
className: "flex items-center gap-2",
|
|
212
|
-
children: [
|
|
168
|
+
children: [P && /* @__PURE__ */ S("span", {
|
|
213
169
|
className: "text-sm font-medium text-status-success-text",
|
|
214
|
-
children:
|
|
215
|
-
}),
|
|
170
|
+
children: P
|
|
171
|
+
}), A ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("button", {
|
|
216
172
|
type: "button",
|
|
217
173
|
onClick: () => {
|
|
218
|
-
|
|
174
|
+
j(!1), R(I);
|
|
219
175
|
},
|
|
220
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",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
222
|
-
}), /* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ S(ce, { className: "h-4 w-4" }), "Cancel"]
|
|
178
|
+
}), /* @__PURE__ */ S("button", {
|
|
223
179
|
type: "button",
|
|
224
|
-
onClick:
|
|
225
|
-
disabled:
|
|
226
|
-
className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
227
|
-
children:
|
|
228
|
-
})] }) : /* @__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", {
|
|
229
185
|
type: "button",
|
|
230
|
-
onClick: () =>
|
|
186
|
+
onClick: () => j(!0),
|
|
231
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",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ S(l, { className: "h-4 w-4" }), "Edit Profile"]
|
|
233
189
|
})]
|
|
234
190
|
}),
|
|
235
|
-
children: [/* @__PURE__ */ T
|
|
191
|
+
children: [/* @__PURE__ */ S(T, {
|
|
236
192
|
className: "mb-6",
|
|
237
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."
|
|
238
|
-
}), /* @__PURE__ */
|
|
194
|
+
}), /* @__PURE__ */ C("div", {
|
|
239
195
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ C("div", {
|
|
241
197
|
className: "lg:col-span-1",
|
|
242
198
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ C(w, {
|
|
244
200
|
className: "p-4 sm:p-6",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ C("div", {
|
|
246
202
|
className: "text-center",
|
|
247
203
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ C("div", {
|
|
249
205
|
className: "relative mx-auto inline-block",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
206
|
+
children: [/* @__PURE__ */ S("div", {
|
|
251
207
|
className: "h-20 w-20 overflow-hidden rounded-full bg-bg-sunken sm:h-24 sm:w-24",
|
|
252
|
-
children:
|
|
253
|
-
src:
|
|
208
|
+
children: L.profileImage ? /* @__PURE__ */ S("img", {
|
|
209
|
+
src: L.profileImage,
|
|
254
210
|
alt: "Profile",
|
|
255
211
|
className: "h-full w-full object-cover"
|
|
256
|
-
}) : /* @__PURE__ */
|
|
212
|
+
}) : /* @__PURE__ */ S("div", {
|
|
257
213
|
className: "flex h-full w-full items-center justify-center",
|
|
258
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ S(b, { className: "h-10 w-10 text-text-secondary" })
|
|
259
215
|
})
|
|
260
|
-
}),
|
|
216
|
+
}), A && /* @__PURE__ */ C("label", {
|
|
261
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",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
218
|
+
children: [/* @__PURE__ */ S(ne, { className: "h-4 w-4" }), /* @__PURE__ */ S("input", {
|
|
263
219
|
type: "file",
|
|
264
220
|
accept: "image/*",
|
|
265
|
-
onChange:
|
|
221
|
+
onChange: me,
|
|
266
222
|
className: "hidden"
|
|
267
223
|
})]
|
|
268
224
|
})]
|
|
269
225
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ C("h3", {
|
|
271
227
|
className: "mt-3 text-base font-semibold text-text-primary sm:text-lg",
|
|
272
228
|
children: [
|
|
273
|
-
|
|
229
|
+
L.firstName,
|
|
274
230
|
" ",
|
|
275
|
-
|
|
231
|
+
L.lastName
|
|
276
232
|
]
|
|
277
233
|
}),
|
|
278
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ S("p", {
|
|
279
235
|
className: "text-sm text-text-secondary",
|
|
280
|
-
children:
|
|
236
|
+
children: L.investorType
|
|
281
237
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ S("p", {
|
|
283
239
|
className: "mt-1 truncate text-xs text-text-secondary",
|
|
284
|
-
children:
|
|
240
|
+
children: L.companyName
|
|
285
241
|
})
|
|
286
242
|
]
|
|
287
|
-
}), /* @__PURE__ */
|
|
243
|
+
}), /* @__PURE__ */ C("div", {
|
|
288
244
|
className: "mt-5 space-y-3 border-t border-border-subtle pt-4",
|
|
289
245
|
children: [
|
|
290
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ C("div", {
|
|
291
247
|
className: "flex items-center justify-between",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ S("span", {
|
|
293
249
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
294
250
|
children: "Portfolio Value"
|
|
295
|
-
}), /* @__PURE__ */
|
|
251
|
+
}), /* @__PURE__ */ S("span", {
|
|
296
252
|
className: "text-xs font-semibold text-primary sm:text-sm",
|
|
297
|
-
children: r(
|
|
253
|
+
children: r(z.portfolioValue, { minimumFractionDigits: 0 })
|
|
298
254
|
})]
|
|
299
255
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ C("div", {
|
|
301
257
|
className: "flex items-center justify-between",
|
|
302
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ S("span", {
|
|
303
259
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
304
260
|
children: "Active Investments"
|
|
305
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ S("span", {
|
|
306
262
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
307
|
-
children:
|
|
263
|
+
children: z.activeInvestments
|
|
308
264
|
})]
|
|
309
265
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ C("div", {
|
|
311
267
|
className: "flex items-center justify-between",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ S("span", {
|
|
313
269
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
314
270
|
children: "Total Returns"
|
|
315
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ C("span", {
|
|
316
272
|
className: "text-xs font-semibold text-status-success-text sm:text-sm",
|
|
317
|
-
children: ["+", r(
|
|
273
|
+
children: ["+", r(z.totalReturns, { minimumFractionDigits: 0 })]
|
|
318
274
|
})]
|
|
319
275
|
}),
|
|
320
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ C("div", {
|
|
321
277
|
className: "flex items-center justify-between",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ S("span", {
|
|
323
279
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
324
280
|
children: "Total Invested"
|
|
325
|
-
}), /* @__PURE__ */
|
|
281
|
+
}), /* @__PURE__ */ S("span", {
|
|
326
282
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
327
|
-
children: r(
|
|
283
|
+
children: r(z.totalInvested, { minimumFractionDigits: 0 })
|
|
328
284
|
})]
|
|
329
285
|
})
|
|
330
286
|
]
|
|
331
287
|
})]
|
|
332
288
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ S("div", {
|
|
334
290
|
className: "mt-4 flex gap-2 overflow-x-auto pb-2 lg:hidden",
|
|
335
|
-
children:
|
|
291
|
+
children: E.map((e) => /* @__PURE__ */ C("button", {
|
|
336
292
|
type: "button",
|
|
337
|
-
onClick: () =>
|
|
338
|
-
className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
339
|
-
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]
|
|
340
296
|
}, e.id))
|
|
341
297
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ S("div", {
|
|
343
299
|
className: "mt-4 hidden space-y-2 lg:block",
|
|
344
|
-
children:
|
|
300
|
+
children: E.map((e) => /* @__PURE__ */ C("button", {
|
|
345
301
|
type: "button",
|
|
346
|
-
onClick: () =>
|
|
347
|
-
className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors",
|
|
348
|
-
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]
|
|
349
305
|
}, e.id))
|
|
350
306
|
})
|
|
351
307
|
]
|
|
352
|
-
}), /* @__PURE__ */
|
|
308
|
+
}), /* @__PURE__ */ S("div", {
|
|
353
309
|
className: "lg:col-span-3",
|
|
354
|
-
children: /* @__PURE__ */
|
|
310
|
+
children: /* @__PURE__ */ C("div", {
|
|
355
311
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6 lg:p-8",
|
|
356
312
|
children: [
|
|
357
|
-
|
|
313
|
+
O === "personal" && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h2", {
|
|
358
314
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
359
315
|
children: "Personal Information"
|
|
360
|
-
}), /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ C("div", {
|
|
361
317
|
className: "space-y-6",
|
|
362
318
|
children: [
|
|
363
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ C("div", {
|
|
364
320
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
365
321
|
children: [
|
|
366
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
367
323
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
368
324
|
children: "First Name"
|
|
369
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ S("input", {
|
|
370
326
|
type: "text",
|
|
371
|
-
value:
|
|
327
|
+
value: L.firstName,
|
|
372
328
|
onChange: (e) => $("firstName", e.target.value),
|
|
373
|
-
disabled: !
|
|
329
|
+
disabled: !A,
|
|
374
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)]"
|
|
375
331
|
})] }),
|
|
376
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
377
333
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
378
334
|
children: "Last Name"
|
|
379
|
-
}), /* @__PURE__ */
|
|
335
|
+
}), /* @__PURE__ */ S("input", {
|
|
380
336
|
type: "text",
|
|
381
|
-
value:
|
|
337
|
+
value: L.lastName,
|
|
382
338
|
onChange: (e) => $("lastName", e.target.value),
|
|
383
|
-
disabled: !
|
|
339
|
+
disabled: !A,
|
|
384
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)]"
|
|
385
341
|
})] }),
|
|
386
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
387
343
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
388
344
|
children: "Email Address"
|
|
389
|
-
}), /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ C("div", {
|
|
390
346
|
className: "relative",
|
|
391
|
-
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", {
|
|
392
348
|
type: "email",
|
|
393
|
-
value:
|
|
349
|
+
value: L.email,
|
|
394
350
|
onChange: (e) => $("email", e.target.value),
|
|
395
|
-
disabled: !
|
|
351
|
+
disabled: !A,
|
|
396
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)]"
|
|
397
353
|
})]
|
|
398
354
|
})] }),
|
|
399
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
400
356
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
401
357
|
children: "Phone Number"
|
|
402
|
-
}), /* @__PURE__ */
|
|
358
|
+
}), /* @__PURE__ */ C("div", {
|
|
403
359
|
className: "relative",
|
|
404
|
-
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", {
|
|
405
361
|
type: "tel",
|
|
406
|
-
value:
|
|
362
|
+
value: L.phone,
|
|
407
363
|
onChange: (e) => $("phone", e.target.value),
|
|
408
|
-
disabled: !
|
|
364
|
+
disabled: !A,
|
|
409
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)]"
|
|
410
366
|
})]
|
|
411
367
|
})] })
|
|
412
368
|
]
|
|
413
369
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ C("div", {
|
|
415
371
|
className: "border-t border-border-subtle pt-6",
|
|
416
|
-
children: [/* @__PURE__ */
|
|
372
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
417
373
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
418
374
|
children: "Professional Details"
|
|
419
|
-
}), /* @__PURE__ */
|
|
375
|
+
}), /* @__PURE__ */ C("div", {
|
|
420
376
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
421
377
|
children: [
|
|
422
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
423
379
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
424
380
|
children: "Company/Organization"
|
|
425
|
-
}), /* @__PURE__ */
|
|
381
|
+
}), /* @__PURE__ */ C("div", {
|
|
426
382
|
className: "relative",
|
|
427
|
-
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", {
|
|
428
384
|
type: "text",
|
|
429
|
-
value:
|
|
385
|
+
value: L.companyName,
|
|
430
386
|
onChange: (e) => $("companyName", e.target.value),
|
|
431
|
-
disabled: !
|
|
387
|
+
disabled: !A,
|
|
432
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)]"
|
|
433
389
|
})]
|
|
434
390
|
})] }),
|
|
435
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
436
392
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
437
393
|
children: "Designation"
|
|
438
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ S("input", {
|
|
439
395
|
type: "text",
|
|
440
|
-
value:
|
|
396
|
+
value: L.designation,
|
|
441
397
|
onChange: (e) => $("designation", e.target.value),
|
|
442
|
-
disabled: !
|
|
398
|
+
disabled: !A,
|
|
443
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)]"
|
|
444
400
|
})] }),
|
|
445
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
446
402
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
447
403
|
children: "Company Website"
|
|
448
|
-
}), /* @__PURE__ */
|
|
404
|
+
}), /* @__PURE__ */ C("div", {
|
|
449
405
|
className: "relative",
|
|
450
|
-
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", {
|
|
451
407
|
type: "text",
|
|
452
|
-
value:
|
|
408
|
+
value: L.companyWebsite,
|
|
453
409
|
onChange: (e) => $("companyWebsite", e.target.value),
|
|
454
|
-
disabled: !
|
|
410
|
+
disabled: !A,
|
|
455
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)]"
|
|
456
412
|
})]
|
|
457
413
|
})] }),
|
|
458
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
459
415
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
460
416
|
children: "LinkedIn Profile"
|
|
461
|
-
}), /* @__PURE__ */
|
|
417
|
+
}), /* @__PURE__ */ C("div", {
|
|
462
418
|
className: "relative",
|
|
463
|
-
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", {
|
|
464
420
|
type: "text",
|
|
465
|
-
value:
|
|
421
|
+
value: L.linkedinProfile,
|
|
466
422
|
onChange: (e) => $("linkedinProfile", e.target.value),
|
|
467
|
-
disabled: !
|
|
423
|
+
disabled: !A,
|
|
468
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)]"
|
|
469
425
|
})]
|
|
470
426
|
})] })
|
|
471
427
|
]
|
|
472
428
|
})]
|
|
473
429
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ C("div", {
|
|
475
431
|
className: "border-t border-border-subtle pt-6",
|
|
476
|
-
children: [/* @__PURE__ */
|
|
432
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
477
433
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
478
434
|
children: "Address"
|
|
479
|
-
}), /* @__PURE__ */
|
|
435
|
+
}), /* @__PURE__ */ C("div", {
|
|
480
436
|
className: "space-y-4",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
437
|
+
children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
482
438
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
483
439
|
children: "Street Address"
|
|
484
|
-
}), /* @__PURE__ */
|
|
440
|
+
}), /* @__PURE__ */ S("textarea", {
|
|
485
441
|
rows: 2,
|
|
486
|
-
value:
|
|
442
|
+
value: L.address,
|
|
487
443
|
onChange: (e) => $("address", e.target.value),
|
|
488
|
-
disabled: !
|
|
444
|
+
disabled: !A,
|
|
489
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)]"
|
|
490
|
-
})] }), /* @__PURE__ */
|
|
446
|
+
})] }), /* @__PURE__ */ C("div", {
|
|
491
447
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
492
448
|
children: [
|
|
493
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
494
450
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
495
451
|
children: "City"
|
|
496
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ S("input", {
|
|
497
453
|
type: "text",
|
|
498
|
-
value:
|
|
454
|
+
value: L.city,
|
|
499
455
|
onChange: (e) => $("city", e.target.value),
|
|
500
|
-
disabled: !
|
|
456
|
+
disabled: !A,
|
|
501
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)]"
|
|
502
458
|
})] }),
|
|
503
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
504
460
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
505
461
|
children: "State"
|
|
506
|
-
}), /* @__PURE__ */
|
|
462
|
+
}), /* @__PURE__ */ S("input", {
|
|
507
463
|
type: "text",
|
|
508
|
-
value:
|
|
464
|
+
value: L.state,
|
|
509
465
|
onChange: (e) => $("state", e.target.value),
|
|
510
|
-
disabled: !
|
|
466
|
+
disabled: !A,
|
|
511
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)]"
|
|
512
468
|
})] }),
|
|
513
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
514
470
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
515
471
|
children: "Country"
|
|
516
|
-
}), /* @__PURE__ */
|
|
472
|
+
}), /* @__PURE__ */ S("input", {
|
|
517
473
|
type: "text",
|
|
518
|
-
value:
|
|
474
|
+
value: L.country,
|
|
519
475
|
onChange: (e) => $("country", e.target.value),
|
|
520
|
-
disabled: !
|
|
476
|
+
disabled: !A,
|
|
521
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)]"
|
|
522
478
|
})] }),
|
|
523
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
524
480
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
525
481
|
children: "Pincode"
|
|
526
|
-
}), /* @__PURE__ */
|
|
482
|
+
}), /* @__PURE__ */ S("input", {
|
|
527
483
|
type: "text",
|
|
528
|
-
value:
|
|
484
|
+
value: L.pincode,
|
|
529
485
|
onChange: (e) => $("pincode", e.target.value),
|
|
530
|
-
disabled: !
|
|
486
|
+
disabled: !A,
|
|
531
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)]"
|
|
532
488
|
})] })
|
|
533
489
|
]
|
|
@@ -536,187 +492,203 @@ function O() {
|
|
|
536
492
|
})
|
|
537
493
|
]
|
|
538
494
|
})] }),
|
|
539
|
-
|
|
495
|
+
O === "investment" && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h2", {
|
|
540
496
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
541
497
|
children: "Investment Profile"
|
|
542
|
-
}), /* @__PURE__ */
|
|
498
|
+
}), /* @__PURE__ */ C("div", {
|
|
543
499
|
className: "space-y-6",
|
|
544
500
|
children: [
|
|
545
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ C("div", {
|
|
546
502
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
547
503
|
children: [
|
|
548
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
549
505
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
550
506
|
children: "Investor Type"
|
|
551
|
-
}), /* @__PURE__ */
|
|
552
|
-
value:
|
|
507
|
+
}), /* @__PURE__ */ C("select", {
|
|
508
|
+
value: L.investorType,
|
|
553
509
|
onChange: (e) => $("investorType", e.target.value),
|
|
554
|
-
disabled: !
|
|
510
|
+
disabled: !A,
|
|
555
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)]",
|
|
556
512
|
children: [
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
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" })
|
|
561
521
|
]
|
|
562
522
|
})] }),
|
|
563
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
564
524
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
565
525
|
children: "Investment Range"
|
|
566
|
-
}), /* @__PURE__ */
|
|
567
|
-
value:
|
|
526
|
+
}), /* @__PURE__ */ C("select", {
|
|
527
|
+
value: L.investmentRange,
|
|
568
528
|
onChange: (e) => $("investmentRange", e.target.value),
|
|
569
|
-
disabled: !
|
|
529
|
+
disabled: !A,
|
|
570
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)]",
|
|
571
531
|
children: [
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
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+" })
|
|
576
540
|
]
|
|
577
541
|
})] }),
|
|
578
|
-
/* @__PURE__ */
|
|
542
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
579
543
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
580
544
|
children: "Investment Horizon"
|
|
581
|
-
}), /* @__PURE__ */
|
|
582
|
-
value:
|
|
545
|
+
}), /* @__PURE__ */ C("select", {
|
|
546
|
+
value: L.investmentHorizon,
|
|
583
547
|
onChange: (e) => $("investmentHorizon", e.target.value),
|
|
584
|
-
disabled: !
|
|
548
|
+
disabled: !A,
|
|
585
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)]",
|
|
586
550
|
children: [
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
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" })
|
|
591
559
|
]
|
|
592
560
|
})] }),
|
|
593
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
594
562
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
595
563
|
children: "Risk Profile"
|
|
596
|
-
}), /* @__PURE__ */
|
|
597
|
-
value:
|
|
564
|
+
}), /* @__PURE__ */ C("select", {
|
|
565
|
+
value: L.riskProfile,
|
|
598
566
|
onChange: (e) => $("riskProfile", e.target.value),
|
|
599
|
-
disabled: !
|
|
567
|
+
disabled: !A,
|
|
600
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)]",
|
|
601
569
|
children: [
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
|
|
604
|
-
|
|
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" })
|
|
605
577
|
]
|
|
606
578
|
})] })
|
|
607
579
|
]
|
|
608
580
|
}),
|
|
609
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
610
582
|
className: "mb-3 block text-sm font-medium text-text-primary",
|
|
611
583
|
children: "Preferred Sectors"
|
|
612
|
-
}), /* @__PURE__ */
|
|
584
|
+
}), /* @__PURE__ */ S("div", {
|
|
613
585
|
className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
|
|
614
|
-
children:
|
|
586
|
+
children: le.map((e) => /* @__PURE__ */ C("label", {
|
|
615
587
|
className: "flex items-center gap-2",
|
|
616
|
-
children: [/* @__PURE__ */
|
|
588
|
+
children: [/* @__PURE__ */ S("input", {
|
|
617
589
|
type: "checkbox",
|
|
618
|
-
checked:
|
|
590
|
+
checked: L.preferredSectors.includes(e),
|
|
619
591
|
onChange: (t) => {
|
|
620
|
-
t.target.checked ? $("preferredSectors", [...
|
|
592
|
+
t.target.checked ? $("preferredSectors", [...L.preferredSectors, e]) : $("preferredSectors", L.preferredSectors.filter((t) => t !== e));
|
|
621
593
|
},
|
|
622
|
-
disabled: !
|
|
594
|
+
disabled: !A,
|
|
623
595
|
className: "h-4 w-4 rounded border-border-subtle text-primary focus:ring-[var(--color-focus-ring)]"
|
|
624
|
-
}), /* @__PURE__ */
|
|
596
|
+
}), /* @__PURE__ */ S("span", {
|
|
625
597
|
className: "text-sm text-text-primary",
|
|
626
598
|
children: e
|
|
627
599
|
})]
|
|
628
600
|
}, e))
|
|
629
601
|
})] }),
|
|
630
|
-
/* @__PURE__ */
|
|
602
|
+
/* @__PURE__ */ C("div", {
|
|
631
603
|
className: "rounded-lg border border-border-subtle p-4",
|
|
632
|
-
children: [/* @__PURE__ */
|
|
604
|
+
children: [/* @__PURE__ */ C("div", {
|
|
633
605
|
className: "mb-2 flex items-center justify-between",
|
|
634
|
-
children: [/* @__PURE__ */
|
|
606
|
+
children: [/* @__PURE__ */ S("p", {
|
|
635
607
|
className: "text-sm font-medium text-text-primary",
|
|
636
608
|
children: "Risk Tolerance"
|
|
637
|
-
}), /* @__PURE__ */
|
|
638
|
-
className: t("text-sm font-semibold",
|
|
639
|
-
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
|
|
640
612
|
})]
|
|
641
|
-
}), /* @__PURE__ */
|
|
613
|
+
}), /* @__PURE__ */ S("div", {
|
|
642
614
|
className: "flex gap-1",
|
|
643
615
|
children: [
|
|
644
616
|
"Conservative",
|
|
645
617
|
"Moderate",
|
|
646
618
|
"Aggressive"
|
|
647
|
-
].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))
|
|
648
620
|
})]
|
|
649
621
|
})
|
|
650
622
|
]
|
|
651
623
|
})] }),
|
|
652
|
-
|
|
653
|
-
/* @__PURE__ */
|
|
624
|
+
O === "portfolio" && /* @__PURE__ */ C("div", { children: [
|
|
625
|
+
/* @__PURE__ */ S("h2", {
|
|
654
626
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
655
627
|
children: "Investment Portfolio"
|
|
656
628
|
}),
|
|
657
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ C("div", {
|
|
658
630
|
className: "mb-8 grid grid-cols-2 gap-4 sm:grid-cols-4 sm:gap-6",
|
|
659
631
|
children: [
|
|
660
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ C("div", {
|
|
661
633
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
662
634
|
children: [
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ S(re, { className: "mb-2 h-7 w-7 text-primary sm:h-8 sm:w-8" }),
|
|
636
|
+
/* @__PURE__ */ S("div", {
|
|
665
637
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
666
|
-
children: r(
|
|
638
|
+
children: r(z.totalInvested, {
|
|
667
639
|
minimumFractionDigits: 0,
|
|
668
640
|
notation: "compact"
|
|
669
641
|
})
|
|
670
642
|
}),
|
|
671
|
-
/* @__PURE__ */
|
|
643
|
+
/* @__PURE__ */ S("div", {
|
|
672
644
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
673
645
|
children: "Total Invested"
|
|
674
646
|
})
|
|
675
647
|
]
|
|
676
648
|
}),
|
|
677
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ C("div", {
|
|
678
650
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
679
651
|
children: [
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
/* @__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", {
|
|
682
654
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
683
|
-
children:
|
|
655
|
+
children: z.activeInvestments
|
|
684
656
|
}),
|
|
685
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ S("div", {
|
|
686
658
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
687
659
|
children: "Active Investments"
|
|
688
660
|
})
|
|
689
661
|
]
|
|
690
662
|
}),
|
|
691
|
-
/* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ C("div", {
|
|
692
664
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
693
665
|
children: [
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
/* @__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", {
|
|
696
668
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
697
|
-
children: r(
|
|
669
|
+
children: r(z.totalReturns, {
|
|
698
670
|
minimumFractionDigits: 0,
|
|
699
671
|
notation: "compact"
|
|
700
672
|
})
|
|
701
673
|
}),
|
|
702
|
-
/* @__PURE__ */
|
|
674
|
+
/* @__PURE__ */ S("div", {
|
|
703
675
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
704
676
|
children: "Total Returns"
|
|
705
677
|
})
|
|
706
678
|
]
|
|
707
679
|
}),
|
|
708
|
-
/* @__PURE__ */
|
|
680
|
+
/* @__PURE__ */ C("div", {
|
|
709
681
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
710
682
|
children: [
|
|
711
|
-
/* @__PURE__ */
|
|
712
|
-
/* @__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", {
|
|
713
685
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
714
|
-
children: r(
|
|
686
|
+
children: r(z.portfolioValue, {
|
|
715
687
|
minimumFractionDigits: 0,
|
|
716
688
|
notation: "compact"
|
|
717
689
|
})
|
|
718
690
|
}),
|
|
719
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ S("div", {
|
|
720
692
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
721
693
|
children: "Portfolio Value"
|
|
722
694
|
})
|
|
@@ -724,50 +696,50 @@ function O() {
|
|
|
724
696
|
})
|
|
725
697
|
]
|
|
726
698
|
}),
|
|
727
|
-
/* @__PURE__ */
|
|
699
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
|
|
728
700
|
className: "mb-4 text-base font-semibold text-text-primary",
|
|
729
701
|
children: "Active Investments"
|
|
730
|
-
}),
|
|
702
|
+
}), D.length === 0 ? /* @__PURE__ */ S("p", {
|
|
731
703
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4 text-sm text-text-secondary",
|
|
732
704
|
children: "You don't have any active investments yet. Explore opportunities to start building your portfolio."
|
|
733
|
-
}) : /* @__PURE__ */
|
|
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
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
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
744
|
children: r(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
|
|
773
745
|
})] })
|
|
@@ -776,280 +748,220 @@ function O() {
|
|
|
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
|
-
j && /* @__PURE__ */ E("div", {
|
|
829
|
-
className: "rounded-lg border-2 border-dashed border-border-subtle p-6 text-center",
|
|
830
|
-
children: [
|
|
831
|
-
/* @__PURE__ */ T(f, { className: "mx-auto mb-2 h-8 w-8 text-text-secondary" }),
|
|
832
|
-
/* @__PURE__ */ T("p", {
|
|
833
|
-
className: "text-sm font-medium text-text-primary",
|
|
834
|
-
children: "Upload New Document"
|
|
835
|
-
}),
|
|
836
|
-
/* @__PURE__ */ T("p", {
|
|
837
|
-
className: "mt-1 text-xs text-text-secondary",
|
|
838
|
-
children: "PDF, JPG, or PNG up to 10MB"
|
|
839
|
-
}),
|
|
840
|
-
/* @__PURE__ */ E("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__ */ T("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__ */
|
|
901
|
+
children: /* @__PURE__ */ S("span", {
|
|
962
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"),
|
|
963
903
|
children: Q ? "Enabled" : "Disabled"
|
|
964
904
|
})
|
|
965
|
-
}), /* @__PURE__ */
|
|
905
|
+
}), /* @__PURE__ */ S("button", {
|
|
966
906
|
type: "button",
|
|
967
|
-
onClick:
|
|
907
|
+
onClick: _e,
|
|
968
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"),
|
|
969
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__ */ E("div", { children: [/* @__PURE__ */ E("div", {
|
|
987
|
-
className: "flex items-center gap-2",
|
|
988
|
-
children: [/* @__PURE__ */ T("p", {
|
|
989
|
-
className: "text-sm font-medium text-text-primary",
|
|
990
|
-
children: e.device
|
|
991
|
-
}), e.current && /* @__PURE__ */ T("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__ */ E("div", {
|
|
996
|
-
className: "mt-1 flex items-center gap-2 text-xs text-text-secondary",
|
|
997
|
-
children: [
|
|
998
|
-
/* @__PURE__ */ T(g, { className: "h-3 w-3" }),
|
|
999
|
-
/* @__PURE__ */ T("span", { children: e.location }),
|
|
1000
|
-
/* @__PURE__ */ T("span", { children: "•" }),
|
|
1001
|
-
/* @__PURE__ */ T("span", { children: te(e.date, {
|
|
1002
|
-
hour: "numeric",
|
|
1003
|
-
minute: "2-digit"
|
|
1004
|
-
}) })
|
|
1005
|
-
]
|
|
1006
|
-
})] }), !e.current && /* @__PURE__ */ T("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 O() {
|
|
|
1064
976
|
});
|
|
1065
977
|
}
|
|
1066
978
|
//#endregion
|
|
1067
|
-
export {
|
|
979
|
+
export { D as InvestorProfilePage };
|
|
1068
980
|
|
|
1069
981
|
//# sourceMappingURL=InvestorProfilePage.js.map
|