@burdenoff/microfe-labsofscience 2026.624.1 → 2026.626.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.
Files changed (103) hide show
  1. package/dist/labsofscience/components/EmptyState.js +18 -11
  2. package/dist/labsofscience/components/EmptyState.js.map +1 -1
  3. package/dist/labsofscience/components/InvestmentCard.js +26 -24
  4. package/dist/labsofscience/components/InvestmentCard.js.map +1 -1
  5. package/dist/labsofscience/components/MetricsCard.js +19 -13
  6. package/dist/labsofscience/components/MetricsCard.js.map +1 -1
  7. package/dist/labsofscience/components/PageLayout.js +23 -15
  8. package/dist/labsofscience/components/PageLayout.js.map +1 -1
  9. package/dist/labsofscience/components/RatingDisplay.js +1 -1
  10. package/dist/labsofscience/components/RatingDisplay.js.map +1 -1
  11. package/dist/labsofscience/components/StatusBadge.js +34 -15
  12. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  13. package/dist/labsofscience/pages/HomePage.js +242 -223
  14. package/dist/labsofscience/pages/HomePage.js.map +1 -1
  15. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +107 -101
  16. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
  17. package/dist/labsofscience/pages/admin/AdminDashboard.js +118 -85
  18. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
  19. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +51 -45
  20. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
  21. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +245 -240
  22. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
  23. package/dist/labsofscience/pages/admin/AdminProfilePage.js +131 -129
  24. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
  25. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +493 -491
  26. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
  27. package/dist/labsofscience/pages/admin/CartManagementPage.js +163 -158
  28. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
  29. package/dist/labsofscience/pages/admin/UserManagementPage.js +307 -302
  30. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
  31. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +89 -84
  32. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  33. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +187 -182
  34. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  35. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +119 -88
  36. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  37. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +149 -144
  38. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  39. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +151 -146
  40. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  41. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +344 -346
  42. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  43. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +269 -271
  44. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
  45. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +293 -287
  46. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
  47. package/dist/labsofscience/pages/common/HelpSupportPage.js +344 -345
  48. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
  49. package/dist/labsofscience/pages/common/NotificationCenterPage.js +94 -87
  50. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
  51. package/dist/labsofscience/pages/common/SettingsPage.js +748 -739
  52. package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
  53. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +400 -356
  54. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
  55. package/dist/labsofscience/pages/customer/CartDetailPage.js +281 -248
  56. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
  57. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +178 -166
  58. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
  59. package/dist/labsofscience/pages/customer/CheckoutPage.js +236 -238
  60. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
  61. package/dist/labsofscience/pages/customer/CustomerDashboard.js +425 -390
  62. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
  63. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
  64. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
  65. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +522 -512
  66. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
  67. package/dist/labsofscience/pages/customer/FavoritesPage.js +73 -66
  68. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
  69. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +74 -67
  70. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
  71. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +311 -274
  72. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
  73. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +100 -93
  74. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
  75. package/dist/labsofscience/pages/customer/ReviewsPage.js +96 -89
  76. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
  77. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +85 -78
  78. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
  79. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +135 -103
  80. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
  81. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +267 -260
  82. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  83. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +97 -91
  84. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  85. package/dist/labsofscience/pages/investor/InvestorDashboard.js +346 -310
  86. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
  87. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +118 -111
  88. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  89. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +75 -69
  90. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
  91. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +434 -429
  92. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
  93. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +364 -323
  94. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
  95. package/dist/labsofscience/pages/worker/WorkerDashboard.js +132 -101
  96. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
  97. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +114 -108
  98. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
  99. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +124 -119
  100. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
  101. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +354 -344
  102. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
  103. package/package.json +3 -3
@@ -8,8 +8,9 @@ import { InvestmentCard as s } from "../../components/InvestmentCard.js";
8
8
  import { useMemo as c, useState as l } from "react";
9
9
  import { Activity as u, Award as d, BarChart3 as f, Briefcase as p, Eye as m, Filter as h, IndianRupee as g, Lightbulb as _, MapPin as v, PieChart as y, Plus as b, Target as x, Wallet as S } from "lucide-react";
10
10
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
11
+ import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
11
12
  //#region src/labsofscience/pages/investor/InvestorDashboard.tsx
12
- var T = [
13
+ var O = [
13
14
  {
14
15
  id: "1",
15
16
  type: "opportunity",
@@ -31,7 +32,7 @@ var T = [
31
32
  description: "Health & Wellness businesses in tech hubs are experiencing 40% higher returns. Whitefield shows promising opportunities.",
32
33
  confidence: 91
33
34
  }
34
- ], E = [
35
+ ], k = [
35
36
  {
36
37
  id: "act-1",
37
38
  type: "dividend",
@@ -61,17 +62,17 @@ var T = [
61
62
  date: "2023-12-20T11:00:00Z"
62
63
  }
63
64
  ];
64
- function D(e) {
65
+ function A(e) {
65
66
  switch (e) {
66
- case "active": return "bg-green-500/20 text-green-600 dark:text-green-400";
67
- case "pending": return "bg-yellow-500/20 text-yellow-600 dark:text-yellow-400";
68
- case "completed": return "bg-blue-500/20 text-blue-600 dark:text-blue-400";
67
+ case "active": return "bg-status-success-bg-subtle text-status-success-text";
68
+ case "pending": return "bg-status-warning-bg-subtle text-status-warning-text";
69
+ case "completed": return "bg-status-info-bg-subtle text-status-info-text";
69
70
  default: return "bg-secondary text-secondary-foreground";
70
71
  }
71
72
  }
72
- function O() {
73
- let { navigateTo: O, currentUser: k } = e(), [A, j] = l("portfolio"), { data: M = [], isLoading: N } = i(), { data: P = [], isLoading: F } = a(k?.id || ""), I = k?.firstName ?? k?.name ?? "Investor", L = M.filter((e) => e.status === "active"), R = c(() => {
74
- let e = P.reduce((e, t) => e + t.investedAmount, 0), t = P.reduce((e, t) => e + t.currentValue, 0), n = P.reduce((e, t) => e + t.returns, 0);
73
+ function j() {
74
+ let { navigateTo: j, currentUser: M } = e(), [N, P] = l("portfolio"), { data: F = [], isLoading: I } = i(), { data: L = [], isLoading: R } = a(M?.id || ""), z = M?.firstName ?? M?.name ?? "Investor", B = F.filter((e) => e.status === "active"), V = c(() => {
75
+ let e = L.reduce((e, t) => e + t.investedAmount, 0), t = L.reduce((e, t) => e + t.currentValue, 0), n = L.reduce((e, t) => e + t.returns, 0);
75
76
  return {
76
77
  totalInvested: e,
77
78
  currentValue: t,
@@ -79,8 +80,8 @@ function O() {
79
80
  monthlyIncome: n / 12,
80
81
  roi: e > 0 ? n / e * 100 : 0
81
82
  };
82
- }, [P]);
83
- return N || F ? /* @__PURE__ */ C(n, {
83
+ }, [L]);
84
+ return I || R ? /* @__PURE__ */ C(n, {
84
85
  title: "Investment Dashboard",
85
86
  description: "Loading your portfolio...",
86
87
  children: /* @__PURE__ */ C("div", {
@@ -94,326 +95,361 @@ function O() {
94
95
  })
95
96
  })
96
97
  }) : /* @__PURE__ */ w(n, {
97
- title: `Welcome back, ${I}!`,
98
+ title: `Welcome back, ${z}!`,
98
99
  description: "Here's your investment portfolio overview.",
99
- children: [/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
100
- className: "mb-4 text-lg font-semibold text-text-primary",
101
- children: "Portfolio Overview"
102
- }), /* @__PURE__ */ w("div", {
103
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
104
- children: [
105
- /* @__PURE__ */ C(r, {
106
- icon: /* @__PURE__ */ C(S, { className: "h-5 w-5" }),
107
- value: o(R.totalInvested, { minimumFractionDigits: 0 }),
108
- label: "Total Invested",
109
- trend: "up",
110
- trendValue: "Across all businesses"
111
- }),
112
- /* @__PURE__ */ C(r, {
113
- icon: /* @__PURE__ */ C(g, { className: "h-5 w-5" }),
114
- value: o(R.currentValue, { minimumFractionDigits: 0 }),
115
- label: "Current Value",
116
- trend: "up",
117
- trendValue: `+${R.roi.toFixed(1)}%`
118
- }),
119
- /* @__PURE__ */ C(r, {
120
- icon: /* @__PURE__ */ C(x, { className: "h-5 w-5" }),
121
- value: o(R.totalReturns, { minimumFractionDigits: 0 }),
122
- label: "Total Returns",
123
- trend: "up",
124
- trendValue: "+15.2% this month"
125
- }),
126
- /* @__PURE__ */ C(r, {
127
- icon: /* @__PURE__ */ C(u, { className: "h-5 w-5" }),
128
- value: o(R.monthlyIncome, { minimumFractionDigits: 0 }),
129
- label: "Monthly Income",
130
- trend: "up",
131
- trendValue: "+8.5% vs last month"
132
- })
133
- ]
134
- })] }), /* @__PURE__ */ w("div", {
135
- className: "mt-8 grid grid-cols-1 gap-6 lg:grid-cols-3",
136
- children: [/* @__PURE__ */ w("div", {
137
- className: "lg:col-span-2",
100
+ children: [
101
+ /* @__PURE__ */ C(D, {
102
+ icon: /* @__PURE__ */ C(_, { className: "h-4 w-4" }),
103
+ className: "mb-6",
104
+ children: "Track how your money is working across the carts you back. This dashboard rolls up what you've invested, what it's worth today and your monthly income — then points you to fresh opportunities to grow your portfolio."
105
+ }),
106
+ /* @__PURE__ */ C(E, {
107
+ storageKey: "labsofscience-investor-dashboard",
108
+ steps: [
109
+ {
110
+ id: "opportunities",
111
+ label: "Explore new opportunities",
112
+ description: "Find carts seeking investment that match your goals.",
113
+ icon: /* @__PURE__ */ C(b, { className: "h-4 w-4" }),
114
+ onClick: () => j("/investor/opportunities")
115
+ },
116
+ {
117
+ id: "portfolio",
118
+ label: "Review your portfolio",
119
+ description: "See allocation and performance across holdings.",
120
+ icon: /* @__PURE__ */ C(y, { className: "h-4 w-4" }),
121
+ onClick: () => j("/investor/portfolio")
122
+ },
123
+ {
124
+ id: "analytics",
125
+ label: "Dig into analytics",
126
+ description: "Understand returns, trends and risk over time.",
127
+ icon: /* @__PURE__ */ C(f, { className: "h-4 w-4" }),
128
+ onClick: () => j("/investor/analytics")
129
+ }
130
+ ]
131
+ }),
132
+ /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ C("h2", {
133
+ className: "mb-4 text-lg font-semibold text-text-primary",
134
+ children: "Portfolio Overview"
135
+ }), /* @__PURE__ */ w("div", {
136
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
138
137
  children: [
139
- /* @__PURE__ */ w("div", {
140
- className: "mb-6 flex rounded-lg bg-bg-sunken p-1",
141
- children: [/* @__PURE__ */ C("button", {
142
- type: "button",
143
- onClick: () => j("portfolio"),
144
- className: t("flex-1 rounded-md px-4 py-2 text-sm font-medium transition-colors", A === "portfolio" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
145
- children: "My Investments"
146
- }), /* @__PURE__ */ C("button", {
147
- type: "button",
148
- onClick: () => j("opportunities"),
149
- className: t("flex-1 rounded-md px-4 py-2 text-sm font-medium transition-colors", A === "opportunities" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
150
- children: "New Opportunities"
151
- })]
138
+ /* @__PURE__ */ C(r, {
139
+ featured: !0,
140
+ icon: /* @__PURE__ */ C(S, { className: "h-5 w-5" }),
141
+ value: o(V.totalInvested, { minimumFractionDigits: 0 }),
142
+ label: "Total Invested",
143
+ trend: "up",
144
+ trendValue: "Across all businesses"
152
145
  }),
153
- A === "portfolio" && /* @__PURE__ */ w("div", {
154
- className: "space-y-4",
155
- children: [/* @__PURE__ */ w("div", {
156
- className: "flex items-center justify-between",
157
- children: [/* @__PURE__ */ C("h3", {
158
- className: "text-base font-semibold text-text-primary",
159
- children: "Active Investments"
160
- }), /* @__PURE__ */ w("button", {
146
+ /* @__PURE__ */ C(r, {
147
+ icon: /* @__PURE__ */ C(g, { className: "h-5 w-5" }),
148
+ value: o(V.currentValue, { minimumFractionDigits: 0 }),
149
+ label: "Current Value",
150
+ trend: "up",
151
+ trendValue: `+${V.roi.toFixed(1)}%`
152
+ }),
153
+ /* @__PURE__ */ C(r, {
154
+ icon: /* @__PURE__ */ C(x, { className: "h-5 w-5" }),
155
+ value: o(V.totalReturns, { minimumFractionDigits: 0 }),
156
+ label: "Total Returns",
157
+ trend: "up",
158
+ trendValue: "+15.2% this month"
159
+ }),
160
+ /* @__PURE__ */ C(r, {
161
+ icon: /* @__PURE__ */ C(u, { className: "h-5 w-5" }),
162
+ value: o(V.monthlyIncome, { minimumFractionDigits: 0 }),
163
+ label: "Monthly Income",
164
+ trend: "up",
165
+ trendValue: "+8.5% vs last month"
166
+ })
167
+ ]
168
+ })] }),
169
+ /* @__PURE__ */ w("div", {
170
+ className: "mt-8 grid grid-cols-1 gap-6 lg:grid-cols-3",
171
+ children: [/* @__PURE__ */ w("div", {
172
+ className: "lg:col-span-2",
173
+ children: [
174
+ /* @__PURE__ */ w("div", {
175
+ className: "mb-6 flex rounded-lg bg-bg-sunken p-1",
176
+ children: [/* @__PURE__ */ C("button", {
177
+ type: "button",
178
+ onClick: () => P("portfolio"),
179
+ className: t("flex-1 rounded-md px-4 py-2 text-sm font-medium transition-colors", N === "portfolio" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
180
+ children: "My Investments"
181
+ }), /* @__PURE__ */ C("button", {
161
182
  type: "button",
162
- onClick: () => alert("Filter functionality coming soon!"),
163
- className: "flex items-center gap-2 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
164
- children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Filter"]
183
+ onClick: () => P("opportunities"),
184
+ className: t("flex-1 rounded-md px-4 py-2 text-sm font-medium transition-colors", N === "opportunities" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
185
+ children: "New Opportunities"
165
186
  })]
166
- }), P.length === 0 ? /* @__PURE__ */ w("div", {
167
- className: "rounded-lg border border-dashed border-border-subtle p-8 text-center",
168
- children: [
169
- /* @__PURE__ */ C(p, { className: "mx-auto h-12 w-12 text-text-secondary opacity-20" }),
170
- /* @__PURE__ */ C("p", {
171
- className: "mt-2 text-sm text-text-secondary",
172
- children: "No active investments found."
173
- }),
174
- /* @__PURE__ */ C("button", {
175
- type: "button",
176
- onClick: () => j("opportunities"),
177
- className: "mt-4 text-sm font-medium text-primary hover:underline",
178
- children: "Browse opportunities"
179
- })
180
- ]
181
- }) : P.map((e) => /* @__PURE__ */ w("div", {
182
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm hover:shadow-md transition-shadow",
187
+ }),
188
+ N === "portfolio" && /* @__PURE__ */ w("div", {
189
+ className: "space-y-4",
183
190
  children: [/* @__PURE__ */ w("div", {
184
- className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
185
- children: [/* @__PURE__ */ w("div", {
186
- className: "flex-1",
187
- children: [/* @__PURE__ */ w("div", {
188
- className: "mb-2 flex flex-wrap items-center gap-2",
189
- children: [/* @__PURE__ */ C("h4", {
190
- className: "text-base font-semibold text-text-primary",
191
- children: e.cartName
192
- }), /* @__PURE__ */ C("span", {
193
- className: t("rounded-full px-2 py-0.5 text-xs font-medium", D(e.status)),
194
- children: e.status
195
- })]
196
- }), /* @__PURE__ */ w("div", {
197
- className: "mb-3 flex flex-wrap items-center gap-3 text-xs text-text-secondary",
198
- children: [/* @__PURE__ */ w("span", {
199
- className: "flex items-center gap-1",
200
- children: [/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5" }), "India"]
201
- }), /* @__PURE__ */ C("span", { children: "Services" })]
202
- })]
191
+ className: "flex items-center justify-between",
192
+ children: [/* @__PURE__ */ C("h3", {
193
+ className: "text-base font-semibold text-text-primary",
194
+ children: "Active Investments"
203
195
  }), /* @__PURE__ */ w("button", {
204
196
  type: "button",
205
- onClick: () => O(`/investor/investments/${e.id}`),
206
- className: "flex items-center gap-2 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
207
- children: [/* @__PURE__ */ C(m, { className: "h-4 w-4" }), "View Details"]
197
+ onClick: () => alert("Filter functionality coming soon!"),
198
+ className: "flex items-center gap-2 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
199
+ children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Filter"]
208
200
  })]
209
- }), /* @__PURE__ */ w("div", {
210
- className: "grid grid-cols-2 gap-3 sm:grid-cols-4",
201
+ }), L.length === 0 ? /* @__PURE__ */ w("div", {
202
+ className: "rounded-lg border border-dashed border-border-seam p-8 text-center",
211
203
  children: [
212
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
213
- className: "text-xs text-text-secondary",
214
- children: "Invested"
215
- }), /* @__PURE__ */ C("p", {
216
- className: "text-sm font-semibold text-text-primary",
217
- children: o(e.investedAmount, { minimumFractionDigits: 0 })
218
- })] }),
219
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
220
- className: "text-xs text-text-secondary",
221
- children: "Current Value"
222
- }), /* @__PURE__ */ C("p", {
223
- className: "text-sm font-semibold text-green-600 dark:text-green-400",
224
- children: o(e.currentValue, { minimumFractionDigits: 0 })
225
- })] }),
226
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
227
- className: "text-xs text-text-secondary",
228
- children: "Returns"
229
- }), /* @__PURE__ */ C("p", {
230
- className: "text-sm font-semibold text-text-primary",
231
- children: o(e.returns, { minimumFractionDigits: 0 })
232
- })] }),
233
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
234
- className: "text-xs text-text-secondary",
235
- children: "Growth"
236
- }), /* @__PURE__ */ w("p", {
237
- className: "text-sm font-semibold text-green-600 dark:text-green-400",
238
- children: [e.returnsPercentage, "%"]
239
- })] })
204
+ /* @__PURE__ */ C(p, { className: "mx-auto h-12 w-12 text-text-secondary opacity-20" }),
205
+ /* @__PURE__ */ C("p", {
206
+ className: "mt-2 text-sm text-text-secondary",
207
+ children: "No active investments found."
208
+ }),
209
+ /* @__PURE__ */ C("button", {
210
+ type: "button",
211
+ onClick: () => P("opportunities"),
212
+ className: "mt-4 text-sm font-medium text-primary hover:underline",
213
+ children: "Browse opportunities"
214
+ })
240
215
  ]
241
- })]
242
- }, e.id))]
243
- }),
244
- A === "opportunities" && /* @__PURE__ */ w("div", {
245
- className: "space-y-4",
246
- children: [/* @__PURE__ */ w("div", {
247
- className: "flex items-center justify-between",
248
- children: [/* @__PURE__ */ C("h3", {
249
- className: "text-base font-semibold text-text-primary",
250
- children: "Investment Opportunities"
251
- }), /* @__PURE__ */ w("button", {
252
- type: "button",
253
- onClick: () => O("/investor/opportunities"),
254
- 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",
255
- children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Browse All"]
256
- })]
257
- }), /* @__PURE__ */ C("div", {
258
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
259
- children: L.slice(0, 2).map((e) => /* @__PURE__ */ C(s, {
260
- id: e.id,
261
- cartName: e.cartName,
262
- targetAmount: e.targetAmount,
263
- raisedAmount: e.raisedAmount,
264
- expectedReturns: `${e.expectedReturns}%`,
265
- riskLevel: e.riskLevel,
266
- status: e.status,
267
- onClick: (e) => O(`/investor/opportunities/${e}`)
268
- }, e.id))
269
- })]
270
- }),
271
- /* @__PURE__ */ w("section", {
272
- className: "mt-8",
273
- children: [/* @__PURE__ */ C("h2", {
274
- className: "mb-4 text-lg font-semibold text-text-primary",
275
- children: "Recent Activity"
276
- }), /* @__PURE__ */ C("div", {
277
- className: "divide-y divide-border rounded-lg border border-border-subtle bg-bg-surface",
278
- children: E.map((e) => /* @__PURE__ */ w("div", {
279
- className: "flex items-center justify-between px-4 py-3",
216
+ }) : L.map((e) => /* @__PURE__ */ w("div", {
217
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm hover:shadow-md transition-shadow",
280
218
  children: [/* @__PURE__ */ w("div", {
281
- className: "flex items-center gap-3",
282
- children: [/* @__PURE__ */ C("div", {
283
- className: t("flex h-8 w-8 items-center justify-center rounded-full", e.amount > 0 ? "bg-green-500/10" : "bg-bg-sunken"),
284
- children: /* @__PURE__ */ C(u, { className: t("h-4 w-4", e.amount > 0 ? "text-green-600 dark:text-green-400" : "text-text-secondary") })
285
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
286
- className: "text-sm font-medium text-text-primary",
287
- children: e.description
288
- }), /* @__PURE__ */ C("p", {
289
- className: "text-xs text-text-secondary",
290
- children: new Date(e.date).toLocaleDateString("en-IN", {
291
- day: "numeric",
292
- month: "short",
293
- year: "numeric"
294
- })
295
- })] })]
296
- }), /* @__PURE__ */ w("span", {
297
- className: t("text-sm font-semibold", e.amount > 0 ? "text-green-600 dark:text-green-400" : "text-text-primary"),
298
- children: [e.amount > 0 ? "+" : "", o(Math.abs(e.amount), { minimumFractionDigits: 0 })]
219
+ className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
220
+ children: [/* @__PURE__ */ w("div", {
221
+ className: "flex-1",
222
+ children: [/* @__PURE__ */ w("div", {
223
+ className: "mb-2 flex flex-wrap items-center gap-2",
224
+ children: [/* @__PURE__ */ C("h4", {
225
+ className: "text-base font-semibold text-text-primary",
226
+ children: e.cartName
227
+ }), /* @__PURE__ */ C("span", {
228
+ className: t("rounded-full px-2 py-0.5 text-xs font-medium", A(e.status)),
229
+ children: e.status
230
+ })]
231
+ }), /* @__PURE__ */ w("div", {
232
+ className: "mb-3 flex flex-wrap items-center gap-3 text-xs text-text-secondary",
233
+ children: [/* @__PURE__ */ w("span", {
234
+ className: "flex items-center gap-1",
235
+ children: [/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5" }), "India"]
236
+ }), /* @__PURE__ */ C("span", { children: "Services" })]
237
+ })]
238
+ }), /* @__PURE__ */ w("button", {
239
+ type: "button",
240
+ onClick: () => j(`/investor/investments/${e.id}`),
241
+ className: "flex items-center gap-2 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
242
+ children: [/* @__PURE__ */ C(m, { className: "h-4 w-4" }), "View Details"]
243
+ })]
244
+ }), /* @__PURE__ */ w("div", {
245
+ className: "grid grid-cols-2 gap-3 sm:grid-cols-4",
246
+ children: [
247
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
248
+ className: "text-xs text-text-secondary",
249
+ children: "Invested"
250
+ }), /* @__PURE__ */ C("p", {
251
+ className: "text-sm font-semibold text-text-primary",
252
+ children: o(e.investedAmount, { minimumFractionDigits: 0 })
253
+ })] }),
254
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
255
+ className: "text-xs text-text-secondary",
256
+ children: "Current Value"
257
+ }), /* @__PURE__ */ C("p", {
258
+ className: "text-sm font-semibold text-status-success-text",
259
+ children: o(e.currentValue, { minimumFractionDigits: 0 })
260
+ })] }),
261
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
262
+ className: "text-xs text-text-secondary",
263
+ children: "Returns"
264
+ }), /* @__PURE__ */ C("p", {
265
+ className: "text-sm font-semibold text-text-primary",
266
+ children: o(e.returns, { minimumFractionDigits: 0 })
267
+ })] }),
268
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
269
+ className: "text-xs text-text-secondary",
270
+ children: "Growth"
271
+ }), /* @__PURE__ */ w("p", {
272
+ className: "text-sm font-semibold text-status-success-text",
273
+ children: [e.returnsPercentage, "%"]
274
+ })] })
275
+ ]
299
276
  })]
300
- }, e.id))
301
- })]
302
- })
303
- ]
304
- }), /* @__PURE__ */ w("div", {
305
- className: "space-y-6",
306
- children: [
307
- /* @__PURE__ */ w("div", {
308
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
309
- children: [/* @__PURE__ */ w("div", {
310
- className: "mb-3 flex items-center gap-2",
311
- children: [/* @__PURE__ */ C(_, { className: "h-5 w-5 text-yellow-500" }), /* @__PURE__ */ C("h3", {
312
- className: "text-base font-semibold text-text-primary",
313
- children: "AI Insights"
277
+ }, e.id))]
278
+ }),
279
+ N === "opportunities" && /* @__PURE__ */ w("div", {
280
+ className: "space-y-4",
281
+ children: [/* @__PURE__ */ w("div", {
282
+ className: "flex items-center justify-between",
283
+ children: [/* @__PURE__ */ C("h3", {
284
+ className: "text-base font-semibold text-text-primary",
285
+ children: "Investment Opportunities"
286
+ }), /* @__PURE__ */ w("button", {
287
+ type: "button",
288
+ onClick: () => j("/investor/opportunities"),
289
+ 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",
290
+ children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Browse All"]
291
+ })]
292
+ }), /* @__PURE__ */ C("div", {
293
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
294
+ children: B.slice(0, 2).map((e) => /* @__PURE__ */ C(s, {
295
+ id: e.id,
296
+ cartName: e.cartName,
297
+ targetAmount: e.targetAmount,
298
+ raisedAmount: e.raisedAmount,
299
+ expectedReturns: `${e.expectedReturns}%`,
300
+ riskLevel: e.riskLevel,
301
+ status: e.status,
302
+ onClick: (e) => j(`/investor/opportunities/${e}`)
303
+ }, e.id))
314
304
  })]
315
- }), /* @__PURE__ */ C("div", {
316
- className: "space-y-3",
317
- children: T.map((e) => /* @__PURE__ */ w("div", {
318
- className: "rounded-lg border border-border-subtle bg-bg-sunken/50 p-3",
319
- children: [/* @__PURE__ */ w("div", {
320
- className: "mb-1 flex items-center justify-between",
321
- children: [/* @__PURE__ */ C("h4", {
322
- className: "text-xs font-semibold text-text-primary",
323
- children: e.title
305
+ }),
306
+ /* @__PURE__ */ w("section", {
307
+ className: "mt-8",
308
+ children: [/* @__PURE__ */ C("h2", {
309
+ className: "mb-4 text-lg font-semibold text-text-primary",
310
+ children: "Recent Activity"
311
+ }), /* @__PURE__ */ C("div", {
312
+ className: "divide-y divide-border rounded-lg border border-border-seam bg-bg-surface",
313
+ children: k.map((e) => /* @__PURE__ */ w("div", {
314
+ className: "flex items-center justify-between px-4 py-3",
315
+ children: [/* @__PURE__ */ w("div", {
316
+ className: "flex items-center gap-3",
317
+ children: [/* @__PURE__ */ C("div", {
318
+ className: t("flex h-8 w-8 items-center justify-center rounded-full", e.amount > 0 ? "bg-status-success-bg-subtle" : "bg-bg-sunken"),
319
+ children: /* @__PURE__ */ C(u, { className: t("h-4 w-4", e.amount > 0 ? "text-status-success-text" : "text-text-secondary") })
320
+ }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
321
+ className: "text-sm font-medium text-text-primary",
322
+ children: e.description
323
+ }), /* @__PURE__ */ C("p", {
324
+ className: "text-xs text-text-secondary",
325
+ children: new Date(e.date).toLocaleDateString("en-IN", {
326
+ day: "numeric",
327
+ month: "short",
328
+ year: "numeric"
329
+ })
330
+ })] })]
324
331
  }), /* @__PURE__ */ w("span", {
325
- className: "rounded-full bg-action-primary-bg/10 px-2 py-0.5 text-xs font-medium text-primary",
326
- children: [e.confidence, "%"]
332
+ className: t("text-sm font-semibold", e.amount > 0 ? "text-status-success-text" : "text-text-primary"),
333
+ children: [e.amount > 0 ? "+" : "", o(Math.abs(e.amount), { minimumFractionDigits: 0 })]
327
334
  })]
328
- }), /* @__PURE__ */ C("p", {
329
- className: "text-xs leading-relaxed text-text-secondary",
330
- children: e.description
335
+ }, e.id))
336
+ })]
337
+ })
338
+ ]
339
+ }), /* @__PURE__ */ w("div", {
340
+ className: "space-y-6",
341
+ children: [
342
+ /* @__PURE__ */ w("div", {
343
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4",
344
+ children: [/* @__PURE__ */ w("div", {
345
+ className: "mb-3 flex items-center gap-2",
346
+ children: [/* @__PURE__ */ C(_, { className: "h-5 w-5 text-status-warning-text" }), /* @__PURE__ */ C("h3", {
347
+ className: "text-base font-semibold text-text-primary",
348
+ children: "AI Insights"
331
349
  })]
332
- }, e.id))
333
- })]
334
- }),
335
- /* @__PURE__ */ w("div", {
336
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
337
- children: [/* @__PURE__ */ C("h3", {
338
- className: "mb-3 text-base font-semibold text-text-primary",
339
- children: "Quick Actions"
340
- }), /* @__PURE__ */ w("div", {
341
- className: "space-y-2",
342
- children: [
343
- /* @__PURE__ */ w("button", {
344
- type: "button",
345
- onClick: () => O("/investor/portfolio"),
346
- className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
347
- children: [/* @__PURE__ */ C(y, { className: "h-4 w-4 text-text-secondary" }), "View Full Portfolio"]
348
- }),
349
- /* @__PURE__ */ w("button", {
350
- type: "button",
351
- onClick: () => O("/investor/opportunities"),
352
- className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
353
- children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), "Browse Opportunities"]
354
- }),
355
- /* @__PURE__ */ w("button", {
356
- type: "button",
357
- onClick: () => O("/investor/analytics"),
358
- className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
359
- children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), "Investment Analytics"]
360
- }),
361
- /* @__PURE__ */ w("button", {
362
- type: "button",
363
- onClick: () => O("/investor/profile"),
364
- className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
365
- children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), "View Profile"]
366
- })
367
- ]
368
- })]
369
- }),
370
- /* @__PURE__ */ w("div", {
371
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
372
- children: [/* @__PURE__ */ C("h3", {
373
- className: "mb-3 text-base font-semibold text-text-primary",
374
- children: "Market Updates"
375
- }), /* @__PURE__ */ w("div", {
376
- className: "space-y-3",
377
- children: [
378
- /* @__PURE__ */ w("div", {
379
- className: "border-l-4 border-green-500 pl-3",
380
- children: [/* @__PURE__ */ C("h4", {
381
- className: "text-xs font-semibold text-text-primary",
382
- children: "Mobile Services Market Growing"
383
- }), /* @__PURE__ */ C("p", {
384
- className: "mt-1 text-xs leading-relaxed text-text-secondary",
385
- children: "Mobile service industry shows 35% growth in Q4 2024"
386
- })]
387
- }),
388
- /* @__PURE__ */ w("div", {
389
- className: "border-l-4 border-blue-500 pl-3",
390
- children: [/* @__PURE__ */ C("h4", {
391
- className: "text-xs font-semibold text-text-primary",
392
- children: "New Investment Tax Benefits"
393
- }), /* @__PURE__ */ C("p", {
394
- className: "mt-1 text-xs leading-relaxed text-text-secondary",
395
- children: "Government announces SME investment incentives"
396
- })]
397
- }),
398
- /* @__PURE__ */ w("div", {
399
- className: "border-l-4 border-yellow-500 pl-3",
400
- children: [/* @__PURE__ */ C("h4", {
401
- className: "text-xs font-semibold text-text-primary",
402
- children: "Home Services Demand Surge"
350
+ }), /* @__PURE__ */ C("div", {
351
+ className: "space-y-3",
352
+ children: O.map((e) => /* @__PURE__ */ w("div", {
353
+ className: "rounded-lg border border-border-seam bg-bg-sunken/50 p-3",
354
+ children: [/* @__PURE__ */ w("div", {
355
+ className: "mb-1 flex items-center justify-between",
356
+ children: [/* @__PURE__ */ C("h4", {
357
+ className: "text-xs font-semibold text-text-primary",
358
+ children: e.title
359
+ }), /* @__PURE__ */ w("span", {
360
+ className: "rounded-full bg-action-primary-bg/10 px-2 py-0.5 text-xs font-medium text-primary",
361
+ children: [e.confidence, "%"]
362
+ })]
403
363
  }), /* @__PURE__ */ C("p", {
404
- className: "mt-1 text-xs leading-relaxed text-text-secondary",
405
- children: "Cleaning and maintenance businesses up 25% this quarter"
364
+ className: "text-xs leading-relaxed text-text-secondary",
365
+ children: e.description
406
366
  })]
407
- })
408
- ]
409
- })]
410
- })
411
- ]
412
- })]
413
- })]
367
+ }, e.id))
368
+ })]
369
+ }),
370
+ /* @__PURE__ */ w("div", {
371
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4",
372
+ children: [/* @__PURE__ */ C("h3", {
373
+ className: "mb-3 text-base font-semibold text-text-primary",
374
+ children: "Quick Actions"
375
+ }), /* @__PURE__ */ w("div", {
376
+ className: "space-y-2",
377
+ children: [
378
+ /* @__PURE__ */ w("button", {
379
+ type: "button",
380
+ onClick: () => j("/investor/portfolio"),
381
+ className: "flex w-full items-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
382
+ children: [/* @__PURE__ */ C(y, { className: "h-4 w-4 text-text-secondary" }), "View Full Portfolio"]
383
+ }),
384
+ /* @__PURE__ */ w("button", {
385
+ type: "button",
386
+ onClick: () => j("/investor/opportunities"),
387
+ className: "flex w-full items-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
388
+ children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), "Browse Opportunities"]
389
+ }),
390
+ /* @__PURE__ */ w("button", {
391
+ type: "button",
392
+ onClick: () => j("/investor/analytics"),
393
+ className: "flex w-full items-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
394
+ children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), "Investment Analytics"]
395
+ }),
396
+ /* @__PURE__ */ w("button", {
397
+ type: "button",
398
+ onClick: () => j("/investor/profile"),
399
+ className: "flex w-full items-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-left text-sm font-medium text-text-primary hover:bg-accent transition-colors",
400
+ children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), "View Profile"]
401
+ })
402
+ ]
403
+ })]
404
+ }),
405
+ /* @__PURE__ */ w("div", {
406
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4",
407
+ children: [/* @__PURE__ */ C("h3", {
408
+ className: "mb-3 text-base font-semibold text-text-primary",
409
+ children: "Market Updates"
410
+ }), /* @__PURE__ */ w("div", {
411
+ className: "space-y-3",
412
+ children: [
413
+ /* @__PURE__ */ w("div", {
414
+ className: "border-l-4 border-status-success-border pl-3",
415
+ children: [/* @__PURE__ */ C("h4", {
416
+ className: "text-xs font-semibold text-text-primary",
417
+ children: "Mobile Services Market Growing"
418
+ }), /* @__PURE__ */ C("p", {
419
+ className: "mt-1 text-xs leading-relaxed text-text-secondary",
420
+ children: "Mobile service industry shows 35% growth in Q4 2024"
421
+ })]
422
+ }),
423
+ /* @__PURE__ */ w("div", {
424
+ className: "border-l-4 border-status-info-border pl-3",
425
+ children: [/* @__PURE__ */ C("h4", {
426
+ className: "text-xs font-semibold text-text-primary",
427
+ children: "New Investment Tax Benefits"
428
+ }), /* @__PURE__ */ C("p", {
429
+ className: "mt-1 text-xs leading-relaxed text-text-secondary",
430
+ children: "Government announces SME investment incentives"
431
+ })]
432
+ }),
433
+ /* @__PURE__ */ w("div", {
434
+ className: "border-l-4 border-status-warning-border pl-3",
435
+ children: [/* @__PURE__ */ C("h4", {
436
+ className: "text-xs font-semibold text-text-primary",
437
+ children: "Home Services Demand Surge"
438
+ }), /* @__PURE__ */ C("p", {
439
+ className: "mt-1 text-xs leading-relaxed text-text-secondary",
440
+ children: "Cleaning and maintenance businesses up 25% this quarter"
441
+ })]
442
+ })
443
+ ]
444
+ })]
445
+ })
446
+ ]
447
+ })]
448
+ })
449
+ ]
414
450
  });
415
451
  }
416
452
  //#endregion
417
- export { O as InvestorDashboard };
453
+ export { j as InvestorDashboard };
418
454
 
419
455
  //# sourceMappingURL=InvestorDashboard.js.map