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