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