@burdenoff/microfe-subscriberbot 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 (104) hide show
  1. package/dist/subscriberbot/components/EmptyState.js +17 -10
  2. package/dist/subscriberbot/components/EmptyState.js.map +1 -1
  3. package/dist/subscriberbot/components/InvestmentCard.js +23 -22
  4. package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
  5. package/dist/subscriberbot/components/MetricsCard.js +15 -12
  6. package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
  7. package/dist/subscriberbot/components/PageLayout.js +27 -15
  8. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  9. package/dist/subscriberbot/components/RatingDisplay.js +3 -3
  10. package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
  11. package/dist/subscriberbot/components/StatusBadge.js +25 -13
  12. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  13. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  14. package/dist/subscriberbot/pages/HomePage.js +72 -63
  15. package/dist/subscriberbot/pages/HomePage.js.map +1 -1
  16. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +106 -100
  17. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
  18. package/dist/subscriberbot/pages/admin/AdminDashboard.js +125 -85
  19. package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
  20. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +51 -45
  21. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
  22. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +246 -241
  23. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
  24. package/dist/subscriberbot/pages/admin/AdminProfilePage.js +131 -129
  25. package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
  26. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +247 -242
  27. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
  28. package/dist/subscriberbot/pages/admin/CartManagementPage.js +307 -302
  29. package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
  30. package/dist/subscriberbot/pages/admin/UserManagementPage.js +308 -303
  31. package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
  32. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +89 -84
  33. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  34. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +269 -264
  35. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  36. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +269 -227
  37. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  38. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +191 -186
  39. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  40. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +168 -166
  41. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  42. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +344 -347
  43. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  44. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +270 -272
  45. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
  46. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +294 -289
  47. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
  48. package/dist/subscriberbot/pages/common/HelpSupportPage.js +156 -158
  49. package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
  50. package/dist/subscriberbot/pages/common/NotificationCenterPage.js +94 -87
  51. package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
  52. package/dist/subscriberbot/pages/common/SettingsPage.js +749 -740
  53. package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
  54. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +357 -324
  55. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
  56. package/dist/subscriberbot/pages/customer/CartDetailPage.js +281 -247
  57. package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
  58. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +106 -98
  59. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
  60. package/dist/subscriberbot/pages/customer/CheckoutPage.js +235 -238
  61. package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
  62. package/dist/subscriberbot/pages/customer/CustomerDashboard.js +426 -390
  63. package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
  64. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +488 -479
  65. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
  66. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +522 -512
  67. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
  68. package/dist/subscriberbot/pages/customer/FavoritesPage.js +73 -66
  69. package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
  70. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +75 -67
  71. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
  72. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +82 -76
  73. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
  74. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +100 -93
  75. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
  76. package/dist/subscriberbot/pages/customer/ReviewsPage.js +97 -90
  77. package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
  78. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +86 -79
  79. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
  80. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +330 -293
  81. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
  82. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +269 -261
  83. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  84. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +97 -91
  85. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  86. package/dist/subscriberbot/pages/investor/InvestorDashboard.js +354 -322
  87. package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
  88. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +118 -111
  89. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  90. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +75 -69
  91. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
  92. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +435 -430
  93. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
  94. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +328 -289
  95. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
  96. package/dist/subscriberbot/pages/worker/WorkerDashboard.js +135 -103
  97. package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
  98. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +120 -114
  99. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
  100. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +125 -120
  101. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
  102. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +354 -344
  103. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
  104. package/package.json +3 -3
@@ -1,12 +1,14 @@
1
1
  import { useSubscriberBot as e } from "../../context/SubscriberBotContext.js";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { formatCurrency as r, formatDate as i } from "../../utils/formatters.js";
5
- import { useEffect as a, useState as o } from "react";
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
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
4
+ import { EmptyState as r } from "../../components/EmptyState.js";
5
+ import { formatCurrency as i, formatDate as a } from "../../utils/formatters.js";
6
+ import { useEffect as o, useState as s } from "react";
7
+ import { Activity as c, AlertCircle as l, ArrowLeft as u, BarChart3 as d, Briefcase as f, Building2 as p, CheckCircle2 as m, Clock as h, Download as g, FileText as _, IndianRupee as v, Package as y, PieChart as b, Star as x, Target as S, TrendingUp as C, Users as w, X as T } from "lucide-react";
8
+ import { jsx as E, jsxs as D } from "react/jsx-runtime";
9
+ import { EmphasisPanel as O, NextSteps as k, PagePurpose as A } from "@burdenoff/fe-libs/ui";
8
10
  //#region src/subscriberbot/pages/investor/InvestmentDetailsPage.tsx
9
- var T = {
11
+ var j = {
10
12
  id: "INV-001",
11
13
  cartName: "Dosa Express - Koramangala",
12
14
  cartOwner: "Suresh Rao",
@@ -77,131 +79,135 @@ var T = {
77
79
  }
78
80
  ]
79
81
  };
80
- function E(e) {
82
+ function M(e) {
81
83
  switch (e) {
82
84
  case "verified": return {
83
- color: "text-green-600 dark:text-green-400",
84
- Icon: f,
85
+ color: "text-status-success-text",
86
+ Icon: m,
85
87
  label: "Verified"
86
88
  };
87
89
  case "pending": return {
88
- color: "text-yellow-600 dark:text-yellow-400",
89
- Icon: p,
90
+ color: "text-status-warning-text",
91
+ Icon: h,
90
92
  label: "Pending"
91
93
  };
92
94
  case "rejected": return {
93
- color: "text-red-600 dark:text-red-400",
94
- Icon: c,
95
+ color: "text-status-error-text",
96
+ Icon: l,
95
97
  label: "Rejected"
96
98
  };
97
99
  default: return {
98
100
  color: "text-text-secondary",
99
- Icon: c,
101
+ Icon: l,
100
102
  label: e
101
103
  };
102
104
  }
103
105
  }
104
- function D() {
105
- let { navigateTo: f } = e(), [p, D] = o("overview"), [O, k] = o(!0), [A, j] = o(!1), [M, N] = o(null);
106
- a(() => {
106
+ function N() {
107
+ let { navigateTo: l } = e(), [m, h] = s("overview"), [N, P] = s(!0), [F, I] = s(!1), [L, R] = s(null);
108
+ o(() => {
107
109
  let e = setTimeout(() => {
108
- N(T), k(!1);
110
+ R(j), P(!1);
109
111
  }, 600);
110
112
  return () => clearTimeout(e);
111
113
  }, []);
112
- let P = [
114
+ let z = [
113
115
  {
114
116
  id: "overview",
115
117
  label: "Overview",
116
- Icon: u
118
+ Icon: d
117
119
  },
118
120
  {
119
121
  id: "financials",
120
122
  label: "Financials",
121
- Icon: g
123
+ Icon: v
122
124
  },
123
125
  {
124
126
  id: "documents",
125
127
  label: "Documents",
126
- Icon: h
128
+ Icon: _
127
129
  },
128
130
  {
129
131
  id: "updates",
130
132
  label: "Updates",
131
- Icon: s
133
+ Icon: c
132
134
  }
133
135
  ];
134
- if (O) return /* @__PURE__ */ C(n, {
136
+ if (N) return /* @__PURE__ */ E(n, {
135
137
  title: "Investment Details",
136
138
  description: "Loading...",
137
- children: /* @__PURE__ */ C("div", {
139
+ children: /* @__PURE__ */ E("div", {
138
140
  className: "flex items-center justify-center py-20",
139
- children: /* @__PURE__ */ w("div", {
141
+ children: /* @__PURE__ */ D("div", {
140
142
  className: "text-center",
141
- children: [/* @__PURE__ */ C("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-primary" }), /* @__PURE__ */ C("p", {
143
+ children: [/* @__PURE__ */ E("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-primary" }), /* @__PURE__ */ E("p", {
142
144
  className: "text-sm text-text-secondary",
143
145
  children: "Loading investment details..."
144
146
  })]
145
147
  })
146
148
  })
147
149
  });
148
- if (!M) return /* @__PURE__ */ C(n, {
150
+ if (!L) return /* @__PURE__ */ E(n, {
149
151
  title: "Investment Not Found",
150
- children: /* @__PURE__ */ w("div", {
151
- 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
- className: "text-text-primary",
154
- children: "Investment not found"
155
- })]
152
+ children: /* @__PURE__ */ E(r, {
153
+ illustration: "empty-generic",
154
+ title: "Investment not found",
155
+ description: "We couldn't find this investment. It may have been removed, or the link may be out of date.",
156
+ action: /* @__PURE__ */ D("button", {
157
+ type: "button",
158
+ onClick: () => l("/investor/portfolio"),
159
+ className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
160
+ children: [/* @__PURE__ */ E(u, { className: "h-4 w-4" }), "Back to Portfolio"]
161
+ })
156
162
  })
157
163
  });
158
- let F = M.currentValuation * (M.equityPercentage / 100) - M.investmentAmount, I = F / M.investmentAmount * 100;
159
- return /* @__PURE__ */ w(n, {
160
- title: M.cartName,
164
+ let B = L.currentValuation * (L.equityPercentage / 100) - L.investmentAmount, V = B / L.investmentAmount * 100;
165
+ return /* @__PURE__ */ D(n, {
166
+ title: L.cartName,
161
167
  description: "Investment Details & Performance",
162
- actions: /* @__PURE__ */ w("div", {
168
+ actions: /* @__PURE__ */ D("div", {
163
169
  className: "flex items-center gap-2",
164
170
  children: [
165
- /* @__PURE__ */ w("button", {
171
+ /* @__PURE__ */ D("button", {
166
172
  type: "button",
167
- 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",
173
+ onClick: () => l("/investor/portfolio"),
174
+ 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
175
  children: [
170
- /* @__PURE__ */ C(l, { className: "h-4 w-4" }),
171
- /* @__PURE__ */ C("span", {
176
+ /* @__PURE__ */ E(u, { className: "h-4 w-4" }),
177
+ /* @__PURE__ */ E("span", {
172
178
  className: "hidden sm:inline",
173
179
  children: "Back to Portfolio"
174
180
  }),
175
- /* @__PURE__ */ C("span", {
181
+ /* @__PURE__ */ E("span", {
176
182
  className: "sm:hidden",
177
183
  children: "Back"
178
184
  })
179
185
  ]
180
186
  }),
181
- /* @__PURE__ */ w("button", {
187
+ /* @__PURE__ */ D("button", {
182
188
  type: "button",
183
189
  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",
190
+ 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
191
  children: [
186
- /* @__PURE__ */ C(m, { className: "h-4 w-4" }),
187
- /* @__PURE__ */ C("span", {
192
+ /* @__PURE__ */ E(g, { className: "h-4 w-4" }),
193
+ /* @__PURE__ */ E("span", {
188
194
  className: "hidden sm:inline",
189
195
  children: "Export Report"
190
196
  }),
191
- /* @__PURE__ */ C("span", {
197
+ /* @__PURE__ */ E("span", {
192
198
  className: "sm:hidden",
193
199
  children: "Export"
194
200
  })
195
201
  ]
196
202
  }),
197
- /* @__PURE__ */ w("button", {
203
+ /* @__PURE__ */ D("button", {
198
204
  type: "button",
199
- onClick: () => j(!0),
205
+ onClick: () => I(!0),
200
206
  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
- children: [/* @__PURE__ */ C("span", {
207
+ children: [/* @__PURE__ */ E("span", {
202
208
  className: "hidden sm:inline",
203
209
  children: "Manage Investment"
204
- }), /* @__PURE__ */ C("span", {
210
+ }), /* @__PURE__ */ E("span", {
205
211
  className: "sm:hidden",
206
212
  children: "Manage"
207
213
  })]
@@ -209,64 +215,95 @@ function D() {
209
215
  ]
210
216
  }),
211
217
  children: [
212
- /* @__PURE__ */ w("div", {
218
+ /* @__PURE__ */ E(A, {
219
+ icon: /* @__PURE__ */ E(C, { className: "h-4 w-4" }),
220
+ className: "mb-6",
221
+ children: "A deep dive into one of your holdings. See exactly how much you put in, your equity stake, current value and returns, then switch tabs for performance history, business updates and documents. Use Manage Investment when you want to top up, withdraw dividends or adjust your position."
222
+ }),
223
+ /* @__PURE__ */ E(k, {
224
+ storageKey: "subscriberbot-investment-details",
225
+ steps: [
226
+ {
227
+ id: "manage-investment",
228
+ label: "Manage this investment",
229
+ description: "Top up, withdraw dividends or adjust your position.",
230
+ icon: /* @__PURE__ */ E(f, { className: "h-4 w-4" }),
231
+ onClick: () => I(!0)
232
+ },
233
+ {
234
+ id: "back-portfolio",
235
+ label: "Back to your portfolio",
236
+ description: "Compare this holding against the rest of your investments.",
237
+ icon: /* @__PURE__ */ E(b, { className: "h-4 w-4" }),
238
+ onClick: () => l("/investor/portfolio")
239
+ },
240
+ {
241
+ id: "more-opps",
242
+ label: "Find more opportunities",
243
+ description: "Diversify by backing other promising local carts.",
244
+ icon: /* @__PURE__ */ E(S, { className: "h-4 w-4" }),
245
+ onClick: () => l("/investor/opportunities")
246
+ }
247
+ ]
248
+ }),
249
+ /* @__PURE__ */ D(O, {
213
250
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
214
251
  children: [
215
- /* @__PURE__ */ w("div", {
216
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
252
+ /* @__PURE__ */ D("div", {
253
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
217
254
  children: [
218
- /* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
219
- /* @__PURE__ */ C("div", {
255
+ /* @__PURE__ */ E(v, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
256
+ /* @__PURE__ */ E("div", {
220
257
  className: "text-lg font-bold text-text-primary sm:text-2xl",
221
- children: r(M.investmentAmount, { minimumFractionDigits: 0 })
258
+ children: i(L.investmentAmount, { minimumFractionDigits: 0 })
222
259
  }),
223
- /* @__PURE__ */ C("div", {
260
+ /* @__PURE__ */ E("div", {
224
261
  className: "text-xs text-text-secondary sm:text-sm",
225
262
  children: "Your Investment"
226
263
  })
227
264
  ]
228
265
  }),
229
- /* @__PURE__ */ w("div", {
230
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
266
+ /* @__PURE__ */ D("div", {
267
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
231
268
  children: [
232
- /* @__PURE__ */ C(b, { className: "mx-auto mb-2 h-6 w-6 text-green-600 sm:h-8 sm:w-8" }),
233
- /* @__PURE__ */ w("div", {
234
- className: "text-lg font-bold text-green-600 dark:text-green-400 sm:text-2xl",
269
+ /* @__PURE__ */ E(C, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
270
+ /* @__PURE__ */ D("div", {
271
+ className: "text-lg font-bold text-status-success-text sm:text-2xl",
235
272
  children: [
236
- I > 0 ? "+" : "",
237
- I.toFixed(1),
273
+ V > 0 ? "+" : "",
274
+ V.toFixed(1),
238
275
  "%"
239
276
  ]
240
277
  }),
241
- /* @__PURE__ */ C("div", {
278
+ /* @__PURE__ */ E("div", {
242
279
  className: "text-xs text-text-secondary sm:text-sm",
243
280
  children: "Returns"
244
281
  })
245
282
  ]
246
283
  }),
247
- /* @__PURE__ */ w("div", {
248
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
284
+ /* @__PURE__ */ D("div", {
285
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
249
286
  children: [
250
- /* @__PURE__ */ C(v, { className: "mx-auto mb-2 h-6 w-6 text-blue-600 sm:h-8 sm:w-8" }),
251
- /* @__PURE__ */ w("div", {
287
+ /* @__PURE__ */ E(b, { className: "mx-auto mb-2 h-6 w-6 text-status-info-text sm:h-8 sm:w-8" }),
288
+ /* @__PURE__ */ D("div", {
252
289
  className: "text-lg font-bold text-text-primary sm:text-2xl",
253
- children: [M.equityPercentage, "%"]
290
+ children: [L.equityPercentage, "%"]
254
291
  }),
255
- /* @__PURE__ */ C("div", {
292
+ /* @__PURE__ */ E("div", {
256
293
  className: "text-xs text-text-secondary sm:text-sm",
257
294
  children: "Equity Stake"
258
295
  })
259
296
  ]
260
297
  }),
261
- /* @__PURE__ */ w("div", {
262
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
298
+ /* @__PURE__ */ D("div", {
299
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center",
263
300
  children: [
264
- /* @__PURE__ */ C(d, { className: "mx-auto mb-2 h-6 w-6 text-purple-600 sm:h-8 sm:w-8" }),
265
- /* @__PURE__ */ C("div", {
301
+ /* @__PURE__ */ E(p, { className: "mx-auto mb-2 h-6 w-6 text-accent-purple sm:h-8 sm:w-8" }),
302
+ /* @__PURE__ */ E("div", {
266
303
  className: "text-lg font-bold text-text-primary sm:text-2xl",
267
- children: r(M.currentValuation * (M.equityPercentage / 100), { minimumFractionDigits: 0 })
304
+ children: i(L.currentValuation * (L.equityPercentage / 100), { minimumFractionDigits: 0 })
268
305
  }),
269
- /* @__PURE__ */ C("div", {
306
+ /* @__PURE__ */ E("div", {
270
307
  className: "text-xs text-text-secondary sm:text-sm",
271
308
  children: "Current Value"
272
309
  })
@@ -274,396 +311,396 @@ function D() {
274
311
  })
275
312
  ]
276
313
  }),
277
- /* @__PURE__ */ C("div", {
314
+ /* @__PURE__ */ E("div", {
278
315
  className: "mt-6 flex gap-2 overflow-x-auto pb-2",
279
- children: P.map((e) => /* @__PURE__ */ w("button", {
316
+ children: z.map((e) => /* @__PURE__ */ D("button", {
280
317
  type: "button",
281
- onClick: () => D(e.id),
282
- 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"),
318
+ onClick: () => h(e.id),
319
+ 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", m === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"),
283
320
  children: [
284
- /* @__PURE__ */ C(e.Icon, { className: "h-4 w-4 flex-shrink-0" }),
285
- /* @__PURE__ */ C("span", {
321
+ /* @__PURE__ */ E(e.Icon, { className: "h-4 w-4 flex-shrink-0" }),
322
+ /* @__PURE__ */ E("span", {
286
323
  className: "hidden sm:inline",
287
324
  children: e.label
288
325
  }),
289
- /* @__PURE__ */ C("span", {
326
+ /* @__PURE__ */ E("span", {
290
327
  className: "sm:hidden",
291
328
  children: e.label.split(" ")[0]
292
329
  })
293
330
  ]
294
331
  }, e.id))
295
332
  }),
296
- /* @__PURE__ */ w("div", {
333
+ /* @__PURE__ */ D("div", {
297
334
  className: "mt-6",
298
335
  children: [
299
- p === "overview" && /* @__PURE__ */ w("div", {
336
+ m === "overview" && /* @__PURE__ */ D("div", {
300
337
  className: "grid gap-6 lg:grid-cols-3",
301
- children: [/* @__PURE__ */ w("div", {
338
+ children: [/* @__PURE__ */ D("div", {
302
339
  className: "space-y-6 lg:col-span-2",
303
- children: [/* @__PURE__ */ w("div", {
304
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
305
- children: [/* @__PURE__ */ C("h2", {
340
+ children: [/* @__PURE__ */ D("div", {
341
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
342
+ children: [/* @__PURE__ */ E("h2", {
306
343
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
307
344
  children: "Business Information"
308
- }), /* @__PURE__ */ w("div", {
345
+ }), /* @__PURE__ */ D("div", {
309
346
  className: "grid gap-4 sm:grid-cols-2 sm:gap-6",
310
347
  children: [
311
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
348
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
312
349
  className: "text-sm text-text-secondary",
313
350
  children: "Owner"
314
- }), /* @__PURE__ */ C("p", {
351
+ }), /* @__PURE__ */ E("p", {
315
352
  className: "font-medium text-text-primary",
316
- children: M.cartOwner
353
+ children: L.cartOwner
317
354
  })] }),
318
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
355
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
319
356
  className: "text-sm text-text-secondary",
320
357
  children: "Business Type"
321
- }), /* @__PURE__ */ C("p", {
358
+ }), /* @__PURE__ */ E("p", {
322
359
  className: "font-medium text-text-primary",
323
- children: M.businessType
360
+ children: L.businessType
324
361
  })] }),
325
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
362
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
326
363
  className: "text-sm text-text-secondary",
327
364
  children: "Location"
328
- }), /* @__PURE__ */ C("p", {
365
+ }), /* @__PURE__ */ E("p", {
329
366
  className: "font-medium text-text-primary",
330
- children: M.location
367
+ children: L.location
331
368
  })] }),
332
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
369
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
333
370
  className: "text-sm text-text-secondary",
334
371
  children: "Established"
335
- }), /* @__PURE__ */ C("p", {
372
+ }), /* @__PURE__ */ E("p", {
336
373
  className: "font-medium text-text-primary",
337
- children: i(M.establishedDate, {
374
+ children: a(L.establishedDate, {
338
375
  hour: void 0,
339
376
  minute: void 0
340
377
  })
341
378
  })] })
342
379
  ]
343
380
  })]
344
- }), /* @__PURE__ */ w("div", {
345
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
381
+ }), /* @__PURE__ */ D("div", {
382
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
346
383
  children: [
347
- /* @__PURE__ */ C("h2", {
384
+ /* @__PURE__ */ E("h2", {
348
385
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
349
386
  children: "Performance Metrics"
350
387
  }),
351
- /* @__PURE__ */ w("div", {
388
+ /* @__PURE__ */ D("div", {
352
389
  className: "grid grid-cols-1 gap-4 text-center sm:grid-cols-3 sm:gap-6",
353
390
  children: [
354
- /* @__PURE__ */ w("div", { children: [
355
- /* @__PURE__ */ C(_, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
356
- /* @__PURE__ */ C("div", {
391
+ /* @__PURE__ */ D("div", { children: [
392
+ /* @__PURE__ */ E(y, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
393
+ /* @__PURE__ */ E("div", {
357
394
  className: "text-xl font-bold text-text-primary sm:text-2xl",
358
- children: M.monthlyOrders
395
+ children: L.monthlyOrders
359
396
  }),
360
- /* @__PURE__ */ C("div", {
397
+ /* @__PURE__ */ E("div", {
361
398
  className: "text-xs text-text-secondary sm:text-sm",
362
399
  children: "Monthly Orders"
363
400
  })
364
401
  ] }),
365
- /* @__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" }),
367
- /* @__PURE__ */ C("div", {
402
+ /* @__PURE__ */ D("div", { children: [
403
+ /* @__PURE__ */ E(v, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
404
+ /* @__PURE__ */ E("div", {
368
405
  className: "text-xl font-bold text-text-primary sm:text-2xl",
369
- children: r(M.monthlyRevenue, { minimumFractionDigits: 0 })
406
+ children: i(L.monthlyRevenue, { minimumFractionDigits: 0 })
370
407
  }),
371
- /* @__PURE__ */ C("div", {
408
+ /* @__PURE__ */ E("div", {
372
409
  className: "text-xs text-text-secondary sm:text-sm",
373
410
  children: "Monthly Revenue"
374
411
  })
375
412
  ] }),
376
- /* @__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" }),
378
- /* @__PURE__ */ C("div", {
413
+ /* @__PURE__ */ D("div", { children: [
414
+ /* @__PURE__ */ E(w, { className: "mx-auto mb-2 h-6 w-6 text-status-info-text sm:h-8 sm:w-8" }),
415
+ /* @__PURE__ */ E("div", {
379
416
  className: "text-xl font-bold text-text-primary sm:text-2xl",
380
- children: M.activeCustomers
417
+ children: L.activeCustomers
381
418
  }),
382
- /* @__PURE__ */ C("div", {
419
+ /* @__PURE__ */ E("div", {
383
420
  className: "text-xs text-text-secondary sm:text-sm",
384
421
  children: "Active Customers"
385
422
  })
386
423
  ] })
387
424
  ]
388
425
  }),
389
- /* @__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",
391
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
426
+ /* @__PURE__ */ D("div", {
427
+ 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",
428
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
392
429
  className: "text-sm text-text-secondary",
393
430
  children: "Customer Rating"
394
- }), /* @__PURE__ */ w("div", {
431
+ }), /* @__PURE__ */ D("div", {
395
432
  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", {
433
+ children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */ E(x, { className: t("h-4 w-4", n < Math.floor(L.customerRating) ? "fill-status-warning-text text-status-warning-text" : "fill-none text-text-secondary/40") }, n)), /* @__PURE__ */ E("span", {
397
434
  className: "ml-1 text-sm font-medium text-text-primary",
398
- children: M.customerRating
435
+ children: L.customerRating
399
436
  })]
400
- })] }), /* @__PURE__ */ w("div", {
437
+ })] }), /* @__PURE__ */ D("div", {
401
438
  className: "text-left sm:text-right",
402
- children: [/* @__PURE__ */ C("p", {
439
+ children: [/* @__PURE__ */ E("p", {
403
440
  className: "text-sm text-text-secondary",
404
441
  children: "Avg Order Value"
405
- }), /* @__PURE__ */ C("p", {
442
+ }), /* @__PURE__ */ E("p", {
406
443
  className: "text-lg font-semibold text-text-primary",
407
- children: r(M.averageOrderValue, { minimumFractionDigits: 0 })
444
+ children: i(L.averageOrderValue, { minimumFractionDigits: 0 })
408
445
  })]
409
446
  })]
410
447
  })
411
448
  ]
412
449
  })]
413
- }), /* @__PURE__ */ w("div", {
450
+ }), /* @__PURE__ */ D("div", {
414
451
  className: "space-y-6",
415
- children: [/* @__PURE__ */ w("div", {
416
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
417
- children: [/* @__PURE__ */ C("h2", {
452
+ children: [/* @__PURE__ */ D("div", {
453
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
454
+ children: [/* @__PURE__ */ E("h2", {
418
455
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
419
456
  children: "Investment Summary"
420
- }), /* @__PURE__ */ w("div", {
457
+ }), /* @__PURE__ */ D("div", {
421
458
  className: "space-y-4",
422
459
  children: [
423
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
460
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
424
461
  className: "text-sm text-text-secondary",
425
462
  children: "Investment Date"
426
- }), /* @__PURE__ */ C("p", {
463
+ }), /* @__PURE__ */ E("p", {
427
464
  className: "font-medium text-text-primary",
428
- children: i(M.investmentDate, {
465
+ children: a(L.investmentDate, {
429
466
  hour: void 0,
430
467
  minute: void 0
431
468
  })
432
469
  })] }),
433
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
470
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
434
471
  className: "text-sm text-text-secondary",
435
472
  children: "Investment Type"
436
- }), /* @__PURE__ */ C("p", {
473
+ }), /* @__PURE__ */ E("p", {
437
474
  className: "font-medium text-text-primary",
438
- children: M.investmentType
475
+ children: L.investmentType
439
476
  })] }),
440
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
477
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
441
478
  className: "text-sm text-text-secondary",
442
479
  children: "Initial Valuation"
443
- }), /* @__PURE__ */ C("p", {
480
+ }), /* @__PURE__ */ E("p", {
444
481
  className: "font-medium text-text-primary",
445
- children: r(M.valuationAtInvestment, { minimumFractionDigits: 0 })
482
+ children: i(L.valuationAtInvestment, { minimumFractionDigits: 0 })
446
483
  })] }),
447
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
484
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
448
485
  className: "text-sm text-text-secondary",
449
486
  children: "Current Valuation"
450
- }), /* @__PURE__ */ C("p", {
487
+ }), /* @__PURE__ */ E("p", {
451
488
  className: "text-lg font-medium text-text-primary",
452
- children: r(M.currentValuation, { minimumFractionDigits: 0 })
489
+ children: i(L.currentValuation, { minimumFractionDigits: 0 })
453
490
  })] }),
454
- /* @__PURE__ */ C("div", {
455
- className: "border-t border-border-subtle pt-4",
456
- children: /* @__PURE__ */ w("div", {
491
+ /* @__PURE__ */ E("div", {
492
+ className: "border-t border-border-seam pt-4",
493
+ children: /* @__PURE__ */ D("div", {
457
494
  className: "flex items-center justify-between",
458
- children: [/* @__PURE__ */ C("span", {
495
+ children: [/* @__PURE__ */ E("span", {
459
496
  className: "text-sm text-text-secondary",
460
497
  children: "Your Returns"
461
- }), /* @__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 })]
498
+ }), /* @__PURE__ */ D("span", {
499
+ className: t("text-lg font-semibold", B > 0 ? "text-status-success-text" : "text-status-error-text"),
500
+ children: [B > 0 ? "+" : "", i(B, { minimumFractionDigits: 0 })]
464
501
  })]
465
502
  })
466
503
  })
467
504
  ]
468
505
  })]
469
- }), /* @__PURE__ */ w("div", {
470
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
471
- children: [/* @__PURE__ */ C("h2", {
506
+ }), /* @__PURE__ */ D("div", {
507
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
508
+ children: [/* @__PURE__ */ E("h2", {
472
509
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
473
510
  children: "Growth Indicators"
474
- }), /* @__PURE__ */ w("div", {
511
+ }), /* @__PURE__ */ D("div", {
475
512
  className: "space-y-4",
476
513
  children: [
477
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
514
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
478
515
  className: "mb-2 flex items-center justify-between",
479
- children: [/* @__PURE__ */ C("span", {
516
+ children: [/* @__PURE__ */ E("span", {
480
517
  className: "text-sm text-text-secondary",
481
518
  children: "Revenue Growth"
482
- }), /* @__PURE__ */ w("span", {
483
- className: "text-sm font-medium text-green-600 dark:text-green-400",
519
+ }), /* @__PURE__ */ D("span", {
520
+ className: "text-sm font-medium text-status-success-text",
484
521
  children: [
485
522
  "+",
486
- M.revenueGrowth,
523
+ L.revenueGrowth,
487
524
  "%"
488
525
  ]
489
526
  })]
490
- }), /* @__PURE__ */ C("div", {
527
+ }), /* @__PURE__ */ E("div", {
491
528
  className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
492
- children: /* @__PURE__ */ C("div", {
493
- className: "h-full rounded-full bg-green-600",
494
- style: { width: `${Math.min(M.revenueGrowth, 100)}%` }
529
+ children: /* @__PURE__ */ E("div", {
530
+ className: "h-full rounded-full bg-status-success-text",
531
+ style: { width: `${Math.min(L.revenueGrowth, 100)}%` }
495
532
  })
496
533
  })] }),
497
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
534
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
498
535
  className: "mb-2 flex items-center justify-between",
499
- children: [/* @__PURE__ */ C("span", {
536
+ children: [/* @__PURE__ */ E("span", {
500
537
  className: "text-sm text-text-secondary",
501
538
  children: "Profit Margin"
502
- }), /* @__PURE__ */ w("span", {
539
+ }), /* @__PURE__ */ D("span", {
503
540
  className: "text-sm font-medium text-text-primary",
504
- children: [M.profitMargin, "%"]
541
+ children: [L.profitMargin, "%"]
505
542
  })]
506
- }), /* @__PURE__ */ C("div", {
543
+ }), /* @__PURE__ */ E("div", {
507
544
  className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
508
- children: /* @__PURE__ */ C("div", {
509
- className: "h-full rounded-full bg-blue-600",
510
- style: { width: `${M.profitMargin}%` }
545
+ children: /* @__PURE__ */ E("div", {
546
+ className: "h-full rounded-full bg-status-info-text",
547
+ style: { width: `${L.profitMargin}%` }
511
548
  })
512
549
  })] }),
513
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
550
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
514
551
  className: "mb-2 flex items-center justify-between",
515
- children: [/* @__PURE__ */ C("span", {
552
+ children: [/* @__PURE__ */ E("span", {
516
553
  className: "text-sm text-text-secondary",
517
554
  children: "ROI"
518
- }), /* @__PURE__ */ w("span", {
519
- className: "text-sm font-medium text-green-600 dark:text-green-400",
555
+ }), /* @__PURE__ */ D("span", {
556
+ className: "text-sm font-medium text-status-success-text",
520
557
  children: [
521
558
  "+",
522
- M.returnOnInvestment,
559
+ L.returnOnInvestment,
523
560
  "%"
524
561
  ]
525
562
  })]
526
- }), /* @__PURE__ */ C("div", {
563
+ }), /* @__PURE__ */ E("div", {
527
564
  className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
528
- children: /* @__PURE__ */ C("div", {
529
- className: "h-full rounded-full bg-green-500",
530
- style: { width: `${Math.min(M.returnOnInvestment, 100)}%` }
565
+ children: /* @__PURE__ */ E("div", {
566
+ className: "h-full rounded-full bg-status-success-text",
567
+ style: { width: `${Math.min(L.returnOnInvestment, 100)}%` }
531
568
  })
532
569
  })] }),
533
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
570
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
534
571
  className: "text-sm text-text-secondary",
535
572
  children: "Expected Payback"
536
- }), /* @__PURE__ */ C("p", {
573
+ }), /* @__PURE__ */ E("p", {
537
574
  className: "font-medium text-text-primary",
538
- children: M.paybackPeriod
575
+ children: L.paybackPeriod
539
576
  })] })
540
577
  ]
541
578
  })]
542
579
  })]
543
580
  })]
544
581
  }),
545
- p === "financials" && /* @__PURE__ */ w("div", {
546
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
582
+ m === "financials" && /* @__PURE__ */ D("div", {
583
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
547
584
  children: [
548
- /* @__PURE__ */ C("h2", {
585
+ /* @__PURE__ */ E("h2", {
549
586
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
550
587
  children: "Financial Performance"
551
588
  }),
552
- /* @__PURE__ */ w("div", {
589
+ /* @__PURE__ */ D("div", {
553
590
  className: "mb-6 grid grid-cols-2 gap-4 lg:grid-cols-4",
554
591
  children: [
555
- /* @__PURE__ */ w("div", {
592
+ /* @__PURE__ */ D("div", {
556
593
  className: "rounded-lg bg-bg-sunken/50 p-3",
557
- children: [/* @__PURE__ */ C("p", {
594
+ children: [/* @__PURE__ */ E("p", {
558
595
  className: "text-xs text-text-secondary",
559
596
  children: "Monthly Revenue"
560
- }), /* @__PURE__ */ C("p", {
597
+ }), /* @__PURE__ */ E("p", {
561
598
  className: "mt-1 text-lg font-bold text-text-primary",
562
- children: r(M.monthlyRevenue, { minimumFractionDigits: 0 })
599
+ children: i(L.monthlyRevenue, { minimumFractionDigits: 0 })
563
600
  })]
564
601
  }),
565
- /* @__PURE__ */ w("div", {
602
+ /* @__PURE__ */ D("div", {
566
603
  className: "rounded-lg bg-bg-sunken/50 p-3",
567
- children: [/* @__PURE__ */ C("p", {
604
+ children: [/* @__PURE__ */ E("p", {
568
605
  className: "text-xs text-text-secondary",
569
606
  children: "Revenue Growth"
570
- }), /* @__PURE__ */ w("p", {
571
- className: "mt-1 text-lg font-bold text-green-600 dark:text-green-400",
607
+ }), /* @__PURE__ */ D("p", {
608
+ className: "mt-1 text-lg font-bold text-status-success-text",
572
609
  children: [
573
610
  "+",
574
- M.revenueGrowth,
611
+ L.revenueGrowth,
575
612
  "%"
576
613
  ]
577
614
  })]
578
615
  }),
579
- /* @__PURE__ */ w("div", {
616
+ /* @__PURE__ */ D("div", {
580
617
  className: "rounded-lg bg-bg-sunken/50 p-3",
581
- children: [/* @__PURE__ */ C("p", {
618
+ children: [/* @__PURE__ */ E("p", {
582
619
  className: "text-xs text-text-secondary",
583
620
  children: "Profit Margin"
584
- }), /* @__PURE__ */ w("p", {
621
+ }), /* @__PURE__ */ D("p", {
585
622
  className: "mt-1 text-lg font-bold text-text-primary",
586
- children: [M.profitMargin, "%"]
623
+ children: [L.profitMargin, "%"]
587
624
  })]
588
625
  }),
589
- /* @__PURE__ */ w("div", {
626
+ /* @__PURE__ */ D("div", {
590
627
  className: "rounded-lg bg-bg-sunken/50 p-3",
591
- children: [/* @__PURE__ */ C("p", {
628
+ children: [/* @__PURE__ */ E("p", {
592
629
  className: "text-xs text-text-secondary",
593
630
  children: "Avg Order Value"
594
- }), /* @__PURE__ */ C("p", {
631
+ }), /* @__PURE__ */ E("p", {
595
632
  className: "mt-1 text-lg font-bold text-text-primary",
596
- children: r(M.averageOrderValue, { minimumFractionDigits: 0 })
633
+ children: i(L.averageOrderValue, { minimumFractionDigits: 0 })
597
634
  })]
598
635
  })
599
636
  ]
600
637
  }),
601
- /* @__PURE__ */ C("div", {
602
- className: "overflow-hidden rounded-lg border border-border-subtle",
603
- children: /* @__PURE__ */ w("table", {
638
+ /* @__PURE__ */ E("div", {
639
+ className: "overflow-hidden rounded-lg border border-border-seam",
640
+ children: /* @__PURE__ */ D("table", {
604
641
  className: "w-full",
605
- children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", {
642
+ children: [/* @__PURE__ */ E("thead", { children: /* @__PURE__ */ D("tr", {
606
643
  className: "bg-bg-sunken/50",
607
644
  children: [
608
- /* @__PURE__ */ C("th", {
645
+ /* @__PURE__ */ E("th", {
609
646
  className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-text-secondary",
610
647
  children: "Metric"
611
648
  }),
612
- /* @__PURE__ */ C("th", {
649
+ /* @__PURE__ */ E("th", {
613
650
  className: "px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-text-secondary",
614
651
  children: "Value"
615
652
  }),
616
- /* @__PURE__ */ C("th", {
653
+ /* @__PURE__ */ E("th", {
617
654
  className: "px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-text-secondary",
618
655
  children: "Trend"
619
656
  })
620
657
  ]
621
- }) }), /* @__PURE__ */ C("tbody", {
658
+ }) }), /* @__PURE__ */ E("tbody", {
622
659
  className: "divide-y divide-border",
623
660
  children: [
624
661
  {
625
662
  metric: "Monthly Revenue",
626
- value: r(M.monthlyRevenue, { minimumFractionDigits: 0 }),
663
+ value: i(L.monthlyRevenue, { minimumFractionDigits: 0 }),
627
664
  trend: "+18.5%"
628
665
  },
629
666
  {
630
667
  metric: "Monthly Orders",
631
- value: String(M.monthlyOrders),
668
+ value: String(L.monthlyOrders),
632
669
  trend: "+12%"
633
670
  },
634
671
  {
635
672
  metric: "Average Order Value",
636
- value: r(M.averageOrderValue, { minimumFractionDigits: 0 }),
673
+ value: i(L.averageOrderValue, { minimumFractionDigits: 0 }),
637
674
  trend: "+5.8%"
638
675
  },
639
676
  {
640
677
  metric: "Active Customers",
641
- value: String(M.activeCustomers),
678
+ value: String(L.activeCustomers),
642
679
  trend: "+22%"
643
680
  },
644
681
  {
645
682
  metric: "Profit Margin",
646
- value: `${M.profitMargin}%`,
683
+ value: `${L.profitMargin}%`,
647
684
  trend: "+2.1%"
648
685
  },
649
686
  {
650
687
  metric: "Return on Investment",
651
- value: `${M.returnOnInvestment}%`,
688
+ value: `${L.returnOnInvestment}%`,
652
689
  trend: "+8.5%"
653
690
  }
654
- ].map((e) => /* @__PURE__ */ w("tr", {
691
+ ].map((e) => /* @__PURE__ */ D("tr", {
655
692
  className: "hover:bg-accent/50 transition-colors",
656
693
  children: [
657
- /* @__PURE__ */ C("td", {
694
+ /* @__PURE__ */ E("td", {
658
695
  className: "px-4 py-3 text-sm font-medium text-text-primary",
659
696
  children: e.metric
660
697
  }),
661
- /* @__PURE__ */ C("td", {
698
+ /* @__PURE__ */ E("td", {
662
699
  className: "px-4 py-3 text-right text-sm text-text-primary",
663
700
  children: e.value
664
701
  }),
665
- /* @__PURE__ */ C("td", {
666
- className: "px-4 py-3 text-right text-sm font-medium text-green-600 dark:text-green-400",
702
+ /* @__PURE__ */ E("td", {
703
+ className: "px-4 py-3 text-right text-sm font-medium text-status-success-text",
667
704
  children: e.trend
668
705
  })
669
706
  ]
@@ -673,36 +710,36 @@ function D() {
673
710
  })
674
711
  ]
675
712
  }),
676
- p === "documents" && /* @__PURE__ */ w("div", {
677
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
678
- children: [/* @__PURE__ */ C("h2", {
713
+ m === "documents" && /* @__PURE__ */ D("div", {
714
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
715
+ children: [/* @__PURE__ */ E("h2", {
679
716
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
680
717
  children: "Investment Documents"
681
- }), /* @__PURE__ */ C("div", {
718
+ }), /* @__PURE__ */ E("div", {
682
719
  className: "space-y-4",
683
- children: M.documents.map((e, n) => {
684
- let r = E(e.status), a = r.Icon;
685
- return /* @__PURE__ */ w("div", {
720
+ children: L.documents.map((e, n) => {
721
+ let r = M(e.status), i = r.Icon;
722
+ return /* @__PURE__ */ D("div", {
686
723
  className: "flex flex-col gap-4 rounded-lg bg-bg-sunken/50 p-4 sm:flex-row sm:items-center sm:justify-between",
687
- children: [/* @__PURE__ */ w("div", {
724
+ children: [/* @__PURE__ */ D("div", {
688
725
  className: "flex items-start gap-3 flex-1 min-w-0 sm:items-center sm:gap-4",
689
- children: [/* @__PURE__ */ C(h, { className: "mt-1 h-6 w-6 flex-shrink-0 text-primary sm:mt-0 sm:h-8 sm:w-8" }), /* @__PURE__ */ w("div", {
726
+ children: [/* @__PURE__ */ E(_, { className: "mt-1 h-6 w-6 flex-shrink-0 text-primary sm:mt-0 sm:h-8 sm:w-8" }), /* @__PURE__ */ D("div", {
690
727
  className: "min-w-0 flex-1",
691
728
  children: [
692
- /* @__PURE__ */ C("h4", {
729
+ /* @__PURE__ */ E("h4", {
693
730
  className: "text-sm font-medium text-text-primary sm:text-base",
694
731
  children: e.type
695
732
  }),
696
- /* @__PURE__ */ C("p", {
733
+ /* @__PURE__ */ E("p", {
697
734
  className: "truncate text-xs text-text-secondary sm:text-sm",
698
735
  children: e.name
699
736
  }),
700
- /* @__PURE__ */ w("p", {
737
+ /* @__PURE__ */ D("p", {
701
738
  className: "text-xs text-text-secondary",
702
739
  children: [
703
740
  "Uploaded",
704
741
  " ",
705
- i(e.uploadDate, {
742
+ a(e.uploadDate, {
706
743
  hour: void 0,
707
744
  minute: void 0
708
745
  })
@@ -710,19 +747,19 @@ function D() {
710
747
  })
711
748
  ]
712
749
  })]
713
- }), /* @__PURE__ */ w("div", {
750
+ }), /* @__PURE__ */ D("div", {
714
751
  className: "flex w-full items-center justify-between gap-3 sm:w-auto sm:justify-end",
715
- children: [/* @__PURE__ */ w("span", {
752
+ children: [/* @__PURE__ */ D("span", {
716
753
  className: t("flex items-center gap-1 text-xs sm:text-sm", r.color),
717
- children: [/* @__PURE__ */ C(a, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ C("span", {
754
+ children: [/* @__PURE__ */ E(i, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ E("span", {
718
755
  className: "capitalize",
719
756
  children: r.label
720
757
  })]
721
- }), /* @__PURE__ */ w("button", {
758
+ }), /* @__PURE__ */ D("button", {
722
759
  type: "button",
723
760
  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",
725
- children: [/* @__PURE__ */ C(m, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ C("span", {
761
+ 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",
762
+ children: [/* @__PURE__ */ E(g, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ E("span", {
726
763
  className: "hidden sm:inline",
727
764
  children: "Download"
728
765
  })]
@@ -732,33 +769,33 @@ function D() {
732
769
  })
733
770
  })]
734
771
  }),
735
- p === "updates" && /* @__PURE__ */ w("div", {
736
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
737
- children: [/* @__PURE__ */ C("h2", {
772
+ m === "updates" && /* @__PURE__ */ D("div", {
773
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
774
+ children: [/* @__PURE__ */ E("h2", {
738
775
  className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
739
776
  children: "Recent Updates"
740
- }), /* @__PURE__ */ C("div", {
777
+ }), /* @__PURE__ */ E("div", {
741
778
  className: "space-y-4",
742
- children: M.recentUpdates.map((e, t) => /* @__PURE__ */ w("div", {
779
+ children: L.recentUpdates.map((e, t) => /* @__PURE__ */ D("div", {
743
780
  className: "flex gap-3 rounded-lg bg-bg-sunken/50 p-4 sm:gap-4",
744
- children: [/* @__PURE__ */ C("div", {
781
+ children: [/* @__PURE__ */ E("div", {
745
782
  className: "flex-shrink-0",
746
- children: /* @__PURE__ */ C(s, { className: "mt-1 h-4 w-4 text-primary sm:h-5 sm:w-5" })
747
- }), /* @__PURE__ */ w("div", {
783
+ children: /* @__PURE__ */ E(c, { className: "mt-1 h-4 w-4 text-primary sm:h-5 sm:w-5" })
784
+ }), /* @__PURE__ */ D("div", {
748
785
  className: "min-w-0 flex-1",
749
- children: [/* @__PURE__ */ w("div", {
786
+ children: [/* @__PURE__ */ D("div", {
750
787
  className: "mb-1 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",
751
- children: [/* @__PURE__ */ C("h4", {
788
+ children: [/* @__PURE__ */ E("h4", {
752
789
  className: "text-sm font-medium text-text-primary sm:text-base",
753
790
  children: e.type
754
- }), /* @__PURE__ */ C("span", {
791
+ }), /* @__PURE__ */ E("span", {
755
792
  className: "text-xs text-text-secondary sm:text-sm",
756
- children: i(e.date, {
793
+ children: a(e.date, {
757
794
  hour: void 0,
758
795
  minute: void 0
759
796
  })
760
797
  })]
761
- }), /* @__PURE__ */ C("p", {
798
+ }), /* @__PURE__ */ E("p", {
762
799
  className: "text-xs text-text-secondary sm:text-sm",
763
800
  children: e.description
764
801
  })]
@@ -768,72 +805,72 @@ function D() {
768
805
  })
769
806
  ]
770
807
  }),
771
- A && /* @__PURE__ */ C("div", {
772
- className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
773
- 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",
808
+ F && /* @__PURE__ */ E("div", {
809
+ className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-canvas/50 p-4",
810
+ children: /* @__PURE__ */ D("div", {
811
+ className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-seam bg-bg-surface",
775
812
  children: [
776
- /* @__PURE__ */ w("div", {
777
- className: "border-b border-border-subtle p-4 sm:p-6",
778
- children: [/* @__PURE__ */ C("button", {
813
+ /* @__PURE__ */ D("div", {
814
+ className: "border-b border-border-seam p-4 sm:p-6",
815
+ children: [/* @__PURE__ */ E("button", {
779
816
  type: "button",
780
- onClick: () => j(!1),
817
+ onClick: () => I(!1),
781
818
  className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
782
- children: /* @__PURE__ */ C(S, { className: "h-5 w-5" })
783
- }), /* @__PURE__ */ C("h2", {
819
+ children: /* @__PURE__ */ E(T, { className: "h-5 w-5" })
820
+ }), /* @__PURE__ */ E("h2", {
784
821
  className: "text-lg font-semibold text-text-primary sm:text-xl",
785
822
  children: "Manage Investment"
786
823
  })]
787
824
  }),
788
- /* @__PURE__ */ w("div", {
825
+ /* @__PURE__ */ D("div", {
789
826
  className: "space-y-4 p-4 sm:p-6",
790
827
  children: [
791
- /* @__PURE__ */ w("p", {
828
+ /* @__PURE__ */ D("p", {
792
829
  className: "text-sm text-text-secondary sm:text-base",
793
830
  children: [
794
831
  "Choose an action for your investment in ",
795
- M.cartName,
832
+ L.cartName,
796
833
  ":"
797
834
  ]
798
835
  }),
799
- /* @__PURE__ */ w("div", {
836
+ /* @__PURE__ */ D("div", {
800
837
  className: "space-y-3",
801
838
  children: [
802
- /* @__PURE__ */ C("button", {
839
+ /* @__PURE__ */ E("button", {
803
840
  type: "button",
804
841
  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",
842
+ 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
843
  children: "Request Partial Withdrawal"
807
844
  }),
808
- /* @__PURE__ */ C("button", {
845
+ /* @__PURE__ */ E("button", {
809
846
  type: "button",
810
847
  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",
848
+ 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
849
  children: "Transfer Ownership"
813
850
  }),
814
- /* @__PURE__ */ C("button", {
851
+ /* @__PURE__ */ E("button", {
815
852
  type: "button",
816
853
  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",
854
+ 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
855
  children: "View Exit Options"
819
856
  })
820
857
  ]
821
858
  }),
822
- /* @__PURE__ */ C("div", {
823
- className: "rounded-lg border border-yellow-500/30 bg-yellow-500/10 p-3 sm:p-4",
824
- children: /* @__PURE__ */ C("p", {
825
- className: "text-xs text-yellow-800 dark:text-yellow-200 sm:text-sm",
859
+ /* @__PURE__ */ E("div", {
860
+ className: "rounded-lg border border-status-warning-border/30 bg-status-warning-bg/10 p-3 sm:p-4",
861
+ children: /* @__PURE__ */ E("p", {
862
+ className: "text-xs text-status-warning-text sm:text-sm",
826
863
  children: "Any changes to your investment require approval from the business owner and may be subject to terms in your investment agreement."
827
864
  })
828
865
  })
829
866
  ]
830
867
  }),
831
- /* @__PURE__ */ C("div", {
832
- className: "flex justify-end gap-3 border-t border-border-subtle p-4 sm:p-6",
833
- children: /* @__PURE__ */ C("button", {
868
+ /* @__PURE__ */ E("div", {
869
+ className: "flex justify-end gap-3 border-t border-border-seam p-4 sm:p-6",
870
+ children: /* @__PURE__ */ E("button", {
834
871
  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",
872
+ onClick: () => I(!1),
873
+ className: "rounded-lg border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
837
874
  children: "Cancel"
838
875
  })
839
876
  })
@@ -844,6 +881,6 @@ function D() {
844
881
  });
845
882
  }
846
883
  //#endregion
847
- export { D as InvestmentDetailsPage };
884
+ export { N as InvestmentDetailsPage };
848
885
 
849
886
  //# sourceMappingURL=InvestmentDetailsPage.js.map