@burdenoff/microfe-subscriberbot 2026.626.2 → 2026.629.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/subscriberbot/SubscriberBotRoot.js +61 -133
  3. package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
  4. package/dist/subscriberbot/SubscriberBotRoutes.js +56 -187
  5. package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
  6. package/dist/subscriberbot/components/StateViews.js +49 -0
  7. package/dist/subscriberbot/components/StateViews.js.map +1 -0
  8. package/dist/subscriberbot/components/StatusBadge.js +45 -47
  9. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  10. package/dist/subscriberbot/context/SubscriberBotContext.js +22 -30
  11. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  12. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +342 -195
  13. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  14. package/dist/subscriberbot/index.js +1 -1
  15. package/dist/subscriberbot/pages/DashboardPage.js +269 -0
  16. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -0
  17. package/dist/subscriberbot/pages/InboxPage.js +186 -0
  18. package/dist/subscriberbot/pages/InboxPage.js.map +1 -0
  19. package/dist/subscriberbot/pages/InvoicesPage.js +211 -0
  20. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -0
  21. package/dist/subscriberbot/pages/WorkflowsPage.js +236 -0
  22. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -0
  23. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +160 -0
  24. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -0
  25. package/dist/subscriberbot/pages/agents/AgentNewPage.js +140 -0
  26. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -0
  27. package/dist/subscriberbot/pages/agents/AgentsListPage.js +178 -0
  28. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -0
  29. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +179 -0
  30. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -0
  31. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +185 -0
  32. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -0
  33. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +254 -0
  34. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -0
  35. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +306 -0
  36. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -0
  37. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +253 -0
  38. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -0
  39. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +248 -0
  40. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -0
  41. package/dist/subscriberbot/utils/formatters.js +50 -32
  42. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/subscriberbot/components/InvestmentCard.js +0 -97
  45. package/dist/subscriberbot/components/InvestmentCard.js.map +0 -1
  46. package/dist/subscriberbot/components/RatingDisplay.js +0 -35
  47. package/dist/subscriberbot/components/RatingDisplay.js.map +0 -1
  48. package/dist/subscriberbot/mocks/data.js +0 -1517
  49. package/dist/subscriberbot/mocks/data.js.map +0 -1
  50. package/dist/subscriberbot/mocks/users.js +0 -34
  51. package/dist/subscriberbot/mocks/users.js.map +0 -1
  52. package/dist/subscriberbot/pages/HomePage.js +0 -930
  53. package/dist/subscriberbot/pages/HomePage.js.map +0 -1
  54. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +0 -651
  55. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +0 -1
  56. package/dist/subscriberbot/pages/admin/AdminDashboard.js +0 -679
  57. package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +0 -1
  58. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +0 -427
  59. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +0 -1
  60. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +0 -665
  61. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +0 -1
  62. package/dist/subscriberbot/pages/admin/AdminProfilePage.js +0 -261
  63. package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +0 -1
  64. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +0 -654
  65. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +0 -1
  66. package/dist/subscriberbot/pages/admin/CartManagementPage.js +0 -874
  67. package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +0 -1
  68. package/dist/subscriberbot/pages/admin/UserManagementPage.js +0 -898
  69. package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +0 -1
  70. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +0 -839
  71. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  72. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +0 -705
  73. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  74. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +0 -802
  75. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  76. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  77. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  78. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +0 -633
  79. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  80. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +0 -910
  81. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  82. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +0 -879
  83. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +0 -1
  84. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +0 -838
  85. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +0 -1
  86. package/dist/subscriberbot/pages/common/HelpSupportPage.js +0 -1323
  87. package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +0 -1
  88. package/dist/subscriberbot/pages/common/NotificationCenterPage.js +0 -672
  89. package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +0 -1
  90. package/dist/subscriberbot/pages/common/SettingsPage.js +0 -973
  91. package/dist/subscriberbot/pages/common/SettingsPage.js.map +0 -1
  92. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +0 -626
  93. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +0 -1
  94. package/dist/subscriberbot/pages/customer/CartDetailPage.js +0 -654
  95. package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +0 -1
  96. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +0 -555
  97. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +0 -1
  98. package/dist/subscriberbot/pages/customer/CheckoutPage.js +0 -529
  99. package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +0 -1
  100. package/dist/subscriberbot/pages/customer/CustomerDashboard.js +0 -532
  101. package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +0 -1
  102. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +0 -630
  103. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +0 -1
  104. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +0 -633
  105. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +0 -1
  106. package/dist/subscriberbot/pages/customer/FavoritesPage.js +0 -484
  107. package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +0 -1
  108. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +0 -446
  109. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +0 -1
  110. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +0 -394
  111. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +0 -1
  112. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +0 -495
  113. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +0 -1
  114. package/dist/subscriberbot/pages/customer/ReviewsPage.js +0 -613
  115. package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +0 -1
  116. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +0 -450
  117. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +0 -1
  118. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +0 -886
  119. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +0 -1
  120. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +0 -947
  121. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  122. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +0 -687
  123. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  124. package/dist/subscriberbot/pages/investor/InvestorDashboard.js +0 -451
  125. package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +0 -1
  126. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +0 -406
  127. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  128. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +0 -575
  129. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +0 -1
  130. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +0 -1070
  131. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +0 -1
  132. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +0 -535
  133. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +0 -1
  134. package/dist/subscriberbot/pages/worker/WorkerDashboard.js +0 -666
  135. package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +0 -1
  136. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +0 -681
  137. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +0 -1
  138. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +0 -692
  139. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +0 -1
  140. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +0 -588
  141. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,874 +0,0 @@
1
- import { useSubscriberBot as e } from "../../context/SubscriberBotContext.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/subscriberbot/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/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/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-status-info-bg/20 text-status-info-text",
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/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/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-text" : e >= 60 ? "bg-status-warning-text" : "bg-status-error-text"),
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
- icon: /* @__PURE__ */ y(h, { className: "h-4 w-4" }),
212
- className: "mb-6",
213
- children: "The gatekeeper for every service provider on the marketplace. Review and approve new cart applications before they go live, keep tabs on active and rejected carts, and step in if a provider needs suspending. Start with anything pending approval — that's what's holding new sellers back from earning."
214
- }),
215
- /* @__PURE__ */ y(x, {
216
- className: "grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-3 mb-6",
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/10 border-status-success-border/30"
227
- },
228
- {
229
- label: "Pending",
230
- value: z.pendingApproval,
231
- cls: "bg-status-warning-bg/10 border-status-warning-border/30"
232
- },
233
- {
234
- label: "Rejected",
235
- value: z.rejectedCarts,
236
- cls: "bg-status-error-bg/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-status-info-bg/10 border-status-info-border/30"
252
- }
253
- ].map((e) => /* @__PURE__ */ b("div", {
254
- className: t("rounded-lg border border-border-seam 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",
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-seam 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-seam 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-seam 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-seam 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-seam 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-seam 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-seam 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-seam 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/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-seam 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-seam px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg/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-seam 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-seam px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg/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-seam 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/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/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-status-info-text hover:bg-status-info-bg/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/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 broadening 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-bg-canvas/50 p-4",
729
- children: /* @__PURE__ */ b("div", {
730
- className: "w-full max-w-2xl rounded-lg border border-border-seam 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-seam",
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/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/80",
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-seam 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/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-seam 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