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