@burdenoff/microfe-adaptercloud 2026.614.1 → 2026.625.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.
- package/dist/adaptercloud/components/EmptyState.js +17 -21
- package/dist/adaptercloud/components/EmptyState.js.map +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +30 -28
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
- package/dist/adaptercloud/components/MetricsCard.js +21 -15
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
- package/dist/adaptercloud/components/PageLayout.js +38 -19
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/components/RatingDisplay.js +3 -3
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
- package/dist/adaptercloud/components/StatusBadge.js +36 -16
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +286 -275
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +101 -101
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +95 -95
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +34 -34
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +107 -107
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +98 -98
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +33 -33
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +112 -109
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +115 -115
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +85 -85
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +106 -106
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +88 -88
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +94 -94
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +142 -142
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +67 -66
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +115 -115
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +74 -73
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +87 -86
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +66 -65
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +80 -80
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +88 -88
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +34 -33
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +44 -43
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +58 -57
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +48 -47
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +46 -45
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +128 -128
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +88 -87
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +62 -62
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +153 -153
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +81 -80
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +106 -106
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +107 -107
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/adaptercloud/utils/cn.js +2 -2
- package/dist/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +3 -3
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -138,20 +138,20 @@ function x() {
|
|
|
138
138
|
let e = "";
|
|
139
139
|
switch (A) {
|
|
140
140
|
case "approve":
|
|
141
|
-
e = `Cart
|
|
141
|
+
e = `Cart"${E.name}" approved successfully`;
|
|
142
142
|
break;
|
|
143
143
|
case "reject":
|
|
144
144
|
if (!M.trim()) {
|
|
145
145
|
alert("Please provide a rejection reason");
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
|
-
e = `Cart
|
|
148
|
+
e = `Cart"${E.name}" rejected`;
|
|
149
149
|
break;
|
|
150
150
|
case "suspend":
|
|
151
|
-
e = `Cart
|
|
151
|
+
e = `Cart"${E.name}" suspended`;
|
|
152
152
|
break;
|
|
153
153
|
case "inspect":
|
|
154
|
-
e = `Inspection scheduled for
|
|
154
|
+
e = `Inspection scheduled for"${E.name}"`;
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
157
|
alert(e), k(!1), N(""), L();
|
|
@@ -160,30 +160,30 @@ function x() {
|
|
|
160
160
|
month: "short",
|
|
161
161
|
day: "numeric"
|
|
162
162
|
}), H = (e) => e.isVerified ? /* @__PURE__ */ v("span", {
|
|
163
|
-
className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-
|
|
163
|
+
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",
|
|
164
164
|
children: "Verified"
|
|
165
165
|
}) : e.inspectionStatus === "pending" ? /* @__PURE__ */ v("span", {
|
|
166
|
-
className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-
|
|
166
|
+
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",
|
|
167
167
|
children: "Pending Review"
|
|
168
168
|
}) : e.inspectionStatus === "scheduled" ? /* @__PURE__ */ v("span", {
|
|
169
|
-
className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-blue-
|
|
169
|
+
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",
|
|
170
170
|
children: "Inspection Scheduled"
|
|
171
171
|
}) : e.inspectionStatus === "failed" ? /* @__PURE__ */ v("span", {
|
|
172
|
-
className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-
|
|
172
|
+
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",
|
|
173
173
|
children: "Rejected"
|
|
174
174
|
}) : /* @__PURE__ */ v("span", {
|
|
175
175
|
className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-secondary text-secondary-foreground",
|
|
176
176
|
children: "Under Review"
|
|
177
177
|
}), U = (e) => e ? /* @__PURE__ */ v("span", {
|
|
178
|
-
className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-
|
|
178
|
+
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",
|
|
179
179
|
children: "Active"
|
|
180
180
|
}) : /* @__PURE__ */ v("span", {
|
|
181
181
|
className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-secondary text-secondary-foreground",
|
|
182
182
|
children: "Inactive"
|
|
183
183
|
}), W = (e) => /* @__PURE__ */ v("div", {
|
|
184
|
-
className: "w-full bg-
|
|
184
|
+
className: "w-full bg-bg-sunken rounded-full h-2",
|
|
185
185
|
children: /* @__PURE__ */ v("div", {
|
|
186
|
-
className: t("h-2 rounded-full", e >= 80 ? "bg-
|
|
186
|
+
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"),
|
|
187
187
|
style: { width: `${e}%` }
|
|
188
188
|
})
|
|
189
189
|
});
|
|
@@ -192,8 +192,8 @@ function x() {
|
|
|
192
192
|
description: "Loading carts...",
|
|
193
193
|
children: /* @__PURE__ */ y("div", {
|
|
194
194
|
className: "flex flex-col items-center justify-center py-20",
|
|
195
|
-
children: [/* @__PURE__ */ v(u, { className: "h-10 w-10 animate-spin text-
|
|
196
|
-
className: "text-
|
|
195
|
+
children: [/* @__PURE__ */ v(u, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ v("p", {
|
|
196
|
+
className: "text-text-secondary",
|
|
197
197
|
children: "Loading carts..."
|
|
198
198
|
})]
|
|
199
199
|
})
|
|
@@ -201,7 +201,7 @@ function x() {
|
|
|
201
201
|
title: "Cart Management",
|
|
202
202
|
description: `${I.totalCarts} service providers on the platform`,
|
|
203
203
|
actions: /* @__PURE__ */ y("span", {
|
|
204
|
-
className: "text-sm text-
|
|
204
|
+
className: "text-sm text-text-secondary",
|
|
205
205
|
children: [I.pendingApproval, " pending approval"]
|
|
206
206
|
}),
|
|
207
207
|
children: [
|
|
@@ -216,17 +216,17 @@ function x() {
|
|
|
216
216
|
{
|
|
217
217
|
label: "Active",
|
|
218
218
|
value: I.activeCarts,
|
|
219
|
-
cls: "bg-
|
|
219
|
+
cls: "bg-status-success-bg-subtle/10 border-status-success-border/30"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
label: "Pending",
|
|
223
223
|
value: I.pendingApproval,
|
|
224
|
-
cls: "bg-
|
|
224
|
+
cls: "bg-status-warning-bg-subtle/10 border-status-warning-border/30"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
label: "Rejected",
|
|
228
228
|
value: I.rejectedCarts,
|
|
229
|
-
cls: "bg-
|
|
229
|
+
cls: "bg-status-error-bg-subtle/10 border-status-error-border/30"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
label: "Total Revenue",
|
|
@@ -241,38 +241,38 @@ function x() {
|
|
|
241
241
|
{
|
|
242
242
|
label: "New Apps",
|
|
243
243
|
value: I.newApplications,
|
|
244
|
-
cls: "bg-blue-
|
|
244
|
+
cls: "bg-accent-blue-subtle/10 border-accent-blue-subtle/30"
|
|
245
245
|
}
|
|
246
246
|
].map((e) => /* @__PURE__ */ y("div", {
|
|
247
|
-
className: t("rounded-lg border border-border bg-
|
|
247
|
+
className: t("rounded-lg border border-border-subtle bg-bg-surface p-3", e.cls),
|
|
248
248
|
children: [/* @__PURE__ */ v("p", {
|
|
249
|
-
className: "text-xs text-
|
|
249
|
+
className: "text-xs text-text-secondary",
|
|
250
250
|
children: e.label
|
|
251
251
|
}), /* @__PURE__ */ v("p", {
|
|
252
|
-
className: "text-lg font-bold text-
|
|
252
|
+
className: "text-lg font-bold text-text-primary",
|
|
253
253
|
children: e.value
|
|
254
254
|
})]
|
|
255
255
|
}, e.label))
|
|
256
256
|
}),
|
|
257
257
|
/* @__PURE__ */ v("div", {
|
|
258
|
-
className: "rounded-lg border border-border bg-
|
|
258
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 mb-6 bg-gloss-card shadow-pop",
|
|
259
259
|
children: /* @__PURE__ */ y("div", {
|
|
260
260
|
className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",
|
|
261
261
|
children: [
|
|
262
262
|
/* @__PURE__ */ y("div", {
|
|
263
263
|
className: "relative",
|
|
264
|
-
children: [/* @__PURE__ */ v(f, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
264
|
+
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", {
|
|
265
265
|
type: "text",
|
|
266
266
|
placeholder: "Search carts...",
|
|
267
267
|
value: P.searchQuery,
|
|
268
268
|
onChange: (e) => R("searchQuery", e.target.value),
|
|
269
|
-
className: "w-full rounded-lg border border-border bg-
|
|
269
|
+
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)]"
|
|
270
270
|
})]
|
|
271
271
|
}),
|
|
272
272
|
/* @__PURE__ */ y("select", {
|
|
273
273
|
value: P.status,
|
|
274
274
|
onChange: (e) => R("status", e.target.value),
|
|
275
|
-
className: "rounded-lg border border-border bg-
|
|
275
|
+
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)]",
|
|
276
276
|
children: [
|
|
277
277
|
/* @__PURE__ */ v("option", {
|
|
278
278
|
value: "",
|
|
@@ -291,7 +291,7 @@ function x() {
|
|
|
291
291
|
/* @__PURE__ */ y("select", {
|
|
292
292
|
value: P.verificationStatus,
|
|
293
293
|
onChange: (e) => R("verificationStatus", e.target.value),
|
|
294
|
-
className: "rounded-lg border border-border bg-
|
|
294
|
+
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)]",
|
|
295
295
|
children: [
|
|
296
296
|
/* @__PURE__ */ v("option", {
|
|
297
297
|
value: "",
|
|
@@ -314,7 +314,7 @@ function x() {
|
|
|
314
314
|
/* @__PURE__ */ y("select", {
|
|
315
315
|
value: P.category,
|
|
316
316
|
onChange: (e) => R("category", e.target.value),
|
|
317
|
-
className: "rounded-lg border border-border bg-
|
|
317
|
+
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)]",
|
|
318
318
|
children: [
|
|
319
319
|
/* @__PURE__ */ v("option", {
|
|
320
320
|
value: "",
|
|
@@ -343,12 +343,12 @@ function x() {
|
|
|
343
343
|
placeholder: "Location...",
|
|
344
344
|
value: P.location,
|
|
345
345
|
onChange: (e) => R("location", e.target.value),
|
|
346
|
-
className: "rounded-lg border border-border bg-
|
|
346
|
+
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)]"
|
|
347
347
|
}),
|
|
348
348
|
/* @__PURE__ */ y("select", {
|
|
349
349
|
value: P.sortBy,
|
|
350
350
|
onChange: (e) => R("sortBy", e.target.value),
|
|
351
|
-
className: "rounded-lg border border-border bg-
|
|
351
|
+
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)]",
|
|
352
352
|
children: [
|
|
353
353
|
/* @__PURE__ */ v("option", {
|
|
354
354
|
value: "recent",
|
|
@@ -376,12 +376,12 @@ function x() {
|
|
|
376
376
|
})
|
|
377
377
|
}),
|
|
378
378
|
/* @__PURE__ */ y("div", {
|
|
379
|
-
className: "rounded-lg border border-border bg-
|
|
379
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
380
380
|
children: [
|
|
381
381
|
/* @__PURE__ */ v("div", {
|
|
382
382
|
className: "block md:hidden space-y-4 p-4",
|
|
383
383
|
children: S.map((e) => /* @__PURE__ */ y("div", {
|
|
384
|
-
className: "rounded-lg border border-border bg-
|
|
384
|
+
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
385
385
|
children: [
|
|
386
386
|
/* @__PURE__ */ y("div", {
|
|
387
387
|
className: "flex items-center mb-3",
|
|
@@ -393,15 +393,15 @@ function x() {
|
|
|
393
393
|
className: "flex-1 min-w-0",
|
|
394
394
|
children: [
|
|
395
395
|
/* @__PURE__ */ v("h3", {
|
|
396
|
-
className: "font-medium text-
|
|
396
|
+
className: "font-medium text-text-primary text-lg truncate",
|
|
397
397
|
children: e.name
|
|
398
398
|
}),
|
|
399
399
|
/* @__PURE__ */ v("p", {
|
|
400
|
-
className: "text-sm text-
|
|
400
|
+
className: "text-sm text-text-secondary truncate",
|
|
401
401
|
children: e.category
|
|
402
402
|
}),
|
|
403
403
|
/* @__PURE__ */ v("p", {
|
|
404
|
-
className: "text-sm text-
|
|
404
|
+
className: "text-sm text-text-secondary truncate",
|
|
405
405
|
children: e.address
|
|
406
406
|
})
|
|
407
407
|
]
|
|
@@ -411,28 +411,28 @@ function x() {
|
|
|
411
411
|
className: "grid grid-cols-2 gap-4 mb-3 text-sm",
|
|
412
412
|
children: [/* @__PURE__ */ y("div", { children: [
|
|
413
413
|
/* @__PURE__ */ v("p", {
|
|
414
|
-
className: "text-
|
|
414
|
+
className: "text-text-secondary font-medium",
|
|
415
415
|
children: "Owner"
|
|
416
416
|
}),
|
|
417
417
|
/* @__PURE__ */ v("p", {
|
|
418
|
-
className: "text-
|
|
418
|
+
className: "text-text-primary",
|
|
419
419
|
children: e.ownerName
|
|
420
420
|
}),
|
|
421
421
|
/* @__PURE__ */ v("p", {
|
|
422
|
-
className: "text-
|
|
422
|
+
className: "text-text-secondary text-xs",
|
|
423
423
|
children: e.ownerPhone
|
|
424
424
|
})
|
|
425
425
|
] }), /* @__PURE__ */ y("div", { children: [
|
|
426
426
|
/* @__PURE__ */ v("p", {
|
|
427
|
-
className: "text-
|
|
427
|
+
className: "text-text-secondary font-medium",
|
|
428
428
|
children: "Performance"
|
|
429
429
|
}),
|
|
430
430
|
/* @__PURE__ */ y("p", {
|
|
431
|
-
className: "text-
|
|
431
|
+
className: "text-text-primary",
|
|
432
432
|
children: [r(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
|
|
433
433
|
}),
|
|
434
434
|
/* @__PURE__ */ y("p", {
|
|
435
|
-
className: "text-
|
|
435
|
+
className: "text-text-secondary text-xs",
|
|
436
436
|
children: [e.monthlyOrders, " orders"]
|
|
437
437
|
})
|
|
438
438
|
] })]
|
|
@@ -443,7 +443,7 @@ function x() {
|
|
|
443
443
|
U(e.isActive),
|
|
444
444
|
H(e),
|
|
445
445
|
e.rating > 0 && /* @__PURE__ */ y("span", {
|
|
446
|
-
className: "inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium bg-
|
|
446
|
+
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",
|
|
447
447
|
children: [
|
|
448
448
|
/* @__PURE__ */ v(p, { className: "h-3 w-3 fill-current" }),
|
|
449
449
|
e.rating,
|
|
@@ -460,16 +460,16 @@ function x() {
|
|
|
460
460
|
/* @__PURE__ */ y("div", {
|
|
461
461
|
className: "flex items-center justify-between text-sm mb-1",
|
|
462
462
|
children: [/* @__PURE__ */ v("span", {
|
|
463
|
-
className: "text-
|
|
463
|
+
className: "text-text-secondary",
|
|
464
464
|
children: "Compliance"
|
|
465
465
|
}), /* @__PURE__ */ y("span", {
|
|
466
|
-
className: "font-medium text-
|
|
466
|
+
className: "font-medium text-text-primary",
|
|
467
467
|
children: [e.complianceScore, "%"]
|
|
468
468
|
})]
|
|
469
469
|
}),
|
|
470
470
|
W(e.complianceScore),
|
|
471
471
|
/* @__PURE__ */ y("p", {
|
|
472
|
-
className: "text-xs text-
|
|
472
|
+
className: "text-xs text-text-secondary mt-1",
|
|
473
473
|
children: [
|
|
474
474
|
"Docs: ",
|
|
475
475
|
e.documentsSubmitted,
|
|
@@ -488,30 +488,30 @@ function x() {
|
|
|
488
488
|
/* @__PURE__ */ v("button", {
|
|
489
489
|
type: "button",
|
|
490
490
|
onClick: () => z(e, "view"),
|
|
491
|
-
className: "flex-1 rounded-lg border border-border px-3 py-1.5 text-sm font-medium text-
|
|
491
|
+
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",
|
|
492
492
|
children: "View Details"
|
|
493
493
|
}),
|
|
494
494
|
!e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("button", {
|
|
495
495
|
type: "button",
|
|
496
496
|
onClick: () => z(e, "approve"),
|
|
497
|
-
className: "rounded-lg bg-primary px-3 py-1.5 text-sm font-medium text-primary-
|
|
497
|
+
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",
|
|
498
498
|
children: "Approve"
|
|
499
499
|
}), /* @__PURE__ */ v("button", {
|
|
500
500
|
type: "button",
|
|
501
501
|
onClick: () => z(e, "reject"),
|
|
502
|
-
className: "rounded-lg border border-border px-3 py-1.5 text-sm font-medium text-
|
|
502
|
+
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",
|
|
503
503
|
children: "Reject"
|
|
504
504
|
})] }),
|
|
505
505
|
e.inspectionStatus === "pending" && /* @__PURE__ */ v("button", {
|
|
506
506
|
type: "button",
|
|
507
507
|
onClick: () => z(e, "inspect"),
|
|
508
|
-
className: "rounded-lg border border-border px-3 py-1.5 text-sm font-medium text-
|
|
508
|
+
className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
509
509
|
children: "Inspect"
|
|
510
510
|
}),
|
|
511
511
|
e.isActive && /* @__PURE__ */ v("button", {
|
|
512
512
|
type: "button",
|
|
513
513
|
onClick: () => z(e, "suspend"),
|
|
514
|
-
className: "rounded-lg border border-border px-3 py-1.5 text-sm font-medium text-
|
|
514
|
+
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",
|
|
515
515
|
children: "Suspend"
|
|
516
516
|
})
|
|
517
517
|
]
|
|
@@ -524,30 +524,30 @@ function x() {
|
|
|
524
524
|
children: /* @__PURE__ */ y("table", {
|
|
525
525
|
className: "w-full",
|
|
526
526
|
children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", {
|
|
527
|
-
className: "border-b border-border bg-
|
|
527
|
+
className: "border-b border-border-subtle bg-bg-sunken/50",
|
|
528
528
|
children: [
|
|
529
529
|
/* @__PURE__ */ v("th", {
|
|
530
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
530
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
531
531
|
children: "Cart"
|
|
532
532
|
}),
|
|
533
533
|
/* @__PURE__ */ v("th", {
|
|
534
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
534
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
535
535
|
children: "Owner"
|
|
536
536
|
}),
|
|
537
537
|
/* @__PURE__ */ v("th", {
|
|
538
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
538
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
539
539
|
children: "Status"
|
|
540
540
|
}),
|
|
541
541
|
/* @__PURE__ */ v("th", {
|
|
542
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
542
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
543
543
|
children: "Performance"
|
|
544
544
|
}),
|
|
545
545
|
/* @__PURE__ */ v("th", {
|
|
546
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
546
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
547
547
|
children: "Compliance"
|
|
548
548
|
}),
|
|
549
549
|
/* @__PURE__ */ v("th", {
|
|
550
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
550
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
551
551
|
children: "Actions"
|
|
552
552
|
})
|
|
553
553
|
]
|
|
@@ -568,15 +568,15 @@ function x() {
|
|
|
568
568
|
className: "min-w-0",
|
|
569
569
|
children: [
|
|
570
570
|
/* @__PURE__ */ v("p", {
|
|
571
|
-
className: "text-sm font-medium text-
|
|
571
|
+
className: "text-sm font-medium text-text-primary truncate",
|
|
572
572
|
children: e.name
|
|
573
573
|
}),
|
|
574
574
|
/* @__PURE__ */ v("p", {
|
|
575
|
-
className: "text-xs text-
|
|
575
|
+
className: "text-xs text-text-secondary truncate",
|
|
576
576
|
children: e.category
|
|
577
577
|
}),
|
|
578
578
|
/* @__PURE__ */ v("p", {
|
|
579
|
-
className: "text-xs text-
|
|
579
|
+
className: "text-xs text-text-secondary truncate",
|
|
580
580
|
children: e.address
|
|
581
581
|
})
|
|
582
582
|
]
|
|
@@ -587,15 +587,15 @@ function x() {
|
|
|
587
587
|
className: "px-4 py-3 text-sm",
|
|
588
588
|
children: [
|
|
589
589
|
/* @__PURE__ */ v("p", {
|
|
590
|
-
className: "font-medium text-
|
|
590
|
+
className: "font-medium text-text-primary",
|
|
591
591
|
children: e.ownerName
|
|
592
592
|
}),
|
|
593
593
|
/* @__PURE__ */ v("p", {
|
|
594
|
-
className: "text-xs text-
|
|
594
|
+
className: "text-xs text-text-secondary",
|
|
595
595
|
children: e.ownerEmail
|
|
596
596
|
}),
|
|
597
597
|
/* @__PURE__ */ v("p", {
|
|
598
|
-
className: "text-xs text-
|
|
598
|
+
className: "text-xs text-text-secondary",
|
|
599
599
|
children: e.ownerPhone
|
|
600
600
|
})
|
|
601
601
|
]
|
|
@@ -611,11 +611,11 @@ function x() {
|
|
|
611
611
|
e.rating > 0 && /* @__PURE__ */ y("div", {
|
|
612
612
|
className: "text-sm flex items-center gap-1 mt-1",
|
|
613
613
|
children: [
|
|
614
|
-
/* @__PURE__ */ v(p, { className: "h-3 w-3 fill-
|
|
614
|
+
/* @__PURE__ */ v(p, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
|
|
615
615
|
e.rating,
|
|
616
616
|
" ",
|
|
617
617
|
/* @__PURE__ */ y("span", {
|
|
618
|
-
className: "text-
|
|
618
|
+
className: "text-text-secondary",
|
|
619
619
|
children: [
|
|
620
620
|
"(",
|
|
621
621
|
e.reviewCount,
|
|
@@ -630,10 +630,10 @@ function x() {
|
|
|
630
630
|
/* @__PURE__ */ y("td", {
|
|
631
631
|
className: "px-4 py-3 text-sm",
|
|
632
632
|
children: [/* @__PURE__ */ y("p", {
|
|
633
|
-
className: "text-
|
|
633
|
+
className: "text-text-primary",
|
|
634
634
|
children: [r(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
|
|
635
635
|
}), /* @__PURE__ */ y("p", {
|
|
636
|
-
className: "text-
|
|
636
|
+
className: "text-text-secondary",
|
|
637
637
|
children: [e.monthlyOrders, " orders/mo"]
|
|
638
638
|
})]
|
|
639
639
|
}),
|
|
@@ -646,12 +646,12 @@ function x() {
|
|
|
646
646
|
className: "w-16",
|
|
647
647
|
children: W(e.complianceScore)
|
|
648
648
|
}), /* @__PURE__ */ y("span", {
|
|
649
|
-
className: "font-medium text-
|
|
649
|
+
className: "font-medium text-text-primary",
|
|
650
650
|
children: [e.complianceScore, "%"]
|
|
651
651
|
})]
|
|
652
652
|
}),
|
|
653
653
|
/* @__PURE__ */ y("p", {
|
|
654
|
-
className: "text-xs text-
|
|
654
|
+
className: "text-xs text-text-secondary",
|
|
655
655
|
children: [
|
|
656
656
|
"Docs: ",
|
|
657
657
|
e.documentsSubmitted,
|
|
@@ -660,7 +660,7 @@ function x() {
|
|
|
660
660
|
]
|
|
661
661
|
}),
|
|
662
662
|
/* @__PURE__ */ y("p", {
|
|
663
|
-
className: "text-xs text-
|
|
663
|
+
className: "text-xs text-text-secondary",
|
|
664
664
|
children: ["Applied: ", V(e.applicationDate)]
|
|
665
665
|
})
|
|
666
666
|
]
|
|
@@ -673,7 +673,7 @@ function x() {
|
|
|
673
673
|
/* @__PURE__ */ y("button", {
|
|
674
674
|
type: "button",
|
|
675
675
|
onClick: () => z(e, "view"),
|
|
676
|
-
className: "rounded p-1.5 text-
|
|
676
|
+
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",
|
|
677
677
|
children: [/* @__PURE__ */ v(l, { className: "h-4 w-4" }), " View"]
|
|
678
678
|
}),
|
|
679
679
|
!e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ y("div", {
|
|
@@ -681,25 +681,25 @@ function x() {
|
|
|
681
681
|
children: [/* @__PURE__ */ v("button", {
|
|
682
682
|
type: "button",
|
|
683
683
|
onClick: () => z(e, "approve"),
|
|
684
|
-
className: "rounded p-1.5 text-
|
|
684
|
+
className: "rounded p-1.5 text-text-secondary hover:text-status-success-text hover:bg-status-success-bg-subtle/10 transition-colors",
|
|
685
685
|
children: /* @__PURE__ */ v(s, { className: "h-4 w-4" })
|
|
686
686
|
}), /* @__PURE__ */ v("button", {
|
|
687
687
|
type: "button",
|
|
688
688
|
onClick: () => z(e, "reject"),
|
|
689
|
-
className: "rounded p-1.5 text-
|
|
689
|
+
className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
|
|
690
690
|
children: /* @__PURE__ */ v(g, { className: "h-4 w-4" })
|
|
691
691
|
})]
|
|
692
692
|
}),
|
|
693
693
|
e.inspectionStatus === "pending" && /* @__PURE__ */ y("button", {
|
|
694
694
|
type: "button",
|
|
695
695
|
onClick: () => z(e, "inspect"),
|
|
696
|
-
className: "rounded p-1.5 text-
|
|
696
|
+
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",
|
|
697
697
|
children: [/* @__PURE__ */ v(c, { className: "h-4 w-4" }), " Inspect"]
|
|
698
698
|
}),
|
|
699
699
|
e.isActive && /* @__PURE__ */ v("button", {
|
|
700
700
|
type: "button",
|
|
701
701
|
onClick: () => z(e, "suspend"),
|
|
702
|
-
className: "rounded p-1.5 text-
|
|
702
|
+
className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
|
|
703
703
|
children: /* @__PURE__ */ v(d, { className: "h-4 w-4" })
|
|
704
704
|
})
|
|
705
705
|
]
|
|
@@ -712,8 +712,8 @@ function x() {
|
|
|
712
712
|
}),
|
|
713
713
|
S.length === 0 && /* @__PURE__ */ y("div", {
|
|
714
714
|
className: "flex flex-col items-center justify-center py-12 px-4",
|
|
715
|
-
children: [/* @__PURE__ */ v(m, { className: "h-10 w-10 text-
|
|
716
|
-
className: "text-sm text-
|
|
715
|
+
children: [/* @__PURE__ */ v(m, { className: "h-10 w-10 text-text-secondary/50 mb-3" }), /* @__PURE__ */ v("p", {
|
|
716
|
+
className: "text-sm text-text-secondary",
|
|
717
717
|
children: "No carts found matching your criteria"
|
|
718
718
|
})]
|
|
719
719
|
})
|
|
@@ -722,16 +722,16 @@ function x() {
|
|
|
722
722
|
O && E && /* @__PURE__ */ v("div", {
|
|
723
723
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
724
724
|
children: /* @__PURE__ */ y("div", {
|
|
725
|
-
className: "w-full max-w-2xl rounded-lg border border-border bg-
|
|
725
|
+
className: "w-full max-w-2xl rounded-lg border border-border-subtle bg-bg-surface shadow-lg max-h-[90vh] overflow-y-auto",
|
|
726
726
|
children: [/* @__PURE__ */ y("div", {
|
|
727
|
-
className: "flex items-center justify-between p-4 border-b border-border",
|
|
727
|
+
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
728
728
|
children: [/* @__PURE__ */ v("h3", {
|
|
729
|
-
className: "text-lg font-semibold text-
|
|
729
|
+
className: "text-lg font-semibold text-text-primary",
|
|
730
730
|
children: A === "view" ? "Cart Details" : A === "approve" ? "Approve Cart" : A === "reject" ? "Reject Cart" : A === "suspend" ? "Suspend Cart" : "Schedule Inspection"
|
|
731
731
|
}), /* @__PURE__ */ v("button", {
|
|
732
732
|
type: "button",
|
|
733
733
|
onClick: () => k(!1),
|
|
734
|
-
className: "rounded p-1.5 text-
|
|
734
|
+
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
|
|
735
735
|
children: /* @__PURE__ */ v(h, { className: "h-5 w-5" })
|
|
736
736
|
})]
|
|
737
737
|
}), /* @__PURE__ */ y("div", {
|
|
@@ -741,64 +741,64 @@ function x() {
|
|
|
741
741
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
744
|
-
className: "text-sm text-
|
|
744
|
+
className: "text-sm text-text-secondary",
|
|
745
745
|
children: "Cart Name"
|
|
746
746
|
}), /* @__PURE__ */ v("p", {
|
|
747
|
-
className: "font-medium text-
|
|
747
|
+
className: "font-medium text-text-primary",
|
|
748
748
|
children: E.name
|
|
749
749
|
})] }),
|
|
750
750
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
751
|
-
className: "text-sm text-
|
|
751
|
+
className: "text-sm text-text-secondary",
|
|
752
752
|
children: "Category"
|
|
753
753
|
}), /* @__PURE__ */ v("p", {
|
|
754
|
-
className: "font-medium text-
|
|
754
|
+
className: "font-medium text-text-primary",
|
|
755
755
|
children: E.category
|
|
756
756
|
})] }),
|
|
757
757
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
758
|
-
className: "text-sm text-
|
|
758
|
+
className: "text-sm text-text-secondary",
|
|
759
759
|
children: "Owner"
|
|
760
760
|
}), /* @__PURE__ */ v("p", {
|
|
761
|
-
className: "font-medium text-
|
|
761
|
+
className: "font-medium text-text-primary",
|
|
762
762
|
children: E.ownerName
|
|
763
763
|
})] }),
|
|
764
764
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
765
|
-
className: "text-sm text-
|
|
765
|
+
className: "text-sm text-text-secondary",
|
|
766
766
|
children: "Contact"
|
|
767
767
|
}), /* @__PURE__ */ v("p", {
|
|
768
|
-
className: "font-medium text-
|
|
768
|
+
className: "font-medium text-text-primary",
|
|
769
769
|
children: E.ownerPhone
|
|
770
770
|
})] })
|
|
771
771
|
]
|
|
772
772
|
}),
|
|
773
773
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
774
|
-
className: "text-sm text-
|
|
774
|
+
className: "text-sm text-text-secondary",
|
|
775
775
|
children: "Description"
|
|
776
776
|
}), /* @__PURE__ */ v("p", {
|
|
777
|
-
className: "font-medium text-
|
|
777
|
+
className: "font-medium text-text-primary",
|
|
778
778
|
children: E.description
|
|
779
779
|
})] }),
|
|
780
780
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
781
|
-
className: "text-sm text-
|
|
781
|
+
className: "text-sm text-text-secondary",
|
|
782
782
|
children: "Location"
|
|
783
783
|
}), /* @__PURE__ */ v("p", {
|
|
784
|
-
className: "font-medium text-
|
|
784
|
+
className: "font-medium text-text-primary",
|
|
785
785
|
children: E.address
|
|
786
786
|
})] }),
|
|
787
787
|
/* @__PURE__ */ y("div", {
|
|
788
788
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
789
789
|
children: [
|
|
790
790
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
791
|
-
className: "text-sm text-
|
|
791
|
+
className: "text-sm text-text-secondary",
|
|
792
792
|
children: "Compliance Score"
|
|
793
793
|
}), /* @__PURE__ */ y("p", {
|
|
794
|
-
className: "font-medium text-
|
|
794
|
+
className: "font-medium text-text-primary",
|
|
795
795
|
children: [E.complianceScore, "%"]
|
|
796
796
|
})] }),
|
|
797
797
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
798
|
-
className: "text-sm text-
|
|
798
|
+
className: "text-sm text-text-secondary",
|
|
799
799
|
children: "Documents"
|
|
800
800
|
}), /* @__PURE__ */ y("p", {
|
|
801
|
-
className: "font-medium text-
|
|
801
|
+
className: "font-medium text-text-primary",
|
|
802
802
|
children: [
|
|
803
803
|
E.documentsSubmitted,
|
|
804
804
|
"/",
|
|
@@ -806,38 +806,38 @@ function x() {
|
|
|
806
806
|
]
|
|
807
807
|
})] }),
|
|
808
808
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
809
|
-
className: "text-sm text-
|
|
809
|
+
className: "text-sm text-text-secondary",
|
|
810
810
|
children: "Monthly Revenue"
|
|
811
811
|
}), /* @__PURE__ */ v("p", {
|
|
812
|
-
className: "font-medium text-
|
|
812
|
+
className: "font-medium text-text-primary",
|
|
813
813
|
children: r(E.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
814
814
|
})] })
|
|
815
815
|
]
|
|
816
816
|
}),
|
|
817
817
|
E.rejectionReason && /* @__PURE__ */ y("div", {
|
|
818
|
-
className: "rounded-lg border border-
|
|
818
|
+
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg-subtle/10 p-4",
|
|
819
819
|
children: [/* @__PURE__ */ v("p", {
|
|
820
|
-
className: "text-sm font-medium text-
|
|
820
|
+
className: "text-sm font-medium text-status-error-text",
|
|
821
821
|
children: "Previous Rejection Reason:"
|
|
822
822
|
}), /* @__PURE__ */ v("p", {
|
|
823
|
-
className: "text-sm text-
|
|
823
|
+
className: "text-sm text-status-error-text",
|
|
824
824
|
children: E.rejectionReason
|
|
825
825
|
})]
|
|
826
826
|
}),
|
|
827
827
|
A === "reject" && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
|
|
828
|
-
className: "block text-sm font-medium text-
|
|
828
|
+
className: "block text-sm font-medium text-text-primary mb-2",
|
|
829
829
|
children: "Rejection Reason *"
|
|
830
830
|
}), /* @__PURE__ */ v("textarea", {
|
|
831
|
-
className: "w-full rounded-lg border border-border bg-
|
|
831
|
+
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]",
|
|
832
832
|
rows: 4,
|
|
833
833
|
value: M,
|
|
834
834
|
onChange: (e) => N(e.target.value),
|
|
835
835
|
placeholder: "Please provide a detailed reason for rejection..."
|
|
836
836
|
})] }),
|
|
837
837
|
A === "approve" && /* @__PURE__ */ v("div", {
|
|
838
|
-
className: "rounded-lg border border-
|
|
838
|
+
className: "rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 p-4",
|
|
839
839
|
children: /* @__PURE__ */ v("p", {
|
|
840
|
-
className: "text-sm text-
|
|
840
|
+
className: "text-sm text-status-success-text",
|
|
841
841
|
children: "This will approve the cart for operation on the platform. The cart owner will be notified and the cart will become active."
|
|
842
842
|
})
|
|
843
843
|
}),
|
|
@@ -846,13 +846,13 @@ function x() {
|
|
|
846
846
|
children: [/* @__PURE__ */ v("button", {
|
|
847
847
|
type: "button",
|
|
848
848
|
onClick: () => k(!1),
|
|
849
|
-
className: "flex-1 rounded-lg border border-border py-2 text-sm font-medium text-
|
|
849
|
+
className: "flex-1 rounded-lg border border-border-subtle py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
850
850
|
children: "Cancel"
|
|
851
851
|
}), A !== "view" && /* @__PURE__ */ v("button", {
|
|
852
852
|
type: "button",
|
|
853
853
|
onClick: B,
|
|
854
854
|
disabled: A === "reject" && !M.trim(),
|
|
855
|
-
className: "flex-1 rounded-lg bg-primary py-2 text-sm font-medium text-primary-
|
|
855
|
+
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",
|
|
856
856
|
children: A === "approve" ? "Approve Cart" : A === "reject" ? "Reject Cart" : A === "suspend" ? "Suspend Cart" : "Schedule Inspection"
|
|
857
857
|
})]
|
|
858
858
|
})
|