@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.
Files changed (96) hide show
  1. package/dist/kadaikodi/hooks/useKadaikodiApi.js +260 -105
  2. package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
  3. package/dist/kadaikodi/pages/HomePage.js +4 -4
  4. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  5. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +341 -461
  6. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  7. package/dist/kadaikodi/pages/admin/AdminDashboard.js +115 -399
  8. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  9. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +140 -283
  10. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
  11. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +282 -453
  12. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  13. package/dist/kadaikodi/pages/admin/AdminProfilePage.js +115 -242
  14. package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
  15. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +2 -2
  16. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
  17. package/dist/kadaikodi/pages/admin/CartManagementPage.js +279 -333
  18. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  19. package/dist/kadaikodi/pages/admin/UserManagementPage.js +299 -372
  20. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  21. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +503 -627
  22. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  23. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +339 -282
  24. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  25. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +329 -432
  26. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  27. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +374 -384
  28. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  29. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +249 -208
  30. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +276 -279
  32. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  33. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +229 -447
  34. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +171 -627
  36. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  37. package/dist/kadaikodi/pages/common/HelpSupportPage.js +331 -415
  38. package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
  39. package/dist/kadaikodi/pages/common/NotificationCenterPage.js +18 -670
  40. package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
  41. package/dist/kadaikodi/pages/common/SettingsPage.js +34 -46
  42. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  43. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +193 -447
  44. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  45. package/dist/kadaikodi/pages/customer/CartDetailPage.js +6 -6
  46. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  47. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +2 -2
  48. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  49. package/dist/kadaikodi/pages/customer/CheckoutPage.js +4 -2
  50. package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
  51. package/dist/kadaikodi/pages/customer/CustomerDashboard.js +191 -369
  52. package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
  53. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +233 -389
  54. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
  55. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +255 -215
  56. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  57. package/dist/kadaikodi/pages/customer/FavoritesPage.js +141 -178
  58. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  59. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
  60. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +155 -161
  61. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  62. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +76 -118
  63. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
  64. package/dist/kadaikodi/pages/customer/ReviewsPage.js +14 -140
  65. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  66. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +135 -213
  67. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
  68. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +272 -774
  69. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
  70. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +258 -523
  71. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  72. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +112 -600
  73. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  74. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +128 -295
  75. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  76. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +205 -291
  77. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  78. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +159 -500
  79. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
  80. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +426 -514
  81. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  82. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +231 -225
  83. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  84. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +197 -301
  85. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  86. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +247 -399
  87. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  88. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +294 -327
  89. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  90. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +179 -397
  91. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  92. package/package.json +1 -1
  93. package/dist/kadaikodi/mocks/data.js +0 -1517
  94. package/dist/kadaikodi/mocks/data.js.map +0 -1
  95. package/dist/kadaikodi/mocks/users.js +0 -34
  96. 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 r } from "../../hooks/useKadaikodiApi.js";
5
- import { formatCurrency as i, formatDate as ee } from "../../utils/formatters.js";
6
- import { mockActiveInvestments as te } from "../../mocks/data.js";
7
- import { useCallback as a, useMemo as o, useState as s } from "react";
8
- import { Bell as c, Briefcase as ne, Building2 as re, Camera as ie, CheckCircle2 as l, DollarSign as u, Edit3 as d, Eye as f, EyeOff as p, FileText as m, Globe as h, Linkedin as ae, Lock as oe, Mail as se, MapPin as ce, Monitor as g, Phone as _, PieChart as v, Save as y, Shield as b, Smartphone as x, TrendingUp as S, User as C, X as w } from "lucide-react";
9
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
10
- import { EmphasisPanel as le, PagePurpose as ue } from "@burdenoff/fe-libs/ui";
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 O = [
11
+ var E = [
13
12
  {
14
13
  id: "personal",
15
14
  label: "Personal Info",
16
- Icon: C
15
+ Icon: b
17
16
  },
18
17
  {
19
18
  id: "investment",
20
19
  label: "Investment Profile",
21
- Icon: S
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: m
30
+ Icon: f
32
31
  },
33
32
  {
34
33
  id: "security",
35
34
  label: "Security",
36
- Icon: b
35
+ Icon: oe
37
36
  },
38
37
  {
39
38
  id: "notifications",
40
39
  label: "Notifications",
41
- Icon: c
40
+ Icon: s
42
41
  }
43
- ], de = [
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 k() {
95
- let { currentUser: c, navigateTo: b } = e(), { data: k = [] } = r(c?.id || ""), [A, j] = s("personal"), [M, N] = s(!1), [P, F] = s(!1), [I, L] = s(""), R = o(() => ({
96
- firstName: c?.firstName ?? c?.name?.split(" ")[0] ?? "Rajesh",
97
- lastName: c?.lastName ?? c?.name?.split(" ")[1] ?? "Mehta",
98
- email: c?.email ?? "investor@burdenoff.com",
99
- phone: "+91 98765 43230",
100
- profileImage: c?.avatar ?? "",
101
- investorType: "Angel Investor",
102
- investmentRange: "5L - 25L",
103
- preferredSectors: [
104
- "Food & Beverage",
105
- "Quick Commerce",
106
- "Cloud Kitchen"
107
- ],
108
- investmentHorizon: "3-5 years",
109
- riskProfile: "Moderate",
110
- companyName: "Mehta Ventures",
111
- designation: "Managing Partner",
112
- companyWebsite: "www.mehtaventures.com",
113
- linkedinProfile: "linkedin.com/in/rajeshmehta",
114
- address: "456, MG Road",
115
- city: "Bangalore",
116
- state: "Karnataka",
117
- country: "India",
118
- pincode: "560001"
119
- }), [c]), [z, B] = s(R);
120
- o(() => ({
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
- ]), [he, H] = s(!1), [U, W] = s(""), [G, K] = s(""), [q, J] = s(""), [Y, ge] = s(!1), [X, _e] = s(!1), [Z, ve] = s(!1), Q = a((e, t) => {
164
- B((n) => ({
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
- }, []), $ = a(() => {
169
- F(!0), setTimeout(() => {
170
- F(!1), N(!1), L("Profile updated successfully!"), setTimeout(() => L(""), 3e3);
121
+ }, []), pe = i(() => {
122
+ N(!0), setTimeout(() => {
123
+ N(!1), j(!1), F("Profile updated successfully!"), setTimeout(() => F(""), 3e3);
171
124
  }, 1200);
172
- }, []), ye = a((e) => {
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
- B((t) => ({
130
+ R((t) => ({
178
131
  ...t,
179
132
  profileImage: e.result
180
133
  }));
181
134
  }, e.readAsDataURL(t);
182
135
  }
183
- }, []), be = a((e) => {
184
- me((t) => t.map((t) => t.id === e ? {
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
- }, []), xe = a(() => {
189
- if (!(!U || !G || !q)) {
190
- if (G !== q) {
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 (G.length < 8) {
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!"), H(!1), W(""), K(""), J("");
151
+ alert("Password changed successfully!"), U(!1), G(""), q(""), Y("");
199
152
  }
200
153
  }, [
201
- U,
202
- G,
203
- q
204
- ]), Se = a(() => {
205
- ve((e) => {
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__ */ D(n, {
163
+ return /* @__PURE__ */ C(n, {
211
164
  title: "Investor Profile",
212
165
  description: "Manage your investment profile and preferences",
213
- actions: /* @__PURE__ */ D("div", {
166
+ actions: /* @__PURE__ */ C("div", {
214
167
  className: "flex items-center gap-2",
215
- children: [I && /* @__PURE__ */ E("span", {
168
+ children: [P && /* @__PURE__ */ S("span", {
216
169
  className: "text-sm font-medium text-status-success-text",
217
- children: I
218
- }), M ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("button", {
170
+ children: P
171
+ }), A ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("button", {
219
172
  type: "button",
220
173
  onClick: () => {
221
- N(!1), B(R);
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__ */ E(w, { className: "h-4 w-4" }), "Cancel"]
225
- }), /* @__PURE__ */ E("button", {
177
+ children: [/* @__PURE__ */ S(ce, { className: "h-4 w-4" }), "Cancel"]
178
+ }), /* @__PURE__ */ S("button", {
226
179
  type: "button",
227
- onClick: $,
228
- disabled: P,
229
- className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors", P ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
230
- children: P ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(y, { className: "h-4 w-4" }), "Save Changes"] })
231
- })] }) : /* @__PURE__ */ D("button", {
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: () => N(!0),
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__ */ E(d, { className: "h-4 w-4" }), "Edit Profile"]
188
+ children: [/* @__PURE__ */ S(l, { className: "h-4 w-4" }), "Edit Profile"]
236
189
  })]
237
190
  }),
238
- children: [/* @__PURE__ */ E(ue, {
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__ */ D("div", {
194
+ }), /* @__PURE__ */ C("div", {
242
195
  className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
243
- children: [/* @__PURE__ */ D("div", {
196
+ children: [/* @__PURE__ */ C("div", {
244
197
  className: "lg:col-span-1",
245
198
  children: [
246
- /* @__PURE__ */ D(le, {
199
+ /* @__PURE__ */ C(w, {
247
200
  className: "p-4 sm:p-6",
248
- children: [/* @__PURE__ */ D("div", {
201
+ children: [/* @__PURE__ */ C("div", {
249
202
  className: "text-center",
250
203
  children: [
251
- /* @__PURE__ */ D("div", {
204
+ /* @__PURE__ */ C("div", {
252
205
  className: "relative mx-auto inline-block",
253
- children: [/* @__PURE__ */ E("div", {
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: z.profileImage ? /* @__PURE__ */ E("img", {
256
- src: z.profileImage,
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__ */ E("div", {
212
+ }) : /* @__PURE__ */ S("div", {
260
213
  className: "flex h-full w-full items-center justify-center",
261
- children: /* @__PURE__ */ E(C, { className: "h-10 w-10 text-text-secondary" })
214
+ children: /* @__PURE__ */ S(b, { className: "h-10 w-10 text-text-secondary" })
262
215
  })
263
- }), M && /* @__PURE__ */ D("label", {
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__ */ E(ie, { className: "h-4 w-4" }), /* @__PURE__ */ E("input", {
218
+ children: [/* @__PURE__ */ S(ne, { className: "h-4 w-4" }), /* @__PURE__ */ S("input", {
266
219
  type: "file",
267
220
  accept: "image/*",
268
- onChange: ye,
221
+ onChange: me,
269
222
  className: "hidden"
270
223
  })]
271
224
  })]
272
225
  }),
273
- /* @__PURE__ */ D("h3", {
226
+ /* @__PURE__ */ C("h3", {
274
227
  className: "mt-3 text-base font-semibold text-text-primary sm:text-lg",
275
228
  children: [
276
- z.firstName,
229
+ L.firstName,
277
230
  " ",
278
- z.lastName
231
+ L.lastName
279
232
  ]
280
233
  }),
281
- /* @__PURE__ */ E("p", {
234
+ /* @__PURE__ */ S("p", {
282
235
  className: "text-sm text-text-secondary",
283
- children: z.investorType
236
+ children: L.investorType
284
237
  }),
285
- /* @__PURE__ */ E("p", {
238
+ /* @__PURE__ */ S("p", {
286
239
  className: "mt-1 truncate text-xs text-text-secondary",
287
- children: z.companyName
240
+ children: L.companyName
288
241
  })
289
242
  ]
290
- }), /* @__PURE__ */ D("div", {
243
+ }), /* @__PURE__ */ C("div", {
291
244
  className: "mt-5 space-y-3 border-t border-border-subtle pt-4",
292
245
  children: [
293
- /* @__PURE__ */ D("div", {
246
+ /* @__PURE__ */ C("div", {
294
247
  className: "flex items-center justify-between",
295
- children: [/* @__PURE__ */ E("span", {
248
+ children: [/* @__PURE__ */ S("span", {
296
249
  className: "text-xs text-text-secondary sm:text-sm",
297
250
  children: "Portfolio Value"
298
- }), /* @__PURE__ */ E("span", {
251
+ }), /* @__PURE__ */ S("span", {
299
252
  className: "text-xs font-semibold text-primary sm:text-sm",
300
- children: i(z.portfolioValue ?? 0, { minimumFractionDigits: 0 })
253
+ children: r(z.portfolioValue, { minimumFractionDigits: 0 })
301
254
  })]
302
255
  }),
303
- /* @__PURE__ */ D("div", {
256
+ /* @__PURE__ */ C("div", {
304
257
  className: "flex items-center justify-between",
305
- children: [/* @__PURE__ */ E("span", {
258
+ children: [/* @__PURE__ */ S("span", {
306
259
  className: "text-xs text-text-secondary sm:text-sm",
307
260
  children: "Active Investments"
308
- }), /* @__PURE__ */ E("span", {
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__ */ D("div", {
266
+ /* @__PURE__ */ C("div", {
314
267
  className: "flex items-center justify-between",
315
- children: [/* @__PURE__ */ E("span", {
268
+ children: [/* @__PURE__ */ S("span", {
316
269
  className: "text-xs text-text-secondary sm:text-sm",
317
270
  children: "Total Returns"
318
- }), /* @__PURE__ */ D("span", {
271
+ }), /* @__PURE__ */ C("span", {
319
272
  className: "text-xs font-semibold text-status-success-text sm:text-sm",
320
- children: ["+", i(z.totalReturns ?? 0, { minimumFractionDigits: 0 })]
273
+ children: ["+", r(z.totalReturns, { minimumFractionDigits: 0 })]
321
274
  })]
322
275
  }),
323
- /* @__PURE__ */ D("div", {
276
+ /* @__PURE__ */ C("div", {
324
277
  className: "flex items-center justify-between",
325
- children: [/* @__PURE__ */ E("span", {
278
+ children: [/* @__PURE__ */ S("span", {
326
279
  className: "text-xs text-text-secondary sm:text-sm",
327
280
  children: "Total Invested"
328
- }), /* @__PURE__ */ E("span", {
281
+ }), /* @__PURE__ */ S("span", {
329
282
  className: "text-xs font-semibold text-text-primary sm:text-sm",
330
- children: i(z.totalInvested ?? 0, { minimumFractionDigits: 0 })
283
+ children: r(z.totalInvested, { minimumFractionDigits: 0 })
331
284
  })]
332
285
  })
333
286
  ]
334
287
  })]
335
288
  }),
336
- /* @__PURE__ */ E("div", {
289
+ /* @__PURE__ */ S("div", {
337
290
  className: "mt-4 flex gap-2 overflow-x-auto pb-2 lg:hidden",
338
- children: O.map((e) => /* @__PURE__ */ D("button", {
291
+ children: E.map((e) => /* @__PURE__ */ C("button", {
339
292
  type: "button",
340
- onClick: () => j(e.id),
341
- className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors", A === e.id ? "bg-action-primary-bg text-action-primary-text shadow-sm" : "bg-bg-surface text-text-primary hover:bg-accent"),
342
- children: [/* @__PURE__ */ E(e.Icon, { className: "h-4 w-4 shrink-0" }), e.label]
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__ */ E("div", {
298
+ /* @__PURE__ */ S("div", {
346
299
  className: "mt-4 hidden space-y-2 lg:block",
347
- children: O.map((e) => /* @__PURE__ */ D("button", {
300
+ children: E.map((e) => /* @__PURE__ */ C("button", {
348
301
  type: "button",
349
- onClick: () => j(e.id),
350
- className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors", A === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-accent"),
351
- children: [/* @__PURE__ */ E(e.Icon, { className: "h-4 w-4" }), e.label]
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__ */ E("div", {
308
+ }), /* @__PURE__ */ S("div", {
356
309
  className: "lg:col-span-3",
357
- children: /* @__PURE__ */ D("div", {
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
- A === "personal" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
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__ */ D("div", {
316
+ }), /* @__PURE__ */ C("div", {
364
317
  className: "space-y-6",
365
318
  children: [
366
- /* @__PURE__ */ D("div", {
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
325
+ }), /* @__PURE__ */ S("input", {
373
326
  type: "text",
374
- value: z.firstName,
375
- onChange: (e) => Q("firstName", e.target.value),
376
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
335
+ }), /* @__PURE__ */ S("input", {
383
336
  type: "text",
384
- value: z.lastName,
385
- onChange: (e) => Q("lastName", e.target.value),
386
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("div", {
345
+ }), /* @__PURE__ */ C("div", {
393
346
  className: "relative",
394
- children: [/* @__PURE__ */ E(se, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
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: z.email,
397
- onChange: (e) => Q("email", e.target.value),
398
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("div", {
358
+ }), /* @__PURE__ */ C("div", {
406
359
  className: "relative",
407
- children: [/* @__PURE__ */ E(_, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
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: z.phone,
410
- onChange: (e) => Q("phone", e.target.value),
411
- disabled: !M,
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__ */ D("div", {
370
+ /* @__PURE__ */ C("div", {
418
371
  className: "border-t border-border-subtle pt-6",
419
- children: [/* @__PURE__ */ E("h3", {
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__ */ D("div", {
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("div", {
381
+ }), /* @__PURE__ */ C("div", {
429
382
  className: "relative",
430
- children: [/* @__PURE__ */ E(re, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
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: z.companyName,
433
- onChange: (e) => Q("companyName", e.target.value),
434
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
394
+ }), /* @__PURE__ */ S("input", {
442
395
  type: "text",
443
- value: z.designation,
444
- onChange: (e) => Q("designation", e.target.value),
445
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("div", {
404
+ }), /* @__PURE__ */ C("div", {
452
405
  className: "relative",
453
- children: [/* @__PURE__ */ E(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
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: z.companyWebsite,
456
- onChange: (e) => Q("companyWebsite", e.target.value),
457
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("div", {
417
+ }), /* @__PURE__ */ C("div", {
465
418
  className: "relative",
466
- children: [/* @__PURE__ */ E(ae, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
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: z.linkedinProfile,
469
- onChange: (e) => Q("linkedinProfile", e.target.value),
470
- disabled: !M,
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__ */ D("div", {
430
+ /* @__PURE__ */ C("div", {
478
431
  className: "border-t border-border-subtle pt-6",
479
- children: [/* @__PURE__ */ E("h3", {
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__ */ D("div", {
435
+ }), /* @__PURE__ */ C("div", {
483
436
  className: "space-y-4",
484
- children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("textarea", {
440
+ }), /* @__PURE__ */ S("textarea", {
488
441
  rows: 2,
489
- value: z.address,
490
- onChange: (e) => Q("address", e.target.value),
491
- disabled: !M,
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__ */ D("div", {
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
452
+ }), /* @__PURE__ */ S("input", {
500
453
  type: "text",
501
- value: z.city,
502
- onChange: (e) => Q("city", e.target.value),
503
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
462
+ }), /* @__PURE__ */ S("input", {
510
463
  type: "text",
511
- value: z.state,
512
- onChange: (e) => Q("state", e.target.value),
513
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
472
+ }), /* @__PURE__ */ S("input", {
520
473
  type: "text",
521
- value: z.country,
522
- onChange: (e) => Q("country", e.target.value),
523
- disabled: !M,
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
482
+ }), /* @__PURE__ */ S("input", {
530
483
  type: "text",
531
- value: z.pincode,
532
- onChange: (e) => Q("pincode", e.target.value),
533
- disabled: !M,
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
- A === "investment" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
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__ */ D("div", {
498
+ }), /* @__PURE__ */ C("div", {
546
499
  className: "space-y-6",
547
500
  children: [
548
- /* @__PURE__ */ D("div", {
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("select", {
555
- value: z.investorType,
556
- onChange: (e) => Q("investorType", e.target.value),
557
- disabled: !M,
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__ */ E("option", { children: "Angel Investor" }),
561
- /* @__PURE__ */ E("option", { children: "Venture Capitalist" }),
562
- /* @__PURE__ */ E("option", { children: "Private Equity" }),
563
- /* @__PURE__ */ E("option", { children: "Strategic Investor" })
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("select", {
570
- value: z.investmentRange,
571
- onChange: (e) => Q("investmentRange", e.target.value),
572
- disabled: !M,
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__ */ E("option", { children: "1L - 5L" }),
576
- /* @__PURE__ */ E("option", { children: "5L - 25L" }),
577
- /* @__PURE__ */ E("option", { children: "25L - 1Cr" }),
578
- /* @__PURE__ */ E("option", { children: "1Cr+" })
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("select", {
585
- value: z.investmentHorizon,
586
- onChange: (e) => Q("investmentHorizon", e.target.value),
587
- disabled: !M,
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__ */ E("option", { children: "1-2 years" }),
591
- /* @__PURE__ */ E("option", { children: "3-5 years" }),
592
- /* @__PURE__ */ E("option", { children: "5-7 years" }),
593
- /* @__PURE__ */ E("option", { children: "7+ years" })
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("select", {
600
- value: z.riskProfile,
601
- onChange: (e) => Q("riskProfile", e.target.value),
602
- disabled: !M,
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__ */ E("option", { children: "Conservative" }),
606
- /* @__PURE__ */ E("option", { children: "Moderate" }),
607
- /* @__PURE__ */ E("option", { children: "Aggressive" })
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("div", {
584
+ }), /* @__PURE__ */ S("div", {
616
585
  className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
617
- children: pe.map((e) => /* @__PURE__ */ D("label", {
586
+ children: le.map((e) => /* @__PURE__ */ C("label", {
618
587
  className: "flex items-center gap-2",
619
- children: [/* @__PURE__ */ E("input", {
588
+ children: [/* @__PURE__ */ S("input", {
620
589
  type: "checkbox",
621
- checked: z.preferredSectors.includes(e),
590
+ checked: L.preferredSectors.includes(e),
622
591
  onChange: (t) => {
623
- t.target.checked ? Q("preferredSectors", [...z.preferredSectors, e]) : Q("preferredSectors", z.preferredSectors.filter((t) => t !== e));
592
+ t.target.checked ? $("preferredSectors", [...L.preferredSectors, e]) : $("preferredSectors", L.preferredSectors.filter((t) => t !== e));
624
593
  },
625
- disabled: !M,
594
+ disabled: !A,
626
595
  className: "h-4 w-4 rounded border-border-subtle text-primary focus:ring-[var(--color-focus-ring)]"
627
- }), /* @__PURE__ */ E("span", {
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__ */ D("div", {
602
+ /* @__PURE__ */ C("div", {
634
603
  className: "rounded-lg border border-border-subtle p-4",
635
- children: [/* @__PURE__ */ D("div", {
604
+ children: [/* @__PURE__ */ C("div", {
636
605
  className: "mb-2 flex items-center justify-between",
637
- children: [/* @__PURE__ */ E("p", {
606
+ children: [/* @__PURE__ */ S("p", {
638
607
  className: "text-sm font-medium text-text-primary",
639
608
  children: "Risk Tolerance"
640
- }), /* @__PURE__ */ E("span", {
641
- className: t("text-sm font-semibold", z.riskProfile === "Conservative" ? "text-status-success-text" : z.riskProfile === "Moderate" ? "text-status-warning-text" : "text-status-error-text"),
642
- children: z.riskProfile
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__ */ E("div", {
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__ */ E("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 === z.riskProfile && e === "Conservative" && "bg-status-success-text", e === z.riskProfile && e === "Moderate" && "bg-status-warning-text", e === z.riskProfile && e === "Aggressive" && "bg-status-error-text") }, e))
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
- A === "portfolio" && /* @__PURE__ */ D("div", { children: [
656
- /* @__PURE__ */ E("h2", {
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__ */ D("div", {
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__ */ D("div", {
632
+ /* @__PURE__ */ C("div", {
664
633
  className: "rounded-lg bg-bg-sunken/50 p-4",
665
634
  children: [
666
- /* @__PURE__ */ E(u, { className: "mb-2 h-7 w-7 text-primary sm:h-8 sm:w-8" }),
667
- /* @__PURE__ */ E("div", {
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: i(z.totalInvested ?? 0, {
638
+ children: r(z.totalInvested, {
670
639
  minimumFractionDigits: 0,
671
640
  notation: "compact"
672
641
  })
673
642
  }),
674
- /* @__PURE__ */ E("div", {
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__ */ D("div", {
649
+ /* @__PURE__ */ C("div", {
681
650
  className: "rounded-lg bg-bg-sunken/50 p-4",
682
651
  children: [
683
- /* @__PURE__ */ E(ne, { className: "mb-2 h-7 w-7 text-text-primary sm:h-8 sm:w-8" }),
684
- /* @__PURE__ */ E("div", {
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__ */ E("div", {
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__ */ D("div", {
663
+ /* @__PURE__ */ C("div", {
695
664
  className: "rounded-lg bg-bg-sunken/50 p-4",
696
665
  children: [
697
- /* @__PURE__ */ E(S, { className: "mb-2 h-7 w-7 text-status-success-text sm:h-8 sm:w-8" }),
698
- /* @__PURE__ */ E("div", {
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: i(z.totalReturns ?? 0, {
669
+ children: r(z.totalReturns, {
701
670
  minimumFractionDigits: 0,
702
671
  notation: "compact"
703
672
  })
704
673
  }),
705
- /* @__PURE__ */ E("div", {
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__ */ D("div", {
680
+ /* @__PURE__ */ C("div", {
712
681
  className: "rounded-lg bg-bg-sunken/50 p-4",
713
682
  children: [
714
- /* @__PURE__ */ E(v, { className: "mb-2 h-7 w-7 text-text-primary sm:h-8 sm:w-8" }),
715
- /* @__PURE__ */ E("div", {
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: i(z.portfolioValue ?? 0, {
686
+ children: r(z.portfolioValue, {
718
687
  minimumFractionDigits: 0,
719
688
  notation: "compact"
720
689
  })
721
690
  }),
722
- /* @__PURE__ */ E("div", {
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__ */ D("div", { children: [/* @__PURE__ */ E("h3", {
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__ */ E("div", {
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: te.map((e, n) => /* @__PURE__ */ D("div", {
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__ */ D("div", {
709
+ children: [/* @__PURE__ */ C("div", {
738
710
  className: "mb-3 flex items-start justify-between",
739
- children: [/* @__PURE__ */ E("h4", {
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__ */ D("span", {
743
- className: t("text-sm font-semibold", e.returns > 0 ? "text-status-success-text" : "text-status-error-text"),
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.returns > 0 ? "+" : "",
746
- e.returns,
717
+ e.returnsPercentage >= 0 ? "+" : "",
718
+ e.returnsPercentage,
747
719
  "%"
748
720
  ]
749
721
  })]
750
- }), /* @__PURE__ */ D("div", {
722
+ }), /* @__PURE__ */ C("div", {
751
723
  className: "grid grid-cols-1 gap-3 text-sm sm:grid-cols-3",
752
724
  children: [
753
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
725
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("span", {
754
726
  className: "text-text-secondary",
755
727
  children: "Invested: "
756
- }), /* @__PURE__ */ E("span", {
728
+ }), /* @__PURE__ */ S("span", {
757
729
  className: "font-medium text-text-primary",
758
- children: i(e.investedAmount, { minimumFractionDigits: 0 })
730
+ children: r(e.investedAmount, { minimumFractionDigits: 0 })
759
731
  })] }),
760
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
732
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("span", {
761
733
  className: "text-text-secondary",
762
734
  children: "Current Value: "
763
- }), /* @__PURE__ */ E("span", {
735
+ }), /* @__PURE__ */ S("span", {
764
736
  className: "font-medium text-text-primary",
765
- children: i(e.currentValue, { minimumFractionDigits: 0 })
737
+ children: r(e.currentValue, { minimumFractionDigits: 0 })
766
738
  })] }),
767
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
739
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("span", {
768
740
  className: "text-text-secondary",
769
741
  children: "Returns: "
770
- }), /* @__PURE__ */ E("span", {
742
+ }), /* @__PURE__ */ S("span", {
771
743
  className: "font-medium text-status-success-text",
772
- children: i(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
744
+ children: r(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
773
745
  })] })
774
746
  ]
775
747
  })]
776
748
  }, n))
777
749
  })] })
778
750
  ] }),
779
- A === "documents" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
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__ */ D("div", {
754
+ }), /* @__PURE__ */ C("div", {
783
755
  className: "space-y-6",
784
- children: [
785
- /* @__PURE__ */ D("div", {
786
- className: "flex items-center gap-2 rounded-lg bg-status-success-bg-subtle px-4 py-3",
787
- children: [/* @__PURE__ */ E(l, { className: "h-5 w-5 text-status-success-text" }), /* @__PURE__ */ E("p", {
788
- className: "text-sm font-medium text-status-success-text",
789
- children: "Your KYC is complete and verified"
790
- })]
791
- }),
792
- /* @__PURE__ */ E("div", {
793
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
794
- children: de.map((e) => /* @__PURE__ */ D("div", {
795
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
796
- children: [
797
- /* @__PURE__ */ E(m, { className: "mb-3 h-8 w-8 text-primary" }),
798
- /* @__PURE__ */ E("h3", {
799
- className: "text-base font-semibold text-text-primary",
800
- children: e.name
801
- }),
802
- /* @__PURE__ */ E("p", {
803
- className: "mt-1 text-sm text-text-secondary",
804
- children: e.status === "verified" ? `Verified on ${e.verifiedOn}` : e.status === "uploaded" ? `Uploaded on ${e.verifiedOn}` : "Template available"
805
- }),
806
- /* @__PURE__ */ D("div", {
807
- className: "mt-3 flex items-center gap-2",
808
- children: [
809
- e.status === "verified" && /* @__PURE__ */ D("span", {
810
- className: "flex items-center gap-1 rounded-full bg-status-success-bg-subtle px-2 py-0.5 text-xs font-medium text-status-success-text",
811
- children: [/* @__PURE__ */ E(l, { className: "h-3 w-3" }), "Verified"]
812
- }),
813
- e.status === "uploaded" && /* @__PURE__ */ D("span", {
814
- className: "flex items-center gap-1 rounded-full bg-[var(--color-accent-soft)] px-2 py-0.5 text-xs font-medium text-text-primary",
815
- children: [/* @__PURE__ */ E(m, { className: "h-3 w-3" }), "Uploaded"]
816
- }),
817
- /* @__PURE__ */ E("button", {
818
- type: "button",
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
- A === "security" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
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__ */ D("div", {
795
+ }), /* @__PURE__ */ C("div", {
856
796
  className: "space-y-6",
857
797
  children: [
858
- /* @__PURE__ */ D("div", {
798
+ /* @__PURE__ */ C("div", {
859
799
  className: "rounded-lg border border-border-subtle p-4 sm:p-6",
860
800
  children: [
861
- /* @__PURE__ */ D("div", {
801
+ /* @__PURE__ */ C("div", {
862
802
  className: "flex items-center gap-3 mb-3",
863
- children: [/* @__PURE__ */ E(oe, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
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__ */ E("p", {
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
- he ? /* @__PURE__ */ D("div", {
812
+ H ? /* @__PURE__ */ C("div", {
873
813
  className: "space-y-4",
874
814
  children: [
875
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("div", {
818
+ }), /* @__PURE__ */ C("div", {
879
819
  className: "relative",
880
- children: [/* @__PURE__ */ E("input", {
881
- type: Y ? "text" : "password",
882
- value: U,
883
- onChange: (e) => W(e.target.value),
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__ */ E("button", {
825
+ }), /* @__PURE__ */ S("button", {
886
826
  type: "button",
887
- onClick: () => ge(!Y),
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: E(Y ? p : f, { className: "h-4 w-4" })
829
+ children: S(X ? d : u, { className: "h-4 w-4" })
890
830
  })]
891
831
  })] }),
892
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ D("div", {
835
+ }), /* @__PURE__ */ C("div", {
896
836
  className: "relative",
897
- children: [/* @__PURE__ */ E("input", {
898
- type: X ? "text" : "password",
899
- value: G,
900
- onChange: (e) => K(e.target.value),
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__ */ E("button", {
842
+ }), /* @__PURE__ */ S("button", {
903
843
  type: "button",
904
- onClick: () => _e(!X),
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: E(X ? p : f, { className: "h-4 w-4" })
846
+ children: S(Z ? d : u, { className: "h-4 w-4" })
907
847
  })]
908
848
  })] }),
909
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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__ */ E("input", {
852
+ }), /* @__PURE__ */ S("input", {
913
853
  type: "password",
914
- value: q,
915
- onChange: (e) => J(e.target.value),
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__ */ D("div", {
858
+ /* @__PURE__ */ C("div", {
919
859
  className: "flex gap-3",
920
- children: [/* @__PURE__ */ E("button", {
860
+ children: [/* @__PURE__ */ S("button", {
921
861
  type: "button",
922
- onClick: xe,
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__ */ E("button", {
865
+ }), /* @__PURE__ */ S("button", {
926
866
  type: "button",
927
867
  onClick: () => {
928
- H(!1), W(""), K(""), J("");
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__ */ E("button", {
875
+ }) : /* @__PURE__ */ S("button", {
936
876
  type: "button",
937
- onClick: () => H(!0),
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__ */ D("div", {
883
+ /* @__PURE__ */ C("div", {
944
884
  className: "rounded-lg border border-border-subtle p-4 sm:p-6",
945
885
  children: [
946
- /* @__PURE__ */ D("div", {
886
+ /* @__PURE__ */ C("div", {
947
887
  className: "flex items-center gap-3 mb-3",
948
- children: [/* @__PURE__ */ E(x, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
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__ */ E("p", {
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__ */ D("div", {
897
+ /* @__PURE__ */ C("div", {
958
898
  className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 p-3",
959
- children: [/* @__PURE__ */ E("div", {
899
+ children: [/* @__PURE__ */ S("div", {
960
900
  className: "flex items-center gap-2",
961
- children: /* @__PURE__ */ E("span", {
962
- className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", Z ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-secondary"),
963
- children: Z ? "Enabled" : "Disabled"
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__ */ E("button", {
905
+ }), /* @__PURE__ */ S("button", {
966
906
  type: "button",
967
- onClick: Se,
968
- className: t("rounded-lg px-4 py-2 text-sm font-medium transition-colors", Z ? "border border-border-subtle text-text-primary hover:bg-accent" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
969
- children: Z ? "Disable 2FA" : "Enable 2FA"
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__ */ D("div", {
914
+ /* @__PURE__ */ C("div", {
975
915
  className: "rounded-lg border border-border-subtle p-4 sm:p-6",
976
- children: [/* @__PURE__ */ D("div", {
916
+ children: [/* @__PURE__ */ C("div", {
977
917
  className: "flex items-center gap-3 mb-4",
978
- children: [/* @__PURE__ */ E(g, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
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__ */ E("div", {
983
- className: "space-y-3",
984
- children: fe.map((e, t) => /* @__PURE__ */ D("div", {
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
- A === "notifications" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
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__ */ D("div", {
932
+ }), /* @__PURE__ */ C("div", {
1021
933
  className: "space-y-4",
1022
- children: [V.map((e) => /* @__PURE__ */ D("div", {
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__ */ D("div", {
936
+ children: [/* @__PURE__ */ C("div", {
1025
937
  className: "flex-1 pr-4",
1026
- children: [/* @__PURE__ */ E("h4", {
938
+ children: [/* @__PURE__ */ S("h4", {
1027
939
  className: "text-sm font-medium text-text-primary",
1028
940
  children: e.label
1029
- }), /* @__PURE__ */ E("p", {
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__ */ E("button", {
945
+ }), /* @__PURE__ */ S("button", {
1034
946
  type: "button",
1035
947
  onClick: () => {
1036
- M && be(e.id);
948
+ A && he(e.id);
1037
949
  },
1038
- disabled: !M,
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", !M && "cursor-not-allowed opacity-60"),
1040
- children: /* @__PURE__ */ E("span", { className: t("pointer-events-none inline-block h-5 w-5 translate-y-0.5 rounded-full bg-white shadow ring-0 transition-transform duration-200", e.enabled ? "translate-x-5" : "translate-x-0.5") })
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__ */ E("div", {
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__ */ D("p", {
956
+ children: /* @__PURE__ */ C("p", {
1045
957
  className: "text-sm text-text-secondary",
1046
958
  children: [
1047
- V.filter((e) => e.enabled).length,
959
+ B.filter((e) => e.enabled).length,
1048
960
  " of ",
1049
- V.length,
961
+ B.length,
1050
962
  " ",
1051
963
  "notification types enabled.",
1052
- !M && /* @__PURE__ */ E("span", {
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 { k as InvestorProfilePage };
979
+ export { D as InvestorProfilePage };
1068
980
 
1069
981
  //# sourceMappingURL=InvestorProfilePage.js.map