@burdenoff/microfe-kadaikodi 2026.625.1 → 2026.626.2

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