@burdenoff/microfe-labsofscience 2026.624.1 → 2026.626.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/labsofscience/components/EmptyState.js +18 -11
- package/dist/labsofscience/components/EmptyState.js.map +1 -1
- package/dist/labsofscience/components/InvestmentCard.js +26 -24
- package/dist/labsofscience/components/InvestmentCard.js.map +1 -1
- package/dist/labsofscience/components/MetricsCard.js +19 -13
- package/dist/labsofscience/components/MetricsCard.js.map +1 -1
- package/dist/labsofscience/components/PageLayout.js +23 -15
- package/dist/labsofscience/components/PageLayout.js.map +1 -1
- package/dist/labsofscience/components/RatingDisplay.js +1 -1
- package/dist/labsofscience/components/RatingDisplay.js.map +1 -1
- package/dist/labsofscience/components/StatusBadge.js +34 -15
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/pages/HomePage.js +242 -223
- package/dist/labsofscience/pages/HomePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +107 -101
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +118 -85
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +51 -45
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +245 -240
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +131 -129
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +493 -491
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +163 -158
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +307 -302
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +89 -84
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +187 -182
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +119 -88
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +149 -144
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +151 -146
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +344 -346
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +269 -271
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +293 -287
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +344 -345
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +94 -87
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +748 -739
- package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +400 -356
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +281 -248
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +178 -166
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +236 -238
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +425 -390
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +522 -512
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +73 -66
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +74 -67
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +311 -274
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +100 -93
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +96 -89
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +85 -78
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +135 -103
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +267 -260
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +97 -91
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +346 -310
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +118 -111
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +75 -69
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +434 -429
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +364 -323
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +132 -101
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +114 -108
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +124 -119
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +354 -344
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,12 +5,13 @@ import { MetricsCard as r } from "../../components/MetricsCard.js";
|
|
|
5
5
|
import { useEffect as i, useState as a } from "react";
|
|
6
6
|
import { Activity as o, AlertTriangle as s, ArrowRight as c, BarChart3 as l, CheckCircle2 as u, Clock as d, CreditCard as f, Database as p, FileText as m, IndianRupee as h, Loader2 as g, Server as _, Settings as v, ShieldCheck as y, ShoppingBag as b, Store as x, UserPlus as S, Users as C, Wifi as w } from "lucide-react";
|
|
7
7
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
8
|
+
import { EmphasisPanel as D, NextSteps as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
|
|
8
9
|
//#region src/labsofscience/pages/admin/AdminDashboard.tsx
|
|
9
|
-
function
|
|
10
|
-
let { navigateTo:
|
|
10
|
+
function A() {
|
|
11
|
+
let { navigateTo: A, currentUser: j } = e(), M = j?.firstName ?? j?.name ?? "Admin", [N, P] = a(null), [F, I] = a([]), [L, R] = a(null), [z, B] = a(!0);
|
|
11
12
|
i(() => {
|
|
12
13
|
let e = setTimeout(() => {
|
|
13
|
-
|
|
14
|
+
P({
|
|
14
15
|
totalUsers: 12847,
|
|
15
16
|
totalCarts: 2934,
|
|
16
17
|
totalOrders: 45621,
|
|
@@ -19,13 +20,13 @@ function D() {
|
|
|
19
20
|
pendingApprovals: 47,
|
|
20
21
|
totalRevenue: 245e4,
|
|
21
22
|
platformCommission: 122500
|
|
22
|
-
}),
|
|
23
|
+
}), R({
|
|
23
24
|
customers: 8934,
|
|
24
25
|
cartOwners: 2456,
|
|
25
26
|
workers: 1245,
|
|
26
27
|
investors: 212,
|
|
27
28
|
growth: 15.7
|
|
28
|
-
}),
|
|
29
|
+
}), I([
|
|
29
30
|
{
|
|
30
31
|
id: "ACT-001",
|
|
31
32
|
type: "user_registration",
|
|
@@ -76,28 +77,28 @@ function D() {
|
|
|
76
77
|
status: "completed",
|
|
77
78
|
user: "Fatima Ali"
|
|
78
79
|
}
|
|
79
|
-
]),
|
|
80
|
+
]), B(!1);
|
|
80
81
|
}, 1e3);
|
|
81
82
|
return () => clearTimeout(e);
|
|
82
83
|
}, []);
|
|
83
|
-
let
|
|
84
|
+
let V = (e) => /* @__PURE__ */ T({
|
|
84
85
|
user_registration: S,
|
|
85
86
|
cart_approval: x,
|
|
86
87
|
investment: h,
|
|
87
88
|
order: b,
|
|
88
89
|
dispute: s
|
|
89
|
-
}[e] ?? o, { className: "h-4 w-4" }),
|
|
90
|
-
user_registration: "text-
|
|
91
|
-
cart_approval: "text-
|
|
92
|
-
investment: "text-
|
|
93
|
-
order: "text-
|
|
94
|
-
dispute: "text-
|
|
95
|
-
})[e] ?? "text-text-secondary",
|
|
96
|
-
completed: "bg-
|
|
97
|
-
pending: "bg-
|
|
98
|
-
failed: "bg-
|
|
90
|
+
}[e] ?? o, { className: "h-4 w-4" }), H = (e) => ({
|
|
91
|
+
user_registration: "text-status-info-text",
|
|
92
|
+
cart_approval: "text-accent-purple",
|
|
93
|
+
investment: "text-status-success-text",
|
|
94
|
+
order: "text-status-success-text",
|
|
95
|
+
dispute: "text-status-warning-text"
|
|
96
|
+
})[e] ?? "text-text-secondary", U = (e) => ({
|
|
97
|
+
completed: "bg-status-success-bg-subtle text-status-success-text",
|
|
98
|
+
pending: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
99
|
+
failed: "bg-status-error-bg-subtle text-status-error-text"
|
|
99
100
|
})[e] ?? "bg-secondary text-secondary-foreground";
|
|
100
|
-
return
|
|
101
|
+
return z ? /* @__PURE__ */ T(n, {
|
|
101
102
|
title: "Admin Dashboard",
|
|
102
103
|
description: "Loading...",
|
|
103
104
|
children: /* @__PURE__ */ E("div", {
|
|
@@ -109,15 +110,46 @@ function D() {
|
|
|
109
110
|
})
|
|
110
111
|
}) : /* @__PURE__ */ E(n, {
|
|
111
112
|
title: "Admin Dashboard",
|
|
112
|
-
description: `Welcome, ${
|
|
113
|
-
actions:
|
|
114
|
-
className: "flex items-center gap-2 rounded-lg border border-
|
|
115
|
-
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-
|
|
116
|
-
className: "text-sm font-medium text-
|
|
117
|
-
children: [
|
|
113
|
+
description: `Welcome, ${M}! Monitor and manage the platform.`,
|
|
114
|
+
actions: N?.pendingApprovals && N.pendingApprovals > 0 ? /* @__PURE__ */ E("div", {
|
|
115
|
+
className: "flex items-center gap-2 rounded-lg border border-status-error-border bg-status-error-bg-subtle px-3 py-2",
|
|
116
|
+
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ E("span", {
|
|
117
|
+
className: "text-sm font-medium text-status-error-text",
|
|
118
|
+
children: [N.pendingApprovals, " pending approvals"]
|
|
118
119
|
})]
|
|
119
120
|
}) : void 0,
|
|
120
121
|
children: [
|
|
122
|
+
/* @__PURE__ */ T(k, {
|
|
123
|
+
icon: /* @__PURE__ */ T(y, { className: "h-4 w-4" }),
|
|
124
|
+
className: "mb-6",
|
|
125
|
+
children: "Your command center for the whole platform. Watch live user, cart, order and revenue health at a glance, clear the approval queue, and jump straight into the management area that needs you most."
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ T(O, {
|
|
128
|
+
storageKey: "labsofscience-admin-dashboard",
|
|
129
|
+
steps: [
|
|
130
|
+
{
|
|
131
|
+
id: "approvals",
|
|
132
|
+
label: "Review pending cart approvals",
|
|
133
|
+
description: "Carts waiting to go live need your sign-off.",
|
|
134
|
+
icon: /* @__PURE__ */ T(s, { className: "h-4 w-4" }),
|
|
135
|
+
onClick: () => A("/admin/carts")
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: "users",
|
|
139
|
+
label: "Manage users & roles",
|
|
140
|
+
description: "Onboard, verify or suspend platform accounts.",
|
|
141
|
+
icon: /* @__PURE__ */ T(C, { className: "h-4 w-4" }),
|
|
142
|
+
onClick: () => A("/admin/users")
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: "financial",
|
|
146
|
+
label: "Check financial analytics",
|
|
147
|
+
description: "Track revenue, commission and payouts.",
|
|
148
|
+
icon: /* @__PURE__ */ T(h, { className: "h-4 w-4" }),
|
|
149
|
+
onClick: () => A("/admin/financial")
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}),
|
|
121
153
|
/* @__PURE__ */ E("div", {
|
|
122
154
|
className: "mb-8",
|
|
123
155
|
children: [/* @__PURE__ */ T("h2", {
|
|
@@ -128,61 +160,61 @@ function D() {
|
|
|
128
160
|
children: [
|
|
129
161
|
/* @__PURE__ */ E("button", {
|
|
130
162
|
type: "button",
|
|
131
|
-
onClick: () =>
|
|
132
|
-
className: "flex items-center gap-3 rounded-lg bg-
|
|
163
|
+
onClick: () => A("/admin/carts"),
|
|
164
|
+
className: "flex items-center gap-3 rounded-lg bg-status-error-bg hover:bg-status-error-bg text-white p-3 text-sm font-medium transition-colors",
|
|
133
165
|
children: [
|
|
134
166
|
/* @__PURE__ */ T(s, { className: "h-5 w-5" }),
|
|
135
167
|
"Approve Carts (",
|
|
136
|
-
|
|
168
|
+
N?.pendingApprovals,
|
|
137
169
|
")"
|
|
138
170
|
]
|
|
139
171
|
}),
|
|
140
172
|
/* @__PURE__ */ E("button", {
|
|
141
173
|
type: "button",
|
|
142
|
-
onClick: () =>
|
|
143
|
-
className: "flex items-center gap-3 rounded-lg border border-border-
|
|
174
|
+
onClick: () => A("/admin/carts"),
|
|
175
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface hover:bg-accent p-3 text-sm font-medium text-text-primary transition-colors",
|
|
144
176
|
children: [/* @__PURE__ */ T(x, { className: "h-5 w-5 text-text-secondary" }), "Manage Carts"]
|
|
145
177
|
}),
|
|
146
178
|
/* @__PURE__ */ E("button", {
|
|
147
179
|
type: "button",
|
|
148
|
-
onClick: () =>
|
|
149
|
-
className: "flex items-center gap-3 rounded-lg border border-border-
|
|
180
|
+
onClick: () => A("/admin/users"),
|
|
181
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface hover:bg-accent p-3 text-sm font-medium text-text-primary transition-colors",
|
|
150
182
|
children: [/* @__PURE__ */ T(C, { className: "h-5 w-5 text-text-secondary" }), "User Management"]
|
|
151
183
|
}),
|
|
152
184
|
/* @__PURE__ */ E("button", {
|
|
153
185
|
type: "button",
|
|
154
|
-
onClick: () =>
|
|
155
|
-
className: "flex items-center gap-3 rounded-lg border border-border-
|
|
186
|
+
onClick: () => A("/admin/orders"),
|
|
187
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface hover:bg-accent p-3 text-sm font-medium text-text-primary transition-colors",
|
|
156
188
|
children: [/* @__PURE__ */ T(b, { className: "h-5 w-5 text-text-secondary" }), "Order Management"]
|
|
157
189
|
}),
|
|
158
190
|
/* @__PURE__ */ E("button", {
|
|
159
191
|
type: "button",
|
|
160
|
-
onClick: () =>
|
|
161
|
-
className: "flex items-center gap-3 rounded-lg border border-border-
|
|
192
|
+
onClick: () => A("/admin/financial"),
|
|
193
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface hover:bg-accent p-3 text-sm font-medium text-text-primary transition-colors",
|
|
162
194
|
children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-text-secondary" }), "Financial Analytics"]
|
|
163
195
|
}),
|
|
164
196
|
/* @__PURE__ */ E("button", {
|
|
165
197
|
type: "button",
|
|
166
|
-
onClick: () =>
|
|
167
|
-
className: "flex items-center gap-3 rounded-lg border border-border-
|
|
198
|
+
onClick: () => A("/admin/analytics"),
|
|
199
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface hover:bg-accent p-3 text-sm font-medium text-text-primary transition-colors",
|
|
168
200
|
children: [/* @__PURE__ */ T(l, { className: "h-5 w-5 text-text-secondary" }), "Analytics"]
|
|
169
201
|
}),
|
|
170
202
|
/* @__PURE__ */ E("button", {
|
|
171
203
|
type: "button",
|
|
172
|
-
onClick: () =>
|
|
173
|
-
className: "flex items-center gap-3 rounded-lg border border-border-
|
|
204
|
+
onClick: () => A("/admin/settings"),
|
|
205
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface hover:bg-accent p-3 text-sm font-medium text-text-primary transition-colors",
|
|
174
206
|
children: [/* @__PURE__ */ T(v, { className: "h-5 w-5 text-text-secondary" }), "Settings"]
|
|
175
207
|
}),
|
|
176
208
|
/* @__PURE__ */ E("button", {
|
|
177
209
|
type: "button",
|
|
178
|
-
onClick: () =>
|
|
179
|
-
className: "flex items-center gap-3 rounded-lg border border-border-
|
|
210
|
+
onClick: () => A("/admin/analytics"),
|
|
211
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface hover:bg-accent p-3 text-sm font-medium text-text-primary transition-colors",
|
|
180
212
|
children: [/* @__PURE__ */ T(m, { className: "h-5 w-5 text-text-secondary" }), "Reports"]
|
|
181
213
|
})
|
|
182
214
|
]
|
|
183
215
|
})]
|
|
184
216
|
}),
|
|
185
|
-
|
|
217
|
+
N && /* @__PURE__ */ E(D, {
|
|
186
218
|
className: "mb-8",
|
|
187
219
|
children: [
|
|
188
220
|
/* @__PURE__ */ T("h2", {
|
|
@@ -193,29 +225,30 @@ function D() {
|
|
|
193
225
|
className: "grid grid-cols-2 lg:grid-cols-4 gap-4",
|
|
194
226
|
children: [
|
|
195
227
|
/* @__PURE__ */ T(r, {
|
|
228
|
+
featured: !0,
|
|
196
229
|
icon: /* @__PURE__ */ T(C, { className: "h-5 w-5" }),
|
|
197
|
-
value:
|
|
230
|
+
value: N.totalUsers.toLocaleString("en-IN"),
|
|
198
231
|
label: "Total Users",
|
|
199
232
|
trend: "up",
|
|
200
233
|
trendValue: "+15.7%"
|
|
201
234
|
}),
|
|
202
235
|
/* @__PURE__ */ T(r, {
|
|
203
236
|
icon: /* @__PURE__ */ T(x, { className: "h-5 w-5" }),
|
|
204
|
-
value:
|
|
237
|
+
value: N.totalCarts.toLocaleString("en-IN"),
|
|
205
238
|
label: "Active Carts",
|
|
206
239
|
trend: "up",
|
|
207
240
|
trendValue: "+8 this week"
|
|
208
241
|
}),
|
|
209
242
|
/* @__PURE__ */ T(r, {
|
|
210
243
|
icon: /* @__PURE__ */ T(b, { className: "h-5 w-5" }),
|
|
211
|
-
value:
|
|
244
|
+
value: N.totalOrders.toLocaleString("en-IN"),
|
|
212
245
|
label: "Total Orders",
|
|
213
246
|
trend: "up",
|
|
214
247
|
trendValue: "+12.3%"
|
|
215
248
|
}),
|
|
216
249
|
/* @__PURE__ */ T(r, {
|
|
217
250
|
icon: /* @__PURE__ */ T(h, { className: "h-5 w-5" }),
|
|
218
|
-
value: `₹${(
|
|
251
|
+
value: `₹${(N.totalRevenue / 1e5).toFixed(1)}L`,
|
|
219
252
|
label: "Total Revenue",
|
|
220
253
|
trend: "up",
|
|
221
254
|
trendValue: "+8.5%"
|
|
@@ -226,45 +259,45 @@ function D() {
|
|
|
226
259
|
className: "grid grid-cols-2 lg:grid-cols-4 gap-4 mt-4",
|
|
227
260
|
children: [
|
|
228
261
|
/* @__PURE__ */ E("div", {
|
|
229
|
-
className: "rounded-lg border border-border-
|
|
262
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
230
263
|
children: [/* @__PURE__ */ T("p", {
|
|
231
264
|
className: "text-xs text-text-secondary",
|
|
232
265
|
children: "Active Users (24h)"
|
|
233
266
|
}), /* @__PURE__ */ T("p", {
|
|
234
|
-
className: "text-xl font-bold text-
|
|
235
|
-
children:
|
|
267
|
+
className: "text-xl font-bold text-status-success-text",
|
|
268
|
+
children: N.activeUsers.toLocaleString("en-IN")
|
|
236
269
|
})]
|
|
237
270
|
}),
|
|
238
271
|
/* @__PURE__ */ E("div", {
|
|
239
|
-
className: "rounded-lg border border-border-
|
|
272
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
240
273
|
children: [/* @__PURE__ */ T("p", {
|
|
241
274
|
className: "text-xs text-text-secondary",
|
|
242
275
|
children: "Pending Approvals"
|
|
243
276
|
}), /* @__PURE__ */ T("p", {
|
|
244
|
-
className: "text-xl font-bold text-
|
|
245
|
-
children:
|
|
277
|
+
className: "text-xl font-bold text-status-error-text",
|
|
278
|
+
children: N.pendingApprovals
|
|
246
279
|
})]
|
|
247
280
|
}),
|
|
248
281
|
/* @__PURE__ */ E("div", {
|
|
249
|
-
className: "rounded-lg border border-border-
|
|
282
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
250
283
|
children: [/* @__PURE__ */ T("p", {
|
|
251
284
|
className: "text-xs text-text-secondary",
|
|
252
285
|
children: "Total Investments"
|
|
253
286
|
}), /* @__PURE__ */ T("p", {
|
|
254
|
-
className: "text-xl font-bold text-
|
|
255
|
-
children:
|
|
287
|
+
className: "text-xl font-bold text-status-info-text",
|
|
288
|
+
children: N.totalInvestments.toLocaleString("en-IN")
|
|
256
289
|
})]
|
|
257
290
|
}),
|
|
258
291
|
/* @__PURE__ */ E("div", {
|
|
259
|
-
className: "rounded-lg border border-border-
|
|
292
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
260
293
|
children: [/* @__PURE__ */ T("p", {
|
|
261
294
|
className: "text-xs text-text-secondary",
|
|
262
295
|
children: "Platform Commission"
|
|
263
296
|
}), /* @__PURE__ */ E("p", {
|
|
264
|
-
className: "text-xl font-bold text-
|
|
297
|
+
className: "text-xl font-bold text-accent-purple",
|
|
265
298
|
children: [
|
|
266
299
|
"₹",
|
|
267
|
-
(
|
|
300
|
+
(N.platformCommission / 1e3).toFixed(0),
|
|
268
301
|
"K"
|
|
269
302
|
]
|
|
270
303
|
})]
|
|
@@ -273,13 +306,13 @@ function D() {
|
|
|
273
306
|
})
|
|
274
307
|
]
|
|
275
308
|
}),
|
|
276
|
-
|
|
309
|
+
L && /* @__PURE__ */ E("div", {
|
|
277
310
|
className: "mb-8",
|
|
278
311
|
children: [/* @__PURE__ */ T("h2", {
|
|
279
312
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
280
313
|
children: "User Distribution"
|
|
281
314
|
}), /* @__PURE__ */ E("div", {
|
|
282
|
-
className: "rounded-lg border border-border-
|
|
315
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
283
316
|
children: [/* @__PURE__ */ E("div", {
|
|
284
317
|
className: "grid grid-cols-2 lg:grid-cols-4 gap-6",
|
|
285
318
|
children: [
|
|
@@ -287,8 +320,8 @@ function D() {
|
|
|
287
320
|
className: "text-center",
|
|
288
321
|
children: [
|
|
289
322
|
/* @__PURE__ */ T("div", {
|
|
290
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
291
|
-
children:
|
|
323
|
+
className: "text-2xl sm:text-3xl font-bold text-status-info-text",
|
|
324
|
+
children: L.customers.toLocaleString("en-IN")
|
|
292
325
|
}),
|
|
293
326
|
/* @__PURE__ */ T("div", {
|
|
294
327
|
className: "text-sm text-text-secondary",
|
|
@@ -304,8 +337,8 @@ function D() {
|
|
|
304
337
|
className: "text-center",
|
|
305
338
|
children: [
|
|
306
339
|
/* @__PURE__ */ T("div", {
|
|
307
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
308
|
-
children:
|
|
340
|
+
className: "text-2xl sm:text-3xl font-bold text-status-success-text",
|
|
341
|
+
children: L.cartOwners.toLocaleString("en-IN")
|
|
309
342
|
}),
|
|
310
343
|
/* @__PURE__ */ T("div", {
|
|
311
344
|
className: "text-sm text-text-secondary",
|
|
@@ -321,8 +354,8 @@ function D() {
|
|
|
321
354
|
className: "text-center",
|
|
322
355
|
children: [
|
|
323
356
|
/* @__PURE__ */ T("div", {
|
|
324
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
325
|
-
children:
|
|
357
|
+
className: "text-2xl sm:text-3xl font-bold text-status-warning-text",
|
|
358
|
+
children: L.workers.toLocaleString("en-IN")
|
|
326
359
|
}),
|
|
327
360
|
/* @__PURE__ */ T("div", {
|
|
328
361
|
className: "text-sm text-text-secondary",
|
|
@@ -338,8 +371,8 @@ function D() {
|
|
|
338
371
|
className: "text-center",
|
|
339
372
|
children: [
|
|
340
373
|
/* @__PURE__ */ T("div", {
|
|
341
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
342
|
-
children:
|
|
374
|
+
className: "text-2xl sm:text-3xl font-bold text-accent-purple",
|
|
375
|
+
children: L.investors.toLocaleString("en-IN")
|
|
343
376
|
}),
|
|
344
377
|
/* @__PURE__ */ T("div", {
|
|
345
378
|
className: "text-sm text-text-secondary",
|
|
@@ -353,17 +386,17 @@ function D() {
|
|
|
353
386
|
})
|
|
354
387
|
]
|
|
355
388
|
}), /* @__PURE__ */ T("div", {
|
|
356
|
-
className: "mt-4 pt-4 border-t border-border-
|
|
389
|
+
className: "mt-4 pt-4 border-t border-border-seam",
|
|
357
390
|
children: /* @__PURE__ */ E("div", {
|
|
358
391
|
className: "flex justify-between items-center",
|
|
359
392
|
children: [/* @__PURE__ */ T("span", {
|
|
360
393
|
className: "text-sm text-text-secondary",
|
|
361
394
|
children: "User Growth (This Month)"
|
|
362
395
|
}), /* @__PURE__ */ E("span", {
|
|
363
|
-
className: "text-sm font-medium text-
|
|
396
|
+
className: "text-sm font-medium text-status-success-text",
|
|
364
397
|
children: [
|
|
365
398
|
"+",
|
|
366
|
-
|
|
399
|
+
L.growth,
|
|
367
400
|
"%"
|
|
368
401
|
]
|
|
369
402
|
})]
|
|
@@ -380,17 +413,17 @@ function D() {
|
|
|
380
413
|
children: "Recent Platform Activity"
|
|
381
414
|
}), /* @__PURE__ */ E("button", {
|
|
382
415
|
type: "button",
|
|
383
|
-
onClick: () =>
|
|
416
|
+
onClick: () => A("/admin/analytics"),
|
|
384
417
|
className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
385
418
|
children: ["View all activities", /* @__PURE__ */ T(c, { className: "h-4 w-4" })]
|
|
386
419
|
})]
|
|
387
420
|
}), /* @__PURE__ */ T("div", {
|
|
388
|
-
className: "rounded-lg border border-border-
|
|
389
|
-
children:
|
|
421
|
+
className: "rounded-lg border border-border-seam bg-bg-surface divide-y divide-border",
|
|
422
|
+
children: F.map((e) => /* @__PURE__ */ E("div", {
|
|
390
423
|
className: "flex items-start gap-3 px-4 py-3",
|
|
391
424
|
children: [/* @__PURE__ */ T("div", {
|
|
392
|
-
className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-bg-sunken mt-0.5",
|
|
393
|
-
children:
|
|
425
|
+
className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-bg-sunken mt-0.5", H(e.type)),
|
|
426
|
+
children: V(e.type)
|
|
394
427
|
}), /* @__PURE__ */ E("div", {
|
|
395
428
|
className: "flex-1 min-w-0",
|
|
396
429
|
children: [/* @__PURE__ */ E("div", {
|
|
@@ -399,7 +432,7 @@ function D() {
|
|
|
399
432
|
className: "text-sm font-medium text-text-primary",
|
|
400
433
|
children: e.description
|
|
401
434
|
}), /* @__PURE__ */ T("span", {
|
|
402
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize w-fit",
|
|
435
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize w-fit", U(e.status)),
|
|
403
436
|
children: e.status
|
|
404
437
|
})]
|
|
405
438
|
}), /* @__PURE__ */ E("div", {
|
|
@@ -427,7 +460,7 @@ function D() {
|
|
|
427
460
|
/* @__PURE__ */ E("div", {
|
|
428
461
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8",
|
|
429
462
|
children: [/* @__PURE__ */ E("div", {
|
|
430
|
-
className: "rounded-lg border border-border-
|
|
463
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
431
464
|
children: [/* @__PURE__ */ E("div", {
|
|
432
465
|
className: "flex items-center gap-2 mb-4",
|
|
433
466
|
children: [/* @__PURE__ */ T(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ T("h3", {
|
|
@@ -446,7 +479,7 @@ function D() {
|
|
|
446
479
|
children: "Server Status"
|
|
447
480
|
})]
|
|
448
481
|
}), /* @__PURE__ */ E("span", {
|
|
449
|
-
className: "inline-flex items-center gap-1.5 rounded-full bg-
|
|
482
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg-subtle px-3 py-1 text-xs font-medium text-status-success-text",
|
|
450
483
|
children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Healthy"]
|
|
451
484
|
})]
|
|
452
485
|
}),
|
|
@@ -459,7 +492,7 @@ function D() {
|
|
|
459
492
|
children: "Database Performance"
|
|
460
493
|
})]
|
|
461
494
|
}), /* @__PURE__ */ E("span", {
|
|
462
|
-
className: "inline-flex items-center gap-1.5 rounded-full bg-
|
|
495
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg-subtle px-3 py-1 text-xs font-medium text-status-success-text",
|
|
463
496
|
children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Optimal"]
|
|
464
497
|
})]
|
|
465
498
|
}),
|
|
@@ -472,7 +505,7 @@ function D() {
|
|
|
472
505
|
children: "Payment Gateway"
|
|
473
506
|
})]
|
|
474
507
|
}), /* @__PURE__ */ E("span", {
|
|
475
|
-
className: "inline-flex items-center gap-1.5 rounded-full bg-
|
|
508
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg-subtle px-3 py-1 text-xs font-medium text-status-success-text",
|
|
476
509
|
children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Online"]
|
|
477
510
|
})]
|
|
478
511
|
}),
|
|
@@ -505,7 +538,7 @@ function D() {
|
|
|
505
538
|
]
|
|
506
539
|
})]
|
|
507
540
|
}), /* @__PURE__ */ E("div", {
|
|
508
|
-
className: "rounded-lg border border-border-
|
|
541
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
509
542
|
children: [/* @__PURE__ */ E("div", {
|
|
510
543
|
className: "flex items-center gap-2 mb-4",
|
|
511
544
|
children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ T("h3", {
|
|
@@ -612,8 +645,8 @@ function D() {
|
|
|
612
645
|
let n = e.icon;
|
|
613
646
|
return /* @__PURE__ */ E("button", {
|
|
614
647
|
type: "button",
|
|
615
|
-
onClick: () =>
|
|
616
|
-
className: t("flex items-center gap-4 rounded-lg border border-border-
|
|
648
|
+
onClick: () => A(e.path),
|
|
649
|
+
className: t("flex items-center gap-4 rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 text-left shadow-sm transition-all", "hover:bg-accent hover:shadow-md"),
|
|
617
650
|
children: [/* @__PURE__ */ T("div", {
|
|
618
651
|
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-bg-sunken text-text-secondary",
|
|
619
652
|
children: /* @__PURE__ */ T(n, { className: "h-5 w-5" })
|
|
@@ -634,6 +667,6 @@ function D() {
|
|
|
634
667
|
});
|
|
635
668
|
}
|
|
636
669
|
//#endregion
|
|
637
|
-
export {
|
|
670
|
+
export { A as AdminDashboard };
|
|
638
671
|
|
|
639
672
|
//# sourceMappingURL=AdminDashboard.js.map
|