@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
@@ -5,8 +5,9 @@ import { formatCurrency as r, formatDate as i } from "../../utils/formatters.js"
5
5
  import { useEffect as a, useState as o } from "react";
6
6
  import { Activity as s, AlertCircle as c, ArrowLeft as l, BarChart3 as u, Building2 as d, CheckCircle2 as f, Clock as p, Download as m, FileText as h, IndianRupee as g, Package as _, PieChart as v, Star as y, TrendingUp as b, Users as x, X as S } from "lucide-react";
7
7
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
8
+ import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
8
9
  //#region src/labsofscience/pages/investor/InvestmentDetailsPage.tsx
9
- var T = {
10
+ var O = {
10
11
  id: "INV-001",
11
12
  cartName: "Dosa Express - Koramangala",
12
13
  cartOwner: "Suresh Rao",
@@ -77,20 +78,20 @@ var T = {
77
78
  }
78
79
  ]
79
80
  };
80
- function E(e) {
81
+ function k(e) {
81
82
  switch (e) {
82
83
  case "verified": return {
83
- color: "text-green-600 dark:text-green-400",
84
+ color: "text-status-success-text",
84
85
  Icon: f,
85
86
  label: "Verified"
86
87
  };
87
88
  case "pending": return {
88
- color: "text-yellow-600 dark:text-yellow-400",
89
+ color: "text-status-warning-text",
89
90
  Icon: p,
90
91
  label: "Pending"
91
92
  };
92
93
  case "rejected": return {
93
- color: "text-red-600 dark:text-red-400",
94
+ color: "text-status-error-text",
94
95
  Icon: c,
95
96
  label: "Rejected"
96
97
  };
@@ -101,15 +102,15 @@ function E(e) {
101
102
  };
102
103
  }
103
104
  }
104
- function D() {
105
- let { navigateTo: f } = e(), [p, D] = o("overview"), [O, k] = o(!0), [A, j] = o(!1), [M, N] = o(null);
105
+ function A() {
106
+ let { navigateTo: f } = e(), [p, A] = o("overview"), [j, M] = o(!0), [N, P] = o(!1), [F, I] = o(null);
106
107
  a(() => {
107
108
  let e = setTimeout(() => {
108
- N(T), k(!1);
109
+ I(O), M(!1);
109
110
  }, 600);
110
111
  return () => clearTimeout(e);
111
112
  }, []);
112
- let P = [
113
+ let L = [
113
114
  {
114
115
  id: "overview",
115
116
  label: "Overview",
@@ -131,7 +132,7 @@ function D() {
131
132
  Icon: s
132
133
  }
133
134
  ];
134
- if (O) return /* @__PURE__ */ C(n, {
135
+ if (j) return /* @__PURE__ */ C(n, {
135
136
  title: "Investment Details",
136
137
  description: "Loading...",
137
138
  children: /* @__PURE__ */ C("div", {
@@ -145,19 +146,19 @@ function D() {
145
146
  })
146
147
  })
147
148
  });
148
- if (!M) return /* @__PURE__ */ C(n, {
149
+ if (!F) return /* @__PURE__ */ C(n, {
149
150
  title: "Investment Not Found",
150
151
  children: /* @__PURE__ */ w("div", {
151
152
  className: "flex flex-col items-center justify-center py-12",
152
- children: [/* @__PURE__ */ C(c, { className: "mb-4 h-12 w-12 text-red-500" }), /* @__PURE__ */ C("p", {
153
+ children: [/* @__PURE__ */ C(c, { className: "mb-4 h-12 w-12 text-status-error-text" }), /* @__PURE__ */ C("p", {
153
154
  className: "text-text-primary",
154
155
  children: "Investment not found"
155
156
  })]
156
157
  })
157
158
  });
158
- let F = M.currentValuation * (M.equityPercentage / 100) - M.investmentAmount, I = F / M.investmentAmount * 100;
159
+ let R = F.currentValuation * (F.equityPercentage / 100) - F.investmentAmount, z = R / F.investmentAmount * 100;
159
160
  return /* @__PURE__ */ w(n, {
160
- title: M.cartName,
161
+ title: F.cartName,
161
162
  description: "Investment Details & Performance",
162
163
  actions: /* @__PURE__ */ w("div", {
163
164
  className: "flex items-center gap-2",
@@ -165,7 +166,7 @@ function D() {
165
166
  /* @__PURE__ */ w("button", {
166
167
  type: "button",
167
168
  onClick: () => f("/investor/portfolio"),
168
- className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
169
+ className: "flex items-center gap-1.5 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
169
170
  children: [
170
171
  /* @__PURE__ */ C(l, { className: "h-4 w-4" }),
171
172
  /* @__PURE__ */ C("span", {
@@ -181,7 +182,7 @@ function D() {
181
182
  /* @__PURE__ */ w("button", {
182
183
  type: "button",
183
184
  onClick: () => alert("Report export initiated"),
184
- className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
185
+ className: "flex items-center gap-1.5 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
185
186
  children: [
186
187
  /* @__PURE__ */ C(m, { className: "h-4 w-4" }),
187
188
  /* @__PURE__ */ C("span", {
@@ -196,7 +197,7 @@ function D() {
196
197
  }),
197
198
  /* @__PURE__ */ w("button", {
198
199
  type: "button",
199
- onClick: () => j(!0),
200
+ onClick: () => P(!0),
200
201
  className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
201
202
  children: [/* @__PURE__ */ C("span", {
202
203
  className: "hidden sm:inline",
@@ -209,16 +210,47 @@ function D() {
209
210
  ]
210
211
  }),
211
212
  children: [
212
- /* @__PURE__ */ w("div", {
213
+ /* @__PURE__ */ C(D, {
214
+ icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
215
+ className: "mb-6",
216
+ children: "A full read-out of one investment. See how much you put in, your equity stake, current value and returns, dig into the cart's business details and performance across the tabs below, and manage your position — top up, withdraw or export a report — whenever you need to."
217
+ }),
218
+ /* @__PURE__ */ C(E, {
219
+ storageKey: "labsofscience-investment-details",
220
+ steps: [
221
+ {
222
+ id: "manage",
223
+ label: "Manage this investment",
224
+ description: "Top up, withdraw or adjust your position.",
225
+ icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
226
+ onClick: () => P(!0)
227
+ },
228
+ {
229
+ id: "portfolio",
230
+ label: "Review your whole portfolio",
231
+ description: "See how this sits alongside your other holdings.",
232
+ icon: /* @__PURE__ */ C(d, { className: "h-4 w-4" }),
233
+ onClick: () => f("/investor/portfolio")
234
+ },
235
+ {
236
+ id: "opportunities",
237
+ label: "Find more opportunities",
238
+ description: "Discover other carts raising funds right now.",
239
+ icon: /* @__PURE__ */ C(b, { className: "h-4 w-4" }),
240
+ onClick: () => f("/investor/opportunities")
241
+ }
242
+ ]
243
+ }),
244
+ /* @__PURE__ */ w(T, {
213
245
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
214
246
  children: [
215
247
  /* @__PURE__ */ w("div", {
216
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
248
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
217
249
  children: [
218
250
  /* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
219
251
  /* @__PURE__ */ C("div", {
220
252
  className: "text-lg font-bold text-text-primary sm:text-2xl",
221
- children: r(M.investmentAmount, { minimumFractionDigits: 0 })
253
+ children: r(F.investmentAmount, { minimumFractionDigits: 0 })
222
254
  }),
223
255
  /* @__PURE__ */ C("div", {
224
256
  className: "text-xs text-text-secondary sm:text-sm",
@@ -227,14 +259,14 @@ function D() {
227
259
  ]
228
260
  }),
229
261
  /* @__PURE__ */ w("div", {
230
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
262
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
231
263
  children: [
232
- /* @__PURE__ */ C(b, { className: "mx-auto mb-2 h-6 w-6 text-green-600 sm:h-8 sm:w-8" }),
264
+ /* @__PURE__ */ C(b, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
233
265
  /* @__PURE__ */ w("div", {
234
- className: "text-lg font-bold text-green-600 dark:text-green-400 sm:text-2xl",
266
+ className: "text-lg font-bold text-status-success-text sm:text-2xl",
235
267
  children: [
236
- I > 0 ? "+" : "",
237
- I.toFixed(1),
268
+ z > 0 ? "+" : "",
269
+ z.toFixed(1),
238
270
  "%"
239
271
  ]
240
272
  }),
@@ -245,12 +277,12 @@ function D() {
245
277
  ]
246
278
  }),
247
279
  /* @__PURE__ */ w("div", {
248
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
280
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
249
281
  children: [
250
- /* @__PURE__ */ C(v, { className: "mx-auto mb-2 h-6 w-6 text-blue-600 sm:h-8 sm:w-8" }),
282
+ /* @__PURE__ */ C(v, { className: "mx-auto mb-2 h-6 w-6 text-status-info-text sm:h-8 sm:w-8" }),
251
283
  /* @__PURE__ */ w("div", {
252
284
  className: "text-lg font-bold text-text-primary sm:text-2xl",
253
- children: [M.equityPercentage, "%"]
285
+ children: [F.equityPercentage, "%"]
254
286
  }),
255
287
  /* @__PURE__ */ C("div", {
256
288
  className: "text-xs text-text-secondary sm:text-sm",
@@ -259,12 +291,12 @@ function D() {
259
291
  ]
260
292
  }),
261
293
  /* @__PURE__ */ w("div", {
262
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
294
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
263
295
  children: [
264
- /* @__PURE__ */ C(d, { className: "mx-auto mb-2 h-6 w-6 text-purple-600 sm:h-8 sm:w-8" }),
296
+ /* @__PURE__ */ C(d, { className: "mx-auto mb-2 h-6 w-6 text-accent-purple sm:h-8 sm:w-8" }),
265
297
  /* @__PURE__ */ C("div", {
266
298
  className: "text-lg font-bold text-text-primary sm:text-2xl",
267
- children: r(M.currentValuation * (M.equityPercentage / 100), { minimumFractionDigits: 0 })
299
+ children: r(F.currentValuation * (F.equityPercentage / 100), { minimumFractionDigits: 0 })
268
300
  }),
269
301
  /* @__PURE__ */ C("div", {
270
302
  className: "text-xs text-text-secondary sm:text-sm",
@@ -276,9 +308,9 @@ function D() {
276
308
  }),
277
309
  /* @__PURE__ */ C("div", {
278
310
  className: "mt-6 flex gap-2 overflow-x-auto pb-2",
279
- children: P.map((e) => /* @__PURE__ */ w("button", {
311
+ children: L.map((e) => /* @__PURE__ */ w("button", {
280
312
  type: "button",
281
- onClick: () => D(e.id),
313
+ onClick: () => A(e.id),
282
314
  className: t("flex items-center gap-2 whitespace-nowrap rounded-lg px-3 py-2 text-sm font-medium transition-colors sm:px-4 sm:py-3", p === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"),
283
315
  children: [
284
316
  /* @__PURE__ */ C(e.Icon, { className: "h-4 w-4 flex-shrink-0" }),
@@ -301,7 +333,7 @@ function D() {
301
333
  children: [/* @__PURE__ */ w("div", {
302
334
  className: "space-y-6 lg:col-span-2",
303
335
  children: [/* @__PURE__ */ w("div", {
304
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
336
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
305
337
  children: [/* @__PURE__ */ C("h2", {
306
338
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
307
339
  children: "Business Information"
@@ -313,28 +345,28 @@ function D() {
313
345
  children: "Owner"
314
346
  }), /* @__PURE__ */ C("p", {
315
347
  className: "font-medium text-text-primary",
316
- children: M.cartOwner
348
+ children: F.cartOwner
317
349
  })] }),
318
350
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
319
351
  className: "text-sm text-text-secondary",
320
352
  children: "Business Type"
321
353
  }), /* @__PURE__ */ C("p", {
322
354
  className: "font-medium text-text-primary",
323
- children: M.businessType
355
+ children: F.businessType
324
356
  })] }),
325
357
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
326
358
  className: "text-sm text-text-secondary",
327
359
  children: "Location"
328
360
  }), /* @__PURE__ */ C("p", {
329
361
  className: "font-medium text-text-primary",
330
- children: M.location
362
+ children: F.location
331
363
  })] }),
332
364
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
333
365
  className: "text-sm text-text-secondary",
334
366
  children: "Established"
335
367
  }), /* @__PURE__ */ C("p", {
336
368
  className: "font-medium text-text-primary",
337
- children: i(M.establishedDate, {
369
+ children: i(F.establishedDate, {
338
370
  hour: void 0,
339
371
  minute: void 0
340
372
  })
@@ -342,7 +374,7 @@ function D() {
342
374
  ]
343
375
  })]
344
376
  }), /* @__PURE__ */ w("div", {
345
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
377
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
346
378
  children: [
347
379
  /* @__PURE__ */ C("h2", {
348
380
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
@@ -355,7 +387,7 @@ function D() {
355
387
  /* @__PURE__ */ C(_, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
356
388
  /* @__PURE__ */ C("div", {
357
389
  className: "text-xl font-bold text-text-primary sm:text-2xl",
358
- children: M.monthlyOrders
390
+ children: F.monthlyOrders
359
391
  }),
360
392
  /* @__PURE__ */ C("div", {
361
393
  className: "text-xs text-text-secondary sm:text-sm",
@@ -363,10 +395,10 @@ function D() {
363
395
  })
364
396
  ] }),
365
397
  /* @__PURE__ */ w("div", { children: [
366
- /* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-green-600 sm:h-8 sm:w-8" }),
398
+ /* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
367
399
  /* @__PURE__ */ C("div", {
368
400
  className: "text-xl font-bold text-text-primary sm:text-2xl",
369
- children: r(M.monthlyRevenue, { minimumFractionDigits: 0 })
401
+ children: r(F.monthlyRevenue, { minimumFractionDigits: 0 })
370
402
  }),
371
403
  /* @__PURE__ */ C("div", {
372
404
  className: "text-xs text-text-secondary sm:text-sm",
@@ -374,10 +406,10 @@ function D() {
374
406
  })
375
407
  ] }),
376
408
  /* @__PURE__ */ w("div", { children: [
377
- /* @__PURE__ */ C(x, { className: "mx-auto mb-2 h-6 w-6 text-blue-600 sm:h-8 sm:w-8" }),
409
+ /* @__PURE__ */ C(x, { className: "mx-auto mb-2 h-6 w-6 text-status-info-text sm:h-8 sm:w-8" }),
378
410
  /* @__PURE__ */ C("div", {
379
411
  className: "text-xl font-bold text-text-primary sm:text-2xl",
380
- children: M.activeCustomers
412
+ children: F.activeCustomers
381
413
  }),
382
414
  /* @__PURE__ */ C("div", {
383
415
  className: "text-xs text-text-secondary sm:text-sm",
@@ -387,15 +419,15 @@ function D() {
387
419
  ]
388
420
  }),
389
421
  /* @__PURE__ */ w("div", {
390
- className: "mt-4 flex flex-col items-start justify-between gap-4 border-t border-border-subtle pt-4 sm:mt-6 sm:flex-row sm:items-center sm:pt-6",
422
+ className: "mt-4 flex flex-col items-start justify-between gap-4 border-t border-border-seam pt-4 sm:mt-6 sm:flex-row sm:items-center sm:pt-6",
391
423
  children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
392
424
  className: "text-sm text-text-secondary",
393
425
  children: "Customer Rating"
394
426
  }), /* @__PURE__ */ w("div", {
395
427
  className: "mt-1 flex items-center gap-1",
396
- children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */ C(y, { className: t("h-4 w-4", n < Math.floor(M.customerRating) ? "fill-yellow-400 text-yellow-400" : "fill-none text-text-secondary/40") }, n)), /* @__PURE__ */ C("span", {
428
+ children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */ C(y, { className: t("h-4 w-4", n < Math.floor(F.customerRating) ? "fill-status-warning-text text-status-warning-text" : "fill-none text-text-secondary/40") }, n)), /* @__PURE__ */ C("span", {
397
429
  className: "ml-1 text-sm font-medium text-text-primary",
398
- children: M.customerRating
430
+ children: F.customerRating
399
431
  })]
400
432
  })] }), /* @__PURE__ */ w("div", {
401
433
  className: "text-left sm:text-right",
@@ -404,7 +436,7 @@ function D() {
404
436
  children: "Avg Order Value"
405
437
  }), /* @__PURE__ */ C("p", {
406
438
  className: "text-lg font-semibold text-text-primary",
407
- children: r(M.averageOrderValue, { minimumFractionDigits: 0 })
439
+ children: r(F.averageOrderValue, { minimumFractionDigits: 0 })
408
440
  })]
409
441
  })]
410
442
  })
@@ -413,7 +445,7 @@ function D() {
413
445
  }), /* @__PURE__ */ w("div", {
414
446
  className: "space-y-6",
415
447
  children: [/* @__PURE__ */ w("div", {
416
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
448
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
417
449
  children: [/* @__PURE__ */ C("h2", {
418
450
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
419
451
  children: "Investment Summary"
@@ -425,7 +457,7 @@ function D() {
425
457
  children: "Investment Date"
426
458
  }), /* @__PURE__ */ C("p", {
427
459
  className: "font-medium text-text-primary",
428
- children: i(M.investmentDate, {
460
+ children: i(F.investmentDate, {
429
461
  hour: void 0,
430
462
  minute: void 0
431
463
  })
@@ -435,39 +467,39 @@ function D() {
435
467
  children: "Investment Type"
436
468
  }), /* @__PURE__ */ C("p", {
437
469
  className: "font-medium text-text-primary",
438
- children: M.investmentType
470
+ children: F.investmentType
439
471
  })] }),
440
472
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
441
473
  className: "text-sm text-text-secondary",
442
474
  children: "Initial Valuation"
443
475
  }), /* @__PURE__ */ C("p", {
444
476
  className: "font-medium text-text-primary",
445
- children: r(M.valuationAtInvestment, { minimumFractionDigits: 0 })
477
+ children: r(F.valuationAtInvestment, { minimumFractionDigits: 0 })
446
478
  })] }),
447
479
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
448
480
  className: "text-sm text-text-secondary",
449
481
  children: "Current Valuation"
450
482
  }), /* @__PURE__ */ C("p", {
451
483
  className: "text-lg font-medium text-text-primary",
452
- children: r(M.currentValuation, { minimumFractionDigits: 0 })
484
+ children: r(F.currentValuation, { minimumFractionDigits: 0 })
453
485
  })] }),
454
486
  /* @__PURE__ */ C("div", {
455
- className: "border-t border-border-subtle pt-4",
487
+ className: "border-t border-border-seam pt-4",
456
488
  children: /* @__PURE__ */ w("div", {
457
489
  className: "flex items-center justify-between",
458
490
  children: [/* @__PURE__ */ C("span", {
459
491
  className: "text-sm text-text-secondary",
460
492
  children: "Your Returns"
461
493
  }), /* @__PURE__ */ w("span", {
462
- className: t("text-lg font-semibold", F > 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
463
- children: [F > 0 ? "+" : "", r(F, { minimumFractionDigits: 0 })]
494
+ className: t("text-lg font-semibold", R > 0 ? "text-status-success-text" : "text-status-error-text"),
495
+ children: [R > 0 ? "+" : "", r(R, { minimumFractionDigits: 0 })]
464
496
  })]
465
497
  })
466
498
  })
467
499
  ]
468
500
  })]
469
501
  }), /* @__PURE__ */ w("div", {
470
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
502
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
471
503
  children: [/* @__PURE__ */ C("h2", {
472
504
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
473
505
  children: "Growth Indicators"
@@ -480,18 +512,18 @@ function D() {
480
512
  className: "text-sm text-text-secondary",
481
513
  children: "Revenue Growth"
482
514
  }), /* @__PURE__ */ w("span", {
483
- className: "text-sm font-medium text-green-600 dark:text-green-400",
515
+ className: "text-sm font-medium text-status-success-text",
484
516
  children: [
485
517
  "+",
486
- M.revenueGrowth,
518
+ F.revenueGrowth,
487
519
  "%"
488
520
  ]
489
521
  })]
490
522
  }), /* @__PURE__ */ C("div", {
491
523
  className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
492
524
  children: /* @__PURE__ */ C("div", {
493
- className: "h-full rounded-full bg-green-600",
494
- style: { width: `${Math.min(M.revenueGrowth, 100)}%` }
525
+ className: "h-full rounded-full bg-status-success-bg",
526
+ style: { width: `${Math.min(F.revenueGrowth, 100)}%` }
495
527
  })
496
528
  })] }),
497
529
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
@@ -501,13 +533,13 @@ function D() {
501
533
  children: "Profit Margin"
502
534
  }), /* @__PURE__ */ w("span", {
503
535
  className: "text-sm font-medium text-text-primary",
504
- children: [M.profitMargin, "%"]
536
+ children: [F.profitMargin, "%"]
505
537
  })]
506
538
  }), /* @__PURE__ */ C("div", {
507
539
  className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
508
540
  children: /* @__PURE__ */ C("div", {
509
- className: "h-full rounded-full bg-blue-600",
510
- style: { width: `${M.profitMargin}%` }
541
+ className: "h-full rounded-full bg-status-info-bg",
542
+ style: { width: `${F.profitMargin}%` }
511
543
  })
512
544
  })] }),
513
545
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
@@ -516,18 +548,18 @@ function D() {
516
548
  className: "text-sm text-text-secondary",
517
549
  children: "ROI"
518
550
  }), /* @__PURE__ */ w("span", {
519
- className: "text-sm font-medium text-green-600 dark:text-green-400",
551
+ className: "text-sm font-medium text-status-success-text",
520
552
  children: [
521
553
  "+",
522
- M.returnOnInvestment,
554
+ F.returnOnInvestment,
523
555
  "%"
524
556
  ]
525
557
  })]
526
558
  }), /* @__PURE__ */ C("div", {
527
559
  className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
528
560
  children: /* @__PURE__ */ C("div", {
529
- className: "h-full rounded-full bg-green-500",
530
- style: { width: `${Math.min(M.returnOnInvestment, 100)}%` }
561
+ className: "h-full rounded-full bg-status-success-bg",
562
+ style: { width: `${Math.min(F.returnOnInvestment, 100)}%` }
531
563
  })
532
564
  })] }),
533
565
  /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
@@ -535,7 +567,7 @@ function D() {
535
567
  children: "Expected Payback"
536
568
  }), /* @__PURE__ */ C("p", {
537
569
  className: "font-medium text-text-primary",
538
- children: M.paybackPeriod
570
+ children: F.paybackPeriod
539
571
  })] })
540
572
  ]
541
573
  })]
@@ -543,7 +575,7 @@ function D() {
543
575
  })]
544
576
  }),
545
577
  p === "financials" && /* @__PURE__ */ w("div", {
546
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
578
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
547
579
  children: [
548
580
  /* @__PURE__ */ C("h2", {
549
581
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
@@ -559,7 +591,7 @@ function D() {
559
591
  children: "Monthly Revenue"
560
592
  }), /* @__PURE__ */ C("p", {
561
593
  className: "mt-1 text-lg font-bold text-text-primary",
562
- children: r(M.monthlyRevenue, { minimumFractionDigits: 0 })
594
+ children: r(F.monthlyRevenue, { minimumFractionDigits: 0 })
563
595
  })]
564
596
  }),
565
597
  /* @__PURE__ */ w("div", {
@@ -568,10 +600,10 @@ function D() {
568
600
  className: "text-xs text-text-secondary",
569
601
  children: "Revenue Growth"
570
602
  }), /* @__PURE__ */ w("p", {
571
- className: "mt-1 text-lg font-bold text-green-600 dark:text-green-400",
603
+ className: "mt-1 text-lg font-bold text-status-success-text",
572
604
  children: [
573
605
  "+",
574
- M.revenueGrowth,
606
+ F.revenueGrowth,
575
607
  "%"
576
608
  ]
577
609
  })]
@@ -583,7 +615,7 @@ function D() {
583
615
  children: "Profit Margin"
584
616
  }), /* @__PURE__ */ w("p", {
585
617
  className: "mt-1 text-lg font-bold text-text-primary",
586
- children: [M.profitMargin, "%"]
618
+ children: [F.profitMargin, "%"]
587
619
  })]
588
620
  }),
589
621
  /* @__PURE__ */ w("div", {
@@ -593,13 +625,13 @@ function D() {
593
625
  children: "Avg Order Value"
594
626
  }), /* @__PURE__ */ C("p", {
595
627
  className: "mt-1 text-lg font-bold text-text-primary",
596
- children: r(M.averageOrderValue, { minimumFractionDigits: 0 })
628
+ children: r(F.averageOrderValue, { minimumFractionDigits: 0 })
597
629
  })]
598
630
  })
599
631
  ]
600
632
  }),
601
633
  /* @__PURE__ */ C("div", {
602
- className: "overflow-hidden rounded-lg border border-border-subtle",
634
+ className: "overflow-hidden rounded-lg border border-border-seam",
603
635
  children: /* @__PURE__ */ w("table", {
604
636
  className: "w-full",
605
637
  children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", {
@@ -623,32 +655,32 @@ function D() {
623
655
  children: [
624
656
  {
625
657
  metric: "Monthly Revenue",
626
- value: r(M.monthlyRevenue, { minimumFractionDigits: 0 }),
658
+ value: r(F.monthlyRevenue, { minimumFractionDigits: 0 }),
627
659
  trend: "+18.5%"
628
660
  },
629
661
  {
630
662
  metric: "Monthly Orders",
631
- value: String(M.monthlyOrders),
663
+ value: String(F.monthlyOrders),
632
664
  trend: "+12%"
633
665
  },
634
666
  {
635
667
  metric: "Average Order Value",
636
- value: r(M.averageOrderValue, { minimumFractionDigits: 0 }),
668
+ value: r(F.averageOrderValue, { minimumFractionDigits: 0 }),
637
669
  trend: "+5.8%"
638
670
  },
639
671
  {
640
672
  metric: "Active Customers",
641
- value: String(M.activeCustomers),
673
+ value: String(F.activeCustomers),
642
674
  trend: "+22%"
643
675
  },
644
676
  {
645
677
  metric: "Profit Margin",
646
- value: `${M.profitMargin}%`,
678
+ value: `${F.profitMargin}%`,
647
679
  trend: "+2.1%"
648
680
  },
649
681
  {
650
682
  metric: "Return on Investment",
651
- value: `${M.returnOnInvestment}%`,
683
+ value: `${F.returnOnInvestment}%`,
652
684
  trend: "+8.5%"
653
685
  }
654
686
  ].map((e) => /* @__PURE__ */ w("tr", {
@@ -663,7 +695,7 @@ function D() {
663
695
  children: e.value
664
696
  }),
665
697
  /* @__PURE__ */ C("td", {
666
- className: "px-4 py-3 text-right text-sm font-medium text-green-600 dark:text-green-400",
698
+ className: "px-4 py-3 text-right text-sm font-medium text-status-success-text",
667
699
  children: e.trend
668
700
  })
669
701
  ]
@@ -674,14 +706,14 @@ function D() {
674
706
  ]
675
707
  }),
676
708
  p === "documents" && /* @__PURE__ */ w("div", {
677
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
709
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
678
710
  children: [/* @__PURE__ */ C("h2", {
679
711
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
680
712
  children: "Investment Documents"
681
713
  }), /* @__PURE__ */ C("div", {
682
714
  className: "space-y-4",
683
- children: M.documents.map((e, n) => {
684
- let r = E(e.status), a = r.Icon;
715
+ children: F.documents.map((e, n) => {
716
+ let r = k(e.status), a = r.Icon;
685
717
  return /* @__PURE__ */ w("div", {
686
718
  className: "flex flex-col gap-4 rounded-lg bg-bg-sunken/50 p-4 sm:flex-row sm:items-center sm:justify-between",
687
719
  children: [/* @__PURE__ */ w("div", {
@@ -721,7 +753,7 @@ function D() {
721
753
  }), /* @__PURE__ */ w("button", {
722
754
  type: "button",
723
755
  onClick: () => alert(`Downloading ${e.name}`),
724
- className: "flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
756
+ className: "flex items-center gap-1 rounded-lg border border-border-seam px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
725
757
  children: [/* @__PURE__ */ C(m, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ C("span", {
726
758
  className: "hidden sm:inline",
727
759
  children: "Download"
@@ -733,13 +765,13 @@ function D() {
733
765
  })]
734
766
  }),
735
767
  p === "updates" && /* @__PURE__ */ w("div", {
736
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
768
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
737
769
  children: [/* @__PURE__ */ C("h2", {
738
770
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
739
771
  children: "Recent Updates"
740
772
  }), /* @__PURE__ */ C("div", {
741
773
  className: "space-y-4",
742
- children: M.recentUpdates.map((e, t) => /* @__PURE__ */ w("div", {
774
+ children: F.recentUpdates.map((e, t) => /* @__PURE__ */ w("div", {
743
775
  className: "flex gap-3 rounded-lg bg-bg-sunken/50 p-4 sm:gap-4",
744
776
  children: [/* @__PURE__ */ C("div", {
745
777
  className: "flex-shrink-0",
@@ -768,16 +800,16 @@ function D() {
768
800
  })
769
801
  ]
770
802
  }),
771
- A && /* @__PURE__ */ C("div", {
803
+ N && /* @__PURE__ */ C("div", {
772
804
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
773
805
  children: /* @__PURE__ */ w("div", {
774
- className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
806
+ className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-seam bg-bg-surface",
775
807
  children: [
776
808
  /* @__PURE__ */ w("div", {
777
- className: "border-b border-border-subtle p-4 sm:p-6",
809
+ className: "border-b border-border-seam p-4 sm:p-6",
778
810
  children: [/* @__PURE__ */ C("button", {
779
811
  type: "button",
780
- onClick: () => j(!1),
812
+ onClick: () => P(!1),
781
813
  className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
782
814
  children: /* @__PURE__ */ C(S, { className: "h-5 w-5" })
783
815
  }), /* @__PURE__ */ C("h2", {
@@ -792,7 +824,7 @@ function D() {
792
824
  className: "text-sm text-text-secondary sm:text-base",
793
825
  children: [
794
826
  "Choose an action for your investment in ",
795
- M.cartName,
827
+ F.cartName,
796
828
  ":"
797
829
  ]
798
830
  }),
@@ -802,38 +834,38 @@ function D() {
802
834
  /* @__PURE__ */ C("button", {
803
835
  type: "button",
804
836
  onClick: () => alert("Partial withdrawal request submitted"),
805
- className: "w-full rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
837
+ className: "w-full rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
806
838
  children: "Request Partial Withdrawal"
807
839
  }),
808
840
  /* @__PURE__ */ C("button", {
809
841
  type: "button",
810
842
  onClick: () => alert("Transfer ownership feature coming soon"),
811
- className: "w-full rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
843
+ className: "w-full rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
812
844
  children: "Transfer Ownership"
813
845
  }),
814
846
  /* @__PURE__ */ C("button", {
815
847
  type: "button",
816
848
  onClick: () => alert("Exit options will be displayed"),
817
- className: "w-full rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
849
+ className: "w-full rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
818
850
  children: "View Exit Options"
819
851
  })
820
852
  ]
821
853
  }),
822
854
  /* @__PURE__ */ C("div", {
823
- className: "rounded-lg border border-yellow-500/30 bg-yellow-500/10 p-3 sm:p-4",
855
+ className: "rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 sm:p-4",
824
856
  children: /* @__PURE__ */ C("p", {
825
- className: "text-xs text-yellow-800 dark:text-yellow-200 sm:text-sm",
857
+ className: "text-xs text-status-warning-text sm:text-sm",
826
858
  children: "Any changes to your investment require approval from the business owner and may be subject to terms in your investment agreement."
827
859
  })
828
860
  })
829
861
  ]
830
862
  }),
831
863
  /* @__PURE__ */ C("div", {
832
- className: "flex justify-end gap-3 border-t border-border-subtle p-4 sm:p-6",
864
+ className: "flex justify-end gap-3 border-t border-border-seam p-4 sm:p-6",
833
865
  children: /* @__PURE__ */ C("button", {
834
866
  type: "button",
835
- onClick: () => j(!1),
836
- className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
867
+ onClick: () => P(!1),
868
+ className: "rounded-lg border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
837
869
  children: "Cancel"
838
870
  })
839
871
  })
@@ -844,6 +876,6 @@ function D() {
844
876
  });
845
877
  }
846
878
  //#endregion
847
- export { D as InvestmentDetailsPage };
879
+ export { A as InvestmentDetailsPage };
848
880
 
849
881
  //# sourceMappingURL=InvestmentDetailsPage.js.map