@burdenoff/microfe-labsofscience 2026.626.2 → 2026.629.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 (172) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/labsofscience/LabsOfScienceRoot.js +68 -124
  3. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  4. package/dist/labsofscience/LabsOfScienceRoutes.js +61 -185
  5. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  6. package/dist/labsofscience/components/QueryStates.js +40 -0
  7. package/dist/labsofscience/components/QueryStates.js.map +1 -0
  8. package/dist/labsofscience/components/StatusBadge.js +40 -23
  9. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  10. package/dist/labsofscience/context/LabsOfScienceContext.js +22 -30
  11. package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
  12. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +500 -172
  13. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  14. package/dist/labsofscience/pages/OverviewPage.js +195 -0
  15. package/dist/labsofscience/pages/OverviewPage.js.map +1 -0
  16. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +162 -0
  17. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -0
  18. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +137 -0
  19. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -0
  20. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +155 -0
  21. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -0
  22. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +220 -0
  23. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -0
  24. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +170 -0
  25. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -0
  26. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +134 -0
  27. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -0
  28. package/dist/labsofscience/pages/experiments/RunDialogs.js +180 -0
  29. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -0
  30. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +130 -0
  31. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -0
  32. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +132 -0
  33. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -0
  34. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +126 -0
  35. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -0
  36. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +89 -0
  37. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -0
  38. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +138 -0
  39. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -0
  40. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +211 -0
  41. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -0
  42. package/dist/labsofscience/pages/inventory/InventoryListPage.js +178 -0
  43. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -0
  44. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +118 -0
  45. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -0
  46. package/dist/labsofscience/pages/notebook/NotebookListPage.js +144 -0
  47. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -0
  48. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +146 -0
  49. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -0
  50. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +212 -0
  51. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -0
  52. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +109 -0
  53. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -0
  54. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +174 -0
  55. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -0
  56. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +169 -0
  57. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -0
  58. package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -0
  59. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -0
  60. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +133 -0
  61. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -0
  62. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +151 -0
  63. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -0
  64. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +140 -0
  65. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -0
  66. package/dist/labsofscience/pages/shared/DetailComponents.js +64 -0
  67. package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -0
  68. package/dist/labsofscience/pages/shared/tags.js +16 -0
  69. package/dist/labsofscience/pages/shared/tags.js.map +1 -0
  70. package/dist/labsofscience/store/labsofscienceStore.js +6 -11
  71. package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
  72. package/dist/labsofscience/utils/formatters.js +28 -13
  73. package/dist/labsofscience/utils/formatters.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/labsofscience/components/InvestmentCard.js +0 -98
  76. package/dist/labsofscience/components/InvestmentCard.js.map +0 -1
  77. package/dist/labsofscience/components/RatingDisplay.js +0 -35
  78. package/dist/labsofscience/components/RatingDisplay.js.map +0 -1
  79. package/dist/labsofscience/mocks/data.js +0 -1517
  80. package/dist/labsofscience/mocks/data.js.map +0 -1
  81. package/dist/labsofscience/mocks/users.js +0 -34
  82. package/dist/labsofscience/mocks/users.js.map +0 -1
  83. package/dist/labsofscience/pages/HomePage.js +0 -940
  84. package/dist/labsofscience/pages/HomePage.js.map +0 -1
  85. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +0 -651
  86. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +0 -1
  87. package/dist/labsofscience/pages/admin/AdminDashboard.js +0 -672
  88. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +0 -1
  89. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +0 -427
  90. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +0 -1
  91. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +0 -665
  92. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +0 -1
  93. package/dist/labsofscience/pages/admin/AdminProfilePage.js +0 -261
  94. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +0 -1
  95. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +0 -651
  96. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +0 -1
  97. package/dist/labsofscience/pages/admin/CartManagementPage.js +0 -874
  98. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +0 -1
  99. package/dist/labsofscience/pages/admin/UserManagementPage.js +0 -898
  100. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +0 -1
  101. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +0 -839
  102. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  103. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +0 -705
  104. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  105. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +0 -791
  106. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  107. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  108. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  109. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +0 -636
  110. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  111. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +0 -911
  112. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  113. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +0 -879
  114. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +0 -1
  115. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +0 -839
  116. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +0 -1
  117. package/dist/labsofscience/pages/common/HelpSupportPage.js +0 -1324
  118. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +0 -1
  119. package/dist/labsofscience/pages/common/NotificationCenterPage.js +0 -672
  120. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +0 -1
  121. package/dist/labsofscience/pages/common/SettingsPage.js +0 -973
  122. package/dist/labsofscience/pages/common/SettingsPage.js.map +0 -1
  123. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +0 -637
  124. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +0 -1
  125. package/dist/labsofscience/pages/customer/CartDetailPage.js +0 -653
  126. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +0 -1
  127. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +0 -559
  128. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +0 -1
  129. package/dist/labsofscience/pages/customer/CheckoutPage.js +0 -530
  130. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +0 -1
  131. package/dist/labsofscience/pages/customer/CustomerDashboard.js +0 -531
  132. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +0 -1
  133. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +0 -658
  134. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +0 -1
  135. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +0 -633
  136. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +0 -1
  137. package/dist/labsofscience/pages/customer/FavoritesPage.js +0 -484
  138. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +0 -1
  139. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +0 -445
  140. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +0 -1
  141. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +0 -425
  142. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +0 -1
  143. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +0 -495
  144. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +0 -1
  145. package/dist/labsofscience/pages/customer/ReviewsPage.js +0 -613
  146. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +0 -1
  147. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +0 -450
  148. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +0 -1
  149. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +0 -881
  150. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +0 -1
  151. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +0 -946
  152. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  153. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +0 -687
  154. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  155. package/dist/labsofscience/pages/investor/InvestorDashboard.js +0 -455
  156. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +0 -1
  157. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +0 -406
  158. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  159. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +0 -575
  160. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +0 -1
  161. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +0 -1070
  162. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +0 -1
  163. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +0 -537
  164. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +0 -1
  165. package/dist/labsofscience/pages/worker/WorkerDashboard.js +0 -665
  166. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +0 -1
  167. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +0 -681
  168. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +0 -1
  169. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +0 -692
  170. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +0 -1
  171. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +0 -588
  172. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,881 +0,0 @@
1
- import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.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/labsofscience/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-status-success-text",
85
- Icon: f,
86
- label: "Verified"
87
- };
88
- case "pending": return {
89
- color: "text-status-warning-text",
90
- Icon: p,
91
- label: "Pending"
92
- };
93
- case "rejected": return {
94
- color: "text-status-error-text",
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-status-error-text" }), /* @__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-seam 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-seam 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
- icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
215
- className: "mb-6",
216
- children: "A full read-out of one investment. See how much you put in, your equity stake, current value and returns, dig into the cart's business details and performance across the tabs below, and manage your position — top up, withdraw or export a report — whenever you need to."
217
- }),
218
- /* @__PURE__ */ C(E, {
219
- storageKey: "labsofscience-investment-details",
220
- steps: [
221
- {
222
- id: "manage",
223
- label: "Manage this investment",
224
- description: "Top up, withdraw or adjust your position.",
225
- icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
226
- onClick: () => P(!0)
227
- },
228
- {
229
- id: "portfolio",
230
- label: "Review your whole portfolio",
231
- description: "See how this sits alongside your other holdings.",
232
- icon: /* @__PURE__ */ C(d, { className: "h-4 w-4" }),
233
- onClick: () => f("/investor/portfolio")
234
- },
235
- {
236
- id: "opportunities",
237
- label: "Find more opportunities",
238
- description: "Discover other carts raising funds right now.",
239
- icon: /* @__PURE__ */ C(b, { className: "h-4 w-4" }),
240
- onClick: () => f("/investor/opportunities")
241
- }
242
- ]
243
- }),
244
- /* @__PURE__ */ w(T, {
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-seam 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-seam bg-bg-surface p-4 text-center",
263
- children: [
264
- /* @__PURE__ */ C(b, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
265
- /* @__PURE__ */ w("div", {
266
- className: "text-lg font-bold text-status-success-text 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-seam bg-bg-surface p-4 text-center",
281
- children: [
282
- /* @__PURE__ */ C(v, { className: "mx-auto mb-2 h-6 w-6 text-status-info-text 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-seam bg-bg-surface p-4 text-center",
295
- children: [
296
- /* @__PURE__ */ C(d, { className: "mx-auto mb-2 h-6 w-6 text-accent-purple 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-seam 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-seam 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-status-success-text 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-status-info-text 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-seam 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-status-warning-text text-status-warning-text" : "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-seam 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-seam 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-status-success-text" : "text-status-error-text"),
495
- children: [R > 0 ? "+" : "", r(R, { minimumFractionDigits: 0 })]
496
- })]
497
- })
498
- })
499
- ]
500
- })]
501
- }), /* @__PURE__ */ w("div", {
502
- className: "rounded-lg border border-border-seam 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-status-success-text",
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-status-success-bg",
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-status-info-bg",
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-status-success-text",
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-status-success-bg",
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-seam 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-status-success-text",
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-seam",
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-status-success-text",
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-seam 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-seam 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-seam 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-seam bg-bg-surface",
807
- children: [
808
- /* @__PURE__ */ w("div", {
809
- className: "border-b border-border-seam 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-seam 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-seam 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-seam 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-status-warning-border bg-status-warning-bg-subtle p-3 sm:p-4",
856
- children: /* @__PURE__ */ C("p", {
857
- className: "text-xs text-status-warning-text 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-seam p-4 sm:p-6",
865
- children: /* @__PURE__ */ C("button", {
866
- type: "button",
867
- onClick: () => P(!1),
868
- className: "rounded-lg border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
869
- children: "Cancel"
870
- })
871
- })
872
- ]
873
- })
874
- })
875
- ]
876
- });
877
- }
878
- //#endregion
879
- export { A as InvestmentDetailsPage };
880
-
881
- //# sourceMappingURL=InvestmentDetailsPage.js.map