@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,874 +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 } from "../../utils/formatters.js";
6
- import { useCallback as a, useEffect as o, useState as s } from "react";
7
- import { CheckCircle2 as c, ClipboardCheck as l, Eye as u, Loader2 as d, Pause as f, Search as p, Star as m, Store as h, X as g, XCircle as _ } from "lucide-react";
8
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
9
- import { EmphasisPanel as x, PagePurpose as S } from "@burdenoff/fe-libs/ui";
10
- //#region src/coolandlovely/pages/admin/CartManagementPage.tsx
11
- var C = [
12
- {
13
- id: "cart-001",
14
- name: "South Indian Express",
15
- description: "Authentic South Indian breakfast and snacks",
16
- category: "Food & Beverage",
17
- image: "https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=200",
18
- ownerName: "Rajesh Kumar",
19
- ownerEmail: "rajesh@gmail.com",
20
- ownerPhone: "+91 98765 43210",
21
- address: "MG Road, Bangalore",
22
- city: "Bangalore",
23
- isActive: !0,
24
- isVerified: !0,
25
- rating: 4.8,
26
- reviewCount: 342,
27
- monthlyRevenue: 185e3,
28
- monthlyOrders: 1250,
29
- complianceScore: 95,
30
- documentsSubmitted: 8,
31
- documentsRequired: 8,
32
- inspectionStatus: "completed",
33
- inspectionDate: "2023-07-01T10:00:00Z",
34
- applicationDate: "2023-06-15T09:30:00Z",
35
- licenseNumber: "BBMP/2023/001234"
36
- },
37
- {
38
- id: "cart-002",
39
- name: "Fresh Juice Corner",
40
- description: "Fresh fruit juices and smoothies",
41
- category: "Beverages",
42
- image: "https://images.unsplash.com/photo-1600271886742-f049cd451bba?w=200",
43
- ownerName: "Priya Sharma",
44
- ownerEmail: "priya@gmail.com",
45
- ownerPhone: "+91 98765 43211",
46
- address: "Koramangala, Bangalore",
47
- city: "Bangalore",
48
- isActive: !1,
49
- isVerified: !1,
50
- rating: 0,
51
- reviewCount: 0,
52
- monthlyRevenue: 0,
53
- monthlyOrders: 0,
54
- complianceScore: 78,
55
- documentsSubmitted: 6,
56
- documentsRequired: 8,
57
- inspectionStatus: "pending",
58
- applicationDate: "2024-06-20T11:15:00Z"
59
- },
60
- {
61
- id: "cart-003",
62
- name: "Street Chaat Masters",
63
- description: "Authentic Indian street food and chaat",
64
- category: "Street Food",
65
- image: "https://images.unsplash.com/photo-1601050690597-df0568f70950?w=200",
66
- ownerName: "Amit Patel",
67
- ownerEmail: "amit@gmail.com",
68
- ownerPhone: "+91 98765 43212",
69
- address: "Brigade Road, Bangalore",
70
- city: "Bangalore",
71
- isActive: !1,
72
- isVerified: !1,
73
- rating: 4.2,
74
- reviewCount: 89,
75
- monthlyRevenue: 45e3,
76
- monthlyOrders: 450,
77
- complianceScore: 65,
78
- documentsSubmitted: 5,
79
- documentsRequired: 8,
80
- inspectionStatus: "failed",
81
- inspectionDate: "2024-06-15T11:00:00Z",
82
- applicationDate: "2024-05-10T14:20:00Z",
83
- rejectionReason: "Hygiene standards not met, missing food safety certification"
84
- }
85
- ];
86
- function w() {
87
- let { navigateTo: w } = e(), [T, E] = s([]), [D, O] = s(!0), [k, A] = s(null), [j, M] = s(!1), [N, P] = s("view"), [F, I] = s(""), [L, R] = s({
88
- searchQuery: "",
89
- status: "",
90
- verificationStatus: "",
91
- category: "",
92
- location: "",
93
- sortBy: "recent"
94
- }), [z] = s({
95
- totalCarts: 156,
96
- activeCarts: 134,
97
- pendingApproval: 18,
98
- rejectedCarts: 4,
99
- totalRevenue: 125e5,
100
- averageRating: 4.6,
101
- complianceRate: 89,
102
- newApplications: 8
103
- }), B = a(() => {
104
- O(!0), setTimeout(() => {
105
- let e = [...C];
106
- if (L.searchQuery) {
107
- let t = L.searchQuery.toLowerCase();
108
- e = e.filter((e) => e.name.toLowerCase().includes(t) || e.ownerName.toLowerCase().includes(t) || e.description.toLowerCase().includes(t) || e.address.toLowerCase().includes(t));
109
- }
110
- switch (L.status && (L.status === "active" && (e = e.filter((e) => e.isActive)), L.status === "inactive" && (e = e.filter((e) => !e.isActive))), L.verificationStatus && (L.verificationStatus === "verified" && (e = e.filter((e) => e.isVerified)), L.verificationStatus === "pending" && (e = e.filter((e) => !e.isVerified && e.inspectionStatus !== "failed")), L.verificationStatus === "rejected" && (e = e.filter((e) => e.inspectionStatus === "failed"))), L.category && (e = e.filter((e) => e.category === L.category)), L.location && (e = e.filter((e) => e.city.toLowerCase().includes(L.location.toLowerCase()))), L.sortBy) {
111
- case "name":
112
- e.sort((e, t) => e.name.localeCompare(t.name));
113
- break;
114
- case "rating":
115
- e.sort((e, t) => t.rating - e.rating);
116
- break;
117
- case "revenue":
118
- e.sort((e, t) => t.monthlyRevenue - e.monthlyRevenue);
119
- break;
120
- case "compliance":
121
- e.sort((e, t) => t.complianceScore - e.complianceScore);
122
- break;
123
- default: e.sort((e, t) => new Date(t.applicationDate).getTime() - new Date(e.applicationDate).getTime());
124
- }
125
- E(e), O(!1);
126
- }, 800);
127
- }, [L]);
128
- o(() => {
129
- B();
130
- }, [B]);
131
- let V = (e, t) => {
132
- R((n) => ({
133
- ...n,
134
- [e]: t
135
- }));
136
- }, H = (e, t) => {
137
- A(e), P(t), I(""), M(!0);
138
- }, U = () => {
139
- if (!k) return;
140
- let e = "";
141
- switch (N) {
142
- case "approve":
143
- e = `Cart"${k.name}" approved successfully`;
144
- break;
145
- case "reject":
146
- if (!F.trim()) {
147
- alert("Please provide a rejection reason");
148
- return;
149
- }
150
- e = `Cart"${k.name}" rejected`;
151
- break;
152
- case "suspend":
153
- e = `Cart"${k.name}" suspended`;
154
- break;
155
- case "inspect":
156
- e = `Inspection scheduled for"${k.name}"`;
157
- break;
158
- }
159
- alert(e), M(!1), I(""), B();
160
- }, W = (e) => new Date(e).toLocaleDateString("en-IN", {
161
- year: "numeric",
162
- month: "short",
163
- day: "numeric"
164
- }), G = (e) => e.isVerified ? /* @__PURE__ */ y("span", {
165
- className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-success-bg-subtle/20 text-status-success-text",
166
- children: "Verified"
167
- }) : e.inspectionStatus === "pending" ? /* @__PURE__ */ y("span", {
168
- className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-warning-bg-subtle/20 text-status-warning-text",
169
- children: "Pending Review"
170
- }) : e.inspectionStatus === "scheduled" ? /* @__PURE__ */ y("span", {
171
- className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-accent-blue-subtle/20 text-accent-blue",
172
- children: "Inspection Scheduled"
173
- }) : e.inspectionStatus === "failed" ? /* @__PURE__ */ y("span", {
174
- className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-error-bg-subtle/20 text-status-error-text",
175
- children: "Rejected"
176
- }) : /* @__PURE__ */ y("span", {
177
- className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-secondary text-secondary-foreground",
178
- children: "Under Review"
179
- }), K = (e) => e ? /* @__PURE__ */ y("span", {
180
- className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-success-bg-subtle/20 text-status-success-text",
181
- children: "Active"
182
- }) : /* @__PURE__ */ y("span", {
183
- className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-secondary text-secondary-foreground",
184
- children: "Inactive"
185
- }), q = (e) => /* @__PURE__ */ y("div", {
186
- className: "w-full bg-bg-sunken rounded-full h-2",
187
- children: /* @__PURE__ */ y("div", {
188
- className: t("h-2 rounded-full", e >= 80 ? "bg-status-success-bg-subtle" : e >= 60 ? "bg-status-warning-bg-subtle" : "bg-status-error-bg-subtle"),
189
- style: { width: `${e}%` }
190
- })
191
- });
192
- return D ? /* @__PURE__ */ y(n, {
193
- title: "Cart Management",
194
- description: "Loading carts...",
195
- children: /* @__PURE__ */ b("div", {
196
- className: "flex flex-col items-center justify-center py-20",
197
- children: [/* @__PURE__ */ y(d, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ y("p", {
198
- className: "text-text-secondary",
199
- children: "Loading carts..."
200
- })]
201
- })
202
- }) : /* @__PURE__ */ b(n, {
203
- title: "Cart Management",
204
- description: `${z.totalCarts} service providers on the platform`,
205
- actions: /* @__PURE__ */ b("span", {
206
- className: "text-sm text-text-secondary",
207
- children: [z.pendingApproval, " pending approval"]
208
- }),
209
- children: [
210
- /* @__PURE__ */ y(S, {
211
- className: "mb-6",
212
- icon: /* @__PURE__ */ y(h, { className: "h-4 w-4" }),
213
- children: "Oversee every cart on the platform. Approve or reject new applications, suspend or inspect problem carts, and filter the full list by status, category or rating — this is where you keep the marketplace trustworthy and only quality businesses go live."
214
- }),
215
- /* @__PURE__ */ y(x, {
216
- className: "grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-3 mb-6 p-4",
217
- children: [
218
- {
219
- label: "Total Carts",
220
- value: z.totalCarts,
221
- cls: ""
222
- },
223
- {
224
- label: "Active",
225
- value: z.activeCarts,
226
- cls: "bg-status-success-bg-subtle/10 border-status-success-border/30"
227
- },
228
- {
229
- label: "Pending",
230
- value: z.pendingApproval,
231
- cls: "bg-status-warning-bg-subtle/10 border-status-warning-border/30"
232
- },
233
- {
234
- label: "Rejected",
235
- value: z.rejectedCarts,
236
- cls: "bg-status-error-bg-subtle/10 border-status-error-border/30"
237
- },
238
- {
239
- label: "Total Revenue",
240
- value: i(z.totalRevenue, { minimumFractionDigits: 0 }),
241
- cls: "col-span-2 min-w-fit"
242
- },
243
- {
244
- label: "Avg Rating",
245
- value: `${z.averageRating}`,
246
- cls: ""
247
- },
248
- {
249
- label: "New Apps",
250
- value: z.newApplications,
251
- cls: "bg-accent-blue-subtle/10 border-accent-blue-subtle/30"
252
- }
253
- ].map((e) => /* @__PURE__ */ b("div", {
254
- className: t("rounded-lg border border-border-subtle bg-bg-surface p-3", e.cls),
255
- children: [/* @__PURE__ */ y("p", {
256
- className: "text-xs text-text-secondary",
257
- children: e.label
258
- }), /* @__PURE__ */ y("p", {
259
- className: "text-lg font-bold text-text-primary",
260
- children: e.value
261
- })]
262
- }, e.label))
263
- }),
264
- /* @__PURE__ */ y("div", {
265
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 mb-6 bg-gloss-card shadow-pop",
266
- children: /* @__PURE__ */ b("div", {
267
- className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",
268
- children: [
269
- /* @__PURE__ */ b("div", {
270
- className: "relative",
271
- children: [/* @__PURE__ */ y(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ y("input", {
272
- type: "text",
273
- placeholder: "Search carts...",
274
- value: L.searchQuery,
275
- onChange: (e) => V("searchQuery", e.target.value),
276
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
277
- })]
278
- }),
279
- /* @__PURE__ */ b("select", {
280
- value: L.status,
281
- onChange: (e) => V("status", e.target.value),
282
- className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
283
- children: [
284
- /* @__PURE__ */ y("option", {
285
- value: "",
286
- children: "All Status"
287
- }),
288
- /* @__PURE__ */ y("option", {
289
- value: "active",
290
- children: "Active"
291
- }),
292
- /* @__PURE__ */ y("option", {
293
- value: "inactive",
294
- children: "Inactive"
295
- })
296
- ]
297
- }),
298
- /* @__PURE__ */ b("select", {
299
- value: L.verificationStatus,
300
- onChange: (e) => V("verificationStatus", e.target.value),
301
- className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
302
- children: [
303
- /* @__PURE__ */ y("option", {
304
- value: "",
305
- children: "All Verification"
306
- }),
307
- /* @__PURE__ */ y("option", {
308
- value: "verified",
309
- children: "Verified"
310
- }),
311
- /* @__PURE__ */ y("option", {
312
- value: "pending",
313
- children: "Pending"
314
- }),
315
- /* @__PURE__ */ y("option", {
316
- value: "rejected",
317
- children: "Rejected"
318
- })
319
- ]
320
- }),
321
- /* @__PURE__ */ b("select", {
322
- value: L.category,
323
- onChange: (e) => V("category", e.target.value),
324
- className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
325
- children: [
326
- /* @__PURE__ */ y("option", {
327
- value: "",
328
- children: "All Categories"
329
- }),
330
- /* @__PURE__ */ y("option", {
331
- value: "Food & Beverage",
332
- children: "Food & Beverage"
333
- }),
334
- /* @__PURE__ */ y("option", {
335
- value: "Beverages",
336
- children: "Beverages"
337
- }),
338
- /* @__PURE__ */ y("option", {
339
- value: "Street Food",
340
- children: "Street Food"
341
- }),
342
- /* @__PURE__ */ y("option", {
343
- value: "Fast Food",
344
- children: "Fast Food"
345
- })
346
- ]
347
- }),
348
- /* @__PURE__ */ y("input", {
349
- type: "text",
350
- placeholder: "Location...",
351
- value: L.location,
352
- onChange: (e) => V("location", e.target.value),
353
- className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
354
- }),
355
- /* @__PURE__ */ b("select", {
356
- value: L.sortBy,
357
- onChange: (e) => V("sortBy", e.target.value),
358
- className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
359
- children: [
360
- /* @__PURE__ */ y("option", {
361
- value: "recent",
362
- children: "Most Recent"
363
- }),
364
- /* @__PURE__ */ y("option", {
365
- value: "name",
366
- children: "Name A-Z"
367
- }),
368
- /* @__PURE__ */ y("option", {
369
- value: "rating",
370
- children: "Highest Rated"
371
- }),
372
- /* @__PURE__ */ y("option", {
373
- value: "revenue",
374
- children: "Highest Revenue"
375
- }),
376
- /* @__PURE__ */ y("option", {
377
- value: "compliance",
378
- children: "Best Compliance"
379
- })
380
- ]
381
- })
382
- ]
383
- })
384
- }),
385
- /* @__PURE__ */ b("div", {
386
- className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
387
- children: [
388
- /* @__PURE__ */ y("div", {
389
- className: "block md:hidden space-y-4 p-4",
390
- children: T.map((e) => /* @__PURE__ */ b("div", {
391
- className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
392
- children: [
393
- /* @__PURE__ */ b("div", {
394
- className: "flex items-center mb-3",
395
- children: [/* @__PURE__ */ y("img", {
396
- src: e.image,
397
- alt: e.name,
398
- className: "w-16 h-16 rounded-lg object-cover mr-3"
399
- }), /* @__PURE__ */ b("div", {
400
- className: "flex-1 min-w-0",
401
- children: [
402
- /* @__PURE__ */ y("h3", {
403
- className: "font-medium text-text-primary text-lg truncate",
404
- children: e.name
405
- }),
406
- /* @__PURE__ */ y("p", {
407
- className: "text-sm text-text-secondary truncate",
408
- children: e.category
409
- }),
410
- /* @__PURE__ */ y("p", {
411
- className: "text-sm text-text-secondary truncate",
412
- children: e.address
413
- })
414
- ]
415
- })]
416
- }),
417
- /* @__PURE__ */ b("div", {
418
- className: "grid grid-cols-2 gap-4 mb-3 text-sm",
419
- children: [/* @__PURE__ */ b("div", { children: [
420
- /* @__PURE__ */ y("p", {
421
- className: "text-text-secondary font-medium",
422
- children: "Owner"
423
- }),
424
- /* @__PURE__ */ y("p", {
425
- className: "text-text-primary",
426
- children: e.ownerName
427
- }),
428
- /* @__PURE__ */ y("p", {
429
- className: "text-text-secondary text-xs",
430
- children: e.ownerPhone
431
- })
432
- ] }), /* @__PURE__ */ b("div", { children: [
433
- /* @__PURE__ */ y("p", {
434
- className: "text-text-secondary font-medium",
435
- children: "Performance"
436
- }),
437
- /* @__PURE__ */ b("p", {
438
- className: "text-text-primary",
439
- children: [i(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
440
- }),
441
- /* @__PURE__ */ b("p", {
442
- className: "text-text-secondary text-xs",
443
- children: [e.monthlyOrders, " orders"]
444
- })
445
- ] })]
446
- }),
447
- /* @__PURE__ */ b("div", {
448
- className: "flex flex-wrap gap-2 mb-3",
449
- children: [
450
- K(e.isActive),
451
- G(e),
452
- e.rating > 0 && /* @__PURE__ */ b("span", {
453
- className: "inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-warning-bg-subtle/20 text-status-warning-text",
454
- children: [
455
- /* @__PURE__ */ y(m, { className: "h-3 w-3 fill-current" }),
456
- e.rating,
457
- " (",
458
- e.reviewCount,
459
- ")"
460
- ]
461
- })
462
- ]
463
- }),
464
- /* @__PURE__ */ b("div", {
465
- className: "mb-3",
466
- children: [
467
- /* @__PURE__ */ b("div", {
468
- className: "flex items-center justify-between text-sm mb-1",
469
- children: [/* @__PURE__ */ y("span", {
470
- className: "text-text-secondary",
471
- children: "Compliance"
472
- }), /* @__PURE__ */ b("span", {
473
- className: "font-medium text-text-primary",
474
- children: [e.complianceScore, "%"]
475
- })]
476
- }),
477
- q(e.complianceScore),
478
- /* @__PURE__ */ b("p", {
479
- className: "text-xs text-text-secondary mt-1",
480
- children: [
481
- "Docs: ",
482
- e.documentsSubmitted,
483
- "/",
484
- e.documentsRequired,
485
- " • Applied:",
486
- " ",
487
- W(e.applicationDate)
488
- ]
489
- })
490
- ]
491
- }),
492
- /* @__PURE__ */ b("div", {
493
- className: "flex flex-wrap gap-2",
494
- children: [
495
- /* @__PURE__ */ y("button", {
496
- type: "button",
497
- onClick: () => H(e, "view"),
498
- className: "flex-1 rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
499
- children: "View Details"
500
- }),
501
- !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("button", {
502
- type: "button",
503
- onClick: () => H(e, "approve"),
504
- className: "rounded-lg bg-action-primary-bg px-3 py-1.5 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
505
- children: "Approve"
506
- }), /* @__PURE__ */ y("button", {
507
- type: "button",
508
- onClick: () => H(e, "reject"),
509
- className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
510
- children: "Reject"
511
- })] }),
512
- e.inspectionStatus === "pending" && /* @__PURE__ */ y("button", {
513
- type: "button",
514
- onClick: () => H(e, "inspect"),
515
- className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
516
- children: "Inspect"
517
- }),
518
- e.isActive && /* @__PURE__ */ y("button", {
519
- type: "button",
520
- onClick: () => H(e, "suspend"),
521
- className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
522
- children: "Suspend"
523
- })
524
- ]
525
- })
526
- ]
527
- }, e.id))
528
- }),
529
- /* @__PURE__ */ y("div", {
530
- className: "hidden md:block overflow-x-auto",
531
- children: /* @__PURE__ */ b("table", {
532
- className: "w-full",
533
- children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
534
- className: "border-b border-border-subtle bg-bg-sunken/50",
535
- children: [
536
- /* @__PURE__ */ y("th", {
537
- className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
538
- children: "Cart"
539
- }),
540
- /* @__PURE__ */ y("th", {
541
- className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
542
- children: "Owner"
543
- }),
544
- /* @__PURE__ */ y("th", {
545
- className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
546
- children: "Status"
547
- }),
548
- /* @__PURE__ */ y("th", {
549
- className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
550
- children: "Performance"
551
- }),
552
- /* @__PURE__ */ y("th", {
553
- className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
554
- children: "Compliance"
555
- }),
556
- /* @__PURE__ */ y("th", {
557
- className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
558
- children: "Actions"
559
- })
560
- ]
561
- }) }), /* @__PURE__ */ y("tbody", {
562
- className: "divide-y divide-border",
563
- children: T.map((e) => /* @__PURE__ */ b("tr", {
564
- className: "hover:bg-accent/50 transition-colors",
565
- children: [
566
- /* @__PURE__ */ y("td", {
567
- className: "px-4 py-3",
568
- children: /* @__PURE__ */ b("div", {
569
- className: "flex items-center gap-3",
570
- children: [/* @__PURE__ */ y("img", {
571
- src: e.image,
572
- alt: e.name,
573
- className: "w-12 h-12 rounded-lg object-cover"
574
- }), /* @__PURE__ */ b("div", {
575
- className: "min-w-0",
576
- children: [
577
- /* @__PURE__ */ y("p", {
578
- className: "text-sm font-medium text-text-primary truncate",
579
- children: e.name
580
- }),
581
- /* @__PURE__ */ y("p", {
582
- className: "text-xs text-text-secondary truncate",
583
- children: e.category
584
- }),
585
- /* @__PURE__ */ y("p", {
586
- className: "text-xs text-text-secondary truncate",
587
- children: e.address
588
- })
589
- ]
590
- })]
591
- })
592
- }),
593
- /* @__PURE__ */ b("td", {
594
- className: "px-4 py-3 text-sm",
595
- children: [
596
- /* @__PURE__ */ y("p", {
597
- className: "font-medium text-text-primary",
598
- children: e.ownerName
599
- }),
600
- /* @__PURE__ */ y("p", {
601
- className: "text-xs text-text-secondary",
602
- children: e.ownerEmail
603
- }),
604
- /* @__PURE__ */ y("p", {
605
- className: "text-xs text-text-secondary",
606
- children: e.ownerPhone
607
- })
608
- ]
609
- }),
610
- /* @__PURE__ */ y("td", {
611
- className: "px-4 py-3",
612
- children: /* @__PURE__ */ b("div", {
613
- className: "space-y-1",
614
- children: [
615
- K(e.isActive),
616
- /* @__PURE__ */ y("br", {}),
617
- G(e),
618
- e.rating > 0 && /* @__PURE__ */ b("div", {
619
- className: "text-sm flex items-center gap-1 mt-1",
620
- children: [
621
- /* @__PURE__ */ y(m, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
622
- e.rating,
623
- " ",
624
- /* @__PURE__ */ b("span", {
625
- className: "text-text-secondary",
626
- children: [
627
- "(",
628
- e.reviewCount,
629
- ")"
630
- ]
631
- })
632
- ]
633
- })
634
- ]
635
- })
636
- }),
637
- /* @__PURE__ */ b("td", {
638
- className: "px-4 py-3 text-sm",
639
- children: [/* @__PURE__ */ b("p", {
640
- className: "text-text-primary",
641
- children: [i(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
642
- }), /* @__PURE__ */ b("p", {
643
- className: "text-text-secondary",
644
- children: [e.monthlyOrders, " orders/mo"]
645
- })]
646
- }),
647
- /* @__PURE__ */ b("td", {
648
- className: "px-4 py-3 text-sm",
649
- children: [
650
- /* @__PURE__ */ b("div", {
651
- className: "flex items-center gap-2 mb-1",
652
- children: [/* @__PURE__ */ y("div", {
653
- className: "w-16",
654
- children: q(e.complianceScore)
655
- }), /* @__PURE__ */ b("span", {
656
- className: "font-medium text-text-primary",
657
- children: [e.complianceScore, "%"]
658
- })]
659
- }),
660
- /* @__PURE__ */ b("p", {
661
- className: "text-xs text-text-secondary",
662
- children: [
663
- "Docs: ",
664
- e.documentsSubmitted,
665
- "/",
666
- e.documentsRequired
667
- ]
668
- }),
669
- /* @__PURE__ */ b("p", {
670
- className: "text-xs text-text-secondary",
671
- children: ["Applied: ", W(e.applicationDate)]
672
- })
673
- ]
674
- }),
675
- /* @__PURE__ */ y("td", {
676
- className: "px-4 py-3",
677
- children: /* @__PURE__ */ b("div", {
678
- className: "flex flex-col gap-1",
679
- children: [
680
- /* @__PURE__ */ b("button", {
681
- type: "button",
682
- onClick: () => H(e, "view"),
683
- className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors inline-flex items-center gap-1 text-xs",
684
- children: [/* @__PURE__ */ y(u, { className: "h-4 w-4" }), " View"]
685
- }),
686
- !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ b("div", {
687
- className: "flex gap-1",
688
- children: [/* @__PURE__ */ y("button", {
689
- type: "button",
690
- onClick: () => H(e, "approve"),
691
- className: "rounded p-1.5 text-text-secondary hover:text-status-success-text hover:bg-status-success-bg-subtle/10 transition-colors",
692
- children: /* @__PURE__ */ y(c, { className: "h-4 w-4" })
693
- }), /* @__PURE__ */ y("button", {
694
- type: "button",
695
- onClick: () => H(e, "reject"),
696
- className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
697
- children: /* @__PURE__ */ y(_, { className: "h-4 w-4" })
698
- })]
699
- }),
700
- e.inspectionStatus === "pending" && /* @__PURE__ */ b("button", {
701
- type: "button",
702
- onClick: () => H(e, "inspect"),
703
- className: "rounded p-1.5 text-text-secondary hover:text-accent-blue hover:bg-accent-blue-subtle/10 transition-colors inline-flex items-center gap-1 text-xs",
704
- children: [/* @__PURE__ */ y(l, { className: "h-4 w-4" }), " Inspect"]
705
- }),
706
- e.isActive && /* @__PURE__ */ y("button", {
707
- type: "button",
708
- onClick: () => H(e, "suspend"),
709
- className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
710
- children: /* @__PURE__ */ y(f, { className: "h-4 w-4" })
711
- })
712
- ]
713
- })
714
- })
715
- ]
716
- }, e.id))
717
- })]
718
- })
719
- }),
720
- T.length === 0 && /* @__PURE__ */ y(r, {
721
- illustration: "empty-search",
722
- title: "No carts found",
723
- description: "No carts match your current filters. Try adjusting your search criteria."
724
- })
725
- ]
726
- }),
727
- j && k && /* @__PURE__ */ y("div", {
728
- className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
729
- children: /* @__PURE__ */ b("div", {
730
- className: "w-full max-w-2xl rounded-lg border border-border-subtle bg-bg-surface shadow-lg max-h-[90vh] overflow-y-auto",
731
- children: [/* @__PURE__ */ b("div", {
732
- className: "flex items-center justify-between p-4 border-b border-border-subtle",
733
- children: [/* @__PURE__ */ y("h3", {
734
- className: "text-lg font-semibold text-text-primary",
735
- children: N === "view" ? "Cart Details" : N === "approve" ? "Approve Cart" : N === "reject" ? "Reject Cart" : N === "suspend" ? "Suspend Cart" : "Schedule Inspection"
736
- }), /* @__PURE__ */ y("button", {
737
- type: "button",
738
- onClick: () => M(!1),
739
- className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
740
- children: /* @__PURE__ */ y(g, { className: "h-5 w-5" })
741
- })]
742
- }), /* @__PURE__ */ b("div", {
743
- className: "p-4 space-y-4",
744
- children: [
745
- /* @__PURE__ */ b("div", {
746
- className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
747
- children: [
748
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
749
- className: "text-sm text-text-secondary",
750
- children: "Cart Name"
751
- }), /* @__PURE__ */ y("p", {
752
- className: "font-medium text-text-primary",
753
- children: k.name
754
- })] }),
755
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
756
- className: "text-sm text-text-secondary",
757
- children: "Category"
758
- }), /* @__PURE__ */ y("p", {
759
- className: "font-medium text-text-primary",
760
- children: k.category
761
- })] }),
762
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
763
- className: "text-sm text-text-secondary",
764
- children: "Owner"
765
- }), /* @__PURE__ */ y("p", {
766
- className: "font-medium text-text-primary",
767
- children: k.ownerName
768
- })] }),
769
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
770
- className: "text-sm text-text-secondary",
771
- children: "Contact"
772
- }), /* @__PURE__ */ y("p", {
773
- className: "font-medium text-text-primary",
774
- children: k.ownerPhone
775
- })] })
776
- ]
777
- }),
778
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
779
- className: "text-sm text-text-secondary",
780
- children: "Description"
781
- }), /* @__PURE__ */ y("p", {
782
- className: "font-medium text-text-primary",
783
- children: k.description
784
- })] }),
785
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
786
- className: "text-sm text-text-secondary",
787
- children: "Location"
788
- }), /* @__PURE__ */ y("p", {
789
- className: "font-medium text-text-primary",
790
- children: k.address
791
- })] }),
792
- /* @__PURE__ */ b("div", {
793
- className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
794
- children: [
795
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
796
- className: "text-sm text-text-secondary",
797
- children: "Compliance Score"
798
- }), /* @__PURE__ */ b("p", {
799
- className: "font-medium text-text-primary",
800
- children: [k.complianceScore, "%"]
801
- })] }),
802
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
803
- className: "text-sm text-text-secondary",
804
- children: "Documents"
805
- }), /* @__PURE__ */ b("p", {
806
- className: "font-medium text-text-primary",
807
- children: [
808
- k.documentsSubmitted,
809
- "/",
810
- k.documentsRequired
811
- ]
812
- })] }),
813
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
814
- className: "text-sm text-text-secondary",
815
- children: "Monthly Revenue"
816
- }), /* @__PURE__ */ y("p", {
817
- className: "font-medium text-text-primary",
818
- children: i(k.monthlyRevenue, { minimumFractionDigits: 0 })
819
- })] })
820
- ]
821
- }),
822
- k.rejectionReason && /* @__PURE__ */ b("div", {
823
- className: "rounded-lg border border-status-error-border/30 bg-status-error-bg-subtle/10 p-4",
824
- children: [/* @__PURE__ */ y("p", {
825
- className: "text-sm font-medium text-status-error-text",
826
- children: "Previous Rejection Reason:"
827
- }), /* @__PURE__ */ y("p", {
828
- className: "text-sm text-status-error-text",
829
- children: k.rejectionReason
830
- })]
831
- }),
832
- N === "reject" && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
833
- className: "block text-sm font-medium text-text-primary mb-2",
834
- children: "Rejection Reason *"
835
- }), /* @__PURE__ */ y("textarea", {
836
- className: "w-full rounded-lg border border-border-subtle bg-bg-surface p-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] min-h-[100px]",
837
- rows: 4,
838
- value: F,
839
- onChange: (e) => I(e.target.value),
840
- placeholder: "Please provide a detailed reason for rejection..."
841
- })] }),
842
- N === "approve" && /* @__PURE__ */ y("div", {
843
- className: "rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 p-4",
844
- children: /* @__PURE__ */ y("p", {
845
- className: "text-sm text-status-success-text",
846
- children: "This will approve the cart for operation on the platform. The cart owner will be notified and the cart will become active."
847
- })
848
- }),
849
- /* @__PURE__ */ b("div", {
850
- className: "flex gap-3 pt-2",
851
- children: [/* @__PURE__ */ y("button", {
852
- type: "button",
853
- onClick: () => M(!1),
854
- className: "flex-1 rounded-lg border border-border-subtle py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
855
- children: "Cancel"
856
- }), N !== "view" && /* @__PURE__ */ y("button", {
857
- type: "button",
858
- onClick: U,
859
- disabled: N === "reject" && !F.trim(),
860
- className: "flex-1 rounded-lg bg-action-primary-bg py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
861
- children: N === "approve" ? "Approve Cart" : N === "reject" ? "Reject Cart" : N === "suspend" ? "Suspend Cart" : "Schedule Inspection"
862
- })]
863
- })
864
- ]
865
- })]
866
- })
867
- })
868
- ]
869
- });
870
- }
871
- //#endregion
872
- export { w as CartManagementPage };
873
-
874
- //# sourceMappingURL=CartManagementPage.js.map