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