@burdenoff/microfe-adaptercloud 2026.614.1
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/README.md +12 -0
- package/dist/adaptercloud/AdapterCloudRoot.js +177 -0
- package/dist/adaptercloud/AdapterCloudRoot.js.map +1 -0
- package/dist/adaptercloud/AdapterCloudRoutes.js +215 -0
- package/dist/adaptercloud/AdapterCloudRoutes.js.map +1 -0
- package/dist/adaptercloud/components/EmptyState.js +28 -0
- package/dist/adaptercloud/components/EmptyState.js.map +1 -0
- package/dist/adaptercloud/components/InvestmentCard.js +96 -0
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -0
- package/dist/adaptercloud/components/MetricsCard.js +46 -0
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -0
- package/dist/adaptercloud/components/PageLayout.js +26 -0
- package/dist/adaptercloud/components/PageLayout.js.map +1 -0
- package/dist/adaptercloud/components/RatingDisplay.js +35 -0
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -0
- package/dist/adaptercloud/components/StatusBadge.js +45 -0
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -0
- package/dist/adaptercloud/context/AdapterCloudContext.js +93 -0
- package/dist/adaptercloud/context/AdapterCloudContext.js.map +1 -0
- package/dist/adaptercloud/context/index.js +1 -0
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js +223 -0
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js.map +1 -0
- package/dist/adaptercloud/index.js +7 -0
- package/dist/adaptercloud/mocks/data.js +1517 -0
- package/dist/adaptercloud/mocks/data.js.map +1 -0
- package/dist/adaptercloud/mocks/users.js +34 -0
- package/dist/adaptercloud/mocks/users.js.map +1 -0
- package/dist/adaptercloud/pages/HomePage.js +921 -0
- package/dist/adaptercloud/pages/HomePage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +645 -0
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +639 -0
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +421 -0
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +660 -0
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +259 -0
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +649 -0
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +869 -0
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +893 -0
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +834 -0
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +700 -0
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +760 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +886 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +631 -0
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +913 -0
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +881 -0
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +833 -0
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +1325 -0
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +665 -0
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/SettingsPage.js +964 -0
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +593 -0
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +620 -0
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +547 -0
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +532 -0
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +496 -0
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +621 -0
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +623 -0
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +477 -0
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +438 -0
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +388 -0
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +488 -0
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +606 -0
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +443 -0
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +849 -0
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +939 -0
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +681 -0
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +419 -0
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +399 -0
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +569 -0
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +1065 -0
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +496 -0
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +634 -0
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +675 -0
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +687 -0
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +578 -0
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -0
- package/dist/adaptercloud/store/adaptercloudStore.js +38 -0
- package/dist/adaptercloud/store/adaptercloudStore.js.map +1 -0
- package/dist/adaptercloud/store/index.js +1 -0
- package/dist/adaptercloud/utils/cn.js +10 -0
- package/dist/adaptercloud/utils/cn.js.map +1 -0
- package/dist/adaptercloud/utils/formatters.js +51 -0
- package/dist/adaptercloud/utils/formatters.js.map +1 -0
- package/dist/adaptercloud/utils/navigation.js +9 -0
- package/dist/adaptercloud/utils/navigation.js.map +1 -0
- package/dist/index.js +7 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,681 @@
|
|
|
1
|
+
import { useAdapterCloud as e } from "../../context/AdapterCloudContext.js";
|
|
2
|
+
import { cn as t } from "../../utils/cn.js";
|
|
3
|
+
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
+
import { MetricsCard as r } from "../../components/MetricsCard.js";
|
|
5
|
+
import { formatCurrency as i } from "../../utils/formatters.js";
|
|
6
|
+
import { useCallback as a, useEffect as o, useState as s } from "react";
|
|
7
|
+
import { Activity as c, ArrowDown as l, ArrowUp as u, BarChart3 as d, Calendar as f, Download as p, Lightbulb as m, PieChart as h, Shield as g, Target as _, TrendingUp as v, Wallet as y } from "lucide-react";
|
|
8
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
9
|
+
//#region src/adaptercloud/pages/investor/InvestorAnalyticsPage.tsx
|
|
10
|
+
var S = {
|
|
11
|
+
portfolioMetrics: {
|
|
12
|
+
totalValue: 283700,
|
|
13
|
+
totalInvested: 255e3,
|
|
14
|
+
totalReturns: 28700,
|
|
15
|
+
averageRoi: 19.6,
|
|
16
|
+
portfolioGrowth: 11.3,
|
|
17
|
+
bestPerforming: "Biryani House",
|
|
18
|
+
worstPerforming: "Healthy Bites"
|
|
19
|
+
},
|
|
20
|
+
performanceByCart: [
|
|
21
|
+
{
|
|
22
|
+
cartName: "Biryani House",
|
|
23
|
+
investedAmount: 6e4,
|
|
24
|
+
currentValue: 72e3,
|
|
25
|
+
returns: 12e3,
|
|
26
|
+
roi: 20
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
cartName: "South Indian Express",
|
|
30
|
+
investedAmount: 5e4,
|
|
31
|
+
currentValue: 58500,
|
|
32
|
+
returns: 8500,
|
|
33
|
+
roi: 17
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
cartName: "Pizza Corner",
|
|
37
|
+
investedAmount: 75e3,
|
|
38
|
+
currentValue: 82e3,
|
|
39
|
+
returns: 7e3,
|
|
40
|
+
roi: 9.3
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
cartName: "Healthy Bites",
|
|
44
|
+
investedAmount: 3e4,
|
|
45
|
+
currentValue: 31200,
|
|
46
|
+
returns: 1200,
|
|
47
|
+
roi: 4
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
cartName: "Street Food Junction",
|
|
51
|
+
investedAmount: 4e4,
|
|
52
|
+
currentValue: 4e4,
|
|
53
|
+
returns: 0,
|
|
54
|
+
roi: 0
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
performanceByCategory: [
|
|
58
|
+
{
|
|
59
|
+
category: "South Indian",
|
|
60
|
+
investedAmount: 11e4,
|
|
61
|
+
returns: 20500,
|
|
62
|
+
percentage: 43.1
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
category: "Fast Food",
|
|
66
|
+
investedAmount: 75e3,
|
|
67
|
+
returns: 7e3,
|
|
68
|
+
percentage: 29.4
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
category: "Street Food",
|
|
72
|
+
investedAmount: 4e4,
|
|
73
|
+
returns: 0,
|
|
74
|
+
percentage: 15.7
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
category: "Healthy Food",
|
|
78
|
+
investedAmount: 3e4,
|
|
79
|
+
returns: 1200,
|
|
80
|
+
percentage: 11.8
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
monthlyPerformance: [
|
|
84
|
+
{
|
|
85
|
+
month: "Jun 2024",
|
|
86
|
+
invested: 195e3,
|
|
87
|
+
value: 202e3,
|
|
88
|
+
returns: 7e3
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
month: "Jul 2024",
|
|
92
|
+
invested: 215e3,
|
|
93
|
+
value: 228e3,
|
|
94
|
+
returns: 13e3
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
month: "Aug 2024",
|
|
98
|
+
invested: 255e3,
|
|
99
|
+
value: 265e3,
|
|
100
|
+
returns: 1e4
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
month: "Sep 2024",
|
|
104
|
+
invested: 255e3,
|
|
105
|
+
value: 275e3,
|
|
106
|
+
returns: 2e4
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
month: "Oct 2024",
|
|
110
|
+
invested: 255e3,
|
|
111
|
+
value: 28e4,
|
|
112
|
+
returns: 25e3
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
month: "Nov 2024",
|
|
116
|
+
invested: 255e3,
|
|
117
|
+
value: 283700,
|
|
118
|
+
returns: 28700
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
riskAnalysis: {
|
|
122
|
+
riskScore: 3.2,
|
|
123
|
+
diversificationScore: 7.8,
|
|
124
|
+
volatilityScore: 2.5,
|
|
125
|
+
recommendations: [
|
|
126
|
+
"Consider diversifying into more food categories",
|
|
127
|
+
"Your portfolio shows good risk distribution",
|
|
128
|
+
"Consider investing in carts from different locations",
|
|
129
|
+
"Monitor underperforming investments closely",
|
|
130
|
+
"Explore premium segment opportunities for higher returns"
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
function C(e) {
|
|
135
|
+
return e <= 2 ? {
|
|
136
|
+
label: "Low Risk",
|
|
137
|
+
color: "text-green-600 dark:text-green-400"
|
|
138
|
+
} : e <= 4 ? {
|
|
139
|
+
label: "Moderate Risk",
|
|
140
|
+
color: "text-yellow-600 dark:text-yellow-400"
|
|
141
|
+
} : {
|
|
142
|
+
label: "High Risk",
|
|
143
|
+
color: "text-red-600 dark:text-red-400"
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function w(e) {
|
|
147
|
+
return e <= 2 ? "bg-green-500" : e <= 4 ? "bg-yellow-500" : "bg-red-500";
|
|
148
|
+
}
|
|
149
|
+
function T(e) {
|
|
150
|
+
return e >= 8 ? {
|
|
151
|
+
label: "Well Diversified",
|
|
152
|
+
color: "text-green-600 dark:text-green-400"
|
|
153
|
+
} : e >= 6 ? {
|
|
154
|
+
label: "Moderately Diversified",
|
|
155
|
+
color: "text-yellow-600 dark:text-yellow-400"
|
|
156
|
+
} : {
|
|
157
|
+
label: "Poorly Diversified",
|
|
158
|
+
color: "text-red-600 dark:text-red-400"
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function E(e) {
|
|
162
|
+
return e >= 8 ? "bg-green-500" : e >= 6 ? "bg-yellow-500" : "bg-red-500";
|
|
163
|
+
}
|
|
164
|
+
function D() {
|
|
165
|
+
let { navigateTo: D } = e(), [O, k] = s(!0), [A, j] = s("6m"), [M, N] = s(null), [P, F] = s("idle");
|
|
166
|
+
o(() => {
|
|
167
|
+
k(!0);
|
|
168
|
+
let e = setTimeout(() => {
|
|
169
|
+
N(S), k(!1);
|
|
170
|
+
}, 600);
|
|
171
|
+
return () => clearTimeout(e);
|
|
172
|
+
}, [A]);
|
|
173
|
+
let I = a(() => {
|
|
174
|
+
F("exporting"), setTimeout(() => {
|
|
175
|
+
F("done"), setTimeout(() => F("idle"), 2e3);
|
|
176
|
+
}, 1200);
|
|
177
|
+
}, []);
|
|
178
|
+
if (O || !M) return /* @__PURE__ */ b(n, {
|
|
179
|
+
title: "Investment Analytics",
|
|
180
|
+
description: "Loading analytics...",
|
|
181
|
+
children: /* @__PURE__ */ b("div", {
|
|
182
|
+
className: "flex items-center justify-center py-20",
|
|
183
|
+
children: /* @__PURE__ */ x("div", {
|
|
184
|
+
className: "text-center",
|
|
185
|
+
children: [/* @__PURE__ */ b("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-primary" }), /* @__PURE__ */ b("p", {
|
|
186
|
+
className: "text-sm text-muted-foreground",
|
|
187
|
+
children: "Loading analytics data..."
|
|
188
|
+
})]
|
|
189
|
+
})
|
|
190
|
+
})
|
|
191
|
+
});
|
|
192
|
+
let L = C(M.riskAnalysis.riskScore), R = T(M.riskAnalysis.diversificationScore), z = [...M.performanceByCart].sort((e, t) => t.roi - e.roi);
|
|
193
|
+
return /* @__PURE__ */ x(n, {
|
|
194
|
+
title: "Investment Analytics",
|
|
195
|
+
description: "Comprehensive analysis of your portfolio performance",
|
|
196
|
+
actions: /* @__PURE__ */ x("div", {
|
|
197
|
+
className: "flex items-center gap-3",
|
|
198
|
+
children: [/* @__PURE__ */ x("select", {
|
|
199
|
+
value: A,
|
|
200
|
+
onChange: (e) => j(e.target.value),
|
|
201
|
+
className: "rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring",
|
|
202
|
+
children: [
|
|
203
|
+
/* @__PURE__ */ b("option", {
|
|
204
|
+
value: "1m",
|
|
205
|
+
children: "Last Month"
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ b("option", {
|
|
208
|
+
value: "3m",
|
|
209
|
+
children: "Last 3 Months"
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ b("option", {
|
|
212
|
+
value: "6m",
|
|
213
|
+
children: "Last 6 Months"
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ b("option", {
|
|
216
|
+
value: "1y",
|
|
217
|
+
children: "Last Year"
|
|
218
|
+
}),
|
|
219
|
+
/* @__PURE__ */ b("option", {
|
|
220
|
+
value: "all",
|
|
221
|
+
children: "All Time"
|
|
222
|
+
})
|
|
223
|
+
]
|
|
224
|
+
}), /* @__PURE__ */ x("button", {
|
|
225
|
+
type: "button",
|
|
226
|
+
onClick: I,
|
|
227
|
+
disabled: P === "exporting",
|
|
228
|
+
className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors", P === "exporting" ? "cursor-not-allowed bg-muted text-muted-foreground" : P === "done" ? "bg-green-600 text-white" : "bg-primary text-primary-foreground hover:bg-primary/90"),
|
|
229
|
+
children: [/* @__PURE__ */ b(p, { className: "h-4 w-4" }), P === "exporting" ? "Exporting..." : P === "done" ? "Exported!" : "Export Report"]
|
|
230
|
+
})]
|
|
231
|
+
}),
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ x("div", {
|
|
234
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ b(r, {
|
|
237
|
+
icon: /* @__PURE__ */ b(y, { className: "h-5 w-5" }),
|
|
238
|
+
value: i(M.portfolioMetrics.totalValue, { minimumFractionDigits: 0 }),
|
|
239
|
+
label: "Portfolio Value",
|
|
240
|
+
trend: "up",
|
|
241
|
+
trendValue: `+${M.portfolioMetrics.portfolioGrowth}% total growth`
|
|
242
|
+
}),
|
|
243
|
+
/* @__PURE__ */ b(r, {
|
|
244
|
+
icon: /* @__PURE__ */ b(v, { className: "h-5 w-5" }),
|
|
245
|
+
value: i(M.portfolioMetrics.totalReturns, { minimumFractionDigits: 0 }),
|
|
246
|
+
label: "Total Returns",
|
|
247
|
+
trend: "up",
|
|
248
|
+
trendValue: "Profit earned so far"
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ b(r, {
|
|
251
|
+
icon: /* @__PURE__ */ b(_, { className: "h-5 w-5" }),
|
|
252
|
+
value: `${M.portfolioMetrics.averageRoi}%`,
|
|
253
|
+
label: "Average ROI",
|
|
254
|
+
trend: "up",
|
|
255
|
+
trendValue: "Across all investments"
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ b(r, {
|
|
258
|
+
icon: /* @__PURE__ */ b(c, { className: "h-5 w-5" }),
|
|
259
|
+
value: `${M.riskAnalysis.riskScore}/5`,
|
|
260
|
+
label: "Risk Score",
|
|
261
|
+
trend: "neutral",
|
|
262
|
+
trendValue: L.label
|
|
263
|
+
})
|
|
264
|
+
]
|
|
265
|
+
}),
|
|
266
|
+
/* @__PURE__ */ x("div", {
|
|
267
|
+
className: "mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
268
|
+
children: [/* @__PURE__ */ x("div", {
|
|
269
|
+
className: "flex items-center gap-3 rounded-lg border border-border bg-card p-4",
|
|
270
|
+
children: [/* @__PURE__ */ b("div", {
|
|
271
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-green-500/10",
|
|
272
|
+
children: /* @__PURE__ */ b(u, { className: "h-5 w-5 text-green-600 dark:text-green-400" })
|
|
273
|
+
}), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
274
|
+
className: "text-xs text-muted-foreground",
|
|
275
|
+
children: "Best Performing"
|
|
276
|
+
}), /* @__PURE__ */ b("p", {
|
|
277
|
+
className: "text-sm font-semibold text-green-600 dark:text-green-400",
|
|
278
|
+
children: M.portfolioMetrics.bestPerforming
|
|
279
|
+
})] })]
|
|
280
|
+
}), /* @__PURE__ */ x("div", {
|
|
281
|
+
className: "flex items-center gap-3 rounded-lg border border-border bg-card p-4",
|
|
282
|
+
children: [/* @__PURE__ */ b("div", {
|
|
283
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-red-500/10",
|
|
284
|
+
children: /* @__PURE__ */ b(l, { className: "h-5 w-5 text-red-600 dark:text-red-400" })
|
|
285
|
+
}), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
286
|
+
className: "text-xs text-muted-foreground",
|
|
287
|
+
children: "Worst Performing"
|
|
288
|
+
}), /* @__PURE__ */ b("p", {
|
|
289
|
+
className: "text-sm font-semibold text-foreground",
|
|
290
|
+
children: M.portfolioMetrics.worstPerforming
|
|
291
|
+
})] })]
|
|
292
|
+
})]
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ x("div", {
|
|
295
|
+
className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
296
|
+
children: [/* @__PURE__ */ x("section", { children: [/* @__PURE__ */ x("div", {
|
|
297
|
+
className: "mb-4 flex items-center gap-2",
|
|
298
|
+
children: [/* @__PURE__ */ b(d, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ b("h2", {
|
|
299
|
+
className: "text-lg font-semibold text-foreground",
|
|
300
|
+
children: "Performance by Cart"
|
|
301
|
+
})]
|
|
302
|
+
}), /* @__PURE__ */ b("div", {
|
|
303
|
+
className: "space-y-3",
|
|
304
|
+
children: z.map((e, n) => /* @__PURE__ */ x("div", {
|
|
305
|
+
className: "flex items-center justify-between rounded-lg border border-border bg-card p-3",
|
|
306
|
+
children: [/* @__PURE__ */ x("div", {
|
|
307
|
+
className: "flex items-center gap-3",
|
|
308
|
+
children: [/* @__PURE__ */ b("div", {
|
|
309
|
+
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary text-xs font-bold text-primary-foreground",
|
|
310
|
+
children: n + 1
|
|
311
|
+
}), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
312
|
+
className: "text-sm font-medium text-foreground",
|
|
313
|
+
children: e.cartName
|
|
314
|
+
}), /* @__PURE__ */ x("p", {
|
|
315
|
+
className: "text-xs text-muted-foreground",
|
|
316
|
+
children: [i(e.investedAmount, { minimumFractionDigits: 0 }), " invested"]
|
|
317
|
+
})] })]
|
|
318
|
+
}), /* @__PURE__ */ x("div", {
|
|
319
|
+
className: "text-right",
|
|
320
|
+
children: [/* @__PURE__ */ x("p", {
|
|
321
|
+
className: t("text-sm font-semibold", e.returns >= 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
|
|
322
|
+
children: [e.returns >= 0 ? "+" : "", i(e.returns, { minimumFractionDigits: 0 })]
|
|
323
|
+
}), /* @__PURE__ */ x("p", {
|
|
324
|
+
className: t("text-xs", e.roi >= 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
|
|
325
|
+
children: [
|
|
326
|
+
e.roi >= 0 ? "+" : "",
|
|
327
|
+
e.roi,
|
|
328
|
+
"% ROI"
|
|
329
|
+
]
|
|
330
|
+
})]
|
|
331
|
+
})]
|
|
332
|
+
}, e.cartName))
|
|
333
|
+
})] }), /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ x("div", {
|
|
334
|
+
className: "mb-4 flex items-center gap-2",
|
|
335
|
+
children: [/* @__PURE__ */ b(h, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ b("h2", {
|
|
336
|
+
className: "text-lg font-semibold text-foreground",
|
|
337
|
+
children: "Category Distribution"
|
|
338
|
+
})]
|
|
339
|
+
}), /* @__PURE__ */ b("div", {
|
|
340
|
+
className: "space-y-4",
|
|
341
|
+
children: M.performanceByCategory.map((e) => /* @__PURE__ */ x("div", {
|
|
342
|
+
className: "rounded-lg border border-border bg-card p-3",
|
|
343
|
+
children: [
|
|
344
|
+
/* @__PURE__ */ x("div", {
|
|
345
|
+
className: "mb-2 flex items-center justify-between",
|
|
346
|
+
children: [/* @__PURE__ */ b("span", {
|
|
347
|
+
className: "text-sm font-medium text-foreground",
|
|
348
|
+
children: e.category
|
|
349
|
+
}), /* @__PURE__ */ x("span", {
|
|
350
|
+
className: "text-sm text-muted-foreground",
|
|
351
|
+
children: [e.percentage, "%"]
|
|
352
|
+
})]
|
|
353
|
+
}),
|
|
354
|
+
/* @__PURE__ */ b("div", {
|
|
355
|
+
className: "mb-2 h-2 w-full overflow-hidden rounded-full bg-muted",
|
|
356
|
+
children: /* @__PURE__ */ b("div", {
|
|
357
|
+
className: "h-full rounded-full bg-primary transition-all duration-300",
|
|
358
|
+
style: { width: `${e.percentage}%` }
|
|
359
|
+
})
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ x("div", {
|
|
362
|
+
className: "flex items-center justify-between",
|
|
363
|
+
children: [/* @__PURE__ */ x("span", {
|
|
364
|
+
className: "text-xs text-muted-foreground",
|
|
365
|
+
children: [i(e.investedAmount, { minimumFractionDigits: 0 }), " invested"]
|
|
366
|
+
}), /* @__PURE__ */ x("span", {
|
|
367
|
+
className: t("text-xs font-semibold", e.returns >= 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
|
|
368
|
+
children: [e.returns >= 0 ? "+" : "", i(e.returns, { minimumFractionDigits: 0 })]
|
|
369
|
+
})]
|
|
370
|
+
})
|
|
371
|
+
]
|
|
372
|
+
}, e.category))
|
|
373
|
+
})] })]
|
|
374
|
+
}),
|
|
375
|
+
/* @__PURE__ */ x("section", {
|
|
376
|
+
className: "mt-8",
|
|
377
|
+
children: [/* @__PURE__ */ x("div", {
|
|
378
|
+
className: "mb-4 flex items-center gap-2",
|
|
379
|
+
children: [/* @__PURE__ */ b(f, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ b("h2", {
|
|
380
|
+
className: "text-lg font-semibold text-foreground",
|
|
381
|
+
children: "Portfolio Growth Trend"
|
|
382
|
+
})]
|
|
383
|
+
}), /* @__PURE__ */ b("div", {
|
|
384
|
+
className: "overflow-hidden rounded-lg border border-border bg-card",
|
|
385
|
+
children: /* @__PURE__ */ b("div", {
|
|
386
|
+
className: "overflow-x-auto",
|
|
387
|
+
children: /* @__PURE__ */ x("table", {
|
|
388
|
+
className: "w-full",
|
|
389
|
+
children: [/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ x("tr", {
|
|
390
|
+
className: "border-b border-border bg-muted/50",
|
|
391
|
+
children: [
|
|
392
|
+
/* @__PURE__ */ b("th", {
|
|
393
|
+
className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground sm:px-6",
|
|
394
|
+
children: "Month"
|
|
395
|
+
}),
|
|
396
|
+
/* @__PURE__ */ b("th", {
|
|
397
|
+
className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground sm:px-6",
|
|
398
|
+
children: "Invested"
|
|
399
|
+
}),
|
|
400
|
+
/* @__PURE__ */ b("th", {
|
|
401
|
+
className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground sm:px-6",
|
|
402
|
+
children: "Portfolio Value"
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ b("th", {
|
|
405
|
+
className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground sm:px-6",
|
|
406
|
+
children: "Returns"
|
|
407
|
+
}),
|
|
408
|
+
/* @__PURE__ */ b("th", {
|
|
409
|
+
className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground sm:px-6",
|
|
410
|
+
children: "Growth %"
|
|
411
|
+
})
|
|
412
|
+
]
|
|
413
|
+
}) }), /* @__PURE__ */ b("tbody", {
|
|
414
|
+
className: "divide-y divide-border",
|
|
415
|
+
children: M.monthlyPerformance.map((e) => {
|
|
416
|
+
let n = e.invested > 0 ? ((e.value - e.invested) / e.invested * 100).toFixed(1) : "0.0";
|
|
417
|
+
return /* @__PURE__ */ x("tr", {
|
|
418
|
+
className: "hover:bg-accent/50 transition-colors",
|
|
419
|
+
children: [
|
|
420
|
+
/* @__PURE__ */ b("td", {
|
|
421
|
+
className: "whitespace-nowrap px-4 py-4 text-sm font-medium text-foreground sm:px-6",
|
|
422
|
+
children: e.month
|
|
423
|
+
}),
|
|
424
|
+
/* @__PURE__ */ b("td", {
|
|
425
|
+
className: "whitespace-nowrap px-4 py-4 text-sm text-foreground sm:px-6",
|
|
426
|
+
children: i(e.invested, { minimumFractionDigits: 0 })
|
|
427
|
+
}),
|
|
428
|
+
/* @__PURE__ */ b("td", {
|
|
429
|
+
className: "whitespace-nowrap px-4 py-4 text-sm text-foreground sm:px-6",
|
|
430
|
+
children: i(e.value, { minimumFractionDigits: 0 })
|
|
431
|
+
}),
|
|
432
|
+
/* @__PURE__ */ b("td", {
|
|
433
|
+
className: "whitespace-nowrap px-4 py-4 text-sm sm:px-6",
|
|
434
|
+
children: /* @__PURE__ */ x("span", {
|
|
435
|
+
className: t("font-semibold", e.returns >= 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
|
|
436
|
+
children: [e.returns >= 0 ? "+" : "", i(e.returns, { minimumFractionDigits: 0 })]
|
|
437
|
+
})
|
|
438
|
+
}),
|
|
439
|
+
/* @__PURE__ */ b("td", {
|
|
440
|
+
className: "whitespace-nowrap px-4 py-4 text-sm sm:px-6",
|
|
441
|
+
children: /* @__PURE__ */ x("span", {
|
|
442
|
+
className: t("font-medium", parseFloat(n) >= 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
|
|
443
|
+
children: [
|
|
444
|
+
parseFloat(n) >= 0 ? "+" : "",
|
|
445
|
+
n,
|
|
446
|
+
"%"
|
|
447
|
+
]
|
|
448
|
+
})
|
|
449
|
+
})
|
|
450
|
+
]
|
|
451
|
+
}, e.month);
|
|
452
|
+
})
|
|
453
|
+
})]
|
|
454
|
+
})
|
|
455
|
+
})
|
|
456
|
+
})]
|
|
457
|
+
}),
|
|
458
|
+
/* @__PURE__ */ x("div", {
|
|
459
|
+
className: "mt-8 grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
460
|
+
children: [/* @__PURE__ */ x("section", { children: [/* @__PURE__ */ x("div", {
|
|
461
|
+
className: "mb-4 flex items-center gap-2",
|
|
462
|
+
children: [/* @__PURE__ */ b(g, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ b("h2", {
|
|
463
|
+
className: "text-lg font-semibold text-foreground",
|
|
464
|
+
children: "Risk Analysis"
|
|
465
|
+
})]
|
|
466
|
+
}), /* @__PURE__ */ b("div", {
|
|
467
|
+
className: "rounded-lg border border-border bg-card p-4 sm:p-6",
|
|
468
|
+
children: /* @__PURE__ */ x("div", {
|
|
469
|
+
className: "space-y-5",
|
|
470
|
+
children: [
|
|
471
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
|
|
472
|
+
className: "mb-2 flex items-center justify-between",
|
|
473
|
+
children: [/* @__PURE__ */ b("span", {
|
|
474
|
+
className: "text-sm text-foreground",
|
|
475
|
+
children: "Risk Score"
|
|
476
|
+
}), /* @__PURE__ */ x("span", {
|
|
477
|
+
className: t("text-sm font-semibold", L.color),
|
|
478
|
+
children: [
|
|
479
|
+
M.riskAnalysis.riskScore,
|
|
480
|
+
"/5 (",
|
|
481
|
+
L.label,
|
|
482
|
+
")"
|
|
483
|
+
]
|
|
484
|
+
})]
|
|
485
|
+
}), /* @__PURE__ */ b("div", {
|
|
486
|
+
className: "h-3 w-full overflow-hidden rounded-full bg-muted",
|
|
487
|
+
children: /* @__PURE__ */ b("div", {
|
|
488
|
+
className: t("h-full rounded-full transition-all duration-300", w(M.riskAnalysis.riskScore)),
|
|
489
|
+
style: { width: `${M.riskAnalysis.riskScore / 5 * 100}%` }
|
|
490
|
+
})
|
|
491
|
+
})] }),
|
|
492
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
|
|
493
|
+
className: "mb-2 flex items-center justify-between",
|
|
494
|
+
children: [/* @__PURE__ */ b("span", {
|
|
495
|
+
className: "text-sm text-foreground",
|
|
496
|
+
children: "Diversification"
|
|
497
|
+
}), /* @__PURE__ */ x("span", {
|
|
498
|
+
className: t("text-sm font-semibold", R.color),
|
|
499
|
+
children: [
|
|
500
|
+
M.riskAnalysis.diversificationScore,
|
|
501
|
+
"/10 (",
|
|
502
|
+
R.label,
|
|
503
|
+
")"
|
|
504
|
+
]
|
|
505
|
+
})]
|
|
506
|
+
}), /* @__PURE__ */ b("div", {
|
|
507
|
+
className: "h-3 w-full overflow-hidden rounded-full bg-muted",
|
|
508
|
+
children: /* @__PURE__ */ b("div", {
|
|
509
|
+
className: t("h-full rounded-full transition-all duration-300", E(M.riskAnalysis.diversificationScore)),
|
|
510
|
+
style: { width: `${M.riskAnalysis.diversificationScore / 10 * 100}%` }
|
|
511
|
+
})
|
|
512
|
+
})] }),
|
|
513
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
|
|
514
|
+
className: "mb-2 flex items-center justify-between",
|
|
515
|
+
children: [/* @__PURE__ */ b("span", {
|
|
516
|
+
className: "text-sm text-foreground",
|
|
517
|
+
children: "Volatility"
|
|
518
|
+
}), /* @__PURE__ */ x("span", {
|
|
519
|
+
className: t("text-sm font-semibold", C(M.riskAnalysis.volatilityScore).color),
|
|
520
|
+
children: [M.riskAnalysis.volatilityScore, "/5"]
|
|
521
|
+
})]
|
|
522
|
+
}), /* @__PURE__ */ b("div", {
|
|
523
|
+
className: "h-3 w-full overflow-hidden rounded-full bg-muted",
|
|
524
|
+
children: /* @__PURE__ */ b("div", {
|
|
525
|
+
className: t("h-full rounded-full transition-all duration-300", w(M.riskAnalysis.volatilityScore)),
|
|
526
|
+
style: { width: `${M.riskAnalysis.volatilityScore / 5 * 100}%` }
|
|
527
|
+
})
|
|
528
|
+
})] }),
|
|
529
|
+
/* @__PURE__ */ x("div", {
|
|
530
|
+
className: "grid grid-cols-2 gap-3 border-t border-border pt-4",
|
|
531
|
+
children: [/* @__PURE__ */ x("div", {
|
|
532
|
+
className: "rounded-lg bg-muted/50 p-3 text-center",
|
|
533
|
+
children: [/* @__PURE__ */ b("p", {
|
|
534
|
+
className: "text-lg font-bold text-foreground",
|
|
535
|
+
children: M.performanceByCart.length
|
|
536
|
+
}), /* @__PURE__ */ b("p", {
|
|
537
|
+
className: "text-xs text-muted-foreground",
|
|
538
|
+
children: "Active Investments"
|
|
539
|
+
})]
|
|
540
|
+
}), /* @__PURE__ */ x("div", {
|
|
541
|
+
className: "rounded-lg bg-muted/50 p-3 text-center",
|
|
542
|
+
children: [/* @__PURE__ */ b("p", {
|
|
543
|
+
className: "text-lg font-bold text-foreground",
|
|
544
|
+
children: M.performanceByCategory.length
|
|
545
|
+
}), /* @__PURE__ */ b("p", {
|
|
546
|
+
className: "text-xs text-muted-foreground",
|
|
547
|
+
children: "Sectors Covered"
|
|
548
|
+
})]
|
|
549
|
+
})]
|
|
550
|
+
})
|
|
551
|
+
]
|
|
552
|
+
})
|
|
553
|
+
})] }), /* @__PURE__ */ x("section", { children: [/* @__PURE__ */ x("div", {
|
|
554
|
+
className: "mb-4 flex items-center gap-2",
|
|
555
|
+
children: [/* @__PURE__ */ b(m, { className: "h-5 w-5 text-yellow-500" }), /* @__PURE__ */ b("h2", {
|
|
556
|
+
className: "text-lg font-semibold text-foreground",
|
|
557
|
+
children: "Recommendations"
|
|
558
|
+
})]
|
|
559
|
+
}), /* @__PURE__ */ x("div", {
|
|
560
|
+
className: "rounded-lg border border-border bg-card p-4 sm:p-6",
|
|
561
|
+
children: [/* @__PURE__ */ b("div", {
|
|
562
|
+
className: "space-y-3",
|
|
563
|
+
children: M.riskAnalysis.recommendations.map((e, t) => /* @__PURE__ */ x("div", {
|
|
564
|
+
className: "flex items-start gap-3 rounded-lg border border-border bg-muted/30 p-3",
|
|
565
|
+
children: [/* @__PURE__ */ b("div", {
|
|
566
|
+
className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-primary text-xs font-bold text-primary-foreground",
|
|
567
|
+
children: t + 1
|
|
568
|
+
}), /* @__PURE__ */ b("p", {
|
|
569
|
+
className: "text-sm leading-relaxed text-foreground",
|
|
570
|
+
children: e
|
|
571
|
+
})]
|
|
572
|
+
}, t))
|
|
573
|
+
}), /* @__PURE__ */ x("div", {
|
|
574
|
+
className: "mt-5 rounded-lg border border-border bg-muted/50 p-4",
|
|
575
|
+
children: [/* @__PURE__ */ b("h4", {
|
|
576
|
+
className: "mb-2 text-sm font-semibold text-foreground",
|
|
577
|
+
children: "Overall Assessment"
|
|
578
|
+
}), /* @__PURE__ */ x("div", {
|
|
579
|
+
className: "space-y-2",
|
|
580
|
+
children: [
|
|
581
|
+
/* @__PURE__ */ x("div", {
|
|
582
|
+
className: "flex items-center justify-between",
|
|
583
|
+
children: [/* @__PURE__ */ b("span", {
|
|
584
|
+
className: "text-xs text-muted-foreground",
|
|
585
|
+
children: "Portfolio Health"
|
|
586
|
+
}), /* @__PURE__ */ x("div", {
|
|
587
|
+
className: "flex items-center gap-2",
|
|
588
|
+
children: [/* @__PURE__ */ b("div", {
|
|
589
|
+
className: "flex gap-0.5",
|
|
590
|
+
children: [
|
|
591
|
+
1,
|
|
592
|
+
2,
|
|
593
|
+
3,
|
|
594
|
+
4,
|
|
595
|
+
5
|
|
596
|
+
].map((e) => /* @__PURE__ */ b("div", { className: t("h-2 w-4 rounded-sm", e <= 4 ? "bg-green-500" : "bg-muted") }, e))
|
|
597
|
+
}), /* @__PURE__ */ b("span", {
|
|
598
|
+
className: "text-xs font-medium text-foreground",
|
|
599
|
+
children: "4/5"
|
|
600
|
+
})]
|
|
601
|
+
})]
|
|
602
|
+
}),
|
|
603
|
+
/* @__PURE__ */ x("div", {
|
|
604
|
+
className: "flex items-center justify-between",
|
|
605
|
+
children: [/* @__PURE__ */ b("span", {
|
|
606
|
+
className: "text-xs text-muted-foreground",
|
|
607
|
+
children: "Growth Potential"
|
|
608
|
+
}), /* @__PURE__ */ x("div", {
|
|
609
|
+
className: "flex items-center gap-2",
|
|
610
|
+
children: [/* @__PURE__ */ b("div", {
|
|
611
|
+
className: "flex gap-0.5",
|
|
612
|
+
children: [
|
|
613
|
+
1,
|
|
614
|
+
2,
|
|
615
|
+
3,
|
|
616
|
+
4,
|
|
617
|
+
5
|
|
618
|
+
].map((e) => /* @__PURE__ */ b("div", { className: t("h-2 w-4 rounded-sm", e <= 3 ? "bg-yellow-500" : "bg-muted") }, e))
|
|
619
|
+
}), /* @__PURE__ */ b("span", {
|
|
620
|
+
className: "text-xs font-medium text-foreground",
|
|
621
|
+
children: "3/5"
|
|
622
|
+
})]
|
|
623
|
+
})]
|
|
624
|
+
}),
|
|
625
|
+
/* @__PURE__ */ x("div", {
|
|
626
|
+
className: "flex items-center justify-between",
|
|
627
|
+
children: [/* @__PURE__ */ b("span", {
|
|
628
|
+
className: "text-xs text-muted-foreground",
|
|
629
|
+
children: "Income Stability"
|
|
630
|
+
}), /* @__PURE__ */ x("div", {
|
|
631
|
+
className: "flex items-center gap-2",
|
|
632
|
+
children: [/* @__PURE__ */ b("div", {
|
|
633
|
+
className: "flex gap-0.5",
|
|
634
|
+
children: [
|
|
635
|
+
1,
|
|
636
|
+
2,
|
|
637
|
+
3,
|
|
638
|
+
4,
|
|
639
|
+
5
|
|
640
|
+
].map((e) => /* @__PURE__ */ b("div", { className: t("h-2 w-4 rounded-sm", e <= 4 ? "bg-green-500" : "bg-muted") }, e))
|
|
641
|
+
}), /* @__PURE__ */ b("span", {
|
|
642
|
+
className: "text-xs font-medium text-foreground",
|
|
643
|
+
children: "4/5"
|
|
644
|
+
})]
|
|
645
|
+
})]
|
|
646
|
+
})
|
|
647
|
+
]
|
|
648
|
+
})]
|
|
649
|
+
})]
|
|
650
|
+
})] })]
|
|
651
|
+
}),
|
|
652
|
+
/* @__PURE__ */ x("div", {
|
|
653
|
+
className: "mt-8 flex flex-wrap gap-3",
|
|
654
|
+
children: [
|
|
655
|
+
/* @__PURE__ */ x("button", {
|
|
656
|
+
type: "button",
|
|
657
|
+
onClick: () => D("/investor/portfolio"),
|
|
658
|
+
className: "flex items-center gap-2 rounded-lg border border-border px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
659
|
+
children: [/* @__PURE__ */ b(h, { className: "h-4 w-4" }), "View Portfolio"]
|
|
660
|
+
}),
|
|
661
|
+
/* @__PURE__ */ x("button", {
|
|
662
|
+
type: "button",
|
|
663
|
+
onClick: () => D("/investor/opportunities"),
|
|
664
|
+
className: "flex items-center gap-2 rounded-lg border border-border px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
665
|
+
children: [/* @__PURE__ */ b(_, { className: "h-4 w-4" }), "Browse Opportunities"]
|
|
666
|
+
}),
|
|
667
|
+
/* @__PURE__ */ x("button", {
|
|
668
|
+
type: "button",
|
|
669
|
+
onClick: () => D("/investor/investments"),
|
|
670
|
+
className: "flex items-center gap-2 rounded-lg border border-border px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
671
|
+
children: [/* @__PURE__ */ b(y, { className: "h-4 w-4" }), "My Investments"]
|
|
672
|
+
})
|
|
673
|
+
]
|
|
674
|
+
})
|
|
675
|
+
]
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
//#endregion
|
|
679
|
+
export { D as InvestorAnalyticsPage };
|
|
680
|
+
|
|
681
|
+
//# sourceMappingURL=InvestorAnalyticsPage.js.map
|