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