@burdenoff/microfe-labsofscience 2026.625.1 → 2026.626.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 (91) hide show
  1. package/dist/labsofscience/pages/HomePage.js +33 -28
  2. package/dist/labsofscience/pages/HomePage.js.map +1 -1
  3. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +67 -61
  4. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/labsofscience/pages/admin/AdminDashboard.js +76 -44
  6. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +38 -32
  8. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +226 -221
  10. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/labsofscience/pages/admin/AdminProfilePage.js +127 -125
  12. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +489 -487
  14. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/labsofscience/pages/admin/CartManagementPage.js +124 -119
  16. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/labsofscience/pages/admin/UserManagementPage.js +267 -262
  18. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +46 -41
  20. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +172 -167
  22. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +79 -48
  24. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +98 -93
  26. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +112 -107
  28. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +298 -300
  30. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +221 -223
  32. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +251 -245
  34. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/labsofscience/pages/common/HelpSupportPage.js +284 -285
  36. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/labsofscience/pages/common/NotificationCenterPage.js +48 -42
  38. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/labsofscience/pages/common/SettingsPage.js +745 -736
  40. package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +399 -356
  42. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/labsofscience/pages/customer/CartDetailPage.js +262 -230
  44. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +162 -151
  46. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/labsofscience/pages/customer/CheckoutPage.js +213 -215
  48. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/labsofscience/pages/customer/CustomerDashboard.js +416 -381
  50. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
  52. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +521 -512
  54. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/labsofscience/pages/customer/FavoritesPage.js +57 -51
  56. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +56 -50
  58. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +310 -274
  60. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +81 -75
  62. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/labsofscience/pages/customer/ReviewsPage.js +68 -62
  64. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +61 -55
  66. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +92 -60
  68. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +237 -231
  70. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +60 -54
  72. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/labsofscience/pages/investor/InvestorDashboard.js +342 -307
  74. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +106 -100
  76. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +51 -45
  78. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +386 -381
  80. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +359 -319
  82. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/labsofscience/pages/worker/WorkerDashboard.js +90 -59
  84. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +76 -71
  86. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +82 -77
  88. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +348 -340
  90. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. 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,7 +62,7 @@ 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
67
  case "active": return "bg-status-success-bg-subtle text-status-success-text";
67
68
  case "pending": return "bg-status-warning-bg-subtle text-status-warning-text";
@@ -69,9 +70,9 @@ function D(e) {
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,327 +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
- featured: !0,
107
- icon: /* @__PURE__ */ C(S, { className: "h-5 w-5" }),
108
- value: o(R.totalInvested, { minimumFractionDigits: 0 }),
109
- label: "Total Invested",
110
- trend: "up",
111
- trendValue: "Across all businesses"
112
- }),
113
- /* @__PURE__ */ C(r, {
114
- icon: /* @__PURE__ */ C(g, { className: "h-5 w-5" }),
115
- value: o(R.currentValue, { minimumFractionDigits: 0 }),
116
- label: "Current Value",
117
- trend: "up",
118
- trendValue: `+${R.roi.toFixed(1)}%`
119
- }),
120
- /* @__PURE__ */ C(r, {
121
- icon: /* @__PURE__ */ C(x, { className: "h-5 w-5" }),
122
- value: o(R.totalReturns, { minimumFractionDigits: 0 }),
123
- label: "Total Returns",
124
- trend: "up",
125
- trendValue: "+15.2% this month"
126
- }),
127
- /* @__PURE__ */ C(r, {
128
- icon: /* @__PURE__ */ C(u, { className: "h-5 w-5" }),
129
- value: o(R.monthlyIncome, { minimumFractionDigits: 0 }),
130
- label: "Monthly Income",
131
- trend: "up",
132
- trendValue: "+8.5% vs last month"
133
- })
134
- ]
135
- })] }), /* @__PURE__ */ w("div", {
136
- className: "mt-8 grid grid-cols-1 gap-6 lg:grid-cols-3",
137
- children: [/* @__PURE__ */ w("div", {
138
- 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",
139
137
  children: [
140
- /* @__PURE__ */ w("div", {
141
- className: "mb-6 flex rounded-lg bg-bg-sunken p-1",
142
- children: [/* @__PURE__ */ C("button", {
143
- type: "button",
144
- onClick: () => j("portfolio"),
145
- 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"),
146
- children: "My Investments"
147
- }), /* @__PURE__ */ C("button", {
148
- type: "button",
149
- onClick: () => j("opportunities"),
150
- 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"),
151
- children: "New Opportunities"
152
- })]
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"
153
145
  }),
154
- A === "portfolio" && /* @__PURE__ */ w("div", {
155
- className: "space-y-4",
156
- children: [/* @__PURE__ */ w("div", {
157
- className: "flex items-center justify-between",
158
- children: [/* @__PURE__ */ C("h3", {
159
- className: "text-base font-semibold text-text-primary",
160
- children: "Active Investments"
161
- }), /* @__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", {
162
182
  type: "button",
163
- onClick: () => alert("Filter functionality coming soon!"),
164
- 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",
165
- 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"
166
186
  })]
167
- }), P.length === 0 ? /* @__PURE__ */ w("div", {
168
- className: "rounded-lg border border-dashed border-border-seam p-8 text-center",
169
- children: [
170
- /* @__PURE__ */ C(p, { className: "mx-auto h-12 w-12 text-text-secondary opacity-20" }),
171
- /* @__PURE__ */ C("p", {
172
- className: "mt-2 text-sm text-text-secondary",
173
- children: "No active investments found."
174
- }),
175
- /* @__PURE__ */ C("button", {
176
- type: "button",
177
- onClick: () => j("opportunities"),
178
- className: "mt-4 text-sm font-medium text-primary hover:underline",
179
- children: "Browse opportunities"
180
- })
181
- ]
182
- }) : P.map((e) => /* @__PURE__ */ w("div", {
183
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm hover:shadow-md transition-shadow",
187
+ }),
188
+ N === "portfolio" && /* @__PURE__ */ w("div", {
189
+ className: "space-y-4",
184
190
  children: [/* @__PURE__ */ w("div", {
185
- className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
186
- children: [/* @__PURE__ */ w("div", {
187
- className: "flex-1",
188
- children: [/* @__PURE__ */ w("div", {
189
- className: "mb-2 flex flex-wrap items-center gap-2",
190
- children: [/* @__PURE__ */ C("h4", {
191
- className: "text-base font-semibold text-text-primary",
192
- children: e.cartName
193
- }), /* @__PURE__ */ C("span", {
194
- className: t("rounded-full px-2 py-0.5 text-xs font-medium", D(e.status)),
195
- children: e.status
196
- })]
197
- }), /* @__PURE__ */ w("div", {
198
- className: "mb-3 flex flex-wrap items-center gap-3 text-xs text-text-secondary",
199
- children: [/* @__PURE__ */ w("span", {
200
- className: "flex items-center gap-1",
201
- children: [/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5" }), "India"]
202
- }), /* @__PURE__ */ C("span", { children: "Services" })]
203
- })]
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"
204
195
  }), /* @__PURE__ */ w("button", {
205
196
  type: "button",
206
- onClick: () => O(`/investor/investments/${e.id}`),
197
+ onClick: () => alert("Filter functionality coming soon!"),
207
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",
208
- children: [/* @__PURE__ */ C(m, { className: "h-4 w-4" }), "View Details"]
199
+ children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Filter"]
209
200
  })]
210
- }), /* @__PURE__ */ w("div", {
211
- 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",
212
203
  children: [
213
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
214
- className: "text-xs text-text-secondary",
215
- children: "Invested"
216
- }), /* @__PURE__ */ C("p", {
217
- className: "text-sm font-semibold text-text-primary",
218
- children: o(e.investedAmount, { minimumFractionDigits: 0 })
219
- })] }),
220
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
221
- className: "text-xs text-text-secondary",
222
- children: "Current Value"
223
- }), /* @__PURE__ */ C("p", {
224
- className: "text-sm font-semibold text-status-success-text",
225
- children: o(e.currentValue, { minimumFractionDigits: 0 })
226
- })] }),
227
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
228
- className: "text-xs text-text-secondary",
229
- children: "Returns"
230
- }), /* @__PURE__ */ C("p", {
231
- className: "text-sm font-semibold text-text-primary",
232
- children: o(e.returns, { minimumFractionDigits: 0 })
233
- })] }),
234
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
235
- className: "text-xs text-text-secondary",
236
- children: "Growth"
237
- }), /* @__PURE__ */ w("p", {
238
- className: "text-sm font-semibold text-status-success-text",
239
- children: [e.returnsPercentage, "%"]
240
- })] })
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
+ })
241
215
  ]
242
- })]
243
- }, e.id))]
244
- }),
245
- A === "opportunities" && /* @__PURE__ */ w("div", {
246
- className: "space-y-4",
247
- children: [/* @__PURE__ */ w("div", {
248
- className: "flex items-center justify-between",
249
- children: [/* @__PURE__ */ C("h3", {
250
- className: "text-base font-semibold text-text-primary",
251
- children: "Investment Opportunities"
252
- }), /* @__PURE__ */ w("button", {
253
- type: "button",
254
- onClick: () => O("/investor/opportunities"),
255
- 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",
256
- children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Browse All"]
257
- })]
258
- }), /* @__PURE__ */ C("div", {
259
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
260
- children: L.slice(0, 2).map((e) => /* @__PURE__ */ C(s, {
261
- id: e.id,
262
- cartName: e.cartName,
263
- targetAmount: e.targetAmount,
264
- raisedAmount: e.raisedAmount,
265
- expectedReturns: `${e.expectedReturns}%`,
266
- riskLevel: e.riskLevel,
267
- status: e.status,
268
- onClick: (e) => O(`/investor/opportunities/${e}`)
269
- }, e.id))
270
- })]
271
- }),
272
- /* @__PURE__ */ w("section", {
273
- className: "mt-8",
274
- children: [/* @__PURE__ */ C("h2", {
275
- className: "mb-4 text-lg font-semibold text-text-primary",
276
- children: "Recent Activity"
277
- }), /* @__PURE__ */ C("div", {
278
- className: "divide-y divide-border rounded-lg border border-border-seam bg-bg-surface",
279
- children: E.map((e) => /* @__PURE__ */ w("div", {
280
- 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",
281
218
  children: [/* @__PURE__ */ w("div", {
282
- className: "flex items-center gap-3",
283
- children: [/* @__PURE__ */ C("div", {
284
- className: t("flex h-8 w-8 items-center justify-center rounded-full", e.amount > 0 ? "bg-status-success-bg-subtle" : "bg-bg-sunken"),
285
- children: /* @__PURE__ */ C(u, { className: t("h-4 w-4", e.amount > 0 ? "text-status-success-text" : "text-text-secondary") })
286
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
287
- className: "text-sm font-medium text-text-primary",
288
- children: e.description
289
- }), /* @__PURE__ */ C("p", {
290
- className: "text-xs text-text-secondary",
291
- children: new Date(e.date).toLocaleDateString("en-IN", {
292
- day: "numeric",
293
- month: "short",
294
- year: "numeric"
295
- })
296
- })] })]
297
- }), /* @__PURE__ */ w("span", {
298
- className: t("text-sm font-semibold", e.amount > 0 ? "text-status-success-text" : "text-text-primary"),
299
- 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
+ ]
300
276
  })]
301
- }, e.id))
302
- })]
303
- })
304
- ]
305
- }), /* @__PURE__ */ w("div", {
306
- className: "space-y-6",
307
- children: [
308
- /* @__PURE__ */ w("div", {
309
- className: "rounded-lg border border-border-seam bg-bg-surface p-4",
310
- children: [/* @__PURE__ */ w("div", {
311
- className: "mb-3 flex items-center gap-2",
312
- children: [/* @__PURE__ */ C(_, { className: "h-5 w-5 text-status-warning-text" }), /* @__PURE__ */ C("h3", {
313
- className: "text-base font-semibold text-text-primary",
314
- 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))
315
304
  })]
316
- }), /* @__PURE__ */ C("div", {
317
- className: "space-y-3",
318
- children: T.map((e) => /* @__PURE__ */ w("div", {
319
- className: "rounded-lg border border-border-seam bg-bg-sunken/50 p-3",
320
- children: [/* @__PURE__ */ w("div", {
321
- className: "mb-1 flex items-center justify-between",
322
- children: [/* @__PURE__ */ C("h4", {
323
- className: "text-xs font-semibold text-text-primary",
324
- 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
+ })] })]
325
331
  }), /* @__PURE__ */ w("span", {
326
- className: "rounded-full bg-action-primary-bg/10 px-2 py-0.5 text-xs font-medium text-primary",
327
- 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 })]
328
334
  })]
329
- }), /* @__PURE__ */ C("p", {
330
- className: "text-xs leading-relaxed text-text-secondary",
331
- 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"
332
349
  })]
333
- }, e.id))
334
- })]
335
- }),
336
- /* @__PURE__ */ w("div", {
337
- className: "rounded-lg border border-border-seam bg-bg-surface p-4",
338
- children: [/* @__PURE__ */ C("h3", {
339
- className: "mb-3 text-base font-semibold text-text-primary",
340
- children: "Quick Actions"
341
- }), /* @__PURE__ */ w("div", {
342
- className: "space-y-2",
343
- children: [
344
- /* @__PURE__ */ w("button", {
345
- type: "button",
346
- onClick: () => O("/investor/portfolio"),
347
- 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",
348
- children: [/* @__PURE__ */ C(y, { className: "h-4 w-4 text-text-secondary" }), "View Full Portfolio"]
349
- }),
350
- /* @__PURE__ */ w("button", {
351
- type: "button",
352
- onClick: () => O("/investor/opportunities"),
353
- 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",
354
- children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), "Browse Opportunities"]
355
- }),
356
- /* @__PURE__ */ w("button", {
357
- type: "button",
358
- onClick: () => O("/investor/analytics"),
359
- 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",
360
- children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), "Investment Analytics"]
361
- }),
362
- /* @__PURE__ */ w("button", {
363
- type: "button",
364
- onClick: () => O("/investor/profile"),
365
- 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",
366
- children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), "View Profile"]
367
- })
368
- ]
369
- })]
370
- }),
371
- /* @__PURE__ */ w("div", {
372
- className: "rounded-lg border border-border-seam bg-bg-surface p-4",
373
- children: [/* @__PURE__ */ C("h3", {
374
- className: "mb-3 text-base font-semibold text-text-primary",
375
- children: "Market Updates"
376
- }), /* @__PURE__ */ w("div", {
377
- className: "space-y-3",
378
- children: [
379
- /* @__PURE__ */ w("div", {
380
- className: "border-l-4 border-status-success-border pl-3",
381
- children: [/* @__PURE__ */ C("h4", {
382
- className: "text-xs font-semibold text-text-primary",
383
- children: "Mobile Services Market Growing"
384
- }), /* @__PURE__ */ C("p", {
385
- className: "mt-1 text-xs leading-relaxed text-text-secondary",
386
- children: "Mobile service industry shows 35% growth in Q4 2024"
387
- })]
388
- }),
389
- /* @__PURE__ */ w("div", {
390
- className: "border-l-4 border-status-info-border pl-3",
391
- children: [/* @__PURE__ */ C("h4", {
392
- className: "text-xs font-semibold text-text-primary",
393
- children: "New Investment Tax Benefits"
394
- }), /* @__PURE__ */ C("p", {
395
- className: "mt-1 text-xs leading-relaxed text-text-secondary",
396
- children: "Government announces SME investment incentives"
397
- })]
398
- }),
399
- /* @__PURE__ */ w("div", {
400
- className: "border-l-4 border-status-warning-border pl-3",
401
- children: [/* @__PURE__ */ C("h4", {
402
- className: "text-xs font-semibold text-text-primary",
403
- 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
+ })]
404
363
  }), /* @__PURE__ */ C("p", {
405
- className: "mt-1 text-xs leading-relaxed text-text-secondary",
406
- children: "Cleaning and maintenance businesses up 25% this quarter"
364
+ className: "text-xs leading-relaxed text-text-secondary",
365
+ children: e.description
407
366
  })]
408
- })
409
- ]
410
- })]
411
- })
412
- ]
413
- })]
414
- })]
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
+ ]
415
450
  });
416
451
  }
417
452
  //#endregion
418
- export { O as InvestorDashboard };
453
+ export { j as InvestorDashboard };
419
454
 
420
455
  //# sourceMappingURL=InvestorDashboard.js.map